:root {
  color-scheme: light;
  --ink: #172641;
  --muted: #4d5d74;
  --accent: #254eab;
  --tint: #edf3ff;
  --paper: #f8faff;
  --line: #d8e2f2;
  font-family: "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
}
* { box-sizing: border-box }
body { margin: 0 }
a { color: inherit }
button, input, select { font: inherit }
button, summary { cursor: pointer }
[hidden] { display: none !important }
:focus-visible { outline: 3px solid #96631a; outline-offset: 3px }
.wrap { max-width: 1168px; margin-inline: auto; padding-inline: 24px }
header { border-bottom: 1px solid var(--line); background: #fff }
.masthead { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 16px }
.masthead > span { display: none }
.brand { color: var(--accent); font-size: 2rem; font-weight: 900; letter-spacing: -.09em; text-decoration: none }
.brand::before { content: ""; display: inline-block; width: 14px; height: 14px; border: 4px solid #3662c7; border-radius: 50% 50% 50% 3px; margin-right: 8px }
.nav a { font-weight: 750; text-decoration: none }
.nav { border-top: 1px solid var(--line) }
nav { display: flex; gap: 24px; min-height: 50px; align-items: center; flex-wrap: wrap }
nav a:hover { color: var(--accent); text-decoration: underline }
main { padding-block: 28px 58px }





.editorial { display: grid; grid-template-columns: minmax(0, 1fr) minmax(225px, 292px); align-items: start; gap: 36px }

h1, h2, h3 { line-height: 1.3; letter-spacing: -.045em }
.section-head h1 { margin: 0; font-size: 1.55rem }

button { color: var(--accent); background: #fff; border: 1px solid #9dadca; border-radius: 7px; padding: 6px 11px; font-weight: 750 }
form button { background: var(--accent); border-color: var(--accent); color: #fff }
.posts { display: grid; gap: 10px }
.post { border: 1px solid var(--line); background: #fff; border-radius: 12px }
.post-link { display: block; padding: 15px 16px; text-decoration: none }
.post-link:hover .post-title, .tile:hover strong { text-decoration: underline }
.post-copy { display: grid; gap: 4px }
.post-kicker, .tile span { color: var(--accent); font-size: .88rem; font-weight: 800 }
.post-title { font-size: clamp(1.02rem, 2.2vw, 1.32rem); font-weight: 850; line-height: 1.35; letter-spacing: -.035em }
.post-deck { color: var(--muted); line-height: 1.45 }



.side { background: var(--tint); border-radius: 14px; padding: 16px }
.side h2 { margin: 0 0 6px; font-size: 1.12rem }
.tile { display: block; text-decoration: none; padding: 10px 0; border-top: 1px solid #cedbf0 }
.tile strong { display: block; line-height: 1.45 }
.tool { margin-top: 34px; background: var(--tint); padding: 16px; border-radius: 14px }
.tool summary, .tool output { font-weight: 850 }
.tool label { display: grid; gap: 4px }
.tool form { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin: 14px 0 }
.tool form button { justify-self: start }
.article-page { max-width: 880px }
.article-page article { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: clamp(16px, 5vw, 44px); font-size: 1.08rem; line-height: 1.8 }
.article-page h1, .topic-page h1 { font-size: clamp(1.75rem, 5vw, 3rem); margin: 10px 0 }
.article-page h2 { margin: 26px 0 8px }
.article-intro { color: var(--muted) }
.article-answer { padding: 14px 18px; border-left: 4px solid var(--accent); background: var(--tint); border-radius: 0 8px 8px 0 }
.article-answer p { margin: 0 }
.article-related { margin-top: 22px; border-top: 1px solid var(--line) }
.article-related li { margin-bottom: 6px }
.topic-page .posts { margin-top: 20px }
footer { border-top: 1px solid var(--line); color: var(--muted); padding-block: 20px }
@media(max-width:760px) {
  .wrap { padding-inline: 14px }
  .editorial { grid-template-columns: 1fr; gap: 22px }
  nav { gap: 10px 16px; padding-block: 9px; min-height: auto }

  .post-link { padding: 12px }
  .post-deck { font-size: .87rem }

  .tool form { grid-template-columns: repeat(2,minmax(0,1fr)) }
}



@media(max-width:760px) {

  nav a { min-height: 44px; display: inline-flex; align-items: center }
}

.site-footer { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 24px }
.footer-brand { font-weight:850; color:var(--ink); text-decoration:none }
.site-footer nav { min-height:0; gap:7px 18px; padding:0 }
.site-footer nav a { font-size:.9rem }
.site-footer [aria-current=page] { color:var(--accent); text-decoration:underline }


.article-answer { margin: 20px 0 25px; font-weight: 650 }
.article-table { overflow-x:auto; margin:20px 0; border:1px solid var(--line); border-radius:10px }
.article-table table { border-collapse:collapse; width:100%; min-width:315px; font-size:.92rem }
.article-table th, .article-table td { padding:10px; text-align:left; border-bottom:1px solid var(--line) }
.article-table thead th { background:var(--tint); color:var(--ink) }
.article-table tbody tr:last-child > * { border-bottom:0 }
.related-buttons { display:flex; gap:8px; flex-wrap:wrap }
.related-buttons a { display:inline-flex; align-items:center; min-height:44px; padding:7px 12px; border-radius:7px; background:var(--tint); color:var(--accent); font-size:.92rem; font-weight:750; text-decoration:none }
.related-buttons a:hover { text-decoration:underline }

.header-search { display:flex; gap:6px; flex:0 1 340px; min-width:0 }
.header-search input { flex:1; min-width:0 }
.header-search input::placeholder { color:var(--muted); opacity:1 }
.header-search button { white-space:nowrap }
.nav [aria-current=page] { color:var(--accent); text-decoration:underline; text-underline-offset:5px }
.topic-page .posts { margin-top:0 }
.visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0 }
@media(max-width:480px) {
  .masthead { flex-wrap:wrap; gap:5px; padding-block:9px }
  .header-search { flex-basis:100% }
}
