/* ── Reset & Base ──────────────────────────────────────────── */

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Times New Roman", Times, Georgia, "Noto Serif", serif;
  line-height: 1.6;
  color: #1a1a1a;
  background: #dce3e8;
}

a {
  color: #1a3a5c;
  text-decoration: underline;
}

a:hover {
  color: #0d1f33;
}

img {
  max-width: 100%;
  display: block;
}

/* ── Skip Link ─────────────────────────────────────────────── */

.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: #1a1a1a;
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 10000;
  font-size: 0.875rem;
}

.skip-link:focus {
  top: 0;
}

/* ── Header ────────────────────────────────────────────────── */

.site-header {
  background: #1a1a1a;
  border-bottom: 3px solid #333;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 960px;
  margin: 0 auto;
  padding: 0.5rem 1.25rem;
}

.site-name {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.875rem;
  font-weight: 700;
  color: #e2e8f0;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.site-name:hover {
  text-decoration: none;
  color: #fff;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.8125rem;
  color: #a0aec0;
  text-decoration: none;
  font-weight: 500;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.nav-link:hover {
  color: #e2e8f0;
  text-decoration: none;
}

.nav-link.active {
  color: #fff;
  border-bottom-color: #fff;
}

/* ── Hamburger ─────────────────────────────────────────────── */

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 4px;
}

.hamburger-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: #e2e8f0;
  transition: transform 0.2s, opacity 0.2s;
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a1a1a;
    flex-direction: column;
    padding: 0.75rem 1.25rem;
    border-bottom: 3px solid #333;
    gap: 0.5rem;
  }

  .menu-open .nav-links {
    display: flex;
  }

  .menu-open .hamburger-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .menu-open .hamburger-bar:nth-child(2) {
    opacity: 0;
  }

  .menu-open .hamburger-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
}

/* ── Footer ────────────────────────────────────────────────── */

.site-footer {
  border-top: 3px solid #333;
  padding: 1.5rem 1.25rem;
  margin-top: 0;
  background: #1a1a1a;
  color: #a0aec0;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.75rem;
}

.footer-brand {
  font-family: "Courier New", Courier, monospace;
  font-weight: 700;
  font-size: 0.8125rem;
  color: #e2e8f0;
  margin-bottom: 0.25rem;
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: #718096;
  margin-bottom: 0.125rem;
}

.footer-location {
  font-size: 0.75rem;
  color: #718096;
  margin-bottom: 0.75rem;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-link {
  font-size: 0.75rem;
  color: #a0aec0;
}

.footer-link:hover {
  color: #e2e8f0;
}

/* ── Document Page (Home) ─────────────────────────────────── */

.doc-page {
  max-width: 960px;
  margin: 1.5rem auto;
  padding: 0 1rem;
}

.doc-header {
  background: #fff;
  border: 1px solid #b0b8c1;
  padding: 1.5rem;
  margin-bottom: 0;
}

.doc-header-upper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #b0b8c1;
  margin-bottom: 1rem;
}

.doc-header-left h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.doc-subtitle {
  font-size: 1rem;
  color: #4a5568;
  margin-top: 0.25rem;
  font-style: italic;
}

.doc-header-right {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.8125rem;
  text-align: right;
  flex-shrink: 0;
}

.doc-meta-line {
  margin-bottom: 0.25rem;
  color: #4a5568;
}

.doc-meta-label {
  font-weight: 700;
  color: #1a1a1a;
}

.doc-subline {
  font-size: 0.875rem;
  color: #718096;
  font-style: italic;
}

@media (max-width: 640px) {
  .doc-header-upper {
    flex-direction: column;
    gap: 1rem;
  }

  .doc-header-right {
    text-align: left;
  }
}

/* ── Document Sections ────────────────────────────────────── */

.doc-section {
  background: #fff;
  border: 1px solid #b0b8c1;
  border-top: none;
  padding: 1.25rem 1.5rem;
}

.doc-section:last-child {
  margin-bottom: 1.5rem;
}

.doc-section-title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #1a1a1a;
  background: #edf0f3;
  margin: -1.25rem -1.5rem 1rem;
  padding: 0.625rem 1.5rem;
  border-bottom: 1px solid #b0b8c1;
}

.doc-section-meta {
  border-top: 2px solid #b0b8c1;
}

.doc-prose {
  font-size: 0.9375rem;
  color: #2d3748;
  line-height: 1.7;
}

.doc-prose p {
  margin-bottom: 0.75rem;
}

.doc-prose p:last-child {
  margin-bottom: 0;
}

