/* Spec 159: guide page composition, using canonical DESIGN.md tokens. */
.admission-guides *, .admission-guides *::before, .admission-guides *::after { box-sizing: border-box; }
.admission-guides p { margin: 0; }
.admission-guides a { text-underline-offset: .22em; }
.guide-section { display: grid; gap: var(--theme-spacing-xl); padding-block: var(--theme-spacing-lg); }
.guide-section-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--theme-spacing-md); }
.guide-paths { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--theme-spacing-xl); }
.guide-paths--single { grid-template-columns: minmax(0,46rem); }
.guide-path { display: grid; align-content: start; gap: var(--theme-spacing-md); border: 1px solid var(--theme-color-border); background: var(--theme-color-surface); padding: var(--theme-spacing-xl); }
.guide-path-heading { display: inline-flex; align-items: center; min-height: 44px; }
.guide-path-intro { max-width: 28rem; }
.guide-path-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--theme-spacing-md); }
.guide-path-list li { display: grid; grid-template-columns: 2rem minmax(0,1fr); align-items: start; gap: var(--theme-spacing-md); }
.guide-step-number { display: grid; place-items: center; width: 2rem; height: 2rem; margin-block-start: var(--theme-spacing-sm); border-radius: var(--theme-radius-marker); background: var(--theme-color-surface-selected); color: var(--theme-color-primary); }
.guide-path-list li + li .guide-step-number { background: var(--theme-color-surface-muted); }
.guide-reading-link { justify-content: space-between; padding-block: var(--theme-spacing-xs); }
.guide-reading-copy { display: grid; gap: var(--theme-spacing-xs); min-width: 0; }
.guide-reading-label { color: var(--theme-color-muted); }
.guide-reading-arrow { flex: none; }
.guide-path-link { color: var(--theme-color-primary); min-height: 44px; display: flex; align-items: center; gap: var(--theme-spacing-sm); text-decoration: none; }
.guide-path-link:hover { color: var(--theme-color-primary-light); text-decoration: underline; }
.guide-year { display: grid; grid-template-columns: 12rem minmax(0,1fr); gap: var(--theme-spacing-xl); padding-block: var(--theme-spacing-xl); border-block: 1px solid var(--theme-color-border); }
.guide-year-copy { display: grid; gap: var(--theme-spacing-sm); }
.guide-year-disclosure summary { min-height: 44px; padding-block: var(--theme-spacing-md); cursor: pointer; }
.guide-year-status { margin-inline-start: var(--theme-spacing-md); }
.guide-year-detail { display: grid; gap: var(--theme-spacing-sm); padding-block: var(--theme-spacing-md); }
.guide-year-detail > a { display: flex; align-items: center; min-height: 44px; }
.guide-year-label { display: grid; align-content: start; gap: var(--theme-spacing-sm); }
.guide-inline-link { color: var(--theme-color-primary); }
.guide-search-form { display: flex; align-items: end; gap: var(--theme-spacing-md); max-width: 44rem; }
.guide-search-field { display: grid; gap: var(--theme-spacing-sm); flex: 1; min-width: 0; }
.guide-filters { display: flex; flex-wrap: wrap; gap: var(--theme-spacing-sm); padding-block: var(--theme-spacing-xs); }
.guide-filters a { text-decoration: none; }
.guide-results-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--theme-spacing-md); align-items: center; }
.guide-article-list { display: grid; }
.guide-article-row { display: grid; grid-template-columns: 9rem minmax(0,1fr) 6rem; gap: var(--theme-spacing-xl); align-items: start; padding-block: var(--theme-spacing-xl); border-top: 1px solid var(--theme-color-border); }
.guide-row-category { display: grid; gap: var(--theme-spacing-xs); padding-block-start: var(--theme-spacing-md); }
.guide-row-copy { display: grid; gap: var(--theme-spacing-xs); }
.guide-row-title { min-height: 44px; display: flex; align-items: center; color: var(--theme-color-primary); text-decoration: none; }
.guide-row-title:hover { color: var(--theme-color-primary-light); text-decoration: underline; }
.guide-row-time { padding-block-start: var(--theme-spacing-md); text-align: right; }
.guide-empty { display: grid; justify-items: start; gap: var(--theme-spacing-md); padding-block: var(--theme-spacing-2xl); border-top: 1px solid var(--theme-color-border); }
.guide-next { border-top: 1px solid var(--theme-color-border-strong); padding-block: var(--theme-spacing-xl); display: grid; gap: var(--theme-spacing-md); }
.guide-next-links { display: flex; flex-wrap: wrap; gap: var(--theme-spacing-md); }
.guide-article-header { display: grid; max-width: 46rem; gap: var(--theme-spacing-lg); padding-block-end: var(--theme-spacing-lg); }
.guide-article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--theme-spacing-md); }
.guide-scope { padding: var(--theme-spacing-lg); border-inline-start: 2px solid var(--theme-color-border-strong); background: var(--theme-color-surface); display: grid; gap: var(--theme-spacing-sm); }
.guide-outcomes { display: grid; gap: var(--theme-spacing-sm); }
.guide-outcomes ul { margin: 0; padding-inline-start: var(--theme-spacing-xl); }
.guide-outcomes ul, .guide-prose ul { list-style: disc; }
.guide-prose ol { list-style: decimal; }
.guide-reading-layout { display: grid; grid-template-columns: minmax(0,46rem) minmax(11rem,13rem); gap: var(--theme-spacing-4xl); align-items: start; }
.guide-article { display: grid; gap: var(--theme-spacing-xl); }
.guide-reading-layout > div { min-width: 0; }
.guide-sources { display: grid; gap: var(--theme-spacing-lg); padding-block: var(--theme-spacing-2xl); scroll-margin-block-start: 6rem; border-top: 1px solid var(--theme-color-border); }
.guide-source-citations { padding-inline-start: var(--theme-spacing-lg); }
.guide-source-citations a { color: var(--theme-color-primary); }
.guide-next .guide-path-list li { display: block; }
.guide-row-description { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#articles { scroll-margin-block-start: 6rem; }
.guide-prose .guide-table-scroll { overflow-x: auto; margin-block: var(--theme-spacing-xl); }
.guide-prose table { width: 100%; border-collapse: collapse; }
.guide-prose th, .guide-prose td { text-align: left; vertical-align: top; padding: var(--theme-spacing-md); border-bottom: 1px solid var(--theme-color-border); min-width: 8rem; }
.guide-prose caption { text-align: left; padding-block-end: var(--theme-spacing-md); }
.guide-prose th { font-weight: 600; }
.guide-prose blockquote { margin-block: var(--theme-spacing-xl); border-inline-start: 2px solid var(--theme-color-border-strong); padding-inline-start: var(--theme-spacing-lg); }
.guide-prose { min-width: 0; font-family: var(--theme-font-sans); font-size: var(--theme-text-body); line-height: var(--theme-text-body--line-height); color: var(--theme-color-foreground); overflow-wrap: anywhere; }
.guide-prose > p { margin-block: 0 var(--theme-spacing-lg); }
.guide-prose h2 { margin-block: var(--theme-spacing-3xl) var(--theme-spacing-lg); color: var(--theme-color-foreground); font-family: var(--theme-font-serif); font-size: var(--theme-text-section-title); font-weight: var(--theme-text-section-title--font-weight); line-height: var(--theme-text-section-title--line-height); scroll-margin-block-start: 6rem; }
.guide-prose h2:first-child { margin-block-start: 0; }
.guide-prose h3:not([class]) { margin-block: var(--theme-spacing-xl) var(--theme-spacing-sm); color: var(--theme-color-foreground); font-family: var(--theme-font-sans); font-size: var(--theme-text-entity-title); font-weight: var(--theme-text-entity-title--font-weight); line-height: var(--theme-text-entity-title--line-height); scroll-margin-block-start: 6rem; }
.guide-prose a { color: var(--theme-color-primary); }
.guide-prose a:hover { color: var(--theme-color-primary-light); }
.guide-prose strong { font-weight: 600; }
.guide-prose ul, .guide-prose ol { padding-inline-start: var(--theme-spacing-xl); margin-block: 0 var(--theme-spacing-lg); }
.guide-prose li { margin-block: var(--theme-spacing-sm); }
.guide-toc { position: sticky; top: 6rem; padding: var(--theme-spacing-xs); max-height: calc(100dvh - 8rem); overflow-y: auto; }
.guide-toc-list { list-style: none; margin: var(--theme-spacing-md) 0 0; padding: 0; display: grid; gap: var(--theme-spacing-xs); }
.guide-toc-list a { display: flex; align-items: center; min-height: 44px; padding-inline: var(--theme-spacing-sm); color: var(--theme-color-muted); text-decoration: none; }
.guide-toc-list a:hover, .guide-toc-list a[aria-current="location"] { color: var(--theme-color-primary); background: var(--theme-color-surface-selected); }
.guide-mobile-toc { display: none; border-block: 1px solid var(--theme-color-border); padding-block: var(--theme-spacing-sm); }
.guide-mobile-toc summary { min-height: 44px; cursor: pointer; padding-block: var(--theme-spacing-md); color: var(--theme-color-primary); }
.guide-toc-hint { margin-inline-start: var(--theme-spacing-md); }
.guide-source-list { display: grid; gap: var(--theme-spacing-lg); list-style: none; padding: 0 !important; }
.guide-source-list li { display: grid; gap: var(--theme-spacing-xs); }
.guide-source-list a { min-height: 44px; display: flex; align-items: center; }
:where([data-runtime-theme="target-u"]:not([data-focus-modality="pointer"])) .admission-guides :is(a,summary):focus-visible { outline: var(--theme-focus-ring-width) solid var(--theme-color-focus); outline-offset: var(--theme-focus-ring-gap); }
@media (max-width:1023px) {
 .guide-reading-layout { grid-template-columns: minmax(0,46rem); }
 .guide-toc { display: none; }
 .guide-mobile-toc { display: block; }
}

.guide-sources summary { width: fit-content; cursor: pointer; padding-block: .5em; }
.guide-prose .guide-figure { margin: 1em 0 1.5em; }
.guide-figure img { display: block; width: 100%; height: auto; }
.guide-figure figcaption { margin-block-start: .5em; line-height: 1.6; }
@media (max-width:767px) {
 .guide-prose table:has(thead th:nth-child(3):last-child) :is(th,td) { min-width: 0; padding-inline: .5rem; }
 .guide-article-header { gap: var(--theme-spacing-md); }
 .guide-paths { grid-template-columns: minmax(0,1fr); gap: var(--theme-spacing-xl); }
 .guide-path { padding: var(--theme-spacing-lg); }
 .guide-year { grid-template-columns: minmax(0,1fr); gap: var(--theme-spacing-md); }
 .guide-year-label { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--theme-spacing-md); }
 .guide-article-row { grid-template-columns: minmax(0,1fr); gap: var(--theme-spacing-xs); }
 .guide-row-category { display: flex; gap: var(--theme-spacing-md); padding: 0; }
 .guide-row-time { text-align: left; padding: var(--theme-spacing-sm) 0 0; }
}
