/* pb_footer 0.1: the footer as a green band like the header, grouped links, two-pill theme switch */
.pdf { margin-top: 32px; background: #1f6f52; color: rgba(255,255,255,.82); font-size: 13px; line-height: 1.9; }
/* #footer: the theme styles footer links by id, so ours need the same weight */
#footer.pdf a, #footer.pdf a:visited { color: #fff; text-decoration: none; }
#footer.pdf a:hover { color: #fff; text-decoration: underline; }
#footer.pdf .pdf-col a { color: rgba(255,255,255,.85); }
.pdf-in { max-width: 1240px; margin: 0 auto; padding: 28px 16px 20px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; box-sizing: border-box; }
#footer.pdf a.pdf-logo { display: inline-flex; align-items: center; gap: 12px; }
.pdf-mark { width: 46px; height: 46px; border-radius: 50%; background: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pdf-name { display: flex; flex-direction: column; line-height: 1.5; }
.pdf-name b { font-size: 18px; color: #fff; }
.pdf-name small { font-size: 12px; color: rgba(255,255,255,.75); }
.pdf-about { margin: 12px 0 0; max-width: 300px; font-size: 13px; line-height: 2; color: rgba(255,255,255,.78); }
.pdf-founder { font-size: 12px; color: rgba(255,255,255,.7); }
.pdf-bar { align-items: center; flex-wrap: wrap; }
.pdf-col { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.pdf-col h2 { margin: 0 0 6px; font-size: 13px; font-weight: 800; color: #fff; }
.pdf-col form { margin: 0; }
.pdf-themes { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(0,0,0,.18); gap: 2px; }
.pdf-themes button { height: 30px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: rgba(255,255,255,.85); font: inherit; font-weight: 700; cursor: pointer; }
.pdf-themes button[aria-pressed="true"] { background: #fff; color: #1f6f52; }
.pdf-themes button:focus-visible, .pdf a:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
#footer.pdf .enamad { display: inline-flex; margin-top: 10px; padding: 4px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); min-width: 62px; min-height: 68px; align-items: center; justify-content: center; color: var(--muted) !important; font-size: 11px; text-align: center; }
/* the seal loads from enamad.ir, which fails outside Iran: keep the alt text small inside the card */
#footer.pdf .enamad img { display: block; max-width: 100%; height: auto; font-size: 11px; color: var(--muted); }
.pdf-bar { border-top: 1px solid rgba(255,255,255,.14); }
.pdf-bar { max-width: 1240px; margin: 0 auto; padding: 10px 16px 14px; display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: rgba(255,255,255,.7); box-sizing: border-box; }
.pdf-debug { max-width: 1240px; margin: 0 auto; padding: 0 16px 14px; font-size: 11px; color: rgba(255,255,255,.5); text-align: left; }
#footer.pdf .pdf-debug a { color: rgba(255,255,255,.7); }
.pdf-in { grid-template-columns: 1.3fr .8fr .8fr 1.5fr; }
/* Official channels: drawn like the brand block */
.pdf-oh { display: flex; align-items: center; gap: 12px; }
.pdf-mark-s { color: #1f6f52; }
.pdf-ch { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
.pdf-ch li { margin: 0; padding: 0; border: 0; }
#footer.pdf .pdf-ch a { display: flex; align-items: center; gap: 10px; padding: 6px 8px; margin: 0 -8px; border-radius: 10px; color: #fff; text-decoration: none; transition: background-color .15s ease; }
#footer.pdf .pdf-ch a:hover { background: rgba(255,255,255,.1); text-decoration: none; }
#footer.pdf .pdf-ch a:focus-visible { outline: 3px solid #f59e0b; outline-offset: 1px; }
.pdf-ci { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.14); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pdf-ct { display: flex; flex-direction: column; line-height: 1.45; min-width: 0; }
.pdf-ct b { font-size: 13px; font-weight: 700; }
.pdf-ct small { font-size: 11.5px; color: rgba(255,255,255,.7); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdf-warn { margin: 10px 0 0; font-size: 12px; line-height: 1.9; color: rgba(255,255,255,.75); }
#footer.pdf .pdf-warn a { color: #fff; text-decoration: underline; }
.pdf-seal { margin-top: 12px; }
#footer.pdf .pdf-seal .enamad { margin-top: 0; }
/* Scam warning bar, top of every page */
.pb-scam { display: flex; align-items: center; gap: 10px; padding: 8px 16px; background: #fbf1cf; color: #6e5214; font-size: 13px; line-height: 1.8; border-bottom: 1px solid #ecdca8; }
.pb-scam[hidden] { display: none; }
.pb-scam svg { flex-shrink: 0; }
.pb-scam p { margin: 0; flex: 1; }
.pb-scam a { color: #6e5214; font-weight: 700; text-decoration: underline; }
.pb-scam button { flex-shrink: 0; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: #6e5214; font-size: 20px; line-height: 1; cursor: pointer; }
.pb-scam button:hover { background: rgba(110,82,20,.1); }
.pb-scam button:focus-visible, .pb-scam a:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
/* Official channels card on about.php and contact.php */
.pb-official { scroll-margin-top: 80px; }
.pb-official .card-h { display: flex; align-items: center; gap: 8px; }
.pb-official .card-h svg { color: var(--link); }
.pb-official > p, .pb-official > ul { margin-inline: 16px; }
.pb-official p { margin-top: 0; margin-bottom: 10px; line-height: 2; }
.pb-official > p:last-child { margin-bottom: 16px; }
.pb-ch { list-style: none; margin-top: 0; margin-bottom: 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.pb-ch li { margin: 0; padding: 0; border: 0; }
.pb-ch a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; }
.pb-ch a:hover { border-color: var(--link); background: var(--link-soft); }
.pb-ch a svg { color: var(--link); flex-shrink: 0; }
.pb-ch span { margin-inline-start: auto; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-official-note { font-size: 13px; color: var(--muted); }
.login .pb-official { margin-bottom: 14px; }
@media (max-width: 860px) { .pdf-in { grid-template-columns: 1fr 1fr; } .pdf-brand, .pdf-official { grid-column: 1 / -1; } }
@media (max-width: 480px) { .pdf-in { gap: 16px 12px; padding-top: 22px; } .pdf-ch { grid-template-columns: 1fr; } .pb-scam { padding: 8px 12px; font-size: 12.5px; } }

/* Design system: buttons are pills or circles only (preview, loaded on every page for the preview account) */
.button, .btn, input[type="submit"], input[type="button"], button.btn { border-radius: 999px !important; }
