/* Shared editorial component contract. Owner content, native controls and imagery stay authoritative. */
:root {
  --ui-card-radius: 18px;
  --ui-card-padding: clamp(24px, 2.5vw, 32px);
  --ui-card-heading: clamp(22px, 1.9vw, 25px);
  --ui-copy-size: 18px;
  --ui-detail-size: 17px;
  --ui-row-space: 18px;
}

/* Featured work belongs within the directory's H2, followed by its H3 peers. */
#capabilities .snapshot-promotion-section { background: transparent; margin-bottom: 32px; scroll-margin-top: 112px; }
#capabilities .snapshot-feature { border-radius: var(--ui-card-radius); box-shadow: none; }
#capabilities .snapshot-feature-copy { padding: var(--ui-card-padding); }
#capabilities .snapshot-feature-copy h3 { font-size: clamp(28px, 2.7vw, 36px); }
#capabilities .snapshot-feature-intro { font-size: var(--ui-detail-size); }

/* All directory/related cards use the existing card component, including equal CTA alignment. */
.service-directory-card { border-radius: var(--ui-card-radius); }
.service-directory-card .service-directory-heading { gap: 14px; }
.service-directory-card .service-directory-heading h3 { font-size: var(--ui-card-heading); line-height: 1.35; }
.service-directory-card .service-directory-heading > span { flex: none; }
.service-directory-card > p { font-size: var(--ui-detail-size); }
.service-directory-card > .text-link { gap: 12px; line-height: 1.5; }
.service-directory-card:focus-within { border-color: #86602e; }

/* A content list is a set of readable rows; native list semantics and nesting remain intact. */
.content-rows { --ui-row-line: var(--line); --ui-marker: #86602e; }
ul.content-rows, .content-rows ul { list-style-type: square; padding-left: 22px; margin: 0; }
ol.content-rows, .content-rows ol { padding-left: 26px; }
.content-rows li { padding: var(--ui-row-space) 0 var(--ui-row-space) 8px; border-bottom: 1px solid var(--ui-row-line); max-width: 65ch; font-size: var(--ui-detail-size); line-height: 1.65; }
.content-rows li:first-child { padding-top: 0; }
.content-rows li:last-child { padding-bottom: 0; border-bottom: 0; }
.content-rows li + li { margin-top: 0; }
.content-rows li::marker { color: var(--ui-marker); font-size: .7em; }
.content-rows li > :last-child { margin-bottom: 0; }
.content-rows li > ul, .content-rows li > ol { margin-top: 14px; }
.content-rows li li { border: 0; padding-block: 6px; }
.dark .content-rows { --ui-row-line: #ffffff29; --ui-marker: #e5c18b; }

/* Scope boundaries use a compact heading column and a structured content column. */
.offer-boundary > .container { grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: 40px; padding: var(--ui-card-padding); border: 1px solid var(--line); border-left: 3px solid var(--brass); border-radius: 0 var(--ui-card-radius) var(--ui-card-radius) 0; }
.offer-boundary h2 { font-size: clamp(26px, 2.3vw, 32px); line-height: 1.25; margin-bottom: 16px; }
.offer-boundary p:empty { display: none; }
.offer-boundary .rich-text > :first-child { margin-top: 0; }
.included { border-radius: var(--ui-card-radius); padding: var(--ui-card-padding); }
.included h2, .included h3 { font-size: var(--ui-card-heading); margin-top: 0; margin-bottom: 24px; }
.service-review .content-rows { margin-top: 30px; }
.offer-deliverables:not(.offer-deliverables--snapshot) > .split { align-items: start; }
.offer-deliverables:not(.offer-deliverables--snapshot) .offer-outcome-copy { border-top: 2px solid var(--brass); padding-top: 24px; }

/* Secondary explanations receive the same card and text hierarchy as service scope. */
.ai-current-examples .ai-examples { margin-top: 36px; gap: 24px; }
.ai-current-examples .ai-examples article { padding: var(--ui-card-padding); border: 1px solid var(--line); border-radius: var(--ui-card-radius); background: #fff; }
.ai-current-examples .ai-examples h3 { font-size: var(--ui-card-heading); }
.ai-current-examples .ai-examples p { font-size: var(--ui-detail-size); line-height: 1.65; }
.service-next h3, .service-fit h3, .scope-card h3, .snapshot-review-grid h3 { line-height: 1.35; }

/* Rich prose stays readable. Legal documents retain their document-specific list treatment. */
.rich-text { overflow-wrap: anywhere; }
.rich-text p { max-width: 68ch; }
.rich-text > :first-child { margin-top: 0; }
.rich-text ul ul, .rich-text ol ol { margin-block: 12px; }

@media (max-width: 760px) {
  #capabilities .snapshot-promotion-section { margin-bottom: 26px; }
  .offer-boundary > .container { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .offer-boundary h2 { margin-bottom: 0; }
  .ai-current-examples .ai-examples { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .site-footer .footer-group > a { display: flex; align-items: center; min-height: 44px; width: 100%; }
  .site-footer .footer-bottom nav a { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .service-directory-card:hover { transform: none; }
}

/* Shared typography roles keep punctuation and ordinary word spaces readable. */
:root {
  --ui-heading-tracking: -.02em;
  --ui-item-tracking: -.01em;
  --ui-nav-weight: 550;
}
main :is(h1, h2), .home-hero h1 { letter-spacing: var(--ui-heading-tracking); word-spacing: normal; }
main :is(h3, h4), .experience-node h3 { letter-spacing: var(--ui-item-tracking); word-spacing: normal; }
.site-header .primary-nav > a,
.site-header .primary-nav .nav-dropdown > summary {
  font: inherit;
  font-weight: var(--ui-nav-weight);
}
.eyebrow, .section-kicker { max-width: none; }
.founder-copy h1 { max-width: 100%; }
.heading-phrase { display: block; text-wrap: balance; }

/* Keep the complete Snapshot step labels readable on the smallest phones. */
@media (max-width: 400px) {
  .snapshot-feature-steps { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .snapshot-feature-steps li { flex-direction: row; justify-content: flex-start; }
}
