/* Short Stay Rules - premium design system. Self-hosted Figtree variable font, no external requests. */

@font-face {
  font-family: "Figtree";
  src: url("/assets/fonts/figtree-variable-latin.woff2") format("woff2-variations");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --navy-950: #081c29;
  --navy-900: #0c2739;
  --navy-800: #123850;
  --navy-700: #1a4a67;
  --ink: #16222e;
  --body: #3b4a57;
  --muted: #647484;
  --line: #e4e9ee;
  --line-soft: #eef2f5;
  --bg: #f6f8fa;
  --card: #ffffff;
  --teal: #0e7a5f;
  --teal-bright: #12a381;
  --teal-soft: #e7f5f0;
  --gold: #b98a2e;
  --gold-soft: #faf3e3;
  --amber: #9a6b00;
  --amber-soft: #fdf4dd;
  --orange: #b04a17;
  --orange-soft: #fdeadd;
  --red: #b3261e;
  --red-soft: #fbe9e7;
  --grey-soft: #edf1f4;
  --accent: #6fd3b2;
  --r-lg: 18px;
  --r-md: 14px;
  --r-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(8, 28, 41, .05), 0 2px 8px rgba(8, 28, 41, .04);
  --shadow-md: 0 2px 6px rgba(8, 28, 41, .06), 0 12px 32px rgba(8, 28, 41, .09);
  --font: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--body); background: var(--bg);
  line-height: 1.65; font-size: 16.5px; -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1020px; margin: 0 auto; padding: 0 24px; }
