/* SeatSafe Styles */
:root {
  --green-900: #1b4332;
  --green-800: #2d6a4f;
  --green-700: #40916c;
  --green-600: #52b788;
  --green-500: #74c69d;
  --green-300: #95d5b2;
  --green-100: #d8f3dc;
  --green-50: #f0faf4;
  --red-600: #e03131;
  --red-50: #fff5f5;
  --yellow-500: #f59f00;
  --yellow-50: #fff9db;
  --gray-900: #212529;
  --gray-700: #495057;
  --gray-500: #868e96;
  --gray-300: #dee2e6;
  --gray-100: #f8f9fa;
  --white: #ffffff;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --max-width: 1100px;
}

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

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

body {
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green-800); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--green-900); }

img, svg { max-width: 100%; height: auto; }

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

.skip-link {
  position: absolute; top: -100%; left: 16px; z-index: 100;
  background: var(--green-800); color: var(--white);
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-300);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; gap: 16px;
}
.logo {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--green-900); font-weight: 700; font-size: 1.25rem;
}
.logo:hover { color: var(--green-800); }
.logo-text { letter-spacing: -0.02em; }

.main-nav ul { display: flex; list-style: none; gap: 24px; }
.main-nav a {
  text-decoration: none; color: var(--gray-700); font-weight: 500; font-size: 0.95rem;
  padding: 4px 0; border-bottom: 2px solid transparent; transition: color 0.15s;
}
.main-nav a:hover { color: var(--green-800); border-bottom-color: var(--green-500); }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--green-50) 0%, var(--green-100) 100%);
  padding: 60px 0 48px;
}
.hero-content { max-width: 640px; }
.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800; line-height: 1.15;
  color: var(--green-900); margin-bottom: 16px;
}
.hero-sub {
  font-size: 1.15rem; color: var(--gray-700); max-width: 520px;
}

/* Section titles */
.section-title {
  font-size: 1.5rem; font-weight: 700; color: var(--green-900);
  margin-bottom: 24px; letter-spacing: -0.01em;
}
.subsection-title {
  font-size: 1.15rem; font-weight: 700; color: var(--green-900); margin-bottom: 8px;
}
.section-intro { color: var(--gray-700); margin-bottom: 24px; max-width: 680px; }

/* Checker */
.checker-section { padding: 48px 0; }
.checker-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start;
}

.checker-form {
  background: var(--white); border: 1px solid var(--gray-300);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; font-weight: 600; font-size: 0.9rem;
  color: var(--gray-900); margin-bottom: 6px;
}
.optional { font-weight: 400; color: var(--gray-500); font-size: 0.85rem; }
.form-control {
  width: 100%; padding: 10px 14px; border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm); font-size: 1rem; font-family: var(--font);
  background: var(--white); color: var(--gray-900); transition: border-color 0.15s;
}
.form-control:focus { outline: none; border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(82,183,136,0.25); }
.form-help { display: block; margin-top: 4px; font-size: 0.82rem; color: var(--gray-500); }

.radio-group { display: flex; gap: 16px; flex-wrap: wrap; }
.radio-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.95rem; cursor: pointer; padding: 6px 12px;
  border: 1.5px solid var(--gray-300); border-radius: var(--radius-sm);
  transition: border-color 0.15s;
}
.radio-label:has(input:checked) { border-color: var(--green-600); background: var(--green-50); }
.radio-label input { accent-color: var(--green-700); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; border-radius: var(--radius-sm); font-size: 1rem;
  font-weight: 600; font-family: var(--font); cursor: pointer;
  border: 2px solid transparent; transition: background 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--green-800); color: var(--white); border-color: var(--green-800); }
.btn-primary:hover { background: var(--green-900); border-color: var(--green-900); }
.btn-full { width: 100%; }
.btn-text {
  background: none; border: none; color: var(--green-700);
  text-decoration: underline; padding: 8px 0; font-size: 0.9rem;
  margin-top: 8px; cursor: pointer;
}
.btn-text:hover { color: var(--green-900); }

