/* ReportlyDC site layer: the brand tokens printed by start.mjs brand (paper, ink, signature yellow,
   Host Grotesk) and the few page rules the kit leaves to the page. Loaded after the kit's stylesheets. */
@font-face {
  font-family: "Host Grotesk";
  src: url("/assets/fonts/host-grotesk.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --p-bg: #f4f3ee; --p-surface: #ffffff; --p-ink: #151515; --p-muted: #60605d;
  --p-accent: #fef200; --p-accent-ink: #111111; --p-action: #151515; --p-action-ink: #f4f3ee;
  --p-inv-bg: #151515; --p-inv-surface: #212121; --p-inv-ink: #f4f3ee; --p-inv-muted: #969693;
  --p-inv-accent: #fef200; --p-inv-accent-ink: #111111; --p-inv-action: #fef200; --p-inv-action-ink: #111111;
  --font-display: "Host Grotesk", system-ui, sans-serif;
  --font-text: "Host Grotesk", system-ui, sans-serif;
  --display-weight: 400;
  --display-tracking: -0.035em;
  --display-tracking-xl: -0.04em;
}

/* the client's own wordmark: "reportly." with the yellow-olive full stop, as on /activate/ */
.nav__logo.wordmark { font: 700 30px/1 var(--font-display); letter-spacing: -0.075em; min-height: 44px; }
.nav__logo.wordmark span { color: #746e00; }
@media (max-width: 639px) { .nav__logo.wordmark { font-size: 26px; } }

/* hero: the report photograph keeps its cover in frame */
.hero__media img { object-position: var(--ly-pos, 50% 50%); }

/* service rows: the name is the link to its page */
.rows .rows__name a { text-decoration: none; display: inline-block; padding-block: 12px; margin-block: -12px; }
.rows .rows__name a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* concept report tiles: the spreads are wide, so the panel follows their ratio */
#work .panel { --p-h: auto; height: auto; aspect-ratio: 612 / 792; }
#work .panel img { object-fit: cover; }

/* inner pages: long-form text column */
.prose { max-width: 68ch; }
.prose > * + * { margin-top: var(--s-4); }
.prose h2 { margin-top: var(--s-8); font-size: var(--t-h3); line-height: 1.2; }
.prose h3 { margin-top: var(--s-6); font: 500 var(--t-lead)/1.35 var(--font-text); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: var(--s-2); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--t-small); }
.prose th, .prose td { text-align: left; padding: var(--s-3) var(--s-2); border-bottom: 1px solid var(--line); vertical-align: top; }
.prose blockquote { margin: 0; padding-left: var(--s-5); border-left: 3px solid var(--accent); }
.prose img { border-radius: var(--r-lg); }
.prose figure { margin: var(--s-6) 0; }

/* the booking calendar on /start/ */
.booking-frame { border-radius: var(--r-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); }
.booking-frame iframe { display: block; width: 100%; height: 720px; border: 0; }
@media (max-width: 639px) { .booking-frame iframe { height: 780px; } }

/* visitor tracking choices (Apollo), on the tokens */
#reportly-tracking-consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  background: var(--p-surface); color: var(--p-ink); border-top: 1px solid var(--line);
  font: 400 var(--t-small)/1.5 var(--font-text); box-shadow: 0 -8px 30px rgba(0,0,0,.06); }
#reportly-tracking-consent .consent__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3) var(--s-6); padding-block: var(--s-4); }
#reportly-tracking-consent .consent__bar > p { max-width: 80ch; }
#reportly-tracking-consent[hidden] { display: none; }
#reportly-tracking-consent p { margin: 0; }
#reportly-tracking-consent a { text-decoration: underline; }
#reportly-tracking-consent .btn-row { margin: 0; flex: none; }
.consent-link { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 44px; }

