:root {
  --navy: #1E3269;
  --navy-dark: #16244C;
  --ink: #1a1a1a;
  --muted: #5a5f6b;
  --line: #d8dbe2;
  --bg: #ffffff;
  --bg-alt: #f4f6f9;
  --wrap: 1120px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.7 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.site-head { background: var(--navy); color: #fff; }
.head-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; flex-wrap: wrap; }
.brand { color: #fff; text-decoration: none; display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-size: 18px; font-weight: 600; letter-spacing: .02em; }
.brand-sub { font-size: 12px; opacity: .8; }

.nav { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a { display: block; padding: 8px 14px; color: #fff; text-decoration: none; border-radius: 4px; font-size: 15px; }
.nav a:hover { background: rgba(255,255,255,.14); }
.nav a[aria-current="page"] { background: rgba(255,255,255,.22); }

.hero { position: relative; background: var(--navy-dark); }
.hero img { display: block; width: 100%; height: clamp(260px, 46vw, 560px); object-fit: cover; }
.hero-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 20px; background: linear-gradient(transparent, rgba(0,0,0,.72)); color: #fff; }
.hero-caption h1 { margin: 0 0 6px; font-size: clamp(24px, 4vw, 40px); }
.hero-caption p { margin: 0; opacity: .9; }

.section { padding: 44px 0; }
.section-alt { background: var(--bg-alt); }
.section h2 { font-size: 24px; margin: 0 0 18px; padding-bottom: 10px; border-bottom: 3px solid var(--navy); display: inline-block; }

.spec-table { width: 100%; border-collapse: collapse; margin: 0 0 28px; }
.spec-table caption { text-align: left; font-weight: 600; color: var(--navy); padding: 0 0 8px; }
.spec-table th, .spec-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 38%; font-weight: 500; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.tile { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; margin: 0; }
.tile button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.tile img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.tile figcaption { padding: 12px 14px; font-size: 14px; line-height: 1.6; }
.tile .credit { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }

dialog.lb { border: 0; padding: 0; background: rgba(0,0,0,.92); max-width: 100vw; max-height: 100vh; width: 100%; height: 100%; }
dialog.lb::backdrop { background: rgba(0,0,0,.6); }
dialog.lb img { display: block; max-width: 94vw; max-height: 80vh; margin: 4vh auto 0; object-fit: contain; }
dialog.lb p { color: #fff; text-align: center; padding: 16px 20px; margin: 0; font-size: 14px; }
dialog.lb .close { position: fixed; top: 12px; right: 16px; background: none; border: 0; color: #fff; font-size: 30px; cursor: pointer; line-height: 1; }

.ad { margin: 28px auto; text-align: center; min-height: 90px; }

.site-foot { background: var(--navy-dark); color: #cfd5e4; padding: 32px 0; margin-top: 48px; font-size: 14px; }
.dokdo-banner { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; padding: 10px 14px; border: 1px solid rgba(255,255,255,.28); border-radius: 6px; }
.dokdo-banner:hover { background: rgba(255,255,255,.1); }
.foot-note { margin: 18px 0 6px; max-width: 60ch; }
.foot-copy { margin: 0; opacity: .7; }

@media (max-width: 640px) {
  .head-inner { min-height: 0; padding: 10px 0; }
  .section { padding: 30px 0; }
  .spec-table th { width: 46%; }
}

.video { margin: 0 0 28px; }
.video-frame { position: relative; padding-top: 56.25%; background: #000; border-radius: 6px; overflow: hidden; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video figcaption { padding: 10px 2px 0; font-size: 15px; }
.video figcaption .credit { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