/* Result panel */
.result-panel {
  background: var(--gray-100); border-radius: var(--radius);
  padding: 28px; min-height: 300px;
}
.result-empty {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; height: 100%; text-align: center;
  color: var(--gray-500); gap: 12px; min-height: 240px;
}
.result-empty p { max-width: 280px; }

.result-card { display: flex; flex-direction: column; gap: 16px; }
.result-status {
  display: flex; align-items: center; gap: 12px;
  padding: 16px; border-radius: var(--radius-sm); font-weight: 700; font-size: 1.1rem;
}
.result-status.safe { background: var(--green-100); color: var(--green-900); border: 1px solid var(--green-300); }
.result-status.warn { background: var(--yellow-50); color: #8a5a00; border: 1px solid var(--yellow-500); }
.result-status.danger { background: var(--red-50); color: var(--red-600); border: 1px solid var(--red-600); }
.result-status-icon { font-size: 1.5rem; flex-shrink: 0; }

.result-details { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.result-detail {
  background: var(--white); border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm); padding: 12px 16px;
}
.result-detail-label { font-size: 0.8rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.04em; }
.result-detail-value { font-weight: 700; font-size: 1.05rem; color: var(--gray-900); margin-top: 2px; }
.result-detail-value.expired { color: var(--red-600); }
.result-detail-value.ok { color: var(--green-800); }

.result-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.btn-copy, .btn-print {
  padding: 8px 16px; font-size: 0.9rem; border-radius: var(--radius-sm);
  font-weight: 600; cursor: pointer; font-family: var(--font);
}
.btn-copy { background: var(--green-800); color: var(--white); border: 2px solid var(--green-800); }
.btn-copy:hover { background: var(--green-900); }
.btn-print { background: var(--white); color: var(--green-800); border: 2px solid var(--green-800); }
.btn-print:hover { background: var(--green-50); }

.result-recall-box {
  background: var(--white); border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm); padding: 14px 16px;
}
.result-recall-box h4 { font-size: 0.95rem; margin-bottom: 6px; }
.result-recall-box p { font-size: 0.9rem; color: var(--gray-700); }

/* Guide section */
.guide-section { padding: 48px 0; background: var(--green-50); }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 40px; }
.guide-card {
  background: var(--white); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow); border: 1px solid var(--gray-300);
}
.guide-icon { margin-bottom: 12px; }
.guide-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--green-900); margin-bottom: 8px; }
.guide-card p { font-size: 0.93rem; color: var(--gray-700); }

/* Expiry table */
.expiry-table-wrap { margin-top: 16px; }
.table-note { font-size: 0.88rem; color: var(--gray-500); margin-bottom: 12px; }
.table-responsive { overflow-x: auto; }
.expiry-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.expiry-table th, .expiry-table td {
  padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--gray-300);
}
.expiry-table th { background: var(--green-100); color: var(--green-900); font-weight: 700; }
.expiry-table tr:last-child td { border-bottom: none; }
.expiry-table tbody tr:hover { background: var(--green-50); }

/* Recall section */
.recall-section { padding: 48px 0; }
.recall-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.recall-card {
  background: var(--white); border: 1px solid var(--gray-300);
  border-radius: var(--radius); padding: 24px;
}
.recall-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--green-900); margin-bottom: 8px; }
.recall-card p, .recall-card li { font-size: 0.93rem; color: var(--gray-700); }
.recall-card ul { padding-left: 20px; margin-top: 8px; }
.recall-card li { margin-bottom: 4px; }

/* Checklist section */
.checklist-section { padding: 48px 0; background: var(--green-50); }
.checklist-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.checklist-col h3 { font-size: 1.05rem; font-weight: 700; color: var(--green-900); margin-bottom: 12px; }
.checklist { list-style: none; padding: 0; }
.checklist li {
  padding: 8px 0; border-bottom: 1px solid var(--gray-300);
  font-size: 0.93rem; color: var(--gray-700); padding-left: 24px; position: relative;
}
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 11px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--green-600);
}
.checklist-warn li::before { background: var(--red-600); }
.checklist li:last-child { border-bottom: none; }

