:root {
  --paper: #f6f0e4;
  --paper-strong: #fffaf2;
  --ink: #10253d;
  --ink-soft: #435466;
  --teal: #0f8b8d;
  --teal-dark: #0c6d74;
  --orange: #f17a3d;
  --orange-soft: #ffe1cf;
  --gold: #ffd166;
  --line: rgba(16, 37, 61, 0.12);
  --line-strong: rgba(16, 37, 61, 0.22);
  --success: #1c7c54;
  --danger: #b43a3a;
  --shadow: 0 20px 55px rgba(16, 37, 61, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --container: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans 3", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 209, 102, 0.22), transparent 28%),
    radial-gradient(circle at top right, rgba(15, 139, 141, 0.18), transparent 26%),
    linear-gradient(180deg, #fff9f0 0%, var(--paper) 52%, #f7f1e7 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(16, 37, 61, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 37, 61, 0.03) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.3), transparent 85%);
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 250, 242, 0.82);
  backdrop-filter: blur(22px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--orange) 0%, var(--gold) 100%);
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.brand-copy strong,
.section-heading h2,
.hero-copy h1,
.hero-panel h2,
.page-hero h1,
.tool-card h3,
.result-card h3,
.band-card h3,
.search-result h3,
.faq-item summary,
.footer-title {
  font-family: "Space Grotesk", sans-serif;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 1rem;
}

.brand-copy span {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-weight: 600;
  transition: 0.22s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  background: rgba(15, 139, 141, 0.1);
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 280px;
}

.search-input-wrap {
  position: relative;
  width: 100%;
}

.header-search input,
.search-hero-form input,
.filter-input,
.calculator-input {
  width: 100%;
  border: 1px solid rgba(16, 37, 61, 0.16);
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  border-radius: 16px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.header-search input:focus,
.search-hero-form input:focus,
.filter-input:focus,
.calculator-input:focus {
  border-color: rgba(15, 139, 141, 0.55);
  box-shadow: 0 0 0 4px rgba(15, 139, 141, 0.12);
  transform: translateY(-1px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 16px;
  padding: 13px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: #fff;
  box-shadow: 0 16px 28px rgba(15, 139, 141, 0.2);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--orange) 0%, #ff905b 100%);
  color: #fff;
  box-shadow: 0 16px 28px rgba(241, 122, 61, 0.18);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(16, 37, 61, 0.12);
  color: var(--ink);
}

.btn-small {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.95rem;
}

.site-search-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  border-radius: 20px;
  background: rgba(255, 250, 242, 0.98);
  border: 1px solid rgba(16, 37, 61, 0.1);
  box-shadow: var(--shadow);
  padding: 10px;
}

.site-search-panel[hidden] {
  display: none;
}

.search-suggestion {
  display: grid;
  gap: 2px;
  padding: 12px;
  border-radius: 14px;
}

.search-suggestion:hover {
  background: rgba(15, 139, 141, 0.08);
}

.search-suggestion small,
.meta,
.subtle {
  color: var(--ink-soft);
}

.hero,
.page-hero,
.section-card,
.tool-card,
.result-card,
.note-card,
.search-shell,
.band-card,
.content-card,
.legal-card,
.timeline-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(16, 37, 61, 0.08);
  background: rgba(255, 250, 242, 0.82);
  box-shadow: var(--shadow);
}

.hero,
.page-hero {
  margin-top: 28px;
  border-radius: var(--radius-xl);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 28px;
  padding: 40px;
}

.page-hero {
  padding: 36px;
}

.hero::after,
.page-hero::after,
.section-card::after {
  content: "";
  position: absolute;
  inset: auto auto -60px -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 209, 102, 0.35), transparent 65%);
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(15, 139, 141, 0.12);
  color: var(--teal-dark);
}

.hero-copy h1,
.page-hero h1 {
  margin: 16px 0 14px;
  font-size: clamp(2.35rem, 5vw, 4.5rem);
  line-height: 1.02;
}

.hero-copy p,
.page-hero p,
.article-copy p,
.legal-card p,
.content-card p,
.note-card p,
.search-result p,
.band-card p,
.timeline-card p,
.faq-item div {
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.65;
}

.hero-actions,
.button-row,
.chip-row,
.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.search-actions {
  margin-top: 14px;
}

.hero-highlights,
.stat-grid,
.tool-grid,
.result-grid,
.band-grid,
.content-grid,
.legal-grid,
.info-grid {
  display: grid;
  gap: 18px;
}

.hero-highlights,
.stat-grid,
.result-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tool-grid,
.band-grid,
.content-grid,
.legal-grid,
.info-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-panel,
.note-card,
.search-shell,
.timeline-card,
.legal-card {
  padding: 28px;
  border-radius: var(--radius-lg);
}

.hero-panel {
  background:
    linear-gradient(155deg, rgba(15, 139, 141, 0.94), rgba(12, 109, 116, 0.95)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent);
  color: #fff;
}

.hero-panel p,
.hero-panel li,
.hero-panel .subtle {
  color: rgba(255, 255, 255, 0.86);
}

.formula-box {
  margin: 18px 0;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 1.32rem;
  font-weight: 700;
}

