/* Hallmark · macrostructure: Catalogue / Long Document · tone: editorial · anchor hue: existing coral
 * pre-emit critique: P4 H4 E4 S5 R5 V4; existing Alpha token source is read-only.
 * 2026-10-05 scoped refinement: task-led heroes, actual charts, native FAQ and same-matrix row diagram.
 */
:root {
  --resource-space-xs: .5rem;
  --resource-space-sm: .75rem;
  --resource-space-md: 1rem;
  --resource-space-lg: 1.5rem;
  --resource-space-xl: 2rem;
  --resource-space-2xl: 3rem;
  --resource-space-3xl: 5rem;
  --resource-control-height: 2.75rem;
}
html, body { overflow-x: clip; }
/* Shared site polish owns generic main width; only these new resource pages opt out. */
body[data-page-family] main.alpha-resources { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; padding-block: var(--resource-space-xl) var(--resource-space-3xl); }
.alpha-resources :is(h1,h2,h3) { overflow-wrap: anywhere; min-width: 0; font-style: normal; }
.alpha-resources h1 { font: 700 clamp(2.1rem, 4.6vw, 3.5rem)/1.12 var(--display); max-width: 20ch; margin: 1.8rem 0 1rem; }
.alpha-resources h2 { font: 700 clamp(1.5rem, 2.6vw, 2rem)/1.2 var(--display); margin: 0 0 1rem; }
.alpha-resources h3 { font: 800 1.15rem/1.35 var(--sans); margin: 0 0 .65rem; }
.alpha-resources p { max-width: 65ch; }
.alpha-resources .lede { font-size: 1.1rem; color: var(--ink-soft); line-height: 1.7; }
.resource-hero { display: grid; grid-template-columns: minmax(0,1fr); align-items: center; gap: var(--resource-space-xl); padding-block: var(--resource-space-lg) var(--resource-space-xl); }
.resource-hero-copy { min-width: 0; }
.resource-hero h1 { margin-top: 0; }
.resource-hero p { margin-block: var(--resource-space-sm); }
.resource-actions { display: flex; align-items: center; flex-wrap: wrap; gap: var(--resource-space-sm) var(--resource-space-lg); margin-block: var(--resource-space-lg); }
.resource-actions a { display: inline-flex; align-items: center; justify-content: center; min-height: var(--resource-control-height); font-weight: 800; color: var(--coral-dark); white-space: nowrap; }
.resource-actions .resource-primary { border: 1px solid var(--coral-dark); border-radius: 6px; padding: var(--resource-space-xs) var(--resource-space-lg); background: var(--card); color: var(--coral-dark); text-decoration: none; }
.resource-actions .resource-primary:active { background: var(--paper); color: var(--ink); }
.hero-proof { font-weight: 800; font-size: .9rem; }
.hero-scope { color: var(--ink-soft); font-size: .9rem; }
.hero-samples { margin: 0; min-width: 0; }
.hero-sample-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--resource-space-md); }
.hero-sample-pair img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: contain; image-rendering: pixelated; background: var(--card); border: 1px solid var(--paper-deep); }
.hero-sample-pair p { font-size: .83rem; color: var(--ink-soft); line-height: 1.65; }
.hero-sample-pair strong { color: var(--ink); }
.hero-samples figcaption { font-size: .8rem; color: var(--ink-soft); margin-top: var(--resource-space-sm); }
.resource-toc { padding-block: var(--resource-space-sm); border-block: 1px solid var(--paper-deep); }
.resource-meta a { display: inline-flex; align-items: center; min-height: var(--resource-control-height); }
.resource-breadcrumb { display: flex; flex-wrap: wrap; gap: .4rem .8rem; font-size: .82rem; color: var(--ink-soft); }
.resource-breadcrumb a { white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
.resource-breadcrumb span { align-self: center; }
.resource-links { display: flex; align-items: center; flex-wrap: wrap; gap: var(--resource-space-xs) var(--resource-space-lg); }
.resource-links a { min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; color: var(--coral-dark); font-weight: 800; }
.resource-meta, .pattern-facts { font: 700 .82rem/1.7 var(--mono); font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.alpha-resources a:hover { text-decoration-thickness: 2px; }
.alpha-resources a:active, .resource-foot a:active { color: var(--ink); text-decoration-thickness: 2px; }
.alpha-resources :is(a,button,select,summary):focus-visible { outline: 3px solid var(--coral-dark); outline-offset: 4px; }
.resource-foot a:focus-visible { outline: 3px solid var(--coral-dark); outline-offset: 4px; }
.alpha-filters { border: 0; border-bottom: 1px solid var(--paper-deep); padding: 1.5rem 0; margin: 2.2rem 0 1rem; scroll-margin-top: 6rem; }
.alpha-filters legend { padding: 0 .5rem 0 0; font-weight: 800; }
.filter-fields { display: grid; grid-template-columns: minmax(0,1fr); gap: 1rem; }
.filter-fields label { display: grid; gap: .4rem; font-size: .9rem; font-weight: 800; }
.filter-fields select { width: 100%; min-height: 44px; padding: .6rem .8rem; border: 1px solid var(--ink-soft); border-radius: 6px; background: var(--card); color: var(--ink); }
.filter-fields button, .empty-message button { min-height: 44px; padding: .6rem 1rem; border: 1px solid var(--ink-soft); border-radius: 6px; background: var(--card); color: var(--ink); cursor: pointer; font-weight: 800; white-space: nowrap; }
.filter-fields button { align-self: end; }
.filter-fields :is(select,button):hover { border-color: var(--coral-dark); }
.filter-fields :is(select,button):active { background: var(--paper); }
.filter-fields :is(select,button):disabled { opacity: .55; cursor: not-allowed; }
.alpha-filters:disabled { opacity: .65; }
.alpha-results { display: block; min-height: 1.7rem; font-size: .9rem; color: var(--ink-soft); }
.alpha-catalogue { display: grid; grid-template-columns: minmax(0,1fr); gap: 2rem 1.5rem; margin-block: 1.5rem 3rem; }
.alpha-card { min-width: 0; border-bottom: 1px solid var(--paper-deep); padding-bottom: 1.4rem; scroll-margin-top: 6rem; }
.alpha-card[hidden], .empty-message[hidden] { display: none; }
.alpha-card figure { margin: 0 0 1rem; }
.alpha-card figure a { display: block; }
.alpha-card img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; background: var(--card); border: 1px solid var(--paper-deep); }
.alpha-card figcaption { font-size: .8rem; color: var(--ink-soft); margin-top: .5rem; }
.alpha-card p { margin: .6rem 0; }
.alpha-card .pattern-note { font-size: .92rem; line-height: 1.65; }
.pattern-actions { display: flex; align-items: center; flex-wrap: wrap; gap: var(--resource-space-xs) var(--resource-space-md); }
.pattern-actions a { display: inline-flex; min-height: 44px; align-items: center; font-size: .9rem; font-weight: 800; color: var(--coral-dark); white-space: nowrap; }
.edit-instructions { margin-top: .35rem; font-size: .86rem; }
.edit-instructions summary { min-height: 44px; align-content: center; cursor: pointer; font-weight: 800; width: fit-content; }
.edit-instructions summary:hover, .edit-instructions[open] summary { color: var(--coral-dark); }
.edit-instructions summary:active { color: var(--ink); }
.edit-instructions ol { padding-inline-start: 1.2rem; line-height: 1.7; }
.edit-instructions li { margin-bottom: .6rem; }
.edit-instructions a { display: inline-block; min-height: 44px; align-content: center; white-space: nowrap; }
.source-note { color: var(--ink-soft); font-size: .78rem; }
.resource-section { margin-block: 3rem; scroll-margin-top: 6rem; }
.resource-section ul, .resource-section ol { padding-inline-start: 1.35rem; max-width: 65ch; line-height: 1.7; }
.resource-section li { margin-block: .55rem; }
.alpha-guide .resource-section { max-width: 70ch; margin-inline: auto; }
.alpha-guide .resource-section + .resource-section { border-top: 1px solid var(--paper-deep); padding-top: var(--resource-space-xl); }
.alpha-guide .resource-section p { line-height: 1.75; }
.guide-chart { margin: 1.7rem 0; }
.guide-chart img { display: block; width: min(100%, 560px); height: auto; background: var(--card); border: 1px solid var(--paper-deep); }
.guide-chart figcaption { margin-top: .75rem; font-size: .86rem; color: var(--ink-soft); max-width: 65ch; }
.hero-guide-chart { margin: 0; min-width: 0; }
.hero-guide-chart img { width: 100%; }
.guide-row-diagram { margin: var(--resource-space-lg) 0; }
.reading-direction-diagram { display: block; width: min(100%, 560px); height: auto; font-family: var(--sans); font-size: 15px; background: var(--card); color: var(--ink); border: 1px solid var(--paper-deep); }
.diagram-label { fill: var(--ink); font-size: 13px; font-weight: 800; }
.diagram-cell { stroke: var(--ink-soft); stroke-width: .6px; }
.diagram-start { fill: none; stroke: var(--ink); stroke-width: 3px; }
.guide-row-diagram figcaption { max-width: 65ch; color: var(--ink-soft); font-size: .86rem; margin-top: var(--resource-space-sm); }
.guide-rows { border-collapse: collapse; width: 100%; font-size: .9rem; }
.guide-rows caption { text-align: start; margin-bottom: .75rem; font-weight: 800; }
.guide-rows th, .guide-rows td { text-align: start; border-bottom: 1px solid var(--paper-deep); padding: .75rem .5rem; vertical-align: top; }
.guide-rows th:first-child, .guide-rows td:first-child { width: 4.5rem; }
.guide-rows code { display: inline; font: .82rem/1.7 var(--mono); overflow-wrap: anywhere; }
.reading-key { display: flex; flex-wrap: wrap; gap: .4rem 1rem; padding: 0; list-style: none; }
.reading-key li { margin: 0; }
.guide-errors { display: grid; gap: 1.3rem; }
.guide-errors p { margin: .5rem 0 0; }
.resource-steps { margin-block: var(--resource-space-lg); }
.resource-steps li { padding-inline-start: var(--resource-space-xs); margin-bottom: var(--resource-space-lg); }
.resource-steps li::marker { font-weight: 800; color: var(--coral-dark); }
.resource-steps h3 { margin-bottom: var(--resource-space-xs); }
.resource-steps p { margin: 0; }
.resource-faq-item { border-top: 1px solid var(--paper-deep); }
.resource-faq-item:last-child { border-bottom: 1px solid var(--paper-deep); }
.resource-faq-item summary { min-height: var(--resource-control-height); padding-block: var(--resource-space-md); font-weight: 800; cursor: pointer; }
.resource-faq-item[open] summary { color: var(--coral-dark); }
.resource-faq-item p { margin: 0 0 var(--resource-space-lg); line-height: 1.75; }
.resource-next { border-top: 1px solid var(--paper-deep); padding-top: var(--resource-space-xl); }
.resource-next .resource-actions { margin-bottom: 0; }
.empty-message { background: var(--card); color: var(--ink); padding: 1.5rem; margin-block: 1rem; }
.resource-foot { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; border-top: 1px solid var(--paper-deep); padding-block: 2rem; color: var(--ink-soft); font-size: .86rem; }
@media (min-width: 40rem) { .alpha-catalogue { grid-template-columns: repeat(2,minmax(0,1fr)); } .filter-fields { grid-template-columns: repeat(3,minmax(0,1fr)); } .filter-fields button { justify-self: start; } }
@media (min-width: 60rem) { .resource-hero { grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); gap: var(--resource-space-2xl); } .alpha-catalogue { grid-template-columns: repeat(3,minmax(0,1fr)); } .filter-fields { grid-template-columns: repeat(3,minmax(0,1fr)) auto; } }
@media (hover: hover) and (pointer: fine) { .resource-primary:hover { background: var(--paper); color: var(--ink); } .resource-faq-item summary:hover { color: var(--coral-dark); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { header.site, .resource-breadcrumb, .alpha-filters, .resource-links, .resource-actions, .pattern-actions, .edit-instructions, .resource-foot { display: none; } .alpha-resources { width: 100%; padding: 0; } .alpha-card { break-inside: avoid; } }
