.font-detail-page { position: relative; height: calc(100dvh - var(--header-height, 59px)); min-height: 0; display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); overflow: hidden; }
.font-detail-page * { box-sizing: border-box; }
.font-detail-content, .font-purchase-panel { min-width: 0; min-height: 0; overflow-y: auto; }
.font-detail-topline, .font-detail-section-heading, .font-purchase-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 4px 4px 0; padding: 0 0 4px; border-bottom: 1px solid currentColor; font-size: 12px; line-height: 1.2; }
.font-detail-topline { position: sticky; top: 0; z-index: 5; background: var(--bg-color); }
.font-detail-topline a { color: inherit; text-decoration: none; }
.font-detail-topline a:hover { text-decoration: underline; text-underline-offset: 3px; }
.font-detail-hero { padding: 4px 4px 12px; border-bottom: 1px solid currentColor; }
.detail-intro-controls { display: flex; align-items: center; gap: 12px; padding: 4px 0 8px; font-size: 11px; }
.detail-intro-controls > button { display: grid; place-items: center; flex: 0 0 20px; width: 20px; height: 20px; margin-left: auto; padding: 0; border: 0; color: inherit; background: transparent; cursor: pointer; }
.detail-intro-controls > button svg { display: block; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1; }
.detail-size-control { display: flex; align-items: center; width: 100px; }
.detail-size-control input { width: 100%; height: 1px; margin: 0; appearance: none; border: 0; border-radius: 0; color: inherit; background: currentColor; }
.detail-size-control input::-webkit-slider-thumb { width: 9px; height: 9px; appearance: none; border: 1px solid currentColor; border-radius: 50%; background: var(--bg-color); }
.detail-size-control input::-moz-range-thumb { width: 8px; height: 8px; border: 1px solid currentColor; border-radius: 50%; background: var(--bg-color); }
.font-detail-intro { display: block; width: 100%; min-height: 180px; margin: 0; padding: 0; resize: none; border: 0; outline: 0; color: inherit; background: transparent; font-family: var(--detail-font); font-size: 32px; font-weight: var(--detail-weight); line-height: 1.5; word-break: keep-all; overflow-wrap: normal; line-break: strict; hyphens: none; overflow-x: auto; overflow-y: hidden; }
.font-detail-section { border-bottom: 1px solid currentColor; }
.font-detail-section-heading h2, .font-purchase-heading h2 { margin: 0; font: inherit; }
.font-weight-list { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 12px 4px; }
.font-weight-item { padding: 0 0 3px; border: 0; color: inherit; background: transparent; font-family: var(--detail-font); font-size: 22px; line-height: 1.3; white-space: nowrap; cursor: pointer; }
.font-weight-item[aria-pressed="true"] { text-decoration: underline; text-underline-offset: 5px; }
.font-spec-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 0; }
.font-spec-item { grid-column: span 2; min-width: 0; padding: 12px 4px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; }
.font-spec-item:nth-child(3), .font-spec-item:nth-child(5) { border-right: 0; }
.font-spec-item:nth-child(n + 4) { grid-column: span 3; border-bottom: 0; }
.font-spec-item dt { margin-bottom: 8px; font-size: 11px; }
.font-spec-item dd { margin: 0; font-size: 14px; line-height: 1.5; word-break: keep-all; }
#detailGlyphCount > span { display: block; }
.glyph-map-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
.glyph-feature { position: relative; min-width: 0; min-height: 340px; overflow: hidden; border-right: 1px solid currentColor; }
.glyph-feature-character { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.glyph-feature-character svg { display: block; width: 100%; height: 100%; fill: currentColor; }
.glyph-outline-sprite { position: fixed; top: 0; left: 0; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.glyph-metric { position: absolute; left: 4px; right: 4px; display: flex; justify-content: space-between; border-top: 1px solid currentColor; opacity: .45; font-size: 9px; line-height: 1.4; }
.glyph-code { position: absolute; bottom: 4px; left: 4px; font-size: 11px; }
.glyph-browser { min-width: 0; padding: 4px; }
.glyph-controls { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 4px; }
.glyph-controls .detail-dropdown, .glyph-controls input { min-width: 0; flex: 1; width: 45%; }
.glyph-controls input { padding: 4px 0; border: 0; border-bottom: 1px solid currentColor; border-radius: 0; color: inherit; background: transparent; font: inherit; font-size: 11px; }
.glyph-status { min-height: 0; margin: 0; font-size: 10px; line-height: 1.5; }
.glyph-status:not(:empty) { padding: 4px 0; }
.glyph-status button { padding: 0; border: 0; color: inherit; background: transparent; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.glyph-grid { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); border-top: 1px solid currentColor; border-left: 1px solid currentColor; }
.glyph-grid:empty { min-height: 220px; }
.glyph-grid button { min-width: 0; aspect-ratio: 1; padding: 0; display: grid; place-items: center; border: 0; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; color: inherit; background: transparent; cursor: pointer; }
.glyph-grid button svg { display: block; width: 100%; height: 100%; fill: currentColor; }
.glyph-grid button:hover, .glyph-grid button[aria-pressed="true"] { color: var(--bg-color); background: var(--text-color); border-color: var(--text-color); }
.glyph-pagination { display: flex; justify-content: flex-end; align-items: center; gap: 12px; padding: 8px 0 4px; font-size: 11px; }
.glyph-pagination[hidden] { display: none; }
.glyph-pagination button { padding: 0 4px; border: 0; color: inherit; background: transparent; font: inherit; cursor: pointer; }
.glyph-pagination button:disabled { opacity: .3; cursor: default; }
.font-detail-page button:focus-visible, .font-detail-page input:focus-visible, .font-detail-page select:focus-visible { outline: 1px solid currentColor; outline-offset: -1px; }
.font-purchase-panel { display: flex; flex-direction: column; border-left: 1px solid currentColor; }
.font-purchase-body { flex: 1; display: flex; flex-direction: column; padding: 12px 4px 4px; }
.font-purchase-family { margin: 0 0 24px; font-family: var(--detail-font); font-size: clamp(42px, 5vw, 86px); font-weight: var(--detail-weight); line-height: 1.1; word-break: keep-all; }
.purchase-license { margin: 0 0 20px; padding-bottom: 12px; border-bottom: 1px solid currentColor; font-size: 12px; line-height: 1.5; }
.purchase-options { display: grid; gap: 8px; margin: 0 0 24px; padding: 0; border: 0; }
.purchase-options legend { margin-bottom: 8px; font-size: 11px; }
.purchase-option { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 0; border: 0; border-bottom: 1px solid currentColor; color: inherit; background: transparent; font: inherit; font-size: 14px; line-height: 1.5; text-align: left; cursor: pointer; }
.purchase-option[hidden] { display: none; }
.purchase-option-price { flex-shrink: 0; font-size: 18px; font-weight: 400; font-variant-numeric: tabular-nums; white-space: nowrap; }
.purchase-option-label small { display: block; font-size: 10px; line-height: 1.4; }
.purchase-option[aria-pressed="true"]::before { content: "●"; }
.purchase-option[aria-pressed="false"]::before { content: "○"; }
.purchase-option span:first-of-type { flex: 1; }
.purchase-single-option { border-bottom: 1px solid currentColor; }
.purchase-single-option > .purchase-option { width: 100%; border-bottom: 0; }
.detail-native-select { display: none; }
.detail-dropdown { min-width: 0; }
.detail-dropdown[hidden] { display: none; }
.detail-dropdown-toggle { display: block; max-width: 100%; padding: 4px 0; border: 0; color: inherit; background: transparent; font: inherit; font-size: 11px; font-weight: 300; line-height: 1.2; text-align: left; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.detail-dropdown-toggle:disabled { opacity: .35; cursor: default; }
.purchase-weight-control { margin: 0 0 8px 22px; }
.purchase-selected-styles { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px 22px; }
.purchase-selected-styles[hidden] { display: none; }
.purchase-style-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 5px; border: 1px solid currentColor; color: inherit; background: transparent; font: inherit; font-size: 11px; line-height: 1.2; cursor: pointer; }
.purchase-style-chip svg { width: 8px; height: 8px; fill: none; stroke: currentColor; stroke-width: 1; }
.purchase-selection-status { margin: 0; font-size: 11px; line-height: 1.5; word-break: keep-all; }
.purchase-selection-status:empty { display: none; }
.purchase-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 12px; padding-top: 12px; border-top: 1px solid currentColor; font-size: 11px; }
.purchase-total strong { font-size: 18px; font-weight: 400; font-variant-numeric: tabular-nums; white-space: nowrap; }
.detail-select-menu { position: fixed; z-index: 100; overflow-y: auto; margin: 0; padding: 8px 0; border: 0; border-radius: 0; color: var(--text-color); background: var(--bg-color); list-style: none; font-family: '할배티카', sans-serif; font-size: 11px; font-weight: 300; line-height: 1.2; }
.detail-select-menu[hidden] { display: none; }
.detail-select-menu [role="option"] { padding: 2px; cursor: pointer; }
.detail-select-menu[aria-multiselectable="true"] [role="option"] { display: flex; align-items: center; gap: 6px; }
.detail-select-menu[aria-multiselectable="true"] [role="option"]::before { content: ""; flex: 0 0 7px; height: 7px; border: 1px solid currentColor; }
.detail-select-menu[aria-multiselectable="true"] [role="option"][aria-selected="true"]::before { background: currentColor; }
.detail-select-menu [role="option"]:hover, .detail-select-menu [role="option"]:focus, .detail-select-menu [aria-selected="true"] { outline: 0; text-decoration: underline; text-underline-offset: 3px; }
.purchase-footer { margin-top: auto; }
.purchase-notice { margin: 0 0 12px; font-size: 11px; line-height: 1.5; }
.purchase-button { width: 100%; padding: 12px; border: 1px solid currentColor; color: var(--bg-color); background: var(--text-color); font: inherit; }
.purchase-button:disabled { cursor: not-allowed; }
@media (max-width: 768px) {
    .font-detail-page { height: auto; display: block; overflow: visible; }
    .font-detail-content, .font-purchase-panel { overflow: visible; }
    .font-detail-topline { top: var(--header-height, 104px); }
    .font-detail-intro { font-size: 24px; }
    .glyph-map-layout { grid-template-columns: 1fr; }
    .glyph-feature { min-height: 280px; border-right: 0; border-bottom: 1px solid currentColor; }
    .glyph-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
    .font-purchase-panel { min-height: calc(100svh - var(--header-height, 104px)); border-top: 1px solid currentColor; border-left: 0; }
}
