/* devolar-template: a corporate site in the IBM Carbon manner (Devolar network design). Colours, fonts and shape are
   the custom properties in tokens.css (a media file of the site); the site settings `accent` and `tokens` override
   single ones. Logical properties throughout, so right-to-left pages mirror by themselves. */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); background: var(--bg); color: var(--fg); -webkit-font-smoothing: antialiased; line-height: 1.5; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, figure { margin: 0; }
button { font-family: inherit; }
[hidden] { display: none !important; } /* layout rules must not show what a script hid (pricing groups, library rows) */
:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.skip { position: absolute; top: 8px; inset-inline-start: 8px; transform: translateY(-200%); background: var(--fg); color: var(--bg); padding: 8px 12px; z-index: 50; }
.skip:focus { transform: none; }

/* type */
.mono { font-family: var(--mono); }
.small { font-size: 12px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.accent-text { color: var(--accent); }
.display { font-weight: 300; font-size: clamp(40px, 5vw, 60px); line-height: 1.17; max-width: 14em; text-wrap: pretty; }
.h1 { font-weight: 300; font-size: 42px; line-height: 1.19; text-wrap: pretty; }
.h2 { font-weight: 400; font-size: 32px; line-height: 1.25; text-wrap: pretty; }
.h3 { font-weight: 400; font-size: 24px; line-height: 1.33; }
.lead { font-size: 20px; line-height: 1.4; color: var(--muted); max-width: 34em; text-wrap: pretty; }
.body { font-size: 16px; line-height: 1.5; color: var(--muted); max-width: 24em; }
.body-lg { font-size: 18px; line-height: 1.55; color: var(--text); max-width: 36em; text-wrap: pretty; }
.eyebrow { font-size: 14px; color: var(--muted); }
.eyebrow.accent-text { color: var(--accent); }
.more { font-size: 16px; color: var(--link); }
.arrow, .tile-arrow { display: inline-block; }
[dir="rtl"] .arrow, [dir="rtl"] .tile-arrow { transform: scaleX(-1); }

/* frame */
.page { max-width: var(--page-width); margin: 0 auto; padding-inline: 16px; }
.sec { padding: 80px 0; }
.is-tint { background: var(--tint); }
.is-dark { background: var(--dark); color: var(--dark-fg); }
.is-dark .lead, .is-dark .eyebrow { color: var(--dark-text); }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 32px; }
.sec-title { margin-bottom: 32px; }
.sec-lead { margin-bottom: 24px; max-width: 52em; }
.intro-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 32px; margin-bottom: 48px; }
.intro-text { font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 40em; text-wrap: pretty; }
.aside-grid { display: grid; gap: 48px; }
.aside-copy { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
@media (min-width: 960px) { .aside-grid { grid-template-columns: 1fr 2fr; } }

/* network strip */
.network { background: var(--dark); color: var(--dark-text); border-bottom: 1px solid var(--dark-line); }
.network-bar { display: flex; align-items: center; height: 32px; overflow-x: auto; }
.network-label { font-family: var(--mono); font-size: 12px; color: var(--dark-muted); padding-inline-end: 16px; white-space: nowrap; }
.network a { height: 32px; display: flex; align-items: center; padding: 0 12px; font-family: var(--mono); font-size: 12px; color: var(--dark-text); white-space: nowrap; border-bottom: 2px solid transparent; }
.network a:hover { color: var(--dark-strong); text-decoration: none; }
.network a[aria-current] { background: var(--dark-layer); color: var(--dark-strong); border-bottom-color: var(--accent); }

/* masthead */
.masthead { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.masthead-bar { height: 48px; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: baseline; gap: 2px; white-space: nowrap; color: var(--fg); font-size: 16px; }
.brand:hover { color: var(--fg); text-decoration: none; }
.brand img { align-self: center; margin-inline-end: 8px; }
.brand-name { font-weight: 600; }
.brand-suffix { color: var(--accent); }
.nav { display: flex; flex: 1; overflow-x: auto; }
.nav a, .masthead-action, .langs a { height: 48px; display: flex; align-items: center; padding: 0 16px; font-size: 14px; white-space: nowrap; }
.nav a { color: var(--muted); }
.nav a:hover, .masthead-action:hover, .langs a:hover { background: var(--hover); color: var(--fg); text-decoration: none; }
.nav a[aria-current] { color: var(--fg); box-shadow: inset 0 -2px 0 var(--accent); }
.masthead-actions { display: flex; align-items: center; }
.masthead-action { color: var(--fg); }
.masthead-action.is-primary { background: var(--accent); color: var(--accent-fg); }
.masthead-action.is-primary:hover { background: var(--accent); color: var(--accent-fg); opacity: .9; }
.langs { display: flex; }
.langs a { padding: 0 12px; color: var(--muted); }
.langs a[aria-current] { color: var(--fg); box-shadow: inset 0 -2px 0 var(--line-strong); }

/* local navigation of a practice */
.subnav { background: var(--tint); border-bottom: 1px solid var(--line); }
.subnav-bar { display: flex; align-items: center; gap: 24px; height: 48px; overflow-x: auto; }
.subnav-title { font-size: 14px; font-weight: 600; white-space: nowrap; }
.subnav nav { display: flex; }
.subnav nav a { height: 48px; display: flex; align-items: center; padding: 0 16px; font-size: 14px; color: var(--muted); white-space: nowrap; border-bottom: 2px solid transparent; }
.subnav nav a:hover { color: var(--fg); text-decoration: none; }
.subnav nav a[aria-current] { color: var(--fg); border-bottom-color: var(--accent); }

/* mobile menu: the nav, languages and masthead buttons move into a drawer from the reading-end side. Without script
   the masthead simply wraps (the menu button stays hidden and .menu is display: contents). */
.menu-btn, .menu-head, .menu-backdrop { display: none; }
.menu { display: contents; }
@media (max-width: 1056px) {
  .has-menu .masthead-bar { gap: 16px; }
  .has-menu .menu-btn, .has-menu .menu-close { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 0; background: transparent; color: var(--fg); cursor: pointer; }
  .has-menu .menu-btn { margin-inline-start: auto; margin-inline-end: -16px; }
  .has-menu .menu-btn:hover, .has-menu .menu-close:hover { background: var(--hover); }
  .has-menu .menu { display: flex; flex-direction: column; gap: 24px; position: fixed; top: 0; bottom: 0; inset-inline-end: 0; z-index: 30;
    width: var(--drawer-width); padding: 0 0 24px; overflow-y: auto; background: var(--bg); border-inline-start: 1px solid var(--line);
    transform: translateX(100%); visibility: hidden; transition: transform .2s ease, visibility 0s linear .2s; }
  .has-menu[dir="rtl"] .menu { transform: translateX(-100%); }
  .has-menu.menu-open .menu { transform: none; visibility: visible; transition: transform .2s ease; }
  .has-menu .menu-head { display: flex; align-items: center; justify-content: space-between; padding-inline-start: 16px; border-bottom: 1px solid var(--line); }
  .menu-title { font-weight: 600; font-size: 14px; }
  .has-menu .nav { flex: none; flex-direction: column; overflow: visible; }
  .has-menu .nav a { height: 48px; }
  .has-menu .nav a[aria-current] { box-shadow: inset 3px 0 0 var(--accent); }
  .has-menu[dir="rtl"] .nav a[aria-current] { box-shadow: inset -3px 0 0 var(--accent); }
  .has-menu .masthead-actions { flex-direction: column; align-items: stretch; gap: 1px; padding: 0 16px; }
  .has-menu .masthead-action { justify-content: space-between; }
  .has-menu .langs { padding-bottom: 8px; }
  .has-menu.menu-open .menu-backdrop { display: block; position: fixed; inset: 0; z-index: 29; background: var(--backdrop); }
  .menu-open { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) { .menu { transition: none !important; } }

/* buttons: label at the start, arrow at the end, 1px apart in a row */
.buttons { display: flex; flex-wrap: wrap; gap: 1px; }
.button { min-width: 220px; height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 0 16px; font-size: 14px; border: 0; border-radius: var(--radius); cursor: pointer; }
.button:hover { text-decoration: none; }
.button.is-accent { background: var(--accent); color: var(--accent-fg); }
.button.is-accent:hover { color: var(--accent-fg); opacity: .9; }
.button.is-dark { background: var(--btn-dark); color: var(--dark-strong); }
.button.is-dark:hover { background: var(--btn-dark-hover); color: var(--dark-strong); }
.button.is-mid { background: var(--btn-mid); color: var(--dark-strong); }
.button.is-mid:hover { background: var(--btn-mid-hover); color: var(--dark-strong); }
.button.is-light { background: var(--btn-light); color: var(--fg); }
.button.is-light:hover { background: var(--btn-light-hover); color: var(--fg); }
.button.is-block { width: 100%; min-width: 0; }

/* hero (leadspace) */
.hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 32px; align-items: stretch; }
.hero-grid.no-media { grid-template-columns: 1fr; }
.hero-copy { padding: 64px 0 80px; display: flex; flex-direction: column; gap: 24px; }
.hero-buttons { margin-top: 16px; }
.hero-media { min-height: 360px; display: flex; }
.cover { width: 100%; height: 100%; object-fit: cover; }

/* announcement */
.announcement { background: var(--info-bg); border-bottom: 1px solid var(--info-line); }
.announcement-bar { padding-block: 12px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: 14px; }
.announcement-label { font-weight: 600; }
.announcement-text { color: var(--text); }
.announcement .more { font-size: 14px; }

/* header band (inner pages) */
.lead-band { background: var(--bg); border-bottom: 1px solid var(--line); }
.lead-band.is-tint { background: var(--tint); }
.lead-inner { padding-top: 24px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 24px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); }
.lead-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 32px; align-items: end; padding-top: 24px; }
.lead-grid.no-actions { grid-template-columns: 1fr; }
.lead-copy { display: flex; flex-direction: column; gap: 24px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px 32px; font-size: 14px; color: var(--muted); }
.is-dark .meta-row, .is-dark .crumbs { color: var(--dark-text); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 12px; padding: 4px 8px; background: var(--hover); border-radius: var(--radius-pill); }

