:root {
  --market-bg: #f8faf8;
  --market-surface: #ffffff;
  --market-soft: #eef7f4;
  --market-warm: #fff8ef;
  --market-ink: #17312e;
  --market-muted: #5a6d69;
  --market-line: #d7e5e0;
  --market-brand: #0f766e;
  --market-brand-dark: #0a5a54;
  --market-accent: #d95f49;
  --market-warning: #8a4f08;
  --market-focus: #175cd3;
  --market-radius: 20px;
  --market-shadow: 0 14px 38px rgba(23, 49, 46, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--market-bg);
  color: var(--market-ink);
  font-family: "Noto Sans KR", "Malgun Gothic", sans-serif;
  line-height: 1.7;
  word-break: keep-all;
}

a {
  color: var(--market-brand-dark);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--market-brand);
}

button,
input {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--market-focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: #132c29;
  color: #fff;
  transform: translateY(-150%);
}

.skip-link:focus {
  color: #fff;
  transform: translateY(0);
}

.market-shell {
  width: min(100% - 36px, 1080px);
  margin-inline: auto;
}

.market-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(215, 229, 224, 0.9);
  background: rgba(248, 250, 248, 0.95);
  backdrop-filter: blur(12px);
}

.market-header-inner {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.market-logo {
  color: var(--market-ink);
  font-size: 1.03rem;
  font-weight: 900;
  text-decoration: none;
}

.market-logo span {
  color: var(--market-brand);
}

.market-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.9rem;
  font-weight: 750;
}

.market-nav a {
  text-decoration: none;
}

.market-nav .home-link {
  min-height: 42px;
  padding: 8px 13px;
  border: 1px solid var(--market-line);
  border-radius: 12px;
  background: var(--market-surface);
}

.market-hero {
  padding: clamp(54px, 9vw, 92px) 0 46px;
  background:
    radial-gradient(circle at 88% 18%, rgba(15, 118, 110, 0.13), transparent 27%),
    linear-gradient(180deg, #f8faf8 0%, #edf7f4 100%);
}

.market-kicker {
  margin: 0 0 12px;
  color: var(--market-brand-dark);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.market-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.1rem, 6vw, 4rem);
  line-height: 1.16;
  letter-spacing: -0.045em;
}

.market-lead {
  max-width: 740px;
  margin: 22px 0 0;
  color: var(--market-muted);
  font-size: clamp(1rem, 2.4vw, 1.15rem);
}

.need-picker {
  margin-top: 28px;
  padding: 20px;
  border: 1px solid rgba(155, 201, 193, 0.82);
  border-radius: var(--market-radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 32px rgba(23, 49, 46, 0.07);
}

.need-picker-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.need-picker-head p,
.need-picker-head span {
  margin: 0;
}

.need-picker-head p {
  font-size: 1rem;
  font-weight: 900;
}

.need-picker-head span {
  color: var(--market-muted);
  font-size: 0.78rem;
}

.need-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.need-link {
  display: grid;
  min-height: 76px;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 14px;
  padding: 13px 15px;
  border: 1px solid var(--market-line);
  border-radius: 14px;
  background: var(--market-surface);
  color: var(--market-ink);
  text-decoration: none;
}

.need-link::after {
  content: "→";
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--market-brand);
  font-size: 1.15rem;
  font-weight: 900;
}

.need-link:hover {
  border-color: #86bbb2;
  background: var(--market-soft);
  color: var(--market-ink);
}

.need-label,
.need-result {
  display: block;
  min-width: 0;
}

.need-label {
  font-size: 0.9rem;
  font-weight: 850;
}

.need-result {
  margin-top: 2px;
  color: var(--market-muted);
  font-size: 0.78rem;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 30px;
}

