/* Shared styles for the plain-HTML pages: /issues/, /about, /contact.
   These pages load no app runtime, so search engines and ad reviewers
   see the full text without running JavaScript. */
:root {
  --bg: #F6F5EE; --text: #2F4A3D; --muted: #5E6B5C; --card: #FFFFFF;
  --border: rgba(47,74,61,0.12); --box: #EFEEE3; --gold: #C98A3E; --gold-dark: #B57931; --accent-text: #8A5A1E;
  --sage: #8FA888; --up: #3F8F5F; --down: #B5502F; --us: #2E6CA6; --ph: #B5502F; --cross: #7A5BA6;
  --nav-bg: rgba(246,245,238,0.94); --nav-border: rgba(47,74,61,0.14); --underline: rgba(47,74,61,0.35); --rule: rgba(47,74,61,0.08);
  --btn-bg: #2F4A3D; --btn-text: #F6F5EE;
  color-scheme: light;
}
/* Dark mode: same key the app pages use (localStorage 'bnc-theme'),
   applied to <html data-theme="dark"> by the inline script in <head>. */
:root[data-theme="dark"] {
  --bg: #1B2E24; --text: #F1EFE6; --muted: #B9C7B5; --card: #223A2E;
  --border: rgba(241,239,230,0.14); --box: #223A2E; --gold: #E0A458; --gold-dark: #E0A458; --accent-text: #E5C48F;
  --up: #7FC79A; --down: #E8957A; --us: #2E6CA6; --ph: #B5502F; --cross: #7A5BA6;
  --nav-bg: rgba(27,46,36,0.94); --nav-border: rgba(241,239,230,0.16); --underline: rgba(241,239,230,0.35); --rule: rgba(241,239,230,0.08);
  --btn-bg: #F1EFE6; --btn-text: #1B2E24;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); transition: background-color 0.3s ease, color 0.3s ease; color: var(--text); font-family: 'IBM Plex Sans', system-ui, sans-serif; font-size: 17px; line-height: 1.65; }
a { color: var(--text); text-decoration: underline; text-decoration-color: var(--underline); text-underline-offset: 3px; }
a:hover { color: var(--gold); text-decoration-color: currentColor; }
img { max-width: 100%; }
h1, h2, h3 { font-family: 'Newsreader', Georgia, serif; font-weight: 600; line-height: 1.2; margin: 0; }
.mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; }

.nav { position: sticky; top: 0; z-index: 50; background: var(--nav-bg); border-bottom: 1px solid var(--nav-border); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.nav-in { max-width: 1240px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: 'Newsreader', Georgia, serif; font-weight: 600; font-size: 20px; }
.brand img { height: 38px; width: auto; transform: translateY(-3px); }
.nav-links { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; font-size: 15px; font-weight: 500; }
.nav-links a { text-decoration: none; color: var(--text); white-space: nowrap; }
.nav-links a:hover { color: var(--gold); }
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-links .short { display: none; }
.theme-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--border); background: transparent; color: var(--text); font-size: 16px; line-height: 1; cursor: pointer; transition: background-color 0.2s ease; }
.theme-btn:hover { background: rgba(143,168,136,0.15); }
.brand .logo-d { display: none; }
:root[data-theme="dark"] .brand .logo-l { display: none; }
:root[data-theme="dark"] .brand .logo-d { display: block; }

.wrap { max-width: 760px; margin: 0 auto; padding: 36px 20px 64px; }
.eyebrow { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); margin: 0 0 10px; }
.title { font-size: clamp(30px, 5vw, 44px); margin: 0 0 14px; }
.lede { font-size: 19px; color: var(--muted); margin: 0 0 8px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: 14px; color: var(--muted); margin: 18px 0 0; }

section { margin: 40px 0 0; }
section > h2 { font-size: 26px; margin: 0 0 6px; }
.sec-intro { color: var(--muted); font-size: 15px; margin: 0 0 16px; }
h3 { font-size: 19px; margin: 22px 0 8px; }
.tag { display: inline-block; font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 3px 9px; border-radius: 6px; color: #F6F5EE; vertical-align: middle; margin-right: 8px; }
.tag.us { background: var(--us); } .tag.ph { background: var(--ph); } .tag.cross { background: var(--cross); }

.card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .two { grid-template-columns: 1fr; } }
.two p { margin: 6px 0 0; }

