/* ==========================================================================
   usaindiacfo.com — public PHP tier (blog index / post / category, login)
   Overrides on top of /assets/css/clay.css (v27 "Warm Bronze Clay").
   Load order: clay.css FIRST, then this file. Everything here reuses clay's
   tokens (--ink*, --bronze*, --line, --clay-*, --r*, --ease, --gutter) and
   only adds what the blog needs: the mobile sticky bar, category pills,
   post-list meta, pagination, the subscribe band, long-form article type,
   the author block and the admin login card.
   The /manage/ screens do NOT use this file — see admin.css.
   ========================================================================== */

/* ── skip link ──────────────────────────────────────────────────────────── */
.skip-link { position: absolute; left: -9999px; top: 12px; z-index: 200; }
.skip-link:focus { left: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── footer additions ───────────────────────────────────────────────────── */
.ftr__cols { gap: clamp(32px, 4vw, 64px); }
.ftr__tag { margin-left: 8px; font: 500 10px/1 Inter, sans-serif; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(248,243,232,.38); }
.ftr .ftr__hours { margin-top: 14px; color: rgba(248,243,232,.4); }
.ftr__legal { display: flex; gap: 22px; flex-wrap: wrap; }

/* ── mobile sticky bar: Call / WhatsApp / Schedule — hidden at ≥940px ───── */
.mbar { display: none; }
@media (max-width: 939.98px) {
  .mbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    display: grid; grid-template-columns: 1fr 1fr 1.45fr; gap: 6px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
    background: rgba(23, 18, 12, .92);
    backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
    box-shadow: 0 -1px 0 rgba(248,243,232,.08), 0 -12px 32px rgba(0,0,0,.28);
    overflow: hidden;
  }
  .mbar__a {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    min-height: 46px; padding: 0 6px; border-radius: var(--r-pill);
    font: 500 12.5px/1 Inter, sans-serif; color: rgba(248,243,232,.86); white-space: nowrap;
    transition: color .3s var(--ease), background-color .3s var(--ease);
  }
  .mbar__a svg { flex: 0 0 auto; }
  .mbar__a:hover { color: var(--cream); background: rgba(248,243,232,.06); }
  .mbar__a--primary {
    background: linear-gradient(178deg, #e0ad58 0%, #c9933f 56%, #b07f2d 100%);
    color: #17120c;
    box-shadow: inset 0 -3px 6px rgba(120,84,24,.26), inset 0 1px 1px rgba(255,244,216,.5);
  }
  .mbar__a--primary:hover { color: #17120c; background: linear-gradient(178deg, #e6b562 0%, #cf9944 56%, #b58431 100%); }
  /* keep the footer's last line clear of the bar */
  .ftr { padding-bottom: calc(36px + 62px + env(safe-area-inset-bottom, 0px)); }
}
@media print { .mbar { display: none !important; } }

/* ── page-hero top row (title left, note right) ─────────────────────────── */
.head-split { display: flex; align-items: baseline; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.head-split > p { max-width: 36ch; margin-bottom: 14px; }

/* ── category pills ─────────────────────────────────────────────────────── */
.cats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(28px, 3.5vw, 44px); }
.cats .pill { transition: color .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease); }
.cats .pill:hover { color: var(--bronze-deep); }
.cats .pill[aria-current="page"] {
  background: linear-gradient(178deg, #241d15 0%, #17120c 100%);
  color: var(--bronze-bright); box-shadow: var(--clay-dark-in);
}

/* ── post list (index rows) ─────────────────────────────────────────────── */
.posts { margin-top: 0; }
.post-meta { display: block; margin-top: 12px; font: 500 11px/1.6 Inter, sans-serif;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); }
.post-meta b { font-weight: 500; color: var(--bronze-deep); }
.posts .index-row__title { text-wrap: balance; }

/* ── pagination ─────────────────────────────────────────────────────────── */
.pager { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px;
  margin-top: clamp(36px, 4vw, 56px); }
.pager__n {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 44px; height: 44px; padding: 0 12px; border-radius: var(--r-pill);
  font: 500 13px/1 Inter, sans-serif; font-variant-numeric: tabular-nums; color: var(--ink-muted);
  background: linear-gradient(178deg, #fbf8f2 0%, #f0ece1 100%); box-shadow: var(--clay-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), color .3s var(--ease);
}
a.pager__n:hover { transform: translate3d(-1px, -2px, 0); box-shadow: var(--clay-md); color: var(--ink); }
.pager__n[aria-current="page"] {
  background: linear-gradient(178deg, #e0ad58 0%, #c9933f 56%, #b07f2d 100%); color: #17120c;
  box-shadow: inset 0 -3px 6px rgba(120,84,24,.26), inset 0 1px 1px rgba(255,244,216,.5);
}
.pager__nav { padding: 0 18px; }
.pager__gap { color: var(--ink-faint); padding: 0 2px; }

/* ── empty state ────────────────────────────────────────────────────────── */
.empty { max-width: 560px; }

/* ── subscribe band (dark clay) ─────────────────────────────────────────── */
.subscribe { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  gap: clamp(28px, 4vw, 56px); align-items: center; }
.subscribe__form { display: flex; gap: 12px; align-items: stretch; }
.subscribe__form .field { flex: 1 1 auto; }
.subscribe__form .btn { flex: 0 0 auto; }
.subscribe__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.subscribe__status { margin-top: 12px; min-height: 1.4em; color: rgba(248,243,232,.7); }
.clay--dark .field > label { color: rgba(248,243,232,.6); }
/* clay.css only recolours h3/h4 inside .clay--dark; the blog's dark cards use h2 + lede/body/small */
.clay--dark h1, .clay--dark h2 { color: var(--cream); }
.clay--dark .lede, .clay--dark .body { color: rgba(248,243,232,.66); }
.clay--dark .small { color: rgba(248,243,232,.5); }
@media (max-width: 940px) { .subscribe { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .subscribe__form { flex-direction: column; } .subscribe__form .btn { width: 100%; } }

/* ── article page ───────────────────────────────────────────────────────── */
.post-hero h1 { max-width: 22ch; }
.byline { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 26px;
  font: 400 13.5px/1.68 Inter, sans-serif; color: var(--ink-soft); }
.byline b { font-weight: 500; color: var(--ink); }
.post-main { padding-top: clamp(36px, 4vw, 56px); }
.post-figure { margin: 0 0 clamp(36px, 4vw, 56px); }
.post-figure .figure__frame > img { max-height: 560px; }

.post-body { font: 400 17px/1.78 Inter, sans-serif; color: #3a362f; overflow-wrap: break-word; }
.post-body > * + * { margin-top: 1.25em; }
.post-body h2, .post-body h3, .post-body h4 { color: var(--ink); }
.post-body h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.12; margin-top: 2em; }
.post-body h3 { font-size: clamp(1.375rem, 2vw, 1.75rem); line-height: 1.2; margin-top: 1.7em; }
.post-body h4 { font-size: 1.25rem; line-height: 1.3; margin-top: 1.5em; }
.post-body h2 + *, .post-body h3 + *, .post-body h4 + * { margin-top: .75em; }
.post-body a { color: var(--bronze-deep); text-decoration: underline;
  text-decoration-color: rgba(168,118,47,.4); text-underline-offset: 3px; }
.post-body a:hover { text-decoration-color: currentColor; }
/* imported posts wrap FAQ headings in anchors — keep them headings, not links */
.post-body h2 a, .post-body h3 a, .post-body h4 a { color: inherit; text-decoration: none; }
.post-body h2 a:hover, .post-body h3 a:hover, .post-body h4 a:hover { color: var(--bronze-deep); text-decoration: underline; }
.post-body strong, .post-body b { font-weight: 600; color: var(--ink); }
.post-body ul, .post-body ol { padding-left: 1.4em; }
.post-body li + li { margin-top: .5em; }
.post-body li::marker { color: var(--bronze-deep); }
.post-body blockquote { margin: 2em 0; padding: 4px 0 4px 28px; border-left: 2px solid var(--bronze);
  font: 300 clamp(1.25rem, 1.9vw, 1.5rem)/1.45 Newsreader, Georgia, serif; font-style: italic; color: var(--ink); }
.post-body blockquote p + p { margin-top: .8em; }
.post-body img { display: block; width: 100%; height: auto; border-radius: var(--r-lg);
  box-shadow: var(--clay-md); filter: saturate(.9) sepia(.06); }
.post-body figure { margin: 2em 0; }
.post-body figcaption { margin-top: 12px; font: 400 12.5px/1.55 Inter, sans-serif; color: var(--ink-faint); }
.post-body pre { padding: 20px 24px; border-radius: var(--r); overflow-x: auto;
  background: linear-gradient(178deg, #e9e3d5 0%, #f0ebdf 100%); box-shadow: var(--clay-in);
  font: 400 13.5px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink); }
.post-body code { font: 400 .9em/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  background: rgba(21,21,19,.06); padding: .15em .4em; border-radius: 4px; }
.post-body pre code { background: none; padding: 0; font-size: inherit; }
.post-body table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.post-body th, .post-body td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.post-body th { font: 500 11px/1.6 Inter, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); }
.post-body hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }

.author { display: flex; gap: 24px; align-items: flex-start; margin-top: clamp(44px, 6vw, 72px); }
.author__photo { flex: 0 0 auto; width: 76px; height: 76px; border-radius: 50%; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(178deg, #e9e3d5 0%, #f0ebdf 100%); box-shadow: var(--clay-sm);
  font: 300 1.75rem/1 Newsreader, Georgia, serif; color: var(--bronze-deep); }
.author__photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.82) sepia(.14) contrast(.97); }
.author__name { margin-top: 10px; font: 350 clamp(1.25rem, 1.8vw, 1.5rem)/1.25 Newsreader, Georgia, serif; color: var(--ink); }
.author__cred { margin-top: 4px; font: 500 11px/1.6 Inter, sans-serif; letter-spacing: .16em;
  text-transform: uppercase; color: var(--bronze-deep); }
.author__bio { margin-top: 10px; max-width: 60ch; }
@media (max-width: 560px) { .author { flex-direction: column; gap: 16px; } }

.post-cta { margin-top: clamp(36px, 5vw, 56px); display: flex; align-items: center;
  justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.post-cta__acts { display: flex; gap: 14px; flex-wrap: wrap; }

.notfound { min-height: 64svh; display: flex; align-items: center; }

/* ── admin login (the one /manage/ screen on the public chrome) ─────────── */
.login-page { min-height: 100svh; display: flex; align-items: center; justify-content: center;
  padding: 40px var(--gutter); }
.login { width: 100%; max-width: 440px; }
.login__logo { height: 30px; width: auto; margin-bottom: 30px; }
.login h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin-top: 14px; }
.login .body { margin-top: 10px; }
.login form { margin-top: 30px; }
.login .btn { width: 100%; }
.login__foot { margin-top: 22px; }
.alert { padding: 16px 20px; border-radius: var(--r-sm); font: 400 14px/1.6 Inter, sans-serif;
  box-shadow: var(--clay-in); margin-top: 22px; }
.alert-error { background: linear-gradient(178deg, #f1e2dc 0%, #f5e9e4 100%); color: #8a2f20; }
.alert-success { background: linear-gradient(178deg, #e7eedf 0%, #eef3e8 100%); color: #3f5137; }