/* tiles (cards) */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.tile { --tone: var(--accent); background: var(--tint); min-height: 240px; padding: 16px 16px 24px; display: flex; flex-direction: column; gap: 16px; color: var(--fg); }
.tiles.is-white .tile { background: var(--bg); }
a.tile:hover, .tiles.is-white a.tile:hover { background: var(--hover); color: var(--fg); text-decoration: none; }
.tile-tag { font-size: 12px; color: var(--tone); }
.tile-title { font-size: 20px; line-height: 1.4; text-wrap: pretty; }
.tile-text { font-size: 14px; line-height: 1.43; color: var(--muted); flex: 1; text-wrap: pretty; }
.tile-arrow { font-size: 20px; color: var(--tone); align-self: flex-start; }
.tile-link { font-size: 14px; color: var(--link); }
.plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 32px; }
.plan { border-top: 4px solid var(--accent); background: var(--tint); padding: 24px 16px; display: flex; flex-direction: column; gap: 12px; }
.is-tint .plan { background: var(--bg); }

/* feature (image and numbered points) */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 48px; }
.split-media { min-height: 400px; display: flex; }
.hatch { flex: 1; min-height: inherit; background: repeating-linear-gradient(45deg, var(--hatch) 0 1px, var(--bg) 1px 12px); }
.is-tint .hatch, .story .hatch { background: repeating-linear-gradient(45deg, var(--hatch) 0 1px, var(--tint) 1px 12px); }
.split-copy { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.points { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); width: 100%; }
.points li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-strong); font-size: 14px; }
.points li div { display: flex; flex-direction: column; gap: 4px; }
.point-title { font-size: 16px; font-weight: 600; }
.point-text { line-height: 1.43; color: var(--muted); }

