/* One stylesheet for the preserved simple blog layout. No hero or decorative cards. */
:root {
  color-scheme: light;
  --ink: #242c27;
  --muted: #616b65;
  --green: #365c44;
  --line: #dce2dd;
  --paper: #ffffff;
  --tint: #f3f6f1;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Pretendard, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: -.025em;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
a, button, input, select { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
:focus-visible { outline: 3px solid #466d50; outline-offset: 4px; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip { position: fixed; top: -90px; left: 16px; padding: 12px 18px; background: white; z-index: 10; }
.skip:focus { top: 12px; }
.header { border-bottom: 1px solid var(--line); }
.header-inner, main, .footer-inner { width: 100%; max-width: 1120px; margin: auto; padding-left: 32px; padding-right: 32px; }
.header-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 13px; font-size: 24px; font-weight: 800; letter-spacing: -1.1px; white-space: nowrap; }
.brand-label { color: var(--muted); font-size: 12px; font-weight: 400; letter-spacing: 0; }
.header nav { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 600; }
.header nav a { display: flex; align-items: center; min-height: 48px; border-bottom: 2px solid transparent; white-space: nowrap; }
.header nav a:hover, .header nav a[aria-current='page'] { color: var(--green); border-bottom-color: var(--green); }
main { min-height: 65vh; padding-bottom: 42px; }
main:focus { outline: none; }
.preview-banner { display: flex; gap: 13px; align-items: baseline; padding: 18px 0 2px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.preview-banner strong { color: #505c53; font-weight: 700; white-space: nowrap; }
.simple-search { padding: 16px 0 34px; }
.search { display: flex; align-items: center; max-width: 680px; min-height: 50px; padding: 4px 4px 4px 14px; gap: 11px; border: 1px solid #a5b2a8; border-radius: 4px; background: white; }
.search svg { width: 19px; height: 19px; flex-shrink: 0; color: #5c6d60; }
.search input { width: 100%; min-width: 0; border: 0; background: transparent; padding: 7px 0; font-size: 16px; color: var(--ink); }
.search input::placeholder { color: #616b65; opacity: 1; }
.search input:focus { outline: none; }
.search:focus-within { outline: 2px solid #466d50; outline-offset: 2px; }
.search button, .primary { min-height: 42px; border: 0; border-radius: 3px; padding: 8px 20px; color: white; background: var(--green); font-size: 14px; font-weight: 650; white-space: nowrap; }
.search button:hover, .primary:hover { background: #294936; }
.blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 58px; align-items: start; }
.post-main { min-width: 0; }
.simple-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 0 0 13px; border-bottom: 1px solid #809383; }
.simple-section-head h1 { margin: 0; font-size: 23px; font-weight: 700; letter-spacing: -.7px; line-height: 1.5; }
.simple-section-head > a { color: var(--muted); font-size: 12px; white-space: nowrap; }
.simple-section-head > a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
.post-filters { display: flex; flex-wrap: wrap; gap: 0 24px; border-bottom: 1px solid var(--line); font-size: 13px; }
.post-filters a { display: flex; min-height: 49px; align-items: center; border-bottom: 2px solid transparent; color: var(--muted); }
.post-filters a:hover, .post-filters a[aria-current='page'] { border-bottom-color: var(--green); color: var(--green); font-weight: 700; }
.list-status { color: var(--muted); font-size: 12px; margin: 13px 0 0; }
.post-row { padding: 22px 0 21px; border-bottom: 1px solid var(--line); }
.post-category { color: #496351; font-size: 12px; line-height: 1.6; }
.post-category > span { color: var(--muted); }
.post-category > span[aria-hidden] { margin: 0 5px; }
.post-row h2 { margin: 7px 0 8px; font-size: 20px; font-weight: 650; line-height: 1.6; letter-spacing: -.55px; word-break: keep-all; overflow-wrap: anywhere; }
.post-row h2 a { display: inline-block; }
.post-row h2 a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.post-label { margin: 0; color: var(--muted); font-size: 12px; }
.simple-sidebar { padding-top: 5px; }
.simple-sidebar section { margin: 0 0 25px; padding: 0 0 24px; border-bottom: 1px solid var(--line); }
.simple-sidebar h2 { margin: 0 0 14px; font-size: 15px; font-weight: 700; }
.simple-sidebar a { color: var(--green); font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.simple-sidebar .plain-tool { font-size: 15px; font-weight: 600; }
.simple-sidebar p, .simple-sidebar li { color: var(--muted); font-size: 13px; line-height: 1.9; }
.simple-sidebar p { margin: 10px 0; }
.simple-sidebar ul { margin: 0 0 12px; padding: 0; list-style: none; }
.simple-sidebar li { margin: 3px 0; }
footer { margin-top: 0; border-top: 1px solid var(--line); background: #f7f8f6; }
.footer-inner { display: flex; gap: 26px; justify-content: space-between; align-items: flex-start; padding-top: 27px; padding-bottom: 30px; }
.footer-brand { font-size: 17px; font-weight: 750; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; font-size: 12px; padding-top: 4px; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-note { color: var(--muted); font-size: 12px; line-height: 1.9; text-align: right; margin: 0; }

/* Guide lists and article-layout previews. */
.page-head { padding: 36px 0 26px; }
.crumb { margin-bottom: 20px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.crumb a { text-decoration: underline; text-underline-offset: 4px; }
.page-head h1 { margin: 0 0 13px; font-size: 32px; line-height: 1.4; letter-spacing: -1px; word-break: keep-all; overflow-wrap: anywhere; }
.page-head p { max-width: 720px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.85; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid #becac0; border-radius: 4px; background: white; color: var(--muted); font-size: 13px; }
.chip.active { border-color: var(--green); background: var(--green); color: white; }
.results-label { margin: 26px 0 15px; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.empty { padding: 35px 24px; border: 1px solid var(--line); background: #f8faf6; border-radius: 4px; text-align: center; }
.empty-symbol { display: none; }
.empty h3 { font-size: 18px; margin: 0 0 8px; }
.empty p { color: var(--muted); font-size: 14px; margin: 0; }
.small-link, .back-link { display: inline-block; color: var(--green); font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.empty .small-link { margin-top: 18px; }
.back-link { margin-top: 26px; }
.prose { max-width: 760px; margin: auto; padding-bottom: 25px; }
.prose section { border-top: 1px solid var(--line); padding: 26px 0; }
.prose h2 { margin: 0 0 12px; font-size: 21px; line-height: 1.5; }
.prose p, .prose li { color: #4d5b52; font-size: 15px; line-height: 1.95; overflow-wrap: anywhere; }
.prose ul { padding-left: 22px; }
.template div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.template strong { font-size: 15px; }
.template p { font-size: 14px; margin: 4px 0 0; }
.article-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; border: 1px solid var(--line); background: var(--line); margin-bottom: 27px; }
.article-facts > div { padding: 18px; background: var(--tint); }
.article-facts span { display: block; color: var(--muted); font-size: 12px; }
.article-facts strong { display: block; font-size: 14px; margin-top: 6px; }
.placeholder-lines { margin: 20px 0; }
.placeholder-lines i { display: block; height: 8px; margin: 14px 0; background: #e6ebe3; }
.placeholder-lines i:last-child { width: 60%; }

/* The existing local file tool, restyled without changing its purpose. */
.tool-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(240px, 1fr); gap: 24px; align-items: start; }
.tool-layout > * { min-width: 0; }
.panel { border: 1px solid var(--line); border-radius: 5px; padding: 26px; margin-bottom: 20px; background: white; }
.panel h2 { margin: 0 0 8px; font-size: 20px; line-height: 1.5; }
.panel p { margin: 0 0 20px; color: var(--muted); font-size: 14px; }
.step-label { color: #4a654b; font-size: 12px; font-weight: 700; letter-spacing: .5px; margin-bottom: 10px; }
.drop { border: 1px dashed #8eaa91; border-radius: 4px; background: #f5f8f2; text-align: center; padding: 28px 20px; }
.drop.drag { background: #e8f0e0; border-color: var(--green); }
.drop-icon { display: block; color: var(--green); font-size: 27px; margin-bottom: 5px; }
.drop strong { display: block; margin-bottom: 6px; font-size: 16px; }
.drop p { font-size: 13px; margin: 0 0 16px; }
.file-pick { display: inline-flex; align-items: center; min-height: 44px; border: 1px solid #8fa08e; border-radius: 3px; background: white; padding: 8px 20px; font-size: 14px; font-weight: 650; cursor: pointer; }
.file-pick:focus-within { outline: 3px solid #466d50; outline-offset: 4px; }
.privacy-badge { display: flex; align-items: flex-start; gap: 7px; color: #3c6142; font-size: 13px; margin-top: 17px; }
.panel .file-limit-note { color: var(--muted); font-size: 12px; line-height: 1.85; margin: 8px 0 0; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0; }
.field { display: block; min-width: 0; font-size: 13px; font-weight: 600; }
.field input, .field select { display: block; width: 100%; min-height: 44px; border: 1px solid #a8b7aa; border-radius: 3px; background: white; margin-top: 7px; padding: 9px 10px; color: var(--ink); font-size: 16px; }
.field small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; margin-top: 6px; }
.note { padding: 15px 16px; margin-top: 14px; background: var(--tint); color: #4e6050; font-size: 13px; line-height: 1.85; border-radius: 3px; }
.side-list { padding: 0; margin: 20px 0 0; list-style: none; }
.side-list li { border-top: 1px solid var(--line); padding: 15px 0; color: var(--muted); font-size: 13px; }
.side-list strong { display: block; color: var(--ink); font-size: 14px; margin-bottom: 5px; }
.result-title { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.text-button { min-height: 44px; padding: 7px 0; border: 0; background: none; color: var(--green); font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.panel .file-name { color: var(--ink); overflow-wrap: anywhere; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; border: 1px solid var(--line); background: var(--line); margin: 18px 0; overflow: hidden; }
.fact { min-width: 0; padding: 15px; background: white; overflow-wrap: anywhere; }
.fact span { display: block; color: var(--muted); font-size: 12px; }
.fact strong { display: block; margin-top: 5px; font-size: 16px; }
.comparison-heading { font-size: 16px; margin-top: 23px; }
.check { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 14px; }
.check b { color: #32643e; min-width: 54px; font-size: 13px; }
.check.fail b { color: #923f27; }
.check.unknown b { color: #65562e; }
.check small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.error { margin-top: 15px; padding: 15px 16px; border: 1px solid #e5c1ac; border-radius: 3px; background: #fff3ea; color: #91391e; font-size: 14px; }

@media (max-width: 850px) {
  .blog-layout { grid-template-columns: minmax(0, 1fr) 200px; gap: 32px; }
  .header nav { gap: 20px; }
  .tool-layout { grid-template-columns: 1fr; }
  .tool-layout aside { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-inner { flex-wrap: wrap; }
  .footer-note { width: 100%; text-align: left; }
}

@media (max-width: 700px) {
  .header-inner, main, .footer-inner { padding-left: 20px; padding-right: 20px; }
  .header-inner { min-height: 0; padding-top: 17px; flex-wrap: wrap; gap: 8px; }
  .brand { font-size: 23px; }
  .header nav { width: 100%; gap: 10px; justify-content: space-between; font-size: 13px; }
  .header nav a { min-height: 49px; }
  .preview-banner { flex-wrap: wrap; gap: 2px; padding-top: 17px; }
  .preview-banner > span { width: 100%; }
  .simple-search { padding: 17px 0 28px; }
  .search { gap: 9px; }
  .search button { padding-left: 16px; padding-right: 16px; }
  .blog-layout { display: block; }
  .simple-section-head h1 { font-size: 22px; }
  .post-filters { gap: 0 22px; }
  .post-filters a { min-height: 48px; }
  .post-row { padding: 19px 0 20px; }
  .post-row h2 { font-size: 19px; margin: 7px 0 9px; }
  .simple-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-top: 27px; margin-top: 26px; border-top: 1px solid #9aab9c; }
  .simple-sidebar section { margin: 0; padding-bottom: 20px; }
  .simple-sidebar .site-status { grid-column: 1 / -1; border-bottom: 0; padding-bottom: 0; }
  .simple-sidebar .site-status h2 { margin-bottom: 5px; }
  .simple-sidebar .site-status p { display: inline; margin-right: 12px; }
  .simple-sidebar .site-status p br { display: none; }
  .simple-sidebar h2 { font-size: 14px; }
  .simple-sidebar .plain-tool { font-size: 14px; }
  .simple-sidebar p, .simple-sidebar li, .simple-sidebar a { font-size: 12px; }
  main { padding-bottom: 32px; }
  .footer-inner { gap: 12px 24px; padding-top: 24px; padding-bottom: 27px; }
  .footer-inner > div:first-child { width: 100%; }
  .footer-links { gap: 20px; }
  .page-head { padding: 28px 0 24px; }
  .page-head h1 { font-size: 27px; }
  .page-head p { font-size: 14px; }
  .panel { padding: 20px; }
  .panel h2 { font-size: 19px; }
  .tool-layout aside { display: block; }
  .field-grid { gap: 15px 12px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact { padding: 12px; }
  .fact strong { font-size: 14px; }
  .result-title { align-items: flex-start; flex-wrap: wrap; gap: 0 12px; }
  .article-facts { grid-template-columns: 1fr; }
}

@media (max-width: 360px) {
  .post-filters { gap: 0 15px; font-size: 12px; }
  .field-grid, .facts { grid-template-columns: 1fr; }
  .simple-sidebar { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
