/* ============================================================
   Held in Grace — styles.css
   A devotional book, brought to life. Mobile-first, no build step.
   ============================================================ */

/* ---------------- Tokens ---------------- */
:root {
  /* Surfaces */
  --ivory:      #FAF7F2;   /* main background   */
  --linen:      #F3EFE8;   /* sections, panels  */
  --paper:      #FFFDFA;   /* raised cards      */

  /* Brand */
  --sage:       #6B7A56;   /* primary — logo leaf mid-tone  */
  --sage-deep:  #4B5436;   /* fills — exact logo forest green */
  --sage-ink:   #404A2E;   /* sage text — logo forest green, darkened */
  --sage-soft:  #EAECDF;   /* tint of logo green */
  --blue:       #A1A47D;   /* logo leaf sage */
  --blue-soft:  #F0F0E6;   /* tint of leaf sage */
  --gold:       #BB9853;   /* exact logo gold rule colour */
  --gold-ink:   #7A6030;   /* gold at legible contrast */
  --gold-soft:  #F6F0E2;

  /* Text */
  --ink:        #2E2E2E;
  --ink-2:      #6F785B;   /* logo tagline text */
  --ink-3:      #8A8A8A;

  /* Lines & shadow */
  --line:       rgba(46, 46, 46, .09);
  --line-soft:  rgba(46, 46, 46, .055);
  --hair-gold:  rgba(212, 178, 95, .55);
  --shadow-sm:  0 2px 8px -5px rgba(74, 66, 52, .35);
  --shadow:     0 14px 34px -26px rgba(74, 66, 52, .55);
  --shadow-lg:  0 26px 56px -34px rgba(74, 66, 52, .60);

  /* Shape */
  --r-xl: 26px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-pill: 999px;

  /* Type */
  --display: "Playfair Display", Georgia, "Times New Roman", serif;
  --body:    "Lora", Georgia, "Times New Roman", serif;
  --ui:      "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --col: 560px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------------- Accessibility ---------------- */
.skip-link {
  position: absolute; left: 12px; top: -70px; z-index: 90;
  background: var(--paper); padding: .65rem 1.1rem; border-radius: var(--r-md);
  font-family: var(--ui); font-size: .9rem; text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow); transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

.vh {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: 3px; border-radius: 8px; }

/* ---------------- Shell ---------------- */
.shell {
  width: 100%;
  max-width: var(--col);
  margin-inline: auto;
  padding: 0 20px calc(112px + env(safe-area-inset-bottom));
}

.topbar {
  display: flex; align-items: center; justify-content: flex-start;
  padding: 16px 0 8px;
}
/* logo image replaces the text wordmark */

/* ---------------- Shared type ---------------- */
.eyebrow {
  font-family: var(--ui);
  font-size: .655rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 .55rem;
}
.eyebrow.gold { color: var(--gold-ink); }
.eyebrow.sage { color: var(--sage-ink); }

h1, h2, h3 { font-family: var(--display); font-weight: 600; color: var(--ink); margin: 0; line-height: 1.2; }
h1 { font-size: clamp(1.85rem, 7vw, 2.35rem); letter-spacing: .1px; }
h2 { font-size: 1.32rem; }
h3 { font-size: 1.06rem; }

p { margin: 0 0 .9rem; }
p:last-child { margin-bottom: 0; }
.muted { color: var(--ink-2); font-size: .96rem; }
.fine  { color: var(--ink-2); font-size: .84rem; font-family: var(--ui); line-height: 1.6; }

/* Gold diamond divider — the workbook's own mark */
.rule { display: flex; align-items: center; justify-content: center; gap: .7rem; margin: .95rem 0; }
.rule i { display: block; height: 1px; width: 46px; background: linear-gradient(90deg, transparent, var(--hair-gold)); }
.rule .dia + i { background: linear-gradient(270deg, transparent, var(--hair-gold)); }
.dia { width: 6px; height: 6px; background: var(--gold); rotate: 45deg; flex: none; border-radius: 1px; }
.rule.tight { margin: .7rem 0; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--ui); font-size: .95rem; font-weight: 600; line-height: 1;
  padding: .92rem 1.5rem; border-radius: var(--r-pill);
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .2s ease, box-shadow .25s ease, background .2s ease, border-color .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-primary { background: var(--sage-deep); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: #526E62; transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-quiet {
  background: var(--paper); color: var(--ink); border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-quiet:hover { transform: translateY(-1px); box-shadow: var(--shadow); border-color: rgba(127,156,144,.5); }
.btn-ghost { background: transparent; color: var(--sage-ink); padding: .7rem .9rem; }
.btn-ghost:hover { background: var(--sage-soft); }
.btn-block { display: flex; width: 100%; }
.btn[aria-pressed="true"] { background: var(--sage-soft); border-color: rgba(127,156,144,.55); color: var(--sage-ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.btn-row .btn { flex: 1 1 auto; }

/* ---------------- Cards ---------------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-xl);
  padding: 1.5rem 1.35rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.05rem;
}
.card > h2 { margin-bottom: .45rem; }
.card-linen { background: var(--linen); box-shadow: none; border-color: var(--line-soft); }

/* ---------------- Views & motion ---------------- */
.view { display: none; }
.view.is-active { display: block; animation: viewIn .5s cubic-bezier(.22,.68,.36,1) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.stagger > * { animation: riseIn .55s cubic-bezier(.22,.68,.36,1) both; }
.stagger > :nth-child(1) { animation-delay: .02s; }
.stagger > :nth-child(2) { animation-delay: .09s; }
.stagger > :nth-child(3) { animation-delay: .16s; }
.stagger > :nth-child(4) { animation-delay: .23s; }
.stagger > :nth-child(5) { animation-delay: .30s; }
.stagger > :nth-child(6) { animation-delay: .37s; }
.stagger > :nth-child(7) { animation-delay: .44s; }
@keyframes riseIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------------- Greeting ---------------- */
.greeting { padding: .6rem 0 1.35rem; text-align: center; }
.greeting h1 { margin-bottom: .3rem; }
.greeting .sub {
  font-family: var(--display); font-style: italic; font-size: 1.06rem;
  color: var(--ink-2); margin: 0;
}

/* ---------------- The arch (signature) ---------------- */
.arch-card { margin-bottom: 1.05rem; }
.arch {
  position: relative;
  border-radius: 50% 50% var(--r-xl) var(--r-xl) / 34% 34% var(--r-xl) var(--r-xl);
  padding: 3.1rem 1.6rem 2.1rem;
  text-align: center;
  overflow: hidden;
  border: 1px solid rgba(212, 178, 95, .34);
  background:
    radial-gradient(112% 74% at 50% 6%, rgba(212, 178, 95, .30), rgba(212, 178, 95, 0) 62%),
    radial-gradient(150% 90% at 50% 108%, rgba(175, 196, 213, .40), rgba(175, 196, 213, 0) 64%),
    linear-gradient(180deg, #FDFAF4 0%, var(--linen) 100%);
  box-shadow: var(--shadow);
}
.arch::before {              /* rising sun, low behind the words */
  content: "";
  position: absolute; left: 50%; top: 8%;
  width: 168px; height: 168px; translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 178, 95, .42), rgba(212, 178, 95, .08) 58%, transparent 70%);
  animation: dawn 9s ease-in-out infinite;
  pointer-events: none;
}
@keyframes dawn {
  0%, 100% { transform: scale(1);    opacity: .78; }
  50%      { transform: scale(1.12); opacity: 1; }
}
.arch::after {               /* horizon line */
  content: "";
  position: absolute; left: 14%; right: 14%; bottom: 1.15rem; height: 1px;
  background: linear-gradient(90deg, transparent, var(--hair-gold), transparent);
}
.arch > * { position: relative; z-index: 1; }
.arch .verse {
  font-family: var(--display); font-style: italic; font-weight: 500;
  font-size: clamp(1.2rem, 4.9vw, 1.42rem); line-height: 1.55;
  color: var(--ink); margin: 0;
}
.arch .ref {
  font-family: var(--ui); font-size: .68rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--gold-ink);
  margin: 0 0 .35rem;
}
.arch-line {
  font-family: var(--body); font-size: .97rem; color: var(--ink-2);
  text-align: center; margin: .95rem auto 0; max-width: 34ch; line-height: 1.65;
}

/* ---------------- Row cards (tappable) ---------------- */
.row-card {
  display: flex; align-items: center; gap: 1rem;
  width: 100%; text-align: left; cursor: pointer;
  font-family: var(--body); font-size: 1rem;
  transition: transform .2s ease, box-shadow .25s ease;
}
.row-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.row-card .glyph {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--sage-soft); color: var(--sage-deep);
}
.row-card .glyph svg { width: 22px; height: 22px; }
.row-card .rc-body { flex: 1; min-width: 0; }
.rc-title { display: block; font-family: var(--display); font-size: 1.06rem; font-weight: 600; margin-bottom: .1rem; }
.rc-sub   { display: block; font-size: .92rem; color: var(--ink-2); line-height: 1.5; }
.row-card .chev { color: var(--ink-3); flex: none; }
.row-card .chev svg { width: 18px; height: 18px; }

/* ---------------- Progress ---------------- */
.prog-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.prog-head .count { font-family: var(--ui); font-size: .8rem; font-weight: 600; color: var(--sage-ink); }
.dots { display: flex; gap: .45rem; margin: 1rem 0 .9rem; }
.dots span {
  flex: 1; height: 6px; border-radius: var(--r-pill);
  background: var(--linen); border: 1px solid var(--line-soft);
  transition: background .35s ease;
}
.dots span.done { background: var(--sage); border-color: transparent; }
.dots span.now  { background: var(--gold); border-color: transparent; }

/* ---------------- Gift card (home) ---------------- */
.gift-card { display: flex; gap: 1.1rem; align-items: center; }
.gift-card .gift-body { flex: 1; min-width: 0; }
.gift-card .cover-mini {
  width: 82px; flex: none; border-radius: 8px; overflow: hidden;
  box-shadow: 0 10px 22px -14px rgba(74, 66, 52, .7);
  border: 1px solid var(--line-soft);
}
.gift-card .cover-mini img { width: 100%; height: auto; }
.gift-card h2 { font-size: 1.18rem; margin-bottom: .1rem; }
.gift-card .sub {
  font-family: var(--display); font-style: italic; font-size: .95rem;
  color: var(--ink-2); margin: 0 0 .75rem;
}

/* ---------------- Check-in grid ---------------- */
.view-head { text-align: center; padding: .4rem 0 1.4rem; }
.view-head h1 { margin-bottom: .4rem; }
.view-head p { color: var(--ink-2); margin: 0 auto; max-width: 32ch; font-size: .98rem; }

.moods { display: grid; gap: .8rem; }
@media (min-width: 500px) { .moods { grid-template-columns: 1fr 1fr; } }

.mood {
  display: flex; align-items: center; gap: .95rem;
  text-align: left; width: 100%; cursor: pointer;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 1.05rem 1.1rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s cubic-bezier(.22,.68,.36,1), box-shadow .25s ease, border-color .25s ease;
}
.mood:hover  { transform: translateY(-3px); box-shadow: var(--shadow); }
.mood:active { transform: translateY(0) scale(.985); }
.mood .ico {
  width: 48px; height: 48px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  transition: transform .3s cubic-bezier(.22,.68,.36,1);
}
.mood:hover .ico { transform: scale(1.06); }
.mood .ico svg { width: 25px; height: 25px; }
.mood .label { font-family: var(--display); font-size: 1.1rem; font-weight: 600; display: block; }
.mood .theme { display: block; font-family: var(--ui); font-size: .765rem; color: var(--ink-2); letter-spacing: .01em; }

.tone-blue .ico { background: var(--blue-soft); color: #5C7A93; }
.tone-blue:hover { border-color: rgba(175, 196, 213, .8); }
.tone-sage .ico { background: var(--sage-soft); color: var(--sage-deep); }
.tone-sage:hover { border-color: rgba(127, 156, 144, .7); }
.tone-gold .ico { background: var(--gold-soft); color: var(--gold-ink); }
.tone-gold:hover { border-color: rgba(212, 178, 95, .7); }

/* ---------------- Response (devotional) ---------------- */
.back {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--ui); font-size: .85rem; font-weight: 600;
  color: var(--ink-2); background: none; border: 0; cursor: pointer;
  padding: .5rem .1rem; margin-bottom: .3rem;
}
.back:hover { color: var(--ink); }
.back svg { width: 15px; height: 15px; }

.resp-head { text-align: center; padding: .2rem 0 1.25rem; }
.resp-head .theme {
  font-family: var(--display); font-style: italic; font-size: 1.04rem;
  color: var(--ink-2); margin: 0;
}

/* Scripture — the one place gold leads */
.scripture {
  background: var(--gold-soft);
  border: 1px solid rgba(212, 178, 95, .35);
  border-radius: var(--r-xl);
  padding: 1.7rem 1.4rem 1.5rem;
  text-align: center;
  margin-bottom: 1.05rem;
  box-shadow: var(--shadow-sm);
}
.scripture .quote-mark {
  font-family: var(--display); font-size: 2.6rem; line-height: .6;
  color: rgba(212, 178, 95, .55); display: block; margin-bottom: .55rem;
}
.scripture .verse {
  font-family: var(--display); font-style: italic; font-weight: 500;
  font-size: clamp(1.16rem, 4.7vw, 1.34rem); line-height: 1.58; margin: 0;
}
.scripture .ref {
  font-family: var(--ui); font-size: .68rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--gold-ink); margin: 0;
}

.movement { margin-bottom: 1.05rem; }
.movement .eyebrow { text-align: center; }
.movement .body { font-size: 1.01rem; line-height: 1.75; color: #3B3B39; margin: 0; }

/* Declaration — spoken aloud, so it is set like a plate */
.declaration {
  border-top: 1px solid var(--hair-gold);
  border-bottom: 1px solid var(--hair-gold);
  background: linear-gradient(180deg, rgba(247, 241, 227, .8), rgba(250, 247, 242, .35));
  padding: 1.5rem 1.2rem;
  text-align: center;
  border-radius: 4px;
  margin-bottom: 1.05rem;
}
.declaration .say {
  font-family: var(--display); font-size: 1.16rem; line-height: 1.55; margin: 0;
}

/* Prayer card */
.prayer-card { background: var(--sage-soft); border-color: rgba(127, 156, 144, .3); }
.prayer-card .body {
  font-family: var(--body); font-style: italic; font-size: 1.03rem;
  line-height: 1.78; color: #33413B;
}
.prayer-card .amen {
  font-family: var(--display); font-style: italic; color: var(--sage-ink);
  text-align: center; margin: .8rem 0 0; font-size: 1.02rem;
}

/* Guide cross-reference */
.crossref {
  display: flex; align-items: center; gap: .85rem;
  width: 100%; text-align: left; cursor: pointer;
  background: var(--linen); border: 1px dashed rgba(212, 178, 95, .6);
  border-radius: var(--r-lg); padding: 1rem 1.1rem; margin-bottom: 1.05rem;
  font-family: var(--ui); font-size: .88rem; color: var(--ink-2);
  transition: background .2s ease, border-color .2s ease;
}
.crossref:hover { background: var(--gold-soft); border-color: var(--gold); }
.crossref strong { display: block; font-family: var(--display); font-size: 1.02rem; color: var(--ink); font-weight: 600; }
.crossref .day-no {
  width: 40px; height: 40px; flex: none; border-radius: 50%;
  display: grid; place-items: center; background: var(--paper);
  border: 1px solid rgba(212, 178, 95, .5);
  font-family: var(--display); font-size: 1rem; color: var(--gold-ink);
}

/* ---------------- Prayer view ---------------- */
.prayer-stage {
  position: relative; overflow: hidden;
  border-radius: 50% 50% var(--r-xl) var(--r-xl) / 26% 26% var(--r-xl) var(--r-xl);
  border: 1px solid rgba(127, 156, 144, .28);
  background:
    radial-gradient(120% 70% at 50% 4%, rgba(175, 196, 213, .35), transparent 60%),
    linear-gradient(180deg, #FCFBF7 0%, var(--sage-soft) 100%);
  padding: 2.9rem 1.5rem 2.2rem;
  text-align: center;
  box-shadow: var(--shadow);
  margin-bottom: 1.05rem;
}
.prayer-stage .text {
  font-family: var(--body); font-size: clamp(1.08rem, 4.4vw, 1.24rem);
  line-height: 1.85; color: #313C37; margin: 0;
}
.prayer-stage .amen {
  font-family: var(--display); font-style: italic; font-size: 1.1rem;
  color: var(--sage-ink); margin: 1rem 0 0;
}

.saved-list { list-style: none; margin: 0; padding: 0; }
.saved-list li {
  background: var(--paper); border: 1px solid var(--line-soft);
  border-radius: var(--r-md); padding: 1rem 1.05rem; margin-bottom: .7rem;
  font-size: .96rem; line-height: 1.7; color: #3B3B39;
  display: flex; gap: .8rem; align-items: flex-start;
}
.saved-list p { margin: 0; flex: 1; }
.saved-list .drop {
  background: none; border: 0; cursor: pointer; color: var(--ink-3);
  padding: .15rem; line-height: 0; flex: none;
}
.saved-list .drop:hover { color: #A9605A; }
.saved-list .drop svg { width: 15px; height: 15px; }
.empty {
  text-align: center; color: var(--ink-2); font-style: italic;
  font-family: var(--display); padding: .8rem 0 .2rem; margin: 0;
}

/* ---------------- Guide view ---------------- */
.cover-frame {
  position: relative;
  margin: 0 auto 1.3rem;
  width: min(258px, 68%);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(212, 178, 95, .45);
  box-shadow: 0 30px 54px -30px rgba(74, 66, 52, .75);
  transition: transform .35s cubic-bezier(.22,.68,.36,1);
}
.cover-frame:hover { transform: translateY(-4px) rotate(-.4deg); }
.cover-frame img { width: 100%; height: auto; }
.gift-desc {
  text-align: center; color: var(--ink-2); font-size: .99rem;
  max-width: 42ch; margin: 0 auto 1.3rem; line-height: 1.75;
}

.daylist { list-style: none; margin: 1rem 0 0; padding: 0; }
.daylist li { border-bottom: 1px solid var(--line-soft); }
.daylist li:last-child { border-bottom: 0; }
.daylist button {
  display: flex; align-items: center; gap: .9rem; width: 100%;
  background: none; border: 0; cursor: pointer; text-align: left;
  padding: .78rem .1rem; font-family: var(--body); font-size: .97rem; color: var(--ink);
}
.daylist .box {
  width: 22px; height: 22px; flex: none; border-radius: 50%;
  border: 1.5px solid rgba(127, 156, 144, .55);
  display: grid; place-items: center; color: transparent;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.daylist .box svg { width: 12px; height: 12px; }
.daylist [aria-pressed="true"] .box { background: var(--sage-deep); border-color: var(--sage-deep); color: #fff; }
.daylist [aria-pressed="true"] .dl-label { color: var(--ink-3); }
.daylist .dl-no {
  font-family: var(--ui); font-size: .68rem; font-weight: 600; letter-spacing: .12em;
  color: var(--gold-ink); flex: none; width: 42px;
}
.daylist .dl-label { flex: 1; }

/* ---------------- Form ---------------- */
.form { display: grid; gap: .85rem; margin-top: 1.1rem; }
.field label {
  display: block; font-family: var(--ui); font-size: .78rem; font-weight: 600;
  color: var(--ink-2); margin-bottom: .35rem; letter-spacing: .01em;
}
.field input {
  width: 100%; font-family: var(--ui); font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: .85rem 1rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input::placeholder { color: #B6B2AB; }
.field input:focus {
  outline: none; border-color: var(--sage);
  box-shadow: 0 0 0 4px rgba(127, 156, 144, .18);
}
.field input[aria-invalid="true"] { border-color: #C08D86; box-shadow: 0 0 0 4px rgba(192, 141, 134, .16); }
.err { font-family: var(--ui); font-size: .78rem; color: #A9605A; margin: .35rem 0 0; }
.err[hidden] { display: none; }

.joined { text-align: center; padding: .4rem 0; }
.joined .seal {
  width: 54px; height: 54px; margin: 0 auto .9rem; border-radius: 50%;
  display: grid; place-items: center; color: var(--sage-deep);
  background: var(--sage-soft); border: 1px solid rgba(127, 156, 144, .35);
}
.joined .seal svg { width: 26px; height: 26px; }

/* ---------------- Tab bar ---------------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; justify-content: center;
  padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--ivory) 58%, rgba(250, 247, 242, 0));
  pointer-events: none;
}
.tabbar-inner {
  pointer-events: auto;
  display: flex; width: 100%; max-width: var(--col);
  background: rgba(255, 253, 250, .93);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-pill);
  padding: .32rem;
  box-shadow: 0 16px 34px -22px rgba(74, 66, 52, .6);
}
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: .16rem;
  background: none; border: 0; cursor: pointer;
  padding: .55rem .2rem .5rem; border-radius: var(--r-pill);
  font-family: var(--ui); font-size: .655rem; font-weight: 600; letter-spacing: .04em;
  color: var(--ink-2);
  transition: color .25s ease, background .25s ease;
}
.tab svg { width: 21px; height: 21px; stroke-width: 1.6; }
.tab:hover { color: var(--ink-2); }
.tab.is-active { color: var(--sage-ink); background: var(--sage-soft); }

/* ---------------- Toast ---------------- */
.toast {
  position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom));
  translate: -50% 0; z-index: 60;
  background: var(--ink); color: var(--ivory);
  font-family: var(--ui); font-size: .85rem; font-weight: 500;
  padding: .7rem 1.15rem; border-radius: var(--r-pill);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden;
  transition: opacity .28s ease, transform .28s ease, visibility .28s;
  transform: translateY(8px);
  max-width: calc(100% - 40px);
}
.toast.show { opacity: .96; visibility: visible; transform: none; }

/* ---------------- Footer ---------------- */
.site-foot { text-align: center; padding: 1.6rem 0 .4rem; }
.foot-links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1.1rem;
  list-style: none; padding: 0; margin: 0 0 1rem;
}
.foot-links button, .foot-links a {
  font-family: var(--ui); font-size: .84rem; color: var(--ink-2);
  background: none; border: 0; cursor: pointer; text-decoration: none; padding: .2rem;
}
.foot-links button:hover, .foot-links a:hover { color: var(--ink); }
.panel {
  text-align: left; background: var(--linen); border-radius: var(--r-lg);
  padding: 1.15rem 1.25rem; margin-bottom: 1.1rem;
  font-size: .93rem; line-height: 1.7; color: var(--ink-2);
}
.panel[hidden] { display: none; }
.panel h3 { margin-bottom: .45rem; color: var(--ink); }
.panel a { color: var(--sage-ink); font-weight: 600; }
.blessing {
  font-family: var(--display); font-style: italic; font-size: 1rem;
  color: var(--ink-3); margin: 0 0 .8rem;
}
.disclaimer {
  font-family: var(--ui); font-size: .765rem; line-height: 1.6;
  color: var(--ink-2); max-width: 44ch; margin: 0 auto;
}


/* ---------------- Secondary actions under a single primary ---------------- */
.mini-links {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: .3rem 1.5rem; margin: 1rem 0 1.5rem; padding: 0;
}
.mini-link {
  font-family: var(--ui); font-size: .86rem; font-weight: 600;
  color: var(--sage-ink); background: none; border: 0; cursor: pointer;
  text-decoration: none; padding: .28rem .1rem;
  border-bottom: 1px solid rgba(127, 156, 144, .38);
  transition: color .2s ease, border-color .2s ease;
}
.mini-link:hover { color: var(--ink); border-bottom-color: var(--sage); }
.mini-link[aria-pressed="true"] { color: var(--gold-ink); border-bottom-color: var(--gold); }

/* Locked contents list — an invitation, not a checklist */
.daylist .dl-static {
  display: flex; align-items: center; gap: .9rem;
  padding: .78rem .1rem;
  font-family: var(--body); font-size: .97rem; color: var(--ink);
}

/* The gate leads the screen, so it carries a little more presence */
#guide-gate { border-color: rgba(212, 178, 95, .34); box-shadow: var(--shadow-lg); }
#guide-gate h2 { margin-bottom: .5rem; }
#guide-welcome { margin-bottom: 1.3rem; }
#guide-welcome h2:focus { outline: none; }


/* ---------------- Logo ---------------- */
.topbar { padding: 16px 0 10px; }
.topbar a { display: block; line-height: 0; }
.logo-img {
  display: block;
  height: 56px;
  width: auto;
  max-width: 100%;
}
@media (min-width: 500px) { .logo-img { height: 64px; } }

/* ---------------- Wider screens ---------------- */
@media (min-width: 700px) {
  body { font-size: 17px; }
  .shell { padding-inline: 24px; }
  .card { padding: 1.7rem 1.6rem; }
}