/* inner pages: content sections that grow with their copy (long-form pages: services, guides, policy) */
main > section.flow { height: auto; min-height: 0; padding: var(--padt) 0 var(--padb); }
main > section.flow > .wrap { height: auto; }
main > section.flow + section.flow:not(.ground-surface):not(.article-body) { padding-top: var(--padb); }
.flow .grid + .prose, .flow .prose + .grid, .flow .grid + .grid, .flow .section-head + .grid { margin-top: var(--s-6); }
.flow .card h3 { margin-top: var(--s-2); }
.flow .card p + p { margin-top: var(--s-2); }
.flow .card .btn, .flow .card .link { margin-top: auto; align-self: flex-start; }
.flow .card { display: flex; flex-direction: column; gap: var(--s-3); }
.flow .card--plan .price { margin: var(--s-2) 0 0; }
.flow .card--plan ul { padding-left: 1.2em; }
.flow .faq + .prose { margin-top: var(--s-8); }
.link-list { list-style: none; padding: 0; margin: var(--s-6) 0 0; display: grid; gap: var(--s-2); }
.link-list a { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 1023px) {
  .flow .grid > .span-4.section-head, .flow .grid > .span-7.start-6 { grid-column: 1 / -1; }
}

/* articles */
.article-head { padding-top: calc(var(--nav) + var(--s-9)) !important; }
.article-head h1 { max-width: 22ch; margin: var(--s-4) 0 var(--s-4); font-size: var(--t-h1); }
.article-crumbs a { text-decoration: underline; text-underline-offset: 3px; }
.article-hero { margin: var(--s-7) 0 0; }
.article-hero__img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--r-lg); display: block; }
.article-hero figcaption, .article-figure figcaption, .prose .photo-credit { margin-top: var(--s-2); font-size: var(--t-small); color: var(--muted); }
.article-body { padding-top: var(--s-8) !important; }
.prose--article { margin-inline: auto; font-size: 18px; line-height: 1.65; }
.prose--article h2 { font: var(--display-weight) var(--t-h3)/1.15 var(--font-display); letter-spacing: var(--display-tracking); }
.prose--article section + section, .prose--article section + figure, .prose--article figure + section { margin-top: var(--s-8); }
.prose--article > section > * + * { margin-top: var(--s-4); }
.article-figure img { width: 100%; height: auto; border-radius: var(--r-lg); display: block; }
.prose .note { background: var(--p-surface); border-left: 3px solid var(--accent); padding: var(--s-4) var(--s-5); border-radius: var(--r-sm); font-size: var(--t-small); }
.prose--article table { display: block; overflow-x: auto; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.flow .card--plan ul { list-style: disc; }
main > section.flow--headless { padding-top: var(--padb); }

/* insights library */
.library-head { align-items: end; }
.filters { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.filter { font: 500 var(--t-small)/1 var(--font-text); min-height: 44px; padding: 0 var(--s-4); border-radius: var(--r-btn); border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--p-accent); border-color: var(--p-accent); color: var(--p-accent-ink); }
.story-grid { row-gap: var(--s-8); }
.story-card[hidden] { display: none; }
.story-card .panel { --p-h: 240px; margin: 0 0 var(--s-4); display: block; position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--p-surface); }
.story-card h3 a { text-decoration: none; }
.story-card h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
a.hero__media { display: block; color: inherit; text-decoration: none; }
@media (max-width: 1023px) { .story-grid > .story-card { grid-column: auto / span 6; } }
@media (max-width: 639px) { .story-grid > .story-card { grid-column: 1 / -1; } }

