/* r346: info pages (Home Boarding, cats, kennel comparison, trust, partners).
   Long-form, sourced reading: a 66-character measure, with each researched claim's source set in the margin on wide
   screens and kept as a numbered link to the Sources list on phones. Colors come only from the theme tokens in
   styles.css, so day and night modes and a partner's brand colors carry through. */

.g-page { --g-measure: 40rem; --g-rail: 15rem; --g-gap: 3rem; }
.g-page main { padding-bottom: 0; }

/* Hero: the question in the headline, the short answer right under it */
.g-hero { padding: 48px 0 32px; border-bottom: 1px solid var(--line); }
.g-hero .wrap { display: grid; gap: 28px; }
@media (min-width: 980px) { .g-hero .wrap { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: end; } }
.g-hero h1 { font-size: clamp(2.2rem, 5.4vw, 3.5rem); line-height: 1.04; margin: 0 0 18px; max-width: 15ch; text-wrap: balance; }
.g-hero .g-crumb { font-size: var(--fs-sm, .9rem); color: var(--muted); margin: 0 0 18px; }
.g-hero .g-crumb a { color: inherit; }
.g-lede { font-size: 1.18rem; line-height: 1.55; color: var(--body-ink); max-width: 34rem; margin: 0 0 22px; text-wrap: pretty; }
.g-answer { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-panel); padding: 22px 24px 20px; position: relative; }
.g-answer::before { content: ""; position: absolute; left: 0; top: 22px; bottom: 22px; width: 3px; border-radius: 3px; background: var(--gold); }
.g-answer h2 { font-size: 1.2rem; margin: 0 0 8px; }
.g-answer p { margin: 0; color: var(--body-ink); line-height: 1.6; }
.g-answer p + p { margin-top: 10px; }
.g-answer .g-updated { margin-top: 14px; font-size: .85rem; color: var(--muted); }

/* The promise in one line: the same six facts on every page */
.g-strip { background: var(--mint); border-bottom: 1px solid var(--line); }
.g-strip ul { list-style: none; margin: 0 auto; padding: 14px 16px; max-width: 1080px; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: .95rem; color: var(--ink); }
.g-strip li { display: inline-flex; align-items: center; gap: 8px; }
.g-strip li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: none; }

/* The reading column, with a margin rail for source notes on wide screens */
.g-body { max-width: 1080px; margin: 0 auto; padding: 8px 16px 24px; }
.g-sec { padding: 40px 0 8px; }
.g-sec + .g-sec { border-top: 1px solid var(--line); }
.g-sec > h2, .g-pair > h2 { font-size: clamp(1.55rem, 3.4vw, 2.1rem); margin: 0 0 14px; max-width: var(--g-measure); text-wrap: balance; }
.g-sec h3 { font-size: 1.2rem; margin: 26px 0 8px; }
.g-body p, .g-body li { font-size: 1.06rem; line-height: 1.68; color: var(--body-ink); }
.g-body p { margin: 0 0 16px; max-width: var(--g-measure); text-wrap: pretty; }
.g-body ul, .g-body ol { max-width: var(--g-measure); padding-left: 1.2em; margin: 0 0 18px; }
.g-body li { margin: 0 0 8px; }
.g-body li::marker { color: var(--gold); }
.g-body a { color: var(--field-dark); text-underline-offset: 3px; }
.g-pair { display: block; }
@media (min-width: 1060px) {
  .g-pair { display: grid; grid-template-columns: minmax(0, var(--g-measure)) var(--g-rail); column-gap: var(--g-gap); align-items: start; }
  .g-pair > :not(.g-note) { grid-column: 1; }
  .g-pair > .g-note { grid-column: 2; grid-row: 1 / span 20; }
}