/* stories */
.stories { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 32px; }
.story { display: flex; flex-direction: column; background: var(--tint); color: var(--fg); }
.story:hover { background: var(--hover); color: var(--fg); text-decoration: none; }
.story-media { aspect-ratio: 16 / 9; display: flex; overflow: hidden; }
.story-body { padding: 16px 16px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }

/* library (filterable list) */
.library-sec { border-top: 1px solid var(--line); }
.library { min-width: 0; display: flex; flex-direction: column; }
.tabs { display: flex; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab { height: 48px; padding: 0 16px; background: transparent; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--muted); font-size: 14px; cursor: pointer; white-space: nowrap; }
.tab:hover { color: var(--fg); }
.tab[aria-pressed="true"] { color: var(--fg); border-bottom-color: var(--accent); }
.library-list { list-style: none; margin: 0; padding: 0; }
.library-list a { display: grid; grid-template-columns: minmax(90px, 1fr) 4fr minmax(120px, 1.3fr); gap: 8px 24px; padding: 20px 16px; border-bottom: 1px solid var(--line); color: var(--fg); align-items: baseline; }
.library-list a:hover { background: var(--tint); color: var(--fg); text-decoration: none; }
.library-title { font-size: 18px; line-height: 1.4; text-wrap: pretty; }
.library-empty { padding: 32px 16px; font-size: 14px; }

