/* Center for Digestive Health & Nutrition rebuild: design system.

   Palette, sampled 6 Nov 2026 from gihealth.com (computed styles and the
   logo file), no invented hues:
     logo plum #59597d and logo green #01b237 (29233e_1e5c8b...jpg)
     "Schedule Online" button / brand green #3f7652
     link and current-menu green #1c8741, #1f9749
     text black #000 (we use a near-black for body copy)
   Type: their pages use Avenir LT 35 Light (body; a licensed Wix font, so
   Nunito Sans is the documented closest open substitute), Roboto Bold
   (headings), Poppins SemiBold (menu) and Raleway (subtitles). */

:root {
  --green: #3f7652;
  --green-2: #2f5c3f;
  --green-3: #1e3d29;
  --link: #3f7652;          /* their button green for links too: their link green #1c8741 is 4.6:1 on white but under 4.5 on tinted grounds */
  --leaf: #01b237;
  --plum: #59597d;
  --plum-2: #47476a;
  --ink: #141210;            /* all text black (readability floor, 17 Nov 2026) */
  --ink-2: #141210;
  --muted: #141210;          /* no grey text anywhere: "muted" is black too */
  --paper: #ffffff;
  --mist: #f4f7f5;
  --mist-2: #e8f1eb;
  --line: #dfe7e2;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(31, 52, 38, .09);
  --shadow-lg: 0 24px 60px rgba(31, 52, 38, .15);
  --font-text: "Nunito Sans", "Avenir Next", Avenir, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-menu: "Poppins", var(--font-text);
  --font-sub: "Raleway", var(--font-text);
  /* names the shared assistant styles use */
  --copper: var(--green);
  --copper-2: var(--green-2);
  --pine: var(--green);
  --pine-3: var(--green-2);
  --cream: #ffffff;
  --sage: var(--mist-2);
  --accent-light: #b9e6c6;
}
/* The component's own :root defaults load after this file, so the tokens sit on
   html:root to win (same element, higher specificity). */