.trust-chip {
  padding: 14px 16px;
  border: 1px solid var(--market-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
}

.trust-chip strong,
.trust-chip span {
  display: block;
}

.trust-chip strong {
  font-size: 0.9rem;
}

.trust-chip span {
  margin-top: 3px;
  color: var(--market-muted);
  font-size: 0.78rem;
}

.market-section {
  padding: 62px 0;
}

.market-section + .market-section {
  border-top: 1px solid var(--market-line);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.section-head h2,
.article-section h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3.8vw, 2.2rem);
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.section-head p {
  max-width: 520px;
  margin: 0;
  color: var(--market-muted);
}

.guide-grid,
.status-grid,
.rule-grid,
.decision-grid,
.source-grid {
  display: grid;
  gap: 16px;
}

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

.need-link.safety-wide,
.guide-card.safety-wide {
  grid-column: 1 / -1;
}

.guide-card.safety-wide {
  min-height: 200px;
}

.guide-card,
.rule-card,
.status-card,
.decision-card,
.source-card,
.note-card {
  border: 1px solid var(--market-line);
  border-radius: var(--market-radius);
  background: var(--market-surface);
  box-shadow: var(--market-shadow);
}

.guide-card {
  display: flex;
  min-height: 248px;
  flex-direction: column;
  padding: 24px;
  color: var(--market-ink);
  text-decoration: none;
}

.guide-card.active {
  border-color: #9bc9c1;
  background: linear-gradient(145deg, #fff 0%, #edf8f5 100%);
}

.guide-card.muted {
  box-shadow: none;
}

.card-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 15px;
  background: var(--market-soft);
  font-size: 1.35rem;
}

.guide-card h3,
.status-card h3,
.rule-card h3,
.decision-card h3,
.source-card h3 {
  margin: 18px 0 8px;
  font-size: 1.12rem;
}

.guide-card p,
.status-card p,
.rule-card p,
.decision-card p,
.source-card p {
  margin: 0;
  color: var(--market-muted);
  font-size: 0.92rem;
}

.card-action {
  margin-top: auto;
  padding-top: 18px;
  color: var(--market-brand-dark);
  font-weight: 850;
}

.badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 28px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--market-soft);
  color: var(--market-brand-dark);
  font-size: 0.75rem;
  font-weight: 850;
}

.badge.warning {
  background: #fff0dc;
  color: var(--market-warning);
}

.rule-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  counter-reset: rule;
}

.rule-card {
  position: relative;
  padding: 22px;
  box-shadow: none;
  counter-increment: rule;
}

.rule-card::before {
  content: counter(rule);
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--market-brand);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 900;
}

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

.status-card {
  padding: 22px;
  box-shadow: none;
}

.status-card h3 {
  margin-top: 12px;
}

.notice {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px;
  border: 1px solid #efcf9d;
  border-radius: 16px;
  background: var(--market-warm);
}

.notice strong {
  display: block;
  margin-bottom: 4px;
}

.notice p {
  margin: 0;
  color: #684a27;
}

.notice.danger {
  border-color: #efb9b0;
  background: #fff4f2;
}

.notice.danger p {
  color: #713128;
}

.market-footer {
  padding: 38px 0;
  background: #17312e;
  color: #d9e8e4;
}

.market-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.market-footer p {
  margin: 0;
  font-size: 0.86rem;
}

.market-footer a {
  color: #fff;
}

.breadcrumb {
  margin: 0 0 18px;
  color: var(--market-muted);
  font-size: 0.88rem;
}