/* Scenario section */
.scenario-section { padding: 48px 0; }
.scenario-accordion { display: flex; flex-direction: column; gap: 8px; }
.scenario-item {
  border: 1px solid var(--gray-300); border-radius: var(--radius-sm);
  overflow: hidden; background: var(--white);
}
.scenario-item summary {
  padding: 14px 20px; cursor: pointer; font-size: 0.95rem;
  color: var(--gray-900); list-style: none; display: flex; align-items: center;
}
.scenario-item summary::-webkit-details-marker { display: none; }
.scenario-item summary::after {
  content: "+"; margin-left: auto; font-size: 1.3rem; color: var(--green-700); font-weight: 700;
}
.scenario-item[open] summary::after { content: "−"; }
.scenario-item summary:hover { background: var(--green-50); }
.scenario-item p { padding: 0 20px 16px; font-size: 0.93rem; color: var(--gray-700); }

/* FAQ section */
.faq-section { padding: 48px 0; background: var(--green-50); }
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item {
  padding: 20px 0; border-bottom: 1px solid var(--gray-300);
}
.faq-item:last-child { border-bottom: none; }
.faq-item dt { font-weight: 700; font-size: 1rem; color: var(--green-900); margin-bottom: 6px; }
.faq-item dd { font-size: 0.93rem; color: var(--gray-700); }

/* Disclaimer */
.disclaimer-section { padding: 48px 0; }
.disclaimer-box {
  background: var(--yellow-50); border: 1px solid var(--yellow-500);
  border-radius: var(--radius); padding: 24px;
}
.disclaimer-box p { font-size: 0.9rem; color: var(--gray-700); margin-bottom: 8px; }
.last-updated { font-size: 0.82rem; color: var(--gray-500); margin-top: 12px; }

/* Footer */
.site-footer {
  background: var(--green-900); color: var(--green-100);
  padding: 40px 0 24px;
}
.footer-inner { display: flex; flex-direction: column; gap: 20px; }
.footer-brand .logo-text { color: var(--white); font-size: 1.15rem; font-weight: 700; }
.footer-brand p { font-size: 0.88rem; color: var(--green-300); margin-top: 4px; }
.footer-nav ul { display: flex; list-style: none; gap: 20px; flex-wrap: wrap; }
.footer-nav a { color: var(--green-300); text-decoration: none; font-size: 0.9rem; }
.footer-nav a:hover { color: var(--white); }
.footer-hub { font-size: 0.85rem; }
.footer-hub a { color: var(--green-300); }
.footer-copy { font-size: 0.82rem; color: var(--green-500); }

/* Responsive */
@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; height: auto; padding: 12px 0; gap: 12px; }
  .main-nav ul { gap: 14px; }
  .hero { padding: 40px 0 32px; }
  .checker-layout { grid-template-columns: 1fr; }
  .result-details { grid-template-columns: 1fr; }
  .guide-grid, .recall-grid, .checklist-grid { grid-template-columns: 1fr; }
  .checklist-grid { gap: 16px; }
}

@media print {
  .site-header, .site-footer, .btn, .result-actions, .checker-form { display: none; }
  .result-panel { border: 2px solid #000; padding: 20px; }
  body { font-size: 12pt; }
}

/* Focus styles */
:focus-visible {
  outline: 3px solid var(--green-600);
  outline-offset: 2px;
}

/* Status-specific colors */
.badge { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 0.82rem; font-weight: 700; }
.badge-safe { background: var(--green-100); color: var(--green-900); }
.badge-warn { background: var(--yellow-50); color: #8a5a00; }
.badge-danger { background: var(--red-50); color: var(--red-600); }


/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