/* network rows (links) */
.link-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.link-rows a { --tone: var(--accent); display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 8px 32px; align-items: baseline; padding: 24px 16px; border-bottom: 1px solid var(--line); color: var(--fg); }
.link-rows a:hover { background: var(--tint); color: var(--fg); text-decoration: none; }
.link-tag { font-size: 16px; color: var(--tone); }
.link-title { font-size: 20px; }
.link-text { font-size: 14px; line-height: 1.43; color: var(--muted); }

/* call to action band */
.cta.is-accent { background: var(--accent); color: var(--accent-fg); }
.cta-grid { padding-block: 64px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 32px; align-items: end; }
.cta-copy { display: flex; flex-direction: column; gap: 16px; }
.cta .body-lg { color: inherit; max-width: 32em; }

/* phases (steps) */
.phases { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.phases li { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 8px 32px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.phase-name { display: flex; flex-direction: column; gap: 4px; }
.phase-title { font-size: 20px; }
.phase-text { font-size: 16px; line-height: 1.5; color: var(--text); }
.phase-note { font-size: 14px; line-height: 1.5; color: var(--muted); }

/* tables */
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.data-table th, .data-table td { padding: 14px 16px; text-align: start; vertical-align: top; }
.data-table thead th { background: var(--line); font-weight: 600; }
.data-table tbody th, .data-table tbody td { background: var(--tint); border-bottom: 1px solid var(--line); font-weight: 400; }
.data-table tbody td { color: var(--text); }
.data-table.is-compare { min-width: 720px; }
.data-table.is-compare thead th { background: transparent; border-bottom: 2px solid var(--fg); }
.data-table.is-compare thead th:first-child { width: 34%; }
.data-table.is-compare tbody th, .data-table.is-compare tbody td { background: transparent; }
.data-table .group-row th { background: var(--tint); font-weight: 600; }
.table-note { margin-top: 16px; }

/* accordion (faq) */
.accordion { min-width: 0; border-top: 1px solid var(--line); max-width: 60em; }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px; font-size: 16px; cursor: pointer; list-style: none; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { background: var(--hover); }
.accordion-icon::after { content: "+"; color: var(--muted); }
.accordion details[open] .accordion-icon::after { content: "\2013"; }
.accordion p { padding: 0 16px 24px; font-size: 14px; line-height: 1.6; color: var(--text); max-width: 46em; }

/* rates */
.rates { list-style: none; margin: 0; padding: 0; min-width: 0; border-top: 1px solid var(--line-strong); }
.rates li { display: grid; grid-template-columns: 1fr 2fr auto; gap: 8px 24px; padding: 20px 0; border-bottom: 1px solid var(--line-strong); align-items: baseline; }
.rate-role { font-size: 18px; }
.rate-text { font-size: 14px; color: var(--muted); }
.rate-value { font-size: 16px; text-align: end; }

/* pricing */
.pricing-lead-inner { padding-top: 64px; display: flex; flex-direction: column; gap: 24px; }
.pricing-lead.is-tint { padding-bottom: 0; }
.pricing-controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-top: 32px; }
.pricing-tabs { display: flex; overflow-x: auto; }
.pricing-tab { height: 48px; padding: 0 20px; border: 0; background: var(--dark-line); color: var(--dark-text); font-size: 14px; cursor: pointer; white-space: nowrap; }
.pricing-tab:hover { color: var(--dark-strong); }
.pricing-tab[aria-selected="true"] { background: var(--tint); color: var(--fg); box-shadow: inset 0 2px 0 var(--accent); }
.billing { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; font-size: 14px; color: var(--dark-text); }
.pricing-lead.is-tint .billing { color: var(--muted); }
.billing-switch { display: flex; border: 1px solid var(--dark-muted); }
.billing-switch button { height: 32px; padding: 0 16px; border: 0; background: transparent; color: inherit; font-size: 14px; cursor: pointer; }
.billing-switch button[aria-pressed="true"] { background: var(--tint); color: var(--fg); }
.pricing-tiers { background: var(--tint); padding-bottom: 64px; }
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-top: 0; }
.tier { background: var(--bg); padding: 32px 24px; display: flex; flex-direction: column; gap: 20px; }
.tier.is-featured { box-shadow: inset 0 4px 0 var(--accent); }
.tier-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 24px; }
.tier-name { font-size: 20px; }
.badge { font-size: 12px; padding: 4px 8px; background: var(--accent); color: var(--accent-fg); border-radius: var(--radius-pill); }
.tier-text { font-size: 14px; line-height: 1.5; color: var(--muted); min-height: 42px; }
.tier-price { display: flex; flex-direction: column; gap: 4px; }
.price { font-weight: 300; font-size: 42px; line-height: 1.1; }
.checks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.checks li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.43; }