.article-hero {
  padding: 48px 0 36px;
  background: linear-gradient(180deg, #f8faf8 0%, #edf7f4 100%);
}

.article-hero h1 {
  max-width: 800px;
  margin: 10px 0 0;
  font-size: clamp(2rem, 5vw, 3.35rem);
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 20px 0 0;
  color: var(--market-muted);
  font-size: 0.86rem;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 46px;
  padding: 46px 0 70px;
}

.article-main {
  min-width: 0;
}

.article-nav {
  position: sticky;
  top: 88px;
  height: fit-content;
  padding: 18px;
  border: 1px solid var(--market-line);
  border-radius: 16px;
  background: var(--market-surface);
}

.article-nav strong {
  display: block;
  margin-bottom: 8px;
}

.article-nav a {
  display: block;
  min-height: 40px;
  padding: 7px 4px;
  font-size: 0.86rem;
  text-decoration: none;
}

.article-section {
  scroll-margin-top: 88px;
}

.article-section + .article-section {
  margin-top: 58px;
  padding-top: 58px;
  border-top: 1px solid var(--market-line);
}

.article-intro {
  margin: 12px 0 24px;
  color: var(--market-muted);
}

.decision-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.decision-card,
.source-card {
  padding: 21px;
  box-shadow: none;
}

.decision-card h3,
.source-card h3 {
  margin-top: 0;
}

.decision-card ul,
.source-card ul,
.pattern-list {
  margin: 12px 0 0;
  padding-left: 20px;
}

.decision-card li,
.source-card li,
.pattern-list li {
  margin: 7px 0;
}

.trial-plan {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.trial-day {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--market-line);
  border-radius: 16px;
  background: var(--market-surface);
}

.trial-day strong {
  color: var(--market-brand-dark);
}

.trial-day p {
  margin: 0;
}

.print-sheet {
  margin-top: 24px;
  padding: 24px;
  border: 2px solid #b9d4ce;
  border-radius: var(--market-radius);
  background: var(--market-surface);
}

.print-sheet h3 {
  margin: 0 0 4px;
}

.sheet-note {
  margin: 0 0 18px;
  color: var(--market-muted);
  font-size: 0.84rem;
}

.record-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 22px;
}

.record-item {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--market-line);
}

.record-item strong {
  display: block;
  font-size: 0.88rem;
}

.write-line {
  display: block;
  height: 32px;
  border-bottom: 1px dashed #8ca49f;
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  margin-top: 18px;
}

.check-list label {
  display: flex;
  min-height: 44px;
  gap: 9px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--market-line);
  border-radius: 10px;
}

.check-list input {
  width: 20px;
  height: 20px;
  accent-color: var(--market-brand);
}

.print-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 18px;
  padding: 10px 16px;
  border: 0;
  border-radius: 12px;
  background: var(--market-brand);
  color: #fff;
  font-weight: 850;
  cursor: pointer;
}

.pattern-list {
  columns: 2;
  column-gap: 34px;
}

.pattern-list li {
  break-inside: avoid;
  margin-bottom: 14px;
}

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

.source-card a {
  font-weight: 750;
}

.disclosure {
  margin-top: 22px;
  padding: 18px 20px;
  border-left: 4px solid var(--market-brand);
  background: var(--market-soft);
}

details.disclosure > summary {
  display: flex;
  min-height: 44px;
  align-items: center;
  cursor: pointer;
}

.disclosure p {
  margin: 0;
}

.disclosure p + p {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(15, 118, 110, 0.2);
}

.disclosure-note {
  color: var(--market-muted);
  font-size: 0.86rem;
}

@media (max-width: 860px) {
  .guide-grid,
  .rule-grid,
  .decision-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-nav {
    position: static;
    order: -1;
  }
}

