/* ============================================================
   TOKENS
   :root holds the complete light palette. --deep* are fixed
   materials that stay dark in both themes, like a printed panel.
   ============================================================ */
:root {
  --deep:        #0D1319;
  --deep-2:      #141D27;
  --deep-3:      #1C2732;
  --deep-ink:    #EAEFF5;
  --deep-muted:  #96A5B6;
  --deep-rule:   #253039;

  --paper:       #FBFAF8;
  --paper-2:     #F3F2EE;
  --paper-3:     #EAE8E2;
  --ink:         #14181D;
  --muted:       #59636E;
  --rule:        #E1DFD9;

  --accent:      #9A6520;
  --accent-soft: #F0E2CB;
  --bright:      #E3A85B;
  --clay:        #B5533C;

  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --ui: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --shadow-sm: 0 1px 2px rgba(13,19,25,.05), 0 4px 12px rgba(13,19,25,.05);
  --shadow-lg: 0 2px 6px rgba(13,19,25,.07), 0 24px 60px rgba(13,19,25,.11);
  --r: 14px;
  --maxw: 74rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:       #0F1419;
    --paper-2:     #151C23;
    --paper-3:     #1D262F;
    --ink:         #E8EDF3;
    --muted:       #93A1AF;
    --rule:        #232D36;
    --accent:      #E3A85B;
    --accent-soft: #2A2317;
    --clay:        #E07A5F;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.3), 0 4px 12px rgba(0,0,0,.25);
    --shadow-lg: 0 2px 6px rgba(0,0,0,.35), 0 24px 60px rgba(0,0,0,.45);
  }
}
:root[data-theme="dark"] {
  --paper:       #0F1419;
  --paper-2:     #151C23;
  --paper-3:     #1D262F;
  --ink:         #E8EDF3;
  --muted:       #93A1AF;
  --rule:        #232D36;
  --accent:      #E3A85B;
  --accent-soft: #2A2317;
  --clay:        #E07A5F;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3), 0 4px 12px rgba(0,0,0,.25);
  --shadow-lg: 0 2px 6px rgba(0,0,0,.35), 0 24px 60px rgba(0,0,0,.45);
}

* { box-sizing: border-box; }

/* A class selector beats the UA [hidden] rule, so state it explicitly.
   The services menu is display:grid and would otherwise render while hidden. */
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 1.0625rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,h2,h3,h4 { margin: 0; font-family: var(--display); font-weight: 500; line-height: 1.13; letter-spacing: -.014em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4.2vw, 2.9rem); }
h3 { font-size: 1.3rem; line-height: 1.28; letter-spacing: -.008em; }
h4 { font-size: 1.0625rem; font-family: var(--ui); font-weight: 600; letter-spacing: 0; line-height: 1.4; }
em { font-style: italic; }
p { margin: 0; }

a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.stack { display: flex; flex-direction: column; }
.g8  { gap: .5rem; }  .g12 { gap: .75rem; } .g16 { gap: 1rem; }
.g24 { gap: 1.5rem; } .g40 { gap: 2.5rem; } .g56 { gap: 3.5rem; }
.col-narrow { max-width: 60ch; }
.center { text-align: center; margin-inline: auto; }

.eyebrow {
  font-size: .6875rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent);
}
.lede { font-size: clamp(1.125rem, 1.9vw, 1.3125rem); line-height: 1.55; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: .9375rem; line-height: 1.55; }
.tiny  { font-size: .8125rem; line-height: 1.5; }
strong { font-weight: 600; color: var(--ink); }

/* ============================================================ HEADER */
#bar {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--rule);
}
#bar .wrap { display: flex; align-items: center; gap: 1.25rem; padding-block: .8rem; }
.mark { display: inline-flex; align-items: center; gap: .55rem; white-space: nowrap; }
.mark .dd { width: 1.75rem; height: 1.75rem; flex: none; margin-bottom: .05em; color: var(--accent); }
.mark .wm { font-family: var(--display); font-size: 1.28rem; font-weight: 600; letter-spacing: -.02em; }
.mark .wm b { color: var(--accent); font-weight: 600; }
footer .mark .dd, footer .mark .wm b { color: var(--bright); }
#bar nav { display: none; gap: 1.4rem; margin-left: auto; font-size: .9375rem; font-weight: 500; }
#bar nav a { color: var(--muted); text-decoration: none; }
#bar nav a:hover { color: var(--ink); }
@media (min-width: 900px) { #bar nav { display: flex; } }
.bar-right { margin-left: auto; display: flex; align-items: center; gap: .6rem; }
@media (min-width: 900px) { .bar-right { margin-left: 0; } }

#progress {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: 0 50%;
}

.icon-btn {
  display: grid; place-items: center; width: 2.2rem; height: 2.2rem;
  border: 1px solid var(--rule); border-radius: 8px;
  background: transparent; color: var(--muted); cursor: pointer; padding: 0;
}
.icon-btn:hover { color: var(--ink); border-color: var(--ink); }
.icon-btn svg { width: 1.05rem; height: 1.05rem; }
:root:not([data-theme="dark"]) .i-sun { display: none; }
:root[data-theme="dark"] .i-sun { display: block; }
:root[data-theme="dark"] .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { display: block; }
  :root:not([data-theme="light"]) .i-moon { display: none; }
  :root[data-theme="light"] .i-sun { display: none; }
  :root[data-theme="light"] .i-moon { display: block; }
}

