/* Editorial pages share the existing Contorno palette and navigation. */
.tech-page .tech-main { width: min(1230px, calc(100% - 64px)); margin: 26px auto 0; padding-bottom: 32px; }
.tech-page .tech-breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 32px; font-size: 12px; line-height: 1.6; color: var(--gp-muted); }
.tech-page .tech-breadcrumbs a { text-decoration: none; }
.tech-page .tech-breadcrumbs [aria-current] { overflow-wrap: anywhere; }
.tech-page .tech-heading { max-width: 760px; margin: 0 0 38px; }
.tech-page .tech-kicker { display: inline-block; color: var(--gp-accent); font-size: 11px; font-weight: 750; line-height: 1.5; letter-spacing: 1.6px; text-transform: uppercase; }
.tech-page .tech-heading h1 { margin: 12px 0; font-size: clamp(38px, 5.2vw, 64px); font-weight: 850; line-height: 1.08; letter-spacing: -2px; }
.tech-page .tech-heading h1 span { color: var(--gp-accent); }
.tech-page .tech-heading > p { margin: 0 0 8px; font-size: 20px; line-height: 1.55; }
.tech-page .tech-heading .tech-heading-note { font-size: 15px; max-width: 65ch; }
.tech-page .tech-section-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.tech-page .tech-section-heading h2 { margin: 0; font-size: 25px; line-height: 1.3; letter-spacing: -.6px; }
.tech-page .tech-section-heading > span { color: var(--gp-muted); font-size: 12px; }
.tech-page .tech-section-heading > a { font-size: 13px; text-underline-offset: 4px; }
.tech-page .tech-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.tech-page .tech-filter button { min-height: 44px; padding: 8px 18px; border: 1px solid var(--gp-line); border-radius: 999px; background: var(--gp-soft); font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; }
.tech-page .tech-filter button[aria-pressed='true'] { border-color: var(--gp-accent); background: var(--gp-accent); color: var(--gp-button-ink) !important; }
.tech-page .tech-filter-status { margin: 8px 0 20px; font-size: 12px; }
.tech-page .tech-index-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px; }
.tech-page .tech-index-grid > .tech-card { grid-column: span 2; }
.tech-page .tech-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--gp-line); border-radius: 16px; background: var(--gp-surface); transition: border-color 160ms ease, transform 160ms ease; }
.tech-page .tech-card:hover { border-color: var(--gp-accent); transform: translateY(-3px); }
.tech-page .tech-card-image { display: block; background: var(--gp-image-backplate); }
.tech-page .tech-card-image img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.tech-page .tech-card-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 23px; }
.tech-page .tech-tag { display: inline-flex; align-items: center; min-height: 25px; padding: 3px 11px; border: 1px solid var(--gp-accent); border-radius: 999px; color: var(--gp-accent); font-size: 11px; font-weight: 700; line-height: 1.4; }
.tech-page .tech-card-meta { margin: 12px 0 8px; font-size: 11px; }
.tech-page .tech-card h2 { margin: 0 0 12px; font-size: 22px; font-weight: 800; line-height: 1.23; letter-spacing: -.5px; }
.tech-page .tech-card h2 a { color: var(--gp-heading) !important; text-decoration: none; }
.tech-page .tech-card-copy > p:not(.tech-card-meta) { margin: 0 0 20px; font-size: 14px; line-height: 1.65; }
.tech-page .tech-read-link { display: inline-flex; min-height: 44px; align-items: center; gap: 12px; margin-top: auto; font-size: 13px; font-weight: 700; text-decoration: none; }
.tech-page .tech-read-link span { font-size: 20px; }
.tech-page .tech-index-grid > .tech-card-featured { grid-column: span 4; }
.tech-page .tech-card-featured { grid-row: span 2; position: relative; min-height: 520px; justify-content: flex-end; }
.tech-page .tech-index-grid > .tech-card:nth-child(2), .tech-page .tech-index-grid > .tech-card:nth-child(3) { display: grid; grid-template-columns: minmax(0, 1fr) 37%; }
.tech-page .tech-index-grid > .tech-card:nth-child(2) .tech-card-image, .tech-page .tech-index-grid > .tech-card:nth-child(3) .tech-card-image { order: 2; }
.tech-page .tech-index-grid > .tech-card:nth-child(2) .tech-card-image img, .tech-page .tech-index-grid > .tech-card:nth-child(3) .tech-card-image img { height: 100%; }
.tech-page .tech-index-grid > .tech-card:nth-child(2) .tech-card-copy, .tech-page .tech-index-grid > .tech-card:nth-child(3) .tech-card-copy { padding: 20px; }
.tech-page .tech-index-grid > .tech-card:nth-child(2) h2, .tech-page .tech-index-grid > .tech-card:nth-child(3) h2 { font-size: 20px; }
.tech-page .tech-index-grid > .tech-card:nth-child(2) .tech-card-copy > p:not(.tech-card-meta), .tech-page .tech-index-grid > .tech-card:nth-child(3) .tech-card-copy > p:not(.tech-card-meta) { display: none; }
.tech-page .tech-index-grid > .tech-card:nth-child(n+4) { grid-column: span 3; }
.tech-page .tech-card-featured .tech-card-image { position: absolute; inset: 0; }
.tech-page .tech-card-featured .tech-card-image img { width: 100%; height: 100%; object-fit: cover; }
.tech-page .tech-card-featured::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #182415ed 0%, #182415ce 38%, #18241524 100%); pointer-events: none; }
.tech-page .tech-card-featured .tech-card-copy { position: relative; z-index: 1; max-width: 460px; flex: 0 0 auto; padding: 40px; }
.tech-page .tech-card-featured h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.08; }
html body.tech-page .tech-card-featured h2 a { color: #f5f5e8 !important; }
html body.tech-page .tech-card-featured .tech-card-copy > p { color: #e0e6d2 !important; }
html body.tech-page .tech-card-featured .tech-tag { background: #25351bd9; color: #d2e1ba; }
html body.tech-page .tech-card-featured .tech-read-link { color: #d2e1ba !important; }
.tech-page .tech-card[hidden], .tech-page .tech-filter[hidden], .tech-page .tech-filter-status[hidden] { display: none !important; }
/* A selected topic uses a regular reading grid; hidden feature/stack cards
   must not reserve columns or keep the home-style image overlays. */
.tech-page .tech-index-grid.is-filtered { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tech-page .tech-index-grid.is-filtered > .tech-card { display: flex; grid-column: auto; grid-row: auto; min-height: 0; justify-content: initial; }
.tech-page .tech-index-grid.is-filtered > .tech-card .tech-card-image { position: static; order: 0; }
.tech-page .tech-index-grid.is-filtered > .tech-card .tech-card-image img { height: auto; }
.tech-page .tech-index-grid.is-filtered > .tech-card::after { display: none; }
.tech-page .tech-index-grid.is-filtered > .tech-card .tech-card-copy { max-width: none; flex: 1; padding: 23px; }
.tech-page .tech-index-grid.is-filtered > .tech-card h2 { font-size: 22px; line-height: 1.23; }
.tech-page .tech-index-grid.is-filtered > .tech-card .tech-card-copy > p:not(.tech-card-meta) { display: block; }
html body.tech-page .tech-index-grid.is-filtered .tech-card-featured h2 a { color: var(--gp-heading) !important; }
html body.tech-page .tech-index-grid.is-filtered .tech-card-featured .tech-card-copy > p { color: var(--gp-muted) !important; }
html body.tech-page .tech-index-grid.is-filtered .tech-card-featured .tech-tag { background: transparent; color: var(--gp-accent); }
html body.tech-page .tech-index-grid.is-filtered .tech-card-featured .tech-read-link { color: var(--gp-accent) !important; }
.tech-page .tech-guide-callout { display: flex; justify-content: space-between; align-items: center; gap: 28px; margin-top: 42px; padding: 30px; border: 1px solid var(--gp-line); border-radius: 16px; background: var(--gp-soft); }
.tech-page .tech-guide-callout h2 { max-width: 32ch; margin: 10px 0; font-size: 25px; line-height: 1.25; letter-spacing: -.5px; }
.tech-page .tech-guide-callout p { max-width: 62ch; margin: 0; font-size: 14px; line-height: 1.7; }
.tech-page .tech-button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 15px; padding: 12px 23px; border: 1px solid var(--gp-accent); border-radius: 999px; background: var(--gp-accent); color: var(--gp-button-ink) !important; font-size: 13px; font-weight: 750; line-height: 1.4; text-decoration: none; text-align: center; }
.tech-page .tech-button-outline { background: transparent; color: var(--gp-accent) !important; }
.tech-page .tech-editorial-note { max-width: 820px; margin: 38px 0 0; }
.tech-page .tech-editorial-note h2 { margin: 0 0 12px; font-size: 19px; }
.tech-page .tech-editorial-note p { margin: 0 0 14px; font-size: 14px; line-height: 1.8; }
.tech-page .tech-editorial-note a { display: inline-flex; min-height: 44px; align-items: center; font-size: 13px; text-underline-offset: 4px; }
.tech-page .tech-article-heading { max-width: 900px; margin: 0 auto 30px; }
.tech-page .tech-article-heading h1 { margin: 17px 0 20px; font-size: clamp(34px, 4.2vw, 54px); font-weight: 850; line-height: 1.1; letter-spacing: -1.6px; text-wrap: balance; }
.tech-page .tech-article-intro { margin: 0 0 22px; font-size: 18px; line-height: 1.75; }
.tech-page .tech-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--gp-muted); font-size: 12px; line-height: 1.8; }
.tech-page .tech-byline a { text-underline-offset: 3px; }
.tech-page .tech-article-figure { max-width: 1000px; margin: 0 auto 42px; }
.tech-page .tech-article-figure img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: cover; border: 1px solid var(--gp-line); border-radius: 16px; }
.tech-page .tech-article-figure figcaption { margin-top: 10px; color: var(--gp-muted); font-size: 11px; line-height: 1.7; text-align: center; }
.tech-page .tech-reading-layout { display: grid; grid-template-columns: minmax(180px, 245px) minmax(0, 760px); gap: 52px; justify-content: center; align-items: start; }
.tech-page .tech-toc { position: sticky; top: 24px; padding: 22px; border: 1px solid var(--gp-line); border-radius: 16px; background: var(--gp-soft); }
.tech-page .tech-toc h2 { margin: 0 0 14px; font-size: 14px; }
.tech-page .tech-toc nav { display: grid; gap: 0; }
.tech-page .tech-toc nav a { display: block; padding: 10px 0; font-size: 12px; line-height: 1.6; text-decoration: none; }
.tech-page .tech-toc-return { display: inline-flex; min-height: 44px; align-items: center; margin-top: 15px; font-size: 12px; font-weight: 700; text-decoration: none; }
.tech-page .tech-reading-body { min-width: 0; }
.tech-page .tech-reading-body > section { scroll-margin-top: 24px; margin-bottom: 34px; }
.tech-page .tech-reading-body h2 { margin: 0 0 17px; font-size: 26px; font-weight: 800; line-height: 1.3; letter-spacing: -.5px; }
.tech-page .tech-reading-body p, .tech-page .tech-reading-body li { font-size: 16px; line-height: 1.85; }
.tech-page .tech-reading-body p { margin: 0 0 18px; }
.tech-page .tech-reading-body ul { padding-left: 22px; margin: 12px 0 22px; }
.tech-page .tech-reading-body li { padding-left: 3px; margin: 8px 0; }
.tech-page .tech-article-note { margin: 32px 0; padding: 22px; border: 1px solid var(--gp-line); border-left: 3px solid var(--gp-accent); border-radius: 0 12px 12px 0; background: var(--gp-soft); }
.tech-page .tech-article-note strong { display: block; margin-bottom: 9px; font-size: 14px; }
.tech-page .tech-article-note p { margin: 0; font-size: 13px; line-height: 1.8; }
.tech-page .tech-sources { padding-top: 24px; border-top: 1px solid var(--gp-line); }
.tech-page .tech-sources h2 { font-size: 23px; }
.tech-page .tech-sources p, .tech-page .tech-sources li { font-size: 13px; line-height: 1.8; }
.tech-page .tech-sources a { text-underline-offset: 4px; overflow-wrap: anywhere; }
.tech-page .tech-sources small { display: block; font-size: 11px; }
.tech-page .tech-article-cta { padding: 26px; border: 1px solid var(--gp-line); border-radius: 16px; background: var(--gp-soft); }
.tech-page .tech-article-cta h2 { font-size: 23px; }
.tech-page .tech-article-cta p { font-size: 14px; line-height: 1.8; }
.tech-page .tech-article-cta > div { display: flex; flex-wrap: wrap; gap: 12px; }
.tech-page .tech-related { margin-top: 50px; padding-top: 35px; border-top: 1px solid var(--gp-line); }
.tech-page .tech-related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; max-width: 900px; }
.tech-page .tech-related-grid .tech-card { display: grid; grid-template-columns: minmax(100px, .8fr) minmax(0, 1fr); }
.tech-page .tech-related-grid .tech-card-image img { height: 100%; object-fit: cover; }
.tech-page .tech-related-grid .tech-card h2 { font-size: 19px; }
.tech-page .tech-related-grid .tech-card-copy { padding: 20px; }
.tech-page .tech-related-grid .tech-card-copy > p:not(.tech-card-meta) { display: none; }
.tech-page .tech-footer { width: min(1230px, calc(100% - 64px)) !important; }
.tech-page .tech-footer p { max-width: 52ch; font-size: 13px; line-height: 1.7; }
.tech-page .tech-footer small { display: block; max-width: 67ch; font-size: 11px; line-height: 1.7; }
.tech-page :is(a,button):focus-visible { outline: 3px solid var(--gp-accent); outline-offset: 4px; }
@media (max-width: 1000px) {
  .tech-page .tech-index-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tech-page .tech-index-grid.is-filtered { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tech-page .tech-index-grid > .tech-card { grid-column: span 1; }
  .tech-page .tech-index-grid > .tech-card:nth-child(n+4) { grid-column: span 1; }
  .tech-page .tech-index-grid > .tech-card-featured { grid-column: 1 / -1; }
  .tech-page .tech-card-featured { grid-row: auto; min-height: 430px; }
  .tech-page .tech-index-grid > .tech-card:nth-child(2), .tech-page .tech-index-grid > .tech-card:nth-child(3) { display: flex; }
  .tech-page .tech-index-grid > .tech-card:nth-child(2) .tech-card-image, .tech-page .tech-index-grid > .tech-card:nth-child(3) .tech-card-image { order: 0; }
  .tech-page .tech-index-grid > .tech-card:nth-child(2) .tech-card-image img, .tech-page .tech-index-grid > .tech-card:nth-child(3) .tech-card-image img { height: auto; }
  .tech-page .tech-reading-layout { grid-template-columns: minmax(0, 760px); gap: 28px; }
  .tech-page .tech-toc { position: static; padding: 20px; }
  .tech-page .tech-toc nav { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
  .tech-page .tech-related-grid .tech-card { display: flex; }
  .tech-page .tech-related-grid .tech-card-image img { height: auto; }
  .tech-page .tech-guide-callout { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 700px) {
  .tech-page .tech-main { width: calc(100% - 32px); margin-top: 18px; }
  .tech-page .tech-breadcrumbs { margin-bottom: 25px; font-size: 11px; gap: 7px; }
  .tech-page .tech-heading { margin-bottom: 30px; }
  .tech-page .tech-heading h1 { letter-spacing: -1.2px; }
  .tech-page .tech-heading > p { font-size: 17px; }
  .tech-page .tech-heading .tech-heading-note { font-size: 14px; }
  .tech-page .tech-section-heading h2 { font-size: 22px; }
  .tech-page .tech-index-grid, .tech-page .tech-related-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .tech-page .tech-index-grid.is-filtered { grid-template-columns: minmax(0, 1fr); }
  .tech-page .tech-index-grid > .tech-card { grid-column: 1 / -1; }
  .tech-page .tech-index-grid > .tech-card:nth-child(n+4) { grid-column: 1 / -1; }
  .tech-page .tech-card-featured { min-height: 0; justify-content: initial; }
  .tech-page .tech-card-featured .tech-card-image { position: static; }
  .tech-page .tech-card-featured .tech-card-image img { height: auto; aspect-ratio: 16 / 9; }
  .tech-page .tech-card-featured .tech-card-copy { padding: 23px; max-width: none; flex: 1; }
  .tech-page .tech-card-featured::after { display: none; }
  .tech-page .tech-card-featured h2 { font-size: 26px; line-height: 1.2; }
  html body.tech-page .tech-card-featured h2 a { color: var(--gp-heading) !important; }
  html body.tech-page .tech-card-featured .tech-card-copy > p { color: var(--gp-muted) !important; }
  html body.tech-page .tech-card-featured .tech-tag { background: transparent; color: var(--gp-accent); }
  html body.tech-page .tech-card-featured .tech-read-link { color: var(--gp-accent) !important; }
  .tech-page .tech-card-copy { padding: 22px; }
  .tech-page .tech-guide-callout { margin-top: 30px; padding: 23px; gap: 20px; }
  .tech-page .tech-guide-callout h2 { font-size: 23px; }
  .tech-page .tech-article-heading h1 { font-size: 34px; letter-spacing: -1px; }
  .tech-page .tech-article-intro { font-size: 16px; line-height: 1.8; }
  .tech-page .tech-byline { column-gap: 7px; font-size: 11px; }
  .tech-page .tech-article-figure { margin-bottom: 28px; }
  .tech-page .tech-reading-body h2 { font-size: 24px; }
  .tech-page .tech-reading-body p, .tech-page .tech-reading-body li { font-size: 15px; line-height: 1.85; }
  .tech-page .tech-toc nav { grid-template-columns: minmax(0, 1fr); }
  .tech-page .tech-article-note p, .tech-page .tech-sources p, .tech-page .tech-sources li { font-size: 13px; }
  .tech-page .tech-article-cta { padding: 23px; }
  .tech-page .tech-article-cta > div { flex-direction: column; align-items: stretch; }
  .tech-page .tech-related { margin-top: 36px; }
  .tech-page .tech-footer { width: calc(100% - 32px) !important; }
}
@media (prefers-reduced-motion: reduce) {
  .tech-page .tech-card { transition: none; }
  .tech-page .tech-card:hover { transform: none; }
}