a { color: var(--navy-700); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--teal); }
h1, h2, h3 { color: var(--ink); font-weight: 800; letter-spacing: -0.015em; line-height: 1.2; }
h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: .4em 0 .5em; }
h2 { font-size: clamp(1.25rem, 2.6vw, 1.55rem); margin: 2.2em 0 .7em; }
h3 { font-size: 1.08rem; margin: 1.1em 0 .45em; }
section { margin-bottom: 1.6rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Header ---------- */
.site-header {
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-800) 100%);
  position: sticky; top: 0; z-index: 40;
  box-shadow: 0 1px 0 rgba(255,255,255,.06), var(--shadow-sm);
}
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 15px; padding-bottom: 15px; }
.brand { color: #fff; text-decoration: none; font-weight: 800; font-size: 1.08rem; display: flex; align-items: center; gap: 10px; letter-spacing: -0.01em; }
.brand-mark {
  background: linear-gradient(135deg, var(--teal-bright), var(--accent));
  color: var(--navy-950); font-size: .68rem; font-weight: 900; padding: 4px 8px;
  border-radius: 7px; letter-spacing: 1.5px; box-shadow: 0 2px 8px rgba(18,163,129,.35);
}
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.site-nav a { color: #b9cbd8; text-decoration: none; font-size: .92rem; font-weight: 600; }
.site-nav a:hover { color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; padding: 68px 0 84px; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(18,163,129,.28), transparent 60%),
    radial-gradient(900px 420px at 10% 110%, rgba(26,74,103,.55), transparent 65%),
    linear-gradient(150deg, var(--navy-950) 15%, var(--navy-800) 70%, var(--navy-700) 100%);
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 -2px 0; height: 90px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0,60 C240,95 480,18 760,38 C1030,58 1240,30 1440,55 L1440,90 L0,90 Z' fill='%23f6f8fa'/%3E%3C/svg%3E") bottom/100% 100% no-repeat;
}
.hero h1 { color: #fff; max-width: 660px; font-size: clamp(2rem, 5vw, 2.9rem); font-weight: 850; }
.hero-sub { color: #c5d5df; max-width: 640px; font-size: 1.12rem; line-height: 1.6; }
.hero-checker { display: flex; gap: 12px; margin: 28px 0 12px; max-width: 480px; position: relative; z-index: 2; }
.hero-checker input, .checker-form input {
  flex: 1; padding: 15px 18px; font-size: 1.15rem; border: 2px solid rgba(255,255,255,.15); border-radius: var(--r-md);
  font-family: var(--font); letter-spacing: 3px; font-weight: 700; color: var(--ink);
  box-shadow: var(--shadow-md); outline: none; min-width: 0;
}
.hero-checker input:focus, .checker-form input:focus { border-color: var(--teal-bright); }
.hero-checker button, .checker-form button, .btn {
  background: linear-gradient(135deg, var(--teal-bright), #0d8f70); color: #fff; font-weight: 800; font-size: 1rem;
  border: none; border-radius: var(--r-md); padding: 15px 26px; cursor: pointer; font-family: var(--font);
  box-shadow: 0 4px 16px rgba(18,163,129,.35); transition: transform .12s ease, box-shadow .12s ease;
  white-space: nowrap;
}
.hero-checker button:hover, .checker-form button:hover, .btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(18,163,129,.45); }
.hero-proof { font-size: .9rem; color: #9fb6c3; }
.hero-proof a { color: var(--accent); }
.hero-stats { display: flex; flex-wrap: wrap; gap: 12px 36px; margin-top: 30px; }
.hero-stat { min-width: 120px; }
.hero-stat strong { display: block; font-size: 1.45rem; font-weight: 850; color: #fff; letter-spacing: -0.02em; }
.hero-stat span { font-size: .82rem; color: #9fb6c3; text-transform: uppercase; letter-spacing: 1.2px; font-weight: 600; }

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: .85rem; color: var(--muted); margin: 22px 0 6px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--teal); text-decoration: underline; }

/* ---------- Page hero image ---------- */
.page-hero { position: relative; border-radius: var(--r-lg); overflow: hidden; margin-top: 14px; box-shadow: var(--shadow-md); }
.page-hero img { display: block; width: 100%; height: 240px; object-fit: cover; }
.page-hero .page-hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,28,41,0) 30%, rgba(8,28,41,.72) 100%);
}
.page-hero .page-hero-title { position: absolute; left: 26px; right: 26px; bottom: 18px; color: #fff; }
.page-hero .page-hero-title .eyebrow { color: #b7e9d8; }
.img-credit { font-size: .72rem; color: var(--muted); text-align: right; margin: 6px 4px 0; }
.img-credit a { color: var(--muted); }

/* ---------- Answer block ---------- */
.eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: .72rem; color: var(--muted); margin: 0 0 6px; font-weight: 700; }
.answer-block {
  background: var(--card); border-radius: var(--r-lg); padding: 30px 34px;
  border: 1px solid var(--line); border-left: 6px solid var(--muted);
  margin-top: 14px; box-shadow: var(--shadow-sm);
}
.answer-block h1 { margin: .2em 0 .45em; }
.answer-text { font-size: 1.12rem; max-width: 720px; color: var(--ink); }
.status-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  font-weight: 800; font-size: .9rem; letter-spacing: .01em;
}
.status-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-permitted .status-badge, .status-badge.status-permitted { background: var(--teal-soft); color: var(--teal); }
.status-restricted .status-badge, .status-badge.status-restricted { background: var(--amber-soft); color: var(--amber); }
.status-heavily_restricted .status-badge, .status-badge.status-heavily_restricted { background: var(--orange-soft); color: var(--orange); }
.status-banned .status-badge, .status-badge.status-banned { background: var(--red-soft); color: var(--red); }
.status-unclear .status-badge, .status-badge.status-unclear { background: var(--grey-soft); color: var(--muted); }
.answer-block.status-permitted { border-left-color: var(--teal-bright); }
.answer-block.status-restricted { border-left-color: var(--amber); }
.answer-block.status-heavily_restricted { border-left-color: var(--orange); }
.answer-block.status-banned { border-left-color: var(--red); }
.status-badge.inline { font-size: .74rem; vertical-align: middle; padding: 3px 10px; }
.verified-line { font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line-soft); padding-top: 14px; margin-bottom: 0; }
.verified-line strong { color: var(--teal); }

