/* Shared chrome for /guides/ pages. Palette and typography mirror the
   landing page's inline styles (same custom properties); the landing keeps
   its CSS inline on purpose, legal pages link a shared sheet, and guides
   follow the legal pattern: one sheet, many small generated pages. */

:root {
    --navy: #0F3352;
    --blue: #124A72;
    --bright-blue: #1A6FA8;
    --orange: #FF7A2F;
    --ink: #1c2b3a;
    --muted: #5b6b7b;
    --bg: #ffffff;
    --soft: #f2f6fa;
    --line: #dbe5ee;
}

* { box-sizing: border-box; margin: 0; }

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
}

.wrap { max-width: 46rem; margin: 0 auto; padding: 0 1.25rem; }

header.site {
    background: var(--navy);
    color: #fff;
}

header.site .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    column-gap: 1rem;
    row-gap: 0.5rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.wordmark {
    display: inline-flex;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff;
    text-decoration: none;
}

.wordmark-logo { height: 2rem; width: auto; margin-right: 0.5rem; }

.wordmark span { color: var(--orange); }

.header-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.header-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.header-nav a:hover { text-decoration: underline; }

.header-nav .app-link {
    background: var(--orange);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    white-space: nowrap;
}

.header-nav .app-link:hover { text-decoration: none; filter: brightness(1.05); }

main.article { padding: 2.5rem 0 3rem; }

main.article h1 {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    line-height: 1.25;
    margin-bottom: 0.4rem;
}

.lede { color: var(--muted); font-size: 1.05rem; margin-bottom: 1.75rem; }

main.article h2 {
    font-size: 1.35rem;
    margin: 2.25rem 0 0.9rem;
}

main.article h3 { font-size: 1.05rem; margin: 1.5rem 0 0.5rem; }

main.article p { margin-bottom: 1rem; }

main.article a { color: var(--bright-blue); }

main.article ul, main.article ol { margin: 0 0 1rem 1.5rem; }

main.article li { margin-bottom: 0.35rem; }

.updated { color: var(--muted); font-size: 0.85rem; margin-bottom: 1.75rem; }

/* Data tables: the pages' core payload. */
.table-scroll { overflow-x: auto; margin: 0 0 0.5rem; }

table.data {
    border-collapse: collapse;
    width: 100%;
    font-size: 0.92rem;
}

table.data th, table.data td {
    text-align: left;
    padding: 0.5rem 0.7rem;
    border-bottom: 1px solid var(--line);
}

table.data th {
    color: var(--muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }

table.data tr.total td {
    font-weight: 700;
    border-top: 2px solid var(--navy);
    border-bottom: none;
}

.table-caption { color: var(--muted); font-size: 0.85rem; margin-bottom: 1rem; }

/* Degraded-data notice (e.g. hotel provider down at snapshot time). */
.note {
    background: var(--soft);
    border-left: 3px solid var(--bright-blue);
    padding: 0.75rem 1rem;
    border-radius: 0 0.5rem 0.5rem 0;
    font-size: 0.92rem;
    margin-bottom: 1rem;
}

.note.warn { border-left-color: var(--orange); }

/* Call to action: straight into the app with the search prefilled. */
.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.25rem 0;
}

.cta {
    display: inline-block;
    background: var(--orange);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    padding: 0.7rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.95rem;
}

.cta:hover { filter: brightness(1.05); }

.cta.secondary {
    background: transparent;
    color: var(--bright-blue);
    border: 1px solid var(--line);
}

/* Guides index cards. */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 1rem;
    margin: 1rem 0 1.75rem;
}

.card {
    position: relative; /* anchors the stretched title link below */
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    padding: 1rem 1.15rem;
}

/* The whole card is one click target: the title link stretches over the
   card, so a click anywhere opens the guide while the markup keeps a single
   real link per card for crawlers and screen readers. */
.card h3 a::after {
    content: "";
    position: absolute;
    inset: 0;
}

.card h3 { margin: 0 0 0.35rem; font-size: 1rem; }

.card h3 a { color: var(--ink); text-decoration: none; }

.card:hover {
    border-color: var(--bright-blue);
    background: #eaf2f9;
}

.card:hover h3 a { color: var(--bright-blue); }

.card p { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* Methodology + attribution block closes every page. */
.methodology {
    border-top: 1px solid var(--line);
    margin-top: 3rem;
    padding-top: 1.25rem;
    color: var(--muted);
    font-size: 0.85rem;
}

.methodology p { margin-bottom: 0.6rem; }

.methodology a { color: var(--bright-blue); }

footer.site {
    border-top: 1px solid var(--line);
    padding: 1.5rem 0;
    color: var(--muted);
    font-size: 0.85rem;
    margin-top: 2.5rem;
}

footer.site .wrap {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

footer.site a { color: var(--bright-blue); }

footer.site nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
