/* ===== RESET & BASE ===== */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{font-size:16px;scroll-behavior:smooth}
body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;line-height:1.6;color:#1a1f2e;background:#f4f6f9;min-height:100vh}
img{max-width:100%;height:auto}
a{color:#1a56db;text-decoration:none}
a:hover{text-decoration:underline}
ul,ol{list-style:none}
button{cursor:pointer;font-family:inherit}
fieldset{border:none;padding:0;margin:0}
legend{font-weight:700;font-size:1.05rem;margin-bottom:.75rem;color:#1a1f2e}

/* ===== LAYOUT ===== */
.container{max-width:1160px;margin:0 auto;padding:0 1.5rem}

/* ===== HEADER ===== */
.site-header{background:#fff;border-bottom:1px solid #dce3ed;position:sticky;top:0;z-index:100}
.site-header .container{display:flex;align-items:center;justify-content:space-between;height:60px}
.logo{display:flex;align-items:center;gap:.5rem;font-weight:800;font-size:1.15rem;color:#1a1f2e}
.logo:hover{text-decoration:none}
.main-nav{display:flex;gap:1.5rem}
.main-nav a{font-size:.9rem;font-weight:600;color:#4a5568;padding:.25rem 0}
.main-nav a:hover{color:#1a56db}

/* ===== HERO ===== */
.hero{background:linear-gradient(135deg,#1a3a8a 0%,#1a56db 50%,#2563eb 100%);color:#fff;padding:4.5rem 0;text-align:center}
.hero h1{font-size:clamp(1.8rem,4vw,2.8rem);font-weight:800;line-height:1.2;margin-bottom:1rem}
.hero-sub{font-size:1.1rem;opacity:.9;max-width:600px;margin:0 auto 2rem}

/* ===== BUTTONS ===== */
.btn{display:inline-flex;align-items:center;justify-content:center;padding:.6rem 1.4rem;border-radius:8px;font-weight:600;font-size:.95rem;border:2px solid transparent;transition:all .15s}
.btn-primary{background:#fff;color:#1a56db}
.btn-primary:hover{background:#e8edf5;text-decoration:none}
.btn-secondary{background:#1a56db;color:#fff}
.btn-secondary:hover{background:#1649b8;text-decoration:none}
.btn-ghost{background:transparent;color:#4a5568;border-color:#dce3ed}
.btn-ghost:hover{background:#e8edf5}
.btn-sm{padding:.4rem .8rem;font-size:.85rem}
.btn-lg{padding:.85rem 2rem;font-size:1.05rem}

/* ===== SECTIONS ===== */
.section-title{font-size:1.6rem;font-weight:800;margin-bottom:.5rem;color:#1a1f2e}
.section-sub{color:#5a6577;margin-bottom:2rem;max-width:640px}
section{padding:3.5rem 0}

/* ===== PLANNER ===== */
.planner-section{background:#fff}
.planner-grid{display:grid;grid-template-columns:1fr 1fr;gap:2.5rem;align-items:start}
@media(max-width:860px){.planner-grid{grid-template-columns:1fr}}

.planner-form{display:flex;flex-direction:column;gap:1.5rem}
.form-row{display:flex;flex-direction:column;gap:.35rem;margin-bottom:.75rem}
.form-row label{font-weight:600;font-size:.9rem;color:#374151}
.form-row input,.form-row select{padding:.6rem .75rem;border:1px solid #d1d5db;border-radius:8px;font-size:.95rem;background:#fff;color:#1a1f2e}
.form-row input:focus,.form-row select:focus{outline:none;border-color:#1a56db;box-shadow:0 0 0 3px rgba(26,86,219,.15)}
.slider-row input[type=range]{width:100%;accent-color:#1a56db}
.slider-row label{display:flex;justify-content:space-between}
.checkbox-row{flex-direction:row;align-items:center;gap:.5rem}
.checkbox-row input{width:18px;height:18px;accent-color:#1a56db}
.checkbox-row label{font-weight:400}
.hint{font-weight:400;color:#7a8ba6;font-size:.85rem}
.form-actions{display:flex;gap:.75rem;flex-wrap:wrap;margin-top:.5rem}

/* ===== TIMELINE ===== */
.timeline-panel{background:#f0f4f9;border-radius:12px;padding:1.5rem;position:sticky;top:80px}
.timeline-panel h3{font-size:1.1rem;font-weight:700;margin-bottom:1rem}
.timeline-output{display:flex;flex-direction:column;gap:.5rem}
.empty-state{text-align:center;padding:2rem 1rem;color:#7a8ba6}
.empty-state svg{margin:0 auto .75rem}
.tl-item{display:flex;gap:.75rem;padding:.6rem .75rem;background:#fff;border-radius:8px;border-left:4px solid #1a56db;font-size:.9rem}
.tl-time{font-weight:700;color:#1a56db;min-width:60px;font-size:.85rem}
.tl-label{color:#374151}
.tl-item.tailgate{border-left-color:#d97706}
.tl-item.warning{border-left-color:#dc2626}
.tl-item.fun{border-left-color:#059669}

/* ===== BUDGET ===== */
.budget-summary{margin-top:1.25rem}
.budget-summary h4{font-size:1rem;font-weight:700;margin-bottom:.5rem}
.budget-table{width:100%;font-size:.9rem;border-collapse:collapse}
.budget-table td{padding:.4rem .5rem;border-bottom:1px solid #e2e8f0}
.budget-table td:last-child{text-align:right;font-weight:600}
.budget-table tfoot td{border-top:2px solid #1a1f2e;border-bottom:none;font-weight:800;font-size:1rem;padding-top:.5rem}

/* ===== CHECKLIST ===== */
.checklist-output{margin-top:1.25rem}
.checklist-output h4{font-size:1rem;font-weight:700;margin-bottom:.5rem}
.checklist-output li{padding:.35rem 0;font-size:.9rem;display:flex;align-items:center;gap:.5rem;border-bottom:1px solid #e2e8f0}
.checklist-output li::before{content:"☐";color:#7a8ba6;font-size:1rem}
.checklist-output li.checked::before{content:"☑";color:#059669}
.checklist-output .checklist-cat{font-weight:700;font-size:.8rem;text-transform:uppercase;letter-spacing:.05em;color:#7a8ba6;margin-top:.75rem;padding-top:.5rem;border-top:2px solid #dce3ed}

/* ===== VENUE CARDS ===== */
.venue-spotlight{background:#f4f6f9}
.venue-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:1.25rem}
.venue-card{background:#fff;border-radius:12px;padding:1.25rem;border:1px solid #e2e8f0}
.venue-card h3{font-size:1.05rem;font-weight:700;margin-bottom:.5rem}
.venue-card p{font-size:.9rem;color:#4a5568;margin-bottom:.75rem}
.tag{display:inline-block;padding:.2rem .6rem;border-radius:999px;font-size:.75rem;font-weight:600;background:#e8edf5;color:#1a56db;margin-right:.4rem}

/* ===== TIPS ===== */
.tips-section{background:#fff}
.tips-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:1.25rem;margin-bottom:2.5rem}
.tip-card{background:#f9fafb;border-radius:12px;padding:1.25rem;border:1px solid #e5e7eb}
.tip-card h3{font-size:1rem;font-weight:700;margin-bottom:.4rem;color:#dc2626}
.tip-card p{font-size:.9rem;color:#4a5568}

/* ===== POLICY TABLE ===== */
.policy-table-wrap{overflow-x:auto}
.policy-table-wrap h3{font-size:1.1rem;font-weight:700;margin-bottom:.75rem}
.policy-table{width:100%;border-collapse:collapse;font-size:.9rem}
.policy-table th,.policy-table td{padding:.6rem .75rem;text-align:left;border-bottom:1px solid #e5e7eb}
.policy-table th{background:#f0f4f9;font-weight:700;color:#374151}
.table-note{font-size:.8rem;color:#7a8ba6;margin-top:.5rem}

/* ===== FAQ ===== */
.faq-section{background:#f4f6f9}
.faq-list{display:flex;flex-direction:column;gap:1.25rem}
.faq-list dt{font-weight:700;font-size:1rem;color:#1a1f2e;margin-bottom:.3rem}
.faq-list dd{font-size:.95rem;color:#4a5568;line-height:1.6}

/* ===== FOOTER ===== */
.site-footer{background:#1a1f2e;color:#a0aec0;padding:3rem 0 1.5rem;font-size:.9rem}
.footer-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:2rem;margin-bottom:2rem}
.footer-grid strong{color:#e2e8f0;display:block;margin-bottom:.5rem}
.footer-grid a{display:block;color:#a0aec0;padding:.2rem 0}
.footer-grid a:hover{color:#fff}
.footer-copy{text-align:center;font-size:.8rem;padding-top:1.5rem;border-top:1px solid #2d3748}

/* ===== PRINT ===== */
@media print{
  .site-header,.site-footer,.form-actions,.btn,.hero,.tips-section,.faq-section,.venue-spotlight,.policy-table-wrap,.section-sub,.section-title,#planner-form,.main-nav{display:none!important}
  .planner-section{padding:0}
  .planner-grid{display:block}
  .timeline-panel{position:static;background:none;padding:0}
  .tl-item{break-inside:avoid}
  .checklist-output li::before{content:"☐"}
  body{background:#fff;color:#000}
}

/* ===== RESPONSIVE ===== */
@media(max-width:640px){
  .hero{padding:3rem 0}
  .hero h1{font-size:1.5rem}
  section{padding:2rem 0}
  .form-actions{flex-direction:column}
  .form-actions .btn{width:100%}
}



/* 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;
}