/* ---------- Rules table ---------- */
.table-scroll { overflow-x: auto; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.rules-table { width: 100%; border-collapse: collapse; background: var(--card); font-size: .95rem; min-width: 700px; }
.rules-table th {
  text-align: left; background: var(--navy-900); color: #cfe0ea; padding: 12px 16px;
  font-size: .74rem; text-transform: uppercase; letter-spacing: 1.4px; font-weight: 700;
}
.rules-table td { padding: 16px; border-top: 1px solid var(--line-soft); vertical-align: top; }
.rule-topic { font-weight: 800; color: var(--navy-800); white-space: nowrap; }
.rule-detail { margin: 7px 0 0; color: var(--body); font-size: .92rem; }
.rule-exceptions { margin: 7px 0 0; font-size: .88rem; color: var(--muted); }
.rule-flag { margin: 7px 0 0; font-size: .85rem; color: var(--amber); font-weight: 600; }
.rule-caveat { background: #fffdf4; }
.rule-applies, .rule-since { white-space: nowrap; font-size: .87rem; color: var(--muted); }
.rule-source a { font-size: .87rem; font-weight: 600; }

/* ---------- Lists ---------- */
.fact-list, .change-list, .related-list { padding-left: 0; list-style: none; margin-top: .4rem; }
.fact-list li, .related-list li { padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.change-list li { padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.change-date {
  display: inline-block; min-width: 106px; font-weight: 800; font-size: .82rem; color: var(--navy-800);
  background: var(--grey-soft); border-radius: 6px; padding: 2px 8px; margin-right: 8px; text-align: center;
}
.change-list.big li { padding: 14px 0; }
a.src { font-size: .8rem; color: var(--muted); margin-left: 6px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 640px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- Checklist + partners ---------- */
.checklist { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 30px; box-shadow: var(--shadow-sm); }
.checklist ol { padding-left: 1.3rem; }
.checklist ol li { margin-bottom: 8px; }
.partner-note {
  background: linear-gradient(135deg, var(--teal-soft), #f0faf6); border: 1px solid #d3ece2;
  border-radius: var(--r-md); padding: 14px 20px; margin-top: 16px;
}
.partner-note h3 { margin-top: 0; color: var(--teal); }
.partner-disclosure { font-size: .76rem; color: var(--muted); margin-bottom: 0; }

/* ---------- FAQ ---------- */
.faq { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 6px 20px; margin-bottom: 10px; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; font-weight: 700; padding: 12px 0; color: var(--navy-800); }
.faq[open] summary { border-bottom: 1px solid var(--line-soft); }
.faq p { color: var(--body); }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.card {
  position: relative; display: block; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card-img { height: 120px; overflow: hidden; position: relative; background: linear-gradient(135deg, var(--navy-800), var(--navy-700)); }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 14px 18px 16px; }
.card h3 { margin: 0 0 5px; font-size: 1.02rem; }
.card-status { font-weight: 800; font-size: .82rem; margin: 0; }
.card-sub { font-size: .8rem; color: var(--muted); margin: 5px 0 0; }
.card { border-top: 4px solid var(--muted); }
.status-border-permitted { border-top-color: var(--teal-bright); }
.status-border-restricted { border-top-color: var(--amber); }
.status-border-heavily_restricted { border-top-color: var(--orange); }
.status-border-banned { border-top-color: var(--red); }
.status-border-permitted .card-status { color: var(--teal); }
.status-border-restricted .card-status { color: var(--amber); }
.status-border-heavily_restricted .card-status { color: var(--orange); }
.status-border-banned .card-status { color: var(--red); }

/* ---------- Checker page ---------- */
.checker-form { display: flex; gap: 12px; max-width: 440px; margin: 20px 0; }
.checker-form input { border: 2px solid var(--line); box-shadow: var(--shadow-sm); }
.checker-result { margin: 12px 0 26px; }
.checker-card {
  background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--muted);
  border-radius: var(--r-lg); padding: 22px 26px; margin-bottom: 14px; box-shadow: var(--shadow-sm);
}
.checker-card.status-permitted { border-left-color: var(--teal-bright); }
.checker-card.status-restricted { border-left-color: var(--amber); }
.checker-card.status-heavily_restricted { border-left-color: var(--orange); }
.checker-card.status-banned { border-left-color: var(--red); }
.checker-card h3 { margin: 0 0 8px; }
.checker-note { font-size: .85rem; color: var(--muted); }

/* ---------- Misc blocks ---------- */
.state-block { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 26px; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.why-block { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 30px; box-shadow: var(--shadow-sm); }
.trust-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 26px 0; }
.trust-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 20px; box-shadow: var(--shadow-sm); }
.trust-item strong { display: block; color: var(--navy-800); margin-bottom: 3px; font-size: .95rem; }
.trust-item span { font-size: .85rem; color: var(--muted); }
.report-error { font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #8ba4b3; margin-top: 56px; padding: 34px 0; font-size: .85rem; }
.site-footer a { color: var(--accent); }
.footer-disclaimer { font-size: .8rem; line-height: 1.55; max-width: 760px; }
.footer-meta { margin-top: 14px; }