.section {
  padding: 26px 0 0;
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.section-heading h2,
.section-heading h3 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.6rem);
}

.section-heading p,
.timeline-card strong,
.metric-label,
.tool-card p,
.content-card p {
  color: var(--ink-soft);
}

.section-card,
.tool-card,
.result-card,
.band-card,
.content-card {
  padding: 24px;
  border-radius: var(--radius-lg);
}

.metric {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(16, 37, 61, 0.08);
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-family: "Space Grotesk", sans-serif;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(241, 122, 61, 0.12);
  color: #ae4d1f;
  font-size: 0.86rem;
  font-weight: 700;
}

.calculator-shell {
  display: grid;
  gap: 20px;
}

.calculator-grid {
  display: grid;
  gap: 18px;
}

.calculator-row {
  display: grid;
  grid-template-columns: minmax(170px, 1.3fr) repeat(4, minmax(90px, 0.5fr));
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(16, 37, 61, 0.08);
}

.calculator-row.invalid {
  border-color: rgba(180, 58, 58, 0.3);
  background: rgba(255, 236, 236, 0.8);
}

.subject-meta strong {
  display: block;
  font-size: 1.05rem;
}

.subject-meta span {
  color: var(--ink-soft);
}

.row-value {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(16, 37, 61, 0.04);
  text-align: center;
  font-weight: 700;
}

.results-panel {
  display: grid;
  gap: 18px;
}

.highlight-result {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.result-main strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-family: "Space Grotesk", sans-serif;
}

.subject-net-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.subject-net-card {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(16, 37, 61, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.subject-net-card strong {
  display: block;
  margin-top: 6px;
  font-size: 1.3rem;
  font-family: "Space Grotesk", sans-serif;
}

.recommendation-box {
  padding: 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.17), rgba(241, 122, 61, 0.12));
  border: 1px solid rgba(241, 122, 61, 0.16);
}

.recommendation-box h3,
.search-result h3 {
  margin: 0 0 6px;
}

.chip-row {
  margin-top: 14px;
}

.chip {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  color: var(--teal-dark);
  background: rgba(15, 139, 141, 0.1);
  cursor: pointer;
}

.chip:hover {
  background: rgba(15, 139, 141, 0.18);
}

.validation-list,
.plain-list {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-soft);
}

.validation-list li {
  color: var(--danger);
}

.search-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
}

.search-result-list {
  display: grid;
  gap: 14px;
}

.search-result {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(16, 37, 61, 0.08);
  background: rgba(255, 255, 255, 0.76);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.badge {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(16, 37, 61, 0.08);
  color: var(--ink-soft);
}

.badge.accent {
  background: rgba(241, 122, 61, 0.14);
  color: #ae4d1f;
}

.disclaimer {
  padding: 18px 20px;
  border-radius: 18px;
  border-left: 5px solid var(--orange);
  background: rgba(255, 240, 231, 0.9);
  color: #754225;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  border-radius: 18px;
  border: 1px solid rgba(16, 37, 61, 0.08);
  background: rgba(255, 255, 255, 0.72);
  padding: 0 20px;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 0;
  font-size: 1.06rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item div {
  padding-bottom: 18px;
}

.cta-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.site-footer {
  margin-top: 42px;
  padding: 32px 0 46px;
}

.footer-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 0.8fr));
  gap: 22px;
  padding: 28px;
  border-radius: var(--radius-xl);
  background: rgba(16, 37, 61, 0.96);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.footer-brand .brand-mark {
  box-shadow: none;
}

.footer-brand p,
.footer-column a,
.footer-meta {
  color: rgba(255, 255, 255, 0.72);
}

.footer-column {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer-title {
  margin: 0 0 6px;
  font-size: 1rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  color: var(--ink-soft);
}

.hidden {
  display: none !important;
}

@keyframes lift {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero,
.page-hero,
.section-card,
.tool-card,
.result-card,
.note-card,
.search-shell,
.band-card,
.content-card,
.legal-card {
  animation: lift 0.55s ease both;
}

@media (max-width: 1080px) {
  .header-inner {
    grid-template-columns: 1fr;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero,
  .search-layout,
  .footer-shell,
  .tool-grid,
  .band-grid,
  .content-grid,
  .legal-grid,
  .info-grid,
  .hero-highlights,
  .stat-grid,
  .result-grid,
  .highlight-result,
  .subject-net-grid {
    grid-template-columns: 1fr;
  }

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

  .calculator-row .subject-meta {
    grid-column: 1 / -1;
  }

  .cta-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(var(--container), calc(100% - 22px));
  }

  .hero,
  .page-hero,
  .hero-panel,
  .section-card,
  .tool-card,
  .result-card,
  .note-card,
  .search-shell,
  .band-card,
  .content-card,
  .timeline-card,
  .legal-card {
    padding: 22px;
  }

  .site-nav {
    gap: 6px;
  }

  .site-nav a {
    padding: 9px 12px;
  }

  .header-search {
    min-width: 0;
  }

  .hero-copy h1,
  .page-hero h1 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .calculator-row {
    grid-template-columns: 1fr;
  }

  .result-main strong,
  .metric strong {
    font-size: 1.8rem;
  }
}
