:root { --hoc-card: rgba(255,255,255,.93); --hoc-line: #d9dee0; --hoc-ink: #18241e; --hoc-muted: #53615a; --hoc-soft: rgba(10,122,61,.065); }
:root[data-theme="dark"] { --hoc-card: rgba(12,19,34,.95); --hoc-line: #2a3547; --hoc-ink: #f3f7f5; --hoc-muted: #b1c0b8; --hoc-soft: rgba(74,222,128,.08); }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--hoc-ink); font: 16px/1.5 ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif; }
button, select { font: inherit; }
a { color: #087f43; }
:root[data-theme="dark"] a { color: #86efac; }
.skip-link { position: absolute; top: -60px; left: 12px; z-index: 99; padding: 9px 13px; background: #4ade80; color: #101827; }
.skip-link:focus { top: 8px; }
.topbar { position: relative; z-index: 30; }
.wrap { width: min(100%, 1120px); margin-inline: auto; padding: 0 16px 58px; }
h1,h2,h3,p { margin-top: 0; }
h1,h2,h3 { line-height: 1.2; }
.hoc-layout { display: grid; grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr); gap: 20px; align-items: start; }
.hoc-panel { padding: 22px; border: 1px solid var(--hoc-line); border-radius: 14px; background: var(--hoc-card); box-shadow: 0 2px 7px rgba(0,0,0,.08); }
.hoc-panel h2 { margin-bottom: 7px; font-size: 22px; letter-spacing: -.02em; }
.hoc-panel p { color: var(--hoc-muted); font-size: 14px; line-height: 1.55; }
.hoc-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-top: 18px; }
.hoc-controls .hoc-fields { grid-template-columns: 1fr; }
.hoc-field label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 650; }
.hoc-field select { width: 100%; height: 46px; padding: 0 12px; border: 1px solid var(--hoc-line); border-radius: 9px; background: var(--hoc-card); color: var(--hoc-ink); cursor: pointer; }
.hoc-field select:focus-visible { outline: 2px solid #4ade80; outline-offset: 2px; }
.hoc-controls .hoc-hint { margin: 16px 0 0; padding: 12px 14px; border-radius: 9px; background: var(--hoc-soft); }
.hoc-results { min-height: 310px; }
.hoc-results-head { margin-bottom: 12px; }
.hoc-overline { display: block; margin-bottom: 6px; color: #087f43; font-size: 11px; font-weight: 750; letter-spacing: .12em; }
:root[data-theme="dark"] .hoc-overline { color: #86efac; }
.hoc-results-head p { margin-bottom: 0; }
#result-list { display: grid; gap: 10px; }
.hoc-range-card { padding: 16px; border: 1px solid var(--hoc-line); border-radius: 11px; background: var(--hoc-soft); }
.hoc-range-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.hoc-range-source { font-size: 14px; font-weight: 750; }
.hoc-range-source-detail { margin: 3px 0 0; color: var(--hoc-muted); font-size: 12px; }
.hoc-range-link { flex: none; font-size: 12px; font-weight: 650; white-space: nowrap; }
.hoc-range-value { margin: 9px 0 8px; color: var(--hoc-ink); font-size: clamp(23px,2.5vw,30px); font-weight: 800; line-height: 1.1; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.hoc-range-value span { font-size: 15px; font-weight: 600; letter-spacing: 0; }
.hoc-range-units { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 0; list-style: none; color: var(--hoc-muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.hoc-range-scope { margin: 10px 0 0 !important; color: var(--hoc-muted); font-size: 12px !important; }
#result-empty { margin: 14px 0; padding: 16px; border-radius: 9px; background: var(--hoc-soft); }
.hoc-other-area { padding: 0; border: 0; background: none; color: #087f43; font-weight: 650; text-decoration: underline; cursor: pointer; }
:root[data-theme="dark"] .hoc-other-area { color: #86efac; }
.hoc-context { display: grid; grid-template-columns: minmax(0,.7fr) minmax(0,1.3fr); gap: 10px 24px; margin-top: 20px; }
.hoc-context .hoc-fields { margin-top: 0; }
.hoc-notes { grid-column: 1 / -1; display: grid; gap: 8px; }
.hoc-note { padding: 10px 12px; border-left: 3px solid #4ade80; background: var(--hoc-soft); border-radius: 0 7px 7px 0; }
.hoc-note p { margin: 0; }
.hoc-note a { font-size: 12px; }
.resource-hoc .resource-cta { margin-top: 26px; margin-bottom: 36px; }
.hoc-method { max-width: 900px; margin: 0 auto; }
.hoc-method h2 { margin: 0 0 10px; font-size: 23px; }
.hoc-method p { margin: 0 0 12px; color: var(--hoc-muted); font-size: 14px; line-height: 1.65; }
:root[data-theme="dark"] .hoc-method a { color: #86efac; }
@media (max-width: 850px) { .hoc-layout { grid-template-columns: 1fr; } .hoc-controls .hoc-fields { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 600px) { .wrap { padding: 0 16px 42px; } .hoc-panel { padding: 17px; } .hoc-panel h2 { font-size: 20px; } .hoc-controls .hoc-fields, .hoc-context, .hoc-context .hoc-fields { grid-template-columns: 1fr; } .hoc-range-head { align-items: baseline; } .hoc-context .hoc-fields { gap: 12px; } }
@media print { body.resource-hoc { background: #fff !important; color: #000; } .topbar,.resource-cta,.resource-footer,.hoc-context { display: none !important; } .hoc-panel { break-inside: avoid; box-shadow: none; background: #fff; } .hoc-range-card { background: #fff; } .hoc-range-link { color: #000; } }