.doc-nav-row {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.doc-nav-link {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1a3a5c;
  text-decoration: underline;
}

/* ── TOC Grid ─────────────────────────────────────────────── */

.doc-toc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid #b0b8c1;
}

.doc-toc-group {
  padding: 0.875rem 1rem;
  border-right: 1px solid #b0b8c1;
  border-bottom: 1px solid #b0b8c1;
}

.doc-toc-group:nth-child(3n) {
  border-right: none;
}

.doc-toc-group:nth-last-child(-n + 3) {
  border-bottom: none;
}

.doc-toc-group h3 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #718096;
  margin-bottom: 0.5rem;
}

.doc-toc-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.doc-toc-group li {
  font-size: 0.8125rem;
  line-height: 1.4;
  margin-bottom: 0.25rem;
}

.doc-toc-group a {
  color: #1a3a5c;
  text-decoration: none;
}

.doc-toc-group a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .doc-toc-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .doc-toc-group:nth-child(3n) {
    border-right: 1px solid #b0b8c1;
  }

  .doc-toc-group:nth-child(2n) {
    border-right: none;
  }

  .doc-toc-group:nth-last-child(-n + 3) {
    border-bottom: 1px solid #b0b8c1;
  }

  .doc-toc-group:nth-last-child(-n + 2) {
    border-bottom: none;
  }
}

@media (max-width: 480px) {
  .doc-toc-grid {
    grid-template-columns: 1fr;
  }

  .doc-toc-group {
    border-right: none;
  }

  .doc-toc-group:nth-child(3n) {
    border-right: none;
  }

  .doc-toc-group:last-child {
    border-bottom: none;
  }

  .doc-toc-group:nth-last-child(-n + 2) {
    border-bottom: 1px solid #b0b8c1;
  }

  .doc-toc-group:last-child {
    border-bottom: none;
  }
}

/* ── FAQ Items ────────────────────────────────────────────── */

.faq-item {
  padding: 0.875rem 0;
  border-bottom: 1px solid #d1d8df;
}

.faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.faq-item h3 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.375rem;
}

.faq-item p {
  font-size: 0.875rem;
  color: #2d3748;
  line-height: 1.65;
}

/* ── Guide Layout ─────────────────────────────────────────── */

.guide-layout {
  display: flex;
  max-width: 960px;
  margin: 1.5rem auto;
  position: relative;
}

.guide-sidebar {
  width: 240px;
  flex-shrink: 0;
  position: sticky;
  top: 45px;
  height: calc(100vh - 45px);
  overflow-y: auto;
  border-right: 1px solid #b0b8c1;
  padding: 1rem 0.75rem;
  background: #fff;
  border: 1px solid #b0b8c1;
}

.sidebar-category {
  margin-bottom: 1rem;
}

.sidebar-category-title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #718096;
  margin-bottom: 0.375rem;
}

.sidebar-section-list {
  list-style: none;
}

.sidebar-link {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.75rem;
  color: #4a5568;
  padding: 0.125rem 0.375rem;
  text-decoration: none;
  line-height: 1.4;
  margin-bottom: 1px;
  transition: background 0.1s, color 0.1s;
}

.sidebar-link:hover {
  background: #edf0f3;
  color: #1a1a1a;
  text-decoration: none;
}

.sidebar-link.active {
  background: #e2e8f0;
  color: #1a3a5c;
  font-weight: 600;
}

.guide-content {
  flex: 1;
  min-width: 0;
  padding: 0;
  background: #fff;
  border: 1px solid #b0b8c1;
  border-left: none;
}

.sidebar-toggle {
  display: none;
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 900;
  background: #1a1a1a;
  color: #fff;
  border: none;
  padding: 0.5rem 0.875rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  align-items: center;
  gap: 0.375rem;
}

.sidebar-toggle-icon {
  font-size: 1rem;
}

@media (max-width: 900px) {
  .guide-sidebar {
    display: none;
    position: fixed;
    top: 45px;
    left: 0;
    bottom: 0;
    width: 260px;
    z-index: 950;
    border: 1px solid #b0b8c1;
  }

  .sidebar-open .guide-sidebar {
    display: block;
  }

  .sidebar-toggle {
    display: flex;
  }

  .guide-content {
    border-left: 1px solid #b0b8c1;
  }
}

/* ── Accordion ────────────────────────────────────────────── */

.guide-section {
  border-bottom: 1px solid #d1d8df;
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.accordion-trigger:hover {
  background: #f7f9fb;
}

.accordion-trigger h2 {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}

.accordion-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  position: relative;
  margin-left: 1rem;
}