@media (max-width: 620px) {
  body {
    word-break: normal;
  }

  .market-shell {
    width: min(100% - 28px, 1080px);
  }

  .market-nav > a:not(.home-link) {
    display: none;
  }

  .market-hero {
    padding-top: 42px;
  }

  .trust-row,
  .need-links,
  .guide-grid,
  .status-grid,
  .rule-grid,
  .decision-grid,
  .source-grid,
  .record-grid,
  .check-list {
    grid-template-columns: 1fr;
  }

  .section-head,
  .need-picker-head,
  .market-footer-inner {
    display: grid;
    align-items: start;
  }

  .need-picker {
    padding: 16px;
  }

  .market-section {
    padding: 46px 0;
  }

  .guide-card {
    min-height: 220px;
  }

  .trial-day {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .pattern-list {
    columns: 1;
  }
}

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

@media print {
  .market-header,
  .article-nav,
  .print-button,
  .market-footer,
  .notice:not(.danger) {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  .article-hero {
    padding: 0 0 20px;
    background: #fff;
  }

  .article-layout {
    display: block;
    padding: 0;
  }

  .article-section:not(#trial) {
    display: none;
  }

  #trial {
    margin: 0;
    padding: 0;
    border: 0;
  }

  .trial-plan {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trial-day,
  .print-sheet {
    break-inside: avoid;
    box-shadow: none;
  }

  .print-sheet {
    border-color: #444;
  }
}
/* Product evidence audit */
.audit-verdict {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(230px, 0.7fr);
  gap: 18px;
  margin-bottom: 34px;
}

.verdict-main,
.verdict-side {
  padding: 24px;
  border: 1px solid var(--market-line);
  border-radius: var(--market-radius);
  background: var(--market-surface);
}

.verdict-main {
  border-color: #e5b97d;
  background: var(--market-warm);
}

.verdict-main h2,
.verdict-side h2 {
  margin: 10px 0 8px;
  font-size: 1.35rem;
}

.verdict-main p,
.verdict-side p {
  margin: 0;
  color: var(--market-muted);
}

.audit-status {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff0dc;
  color: var(--market-warning);
  font-size: 0.78rem;
  font-weight: 900;
}

.fact-table-wrap {
  overflow-x: auto;
  margin-top: 22px;
  border: 1px solid var(--market-line);
  border-radius: 16px;
  background: var(--market-surface);
}

.fact-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}

.fact-table th,
.fact-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--market-line);
  text-align: left;
  vertical-align: top;
}

.fact-table tr:last-child th,
.fact-table tr:last-child td {
  border-bottom: 0;
}

.fact-table th {
  width: 29%;
  background: var(--market-soft);
  font-size: 0.88rem;
}

.fact-table td {
  font-size: 0.92rem;
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.evidence-card {
  padding: 18px;
  border: 1px solid var(--market-line);
  border-radius: 15px;
  background: var(--market-surface);
}

.evidence-card strong,
.evidence-card span {
  display: block;
}

.evidence-card strong {
  margin: 8px 0 5px;
  font-size: 0.95rem;
}

.evidence-card span:last-child {
  color: var(--market-muted);
  font-size: 0.8rem;
}

.evidence-state {
  width: fit-content;
  min-height: 25px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
}

.evidence-state.pass {
  background: var(--market-soft);
  color: var(--market-brand-dark);
}

.evidence-state.hold {
  background: #fff0dc;
  color: var(--market-warning);
}

.audit-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.audit-list {
  margin: 0;
  padding: 22px 22px 22px 42px;
  border: 1px solid var(--market-line);
  border-radius: 16px;
  background: var(--market-surface);
}

.audit-list li + li {
  margin-top: 10px;
}

.audit-list.hold {
  border-color: #efcf9d;
  background: var(--market-warm);
}

.source-list {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.source-list li {
  padding: 18px 20px;
  border: 1px solid var(--market-line);
  border-radius: 14px;
  background: var(--market-surface);
}

.source-list strong,
.source-list span {
  display: block;
}

.source-list span {
  margin-top: 4px;
  color: var(--market-muted);
  font-size: 0.84rem;
}

.source-list a {
  font-weight: 800;
}

.audit-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 18px;
  padding: 10px 15px;
  border-radius: 12px;
  background: var(--market-brand);
  color: #fff;
  font-weight: 850;
  text-decoration: none;
}

.audit-action:hover {
  background: var(--market-brand-dark);
  color: #fff;
}

.audit-action.is-disabled,
.audit-action[aria-disabled="true"] {
  background: #64748b;
  color: #fff;
  cursor: not-allowed;
}

.status-card .card-action {
  display: inline-block;
  padding-top: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 860px) {
  .evidence-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .audit-verdict,
  .audit-columns,
  .evidence-grid {
    grid-template-columns: 1fr;
  }

  .verdict-main,
  .verdict-side {
    padding: 20px;
  }
}

@media print {
  .audit-action {
    display: none !important;
  }

  .audit-verdict,
  .evidence-grid,
  .audit-columns {
    break-inside: avoid;
  }
}
