/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Baloo 2', 'Comic Neue', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #000;
  background: #fff;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
button { cursor: pointer; font-family: inherit; }

/* ===== VARIABLES ===== */
:root {
  --blue: #3bb1ff;
  --red: #ff5252;
  --black: #000;
  --white: #fff;
  --yellow: #ffe135;
  --bg-light: #f5f5f5;
  --border: 3px solid #000;
  --shadow: 5px 5px 0 #000;
  --shadow-sm: 3px 3px 0 #000;
  --radius: 4px;
  --max-w: 1100px;
  --max-w-narrow: 720px;
}

/* ===== SITE WRAPPER ===== */
.site-wrapper { min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1; }

/* ===== HEADER & NAV ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--white);
  border-bottom: var(--border);
  box-shadow: 0 3px 0 #000;
}

.nav-bar {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1rem;
  min-height: 60px;
}

.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
}

.nav-right { justify-content: flex-end; }

.nav-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
}

.brand-anchor {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.brand-text {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #000;
  border: 2px solid #000;
  background: var(--blue);
  padding: 2px 10px;
  box-shadow: 3px 3px 0 #000;
  white-space: nowrap;
}

.brand-logo { height: 36px; width: auto; }

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
  border: 2px solid transparent;
  white-space: nowrap;
  min-height: 40px;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.nav-link:hover {
  background: var(--yellow);
  border-color: #000;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.nav-link--active {
  background: var(--blue);
  border-color: #000;
  box-shadow: var(--shadow-sm);
}

/* ===== BURGER BUTTON ===== */
.nav-burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: var(--red);
  border: var(--border);
  box-shadow: var(--shadow-sm);
  padding: 10px;
  margin-left: 0.5rem;
}

.nav-burger span {
  display: block;
  width: 100%;
  height: 3px;
  background: #000;
  transition: transform 0.2s;
}

.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== FULLSCREEN MENU ===== */
.fullscreen-menu {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--blue);
  border: 4px solid #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(.4,0,.2,1);
}

.fullscreen-menu[aria-hidden="false"] { transform: translateX(0); }

.menu-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--red);
  border: var(--border);
  box-shadow: var(--shadow-sm);
  width: 48px;
  height: 48px;
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 0 2rem;
}

.menu-nav-link {
  display: block;
  width: 100%;
  max-width: 480px;
  padding: 0.9rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  background: var(--white);
  border: var(--border);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.12s, box-shadow 0.12s;
}

.menu-nav-link:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 #000;
  text-decoration: none;
  background: var(--yellow);
}

/* ===== STICKY ANCHOR BAR ===== */
.sticky-anchor-bar {
  position: sticky;
  top: 60px;
  z-index: 100;
  background: var(--black);
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  border-bottom: var(--border);
  scrollbar-width: none;
}

.sticky-anchor-bar::-webkit-scrollbar { display: none; }

.anchor-link {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--white);
  border-right: 2px solid #333;
  white-space: nowrap;
  min-height: 40px;
  transition: background 0.15s, color 0.15s;
}

.anchor-link:hover {
  background: var(--blue);
  color: #000;
  text-decoration: none;
}

/* ===== WRAP ===== */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem 1.25rem;
}

.wrap--narrow {
  max-width: var(--max-w-narrow);
}

/* ===== HERO (HOME) ===== */
.hero {
  min-height: 100vh;
  padding-top: 60px;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-bottom: var(--border);
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 5rem 1.5rem 3rem;
  max-width: 680px;
}

.hero-badge {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 4px 12px;
  border: 2px solid #000;
  box-shadow: 3px 3px 0 #000;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.hero-badge--alt {
  background: var(--yellow);
  color: #000;
  margin-left: 0.75rem;
  margin-bottom: 0;
}

.hero-h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  border-left: 6px solid var(--blue);
  padding-left: 1rem;
}

.hero-sub {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 520px;
  color: #333;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--blue);
  color: #000;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem 2rem;
  border: var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.12s, box-shadow 0.12s;
}

.hero-cta:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 #000;
  text-decoration: none;
}

.hero-media {
  width: 100%;
  border-top: var(--border);
  overflow: hidden;
  max-height: 400px;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--blue); font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: #999; }

/* ===== SECTION TITLES ===== */
.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.section-hr {
  border: none;
  border-top: 3px solid #000;
  margin-bottom: 1.5rem;
}

/* ===== CONTENT / PROSE ===== */
.content-section {
  margin-bottom: 3rem;
}

.prose {
  font-size: 1rem;
  line-height: 1.75;
  color: #111;
}