/* A source note: the number, who said it, and a few words on what they found */
.g-note { font-size: .86rem; line-height: 1.5; color: var(--muted); margin: 4px 0 18px; padding: 0 0 0 14px; border-left: 1px solid var(--coral-mid); }
.g-note b { color: var(--ink); font-weight: 600; }
.g-note a { color: var(--muted); }
.g-note .g-n { font-family: var(--round); font-variant-numeric: tabular-nums; font-weight: 700; color: var(--gold); margin-right: 4px; }
@media (max-width: 1059px) { .g-note { display: none; } }
sup.g-ref { font-family: var(--round); font-size: .72em; line-height: 0; font-weight: 700; margin-left: 1px; }
sup.g-ref a { color: var(--gold); text-decoration: none; padding: 0 2px; }
sup.g-ref a:hover, sup.g-ref a:focus-visible { text-decoration: underline; }

/* Comparison: two ways to care for a pet, read across */
.g-table { width: 100%; max-width: 52rem; border-collapse: separate; border-spacing: 0; margin: 8px 0 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-panel); overflow: hidden; font-size: .98rem; }
.g-table th, .g-table td { text-align: left; vertical-align: top; padding: 13px 16px; border-bottom: 1px solid var(--line); line-height: 1.5; }
.g-table tr:last-child th, .g-table tr:last-child td { border-bottom: 0; }
.g-table thead th { background: var(--fog); font-family: var(--body); font-weight: 700; color: var(--ink); font-size: .92rem; }
.g-table tbody th { font-weight: 600; color: var(--ink); width: 26%; }
.g-table td { color: var(--body-ink); }
.g-table td.g-us { color: var(--ink); font-weight: 600; }
.g-table.g-wide { max-width: none; }   /* four columns: use the full width */
.g-tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -16px; padding: 0 16px; }
/* Phones: each row becomes a small block, the column name above each answer */
@media (max-width: 640px) {
  .g-tablewrap { margin: 0; padding: 0; overflow: visible; }
  .g-table, .g-table tbody, .g-table tr, .g-table th, .g-table td { display: block; width: auto; }
  .g-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .g-table tr { border-bottom: 1px solid var(--line); padding: 12px 16px; }
  .g-table tr:last-child { border-bottom: 0; }
  .g-table th, .g-table td { border: 0; padding: 4px 0; }
  .g-table tbody th { width: auto; font-size: 1.02rem; padding-bottom: 6px; }
  .g-table td[data-label]::before { content: attr(data-label); display: block; font-size: .82rem; font-weight: 600; color: var(--muted); }
  .g-table td[data-label=""]::before { content: none; }
}

/* A real sequence (a stay, start to finish) */
.g-steps { list-style: none; counter-reset: g; padding: 0 !important; max-width: var(--g-measure); }
.g-steps > li { counter-increment: g; position: relative; padding: 0 0 18px 54px; margin: 0 !important; }
.g-steps > li::before { content: counter(g); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 1px solid var(--coral-mid); color: var(--ink); font-family: var(--round); font-weight: 700; font-size: .95rem; }
.g-steps > li:not(:last-child)::after { content: ""; position: absolute; left: 17.5px; top: 40px; bottom: 4px; width: 1px; background: var(--coral-mid); }
.g-steps b { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: 2px; }

/* The Home Promise: eight key tags on one ring */
.g-promise { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 48px 0 44px; margin-top: 24px; }
.g-promise h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin: 0 0 6px; }
.g-promise .g-promise-sub { color: var(--muted); margin: 0 0 26px; max-width: 40rem; }
.g-ring { display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: 14px; list-style: none; margin: 0; padding: 0; }
.g-tag { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 14px 14px 14px 14px; padding: 18px 18px 16px 50px; min-height: 100%; }
.g-tag::before { /* the tag's punched hole, threaded on the ring */
  content: ""; position: absolute; left: 18px; top: 20px; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--gold); background: var(--card); box-shadow: 0 0 0 4px var(--paper); }
.g-tag b { display: block; font-family: var(--display); font-weight: 400; font-size: 1.12rem; color: var(--ink); line-height: 1.25; margin-bottom: 4px; }
.g-tag span { display: block; font-size: .95rem; line-height: 1.5; color: var(--body-ink); }
.g-terms { margin: 22px 0 0; font-size: .88rem; color: var(--muted); max-width: 46rem; }

