/* Inner pages: news, posts, community hubs, errors. Builds on styles.css tokens. */
.page-inner .site-header { background: rgba(6, 20, 45, .96); box-shadow: 0 14px 40px rgba(0, 0, 0, .18); backdrop-filter: blur(14px); }
.site-nav a.is-active { color: var(--gold); }
.inner-main { max-width: var(--max); margin: 0 auto; padding: calc(var(--header-h) + 56px) clamp(24px, 5vw, 72px) 110px; }
.page-head { max-width: 860px; margin-bottom: 40px; }
.page-head h1, .post-title, .community-head h1 { margin: 14px 0 0; font-family: Georgia, "Times New Roman", serif; font-weight: 400; line-height: 1.04; font-size: clamp(40px, 6vw, 72px); letter-spacing: -.01em; }
.page-head h1 em, .community-head h1 em { color: var(--gold); font-style: italic; }
.lede { max-width: 640px; margin: 18px 0 0; color: var(--muted); font-size: 18px; line-height: 1.6; }
.actions { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; margin-top: 32px; }
.actions .button-dark { margin-top: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 40px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--gold)); }
.chip:hover, .chip:focus-visible { border-color: var(--navy); }
.chip.active { color: var(--white); background: var(--navy); border-color: var(--navy); }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 28px; }
.card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 22px 50px rgba(11, 23, 48, .12); }
.card-cover { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy); }
.card-cover img { width: 100%; height: 100%; object-fit: cover; }
.card-cover.placeholder { display: grid; place-items: center; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, var(--c, var(--gold)) 160%); }
.card-cover.placeholder span { font-family: Georgia, serif; font-size: 40px; color: var(--c, var(--gold)); letter-spacing: .08em; }
.card-body { display: flex; flex-direction: column; gap: 12px; padding: 22px 24px 26px; }
.card h2 { margin: 0; font-family: Georgia, serif; font-weight: 400; font-size: 26px; line-height: 1.15; }
.card h2 a { text-decoration: none; }
.card h2 a:hover, .card h2 a:focus-visible { text-decoration: underline; text-decoration-color: var(--gold); }
.card p { margin: 0; color: var(--muted); line-height: 1.6; }
.card-meta, .post-meta { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.card .card-meta { margin-top: auto; padding-top: 6px; }
.badge { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-decoration: none; text-transform: uppercase; }
.badge i { width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--gold)); box-shadow: 0 0 0 2px var(--white), 0 0 0 3px var(--c, var(--gold)); }
.badge:hover, .badge:focus-visible { text-decoration: underline; }
.empty { padding: 60px 0; color: var(--muted); font-size: 18px; }

.pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 48px; }
.page-link { padding: 10px 16px; border: 1px solid var(--line); color: var(--ink); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-decoration: none; }
.page-link:hover, .page-link:focus-visible { border-color: var(--navy); }
.page-link.current { color: var(--navy); background: var(--gold); border-color: var(--gold); }

.post { max-width: 860px; margin: 0 auto; }
.post-head { margin-bottom: 36px; }
.post-title { margin-top: 18px; }
.post-meta { margin: 20px 0 0; }
.post-meta a, .x-link { color: var(--navy); }
.post-cover { margin: 0 0 40px; }
.post-cover img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.prose { font-size: 18px; line-height: 1.75; }
.prose > * + * { margin-top: 1.2em; }
.prose h2, .prose h3 { margin-top: 1.8em; font-family: Georgia, serif; font-weight: 400; line-height: 1.15; }
.prose h2 { font-size: clamp(28px, 3.4vw, 38px); }
.prose h3 { font-size: clamp(22px, 2.6vw, 28px); }
.prose p { margin-bottom: 0; }
.prose a { color: var(--navy); text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--gold); color: var(--navy-2); font-family: Georgia, serif; font-size: 1.15em; font-style: italic; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose img { max-width: 100%; height: auto; margin: 0 auto; }
.prose pre { overflow-x: auto; padding: 18px 22px; background: var(--navy); color: var(--paper); font-size: 14px; line-height: 1.6; }
.prose code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; font-size: .92em; }
.prose :not(pre) > code { padding: 2px 6px; background: rgba(11, 23, 48, .08); }
.prose hr { border: 0; border-top: 1px solid var(--line); }
.post-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); color: var(--muted); }
.post-foot p { margin: 0; }
.post-foot a { color: var(--navy); }
.post-foot .button-dark { margin-top: 0; }
.more { max-width: 860px; margin: 72px auto 0; }
.more .section-tag { margin-bottom: 18px; }
.more-list { margin: 0; padding: 0; list-style: none; }
.more-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.more-list a { font-family: Georgia, serif; font-size: 22px; text-decoration: none; }
.more-list a:hover, .more-list a:focus-visible { text-decoration: underline; text-decoration-color: var(--gold); }
.more-list small { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

.community-head { display: flex; gap: 28px; align-items: flex-start; margin-bottom: 44px; padding-top: 28px; border-top: 6px solid var(--c, var(--gold)); }
.community-logo { width: 96px; height: 96px; flex: 0 0 96px; object-fit: contain; border-radius: 50%; background: var(--white); border: 1px solid var(--line); }
.community-links { margin: 18px 0 0; color: var(--muted); }
.community-links a { color: var(--navy); }
.error-page { padding: 40px 0; }

@media (max-width: 720px) {
  .inner-main { padding-top: calc(var(--header-h) + 28px); }
  .community-head { flex-direction: column; }
  .post-foot { flex-direction: column; align-items: flex-start; }
}

/* ---- Community brand backdrop ------------------------------------------------
   The coin's own mascot, sitting far behind the content. Deliberately low-contrast:
   it must never compete with the text in front of it. */
.community-brand {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.community-brand-wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 55% at 82% 12%, color-mix(in srgb, var(--c) 26%, transparent) 0%, transparent 68%),
    radial-gradient(45% 40% at 8% 92%, color-mix(in srgb, var(--c) 16%, transparent) 0%, transparent 70%);
}
.community-brand-mascot {
  position: absolute;
  top: clamp(70px, 12vh, 150px);
  right: clamp(-90px, -6vw, -30px);
  width: clamp(260px, 34vw, 520px);
  height: auto;
  opacity: .09;
  filter: saturate(.85);
  transform: rotate(-6deg);
}
/* The paper background is opaque, so the backdrop needs the body to let it through. */
body.page-inner { background: transparent; }
body.page-inner::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--paper);
}
/* Cards sit on their own solid ground so text contrast is never at the mercy of the art. */
.page-inner .card,
.page-inner .prose,
.page-inner .community-head { position: relative; z-index: 1; }

@media (prefers-contrast: more) {
  .community-brand { display: none; }
}
@media (max-width: 720px) {
  .community-brand-mascot { opacity: .06; width: clamp(200px, 55vw, 320px); }
}
/* Fallback for engines without color-mix: a plain tint rather than nothing. */
@supports not (background: color-mix(in srgb, red 10%, transparent)) {
  .community-brand-wash { background: none; }
  .community-brand-mascot { opacity: .07; }
}
