/* AfterADisaster only. Everything else comes from the shared AINS styles.css and home.css. */
/* The logo tile in the statement section: the sun rises over still water, then the water moves a little. */
.dawn-tile svg { width: 80%; }
.dawn-tile .d-sun { transform: translateY(14px); transition: transform 2.4s cubic-bezier(.2,.7,.2,1); }
.dawn-tile .d-glow { opacity: 0; transition: opacity 2.4s ease .3s; }
.reveal.in .dawn-tile .d-sun { transform: none; }
.reveal.in .dawn-tile .d-glow { opacity: 1; }
.dawn-tile .d-wave { animation: drift 6s ease-in-out infinite alternate; }
.dawn-tile .w2 { animation-duration: 7.5s; animation-delay: -2s; }
@keyframes drift { from { transform: translateX(-2px); } to { transform: translateX(2px); } }
.flight-bird { width: 14px; height: 14px; }
@media (prefers-reduced-motion: reduce) { .dawn-tile .d-sun { transform: none; transition: none; } .dawn-tile .d-glow { opacity: 1; transition: none; } .dawn-tile .d-wave { animation: none; } }

/* Tools (Wave 1). Same card language as the ASD wizard: white card, hairline border, soft lift. */
.tool-sec { padding-top: clamp(28px, 4vw, 44px); }
.tool-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) { .tool-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.tool-card { background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius); padding: clamp(20px, 3vw, 30px); box-shadow: 0 1px 2px rgba(19,36,47,.04), 0 30px 60px -36px rgba(19,36,47,.35); min-width: 0; }
.tool-k { font-size: .8rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--gold-ink); margin: 0 0 14px; }
.f2, .f3 { display: grid; gap: 0 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 520px) { .f3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.f3 .field:first-child { grid-column: span 1; }
@media (max-width: 519px) { .f3 .field:last-child { grid-column: 1 / -1; } }
.tool-card .btn[type=submit] { width: 100%; justify-content: center; }
.tool-sum { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.tool-sum b { display: block; font-size: clamp(2.1rem, 5vw, 2.8rem); letter-spacing: -.03em; line-height: 1.05; color: var(--text); font-variant-numeric: tabular-nums; }
.tool-sum small { color: var(--muted); font-size: .9rem; }
.tool-out table.ref { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 0 0 6px; }
.tool-out th, .tool-out td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; font-variant-numeric: tabular-nums; }
.tool-out th { font-size: .8rem; color: var(--muted); font-weight: 600; }
.tool-out td small { display: block; color: var(--muted); font-size: .82rem; }
.tool-out .x { border: 0; background: none; color: var(--muted); font-size: 1.3rem; line-height: 1; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; }
.tool-out .x:hover { background: var(--bad-tint); color: var(--bad); }
.tool-actions { margin: 16px 0 8px; }
.tool-actions .btn:disabled { opacity: .45; pointer-events: none; }
.inv-room { margin-top: 14px; }
.inv-room-h { display: flex; justify-content: space-between; font-size: .95rem; padding: 6px 0; border-bottom: 2px solid var(--tint-2); color: var(--text); }
.rooms { margin-top: clamp(28px, 4vw, 44px); }
.rooms-h { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin: 0 0 4px; }
.room-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); margin-top: 16px; }
.room { background: #fff; border: 1px solid var(--hairline); border-radius: 18px; padding: 16px 16px 12px; }
.room > b { display: block; color: var(--text); margin-bottom: 10px; }
.room > div { display: flex; flex-wrap: wrap; gap: 6px; }
.room button { font: inherit; font-size: .86rem; border: 1px solid var(--tint-2); background: var(--paper); color: var(--body); border-radius: 999px; padding: 6px 11px; min-height: 34px; cursor: pointer; transition: border-color .2s, background .2s; }
.room button:hover { border-color: var(--dusk-soft); background: #fff; color: var(--text); }
.dep-big { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dep-big small { display: block; color: var(--muted); font-size: .88rem; }
.dep-big b { font-size: clamp(1.9rem, 4.6vw, 2.6rem); letter-spacing: -.03em; color: var(--text); font-variant-numeric: tabular-nums; }
.dep-big span:last-child b { color: var(--gold-ink); }
.dep-bar, .meter { height: 12px; border-radius: 99px; background: var(--gold-tint); margin: 16px 0 10px; overflow: hidden; }
.dep-bar i, .meter i { display: block; height: 100%; width: var(--p); background: linear-gradient(90deg, var(--dusk), var(--dusk-mid)); border-radius: inherit; transition: width .5s cubic-bezier(.2,.7,.2,1); }
.meter { background: var(--tint); }
.meter i { background: linear-gradient(90deg, var(--gold), var(--gold-strong)); }

/* Data tables on reference pages scroll sideways on phones instead of the page. */
.tbl-wrap { overflow-x: auto; margin: 0 0 1.2em; -webkit-overflow-scrolling: touch; }
.tbl-wrap table { min-width: 520px; }
.prose td small { display: block; color: var(--muted); font-size: .82rem; margin-top: 3px; }
.state-pick { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.2em; padding: 0; list-style: none; }
.state-pick a { display: inline-flex; min-height: 40px; align-items: center; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--hairline); text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--text); }

@media print {
  .site-header, .site-footer, .mobile-cta, .page-hero, .rooms, .tool-grid > .tool-card:not(.tool-out), .tool-actions, .doc, .x, form[data-add] { display: none !important; }
  .tool-grid { display: block; } .tool-card { box-shadow: none; border: 0; padding: 0; }
}
.tbl-wrap tbody th { white-space: normal; min-width: 120px; }
@media (min-width: 900px) { .tbl-wrap { overflow: visible; } .tbl-wrap table { min-width: 0; } }
.tbl-wrap thead th { position: static !important; box-shadow: none; }
.page-hero .state-pick { margin: 14px 0 0; }