table.snap { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; font-size: 15.5px; }
table.snap { border-collapse: separate; border-spacing: 0; }
.snap-cap { font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
table.snap td { padding: 11px 16px; border-top: 1px solid var(--rule); }
table.snap tr:first-child td { border-top: none; }
table.snap td.v { text-align: right; font-family: 'IBM Plex Mono', monospace; white-space: nowrap; }
.up { color: var(--up); } .down { color: var(--down); } .flat { color: var(--muted); }

.movers { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.movers li { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; }
.movers li.up, .movers li.down { color: var(--text); }
.mv-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.mv-t { font-family: 'IBM Plex Mono', monospace; font-weight: 600; }
.mv-n { color: var(--muted); font-size: 14.5px; }
.mv-c { font-family: 'IBM Plex Mono', monospace; font-weight: 600; white-space: nowrap; }
.mv-r { margin: 6px 0 0; font-size: 15.5px; }

.story p { margin: 0 0 14px; }
.taglish { background: var(--box); border-radius: 12px; padding: 16px 20px; margin: 12px 0 0; }
.taglish .eyebrow { margin-bottom: 6px; }
.watch { margin: 0; padding-left: 22px; } .watch li { margin: 0 0 10px; }
.chart { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.sources { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sources li { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; font-size: 15.5px; }
.src-meta { color: var(--muted); font-size: 13.5px; }
.src-ex { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; }
details.terms { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; }
details.terms summary { cursor: pointer; font-weight: 600; }
details.terms dl { margin: 12px 0 0; } details.terms dt { font-weight: 600; margin: 12px 0 2px; } details.terms dd { margin: 0; color: var(--muted); font-size: 15.5px; }
.disclose { font-size: 13.5px; font-style: italic; color: var(--muted); margin: 28px 0 0; }
.pager { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 40px 0 0; padding: 20px 0 0; border-top: 1px solid var(--border); font-size: 15px; }
.btn { display: inline-block; background: var(--btn-bg); color: var(--btn-text); text-decoration: none; font-weight: 600; font-size: 15px; padding: 12px 20px; border-radius: 8px; }
.btn:hover { background: var(--gold-dark); color: #F6F5EE; }
.btn.gold { background: var(--gold); }

.issue-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.issue-list a { display: block; text-decoration: none; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; }
.issue-list a:hover { border-color: var(--gold); color: var(--text); }
.il-d { font-family: 'IBM Plex Mono', monospace; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-dark); }
.il-t { display: block; margin: 4px 0 0; font-size: 16px; }
.month { font-size: 22px; margin: 34px 0 12px; }

.people { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .people { grid-template-columns: 1fr; } }
.person img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; display: block; margin: 0 0 10px; }
.person h3 { margin: 0; } .person .role { color: var(--gold-dark); font-weight: 600; font-size: 14.5px; margin: 2px 0 0; }
.person .edu { color: var(--muted); font-size: 13.5px; font-style: italic; margin: 6px 0 10px; }
.prose p { margin: 0 0 16px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }

/* footer: same centered layout as the app pages, in light and dark */
.foot { background: #2F4A3D; color: #F6F5EE; margin: 40px 0 0; padding: 40px 24px; text-align: center; position: relative; overflow: hidden; line-height: normal; }
.foot-tex { position: absolute; inset: 0; opacity: 0.05; pointer-events: none; }
.foot-in { position: relative; z-index: 1; }
.foot a { text-decoration: none; }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 10px; color: #F6F5EE; font-family: 'Newsreader', Georgia, serif; font-weight: 600; font-size: 17px; }
.foot-brand:hover { color: #F6F5EE; }
.foot-brand img { height: 26px; width: auto; transform: translateY(-2px); }
.foot-tag { font-size: 14px; color: #C7D0C4; margin: 0 0 10px; }
.foot-disc { font-size: 12.5px; color: #C7D0C4; margin: 0 auto 10px; max-width: 560px; line-height: 1.6; }
.foot-sub { display: none; }
.signed-in .foot-sub { display: inline; }
.foot-sub { font-size: 13px; color: #C98A3E; font-weight: 600; transition: opacity 0.15s ease; }
.foot-sub:hover { color: #C98A3E; opacity: 0.75; }
.foot-rule { height: 1px; background: rgba(246,245,238,0.15); max-width: 560px; margin: 20px auto 0; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; margin: 16px 0 0; }
.foot-links a { font-size: 13px; color: #8FA888; transition: color 0.15s ease; }
.foot-links a:hover { color: #C98A3E; }
.foot-copy { font-size: 12px; color: #C7D0C4; margin: 16px 0 0; }
/* page header with a rule under it, like the app's archive page */
.page-head { border-bottom: 2px solid var(--text); padding: 0 0 22px; margin: 0 0 28px; }
.page-head .lede { margin: 0; }
@media (max-width: 919px) { .nav-in { min-height: 72px; } }
@media (max-width: 760px) { .nav-links { gap: 18px; } }
@media (max-width: 560px) {
  .nav-in { gap: 10px; }
  .brand { white-space: nowrap; font-size: 18px; }
  .brand .brand-name { display: none; }
  .nav-links { gap: 12px; font-size: 14px; flex-wrap: nowrap; }
  .nav-links .full { display: none; } .nav-links .short { display: inline; }
}
@media (max-width: 560px) { .wrap { padding-left: 24px; padding-right: 24px; } }
@media (max-width: 380px) { .nav-in { padding-left: 20px; padding-right: 20px; } .nav-links { gap: 10px; } }

/* About page */
.ab { padding: 0 0 24px; }
.ab-in { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.ab-hero { position: relative; overflow: hidden; margin: 0; }
.ab-tex { position: absolute; inset: 0; pointer-events: none; opacity: 0.1; -webkit-mask-image: linear-gradient(to bottom, #000 35%, transparent 100%); mask-image: linear-gradient(to bottom, #000 35%, transparent 100%); }
.ab-tex pattern * { stroke: #2F4A3D; }
:root[data-theme="dark"] .ab-tex { opacity: 0.16; }
:root[data-theme="dark"] .ab-tex pattern * { stroke: #FFFFFF; }
.ab-head { position: relative; padding-top: 72px; padding-bottom: 0; }
.ab-head::after { content: ''; display: block; border-bottom: 2px solid var(--text); margin-top: 28px; }
.ab-title { font-size: clamp(34px, 5vw, 56px); line-height: 1.08; margin: 0 0 18px; max-width: 900px; text-wrap: balance; }
.ab-lede { font-size: 20px; line-height: 1.55; color: var(--muted); margin: 0; max-width: 720px; }
.ab-sec { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 40px; padding: 44px 0; margin: 0; border-bottom: 1px solid var(--border); }
.ab-sec.ab-last { border-bottom: none; }
.ab-sec > h2 { font-size: 28px; margin: 0; line-height: 1.2; }
.ab-body { max-width: 820px; }
.ab-body p { margin: 0 0 16px; } .ab-body p:last-child { margin: 0; }
.ab-people { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; max-width: none; }
.ab-person { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 24px 24px 26px; border-radius: 14px; border: 1px solid rgba(47,74,61,0.2); background: var(--card); color: var(--text); text-decoration: none; box-shadow: 0 1px 2px rgba(47,74,61,0.04); transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; }
.ab-person:hover { color: var(--text); background: #F3F4F3; border-color: #2F4A3D; transform: translateY(-3px) scale(1.02); box-shadow: 0 14px 30px rgba(47,74,61,0.14); }
:root[data-theme="dark"] .ab-person { border-color: rgba(241,239,230,0.16); }
:root[data-theme="dark"] .ab-person:hover { background: #2F4639; border-color: #8FA888; }
.ab-person img { width: 160px; height: 190px; max-width: 100%; border-radius: 16px; object-fit: cover; display: block; margin: 0 0 16px; }
.ab-name { font-family: 'Newsreader', Georgia, serif; font-weight: 600; font-size: 18px; }
.ab-role { font-size: 13px; font-weight: 600; color: #C98A3E; margin: 2px 0 10px; }
.ab-edu { font-size: 12.5px; color: #8FA888; font-style: italic; line-height: 1.5; margin: -6px 0 10px; }
.ab-bio { font-size: 14px; line-height: 1.6; color: var(--muted); }
.ab-steps { list-style: none; margin: 0; padding: 0; }
.ab-steps li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 20px; align-items: start; padding: 26px 0; border-bottom: 1px solid var(--border); }
.ab-steps li:first-child { padding-top: 0; }
.ab-steps li:last-child { padding-bottom: 0; border-bottom: none; }
.ab-num { font-family: 'Newsreader', Georgia, serif; font-style: italic; font-size: 22px; line-height: 1.3; color: #C98A3E; }
.ab-steps h3 { font-size: 19px; margin: 0 0 8px; text-wrap: pretty; }
.ab-steps p { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 0; }
@media (max-width: 860px) {
  .ab-sec { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 32px 0; }
  .ab-head { padding-top: 44px; }
  .ab-lede { font-size: 18px; }
  .ab-steps li { grid-template-columns: 40px minmax(0, 1fr); }
}
/* short pages: footer stays at the bottom of tall screens */
body > main { flex: 1 0 auto; width: 100%; }

/* contact page */
.ct-body { max-width: none; }
.ct-mail { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; padding: 18px 20px; border: 1px solid var(--border); border-radius: 14px; background: var(--card); }
.ct-mail-k { width: 100%; font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
.ct-mail-addr { font-family: 'IBM Plex Mono', monospace; font-weight: 600; font-size: clamp(16px, 2.2vw, 22px); color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.ct-mail-addr:hover { color: var(--gold); }
.ct-copy { margin-left: auto; height: 40px; padding: 0 18px; border-radius: 10px; border: none; background: #C98A3E; color: #F6F5EE; font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; transition: background-color .2s ease, transform .1s ease; }
.ct-copy:hover { background: #B57931; } .ct-copy:active { transform: scale(0.96); }
.ab-body .ct-hint { font-size: 15px; color: var(--muted); margin: 20px 0 12px; }
.ct-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ct-card, .ct-soc { display: flex; flex-direction: column; gap: 6px; padding: 20px 20px 18px; border-radius: 14px; border: 1px solid rgba(47,74,61,0.2); background: transparent; color: var(--text); text-decoration: none; transition: transform .25s ease, background-color .25s ease, border-color .25s ease, box-shadow .25s ease; }
.ct-card:hover, .ct-soc:hover { color: var(--text); background: #F3F4F3; border-color: #2F4A3D; transform: translateY(-3px) scale(1.02); box-shadow: 0 14px 30px rgba(47,74,61,0.14); }
:root[data-theme="dark"] .ct-card, :root[data-theme="dark"] .ct-soc { border-color: rgba(241,239,230,0.16); }
:root[data-theme="dark"] .ct-card:hover, :root[data-theme="dark"] .ct-soc:hover { background: #2F4639; border-color: #8FA888; }
.ct-num { font-family: 'Newsreader', Georgia, serif; font-style: italic; font-size: 22px; line-height: 1.2; color: #C98A3E; }
.ct-t { font-family: 'Newsreader', Georgia, serif; font-weight: 600; font-size: 19px; line-height: 1.25; display: block; }
.ct-d { font-size: 14.5px; line-height: 1.55; color: var(--muted); flex: 1; }
.ct-go { margin-top: 8px; font-size: 14px; font-weight: 600; }
.ct-card:hover .ct-go { color: #C98A3E; }
.ct-social { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ct-soc { flex-direction: row; align-items: center; gap: 14px; padding: 16px 18px; }
.ct-ico { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--box); color: var(--text); }
.ct-h { display: block; font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--muted); margin-top: 2px; }
.ct-arrow { margin-left: auto; font-size: 18px; color: var(--muted); }
.ct-soc:hover .ct-arrow { color: #C98A3E; }
.ct-quiet { color: var(--muted); }
@media (max-width: 860px) {
  .ct-grid, .ct-social { grid-template-columns: minmax(0, 1fr); }
  .ct-copy { margin-left: 0; }
}
