/* Shared additions for the We Live in USA product sites.
   Loaded after each site's own style.css, so it only adds what the new
   landing / tool / guide pages need. */

:root {
  --ink: #15191e;
  --paper: #f6f1e8;
  --blue: #a9c7e8;
  --yellow: #ffdc55;
  --red: #ed6c5c;
  --pink: #f2c4ca;
  --sand: #efeae1;
  --line: #15191e;
}

body {
  font-family: "Huninn", "Noto Sans TC", system-ui, sans-serif;
}
html[lang="ko"] body {
  font-family: "Gowun Dodum", "Apple SD Gothic Neo", sans-serif;
}
html[lang="ja"] body {
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
}

.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
}
.skip-link:focus {
  left: 8px;
  top: 8px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  overflow: visible;
  clip: auto;
  clip-path: none;
}
.guide-menu nav a.nav-main {
  grid-column: 1 / -1;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 0;
  border-right: 0;
}
.guide-menu nav a[aria-current] {
  background: var(--yellow);
}
.guide-menu nav i {
  font: 10px "DM Mono", monospace;
}

/* ---------------------------------------------------------------- hero --- */

.product-hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.product-hero .hero-copy {
  padding: 7vw 5vw 6vw 9vw;
}
.one-liner {
  max-width: 560px;
  margin: 0 0 22px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  background: var(--yellow);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.65;
}
.product-hero h1 {
  margin: 0;
  font: 600 clamp(34px, 4.6vw, 66px)/1.06 "Bodoni Moda", "Huninn", serif;
  letter-spacing: -0.04em;
}
.product-hero h1 em {
  font-style: italic;
}
html[lang="ko"] .product-hero h1 {
  font-family: "Gowun Dodum", "Apple SD Gothic Neo", sans-serif;
  font-size: clamp(26px, 3.5vw, 46px);
  line-height: 1.3;
  letter-spacing: -0.015em;
}
html[lang="ko"] .product-hero h1 em {
  font-style: normal;
  display: block;
}
.product-hero .intro {
  max-width: 560px;
  margin: 24px 0 28px;
  line-height: 1.85;
  color: #40454b;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}
.product-hero .statline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 42px;
  font: 10px "DM Mono", monospace;
}
.product-hero .statline i {
  width: 30px;
  border-top: 1px solid var(--line);
}
.product-hero .statline b {
  font-weight: 500;
}
.product-hero .hero-art {
  position: relative;
  overflow: hidden;
  min-height: 440px;
  padding: 6vw;
  background: var(--blue);
  border-left: 1px solid var(--line);
}
.product-hero .hero-art > p {
  margin: 0;
  font: 600 clamp(48px, 6.6vw, 96px)/0.8 "Bodoni Moda", serif;
  letter-spacing: -0.07em;
}
.product-hero .cover {
  position: absolute;
  right: 11%;
  bottom: 10%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: min(270px, 58%);
  aspect-ratio: 3/4;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 10px 10px 0 var(--ink);
}
.product-hero .cover small {
  font: 10px "DM Mono", monospace;
}
.product-hero .cover strong {
  font: 68px "Bodoni Moda", serif;
}
.product-hero .cover em {
  font: 600 16px/1.15 "Bodoni Moda", serif;
}

/* ----------------------------------------------------------- sections --- */

