.kr-guide { padding-block: clamp(2rem, 6vw, 5.6rem) clamp(4rem, 8vw, 7rem); }
.kr-guide [hidden] { display: none !important; }
.guide-head { padding-bottom: clamp(1.7rem, 4vw, 3rem); border-bottom: 2px solid var(--ink); }
.guide-head h1 { margin: 0 0 1rem; font-size: clamp(3.2rem, 8vw, 6.75rem); line-height: .98; letter-spacing: -.05em; font-weight: 500; }
.guide-head p { margin: 0; max-width: 53ch; font-size: clamp(1.05rem, 2vw, 1.26rem); line-height: 1.52; color: var(--muted); }
.guide-columns { display: grid; grid-template-columns: minmax(12rem, .75fr) minmax(0, 2fr); gap: clamp(1.8rem, 6vw, 6.6rem); margin-top: 2rem; }
.guide-index { align-self: start; }
.guide-index-inner { display: flex; flex-direction: column; align-items: stretch; }
.guide-search label, .guide-topics h2 { display: block; font: inherit; font-weight: 700; margin: 0 0 .45rem; }
.guide-input { position: relative; }
.guide-input input { background: transparent; color: var(--ink); padding: .7rem .85rem; border: 1px solid var(--muted); min-height: 2.8rem; width: 100%; border-radius: .15rem; font: inherit; }
.guide-input input:has(+ button:not([hidden])) { padding-right: 3.6rem; }
.guide-input input::-webkit-search-cancel-button { -webkit-appearance: none; }
.guide-input button { position: absolute; top: 50%; right: .22rem; transform: translateY(-50%); min-width: 2.9rem; min-height: 2.55rem; padding: 0 .3rem; color: var(--ink); background: transparent; border: 0; font: inherit; font-size: .875rem; cursor: pointer; text-decoration: underline; }
#guide-count { min-height: 1.6em; margin: .4rem 0 1.1rem; color: var(--muted); font-size: .9rem; }
.guide-topics { display: block; margin: 0; }
.guide-topics ul { display: block; margin: 0; list-style: none; padding: 0; }
.guide-topics li { margin: 0; padding: 0; }
.guide-topics a { display: block; padding: .43rem .1rem; font-size: 1rem; line-height: 1.35; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: .2em; }
.guide-topics a:hover, .guide-copy a:hover { color: var(--red); text-decoration-color: currentColor; }
.guide-text-button { background: transparent; border: 0; color: var(--red); padding: .65rem 0; cursor: pointer; text-align: left; font: inherit; font-weight: 650; text-decoration: underline; text-underline-offset: .2em; min-height: 2.75rem; }
#guide-print { margin-top: 1.15rem; align-self: start; }
.guide-pages { border-top: 1px solid var(--ink); align-self: start; min-width: 0; }
.guide-entry { border-bottom: 1px solid var(--line); margin: 0; padding: 0; scroll-margin-block-start: 1.3rem; }
.guide-entry summary { min-height: 4.2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; list-style: none; cursor: pointer; color: var(--ink); padding: 1rem .1rem; }
.guide-entry summary::-webkit-details-marker { display: none; }
.guide-entry summary::after { content: ""; flex: 0 0 .51rem; width: .51rem; height: .51rem; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(45deg); margin: 0 .4rem .25rem 0; color: var(--red); }
.guide-entry[open] summary::after { transform: rotate(225deg); margin-top: .45rem; }
.guide-entry summary h2,.guide-empty h2 { margin: 0; font-weight: 500; font-size: clamp(1.45rem, 2.6vw, 2.18rem); letter-spacing: -.035em; line-height: 1.12; }
.guide-entry summary:hover h2 { color: var(--red); }
.guide-entry:target summary { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 1px; text-underline-offset: .2em; }
.guide-copy { max-width: 72ch; font-size: 1rem; line-height: 1.64; padding: .05rem .1rem 1.75rem; }
.guide-copy p { margin: .82rem 0; }
.guide-copy > :first-child { margin-top: 0; }
.guide-copy > :last-child { margin-bottom: 0; }
.guide-copy ol { margin: .5rem 0; padding-inline-start: 1.55rem; }
.guide-copy ol li { padding-inline-start: .15rem; margin-bottom: .5rem; }
.guide-copy ol li::marker { color: var(--red); font-weight: 650; }
.guide-copy dl { margin: .75rem 0; }
.guide-copy dt { font-weight: 700; margin: .85rem 0 .1rem; }
.guide-copy dd { margin: 0; }
.guide-copy a { color: var(--red); text-underline-offset: .2em; }
.guide-copy code { font: .93em/1.4 ui-monospace, monospace; overflow-wrap: anywhere; }
.guide-empty { border-bottom: 1px solid var(--line); padding: 2rem 0; }
.guide-empty p { margin: .65rem 0; font-size: 1rem; }
.kr-guide :is(input, button, summary, a):focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
@media (max-width: 760px) {
  .guide-columns { grid-template-columns: 1fr; gap: 1.35rem; margin-top: 1.25rem; }
  .guide-topics ul { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); column-gap: .85rem; }
  .guide-topics a { min-height: 2.6rem; display: flex; align-items: center; }
  #guide-print { margin-top: .25rem; }
  .guide-entry summary { min-height: 3.8rem; }
  .guide-head h1 { font-size: clamp(3rem, 13vw, 4.65rem); }
}
@media (max-width: 340px) {
  .guide-topics ul { grid-template-columns: 1fr; }
}
@media print {
  .kr-guide { padding: 0; width: auto; max-width: none; color: black; }
  .guide-columns { display: block; margin-top: .75rem; }
  .guide-index, .guide-empty, .guide-entry summary::after { display: none !important; }
  .guide-head { padding-bottom: .7rem; }
  .guide-head h1 { font-size: 24pt; }
  .guide-head p, .guide-copy { font-size: 10.5pt; line-height: 1.4; max-width: none; }
  .guide-pages, .guide-entry { border: 0; }
  .guide-entry summary { padding: .7rem 0 .3rem; min-height: 0; break-after: avoid; }
  .guide-entry summary h2 { font-size: 16pt; }
  .guide-copy { padding: 0; }
  .guide-copy li, .guide-copy p, .guide-copy dd { orphans: 2; widows: 2; }
  .guide-copy dt { break-after: avoid; }
  .guide-entry:target summary { text-decoration: none; }
}