/* ============================================================ BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--ui); font-size: 1rem; font-weight: 600;
  padding: .8rem 1.35rem; border-radius: 10px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .14s ease, background .16s ease, border-color .16s ease, color .16s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #FFF9F0; }
:root[data-theme="dark"] .btn-primary { color: #17120A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary { color: #17120A; } }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 84%, #000); }
.btn-ghost { border-color: var(--rule); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { font-size: .9375rem; padding: .55rem 1rem; }
.btn-on-deep { background: var(--bright); color: #16110A; }
.btn-on-deep:hover { background: #EEBB76; }
.btn-outline-deep { border-color: var(--deep-rule); color: var(--deep-ink); }
.btn-outline-deep:hover { border-color: var(--deep-muted); }

/* ============================================================ HERO */
#hero { position: relative; background: var(--deep); color: var(--deep-ink); overflow: hidden; }
#light { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#hero .wrap { position: relative; z-index: 2; }
.hero-grid {
  padding: clamp(3.75rem, 8.5vw, 6.5rem) 0 clamp(3rem, 6vw, 4.75rem);
  display: grid; grid-template-columns: 1fr; gap: 3.25rem; align-items: center;
}
.hero-in { max-width: 46rem; }
@media (min-width: 1040px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 20rem; gap: 3.5rem; }
  .hero-in { max-width: 36rem; }
  /* the headline gets a narrower column here, so it needs a smaller cap */
  #hero h1 { font-size: min(3.5rem, 4.8vw); }
}

/* ---- the device. A newcomer's phone, which is the whole argument of the
   headline: everything a stranger needs, above the fold. The screen is a fixed
   light panel in both themes — it is a photographed object, not page chrome.
   Art is the Grace illustration already inlined for the demo, so it costs
   nothing extra. ---- */
.hero-art { position: relative; display: flex; flex-direction: column; align-items: center; }
.hero-art::before {
  content: ""; position: absolute; z-index: 0; left: 50%; top: 44%;
  width: 30rem; height: 30rem; transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(circle, rgba(227,168,91,.20), rgba(227,168,91,0) 62%);
}
.phone {
  position: relative; z-index: 1; width: min(20rem, 82vw);
  padding: .5rem; border-radius: 2.15rem;
  background: linear-gradient(157deg, #38434F, #18222C 52%, #0A1015);
  box-shadow: 0 1px 2px rgba(0,0,0,.6), 0 30px 64px -18px rgba(0,0,0,.8),
              inset 0 0 0 1px rgba(255,255,255,.08);
  transform: rotate(-1.3deg);
}
.phone-screen {
  border-radius: 1.7rem; overflow: hidden; background: #FBFAF8; color: #14181D;
  display: flex; flex-direction: column;
}
.ph-status {
  display: flex; justify-content: space-between; padding: .5rem .95rem .35rem;
  font-size: .625rem; font-weight: 600; color: #6E767E; letter-spacing: .02em;
}
.ph-head { padding: 0 .95rem .6rem; }
.ph-name { font-family: var(--display); font-size: .95rem; font-weight: 600; letter-spacing: -.01em; }
.ph-times { font-size: .625rem; color: #59636E; margin-top: .1rem; }
.ph-il { aspect-ratio: 10 / 6; background-size: cover; background-position: center 62%; }
.ph-body { padding: .8rem .95rem .55rem; display: flex; flex-direction: column; gap: .55rem; }
.ph-cta {
  background: #9A6520; color: #FFF9F0; text-align: center; border-radius: .5rem;
  font-size: .75rem; font-weight: 600; padding: .5rem; letter-spacing: .01em;
}
.ph-row { display: flex; gap: .5rem; font-size: .6875rem; line-height: 1.38; color: #3B444D; }
.ph-row svg { width: .82rem; height: .82rem; flex: none; margin-top: .12rem; color: #9A6520; }
.ph-foot {
  display: flex; gap: 1rem; margin: 0 .95rem; padding: .55rem 0 .7rem;
  border-top: 1px solid #E4E2DC; font-size: .625rem; font-weight: 600; color: #6B747D;
}
.art-cap {
  position: relative; z-index: 1; margin-top: 1.15rem; max-width: 23rem;
  text-align: center; font-size: .8125rem; line-height: 1.5; color: var(--deep-muted);
}
#hero h1 { color: var(--deep-ink); }
#hero h1 em { color: var(--bright); font-style: italic; }
.hero-sub { font-size: clamp(1.125rem, 2vw, 1.375rem); line-height: 1.5; color: var(--deep-muted); max-width: 40ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; padding-top: .5rem; }
.hero-note { color: var(--deep-muted); font-size: .875rem; }
.hero-eyebrow { color: var(--bright); }

.hero-strip {
  position: relative; z-index: 2;
  border-top: 1px solid var(--deep-rule);
  display: grid; grid-template-columns: 1fr; gap: 0;
}
@media (min-width: 760px) { .hero-strip { grid-template-columns: repeat(3, 1fr); } }
.strip-cell { padding: 1.5rem 0; border-top: 1px solid var(--deep-rule); }
.strip-cell:first-child { border-top: 0; }
@media (min-width: 760px) {
  .strip-cell { border-top: 0; border-left: 1px solid var(--deep-rule); padding: 1.75rem 1.75rem 1.75rem 1.75rem; }
  .strip-cell:first-child { border-left: 0; padding-left: 0; }
}
.strip-cell .k { font-family: var(--display); font-size: 1.6rem; font-weight: 600; color: var(--bright); letter-spacing: -.02em; }
.strip-cell .v { color: var(--deep-muted); font-size: .9375rem; line-height: 1.45; }

/* ============================================================ REVEAL */
.rev { opacity: 0; transform: translateY(1.25rem); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.rev.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rev { opacity: 1; transform: none; transition: none; }
  .btn, .card, .fx { transition: none !important; }
}

/* ============================================================ CARDS / GRIDS */
.grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid.c2 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 900px) { .grid.c3 { grid-template-columns: repeat(3, minmax(0,1fr)); } .grid.c4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1100px) { .grid.c4 { grid-template-columns: repeat(4, minmax(0,1fr)); } }

.card {
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r);
  padding: 1.5rem; display: flex; flex-direction: column; gap: .6rem;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.card.hoverable:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--rule)); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.card .ico { width: 2.1rem; height: 2.1rem; display: grid; place-items: center; border-radius: 8px; background: var(--accent-soft); color: var(--accent); margin-bottom: .35rem; }
.card .ico svg { width: 1.15rem; height: 1.15rem; }

.tinted { background: var(--paper-2); }

/* ============================================================ SWITCHER DEMO */
#demo-wrap { display: grid; gap: 1.75rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1000px) { #demo-wrap { grid-template-columns: 15rem minmax(0,1fr); gap: 2.5rem; } }

.arch-list { display: flex; flex-direction: column; gap: .5rem; }
.arch {
  text-align: left; font-family: var(--ui); cursor: pointer;
  background: transparent; border: 1px solid var(--rule); border-radius: 10px;
  padding: .8rem .95rem; display: flex; flex-direction: column; gap: .1rem;
  transition: border-color .16s ease, background .16s ease;
}
.arch:hover { border-color: var(--muted); }
.arch[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.arch .an { font-weight: 600; font-size: .9375rem; color: var(--ink); }
.arch .ad { font-size: .8125rem; color: var(--muted); }

/* browser chrome */
.chrome {
  border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden;
  box-shadow: var(--shadow-lg); background: var(--paper-2);
}
.chrome-bar { display: flex; align-items: center; gap: .5rem; padding: .6rem .85rem; background: var(--paper-3); border-bottom: 1px solid var(--rule); }
.dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--rule); flex: none; }
.chrome-url {
  flex: 1; min-width: 0; font-size: .75rem; color: var(--muted); background: var(--paper);
  border-radius: 5px; padding: .2rem .55rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* the demo site itself — fully token-driven */
#stage {
  --d-bg: #FFFFFF; --d-ink: #1A1A1A; --d-muted: #6B6B6B; --d-accent: #7A0E24;
  --d-band: #F3F1EC; --d-display: var(--display); --d-body: var(--ui); --d-radius: 4px;
  background: var(--d-bg); color: var(--d-ink); font-family: var(--d-body);
  transition: background .5s ease, color .5s ease;
}
#stage * { transition: background-color .5s ease, color .5s ease, border-color .5s ease, font-family 0s; }
.d-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1.25rem; border-bottom: 1px solid color-mix(in srgb, var(--d-ink) 12%, transparent); flex-wrap: wrap; }
.d-name { font-family: var(--d-display); font-size: 1.05rem; font-weight: 600; line-height: 1.2; }
.d-times { font-size: .75rem; color: var(--d-muted); font-weight: 500; letter-spacing: .01em; }
.d-nav { display: none; gap: .9rem; font-size: .75rem; color: var(--d-muted); font-weight: 500; }
@media (min-width: 620px) { .d-nav { display: flex; } }

