/* Advertise on the directory (advertise.php), shared by every template (2026). */
.ad-page { max-width: 1000px; margin: 0 auto; padding: 8px 0 24px; }
.ad-head h1 { font-size: 1.7em; margin: 0 0 6px; }
.ad-head p { color: #555; line-height: 1.55; margin: 0 0 18px; max-width: 760px; }
.ad-crumb { margin: 0 0 6px !important; font-size: .9em; }
.ad-box { border: 1px solid #e3e6ea; border-radius: 10px; padding: 14px 18px; margin: 0 0 16px; background: #fff; line-height: 1.55; }
.ad-box h2 { font-size: 1.15em; margin: 0 0 10px; }
.ad-ok { border-color: #b7dfc0; background: #f1faf3; }
.ad-bad { border-color: #f0c2c2; background: #fdf3f3; }
.ad-bad ul { margin: 6px 0 0 18px; }
.ad-muted { background: #f7f8fa; color: #444; }
.ad-note { margin-top: 8px; padding: 8px 12px; background: #fff8e1; border-radius: 6px; }
.ad-status b { margin-right: 6px; }
.ad-st-live, .ad-st-scheduled { border-color: #b7dfc0; background: #f1faf3; }
.ad-st-changes, .ad-st-review, .ad-st-unpaid { border-color: #f0d78c; background: #fffbea; }
.ad-st-declined { border-color: #f0c2c2; background: #fdf3f3; }
.ad-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-bottom: 18px; }
.ad-card { border: 1px solid #e3e6ea; border-radius: 12px; padding: 16px; display: flex; flex-direction: column; background: #fff; }
.ad-card h2 { font-size: 1.1em; margin: 10px 0 4px; }
.ad-card p { color: #555; font-size: .92em; margin: 0 0 10px; }
.ad-card dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 10px; font-size: .88em; margin: 0 0 14px; }
.ad-card dt { color: #777; }
.ad-card dd { margin: 0; }
.ad-card .ad-btn { margin-top: auto; text-align: center; }
.ad-ok-text, .ad-card .ad-ok { color: #2e7d32; border: 0; background: none; }
.ad-card .ad-warn { color: #b26a00; }
.ad-mock { height: 92px; border: 1px solid #e3e6ea; border-radius: 6px; background: #f7f8fa; position: relative; }
.ad-mock i { position: absolute; background: #f7811e; opacity: .85; border-radius: 3px; }
.ad-mock-top i { left: 8%; right: 8%; top: 8px; height: 14px; }
.ad-mock-bottom i { left: 8%; right: 8%; bottom: 8px; height: 14px; }
.ad-mock-side i { right: 8px; top: 10px; width: 26%; bottom: 10px; }
.ad-mock-inlist i { left: 10px; right: 10px; top: 40px; height: 12px; }
.ad-btn { display: inline-block; background: #f7811e; color: #fff !important; border: 0; border-radius: 8px; padding: 10px 18px; font-weight: 700; font-size: 1em; cursor: pointer; text-decoration: none; }
.ad-btn:hover { background: #e06d0c; }
.ad-form fieldset { border: 1px solid #e3e6ea; border-radius: 10px; padding: 12px 16px 6px; margin: 0 0 16px; }
.ad-form legend { font-weight: 700; padding: 0 6px; }
.ad-row { margin: 0 0 12px; }
.ad-row label { display: block; font-weight: 600; font-size: .92em; margin: 6px 0 4px; }
.ad-row input[type=text], .ad-row input[type=url], .ad-row input[type=email], .ad-row input[type=date], .ad-row textarea, .ad-row select { width: 100%; max-width: 560px; box-sizing: border-box; padding: 8px 10px; border: 1px solid #cfd4db; border-radius: 6px; font: inherit; }
.ad-row select[multiple] { max-width: 560px; }
.ad-choices label { display: inline-flex; gap: 6px; align-items: center; margin: 0 18px 6px 0; font-weight: 500; }
.ad-help { font-size: .85em; color: #666; margin: 4px 0 0; }
.ad-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 18px; }
.ad-total { font-size: 1.15em; margin: 4px 0 12px; }
.ad-total small { color: #666; font-size: .8em; }
.ad-terms { font-size: .85em; color: #444; background: #f7f8fa; border-radius: 8px; padding: 10px 12px; margin: 0 0 10px; max-height: 180px; overflow: auto; }
.ad-agree { display: block; font-size: .9em; margin: 0 0 14px; line-height: 1.5; }
.ad-hide { position: absolute; left: -9999px; }
.ad-preview { padding: 12px; background: #f7f8fa; border-radius: 8px; text-align: center; overflow: auto; }
.ad-preview .wds-ad-label { display: block; font: 600 10px/1.4 system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #8a919c; margin-bottom: 3px; }
.ad-preview img { max-width: 100%; height: auto; }
.ad-preview .wds-ad-text { display: block; text-align: left; max-width: 728px; margin: 0 auto; padding: 10px 14px; border: 1px solid #e3e6ea; border-radius: 8px; background: #fff; text-decoration: none; color: inherit; }
.ad-preview .wds-ad-title { display: block; font-weight: 700; color: #1f3a8a; }
.ad-preview .wds-ad-body { display: block; font-size: .92em; margin: 2px 0; }
.ad-preview .wds-ad-host { display: block; font-size: .8em; color: #2e7d32; }
.ad-chart { display: flex; align-items: flex-end; gap: 2px; height: 90px; margin: 10px 0 6px; }
.ad-chart i { flex: 1; background: #f7811e; min-height: 2px; border-radius: 2px 2px 0 0; }
.ad-renew { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.ad-renew select { padding: 8px 10px; border: 1px solid #cfd4db; border-radius: 6px; font: inherit; }