.prose h2 { font-size: 1.35rem; font-weight: 700; margin: 2rem 0 0.4rem; }
.prose h2 + hr, .prose h2 + p { margin-top: 0.5rem; }
.prose h3 { font-size: 1.1rem; font-weight: 700; margin: 1.5rem 0 0.4rem; }
.prose p { margin-bottom: 1rem; }
.prose ul, .prose ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.prose li { margin-bottom: 0.4rem; }
.prose strong { font-weight: 700; }
.prose a { color: var(--blue); text-decoration: underline; font-weight: 600; }
.prose blockquote {
  border-left: 5px solid var(--blue);
  background: #f0f8ff;
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  font-style: italic;
}
.prose time {
  display: inline-block;
  background: var(--yellow);
  border: 2px solid #000;
  padding: 1px 8px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.prose--legal { font-size: 0.95rem; }
.prose--legal h2 { border-left: 4px solid var(--red); padding-left: 0.75rem; }

/* ===== INDEX TABLE ===== */
.index-section { margin-bottom: 3rem; }

.table-wrap {
  overflow-x: auto;
  border: var(--border);
  box-shadow: var(--shadow);
}

.index-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.index-table thead {
  background: #000;
  color: #fff;
}

.index-table thead th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.index-table tbody tr {
  border-bottom: 2px solid #000;
  background: var(--white);
  transition: background 0.12s;
}

.index-table tbody tr:nth-child(even) { background: #f9f9f9; }

.index-table tbody tr:hover { background: #fff8e1; }

.index-table td {
  padding: 0.75rem 1rem;
  vertical-align: middle;
  border-right: 1px solid #ddd;
}

.index-table td:last-child { border-right: none; }

.tbl-num {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--blue);
  white-space: nowrap;
  width: 48px;
  text-align: center;
}

.tbl-link {
  font-weight: 600;
  color: #000;
  text-decoration: none;
  display: block;
}

.tbl-link:hover { color: var(--blue); text-decoration: underline; }

.tbl-desc {
  color: #555;
  font-size: 0.85rem;
  max-width: 320px;
}

.tbl-desc-inline {
  display: block;
  color: #555;
  font-size: 0.82rem;
  font-weight: 400;
  margin-top: 2px;
}

.tbl-date {
  white-space: nowrap;
  font-size: 0.82rem;
  color: #777;
}

.tbl-thumb-cell { width: 60px; padding: 0.5rem; }
.tbl-thumb { width: 50px; height: 36px; object-fit: cover; border: 2px solid #000; }

/* ===== STAGGER ANIMATION ===== */
@media (prefers-reduced-motion: no-preference) {
  .stagger-row {
    animation: rowFadeIn 0.35s ease backwards;
    animation-delay: calc(var(--stagger-i, 0) * 0.07s);
  }

  @keyframes rowFadeIn {
    from { opacity: 0; transform: translateX(-12px); }
    to { opacity: 1; transform: translateX(0); }
  }
}

/* ===== FAQ PAGE ===== */
.faq-main { padding-top: 100px; }

.faq-hero-row {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: var(--border);
}

.faq-tag {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 3px 10px;
  border: 2px solid #000;
  box-shadow: var(--shadow-sm);
  margin-bottom: 0.75rem;
}

.faq-h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.faq-date {
  display: inline-block;
  background: var(--yellow);
  border: 2px solid #000;
  padding: 2px 10px;
  font-size: 0.82rem;
  font-weight: 600;
}

/* ===== ARTICLE PAGE ===== */
.article-main { padding-top: 100px; }

.article-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: var(--border);
}

.article-tag-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.article-tag {
  display: inline-block;
  background: var(--blue);
  color: #000;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 3px 10px;
  border: 2px solid #000;
  box-shadow: var(--shadow-sm);
}

.article-date {
  display: inline-block;
  background: var(--yellow);
  border: 2px solid #000;
  padding: 2px 10px;
  font-size: 0.82rem;
  font-weight: 600;
}

.article-h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.article-desc {
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
}

.article-hero-wrap {
  margin-bottom: 2rem;
  border: var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.article-hero-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.related-section { margin-top: 3rem; }

/* ===== ABOUT PAGE ===== */
.about-hero {
  margin-top: 60px;
  padding: 5rem 1.5rem 3rem;
  background: var(--blue);
  border-bottom: var(--border);
  position: relative;
  overflow: hidden;
}

.about-hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
}

.about-eyebrow {
  display: inline-block;
  background: #000;
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 3px 10px;
  margin-bottom: 0.75rem;
  letter-spacing: 0.06em;
}

.about-h1 {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.about-date {
  display: inline-block;
  background: var(--yellow);
  border: 2px solid #000;
  padding: 2px 10px;
  font-size: 0.82rem;
  font-weight: 600;
}

.about-hero-deco {
  position: absolute;
  top: 0; right: 0;
  width: 200px;
  height: 100%;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

.deco-block {
  flex: 1;
  display: block;
  opacity: 0.35;
}

.deco-block--blue { background: var(--white); transform: rotate(45deg) translate(50%, -30%); }
.deco-block--red { background: var(--red); transform: rotate(45deg) translate(20%, 30%); }

.about-main { padding-top: 2rem; }

.about-links-section { margin-top: 3rem; }

.about-link-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.about-link-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.25rem;
  background: var(--white);
  border: var(--border);
  box-shadow: var(--shadow);
  border-bottom: 5px solid var(--blue);
  transition: transform 0.12s, box-shadow 0.12s;
  text-decoration: none;
}

.about-link-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 #000;
  background: var(--yellow);
  text-decoration: none;
}

.alc-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
}

.alc-title {
  font-size: 1rem;
  font-weight: 700;
  color: #000;
}

/* ===== PRIVACY PAGE ===== */
.privacy-hero {
  margin-top: 60px;
  padding: 4rem 1.5rem 2.5rem;
  background: #000;
  color: #fff;
  border-bottom: var(--border);
}

.privacy-hero-inner {
  max-width: var(--max-w-narrow);
  margin: 0 auto;
}

.privacy-eyebrow {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 3px 10px;
  border: 2px solid #fff;
  margin-bottom: 0.75rem;
  letter-spacing: 0.06em;
}

.privacy-h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.privacy-updated { font-size: 0.88rem; color: #aaa; }
.privacy-updated time { color: var(--yellow); }

.privacy-main { padding-top: 2rem; }

.privacy-back-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.5rem;
  font-weight: 700;
  background: var(--blue);
  border: var(--border);
  box-shadow: var(--shadow-sm);
  color: #000;
  transition: transform 0.12s, box-shadow 0.12s;
  min-height: 44px;
}

.back-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.back-btn--secondary { background: var(--white); }

/* ===== FOOTER ===== */
.site-footer {
  background: #000;
  color: #fff;
  border-top: var(--border);
  margin-top: auto;
}

.footer-cols {
  display: flex;
  gap: 0;
  max-width: var(--max-w);
  margin: 0 auto;
  border-bottom: 2px solid #333;
}

.footer-col {
  flex: 1;
  padding: 2rem 1.5rem;
  border-right: 2px solid #333;
}

.footer-col:last-child { border-right: none; }

.footer-col dt {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.footer-col dd {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: #ccc;
}

.footer-col dd a {
  color: #ccc;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  transition: color 0.15s;
}

.footer-col dd a:hover { color: var(--blue); text-decoration: underline; }

.footer-bottom {
  padding: 1.25rem;
  text-align: center;
  font-size: 0.8rem;
  color: #666;
}

/* ===== HOME MAIN ===== */
.page-home .site-main {
  padding-top: 0;
}

/* ===== HOVER MICRO-INTERACTIONS ===== */
@media (prefers-reduced-motion: no-preference) {
  .index-table tbody tr {
    transition: background 0.12s, transform 0.12s;
  }

  .nav-link {
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.12s;
  }

  .nav-link:hover {
    transform: translateY(-1px);
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-left .nav-link,
  .nav-right .nav-link:not(.nav-burger ~ *) {
    display: none;
  }

  .nav-left { flex: 0; }
  .nav-right { flex: 0; }

  .nav-bar {
    justify-content: space-between;
    padding: 0 0.75rem;
  }

  .hero-content { padding: 4rem 1rem 2rem; }
  .hero-h1 { font-size: 1.8rem; }

  .about-link-grid { grid-template-columns: 1fr; }

  .footer-cols { flex-direction: column; }
  .footer-col { border-right: none; border-bottom: 2px solid #333; padding: 1.5rem 1rem; }
  .footer-col:last-child { border-bottom: none; }

  .wrap { padding: 1.5rem 1rem; }

  .faq-main, .article-main { padding-top: 100px; }

  .tbl-desc { display: none; }
  .tbl-date { display: none; }
}

@media (max-width: 480px) {
  .hero-cta { width: 100%; justify-content: center; }

  .index-table thead th:nth-child(2),
  .index-table tbody td:nth-child(2) { display: none; }

  .privacy-back-row { flex-direction: column; }
  .back-btn { width: 100%; justify-content: center; }

  .about-link-grid { grid-template-columns: 1fr; }
}

/* ===== UTILITIES ===== */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
