.tan-site {
  --tan-bg: #090b10;
  --tan-panel: #15171d;
  --tan-raised: #1c2028;
  --tan-gold: #d4af65;
  --tan-title: #fff;
  --tan-text: #a6aab3;
  --tan-reading-color: #c5cad3;
  --tan-reading-size: 1rem;
  --tan-reading-leading: 1.85;
  --tan-line: #30343c;
  --tan-width: 1240px;
  --tan-space: clamp(1.125rem, 4vw, 3.5rem);
  margin: 0;
  min-width: 0;
  background: var(--tan-bg);
  color: var(--tan-text);
  color-scheme: dark;
  font: 1rem/1.75 "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.tan-site *, .tan-site *::before, .tan-site *::after { box-sizing: border-box; }
.tan-site h1, .tan-site h2, .tan-site h3, .tan-site h4 { margin: 0; color: var(--tan-title); line-height: 1.2; }
.tan-site p { margin: 0; }
.tan-site img { display: block; max-width: 100%; height: auto; }
.tan-site a { color: var(--tan-gold); text-underline-offset: .24em; }
.tan-site a:hover { color: #f2d18d; }
.tan-site button { color: inherit; font: inherit; }
.tan-site :focus-visible { outline: 2px solid var(--tan-gold); outline-offset: 5px; }
.tan-site [id] { scroll-margin-top: 6rem; }
.tan-site .tan-shell { width: min(var(--tan-width), calc(100% - var(--tan-space) * 2)); margin-inline: auto; }
.tan-skip { position: fixed; z-index: 100; left: 1rem; top: 1rem; padding: .75rem 1rem; background: var(--tan-bg); transform: translateY(-200%); }
.tan-skip:focus { transform: none; }

.tan-header { position: relative; z-index: 10; border-bottom: 1px solid #24262d; background: #0c0e13; }
.tan-header > .tan-shell { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.85rem; }
.tan-brand { display: inline-flex; align-items: center; flex: none; text-decoration: none; }
.tan-brand img { width: 158px; }
.tan-nav { display: flex; align-items: center; gap: clamp(1rem, 2.1vw, 2.1rem); }
.tan-nav a { text-decoration: none; color: #e1e2e6; font-size: .89rem; font-weight: 650; }
.tan-nav a:hover, .tan-nav [aria-current="page"] { color: var(--tan-gold); }
.tan-nav-item { display: flex; align-items: center; gap: .35rem; position: relative; }
.tan-nav-group summary { display: grid; place-items: center; min-width: 1.35rem; min-height: 2.55rem; color: var(--tan-gold); cursor: pointer; list-style: none; }
.tan-nav-group summary::-webkit-details-marker, .tan-faq summary::-webkit-details-marker { display: none; }
.tan-nav-group summary::after { width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); content: ""; }
.tan-nav-group[open] summary::after { transform: translateY(1px) rotate(225deg); }
.tan-nav-links { position: absolute; z-index: 3; top: calc(100% + .15rem); right: -.65rem; display: grid; min-width: 12rem; padding: .6rem; border: 1px solid var(--tan-line); border-radius: .6rem; background: #171a21; box-shadow: 0 12px 28px #0008; }
.tan-nav-links a { display: block; padding: .6rem .75rem; border-radius: .3rem; }
.tan-nav-links a:hover { background: var(--tan-raised); }
.tan-menu-toggle { display: none; }
.tan-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.tan-eyebrow { display: flex; align-items: center; gap: .7rem; color: var(--tan-gold); font-size: .85rem; font-weight: 800; letter-spacing: .075em; }
.tan-eyebrow::before { display: inline-block; flex: none; width: 1.8rem; height: 1px; background: currentColor; content: ""; }
.tan-home-hero { padding: clamp(2.8rem, 6.15vw, 6.35rem) 0 clamp(2.75rem, 5.8vw, 6rem); border-bottom: 1px solid #25272e; background: radial-gradient(ellipse at 68% 20%, #191a1b 0%, transparent 57%), var(--tan-bg); }
.tan-hero-grid { display: grid; grid-template-columns: minmax(0, .97fr) minmax(0, 1.03fr); align-items: center; gap: clamp(2.05rem, 5vw, 5rem); }
.tan-hero-copy { display: grid; gap: 1.4rem; }
.tan-hero-copy h1 { font-size: clamp(2.25rem, 5vw, 4.4rem); font-weight: 850; line-height: 1.12; letter-spacing: -.075em; }
.tan-hero-copy h1 span { color: var(--tan-gold); }
.tan-hero-copy p { max-width: 34rem; color: #babdc6; font-size: clamp(1rem, 1.42vw, 1.16rem); line-height: 1.8; }
.tan-hero-visual { position: relative; min-width: 0; margin: 0; }
.tan-hero-visual img { width: 100%; aspect-ratio: 1.37; object-fit: cover; border: 1px solid #473c2d; border-radius: .85rem; background: #1a1b20; box-shadow: 0 30px 55px #0008; }
.tan-hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; padding-top: .25rem; }
.tan-site .tan-button { display: inline-flex; min-height: 3rem; align-items: center; justify-content: center; padding: .62rem 1rem; border: 1px solid var(--tan-gold); border-radius: .37rem; background: var(--tan-gold); color: #14100a; font-size: .91rem; font-weight: 800; text-decoration: none; }
.tan-site .tan-button:hover { background: #f0c97e; color: #14100a; }
.tan-site .tan-button-secondary { border-color: #594a34; background: transparent; color: #ead2a3; }
.tan-site .tan-button-secondary:hover { background: #251e14; color: #f2d18d; }

.tan-intro { padding: clamp(1.85rem, 4vw, 3.35rem) 0; border-bottom: 1px solid #25272e; background: #0f1117; }
.tan-intro .tan-content-section { grid-template-columns: minmax(0, .52fr) minmax(0, 1fr); align-items: start; column-gap: clamp(1.3rem, 5vw, 4.75rem); }
.tan-intro h2 { grid-column: 1; grid-row: 1 / span 3; }
.tan-intro .tan-content-section > :not(h2) { grid-column: 2; }
.tan-feature { padding: clamp(2.4rem, 5.1vw, 4.35rem) 0; border-bottom: 1px solid #24262d; }
.tan-section-heading { display: flex; align-items: end; justify-content: space-between; gap: .75rem 2rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.tan-section-heading h2 { margin-top: .5rem; font-size: clamp(1.72rem, 3.2vw, 2.65rem); letter-spacing: -.065em; }
.tan-section-heading p { max-width: 29rem; }
.tan-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.tan-site .tan-card { display: grid; align-content: start; gap: .8rem; min-height: 100%; padding: 1.45rem; border: 1px solid var(--tan-line); border-radius: .65rem; background: var(--tan-panel); color: var(--tan-text); text-decoration: none; transition: border-color .18s ease, background .18s ease; }
.tan-site .tan-card:hover { border-color: var(--tan-gold); background: #1a1d25; color: #c1c4cd; }
.tan-card h3 { font-size: 1.16rem; letter-spacing: -.04em; }
.tan-card p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; color: var(--tan-reading-color); font-size: var(--tan-reading-size); line-height: var(--tan-reading-leading); }
.tan-card-mark { display: grid; align-items: center; justify-items: center; width: 2.65rem; aspect-ratio: 1; border: 1px solid #5c4d35; border-radius: .5rem; background: #211d17; color: var(--tan-gold); font-size: 1.05rem; font-weight: 850; }
.tan-tag { color: var(--tan-gold); font-size: .8rem; font-weight: 740; }

.tan-breadcrumb { padding: 1.15rem 0; font-size: .88rem; }
.tan-breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.tan-breadcrumb li + li::before { margin-right: .45rem; color: #6c727e; content: "/"; }
.tan-breadcrumb a { color: #b4b8c2; text-decoration: none; }
.tan-breadcrumb [aria-current="page"] { color: var(--tan-gold); }
.tan-article-hero { border-bottom: 1px solid var(--tan-line); }
.tan-article-hero .tan-hero-grid { padding-block: 1.75rem 3rem; }
.tan-article-hero .tan-hero-copy h1 { font-size: clamp(2.1rem, 4.4vw, 3.78rem); }
.tan-article-hero .tan-hero-visual img { aspect-ratio: 1.75; }
.tan-content-layout { display: grid; grid-template-columns: minmax(0, 1fr) clamp(11rem, 21%, 17rem); gap: clamp(2rem, 5.5vw, 6rem); align-items: start; padding-block: clamp(2.2rem, 5vw, 4.5rem); }
.tan-content { display: grid; gap: clamp(2.25rem, 5vw, 4rem); min-width: 0; }
.tan-content-section { display: grid; gap: 1rem; min-width: 0; }
.tan-content-section + .tan-content-section { padding-top: clamp(1.8rem, 3.7vw, 3rem); border-top: 1px solid #2a2d35; }
.tan-content-section h2, .tan-faq h2, .tan-sources h2, .tan-related h2 { font-size: clamp(1.5rem, 2.75vw, 2.15rem); letter-spacing: -.055em; }
.tan-content-section p, .tan-faq p, .tan-checks li { color: var(--tan-reading-color); font-size: var(--tan-reading-size); line-height: var(--tan-reading-leading); }
.tan-section-figure { margin: .3rem 0 0; }
.tan-section-figure img { width: 100%; aspect-ratio: 2.05; object-fit: cover; border: 1px solid #38363a; border-radius: .6rem; }
.tan-checks { display: grid; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.tan-checks li { position: relative; padding: .75rem .85rem .75rem 2.55rem; border: 1px solid #2b2e36; border-radius: .4rem; background: var(--tan-panel); }
.tan-checks li::before { position: absolute; left: .85rem; color: var(--tan-gold); font-weight: 800; content: "✓"; }
.tan-table-wrap { min-width: 0; overflow: auto; border: 1px solid var(--tan-line); border-radius: .45rem; }
.tan-table-wrap table { width: 100%; margin: 0; border-collapse: collapse; text-align: left; color: var(--tan-reading-color); font-size: var(--tan-reading-size); line-height: var(--tan-reading-leading); }
.tan-table-wrap th, .tan-table-wrap td { padding: .8rem .9rem; vertical-align: top; border-bottom: 1px solid var(--tan-line); }
.tan-table-wrap th { background: var(--tan-raised); color: var(--tan-gold); }
.tan-table-wrap td { background: var(--tan-panel); }
.tan-table-wrap tr:last-child td { border-bottom: 0; }
.tan-toc { position: sticky; top: 2rem; min-width: 0; padding: 1.25rem 1.15rem; border: 1px solid var(--tan-line); border-radius: .62rem; background: var(--tan-panel); }
.tan-toc h2 { font-size: 1rem; }
.tan-toc ul { display: grid; gap: .2rem; margin: .85rem 0 0; padding: 0; list-style: none; }
.tan-toc a { display: block; padding: .23rem 0; color: #b3b6c0; font-size: .86rem; line-height: 1.45; text-decoration: none; }
.tan-toc a:hover { color: var(--tan-gold); }
.tan-faq { display: grid; gap: .65rem; }
.tan-faq h2 { margin-bottom: .65rem; }
.tan-faq details { border: 1px solid #30343c; border-radius: .52rem; background: var(--tan-panel); }
.tan-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .95rem 1.12rem; color: #e0e2e9; font-weight: 750; cursor: pointer; list-style: none; }
.tan-faq summary::after { flex: none; color: var(--tan-gold); font-size: 1.2rem; content: "+"; }
.tan-faq details[open] summary::after { content: "−"; }
.tan-faq details p { padding: 0 1.12rem 1rem; }
.tan-sources { padding: 1.2rem; border: 1px solid var(--tan-line); border-radius: .5rem; background: #121419; }
.tan-sources h2 { font-size: 1.2rem; }
.tan-sources p, .tan-sources ul { margin: .55rem 0 0; }
.tan-sources ul { padding-left: 1.1rem; }
.tan-related { padding-block: clamp(2.3rem, 5vw, 4rem); border-top: 1px solid var(--tan-line); background: #0e1015; }

.tan-footer { padding: 2.65rem 0 1.5rem; border-top: 1px solid var(--tan-line); background: #0c0e13; }
.tan-footer-main { display: flex; justify-content: space-between; align-items: start; flex-wrap: wrap; gap: 1.4rem 3rem; }
.tan-footer-main p { max-width: 29rem; margin: .75rem 0 0; }
.tan-footer-nav { display: flex; flex-wrap: wrap; gap: .45rem 1rem; }
.tan-footer-nav a { color: #c6c8d0; font-size: .9rem; text-decoration: none; }
.tan-footer-end { display: flex; justify-content: space-between; align-items: start; flex-wrap: wrap; gap: .5rem 1.15rem; margin-top: 1.65rem; padding-top: 1rem; border-top: 1px solid #272a32; font-size: .83rem; }

@media (min-width: 56.0625rem) {
  .tan-site { --tan-reading-size: 1.0625rem; }
  .tan-home-hero {
    padding-block: calc(clamp(2.8rem, 6.15vw, 6.35rem) * .9) calc(clamp(2.75rem, 5.8vw, 6rem) * .9);
  }
}

@media (max-width: 56rem) {
  .tan-header > .tan-shell { min-height: 4.15rem; }
  .tan-brand img { width: 140px; }
  .tan-menu-ready .tan-menu-toggle { display: grid; grid-template-rows: repeat(3, 2px); place-content: center; gap: 4px; width: 44px; height: 44px; border: 1px solid #4f4431; border-radius: .45rem; background: #16171d; cursor: pointer; }
  .tan-menu-toggle span:not(.tan-visually-hidden) { width: 18px; background: var(--tan-gold); }
  .tan-nav { align-items: stretch; gap: .15rem; position: absolute; inset: 100% 0 auto; display: grid; padding: .75rem var(--tan-space) 1rem; border-bottom: 1px solid #4f4431; background: #11131a; box-shadow: 0 14px 24px #0009; }
  .tan-menu-ready:not(.tan-menu-open) .tan-nav { display: none; }
  .tan-nav-item { display: grid; grid-template-columns: minmax(0, 1fr) 2.5rem; }
  .tan-nav a { display: block; padding: .53rem .3rem; }
  .tan-nav-group { position: static; display: contents; }
  .tan-nav-group summary { grid-column: 2; grid-row: 1; }
  .tan-nav-group:not([open]) .tan-nav-links { display: none; }
  .tan-nav-links { position: static; grid-column: 1 / -1; border: 0; border-left: 1px solid #4d4539; margin: 0 .35rem .25rem; padding: .15rem .55rem; border-radius: 0; background: transparent; box-shadow: none; }
  .tan-hero-grid { gap: 1.7rem; }
  .tan-card-grid { gap: .8rem; }
  .tan-content-layout { grid-template-columns: minmax(0, 1fr); }
  .tan-content { order: 1; }
  .tan-toc { position: static; }
  .tan-toc ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .25rem .7rem; }
}

@media (max-width: 40rem) {
  .tan-hero-grid, .tan-card-grid { grid-template-columns: minmax(0, 1fr); }
  .tan-intro .tan-content-section { display: block; }
  .tan-intro .tan-content-section > :not(h2) { margin-top: .75rem; }
  .tan-home-hero { padding-top: 2.3rem; }
  .tan-hero-copy { gap: 1rem; }
  .tan-hero-copy h1 { font-size: clamp(2.08rem, 7.25vw, 3rem); line-height: 1.17; }
  .tan-hero-actions { gap: .55rem; }
  .tan-hero-visual img { aspect-ratio: 1.65; }
  .tan-site .tan-card { padding: 1.15rem; }
  .tan-section-heading { margin-bottom: 1rem; }
  .tan-article-hero .tan-hero-grid { padding-block: .7rem 2rem; }
  .tan-breadcrumb { padding-top: .75rem; }
  .tan-table-wrap th, .tan-table-wrap td { padding: .57rem .5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .tan-site *, .tan-site *::before, .tan-site *::after { scroll-behavior: auto; transition-duration: 0s; }
}