/* documentation pages: an "On this page" column next to the content */
.doc { display: grid; gap: 0 48px; }
.doc-aside { padding-top: 48px; display: flex; flex-direction: column; gap: 32px; }
.toc { display: flex; flex-direction: column; border-inline-start: 1px solid var(--line); }
.aside-label { font-size: 12px; color: var(--faint); padding: 0 16px 12px; }
.toc a { padding: 8px 16px; font-size: 14px; color: var(--muted); margin-inline-start: -1px; border-inline-start: 2px solid transparent; }
.toc a:hover { color: var(--fg); background: var(--tint); text-decoration: none; }
.doc-main { min-width: 0; padding: 48px 0 96px; display: flex; flex-direction: column; gap: 80px; }
.doc-main .sec { padding: 0; background: none; }
.doc-main .page { max-width: none; padding: 0; }
.doc-main .aside-grid { grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 1057px) {
  .doc { grid-template-columns: minmax(200px, 1fr) 3fr; }
  .doc-aside > nav { position: sticky; top: 64px; }
}

/* legal documents */
.doc-list { display: flex; flex-direction: column; }
.doc-list a { padding: 12px 16px; font-size: 14px; color: var(--fg); }
.doc-list a:hover { background: var(--hover); text-decoration: none; }
.doc-list a[aria-current] { background: var(--line); font-weight: 600; box-shadow: inset 3px 0 0 var(--accent); }
[dir="rtl"] .doc-list a[aria-current] { box-shadow: inset -3px 0 0 var(--accent); }
.legal .toc a { padding: 6px 16px; }
.legal-main { max-width: 52em; gap: 48px; }
.legal-intro { color: var(--text); max-width: none; }
.callout { display: flex; gap: 12px; padding: 16px; background: var(--info-bg); border-inline-start: 3px solid var(--link); font-size: 14px; line-height: 1.5; color: var(--text); }
.callout-label { font-weight: 600; white-space: nowrap; color: var(--fg); }
.legal-part { display: flex; flex-direction: column; gap: 16px; padding-top: 8px; border-top: 1px solid var(--line); }
.legal-part h2 { margin-top: 16px; display: flex; gap: 16px; }
.legal-num { font-size: 16px; padding-top: 5px; }
.legal-part .prose { font-size: 16px; }
.legal-part .prose p { font-size: 16px; line-height: 1.65; }
.dash-list { list-style: none; margin: 0; padding: 0; padding-inline-start: 4px; display: flex; flex-direction: column; gap: 8px; }
.dash-list li { display: grid; grid-template-columns: 20px 1fr; font-size: 16px; line-height: 1.6; color: var(--text); }
.dash-list li::before { content: "\2013"; }
.contact-box { display: flex; flex-direction: column; gap: 8px; padding: 24px; background: var(--tint); }
.contact-box-title { font-size: 16px; font-weight: 600; }
.contact-box .prose p { font-size: 14px; line-height: 1.5; color: var(--muted); }
.contact-box-links { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 8px; font-size: 14px; }

