/* sosmn.org — News & Archive and About pages. Palette matches Meditation Copilot and sos.org. */
/* Colours, fonts, header and footer come from /css/site.css (loaded first), so every page shares one header and footer. */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
html { scroll-behavior: smooth; }

/* Layout */
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 820px; }

/* Hero & tools */
.hero { padding: 48px 0 18px; }
.hero-inner { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.eyebrow { margin: 0 0 6px; color: var(--gold-ink); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.25; }
.hero h1 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); margin: 0 0 10px; color: var(--navy); }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 62ch; margin: 0 0 20px; }
.tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.search input {
  font: inherit; width: min(340px, 100%); padding: 11px 16px; border-radius: 99px; border: 1px solid var(--line);
  background: var(--card); color: var(--text); box-shadow: var(--shadow);
}
.search input:focus { outline: 2px solid var(--navy); outline-offset: 1px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: inherit; font-size: .86rem; font-weight: 600; padding: 7px 13px; border-radius: 99px; border: 1px solid var(--line);
  background: var(--card); color: var(--text); cursor: pointer; }
.chip.on { background: var(--navy); border-color: var(--navy); color: var(--card); }
.jump { margin: 16px 0 0; font-size: .88rem; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.jump a { text-decoration: none; font-weight: 600; }
.count { color: var(--muted); font-size: .9rem; margin: 10px 0 0; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* Year groups & cards */
.year { margin-top: 22px; scroll-margin-top: 80px; }
.year-h { position: sticky; top: 64px; z-index: 2; margin: 0 0 14px; padding: 8px 0; font-size: 1.5rem; color: var(--gold-ink);
  background: linear-gradient(var(--bg) 70%, transparent); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden;
  transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(4, 58, 91, .14); }
.card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.thumb { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--navy-soft), var(--gold-soft)); display: grid; place-items: center; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .ph { font-size: 3rem; opacity: .85; }
.card-body { padding: 16px 18px 18px; }
.card h3 { margin: 4px 0 8px; font-size: 1.2rem; color: var(--navy); }
.meta { margin: 0; font-size: .8rem; color: var(--muted); font-weight: 600; }
.tag { color: var(--gold-ink); }
.excerpt { margin: 0; font-size: .92rem; color: var(--muted); }
.more { margin: 10px 0 0; font-size: .8rem; font-weight: 600; color: var(--navy); }
.card.ext .thumb { aspect-ratio: auto; height: 10px; }
.card.ext .thumb .ph { display: none; }
.card.ext { border-left: 4px solid var(--gold); }

/* Article */
.crumbs { margin: 28px 0 8px; font-size: .88rem; color: var(--muted); }
.crumbs a { text-decoration: none; font-weight: 600; }
.post header h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin: 6px 0 12px; color: var(--navy); }
.note { background: var(--gold-soft); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-size: .88rem; margin: 0 0 24px; }
.infobox { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; margin: 0 0 24px; box-shadow: var(--shadow); }
.infobox p { margin: 6px 0; }
.prose { font-size: 1.04rem; }
.prose h2 { font-size: 1.5rem; margin: 1.6em 0 .5em; color: var(--navy); }
.prose h3 { font-size: 1.25rem; margin: 1.4em 0 .4em; }
.prose h4 { font-size: 1.05rem; margin: 1.2em 0 .3em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose img { border-radius: 12px; display: block; margin: 12px auto; }
.prose a img { display: block; }
.prose figure { margin: 18px 0; }
.prose figcaption { text-align: center; font-size: .85rem; color: var(--muted); margin-top: 4px; }
.prose .alignleft { float: left; margin: 4px 20px 12px 0; max-width: 45%; }
.prose .alignright { float: right; margin: 4px 0 12px 20px; max-width: 45%; }
.prose .aligncenter { margin-left: auto; margin-right: auto; }
.prose::after { content: ""; display: table; clear: both; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1em; font-size: .95rem; display: block; overflow-x: auto; }
.prose td, .prose th { padding: 6px 8px; vertical-align: top; }
.prose table:has(th) td, .prose table:has(th) th { border: 1px solid var(--line); }
.prose td img { margin: 0; }
.video { position: relative; aspect-ratio: 16 / 9; margin: 18px 0; border-radius: 14px; overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.prose iframe[title="Map"] { width: 100%; min-height: 320px; border: 0; border-radius: 14px; }
@media (max-width: 600px) { .prose .alignleft, .prose .alignright { float: none; margin: 12px auto; max-width: 100%; } }

.related { margin-top: 36px; border-top: 1px solid var(--line); padding-top: 12px; }
.related h2 { font-size: 1.3rem; color: var(--navy); }
.related details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin: 0 0 10px; padding: 0 16px; scroll-margin-top: 80px; }
.related summary { cursor: pointer; font-weight: 700; padding: 14px 0; color: var(--navy); }
.related details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 12px; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 40px 0 0; }
.pager a { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px;
  text-decoration: none; font-weight: 600; color: var(--navy); }
.pager a small { display: block; color: var(--muted); font-weight: 600; font-size: .78rem; }
.pager .older { text-align: right; }


@media (max-width: 640px) {
  .wrap, .hero-inner { padding-left: 16px; padding-right: 16px; }
  .year-h { top: 104px; }
  .pager { grid-template-columns: 1fr; }
  .pager .older { text-align: left; }
}
@media print { header.site, footer.site, .pager, .tools, .jump { display: none; } }

/* About page (2026-11) */
.about-photo { margin: 0 0 22px; }
.about-photo img { width: 100%; height: auto; margin: 0; border-radius: 14px; box-shadow: 0 6px 22px rgba(4, 58, 91, .12); }
.prose section + section, .prose section h2 { clear: both; }
.prose section h2 { margin-top: 28px; }
.prose ol li { margin: 4px 0; }

/* v0.24: photos on stories added in admin */
.story-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 12px 0 18px; }
.story-photos figure { margin: 0; }
.story-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; display: block; }
.story-photos figcaption { font-size: .82rem; color: var(--muted); margin-top: 4px; }