html:root {
  /* First screen (../_shared/kx-header): their palette and fonts only.
     White on --green #3f7652 is 5.3:1, so the brand button keeps white text. */
  --kx-brand: var(--green);
  --kx-brand-2: var(--green-2);
  --kx-on-brand: #ffffff;
  --kx-ink: var(--ink);
  --kx-muted: var(--muted);
  --kx-line: rgba(27, 29, 28, .09);
  --kx-font: var(--font-text);
  --kx-font-display: var(--font-display);
  /* Page sections (../_shared/kx-sections, 17 Nov 2026). Headings black, their
     green for links and buttons, tinted grounds their green at 5%, the footer
     on their logo plum #59597d (white on it 7.1:1). */
  --kx-text: #141210;
  --kx-heading: #141210;
  --kx-h-weight: 700;
  --kx-foot-dark: #59597d;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-text); color: var(--ink-2); background: var(--paper); font-size: 17px; line-height: 1.68; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:not([class*="kx"]):hover { color: var(--green-3); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.2; font-weight: 700; letter-spacing: -.005em; }
.wrap { width: min(1200px, 100% - 40px); margin: 0 auto; }
.narrow { max-width: 860px; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 12px; top: 12px; z-index: 1000; background: #fff; padding: 10px 14px; border-radius: 8px; }
.center { text-align: center; }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 2px; }

/* ------------------------------------------------------------ buttons --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font: 600 15.5px/1.2 var(--font-text);
  text-decoration: none; cursor: pointer; border-radius: 999px; padding: 12px 22px; border: 1.5px solid transparent;
  transition: background .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-solid { background: var(--green); color: #fff; }
.btn-solid:hover { background: var(--green-2); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(63,118,82,.28); }
.btn-ghost { background: #fff; color: var(--green-2); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--green); color: var(--green-3); }
.btn-light { background: #fff; color: var(--green-2); }
.btn-light:hover { background: var(--mist-2); color: var(--green-3); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-lg { padding: 15px 26px; font-size: 16.5px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }
.text-link svg { width: 16px; height: 16px; }

/* ------------------------------------------------------- demo banner --- */
.preview-bar { background: #fff6d6; color: var(--ink); font-size: 14px; line-height: 1.45; border-bottom: 1px solid #ecdca0; }
.preview-bar .wrap { padding: 7px 0; text-align: center; }
.preview-bar a { color: var(--ink); font-weight: 700; }

/* ------------------------------------------------------------ top bar --- */
.topbar { background: var(--plum); color: #fff; font-size: 14px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 7px 0; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }
.tb-addr, .tb-portal { display: inline-flex; align-items: center; gap: 6px; }
.tb-addr svg, .tb-portal svg { width: 15px; height: 15px; opacity: .9; }
.tb-right { display: flex; align-items: center; gap: 16px; }
.tb-lang { border: 1px solid rgba(255,255,255,.55); border-radius: 999px; padding: 2px 11px; font-weight: 700; }

/* ------------------------------------------- header (kx-header) --- */
/* Their logo square and their wordmark, as in the old masthead, sized for the
   one-bar header. The overlay state inherits white from .kxh. */
.kxh-brand { min-width: 0; }
.kxh .kxh-brand img { width: 46px; border-radius: 6px; }
.kxh-brand .brand-word { display: flex; flex-direction: column; min-width: 0; }
.kxh-brand .brand-word b { font: 700 15px/1.12 var(--font-display); letter-spacing: .005em; max-width: 13.5em; }
.kxh-brand .brand-word small { font: 500 14px/1.3 var(--font-sub); margin-top: 3px; }
/* The "More" item has no page of its own. */
.kxh-nav li.has-sub > a[role="button"] { cursor: pointer; }
/* The headline is the build's h1; keep the component's white on the photo. */
.kxhero-title { color: inherit; }
/* .kxhero-inner sets width: 100%, which would undo this build's .wrap gutters. */
.kxhero-inner.wrap { width: min(1200px, 100% - 40px); }
/* Home first screen, stacked (the KernGastro pattern): copy on their green, then
   the whole group photo at its natural aspect. The photo prints names along its
   top (from 5% down) and bottom (86 to 91%) edges, so nothing crops, zooms,
   veils or moves it; the header floats over the green, never over the photo.
   Fades touch only the bare wall above the top names (0 to 3.5%) and the white
   margin under the bottom names (94% on), which runs into the white band. */
.kxhero.kxhero-stack {
  min-height: 0; flex-direction: column; align-items: stretch;
  background: linear-gradient(180deg, var(--green-3) 0, var(--green) 360px) var(--green);
}
.kxhero-stack .kxhero-inner { order: 1; padding-bottom: clamp(28px, 4vw, 48px); }
.kxhero-stack .kxhero-media { position: relative; inset: auto; order: 2; z-index: 0; overflow: visible; }
html .kxhero.kxhero-stack .kxhero-media img {
  position: static; top: auto; display: block; width: 100%; height: auto;
  object-fit: fill; transform: none; animation: none; will-change: auto;
}
.kxhero-stack .kxhero-media::before,
.kxhero-stack .kxhero-media::after { content: ""; position: absolute; left: 0; right: 0; pointer-events: none; }
.kxhero-stack .kxhero-media::before { top: -1px; height: 3.5%; background: linear-gradient(180deg, var(--green), rgba(63, 118, 82, 0)); }
.kxhero-stack .kxhero-media::after { bottom: -1px; height: 6%; background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff); }
.kxhero-stack .kxhero-veil { display: none; }
/* Their green button on their green: a white hairline keeps its edge. */
.kxh.is-overlay:not(.is-condensed):not(.is-open) .kxh-cta,
.kxhero-row .kx-btn-brand { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55), 0 10px 26px -10px rgba(0, 0, 0, .45); }
.home-follow { border-top: 0; }
/* Twelve items in the phone sheet: continue the stagger past seven. */
.kxh-sheet.is-open nav > ul > li:nth-child(n+8) { transition-delay: .34s; }

/* --------------------------------------------- after the first screen --- */
.follow-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.follow-top .hero-lead { margin: 0; }
.follow-side { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr) 190px; align-items: stretch; }
.hero-lead { font: 500 clamp(20px, 2vw, 24px)/1.4 var(--font-sub); color: var(--ink); margin: 14px 0 24px; }
.kxs-card.audio { flex-direction: row; align-items: center; gap: 14px; padding: 14px 16px; }
.audio img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex: none; }
.audio > div { flex: 1; min-width: 0; }
.audio b { display: block; font: 700 14px/1.2 var(--font-display); letter-spacing: .04em; margin-bottom: 6px; }
.audio audio { width: 100%; height: 36px; }
.hero-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: stretch; margin-top: 26px; }
.kxs-card.quotes { display: grid; padding: 22px 26px; min-height: 130px; }
.q-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.q-head img { width: auto; height: 20px; }
.q-head img + img { height: 24px; }
.quotes .q { grid-area: 2 / 1; font: 400 17px/1.6 var(--font-text); color: var(--ink); opacity: 0; transition: opacity .8s ease; }
.quotes .q.on { opacity: 1; }
.tips { border: 1px solid var(--kx-card-line); padding: 0; background: none; cursor: pointer; border-radius: var(--kx-radius); overflow: hidden; width: 190px; }
.tips img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.tips:hover img { transform: scale(1.03); }
.vid-dlg { border: 0; border-radius: 18px; padding: 0; background: #000; max-width: min(92vw, 480px); overflow: visible; }
.vid-dlg::backdrop { background: rgba(10, 20, 14, .72); }
.vid-dlg video { width: 100%; max-height: 82vh; border-radius: 18px; }
.vid-x { position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; font-size: 24px; cursor: pointer; box-shadow: var(--shadow); }

/* -------------------------------------------------------- home sections --- */
.home-intro { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.55; }
.h-card { padding: 34px 38px; }
.trec-pics { margin: 32px 0; }
.trec-pics .kxs-photo img { aspect-ratio: 4 / 3; }
.logos { display: flex; flex-wrap: wrap; gap: 26px; align-items: center; margin-top: 28px; }
.logos img { height: 84px; width: auto; border-radius: 10px; background: #fff; padding: 6px; border: 1px solid var(--kx-card-line); }
.more-row { margin-top: 32px; }

/* ---------------------------------------------------------- page body --- */
/* Their verbatim blocks beside our side column (buttons, office card). */
.page-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
.prose { min-width: 0; }
.prose h4 { font-size: 18px; margin-top: 1.3em; }
.prose .lbl { font-size: 15px; font-weight: 600; }
.prose figure { margin: 18px 0; }
.prose figure.pic img { border-radius: 16px; border: 1px solid var(--kx-card-line); max-height: 440px; width: auto; max-width: 100%; }
.prose figure.ico { display: inline-block; margin: 6px 0; }
.prose figure.ico img { width: 64px; height: auto; }
.lead-prose { font-size: 19px; }
.prose a.btn { text-decoration: none; }
.gallery { display: grid; gap: 14px; }
.gallery.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; aspect-ratio: 4 / 3; }
.cards .gallery img { aspect-ratio: auto; object-fit: contain; background: var(--mist); }
.media { margin: 20px 0; max-width: 640px; }
.media.short { max-width: 340px; }
.media video { width: 100%; border-radius: 16px; background: #000; }
.yt { position: relative; display: block; width: 100%; border: 0; padding: 0; cursor: pointer; border-radius: 16px; overflow: hidden; background: #0d1a12; aspect-ratio: 16 / 9; }
.yt img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.yt:hover img { transform: scale(1.02); }
.yt-play { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px; border-radius: 14px; background: rgba(0,0,0,.72); }
.yt-play::after { content: ""; position: absolute; left: 27px; top: 14px; border-left: 18px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.yt:hover .yt-play { background: #d61f1f; }
.yt .yt-badge { position: absolute; left: 12px; bottom: 12px; width: auto; height: auto; max-width: 40%; max-height: 42%; object-fit: contain; border-radius: 8px; background: #fff; }
.media.short .yt { aspect-ratio: 9 / 16; }
.yt-frame { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 16px; }
.media.short .yt-frame { aspect-ratio: 9 / 16; }

/* --------------------------------------------------------------- sidebar --- */
.side { position: sticky; top: calc(var(--kx-h-small, 66px) + 24px); display: flex; flex-direction: column; gap: 18px; }
.side-cta { display: flex; flex-direction: column; gap: 10px; }
.kxs-place .kxs-card-ico { margin-bottom: 14px; }
.contact .kxs-place { margin-top: 24px; }
.kxs-hero .kxs-hero-media.is-portrait { max-width: 320px; }

/* ------------------------------------------------------------ library --- */
.lib-sec, .faq-sec { padding: 10px 0 40px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tabs [role=tab] { font: 600 15px var(--font-menu); border: 1px solid var(--kx-card-line); background: #fff; color: var(--ink); border-radius: 999px; padding: 9px 16px; cursor: pointer; transition: background .15s, border-color .15s; }
.tabs [role=tab]:hover { border-color: var(--green); }
.tabs [role=tab][aria-selected=true] { background: var(--green); border-color: var(--green); color: #fff; }
.edu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.edu-grid[hidden], .faq-panel[hidden] { display: none; }
.edu-card.kxs-card { padding: 20px; gap: 12px; }
.edu-card h3 { font-size: 17.5px; }
.edu-ico { width: 34px; height: 34px; }
.edu-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.edu-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; text-decoration: none; color: var(--green-2); background: var(--mist-2); border-radius: 999px; padding: 6px 12px; }
.edu-link svg, .edu-link img { width: 16px; height: 16px; border-radius: 4px; }
.edu-link.pod { background: #ecebf3; color: var(--plum-2); }
.edu-link:hover { filter: brightness(.96); }
.edu-more { margin-top: 36px; }
.edu-more h2 { font-size: 22px; margin-bottom: 14px; }
.pill-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.pill-list a { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; text-decoration: none; font-weight: 600; font-size: 15px; background: #fff; }

/* ---------------------------------------------------------------- faq --- */
.faq-panel { display: flex; flex-direction: column; gap: 10px; max-width: 920px; }
.qa { background: #fff; border: 1px solid var(--kx-card-line); border-radius: 14px; }
.qa summary { list-style: none; cursor: pointer; padding: 16px 52px 16px 20px; position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary h3 { font-size: 18px; margin: 0; }
.qa summary::after { content: "+"; position: absolute; right: 18px; top: 12px; font: 400 26px var(--font-text); color: var(--green); }
.qa[open] summary::after { content: "−"; }
.qa[open] { border-color: var(--green); }
.qa-a { padding: 0 20px 18px; }
.qa-a > * + * { margin-top: 10px; }
.qa-a img { max-width: 380px; border-radius: 12px; }

/* ------------------------------------------------------------- hours --- */
.hours-card.kxs-card { margin: 26px 0; padding: 24px 26px; }
.hours-card h2 { margin-top: 0 !important; font-size: 22px; }
.hours { border-collapse: collapse; width: 100%; max-width: 420px; margin-top: 8px; }
.hours th, .hours td { text-align: left; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.hours th { font-weight: 600; color: var(--ink); padding-right: 16px; }
.hours-note { font-size: 15px; margin-top: 8px; }

/* -------------------------------------------------------------- blog --- */
.post-img { display: block; aspect-ratio: 16 / 10; background: var(--mist-2); overflow: hidden; }
.post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.post-card:hover .post-img img { transform: scale(1.03); }
.post-body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 18px 22px 22px; }
.post-meta { font-size: 15px; font-weight: 600; }
.post-title.kxs-card-title { font-size: 20px; margin: 0; }
.post-ex { font-size: 16px; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 36px !important; }
.kxs-prose .post-nav a { display: block; border: 1px solid var(--kx-card-line); border-radius: 14px; padding: 14px 16px; text-decoration: none; font-weight: 600; color: var(--ink); }
.post-nav a:hover { border-color: var(--green); }
.post-nav a:last-child { text-align: right; }
.post-nav small { display: block; font-weight: 600; font-size: 14px; color: var(--green-2); }

/* -------------------------------------------------- christmas cards --- */
.ct-img { display: block; aspect-ratio: 4 / 3; background: var(--mist); overflow: hidden; }
.ct-img img { width: 100%; height: 100%; object-fit: cover; }
.ct-t { padding: 14px 16px; font-weight: 600; font-size: 16px; line-height: 1.35; }

/* ----------------------------------------------------------- demo card --- */
.demo-card { gap: 10px; margin-top: 18px; padding: 24px; }
.demo-card strong { font: 700 19px/1.3 var(--font-display); color: var(--ink); }
.demo-card p { margin: 0; }
.map iframe { width: 100%; height: 320px; border: 0; border-radius: 16px; margin-top: 20px; }
.f-soc { display: flex; gap: 10px; margin-top: 18px; }
.f-soc img { width: 28px; height: 28px; border-radius: 6px; }
.f-soc.big img { width: 34px; height: 34px; }

/* --------------------------------------------------------- footer --- */
.kxf-logo img { width: 84px; border-radius: 10px; }
.kxf-brand p + p { margin-top: 10px; }
.kxf .hours { max-width: 460px; }
.kxf .hours th, .kxf .hours td { color: #fff; border-color: rgba(255,255,255,.2); font-size: 15.5px; padding: 6px 0; }
.kxf .hours-note { color: #fff; }

/* ------------------------------------------------------- responsive --- */
/* The bar fits brand, the first menu items, "More", phone, language and the
   button from 1280 px; below that the wordmark gives way to the logo square. */
@media (max-width: 1279px) {
  .kxh-brand .brand-word { display: none; }
}
@media (max-width: 980px) {
  .hero-row { grid-template-columns: minmax(0, 1fr); }
  .page-body { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .side { position: static; }
}
@media (max-width: 1100px) {
  .kxh-brand .brand-word { display: flex; }
}
/* Between phone and tablet the bar also carries language and the button. */
@media (max-width: 820px) {
  .kxh-brand .brand-word small { display: none; }
}
@media (min-width: 561px) and (max-width: 720px) {
  .kxh-brand .brand-word { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .wrap { width: calc(100% - 32px); }
  .topbar .tb-addr { display: none; }
  .topbar .wrap { justify-content: flex-end; }
  .kxh-brand .brand-word small { display: none; }
  .kxh-brand .brand-word b { font-size: 14px; max-width: 12em; }
  .kxhero-inner.wrap { width: calc(100% - 32px); }
  .follow-side { grid-template-columns: minmax(0, 1fr); }
  .tips { width: 100%; max-width: 260px; }
  .gallery.g3, .gallery.g4 { grid-template-columns: 1fr 1fr; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav a:last-child { text-align: left; }
  .h-card { padding: 22px; }
  .logos img { height: 64px; }
  .btn { white-space: normal; text-align: center; }
}
/* Short phones: the chips give way so more of the group photo reaches the first screen. */
@media (max-width: 560px) and (max-height: 700px) {
  .kxhero .kxhero-chips { display: none; }
}
@media (max-width: 359px) {
  .kxh .kxh-brand img { width: 40px; }
  .kxh-brand .brand-word { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .quotes .q, .tips img, .yt img { transition: none !important; }
}

/* ------------------------------------------- 16 Nov 2026 audit fixes --- */
/* Long words and bare URLs in their text (a heading with no spaces, links
   written out in full) must wrap instead of pushing the page sideways. */
.kxs-hero-title, .prose, .post-title, .post-ex, .kxs-crumbs, .qa summary h3, .edu-card h3 { overflow-wrap: break-word; }
/* Tap targets: at least 24 px tall without changing how the links look. */
.preview-bar a, .topbar a { display: inline-block; padding-top: 3px; padding-bottom: 3px; min-height: 24px; }
.prose p > a:only-child { display: inline-block; padding: 3px 0; min-height: 24px; max-width: 100%; overflow-wrap: break-word; }
.prose figure.ico a { display: inline-block; min-height: 24px; min-width: 24px; }
/* tap targets: a link that is a whole list item or line reaches 24 px */
.kxs-prose li > a:only-child, .kxs-prose li > strong > a:only-child, .kxs-prose p > a:only-child,
.kxs-prose p > strong > a, .contact-line a { display: inline-block; padding: 3px 0; max-width: 100%; }
/* plain text links in their copy: a taller hit box (24 px) without moving the line */
.kxs-prose a:not([class]), .post-body a:not([class]) { padding-block: 3px; }
/* their rotating testimonials: the quotes not on show are hidden from
   everyone (not only faded), so nothing invisible is left to read or tab to */
.quotes .q { visibility: hidden; transition: opacity .8s ease, visibility 0s linear .8s; }
.quotes .q.on { visibility: visible; transition: opacity .8s ease; }
/* footer base links reach 24 px */
.kxf-base a { display: inline-block; padding: 3px 0; }
/* prose inside a card keeps its paragraph rhythm (.kxs-card p resets margins) */
.kxs-card .kxs-prose > * + * { margin-top: .9em; }
.kxs-card .kxs-prose h2 { margin-bottom: 0; }

/* ------------------------------------------------------------ assistant --- */

.fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  display: flex; align-items: center; gap: 10px;
  background: var(--pine); color: var(--cream); border: none; cursor: pointer;
  border-radius: 999px; padding: 14px 22px; font: 600 15px var(--font-text);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .4); transition: transform .15s, background .15s;
}
.fab:hover { transform: translateY(-2px); background: var(--pine-3); }
.fab svg { color: var(--accent-light); }

.chat[hidden] { display: none; }
.chat {
  position: fixed; right: 22px; bottom: 22px; z-index: 70;
  width: min(410px, calc(100vw - 28px)); height: min(600px, calc(100vh - 40px));
  background: var(--paper); border-radius: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
  display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line);
}
.chat header {
  background: var(--pine); color: var(--cream); padding: 16px 20px;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 10px;
}
.chat header strong { font-family: var(--font-display); font-size: 17px; display: block; }
.chat header small { color: #b5b5b5; font-size: 12px; }
.chat header button {
  background: none; border: none; color: var(--cream); font-size: 26px;
  cursor: pointer; line-height: 1; padding: 0 2px;
}
.chat .log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.msg { display: flex; }
.msg.user { justify-content: flex-end; }
.bubble {
  max-width: 86%; padding: 11px 15px; border-radius: 16px; font-size: 14.5px;
  background: var(--sage); color: var(--ink);
}
.msg.user .bubble { background: var(--pine); color: var(--cream); border-bottom-right-radius: 5px; }
.msg.assistant .bubble { border-bottom-left-radius: 5px; background: #f1f1f1; }
.bubble p { margin-bottom: 8px; }
.bubble p:last-child { margin-bottom: 0; }
.bubble ul { padding-left: 18px; margin-bottom: 8px; }
.sources { display: flex; flex-direction: column; gap: 5px; margin-top: 10px;
  border-top: 1px solid var(--line); padding-top: 8px; }
.sources a { font-size: 12.5px; color: var(--copper-2); text-decoration: none; font-weight: 600; }
.sources a::before { content: "→ "; }
.sources a:hover { text-decoration: underline; }
.chat .chips { padding: 0 18px 10px; display: flex; flex-wrap: wrap; gap: 7px; }
.chat form { display: flex; gap: 8px; padding: 12px 16px 16px; border-top: 1px solid var(--line); }
.chat input {
  flex: 1; border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 16px;
  font: inherit; font-size: 14.5px;
}
.chat input:focus { outline: 2px solid var(--copper); border-color: transparent; }

.dots { display: inline-flex; gap: 4px; padding: 4px 2px; }
.dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted);
  animation: bounce 1.2s infinite; }
.dots span:nth-child(2) { animation-delay: .15s; }
.dots span:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 30% { transform: translateY(-5px); opacity: .5; } }

/* ---------------- the big landing assistant (CurativeGI-style) ----------- */

.assist-sec { background: #ffffff; padding: 0 0 56px; margin-top: -1px; }
.assist-sec .wrap { max-width: 1160px; }
.gxa {
  display: flex; flex-direction: column; overflow: hidden;
  height: 780px; max-height: 88vh; margin-top: 26px; position: relative; z-index: 5;
  background: var(--paper); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 24px 60px rgba(31, 52, 38, .16), 0 8px 24px rgba(0, 0, 0, .10);
}
.gxa-head {
  display: flex; align-items: center; gap: 12px; padding: 15px 18px; color: #fff;
  background: linear-gradient(115deg, var(--copper) 0%, var(--copper-2) 70%, #183d5e 100%);
}
.gxa-ava { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.16); display: grid; place-items: center; flex: none; }
.gxa-ava svg { width: 26px; height: 26px; }
.gxa-who { line-height: 1.25; min-width: 0; }
.gxa-who b { font-family: var(--font-display); font-size: 17px; font-weight: 700; display: block; }
.gxa-who span { display: flex; align-items: center; gap: 7px; font-size: 12.5px; opacity: .92; }
.gxa-who em { font-style: normal; }
.gxa-live { width: 7px; height: 7px; border-radius: 50%; background: #66e6a1; box-shadow: 0 0 0 3px rgba(102,230,161,.28); }
.gxa-reset { margin-left: auto; background: rgba(255,255,255,.14); border: 0; color: #fff; width: 34px; height: 34px; border-radius: 9px; cursor: pointer; display: grid; place-items: center; }
.gxa-reset:hover { background: rgba(255,255,255,.28); }
.gxa-reset svg { width: 18px; height: 18px; }

.gxa-msgs { flex: 1 1 auto; overflow-y: auto; padding: 20px 18px 8px; background: linear-gradient(180deg, #f4f9fb, #fff 120px); }
.gxa-row { display: flex; gap: 10px; margin: 0 0 16px; align-items: flex-end; }
.gxa-av { width: 30px; height: 30px; border-radius: 9px; flex: none; display: grid; place-items: center; background: linear-gradient(180deg, var(--copper), var(--copper-2)); color: #fff; }
.gxa-av svg { width: 18px; height: 18px; }
.gxa-bubble { max-width: 80%; padding: 12px 15px; border-radius: 15px; font-size: 15px; line-height: 1.58; }
.gxa-row.bot .gxa-bubble { background: #eef6f9; border: 1px solid #d6e9f0; border-top-left-radius: 5px; }
.gxa-row.user { flex-direction: row-reverse; }
.gxa-row.user .gxa-bubble { background: linear-gradient(180deg, var(--copper), var(--copper-2)); color: #fff; border-top-right-radius: 5px; }
.gxa-bubble p { margin: 0 0 9px; } .gxa-bubble p:last-child { margin-bottom: 0; }
.gxa-bubble ul { margin: 6px 0; padding-left: 18px; }
.gxa-bubble .dots span { width: 8px; height: 8px; }

.gxa-suggest { padding: 2px 2px 12px 40px; }
.gxa-sg-title { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin: 4px 2px 8px; }
.gxa-sg { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
.gxa-sg button {
  text-align: left; cursor: pointer; font-family: var(--font-text); font-size: 14.5px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
  transition: .15s; display: flex; gap: 10px; align-items: center;
}
.gxa-sg button:hover { border-color: var(--copper); background: #e9f4f8; transform: translateX(2px); }
.gxa-sg button svg { width: 18px; height: 18px; color: var(--copper); flex: none; }

.gxa-quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 18px 10px; }
.gxa-chip {
  cursor: pointer; font-family: var(--font-text); font-size: 13.5px; font-weight: 600; color: var(--copper-2);
  background: #fff; border: 1.5px solid #cfe6ee; padding: 9px 14px; border-radius: 999px; transition: .15s;
  display: inline-flex; align-items: center; gap: 7px; text-decoration: none;
}
.gxa-chip:hover { border-color: var(--copper); background: #e9f4f8; transform: translateY(-1px); }
.gxa-chip svg { width: 15px; height: 15px; }
.gxa-chip.solid { background: #e9f4f8; }

.gxa-composer { border-top: 1px solid var(--line); padding: 12px 14px; background: #fff; }
.gxa-composer form {
  display: flex; gap: 10px; align-items: flex-end; background: #f4f9fb; border: 1.5px solid var(--line);
  border-radius: 16px; padding: 7px 7px 7px 15px; transition: border-color .15s, box-shadow .15s;
}
.gxa-composer form:focus-within { border-color: var(--copper); box-shadow: 0 0 0 4px rgba(63,118,82, .10); background: #fff; }
.gxa-composer textarea {
  flex: 1; border: 0; outline: 0; resize: none; background: transparent; font-family: var(--font-text);
  font-size: 15px; color: var(--ink); line-height: 1.5; max-height: 120px; padding: 7px 0;
}
.gxa-send {
  flex: none; width: 42px; height: 42px; border-radius: 12px; border: 0; cursor: pointer; color: #fff;
  background: linear-gradient(180deg, var(--copper), var(--copper-2)); display: grid; place-items: center;
}
.gxa-send:hover { box-shadow: 0 6px 16px rgba(63,118,82, .35); }
.gxa-send:disabled { opacity: .45; cursor: default; box-shadow: none; }
.gxa-send svg { width: 19px; height: 19px; }
.gxa-mic { flex: none; width: 42px; height: 42px; border-radius: 12px; border: 0; cursor: pointer; color: var(--copper); background: transparent; display: grid; place-items: center; }
.gxa-mic:hover { background: rgba(63,118,82, .09); }
.gxa-mic svg { width: 21px; height: 21px; }
.gxa-mic.listening { color: #fff; background: linear-gradient(180deg, #e0464b, #c5363b); animation: gxaPulse 1.3s infinite; }
@keyframes gxaPulse { 0% { box-shadow: 0 0 0 0 rgba(224,70,75,.5); } 70% { box-shadow: 0 0 0 10px rgba(224,70,75,0); } 100% { box-shadow: 0 0 0 0 rgba(224,70,75,0); } }
.gxa-disc { margin: 9px 6px 2px; font-size: 11.5px; color: var(--muted); text-align: center; line-height: 1.45; }
.gxa .book-cta { margin-top: 10px; }
.gxa .sources { margin-top: 10px; }

@media (max-width: 720px) {
  .gxa { height: 82vh; height: calc(100dvh - 130px); min-height: 480px; margin-top: 16px; }
  .gxa-sg { grid-template-columns: 1fr; }
  .gxa-suggest { padding-left: 0; }
  .gxa-bubble { max-width: 88%; }
  .gxa-composer textarea { font-size: 16px; }
}

/* ------------------------------------- design pass B (17 Nov 2026) --- */
/* Readability floor for the assistant (_shared/kx-sections rules): no text
   under 14 px, no grey or faded text. */
.fab, .fab:hover { color: #fff; }
.fab svg { color: #fff; }
.chat header small { color: #fff; font-size: 14px; font-weight: 500; }
.chat header button { min-width: 32px; min-height: 32px; }
.bubble, .chat input { font-size: 16px; }
.sources a { font-size: 14px; display: inline-block; padding: 3px 0; }
.gxa-who b { font-size: 18px; }
.gxa-who span { font-size: 14px; font-weight: 500; opacity: 1; }
.gxa-reset { width: 40px; height: 40px; }
.gxa-bubble { font-size: 16px; color: var(--ink); }
.gxa-row.user .gxa-bubble { color: #fff; }
.gxa-sg-title { font-size: 14px; color: var(--ink); }
.gxa-sg button { font-size: 15.5px; }
.gxa-chip { font-size: 14.5px; color: var(--ink); }
.gxa-composer textarea { font-size: 16px; color: var(--ink); }
.gxa-composer textarea::placeholder { color: #4a4a4a; }
.gxa-disc { font-size: 14px; color: var(--ink); }
.dots span { background: #4a4a4a; }
.assist-sec { background: transparent; margin-top: 0; }
.gxa { margin-top: 0; box-shadow: 0 24px 60px rgba(0, 0, 0, .10), 0 8px 24px rgba(0, 0, 0, .06); }
@media (max-width: 720px) {
  /* Phones (GastroArkansas round 2): the whole panel scrolls as one, header
     and composer pinned, so the greeting, every suggestion and the Book /
     Call / Directions row are reachable and fully tappable; never taller
     than 85% of the screen. */
  .gxa { height: auto; min-height: 0; max-height: 85vh; max-height: 85svh; overflow-y: auto; scroll-padding: 96px 0 180px; }
  .gxa > * { flex: none; }
  .gxa-head { position: sticky; top: 0; z-index: 3; }
  .gxa-msgs { overflow: visible; }
  .gxa-quick { padding-top: 8px; padding-bottom: 14px; }
  .gxa-composer { position: sticky; bottom: 0; z-index: 3; }
  .gxa-sg { grid-template-columns: 1fr; }
  .gxa-suggest { padding-left: 0; }
  .gxa-bubble { max-width: 88%; }
}
