.box-reference { max-width: 1200px; padding-top: 28px; }
.box-reference-hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 16px 0 44px; }
.box-reference h1 { margin: 12px 0 20px; font-size: clamp(2.6rem, 4.7vw, 3.7rem); line-height: 1.06; letter-spacing: -.045em; }
.box-reference-intro { font-size: 1.08rem; line-height: 1.75; color: var(--color-muted); }
.box-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 24px; }
.box-hero-actions .button { gap: 24px; padding: 12px 22px; }
.box-hero-actions .box-download { gap: 12px; border-radius: 8px; font-size: 1rem; font-weight: 650; }
.box-download svg { width: 24px; height: 24px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.box-reference .guide-meta { margin-bottom: 0; }
.box-measure-figure { margin: 0; min-width: 0; }
.box-measure-figure .box-measure-visual { overflow: hidden; border: 1px solid #ead7a8; border-radius: 24px; }
.box-measure-figure figcaption { margin-top: 12px; text-align: center; color: var(--color-muted); font-size: .85rem; }
.box-catalog { scroll-margin-top: 24px; overflow: hidden; border: 1px solid var(--color-line); border-radius: 22px; background: var(--color-surface); box-shadow: var(--shadow-low); }
.box-catalog-heading { padding: 26px 28px 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.box-catalog-heading .guide-eyebrow { margin: 0 0 6px; }
.box-catalog h2 { margin: 0; font-size: clamp(1.35rem, 2.7vw, 1.8rem); letter-spacing: -.025em; }
.box-total { border: 1px solid #ecd9a7; border-radius: 10px; padding: 8px 12px; white-space: nowrap; background: #fff9e9; font-size: .85rem; color: var(--color-muted); }
.box-total strong { color: var(--color-ink); font-size: 1rem; }
.box-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 14px 24px; margin: 0 28px; padding: 20px; background: #fbf8f0; border: 1px solid #e9e0ce; border-radius: 14px; }
.box-search-field > label, .box-unit-picker legend { display: block; margin-bottom: 7px; color: var(--color-muted); font-size: .78rem; font-weight: 700; }
.box-search-input { display: flex; align-items: center; background: white; border: 1px solid #cdb678; border-radius: 9px; padding-left: 12px; }
.box-search-input svg { width: 19px; height: 19px; flex: 0 0 auto; fill: none; stroke: #8a753f; stroke-width: 1.7; }
.box-search-input input { min-width: 0; width: 100%; padding: 12px 10px; font: inherit; font-size: .9rem; border: 0; background: transparent; box-shadow: none; }
.box-search-input:focus-within { outline: 2px solid #c99b20; outline-offset: 2px; }
.box-search-input input:focus { outline: none; }
.box-search-input button { margin-right: 5px; padding: 7px 8px; border: 0; background: transparent; color: var(--color-muted); font: inherit; font-size: .78rem; cursor: pointer; }
.box-unit-picker { border: 0; padding: 0; margin: 0; }
.box-unit-picker .button--toggle { padding: 0; }
.box-examples { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .75rem; color: var(--color-muted); }
.box-examples > span { margin-right: 4px; }
.box-examples button { padding: 3px 9px; border: 1px solid #e0d4b7; border-radius: 5px; background: white; font: inherit; cursor: pointer; }
.box-table-toolbar { display: flex; justify-content: space-between; gap: 16px; margin: 16px 28px 12px; font-size: .78rem; color: var(--color-muted); }
.box-table-toolbar p { margin: 0; }
.box-table-scroll { max-height: 580px; overflow: auto; scrollbar-gutter: stable; border-top: 1px solid var(--color-line); border-bottom: 1px solid var(--color-line); }
.box-table-scroll:focus-visible { outline: 3px solid var(--color-primary-dark); outline-offset: -3px; }
.box-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .94rem; font-variant-numeric: tabular-nums; }
.box-table thead th { position: sticky; top: 0; z-index: 1; background: #f4f0e7; border-bottom: 1px solid #ded2b6; padding: 12px 22px; text-align: center; white-space: nowrap; }
.box-table thead th:first-child { text-align: left; }
.box-table thead button { display: inline-flex; align-items: center; gap: 8px; padding: 0; color: var(--color-ink); background: transparent; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.box-sort-icon { display: inline-flex; width: 20px; height: 20px; align-items: center; justify-content: center; flex: 0 0 auto; border: 1px solid #d9c799; border-radius: 4px; color: var(--color-primary-dark); background: #fffdf7; }
.box-sort-icon svg { width: 12px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.box-table th[aria-sort="ascending"] .box-sort-icon, .box-table th[aria-sort="descending"] .box-sort-icon { border-color: var(--color-primary); background: var(--color-primary-soft); }
.box-table th[aria-sort="ascending"] .box-sort-down, .box-table th[aria-sort="descending"] .box-sort-up { display: none; }
.box-table th[aria-sort="ascending"] .box-sort-up { transform: translateY(5px); }
.box-table th[aria-sort="descending"] .box-sort-down { transform: translateY(-5px); }
.box-table tbody th, .box-table tbody td { padding: 14px 22px; border-bottom: 1px solid #eee8da; text-align: center; vertical-align: top; }
.box-table tbody th { width: 32%; text-align: left; font-weight: 400; white-space: nowrap; }
.box-table tbody tr:nth-child(even) { background: #fffdf7; }
.box-table tbody tr:hover { background: #fff5d4; }
.box-table tbody tr:last-child > * { border-bottom: 0; }
.box-code { font-weight: 750; font-size: 1rem; }
.box-aliases { display: inline; margin-inline-start: 10px; color: var(--color-muted); font-size: .73rem; line-height: 1.6; }
.box-volume { color: var(--color-muted); }
.box-data-note { padding: 16px 28px; margin: 0; font-size: .78rem; line-height: 1.7; color: var(--color-muted); background: #fffcf3; }
.box-empty { padding: 40px 20px; text-align: center; color: var(--color-muted); }
.box-code-example { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); align-items: center; gap: 40px; margin-top: 40px; padding-bottom: 36px; border-bottom: 1px solid var(--color-line); }
.box-code-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; min-width: 0; }
.box-code-photo { min-width: 0; margin: 0; }
.box-code-photo img { display: block; width: 100%; height: auto; border: 1px solid var(--color-line); border-radius: 16px; }
.box-code-photo figcaption { margin-top: 10px; color: var(--color-muted); font-size: .75rem; line-height: 1.7; }
.box-code-example h2 { margin: 8px 0 16px; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.25; letter-spacing: -.025em; }
.box-code-example > div > p:not(.guide-eyebrow) { color: var(--color-muted); font-size: .96rem; line-height: 1.8; }
.box-reference-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: 32px 0; border-bottom: 1px solid var(--color-line); }
.box-reference-notes > article { min-width: 0; padding: 24px; border: 1px solid var(--color-line); border-radius: 16px; background: var(--color-surface); box-shadow: var(--shadow-low); }
.box-note-number { color: #8c6c2c; font-size: .75rem; font-weight: 750; letter-spacing: .06em; }
.box-reference-notes h2 { margin: 10px 0; font-size: 1.05rem; }
.box-reference-notes p { font-size: .88rem; line-height: 1.8; color: var(--color-muted); margin: 0; }
.box-faq { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; margin-top: 36px; }
.box-faq h2 { margin: 8px 0; font-size: 1.8rem; letter-spacing: -.02em; }
.box-faq details { border-bottom: 1px solid var(--color-line); padding: 16px 0; }
.box-faq summary { font-weight: 650; cursor: pointer; font-size: .95rem; }
.box-faq details p { margin: 12px 0 0; font-size: .9rem; line-height: 1.8; color: var(--color-muted); }
.box-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 800px) {
    .box-reference-hero { gap: 28px; grid-template-columns: 1fr; }
    .box-measure-figure { max-width: 500px; }
    .box-code-example { grid-template-columns: 1fr; gap: 20px; }
    .box-reference-notes { gap: 22px; }
    .box-faq { gap: 20px; }
}
@media (max-width: 560px) {
    .box-reference { padding: 22px 16px 44px; }
    .box-code-photos { grid-template-columns: 1fr; }
    .box-catalog-heading { padding: 20px 16px; align-items: start; }
    .box-total { padding: 5px 8px; font-size: .7rem; }
    .box-controls { margin: 0 12px; padding: 14px; grid-template-columns: minmax(0, 1fr); }
    .box-examples { grid-row: 2; }
    .box-table-toolbar { margin: 14px 16px 10px; font-size: .7rem; }
    .box-table { min-width: 550px; }
    .box-table thead th, .box-table tbody th, .box-table tbody td { padding: 12px 14px; }
    .box-data-note { padding: 14px 16px; }
    .box-reference-notes { grid-template-columns: 1fr; gap: 26px; padding: 32px 0; }
    .box-faq { grid-template-columns: 1fr; gap: 6px; }
}