/* Questions */
.g-faq { max-width: var(--g-measure); }
.g-faq details { border-top: 1px solid var(--line); }
.g-faq details:last-child { border-bottom: 1px solid var(--line); }
.g-faq summary { cursor: pointer; list-style: none; padding: 16px 36px 16px 0; position: relative; font-weight: 600; color: var(--ink); font-size: 1.06rem; }
.g-faq summary::-webkit-details-marker { display: none; }
.g-faq summary::before { content: none !important; }   /* the site-wide disclosure arrow; this list has its own */
.g-faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.g-faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.g-faq details p { margin: 0 0 16px; }
@media (prefers-reduced-motion: reduce) { .g-faq summary::after { transition: none; } }

/* Sources */
.g-sources ol { font-size: .95rem; padding-left: 1.6em; }
.g-sources li { color: var(--body-ink); margin-bottom: 10px; scroll-margin-top: 90px; }
.g-sources li:target { background: var(--coral-wash); border-radius: 6px; outline: 4px solid var(--coral-wash); }
.g-sources .g-org { color: var(--muted); }
.g-review { font-size: .9rem; color: var(--muted); max-width: var(--g-measure); }

/* Related reading */
.g-related { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); max-width: 52rem; margin: 6px 0 10px; }
.g-related a { display: block; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.g-related a:hover, .g-related a:focus-visible { border-color: var(--field); }
.g-related a b { display: block; font-family: var(--display); font-weight: 400; font-size: 1.05rem; margin-bottom: 2px; }
.g-related a span { font-size: .92rem; color: var(--muted); }

/* Closing call to action */
.g-final { background: var(--field); color: var(--on-field); padding: 52px 0; }
.g-final h2 { color: var(--on-field); font-size: clamp(1.6rem, 3.6vw, 2.3rem); margin: 0 0 10px; max-width: 22ch; }
.g-final p { color: color-mix(in srgb, var(--on-field) 82%, var(--field)); margin: 0 0 22px; max-width: 36rem; font-size: 1.05rem; }
.g-final .btn { background: var(--on-field); color: var(--field-dark); }

/* Partner page: what the software does, grouped by the job */
.g-jobs { display: grid; gap: 0; max-width: 60rem; border-top: 1px solid var(--line); }
.g-job { display: grid; gap: 6px 32px; padding: 22px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 800px) { .g-job { grid-template-columns: 13rem minmax(0, 1fr); } }
.g-job h3 { margin: 2px 0 0; font-size: 1.25rem; }
.g-job ul { margin: 0; }
.g-job li { margin-bottom: 6px; }
.g-terms-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-panel); padding: 22px 24px; max-width: 46rem; margin: 6px 0 20px; }
.g-terms-box dl { margin: 0; display: grid; gap: 12px 24px; }
@media (min-width: 700px) { .g-terms-box dl { grid-template-columns: 12rem minmax(0, 1fr); } }
.g-terms-box dt { font-weight: 700; color: var(--ink); }
.g-terms-box dd { margin: 0; color: var(--body-ink); line-height: 1.55; }

/* Partner inquiry form */
.g-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-panel); padding: 24px; max-width: 40rem; }
.g-form .row.two { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .g-form .row.two { grid-template-columns: 1fr 1fr; } }
.g-form label { display: block; font-weight: 600; margin: 12px 0 6px; color: var(--ink); }
.g-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.g-form .g-fine { font-size: .85rem; color: var(--muted); margin: 12px 0 0; }

/* Phones: the hero carries the main button, so the header keeps just the name, Sign in and the mode switch */
@media (max-width: 640px) { .g-page .topbar nav .btn.small { display: none; } }
/* No lone word on a paragraph's last line */
.g-body li, .g-tag span, .g-answer p, .g-promise-sub, .g-terms, .g-final p, .g-note, .g-related span, .g-job li { text-wrap: pretty; }

.g-page :focus-visible { outline: 3px solid color-mix(in srgb, var(--field) 55%, transparent); outline-offset: 2px; border-radius: 4px; }