.accordion-icon::before,
.accordion-icon::after {
  content: "";
  position: absolute;
  background: #718096;
  transition: transform 0.2s;
}

.accordion-icon::before {
  width: 10px;
  height: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.accordion-icon::after {
  width: 2px;
  height: 10px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.accordion-trigger[aria-expanded="true"] .accordion-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.accordion-content {
  padding: 0 1.25rem 1.25rem;
}

.accordion-content p {
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
  color: #2d3748;
  line-height: 1.7;
}

.accordion-content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 1.25rem 0 0.625rem;
}

.accordion-content h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 1rem 0 0.5rem;
}

.accordion-content ul,
.accordion-content ol {
  margin: 0 0 0.875rem 1.25rem;
  font-size: 0.9375rem;
  color: #2d3748;
  line-height: 1.7;
}

.accordion-content li {
  margin-bottom: 0.25rem;
}

.accordion-content strong {
  font-weight: 700;
  color: #1a1a1a;
}

.accordion-content em {
  font-style: italic;
}

/* ── Sub-Accordion ────────────────────────────────────────── */

.sub-accordion {
  border: 1px solid #d1d8df;
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.sub-accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0.625rem 0.875rem;
  background: #f7f9fb;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.sub-accordion-trigger h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #2d3748;
  margin: 0;
}

.sub-accordion-trigger[aria-expanded="true"] {
  border-bottom: 1px solid #d1d8df;
}

.sub-accordion-content {
  padding: 0.875rem;
}

.sub-accordion-content p {
  font-size: 0.9375rem;
  margin-bottom: 0.625rem;
}

/* ── Tables ───────────────────────────────────────────────── */

.table-wrap {
  overflow-x: auto;
  margin: 0.75rem 0;
  -webkit-overflow-scrolling: touch;
}

.table-wrap table,
.accordion-content table,
.doc-section table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.table-wrap th,
.accordion-content th,
.doc-section th {
  text-align: left;
  font-weight: 700;
  padding: 0.5rem 0.75rem;
  background: #edf0f3;
  border: 1px solid #b0b8c1;
  color: #1a1a1a;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.table-wrap td,
.accordion-content td,
.doc-section td {
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d8df;
  color: #2d3748;
  vertical-align: top;
}

/* ── Preformatted / Flowchart ─────────────────────────────── */

.flowchart,
.code-block {
  background: #1a1a1a;
  color: #e2e8f0;
  padding: 1rem;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.75rem;
  line-height: 1.6;
  overflow-x: auto;
  margin: 0.75rem 0;
  white-space: pre;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #333;
}

/* ── Legal Quote ──────────────────────────────────────────── */

.legal-quote {
  border-left: 3px solid #b0b8c1;
  padding: 0.75rem 1rem;
  margin: 0.75rem 0;
  font-style: italic;
  color: #4a5568;
  font-size: 0.9375rem;
  background: #f7f9fb;
}

/* ── Callouts ─────────────────────────────────────────────── */

.callout {
  padding: 0.875rem 1rem;
  margin: 0.75rem 0;
  font-size: 0.875rem;
  line-height: 1.6;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.callout-warning {
  background: #fffbeb;
  border: 1px solid #d69e2e;
  color: #744210;
}

.callout-note {
  background: #ebf8ff;
  border: 1px solid #4299e1;
  color: #2a4365;
}

/* ── Glossary Term ────────────────────────────────────────── */

.term {
  font-weight: 600;
}

/* ── Checklist ────────────────────────────────────────────── */

.checklist {
  list-style: none;
  margin: 0.5rem 0;
  padding: 0;
}

.checklist-item {
  margin-bottom: 0.375rem;
}

.checklist-item label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: #2d3748;
  cursor: pointer;
  line-height: 1.5;
}

.checklist-item input[type="checkbox"] {
  margin-top: 0.25rem;
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  accent-color: #1a3a5c;
}

/* ── Emotional Stages ─────────────────────────────────────── */

.emotional-stages dt {
  font-weight: 700;
  color: #1a1a1a;
  margin-top: 1rem;
  font-size: 0.9375rem;
}

.emotional-stages dd {
  margin: 0.25rem 0 0 0;
  font-size: 0.9375rem;
  color: #2d3748;
  line-height: 1.7;
}

/* ── Calculator ───────────────────────────────────────────── */

.calculator-page {
  max-width: 960px;
  margin: 1.5rem auto;
  padding: 0 1rem;
}

.calculator-page h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1a1a1a;
}