.page-hero {
  padding: 6vw 9vw 4vw;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  margin: 0 0 8px;
  font: 600 clamp(28px, 4vw, 54px)/1.12 "Bodoni Moda", "Huninn", serif;
  letter-spacing: -0.035em;
}
html[lang="ko"] .page-hero h1 {
  font-family: "Gowun Dodum", "Apple SD Gothic Neo", sans-serif;
  font-size: clamp(23px, 3.2vw, 40px);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.page-hero .intro {
  max-width: 680px;
  margin: 18px 0 24px;
  line-height: 1.85;
  color: #40454b;
}
.page-hero .eyebrow a {
  color: inherit;
}
.tool-hero {
  background: var(--sand);
}
.guides-hero {
  background: #eef3f7;
}
.guide-hero {
  background: var(--paper);
}
.legal-hero {
  background: #eef3f7;
}

.roles,
.tool-teaser,
.guide-section-list,
.official,
.tracker,
.legal-body,
.related,
.takeaway {
  padding: 6vw 9vw;
  border-bottom: 1px solid var(--line);
}
.section-heading {
  max-width: 700px;
}
.section-heading h2 {
  margin: 0 0 14px;
  font: 600 clamp(26px, 3.4vw, 46px)/1.12 "Bodoni Moda", "Huninn", serif;
  letter-spacing: -0.035em;
}
html[lang="ko"] .section-heading h2 {
  font-family: "Gowun Dodum", "Apple SD Gothic Neo", sans-serif;
  font-size: clamp(22px, 2.9vw, 36px);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.section-heading > p:last-child {
  margin: 0;
  line-height: 1.8;
  color: #4c5156;
}

.role-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 36px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.role-card {
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.role-card:nth-child(1) {
  background: var(--blue);
}
.role-card:nth-child(2) {
  background: var(--pink);
}
.role-card:nth-child(3) {
  background: var(--yellow);
}
.role-card:nth-child(4) {
  background: var(--paper);
}
.role-no {
  font: 11px "DM Mono", monospace;
}
.role-card h3 {
  margin: 18px 0 12px;
  font-size: 19px;
  line-height: 1.5;
}
.role-card p {
  flex: 1;
  margin: 0 0 20px;
  line-height: 1.8;
  font-size: 14px;
}
.role-card a {
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
}

.how-list {
  max-width: 700px;
  margin: 24px 0 26px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.how-list li {
  padding: 12px 0 12px 26px;
  border-bottom: 1px solid #d8d2c7;
  line-height: 1.75;
  font-size: 14px;
  position: relative;
}
.how-list li::before {
  content: "✓";
  position: absolute;
  left: 2px;
  font-weight: 800;
}

/* ---------------------------------------------------------- tracker ----- */

.doc-form {
  max-width: 820px;
  padding: 26px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.doc-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  font-weight: 800;
}
.doc-form input,
.doc-form select {
  padding: 11px 12px;
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
  font-weight: 400;
  font-size: 15px;
}
.doc-form button {
  cursor: pointer;
  font-family: inherit;
}
.doc-panel {
  max-width: 820px;
  margin-top: 34px;
}
.doc-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: var(--yellow);
}
.doc-bar p {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.6;
}
.doc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.doc-actions .button {
  cursor: pointer;
  font-family: inherit;
}
.hint {
  margin: 12px 0;
  font-size: 12px;
  color: #62676c;
}
.doc-empty {
  margin: 20px 0 0;
  padding: 24px;
  border: 1px dashed #9aa0a6;
  line-height: 1.8;
  color: #62676c;
  font-size: 14px;
}
.doc-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.doc-item {
  position: relative;
  padding: 18px 110px 18px 16px;
  border-bottom: 1px solid var(--line);
  border-left: 6px solid transparent;
}
.doc-item.past {
  border-left-color: var(--red);
  background: #fdf0ee;
}
.doc-item.soon {
  border-left-color: #e2a12f;
  background: #fdf8ec;
}
.doc-item.near {
  border-left-color: var(--blue);
}
.doc-item.ok {
  border-left-color: #9fbf9c;
}
.doc-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
}
.doc-head b {
  font-size: 17px;
}
.doc-status {
  font: 700 12px "DM Mono", monospace;
  padding: 3px 8px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.doc-item.past .doc-status {
  background: var(--red);
  color: #fff;
}
.doc-meta {
  margin: 6px 0 0;
  font: 12px "DM Mono", monospace;
  color: #62676c;
}
.doc-who,
.doc-note {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.75;
  color: #43484d;
}
.doc-who b {
  display: block;
  font: 700 10px "DM Mono", monospace;
  letter-spacing: 0.1em;
  margin-bottom: 2px;
}
.doc-remove {
  position: absolute;
  top: 16px;
  right: 14px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
}
.doc-remove:hover {
  background: var(--red);
  color: #fff;
}

/* ------------------------------------------------------------ official --- */

.official-list {
  max-width: 820px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.official-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.official-list a {
  color: inherit;
}
.official-list span {
  font-size: 13px;
  color: #5a5f64;
  line-height: 1.6;
}

/* -------------------------------------------------------------- guides --- */

.guide-grid,
.guide-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  margin-top: 34px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.guide-list {
  margin-top: 0;
}
.guide-card {
  padding: 28px 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.guide-card h2,
.guide-card h3 {
  margin: 14px 0 12px;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.45;
}
.guide-card a {
  color: inherit;
}
.guide-card h2 a,
.guide-card h3 a {
  text-decoration: none;
}
.guide-card h2 a:hover,
.guide-card h3 a:hover {
  text-decoration: underline;
}
.guide-card p {
  line-height: 1.8;
  font-size: 14px;
  color: #4c5156;
}
.guide-section-list .button {
  margin-top: 26px;
}

.guide-toc {
  max-width: 640px;
  margin-top: 24px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.guide-toc ol {
  margin: 0;
  padding-left: 20px;
  line-height: 2;
  font-size: 14px;
}
.guide-toc a {
  color: inherit;
}

.guide-section {
  padding: 4vw 9vw;
  border-bottom: 1px solid var(--line);
}
.guide-section:nth-of-type(even) {
  background: #fbf7f0;
}
.guide-section h2 {
  margin: 0 0 18px;
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.4;
}
.guide-section p {
  max-width: 760px;
  margin: 0 0 16px;
  line-height: 1.9;
  color: #3d4247;
}
.ask-list {
  max-width: 760px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  background: var(--paper);
}
.ask-list li {
  position: relative;
  padding: 13px 18px 13px 38px;
  border-bottom: 1px solid #d8d2c7;
  line-height: 1.75;
  font-size: 14px;
}
.ask-list li:last-child {
  border-bottom: 0;
}
.ask-list li::before {
  content: "→";
  position: absolute;
  left: 16px;
}
.ask-list .ask-head {
  padding-left: 18px;
  background: var(--ink);
  color: var(--paper);
  font: 700 10px "DM Mono", monospace;
  letter-spacing: 0.14em;
}
.ask-list .ask-head::before {
  content: "";
}

.takeaway {
  background: var(--yellow);
}
.takeaway p:last-child {
  max-width: 760px;
  margin: 0;
  font-size: 17px;
  line-height: 1.85;
}
.related ul {
  max-width: 760px;
  margin: 18px 0 24px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.related li {
  border-bottom: 1px solid var(--line);
}
.related a {
  display: block;
  padding: 15px 0;
  color: inherit;
  line-height: 1.6;
}

/* ----------------------------------------------------- ads / notices ----- */

.ad-slot {
  display: block;
  margin: 0;
  padding: 4vw 9vw;
  border-bottom: 1px solid var(--line);
  background: var(--sand);
}
.ad-label {
  margin: 0 0 10px;
  font: 700 10px "DM Mono", monospace;
  letter-spacing: 0.14em;
  color: #6a6f74;
}
.ad-box {
  display: grid;
  place-items: center;
  min-height: 110px;
  padding: 20px;
  border: 1px dashed #9aa0a6;
  background: var(--paper);
}
.ad-box p {
  margin: 0;
  font-size: 13px;
  color: #6a6f74;
  text-align: center;
}
.disclaimer {
  padding: 4vw 9vw;
  border-bottom: 1px solid var(--line);
  background: var(--sand);
}
.disclaimer p {
  max-width: 780px;
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.85;
  color: #4c5156;
}
.disclaimer p:last-child {
  margin-bottom: 0;
}
.legal-body p {
  max-width: 760px;
  margin: 0 0 18px;
  line-height: 1.9;
  color: #3d4247;
}
.legal-body p:last-child {
  margin-bottom: 0;
}

/* ----------------------------------------------------------------- cta --- */

.cta-block {
  padding: 6vw 9vw;
  background: var(--ink);
  color: var(--paper);
}
.cta-block h2 {
  margin: 0 0 30px;
  font: 600 clamp(24px, 3vw, 40px)/1.15 "Bodoni Moda", "Huninn", serif;
  letter-spacing: -0.03em;
}
html[lang="ko"] .cta-block h2 {
  font-family: "Gowun Dodum", "Apple SD Gothic Neo", sans-serif;
  font-size: clamp(21px, 2.6vw, 32px);
}
.cta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--paper);
}
.cta-grid article {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-right: 1px solid var(--paper);
}
.cta-grid article:last-child {
  border-right: 0;
}
.cta-grid h3 {
  margin: 0 0 12px;
  font-size: 18px;
}
.cta-grid p {
  flex: 1;
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.8;
  color: #d9d4cb;
}
.cta-grid .button {
  align-self: flex-start;
}

/* -------------------------------------------------------------- footer --- */

footer {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
  padding: 38px 4vw;
  background: var(--ink);
  color: var(--paper);
  align-items: start;
}
footer a {
  color: inherit;
}
.foot-brand p {
  margin: 12px 0 0;
  max-width: 380px;
  font-size: 13px;
  line-height: 1.8;
  color: #cfcac1;
}
.foot-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}
.foot-langs p {
  margin: 0 0 10px;
  font: 10px "DM Mono", monospace;
  letter-spacing: 0.1em;
  color: #cfcac1;
}
.foot-langs div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}
.foot-langs span[aria-current] {
  opacity: 0.55;
}

/* -------------------------------------------------------------- mobile --- */

@media (max-width: 760px) {
  .product-hero {
    grid-template-columns: 1fr;
  }
  .product-hero .hero-copy {
    padding: 54px 24px 44px;
  }
  .product-hero .hero-art {
    min-height: 380px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .page-hero,
  .roles,
  .tool-teaser,
  .guide-section-list,
  .official,
  .tracker,
  .legal-body,
  .related,
  .takeaway,
  .guide-section,
  .ad-slot,
  .disclaimer,
  .cta-block {
    padding-left: 24px;
    padding-right: 24px;
  }
  .page-hero {
    padding-top: 48px;
    padding-bottom: 36px;
  }
  .roles,
  .tool-teaser,
  .guide-section-list,
  .official,
  .tracker,
  .legal-body,
  .related,
  .takeaway,
  .guide-section,
  .ad-slot,
  .disclaimer,
  .cta-block {
    padding-top: 44px;
    padding-bottom: 44px;
  }
  .field-row {
    grid-template-columns: 1fr;
  }
  .doc-item {
    padding-right: 16px;
    padding-bottom: 58px;
  }
  .doc-remove {
    top: auto;
    bottom: 14px;
    right: 14px;
  }
  .cta-grid {
    grid-template-columns: 1fr;
  }
  .cta-grid article {
    border-right: 0;
    border-bottom: 1px solid var(--paper);
  }
  .cta-grid article:last-child {
    border-bottom: 0;
  }
  .official-list li {
    flex-direction: column;
    gap: 4px;
  }
  footer {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------- print --- */

@media print {
  .site-header,
  .skip-link,
  .guide-toc,
  .cta-block,
  .ad-slot,
  .related,
  .doc-actions,
  .doc-form,
  .doc-remove,
  .hero-actions,
  footer {
    display: none !important;
  }
  body {
    background: #fff;
    font-size: 11pt;
  }
  .page-hero,
  .guide-section,
  .takeaway,
  .disclaimer,
  .tracker,
  .official,
  .legal-body {
    padding: 0 0 12pt;
    border: 0;
    background: #fff !important;
  }
  .guide-section,
  .doc-item {
    break-inside: avoid;
  }
  .doc-item {
    padding: 8pt 0;
    border-left: 0;
    border-bottom: 1px solid #999;
  }
  .doc-bar {
    border: 0;
    padding: 0 0 8pt;
    background: #fff;
  }
  a[href]::after {
    content: "";
  }
}

/* --------------------------------------------------- checklist widget ---- */

.checklist-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 24px 0 10px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.bar-progress {
  flex: 1 1 260px;
}
.bar-progress p {
  margin: 0 0 9px;
  font-size: 13px;
}
.bar-progress b {
  font: 600 22px "DM Mono", monospace;
}
.meter {
  height: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.meter i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--red);
  transition: width 0.25s;
}
.bar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.bar-actions .button {
  cursor: pointer;
  font-family: inherit;
}
.save-note {
  max-width: 680px;
  margin: 0;
  font-size: 12px;
  line-height: 1.75;
  color: #55595e;
}

.grp {
  padding: 4vw 9vw;
  border-bottom: 1px solid var(--line);
}
.grp:nth-of-type(even) {
  background: #fbf7f0;
}
.grp-head {
  max-width: 700px;
  margin-bottom: 22px;
}
.grp-head h2 {
  margin: 0;
  font: 600 clamp(22px, 2.7vw, 34px)/1.15 "Bodoni Moda", "Huninn", serif;
  letter-spacing: -0.03em;
}
html[lang="ko"] .grp-head h2 {
  font-family: "Gowun Dodum", "Apple SD Gothic Neo", sans-serif;
  font-size: clamp(19px, 2.3vw, 27px);
  line-height: 1.3;
}
.items {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.item {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.item label {
  display: grid;
  grid-template-columns: 26px 40px 1fr;
  align-items: start;
  gap: 12px;
  cursor: pointer;
}
.item .chk {
  grid-column: 1;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--red);
  cursor: pointer;
}
.item label .num {
  grid-column: 2;
  font: 500 13px "DM Mono", monospace;
  padding-top: 2px;
}
.item label .task {
  grid-column: 3;
  font-size: 16px;
  line-height: 1.65;
}
.item.done label .task {
  text-decoration: line-through;
  opacity: 0.55;
}

/* ------------------------------------------------------- calc results ---- */

.result-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.result-card {
  padding: 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.result-card p {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}
.result-card strong {
  font: 600 clamp(22px, 2.6vw, 30px) "DM Mono", monospace;
}
.result-card.primary {
  background: var(--yellow);
}
.result-card.ok {
  background: #eaf2e9;
}
.result-card.near {
  background: #fdf8ec;
}
.result-card.soon {
  background: #fdf0ee;
}
.ratio-note {
  max-width: 700px;
  margin: 18px 0 24px;
  padding: 14px 16px;
  border-left: 4px solid var(--ink);
  background: var(--sand);
  font-size: 14px;
  line-height: 1.8;
}
.breakdown {
  max-width: 520px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.breakdown li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid #d8d2c7;
  font-size: 14px;
}
.breakdown b {
  font: 500 14px "DM Mono", monospace;
  white-space: nowrap;
}
.result-actions {
  margin-top: 26px;
}

@media (max-width: 760px) {
  .grp {
    padding: 40px 24px;
  }
  .checklist-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .checklist-bar .bar-progress {
    flex: 0 0 auto;
  }
  .bar-actions .button {
    flex: 1;
    justify-content: center;
  }
  .item label {
    grid-template-columns: 24px 1fr;
    gap: 10px;
  }
  .item label .num {
    grid-column: 2;
    grid-row: 1;
    padding-top: 0;
  }
  .item label .task {
    grid-column: 2;
    grid-row: 2;
    font-size: 15px;
  }
}

@media print {
  .checklist-bar .bar-actions,
  .result-actions {
    display: none !important;
  }
  .grp {
    padding: 0 0 10pt;
    background: #fff !important;
    border: 0;
  }
  .item {
    break-inside: avoid;
    padding: 6pt 0;
  }
  .meter {
    display: none;
  }
}

/* ---------------------------------------------------- move: timeline ----- */

.inline-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px;
  margin-top: 24px;
}
.inline-form label {
  flex: 0 1 260px;
}
.tl-empty {
  max-width: 820px;
  margin: 4vw 9vw;
}
.tl-group {
  padding: 4vw 9vw;
  border-bottom: 1px solid var(--line);
}
.tl-group:nth-of-type(even) {
  background: #fbf7f0;
}
.tl-group-head h2 {
  margin: 0 0 18px;
  font: 600 clamp(20px, 2.4vw, 30px)/1.2 "Bodoni Moda", "Huninn", serif;
  letter-spacing: -0.03em;
}
html[lang="ko"] .tl-group-head h2 {
  font-family: "Gowun Dodum", "Apple SD Gothic Neo", sans-serif;
  font-size: clamp(18px, 2.1vw, 25px);
  line-height: 1.35;
}
.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: start;
  gap: 12px;
  padding: 16px 0 16px 12px;
  border-left: 6px solid transparent;
}
.tl-item.past {
  border-left-color: var(--red);
  background: #fdf0ee;
}
.tl-item.soon {
  border-left-color: #e2a12f;
  background: #fdf8ec;
}
.tl-item.near {
  border-left-color: var(--blue);
}
.tl-item.ok {
  border-left-color: #9fbf9c;
}
.tl-item > .chk {
  grid-column: 1;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--red);
  cursor: pointer;
}
.tl-item label {
  grid-column: 2;
  display: block;
  cursor: pointer;
}
.tl-when {
  display: block;
  margin-bottom: 5px;
  font: 500 11px "DM Mono", monospace;
  color: #62676c;
}
.tl-item .task {
  display: block;
  font-size: 16px;
  line-height: 1.65;
}
.tl-countdown {
  grid-column: 3;
  align-self: start;
  padding: 4px 9px;
  border: 1px solid var(--line);
  background: var(--paper);
  font: 700 12px "DM Mono", monospace;
  white-space: nowrap;
}
.tl-item.past .tl-countdown {
  background: var(--red);
  color: #fff;
}
.tl-item.done .task {
  text-decoration: line-through;
  opacity: 0.55;
}

/* -------------------------------------------------------- move: cost ----- */

.cost-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}
.cost-method {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  background: #fff;
}
.cost-method legend {
  padding: 3px 9px;
  border: 1px solid var(--line);
  background: var(--yellow);
  font-size: 13px;
  font-weight: 800;
}
.cost-method label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 800;
}
.result-card .diff {
  display: block;
  margin-top: 8px;
  font: 500 12px "DM Mono", monospace;
  color: #62676c;
}

@media (max-width: 760px) {
  .tl-group {
    padding: 40px 24px;
  }
  .tl-empty {
    margin: 40px 24px;
  }
  .tl-item {
    grid-template-columns: 24px 1fr;
    padding-right: 0;
  }
  .tl-countdown {
    grid-column: 2;
    justify-self: start;
    margin-top: 8px;
  }
  .cost-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  .inline-form,
  .tl-empty {
    display: none !important;
  }
  .tl-group {
    padding: 0 0 10pt;
    background: #fff !important;
    border: 0;
  }
  .tl-item {
    break-inside: avoid;
    padding: 6pt 0;
    border-left: 0;
    background: #fff !important;
  }
}

/* --------------------------------------------------- tools: converters -- */

.conv-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.conv-group {
  padding: 26px 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.conv-group h2 {
  margin: 0 0 18px;
  font: 600 clamp(19px, 2.1vw, 26px)/1.2 "Bodoni Moda", "Huninn", serif;
  letter-spacing: -0.03em;
}
html[lang="ko"] .conv-group h2 {
  font-family: "Gowun Dodum", "Apple SD Gothic Neo", sans-serif;
  font-size: clamp(17px, 1.9vw, 22px);
}
.conv {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 10px;
  margin-bottom: 14px;
}
.conv label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  min-width: 0;
}
.conv input {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
  font-weight: 400;
  font-size: 16px;
}
.conv-eq {
  padding-bottom: 11px;
  font: 600 16px "DM Mono", monospace;
}
.conv-note {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid #d8d2c7;
  font-size: 13px;
  line-height: 1.75;
  color: #5a5f64;
}

.preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 0;
}
.preset-row .button {
  cursor: pointer;
  font-family: inherit;
  padding: 10px 14px;
}

/* --------------------------------------------------- tools: cross-site -- */

.cross-list {
  max-width: 900px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.cross-list li {
  border-bottom: 1px solid var(--line);
}
.cross-list a {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px 4px;
  color: inherit;
  text-decoration: none;
}
.cross-list a:hover {
  background: var(--yellow);
}
.site-tag {
  font: 700 10px "DM Mono", monospace;
  letter-spacing: 0.1em;
  padding: 4px 6px;
  border: 1px solid var(--line);
  text-align: center;
}
.cross-list b {
  display: block;
  font-size: 16px;
  line-height: 1.5;
}
.cross-text {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.6;
  color: #5a5f64;
}
.cross-list a > b {
  grid-column: 2;
}
.cross-arrow {
  font-size: 18px;
}

@media (max-width: 760px) {
  .conv-group {
    padding: 30px 24px;
  }
  .conv {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .conv-eq {
    display: none;
  }
  .cross-list a {
    grid-template-columns: 56px 1fr;
    row-gap: 6px;
  }
  .cross-arrow {
    display: none;
  }
}

@media print {
  .preset-row,
  .cross-list {
    display: none !important;
  }
  .conv-wrap {
    border: 0;
  }
  .conv-group {
    break-inside: avoid;
    border: 0;
    padding: 0 0 10pt;
  }
}

/* --------------------------------------------------- money: cash flow ---- */

.cf-block {
  margin: 0 0 20px;
  padding: 18px;
  border: 1px solid var(--line);
  background: #fff;
}
.cf-block legend {
  padding: 3px 9px;
  border: 1px solid var(--line);
  background: var(--yellow);
  font-size: 13px;
  font-weight: 800;
}
.cf-block .field-row:last-child {
  margin-bottom: 0;
}
.checkbox-label {
  flex-direction: row !important;
  align-items: center;
  gap: 10px !important;
  padding-top: 22px;
}
.checkbox-label input {
  width: 20px;
  height: 20px;
  padding: 0;
  accent-color: var(--red);
  cursor: pointer;
}
.autopay-tag {
  display: inline-block;
  padding: 2px 7px;
  border: 1px solid var(--line);
  background: var(--blue);
  font: 700 10px "DM Mono", monospace;
  letter-spacing: 0.06em;
}