.d-hero { padding: clamp(1.5rem, 4vw, 2.75rem) 1.25rem; display: flex; flex-direction: column; gap: .7rem; }
.d-eyebrow { font-size: .625rem; letter-spacing: .18em; text-transform: uppercase; color: var(--d-accent); font-weight: 700; }
.d-h { font-family: var(--d-display); font-size: clamp(1.5rem, 3.6vw, 2.3rem); line-height: 1.12; font-weight: 600; letter-spacing: -.015em; max-width: 26ch; }
.d-p { font-size: .875rem; line-height: 1.55; color: var(--d-muted); max-width: 44ch; }
.d-btn {
  align-self: flex-start; background: var(--d-accent); color: #fff; font-size: .8125rem; font-weight: 600;
  padding: .55rem 1rem; border-radius: var(--d-radius); margin-top: .2rem; font-family: var(--d-body);
}
.d-cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .6rem; padding: 0 1.25rem clamp(1.5rem,3vw,2.25rem); }
.d-card { background: var(--d-band); border-radius: var(--d-radius); padding: .8rem .85rem; display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.d-card .t { font-family: var(--d-display); font-size: .875rem; font-weight: 600; line-height: 1.2; }
.d-card .s { font-size: .6875rem; color: var(--d-muted); line-height: 1.4; }
.d-sig { height: 4px; background: var(--d-accent); opacity: .85; }

/* demo hero: text + building illustration */
.d-hero { display: grid; grid-template-columns: 1fr; gap: 1.1rem; align-items: center; }
@media (min-width: 620px) { .d-hero { grid-template-columns: 1.08fr .92fr; gap: 1.6rem; } }
.d-hero-txt { display: flex; flex-direction: column; gap: .7rem; min-width: 0; }
.d-il {
  width: 100%; aspect-ratio: 10 / 7; display: block; border-radius: var(--d-radius);
  background-size: cover; background-position: center; background-repeat: no-repeat;
}

/* archetype buttons get a live thumbnail of their own look */
.arch { flex-direction: row; align-items: center; gap: .75rem; }
.arch-thumb {
  width: 3.4rem; height: 2.3rem; border-radius: 5px; overflow: hidden; flex: none; border: 1px solid var(--rule);
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.arch-txt { display: flex; flex-direction: column; gap: .05rem; min-width: 0; }
.arch[aria-pressed="true"] .arch-thumb { border-color: var(--accent); }

.changed { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip {
  font-size: .75rem; font-weight: 500; color: var(--muted);
  border: 1px solid var(--rule); border-radius: 999px; padding: .28rem .7rem;
  background: var(--paper);
}
.chip b { color: var(--ink); font-weight: 600; }

/* ============================================================ FORM */
.inq { display: grid; gap: .9rem; text-align: left; }
.f-row { display: grid; gap: .9rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .f-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .35rem; min-width: 0; }
.field > span { font-size: .8125rem; font-weight: 600; color: var(--deep-ink); letter-spacing: .01em; }
.field > span i { font-style: normal; font-weight: 400; color: var(--deep-muted); }
.inq input, .inq textarea {
  font-family: var(--ui); font-size: 1rem; color: var(--deep-ink);
  background: var(--deep-2); border: 1px solid var(--deep-rule); border-radius: 9px;
  padding: .7rem .85rem; width: 100%; outline: none; resize: vertical;
  transition: border-color .16s ease;
}
.inq input::placeholder, .inq textarea::placeholder { color: #67737F; }
.inq input:focus, .inq textarea:focus { border-color: var(--bright); }
.inq input:user-invalid, .inq textarea:user-invalid { border-color: var(--clay); }
.inq .btn { justify-self: start; }
#inq-msg { min-height: 1.4rem; }
#inq-msg.ok { color: var(--bright); }
#inq-msg.warn { color: var(--clay); }

/* ============================================================ SERMON DEMO */
.sermon-tool { border: 1px solid var(--rule); border-radius: var(--r); background: var(--paper); overflow: hidden; box-shadow: var(--shadow-sm); }
.st-head { padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: .85rem; background: var(--paper-2); }
.search-row { display: flex; align-items: center; gap: .6rem; background: var(--paper); border: 1px solid var(--rule); border-radius: 9px; padding: .55rem .8rem; }
.search-row svg { width: 1rem; height: 1rem; color: var(--muted); flex: none; }
.search-row input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font-family: var(--ui); font-size: .9375rem; outline: none; }
.search-row input::placeholder { color: var(--muted); }
.books { display: flex; flex-wrap: wrap; gap: .4rem; }
.book {
  font-family: var(--ui); font-size: .75rem; font-weight: 600; cursor: pointer;
  border: 1px solid var(--rule); background: var(--paper); color: var(--muted);
  border-radius: 999px; padding: .3rem .7rem; transition: all .15s ease;
}
.book:hover { color: var(--ink); border-color: var(--muted); }
.book[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #FFF9F0; }
:root[data-theme="dark"] .book[aria-pressed="true"] { color: #17120A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .book[aria-pressed="true"] { color: #17120A; } }

.sermons { list-style: none; margin: 0; padding: 0; max-height: 21rem; overflow-y: auto; }
.sermons li { padding: .95rem 1.25rem; border-top: 1px solid var(--rule); display: grid; gap: .3rem; }
.sermons li:first-child { border-top: 0; }
.s-t { font-family: var(--display); font-size: 1.0625rem; font-weight: 600; line-height: 1.25; }
.s-m { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; font-size: .8125rem; color: var(--muted); }
.s-ref { color: var(--accent); font-weight: 600; }
.badge { font-size: .6875rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; border: 1px solid var(--rule); border-radius: 4px; padding: .1rem .4rem; color: var(--muted); }
.st-foot { padding: .75rem 1.25rem; border-top: 1px solid var(--rule); background: var(--paper-2); color: var(--muted); font-size: .8125rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.empty { padding: 2.5rem 1.25rem; text-align: center; color: var(--muted); font-size: .9375rem; }

/* ============================================================ EMAIL MOCK */
.mail { border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; background: var(--paper); box-shadow: var(--shadow-sm); }
.mail-head { padding: 1rem 1.25rem; border-bottom: 1px solid var(--rule); background: var(--paper-2); display: grid; gap: .15rem; }
.mail-sub { font-weight: 600; font-size: 1rem; }
.mail-from { font-size: .8125rem; color: var(--muted); }
.mail-body { padding: 1.35rem 1.25rem; display: grid; gap: 1rem; }
.mail-sec {
  font-size: .625rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); display: flex; align-items: center; gap: .6rem;
}
.mail-sec::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.mail-rule { height: 1px; background: var(--rule); }
.grant-bar { display: grid; gap: .4rem; }
.grant-track { height: .45rem; border-radius: 999px; background: var(--paper-3); overflow: hidden; }
.grant-fill { height: 100%; width: 22%; border-radius: 999px; background: var(--accent); }
.grant-note { display: flex; justify-content: space-between; gap: 1rem; font-size: .75rem; color: var(--muted); }
.win { display: flex; gap: .55rem; align-items: flex-start; font-size: .875rem; line-height: 1.5; }
.win svg { width: .95rem; height: .95rem; flex: none; margin-top: .22rem; color: var(--accent); }
.stat-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .8rem; }
@media (min-width: 560px) { .stat-row { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.stat { display: grid; gap: .05rem; }
.stat .n { font-family: var(--display); font-size: 1.75rem; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat .l { font-size: .75rem; color: var(--muted); line-height: 1.35; }

/* ============================================================ LISTS */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.checks li { display: grid; grid-template-columns: 1.2rem minmax(0,1fr); gap: .7rem; align-items: start; }
.checks svg { width: 1.2rem; height: 1.2rem; color: var(--accent); margin-top: .18rem; }
.nots li svg { color: var(--clay); }

/* ============================================================ PRICING */
.tiers { display: grid; gap: 1rem; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 700px)  { .tiers { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1180px) { .tiers { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.tier { position: relative; display: flex; flex-direction: column; gap: .9rem; padding: 1.6rem 1.4rem; border: 1px solid var(--rule); border-radius: var(--r); background: var(--paper); }
.tier.feature { border-color: var(--accent); box-shadow: var(--shadow-lg); position: relative; }
.tier .tag { position: absolute; top: -.7rem; left: 1.4rem; background: var(--accent); color: #FFF9F0; font-size: .6875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: .2rem .6rem; border-radius: 4px; }
:root[data-theme="dark"] .tier .tag { color: #17120A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tier .tag { color: #17120A; } }
.amt { font-family: var(--display); font-size: 2.2rem; font-weight: 600; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.amt sub { font-family: var(--ui); font-size: .875rem; font-weight: 500; color: var(--muted); letter-spacing: 0; vertical-align: baseline; }
.tier ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .5rem; font-size: .9375rem; color: var(--muted); }
.also { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 860px) { .also { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.also-card { border: 1px solid var(--rule); border-radius: var(--r); padding: 1.5rem; background: var(--paper-2); display: flex; flex-direction: column; gap: .7rem; }
.price-row { display: flex; justify-content: space-between; gap: 1rem; font-size: .9375rem; padding: .4rem 0; border-bottom: 1px solid var(--rule); }
.price-row:last-of-type { border-bottom: 0; }
.price-row b { font-weight: 600; color: var(--ink); white-space: nowrap; }
.tier ul li { display: grid; grid-template-columns: .9rem 1fr; gap: .55rem; align-items: start; }
.tier ul svg { width: .9rem; height: .9rem; color: var(--accent); margin-top: .3rem; }
.tier .btn { margin-top: auto; }

/* ============================================================ TIMELINE */
.tl { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.tl li { display: grid; grid-template-columns: 3.5rem minmax(0,1fr); gap: 1.25rem; padding: 1.25rem 0; border-top: 1px solid var(--rule); }
.tl li:last-child { border-bottom: 1px solid var(--rule); }
.tl .d { font-size: .6875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); padding-top: .35rem; font-variant-numeric: tabular-nums; }
.tl .b { display: grid; gap: .2rem; }

/* ============================================================ DEEP BAND */
.deep-band { background: var(--deep); color: var(--deep-ink); }
.deep-band h2 { color: var(--deep-ink); }
.deep-band h2 em { color: var(--bright); }
.deep-band .lede, .deep-band .muted, .deep-band .small { color: var(--deep-muted); }
.deep-band .eyebrow { color: var(--bright); }
.deep-band .card { background: var(--deep-2); border-color: var(--deep-rule); }
.deep-band .card h3, .deep-band .card h4 { color: var(--deep-ink); }
.deep-band .card p { color: var(--deep-muted); }
.deep-band .card .ico { background: var(--deep-3); color: var(--bright); }
.deep-band .checks svg { color: var(--bright); }
.deep-band .quote { border-color: var(--deep-rule); }
.deep-band .tiny { color: var(--deep-muted); }

/* strong is pinned to --ink globally, which is near-black. On the fixed-dark
   surfaces that is invisible in light mode — the bold lead-in of every limit
   disappeared and left a gap that read as broken indentation. These four
   surfaces stay dark in both themes, so they need the dark-surface ink. */
.deep-band strong, #hero strong, .page-head strong, footer strong { color: var(--deep-ink); }

/* The inverse case, and nothing handled it: a LIGHT panel sitting inside a dark
   band. It inherits the band colour, so the sermon titles were --deep-ink on
   --paper — white on white in light mode. Re-establish light-surface ink for
   everything inside the panel. */
.deep-band .sermon-tool { color: var(--ink); }

.quote { border-left: 2px solid var(--accent); padding-left: 1.35rem; font-family: var(--display); font-size: clamp(1.3rem, 2.6vw, 1.7rem); line-height: 1.34; font-style: italic; }

/* ============================================================ FOOTER */
footer { background: var(--deep); color: var(--deep-muted); border-top: 1px solid var(--deep-rule); }
.foot-in { display: grid; gap: 1.25rem; padding: 2.5rem 0 3rem; }
@media (min-width: 720px) { .foot-in { grid-template-columns: 1fr auto; align-items: end; } }
footer .mark { color: var(--deep-ink); }
footer a { color: var(--deep-ink); text-decoration-color: var(--bright); text-underline-offset: .18em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }


/* ============================================================ SERVICES MENU */
.menu { position: relative; display: flex; }
.menu-btn {
  display: inline-flex; align-items: center; gap: .3rem;
  font-family: var(--ui); font-size: .9375rem; font-weight: 500;
  color: var(--muted); background: none; border: 0; padding: 0; cursor: pointer;
}
.menu-btn:hover, .menu-btn[aria-expanded="true"] { color: var(--ink); }
.menu-btn svg { width: .85rem; height: .85rem; transition: transform .16s ease; }
.menu-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.menu-pop {
  position: absolute; top: calc(100% + .9rem); left: 50%; transform: translateX(-50%);
  width: 22rem; max-width: calc(100vw - 2rem); z-index: 80;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 12px;
  box-shadow: var(--shadow-lg); padding: .45rem; display: grid; gap: .1rem;
}
.menu-pop a { display: grid; gap: .1rem; padding: .6rem .7rem; border-radius: 8px; text-decoration: none; }
.menu-pop a:hover, .menu-pop a:focus-visible { background: var(--paper-2); }
.menu-pop b { font-size: .9375rem; font-weight: 600; color: var(--ink); }
.menu-pop span { font-size: .8125rem; color: var(--muted); line-height: 1.4; }
.menu-rule { height: 1px; background: var(--rule); margin: .35rem .7rem; }

/* ============================================================ FOOTER COLUMNS */
.foot-cols { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.5rem 2.5rem; }
.foot-col { display: flex; flex-direction: column; gap: .4rem; }
.foot-col h5 {
  margin: 0 0 .25rem; font-family: var(--ui); font-size: .6875rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--bright);
}
.foot-col a { font-size: .9375rem; text-decoration: none; color: var(--deep-muted); }
.foot-col a:hover { color: var(--deep-ink); }

/* ============================================================ SERVICE PAGES */
/* overflow clipped like #hero: .head-art::before is a 26rem glow on a narrower
   column, and without this it pushes the document 6px wider than the viewport. */
.page-head { background: var(--deep); color: var(--deep-ink); overflow: hidden; }
.page-head .wrap { padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem clamp(2.5rem, 5vw, 3.5rem); }
.page-head h1 { color: var(--deep-ink); font-size: clamp(2.1rem, 5vw, 3.4rem); }
.page-head h1 em { color: var(--bright); font-style: italic; }
.page-head .lede { color: var(--deep-muted); max-width: 48ch; }
.page-head .eyebrow { color: var(--bright); }
.crumb { font-size: .8125rem; color: var(--deep-muted); }
.crumb a { color: var(--deep-muted); text-decoration-color: var(--deep-rule); text-underline-offset: .18em; }
.crumb a:hover { color: var(--deep-ink); }
.price-badge {
  display: inline-flex; align-items: baseline; gap: .5rem; align-self: flex-start;
  border: 1px solid var(--deep-rule); border-radius: 999px; padding: .4rem 1rem;
  font-size: .875rem; color: var(--deep-muted);
}
.price-badge b { font-family: var(--display); font-size: 1.3rem; font-weight: 600; color: var(--bright); }
.faq { display: grid; gap: 0; }
.faq details { border-bottom: 1px solid var(--rule); padding: 1rem 0; }
.faq details:first-of-type { border-top: 1px solid var(--rule); }
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 1.0625rem; list-style: none;
  display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 500; font-size: 1.35rem; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq p { color: var(--muted); font-size: .9375rem; line-height: 1.6; padding-top: .7rem; max-width: 68ch; }
.next-up { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .next-up { grid-template-columns: repeat(2, minmax(0,1fr)); } }


/* ============================================================ MOBILE DRAWER
   The desktop nav is hidden below 900px, so everything in it — including the
   service pages — has to live somewhere reachable on a phone. Full-screen
   panel rather than a dropdown under the bar, so it never has to measure the
   sticky header's height. */
.nav-toggle { display: grid; }
.bar-cta { display: none; }
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .bar-cta { display: inline-flex; }
}

#mnav {
  position: fixed; inset: 0; z-index: 100; background: var(--paper);
  overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column;
}
.mnav-top {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: .8rem; border-bottom: 1px solid var(--rule); flex: none;
}
.mnav-body { display: flex; flex-direction: column; gap: 1.75rem; padding-block: 1.75rem 3rem; }
.mnav-group { display: flex; flex-direction: column; gap: .2rem; }
.mnav-group h6 {
  margin: 0 0 .5rem; font-family: var(--ui); font-size: .6875rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
}
.mnav-group a {
  display: grid; gap: .1rem; padding: .7rem 0; text-decoration: none;
  border-bottom: 1px solid var(--rule);
}
.mnav-group a:last-child { border-bottom: 0; }
.mnav-group b { font-family: var(--display); font-size: 1.2rem; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.mnav-group span { font-size: .875rem; color: var(--muted); line-height: 1.4; }
.mnav-cta { width: 100%; }
body.nav-open { overflow: hidden; }

/* ============================================================ MOCK SEARCH RESULTS
   A rendered Google result rather than a description of one. Fixed light
   colours in both themes: it is a screenshot-like object, not page chrome. */
.serp {
  border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden;
  background: #FFFFFF; box-shadow: var(--shadow-sm);
}
.serp-bar {
  display: flex; align-items: center; gap: .6rem; padding: .8rem 1rem;
  border-bottom: 1px solid #E8E8E8; background: #F7F8F9;
}
.serp-q {
  flex: 1; min-width: 0; background: #FFF; border: 1px solid #DFE1E5; border-radius: 999px;
  padding: .4rem .85rem; font-size: .8125rem; color: #202124;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.serp-q svg { width: .8rem; height: .8rem; color: #9AA0A6; vertical-align: -1px; margin-right: .4rem; }
.serp-body { padding: 1rem; display: grid; gap: 1rem; }
.serp-item { display: grid; gap: .18rem; }
.serp-tag {
  font-size: .6875rem; font-weight: 700; color: #202124; letter-spacing: .01em;
}
.serp-url { font-size: .75rem; color: #4D5156; }
.serp-title { font-size: 1rem; color: #1A0DAB; font-weight: 500; line-height: 1.3; }
.serp-desc { font-size: .8125rem; color: #4D5156; line-height: 1.5; }
.serp-item.dim { opacity: .42; }
.serp-note {
  font-size: .75rem; color: var(--muted); padding: .7rem 1rem;
  border-top: 1px solid #E8E8E8; background: #FAFAFA;
}
.map-pack { border-top: 1px solid #E8E8E8; padding: .9rem 1rem; display: grid; gap: .7rem; background: #FFF; }
.map-row { display: flex; align-items: flex-start; gap: .7rem; }
.map-pin {
  width: 1.4rem; height: 1.4rem; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: #E8F0FE; color: #1A73E8; font-size: .6875rem; font-weight: 700;
}
.map-row.you .map-pin { background: #FCE8E6; color: #C5221F; }
.map-name { display: block; font-size: .875rem; font-weight: 500; color: #202124; }
.map-meta { display: block; font-size: .75rem; color: #70757A; margin-top: .1rem; }
.map-row.you .map-meta { color: #C5221F; }
.map-stars { color: #FBBC04; letter-spacing: .05em; font-size: .75rem; }

/* ============================================================ KEYWORD TABLE */
.kw { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.kw th {
  text-align: left; font-size: .6875rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); padding: 0 .8rem .6rem 0;
  border-bottom: 1px solid var(--rule);
}
.kw th:last-child, .kw td:last-child { text-align: right; padding-right: 0; }
.kw td { padding: .7rem .8rem .7rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.kw td:first-child { color: var(--ink); font-weight: 500; }
.kw .when { color: var(--muted); font-size: .8125rem; }
.kw b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.kw-wrap { overflow-x: auto; }

/* ============================================================ YEAR STRIP */
.year { display: grid; gap: .5rem; grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (min-width: 700px) { .year { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (min-width: 1000px) { .year { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.mo {
  border: 1px solid var(--rule); border-radius: 10px; padding: .8rem .9rem;
  display: grid; gap: .2rem; background: var(--paper);
}
.mo.busy { border-color: color-mix(in srgb, var(--accent) 45%, var(--rule)); background: var(--accent-soft); }
.mo .m { font-size: .6875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.mo .w { font-size: .875rem; line-height: 1.4; color: var(--ink); }
.mo.quiet .w { color: var(--muted); }

/* ============================================================ COMPARISON */
.cmp-wrap { overflow-x: auto; }
.cmp { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: .9375rem; }
.cmp th, .cmp td { padding: .8rem 1rem; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.cmp thead th {
  font-size: .6875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); border-bottom: 1px solid var(--rule);
}
.cmp thead th.us { color: var(--accent); }
.cmp tbody td:first-child { color: var(--muted); }
.cmp td.us { background: var(--accent-soft); color: var(--ink); font-weight: 500; }
.cmp tbody tr:last-child td { border-bottom: 0; }

/* ============================================================ GAUGE */
.gauge { display: grid; gap: .5rem; }
.gauge-track { position: relative; height: 2.4rem; border-radius: 8px; background: var(--paper-3); overflow: hidden; }
.gauge-fill { position: absolute; inset: 0 auto 0 0; background: color-mix(in srgb, var(--accent) 30%, transparent); }
.gauge-floor { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--clay); }
.gauge-floor::after {
  content: "Google's 5% floor"; position: absolute; left: .5rem; top: 50%; transform: translateY(-50%);
  font-size: .75rem; color: var(--clay); white-space: nowrap; font-weight: 600;
}
.gauge-val {
  position: absolute; right: .8rem; top: 50%; transform: translateY(-50%);
  font-family: var(--display); font-size: 1.15rem; font-weight: 600; color: var(--ink);
}

/* ============================================================ BIG STATS */
.figures { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (min-width: 860px) { .figures { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.figure { border-left: 2px solid var(--accent); padding-left: 1rem; display: grid; gap: .2rem; }
.figure .fn { font-family: var(--display); font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.figure .fl { font-size: .875rem; color: var(--muted); line-height: 1.4; }


/* ============================================================ SPLIT LAYOUT
   Copy on one side, a rendered artefact on the other. Keeps the mock search
   results from sitting alone in half a screen of empty page. */
.split { display: grid; gap: 2.25rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 980px) { .split { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 3.5rem; } }
.split .col-narrow { max-width: 46ch; }


/* ============================================================ GOOGLE MOCK
   A rendered search result rather than a description of one. Everything is
   fixed light values in both themes — it is a screenshot-like object, and a
   dark-mode Google result reads as fake. Supersedes the earlier .serp shell,
   which was too plain to be convincing. */
.gs {
  border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden;
  background: #FFF; box-shadow: var(--shadow-lg);
  font-family: arial, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #202124; line-height: 1.4;
}
.gs-chrome {
  display: flex; align-items: center; gap: .4rem; padding: .55rem .75rem;
  background: #DEE1E6; border-bottom: 1px solid #C8CCD1;
}
.gs-dot { width: .55rem; height: .55rem; border-radius: 50%; background: #B6BAC0; flex: none; }
.gs-omni {
  flex: 1; min-width: 0; margin-left: .35rem; background: #FFF; border-radius: 999px;
  padding: .25rem .7rem; font-size: .6875rem; color: #5F6368;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gs-top { display: flex; align-items: center; gap: 1.1rem; padding: .9rem 1rem .55rem; }
.gs-logo { font-size: 1.35rem; font-weight: 500; letter-spacing: -.04em; flex: none; font-family: arial, sans-serif; }
.gs-logo i { font-style: normal; }
.gs-logo .b1 { color: #4285F4; } .gs-logo .r { color: #EA4335; }
.gs-logo .y { color: #FBBC05; } .gs-logo .b2 { color: #4285F4; }
.gs-logo .g { color: #34A853; } .gs-logo .r2 { color: #EA4335; }
.gs-input {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: .55rem;
  border: 1px solid #DFE1E5; border-radius: 999px; padding: .45rem .9rem;
  font-size: .8125rem; color: #202124; box-shadow: 0 1px 3px rgba(32,33,36,.1);
}
.gs-input span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs-input svg { width: .8rem; height: .8rem; flex: none; }
.gs-tabs {
  display: flex; gap: 1.1rem; padding: 0 1rem; border-bottom: 1px solid #EBEBEB;
  font-size: .75rem; color: #5F6368;
}
.gs-tab { padding: .35rem 0 .5rem; border-bottom: 3px solid transparent; }
.gs-tab.on { color: #1A73E8; border-bottom-color: #1A73E8; font-weight: 500; }
.gs-body { padding: .9rem 1rem 1rem; }
.gs-label { font-size: .8125rem; color: #202124; margin-bottom: .5rem; font-weight: 400; }

/* the little map */
.gs-map {
  position: relative; height: 7rem; border-radius: 8px; overflow: hidden;
  background: #E8EAED; margin-bottom: .75rem;
}
.gs-map::before, .gs-map::after {
  content: ""; position: absolute; background: #FFF;
}
.gs-map::before { left: -4%; right: -4%; top: 44%; height: 5px; transform: rotate(-2.5deg); }
.gs-map::after { top: 0; bottom: 0; left: 34%; width: 4px; transform: rotate(1.5deg); }
.gs-road { position: absolute; background: #FFF; opacity: .75; }
.gs-green { position: absolute; background: #D8EBDA; border-radius: 999px 8px 999px 8px; }
.gs-water { position: absolute; background: #AAD3F0; border-radius: 50% 40% 60% 45%; }
.gs-pin {
  position: absolute; width: 1.15rem; height: 1.15rem; border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg); display: grid; place-items: center;
  background: #EA4335; box-shadow: 0 1px 3px rgba(0,0,0,.35);
}
.gs-pin i { transform: rotate(45deg); font-style: normal; color: #FFF; font-size: .6rem; font-weight: 700; }
.gs-pin.you { background: #1A73E8; }

/* the three places */
.gs-place { display: block; padding: .6rem 0; border-top: 1px solid #EBEBEB; }
.gs-place:first-of-type { border-top: 0; }
.gs-pname { font-size: .875rem; color: #202124; font-weight: 400; }
.gs-prate { display: flex; align-items: center; gap: .3rem; font-size: .75rem; color: #70757A; margin-top: .1rem; }
.gs-stars { color: #E7711B; letter-spacing: -.02em; }
.gs-pmeta { font-size: .75rem; color: #70757A; margin-top: .1rem; }
.gs-open { color: #188038; }
.gs-shut { color: #D93025; }
.gs-pbtns { display: flex; gap: .4rem; margin-top: .4rem; }
.gs-pbtn {
  font-size: .6875rem; color: #1A73E8; border: 1px solid #DADCE0; border-radius: 999px;
  padding: .15rem .6rem;
}
.gs-more { font-size: .75rem; color: #1A73E8; padding-top: .6rem; border-top: 1px solid #EBEBEB; margin-top: .2rem; }

/* organic and sponsored results */
.gs-res { padding: .65rem 0; }
.gs-res + .gs-res { border-top: 1px solid #F1F1F1; }
.gs-sponsored { font-size: .75rem; font-weight: 700; color: #202124; margin-bottom: .15rem; }
.gs-url { font-size: .75rem; color: #202124; }
.gs-url em { font-style: normal; color: #5F6368; }
.gs-title { font-size: 1.0625rem; color: #1A0DAB; line-height: 1.3; margin-top: .05rem; }
.gs-desc { font-size: .8125rem; color: #4D5156; margin-top: .15rem; }
.gs-res.dim { opacity: .4; }
.gs-note {
  font-size: .75rem; line-height: 1.5; color: var(--muted); padding: .7rem 1rem;
  border-top: 1px solid var(--rule); background: var(--paper-2); font-family: var(--ui);
}

/* ============================================================ SERVICE PAGE HERO ART */
.head-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
@media (min-width: 1040px) {
  .head-grid { grid-template-columns: minmax(0,1fr) 24rem; gap: 3.5rem; }
  .page-head h1 { font-size: min(3rem, 4.2vw); }
}
.head-art { position: relative; }
.head-art::before {
  content: ""; position: absolute; z-index: 0; left: 50%; top: 50%;
  width: 26rem; height: 26rem; transform: translate(-50%,-50%); pointer-events: none;
  background: radial-gradient(circle, rgba(227,168,91,.16), rgba(227,168,91,0) 62%);
}
.head-art > * { position: relative; z-index: 1; }

/* the grant counter, for the Ad Grant hero */
.grant-card {
  border: 1px solid var(--deep-rule); border-radius: var(--r); background: var(--deep-2);
  padding: 1.4rem; display: grid; gap: 1rem;
}
.grant-top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.grant-big { font-family: var(--display); font-size: 2.6rem; font-weight: 600; color: var(--bright); letter-spacing: -.03em; line-height: 1; }
.grant-per { font-size: .8125rem; color: var(--deep-muted); }
.grant-line { height: .5rem; border-radius: 999px; background: var(--deep-3); overflow: hidden; }
.grant-line span { display: block; height: 100%; background: var(--bright); border-radius: 999px; }
.grant-rows { display: grid; gap: .5rem; }
.grant-row { display: flex; justify-content: space-between; gap: 1rem; font-size: .8125rem; color: var(--deep-muted); }
.grant-row b { color: var(--deep-ink); font-weight: 600; }
.grant-foot { font-size: .75rem; color: var(--deep-muted); border-top: 1px solid var(--deep-rule); padding-top: .8rem; }


/* ============================================================ SUPPORT INBOX
   Hero art for the websites page. The page argues that the product is the
   arrangement rather than the software, so the artefact is a week of actual
   requests and how long each took — not another picture of a website. */
.inbox {
  border: 1px solid var(--deep-rule); border-radius: var(--r); background: var(--deep-2);
  overflow: hidden;
}
.inbox-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: .9rem 1.1rem; border-bottom: 1px solid var(--deep-rule); background: var(--deep-3);
}
.inbox-head h5 { margin: 0; font-family: var(--ui); font-size: .8125rem; font-weight: 600; color: var(--deep-ink); }
.inbox-head span { font-size: .75rem; color: var(--deep-muted); }
.inbox-row {
  display: grid; grid-template-columns: 1rem minmax(0,1fr) auto; gap: .65rem; align-items: baseline;
  padding: .6rem 1.1rem; border-bottom: 1px solid var(--deep-rule); font-size: .8125rem;
}
.inbox-row:last-of-type { border-bottom: 0; }
.inbox-row svg { width: .8rem; height: .8rem; color: var(--bright); align-self: center; }
.inbox-what { color: var(--deep-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-when { color: var(--deep-muted); font-size: .75rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.inbox-row.urgent .inbox-what::after {
  content: "Sunday 6am"; margin-left: .45rem; font-size: .625rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--clay); font-weight: 700;
}
.inbox-foot {
  display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 1.1rem;
  border-top: 1px solid var(--deep-rule); background: var(--deep-3);
  font-size: .8125rem; color: var(--deep-muted);
}
.inbox-foot b { color: var(--bright); font-family: var(--display); font-size: 1.05rem; font-weight: 600; }

/* Grid children default to min-width:auto, so a child with a wide min-content
   floor pushes its own track past the viewport. The Google mock has such a
   floor (its tab row will not wrap), which was widening the page by ~10px on a
   phone. overflow:hidden on .page-head was masking the same thing in the heroes. */
.split > *, .head-grid > * { min-width: 0; }
.gs-top, .gs-input { min-width: 0; }
.gs-tabs { overflow-x: auto; scrollbar-width: none; }
.gs-tabs::-webkit-scrollbar { display: none; }
.gs-tab { white-space: nowrap; }