.calc-container {
  background: #fff;
  border: 1px solid #b0b8c1;
  padding: 1.5rem;
}

.calculator-disclaimer {
  margin-bottom: 1.5rem;
}

.calculator-period {
  margin-bottom: 1.5rem;
}

.calculator-period fieldset {
  border: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.calculator-period legend {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 0.8125rem;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
  float: left;
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.8125rem;
  color: #2d3748;
  cursor: pointer;
}

.radio-label input[type="radio"] {
  accent-color: #1a3a5c;
}

.calculator-inputs {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.input-section {
  border: 1px solid #b0b8c1;
  padding: 1rem;
  background: #fff;
}

.input-section legend {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  color: #1a1a1a;
  padding: 0 0.25rem;
}

.input-group {
  margin-top: 0.75rem;
}

.input-group label {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 0.25rem;
}

.input-group input[type="number"] {
  width: 100%;
  padding: 0.5rem 0.625rem;
  font-size: 0.875rem;
  border: 1px solid #b0b8c1;
  background: #fff;
  color: #1a1a1a;
  font-family: "Courier New", Courier, monospace;
  transition: border-color 0.15s;
}

.input-group input[type="number"]:focus {
  outline: none;
  border-color: #1a3a5c;
  box-shadow: 0 0 0 2px rgba(26, 58, 92, 0.15);
}

.input-help {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.6875rem;
  color: #718096;
  margin-top: 0.25rem;
}

/* ── Calculator Results ───────────────────────────────────── */

.calculator-results {
  background: #fff;
  border: 1px solid #b0b8c1;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.calculator-results h2 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  color: #1a1a1a;
}

.result-block {
  margin-bottom: 1.25rem;
}

.result-block h3 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #718096;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.result-number {
  font-size: 1.375rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.375rem;
  font-family: "Courier New", Courier, monospace;
  font-variant-numeric: tabular-nums;
}

.progress-wrap {
  height: 6px;
  background: #edf0f3;
  overflow: hidden;
  margin-bottom: 0.25rem;
}

.progress-bar {
  height: 100%;
  transition: width 0.3s ease, background 0.3s;
  width: 0%;
}

.bar-clear {
  background: #276749;
}

.bar-warning {
  background: #c05621;
}

.bar-triggered {
  background: #c53030;
}

.result-threshold {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.6875rem;
  color: #718096;
}

.verdict {
  margin: 1.25rem 0;
  padding: 0.875rem;
  border: 1px solid #b0b8c1;
}

.verdict-text {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
}

.verdict-clear {
  background: #f0fff4;
  border-color: #276749;
  color: #276749;
}

.verdict-warning {
  background: #fffaf0;
  border-color: #c05621;
  color: #c05621;
}

.verdict-triggered {
  background: #fff5f5;
  border-color: #c53030;
  color: #c53030;
}

.result-note {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.75rem;
  color: #718096;
  line-height: 1.5;
  margin-top: 0.75rem;
}

.result-note a {
  color: #1a3a5c;
}

/* ── About ────────────────────────────────────────────────── */

.about-page {
  max-width: 960px;
  margin: 1.5rem auto;
  padding: 0 1rem;
}

.about-container {
  background: #fff;
  border: 1px solid #b0b8c1;
  padding: 1.5rem;
}

.about-page h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1a1a1a;
}

.about-page p {
  font-size: 0.9375rem;
  color: #2d3748;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.prediction-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.prediction-list li {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.8125rem;
  color: #4a5568;
  padding: 0.375rem 0;
  border-bottom: 1px solid #d1d8df;
  font-variant-numeric: tabular-nums;
}

.prediction-list li:last-child {
  border-bottom: none;
}

.about-inquiries {
  margin-top: 1.5rem;
  font-weight: 600;
  color: #1a1a1a;
}

/* ── 404 ──────────────────────────────────────────────────── */

.not-found-page {
  max-width: 960px;
  margin: 1.5rem auto;
  padding: 0 1rem;
}

.not-found-container {
  background: #fff;
  border: 1px solid #b0b8c1;
  padding: 3rem 1.5rem;
  text-align: center;
}

.not-found-page h1 {
  font-family: "Courier New", Courier, monospace;
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.75rem;
}

.not-found-page p {
  font-size: 0.9375rem;
  color: #4a5568;
  margin-bottom: 0.5rem;
}

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 480px) {
  .doc-header-left h1 {
    font-size: 1.375rem;
  }

  .calculator-page h1 {
    font-size: 1.25rem;
  }

  .result-number {
    font-size: 1.125rem;
  }
}