/* a service row is one tap target: the name's link covers its row */
.rows > li { position: relative; }
.rows .rows__name a::after { content: ""; position: absolute; inset: 0; }
.rows .rows__name a:focus-visible::after { outline: 2px solid var(--action); outline-offset: 2px; border-radius: var(--r-sm); }
.footer__col a { overflow-wrap: anywhere; }
@media (max-width: 359px) { .nav__logo.wordmark { font-size: 23px; } }
#pricing .grid > .section-head { align-self: stretch; margin-bottom: 0; align-content: start; }
@media (max-width: 1023px) { #services .frame--fill { aspect-ratio: 4 / 5; width: 100%; height: auto; margin-top: var(--s-7); } }
/* the two priced cards lift like every linked card (the motion layer leaves .card--plan still) */
html:not([data-motion="off"]) #pricing .card--plan { transition: transform var(--m-out, .2s) var(--m-ease, ease), box-shadow var(--m-out, .2s) var(--m-ease, ease); }
html:not([data-motion="off"]) #pricing .card--plan:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -18px rgba(0,0,0,.25); }
/* the process steps on a phone (the moment rests there): two whole screens, as on the desktop */
@media (max-width: 639px) { main > #process[data-moment]:not(.is-live) { min-height: calc(2 * 100vh); min-height: calc(2 * 100lvh); } }
.faq-photo { aspect-ratio: 16 / 9; margin-top: var(--s-5); border-radius: var(--r-lg); overflow: hidden; position: relative; }
.library-head { display: grid; gap: var(--s-5); }
.story-card .panel { height: 240px; }
.start-faq { margin-top: var(--s-6); }
.article-head .t-lead { margin-top: var(--s-4); }
/* concept reports on a phone: two to a row, so all four are seen early */
@media (max-width: 639px) {
  #work .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-4); row-gap: var(--s-6); }
  #work .grid > .card { grid-column: auto; }
  #work .card p { font-size: 14px; line-height: 1.4; }
}

/* affiliations: monochrome logos under the hero actions */
.affiliations { margin-top: var(--s-8); }
.affiliations > p { margin: 0 0 var(--s-3); }
.affiliations__logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-7); }
.affiliations__logos img { display: block; width: var(--lw); height: auto; opacity: .78; filter: grayscale(1); }
@media (max-width: 639px) {
  .affiliations { margin-top: var(--s-4); }
  .affiliations > p { margin-bottom: var(--s-2); }
  .affiliations__logos { flex-wrap: nowrap; gap: var(--s-5); }
  .affiliations__logos img { width: calc(var(--lw) * .72); }
  .hero .btn-row .btn--secondary { display: none; }
}

/* our work: the whole card opens the page viewer */
.work-card { position: relative; }
.work-card__open { all: unset; cursor: pointer; font: inherit; }
.work-card__open::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--r-lg); }
.work-card__open:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; border-radius: 2px; }
.work-card .panel { box-shadow: 0 18px 36px -22px rgba(0,0,0,.45); transition: transform var(--dur, .2s) var(--ease, ease); }
.work-card:hover .panel { transform: translateY(-4px); }
#work .card h3 { margin-top: var(--s-4); }

.work-viewer { width: min(1240px, 100vw); max-width: 100vw; height: min(920px, 100dvh); max-height: 100dvh; padding: 0; border: 0;
  border-radius: var(--r-lg); background: var(--p-bg); color: var(--p-ink); overflow: hidden; }
.work-viewer[open] { display: flex; flex-direction: column; }
.work-viewer::backdrop { background: rgba(21,21,21,.72); }
.work-viewer__bar { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); align-items: end; justify-content: space-between; padding: var(--s-5) var(--s-6) var(--s-4); }
.work-viewer__bar h2 { font-size: var(--t-h3); line-height: 1.1; margin: var(--s-1) 0 0; }
.work-viewer__nav { display: flex; gap: var(--s-2); }
.work-viewer__pages { flex: 1; min-height: 0; display: flex; gap: 24px; overflow-x: auto; padding: var(--s-2) var(--s-6) var(--s-4); outline: none; }
.work-viewer__page { flex: none; height: 100%; margin: 0; display: flex; flex-direction: column; }
.work-viewer__page img { height: calc(100% - 28px); width: auto; aspect-ratio: 900 / 1165; object-fit: contain; display: block; box-shadow: 0 16px 40px -20px rgba(0,0,0,.4); background: #fff; }
.work-viewer__page figcaption { margin-top: var(--s-2); font-size: var(--t-small); color: var(--muted); }
.work-viewer__note { padding: 0 var(--s-6) var(--s-4); margin: 0; }
@media (max-width: 639px) {
  .work-viewer { border-radius: 0; height: 100dvh; }
  .work-viewer__bar { padding: var(--s-4); }
  .work-viewer__nav [data-step] { display: none; }
  .work-viewer__pages { padding-inline: var(--s-4); }
  .work-viewer__page { width: calc(100vw - 48px); height: auto; }
  .work-viewer__page img { width: 100%; height: auto; }
}
@media (max-width: 639px) {
  #work .grid { row-gap: var(--s-4); }
  #work .card h3 { margin-top: var(--s-3); font-size: 15px; }
  #work .card p { display: none; }
}

/* report mockups and pages show whole, never cropped: the frame takes the picture's own ground */
img.fit { object-fit: contain !important; background: var(--fit-bg, transparent); }
.hero__media:has(> img.fit) { background: transparent; }
.menu-card .panel img[src*="activation-suite"] { object-fit: cover; object-position: 50% 8%; }
