/*
 * Offering pages (docs/reading_layout_contract.md, amendment of September 24, 2026): the offering page is the one page per service, readable as a client would read it and complete for the team that delivers it. It borrows the packages pages' look: a hero, an "at a glance" panel, cards, and plain section headings with room to breathe. Colors come only from the theme tokens in application.css, so light and dark both work.
 */

/* Hero: packages the offering is part of, as chips under the lede. */
.off-hero { margin-bottom: 28px; }
.off-hero .lede { color: var(--ink); }
.off-packages { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 10px; }
.off-packages__label { font-family: var(--f-display); font-size: .8rem; font-weight: 600; color: var(--ink-3); }
.off-packages__list { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 0; padding: 0; list-style: none; }
.off-chip, .off-chip:visited {
  display: inline-flex; align-items: center; padding: 4px 12px; border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--rule)); border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-family: var(--f-display); font-size: .84rem; font-weight: 650; text-decoration: none;
}
.off-chip:hover { border-color: var(--accent); text-decoration: underline; }

/* At a glance: four short facts in one row on wide screens. */
.off-facts { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 0; }

/* On this page: a row of section links under the facts. */
.off-toc { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; margin: 22px 0 0; font-family: var(--f-display); }
.off-toc__label { font-size: .78rem; font-weight: 600; color: var(--ink-3); }
.off-toc ol { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 0; padding: 0; list-style: none; font-size: .84rem; }
.off-toc a {
  display: inline-block; padding: 4px 12px; border: 1px solid var(--rule-strong); border-radius: 999px; background: var(--surface);
  color: var(--ink-strong); font-weight: 600; text-decoration: none;
}
.off-toc a:hover { border-color: var(--neutral); background: var(--surface-2); }

/* Sections: more space above each heading, a small accent kicker naming the catalog's own term where the heading is in plain words. */
.off-doc .doc-section { margin-top: 64px; scroll-margin-top: calc(var(--bar-height) + 20px); }
.off-doc .doc-section > h2 { font-size: 1.6rem; margin-bottom: 16px; }
.section-kicker {
  margin: 0 0 4px; font-family: var(--f-display); font-size: .72rem; font-weight: 760; letter-spacing: .11em; text-transform: uppercase; color: var(--accent);
}
.section-kicker + h2 { margin-top: 0; }
.off-doc .doc-section > .field--prose { font-size: 1.04rem; line-height: 1.7; }
.off-doc #open-questions { scroll-margin-top: calc(var(--bar-height) + 20px); }

/* Why it matters: the business outcome as a callout. */
.off-doc .off-callout {
  padding: 18px 22px; border-left: 3px solid var(--accent); border-radius: var(--radius); background: color-mix(in srgb, var(--accent-soft) 70%, var(--surface));
  color: var(--ink-strong); font-size: 1.1rem; font-weight: 500; line-height: 1.6;
}

/* What you get: one card per deliverable. The client-facing part leads; "How we deliver it" is a quieter footer inside the card. */
.off-deliverables { display: grid; gap: 18px; }
.off-deliverable {
  display: grid; gap: 10px; min-width: 0; padding: 22px 24px 0; overflow: hidden;
  background: var(--surface); border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--rule)); border-radius: var(--radius-md); box-shadow: var(--shadow-card);
  scroll-margin-top: calc(var(--bar-height) + 16px);
}
.off-deliverable:first-child, .off-deliverable:last-child { padding-top: 22px; border-bottom: 1px solid color-mix(in srgb, var(--accent) 18%, var(--rule)); }
.off-deliverable__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.off-deliverable__head h3 { position: relative; margin: 0; padding-left: 26px; font-size: 1.15rem; line-height: 1.3; }
.off-deliverable__head h3::before {
  content: ""; position: absolute; left: 3px; top: .4em; width: 11px; height: 6px; border-left: 2px solid var(--good); border-bottom: 2px solid var(--good); transform: rotate(-45deg);
}
.off-deliverable__often {
  padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-family: var(--f-display); font-size: .76rem; font-weight: 650; white-space: nowrap;
}
.off-deliverable__head .cms-item-controls { margin-left: auto; }
.off-deliverable__outcome { margin: 0; padding-left: 26px; font-size: 1.04rem; line-height: 1.6; color: var(--ink); }
.off-deliverable__receive { padding-left: 26px; }
.off-deliverable__label { margin: 0 0 2px; font-family: var(--f-display); font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.off-deliverable__evidence { margin: 0; color: var(--ink-2); line-height: 1.55; }
.off-deliverable__inside {
  margin: 6px -24px 0; padding: 14px 24px 16px 50px; background: var(--surface-2); border-top: 1px solid var(--rule);
  font-size: .92rem; color: var(--ink-2);
}
.off-deliverable__activity { margin: 0; color: var(--ink-2); line-height: 1.55; }
.off-deliverable__inside .facts--inline { margin-top: 8px; }
.off-deliverable__inside .facts--inline .fact dd { color: var(--ink); }

/* Tables (products used, service levels) sit in a soft panel. */
.off-panel { border: 1px solid var(--rule); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-card); }
.off-table th, .off-table td { padding: 12px 16px; }
.off-table th + th, .off-table td + td { padding-left: 16px; }
.off-table tbody tr:last-child td { border-bottom: 0; }
.off-table th { background: var(--surface-2); }
.off-promise { display: block; color: var(--ink-strong); font-weight: 560; font-size: .92rem; }
.off-panel + .section-note { margin: 12px 0 0; }