/* prose (Markdown) */
.prose { max-width: 52em; display: flex; flex-direction: column; gap: 24px; }
.prose > * { margin: 0; }
.prose p, .prose li { font-size: 18px; line-height: 1.6; color: var(--text); text-wrap: pretty; }
.prose h2 { font-weight: 400; font-size: 32px; line-height: 1.25; }
.prose h3 { font-weight: 400; font-size: 24px; }
.prose ul, .prose ol { padding-inline-start: 24px; display: flex; flex-direction: column; gap: 8px; }
.prose code { font-family: var(--mono); font-size: .9em; background: var(--tint); padding: .1em .35em; }
.prose pre { background: var(--dark); color: var(--dark-fg); padding: 16px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose table { border-collapse: collapse; font-size: 14px; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 16px; text-align: start; }
.prose-media { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.prose-media img { aspect-ratio: 16 / 7; }

/* forms */
.form { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.form-grid { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.is-wide { grid-column: 1 / -1; }
.field label { font-size: 12px; color: var(--muted); }
.field input, .field select, .field textarea { font-family: inherit; font-size: 14px; color: var(--fg); background: var(--tint); border: 0; border-bottom: 1px solid var(--faint); border-radius: var(--radius); padding: 0 16px; height: 40px; width: 100%; }
.is-tint .field input, .is-tint .field select, .is-tint .field textarea { background: var(--bg); }
.field textarea { height: auto; padding: 12px 16px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: -2px; }
.details { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--muted); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* footer */
.footer { background: var(--dark); color: var(--dark-text); }
.footer .page { padding-top: 48px; padding-bottom: 24px; }
.footer-brand { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px; margin-bottom: 48px; font-size: 20px; }
.footer-brand .brand-name { color: var(--dark-strong); }
.footer-suffix { color: var(--dark-accent, var(--dark-text)); }
.footer-brand p { flex-basis: 100%; font-size: 14px; margin-top: 12px; max-width: 32em; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 32px; padding-bottom: 48px; border-bottom: 1px solid var(--dark-line); }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-title { font-size: 14px; font-weight: 600; color: var(--dark-fg); }
.footer-col a { font-size: 14px; color: var(--dark-text); }
.footer-col a:hover { color: var(--dark-strong); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 24px; font-size: 12px; color: var(--dark-muted); }
.footer-legal a { color: var(--dark-muted); }

/* narrow screens: one column for the row layouts */
@media (max-width: 671px) {
  .sec { padding: 56px 0; }
  .hero-copy { padding: 48px 0 56px; }
  .h1 { font-size: 32px; }
  .h2 { font-size: 28px; }
  .lead { font-size: 18px; }
  .button { min-width: 0; flex: 1 1 100%; }
  .library-list a, .link-rows a, .phases li, .rates li { grid-template-columns: 1fr; }
  .rate-value { text-align: start; }
  .split-media, .hero-media { min-height: 240px; }
  .doc-main { gap: 56px; padding-top: 32px; }
}