/* Scope: a panel per kind, each list marked by kind (checkmarks, dashes, arrows); what's included and what isn't sit side by side when there's room. */
.off-scope { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; gap: 16px; }
.off-scope__group { min-width: 0; padding: 18px 20px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-md); box-shadow: var(--shadow-card); }
.off-doc .off-scope__head { margin: 0 0 10px; font-size: 1rem; }

/* Relations: one line each. */
.off-relations { gap: 8px; }

/* The offerings list: grouped by team, one tile per offering (as the packages page lays out its cards). */
.off-group { margin-top: 52px; scroll-margin-top: calc(var(--bar-height) + 16px); }
.off-group__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.off-group__head h2 { margin: 0; font-size: 1.45rem; letter-spacing: -.028em; }
.off-group__count { font-family: var(--f-display); font-size: .84rem; color: var(--ink-3); }
.off-group__desc { margin: 6px 0 0; color: var(--ink-2); font-size: .94rem; line-height: 1.55; }
.off-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; margin: 18px 0 0; padding: 0; list-style: none; }
.off-tile {
  position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 18px 20px 16px;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-md); box-shadow: var(--shadow-card);
  scroll-margin-top: calc(var(--bar-height) + 16px); transition: border-color .15s ease, box-shadow .15s ease;
}
.off-tile:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--rule)); box-shadow: var(--shadow-soft); }
.off-tile:has(.off-tile__link:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.off-tile__name { margin: 0; font-size: 1.05rem; line-height: 1.3; }
.off-tile__link, .off-tile__link:visited { color: var(--ink-strong); text-decoration: none; }
.off-tile__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.off-tile__link:focus-visible { outline: none; }
.off-tile:hover .off-tile__link { color: var(--accent); }
.off-tile__tagline { margin: 0; color: var(--ink-2); font-size: .94rem; line-height: 1.5; }
.off-tile__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: auto; padding-top: 8px; }
.off-tile__code { margin-left: auto; }
.off-tile .is-pending a, .off-tile .anno-item-chip, .cms-editing .off-tile .cms-field { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .off-tile { transition: none; } }

@media (max-width: 640px) {
  .off-doc .doc-section { margin-top: 48px; }
  .off-doc .doc-section > h2 { font-size: 1.35rem; }
  .off-deliverable { padding: 18px 16px 0; }
  .off-deliverable__head h3, .off-deliverable__outcome, .off-deliverable__receive { padding-left: 22px; }
  .off-deliverable__inside { margin: 4px -16px 0; padding: 12px 16px 14px; }
  .off-scope, .off-tiles { grid-template-columns: minmax(0, 1fr); }
  .off-table th, .off-table td { padding: 10px 12px; }
}

@media print {
  .off-toc { display: none !important; }
  .off-deliverable, .off-scope__group, .off-panel, .off-tile { background: #fff; box-shadow: none; border-color: var(--rule); }
  .off-deliverable, .off-scope__group, .off-tile { break-inside: avoid; }
  .off-deliverable__inside, .off-table th { background: #fff; }
  .off-doc .off-callout { background: #fff; }
  .off-chip { background: #fff; }
  .off-doc .doc-section { margin-top: 32px; }
  .off-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
