/* PickMyHost preview styles. Mobile-first, system fonts, no external requests. */
:root {
  /* Defaults for this preview. At go-live, replace the hex values with your brand colors.
     Placeholders: {{PRIMARY_COLOR}} {{ACCENT_COLOR}}
     Casual sunny palette, WCAG AA: dark text on tangerine buttons 6.24:1,
     body text on cream 16.47:1, teal links on cream 5.16:1. */
  --color-primary: #f97316; /* {{PRIMARY_COLOR}} sunny tangerine */
  --color-primary-dark: #c2410c; /* heading / hover orange, not a heavy rust bar */
  --color-on-primary: #1c1917; /* dark text on bright buttons */
  --color-accent: #0f766e; /* {{ACCENT_COLOR}} friendly teal (link-safe) */
  --color-accent-bright: #14b8a6;
  --color-accent-dark: #115e59;
  --color-highlight: #fde68a; /* soft yellow */
  --color-peach: #ffedd5;
  --color-bg: #fff7ed;
  --color-surface: #fffdf9;
  --color-text: #1c1917;
  --color-muted: #57534e;
  --color-border: #fed7aa;
  --color-link: #0f766e;
  --color-link-hover: #115e59;
  --color-disclaimer: #ffedd5;
  --color-focus: #0d9488;
  --color-charcoal: #292524;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", Times, serif;
  --space: 1.25rem;
  --max: 70rem;
  --content: 46rem;
  --radius: 1rem;
  --shadow: 0 1px 2px rgba(249, 115, 22, 0.08), 0 10px 28px rgba(249, 115, 22, 0.10);
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}
img { max-width: 100%; height: auto; }
a { color: var(--color-link); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--color-link-hover); }
a:focus-visible, button:focus-visible, .nav-toggle-label:focus-visible, .nav-toggle:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}
.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 100;
  background: var(--color-primary);
  color: var(--color-on-primary);
  padding: 0.5rem 0.75rem;
  border-radius: 0 0 var(--radius) var(--radius);
}
.skip-link:focus { top: 0; }

.top-banner {
  background: linear-gradient(90deg, #f97316 0%, #fb7185 100%);
  color: var(--color-on-primary);
  font-size: 0.9rem;
  padding: 0.7rem 1rem;
  text-align: center;
}
.top-banner a { color: #1c1917; font-weight: 700; }
.top-banner .banner-cta {
  display: inline-block;
  margin-left: 0.5rem;
  background: #fffdf9;
  color: #1c1917 !important;
  text-decoration: none;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.12);
}
.top-banner .banner-cta:hover { background: var(--color-highlight); color: #1c1917 !important; filter: none; }

.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
  flex-shrink: 0;
}
.logo img {
  display: block;
  height: 2rem;
  width: auto;
}
.logo:hover img { opacity: 0.85; }
.logo-mark { display: inline-block; }

.nav-toggle { position: absolute; left: -999px; }
.nav-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  font-weight: 600;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
  flex-direction: column;
  gap: 0.15rem;
  width: 100%;
}
.nav-toggle:checked ~ .site-nav ul,
.nav-toggle:focus ~ .site-nav ul { display: flex; }
.site-nav a {
  display: block;
  padding: 0.45rem 0.5rem;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 0.35rem;
}
.site-nav a:hover, .site-nav a[aria-current="page"] {
  background: var(--color-disclaimer);
  color: var(--color-primary);
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
}
.layout {
  display: grid;
  gap: 1.5rem;
}
.breadcrumbs {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin: 0 0 1rem;
}
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; }
.breadcrumbs li:not(:last-child)::after { content: " /"; color: var(--color-muted); margin-left: 0.5rem; }
.disclosure {
  background: var(--color-disclaimer);
  border-left: 4px solid var(--color-accent);
  padding: 0.75rem 1rem;
  margin: 0 0 1.25rem;
  font-size: 0.92rem;
}
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent);
  margin: 0 0 0.35rem;
}
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.25;
  color: var(--color-primary-dark);
  font-weight: 700;
}
h1 { font-size: clamp(1.7rem, 3vw, 2.35rem); margin: 0 0 0.75rem; letter-spacing: -0.02em; }
h2 { font-size: 1.45rem; margin: 2rem 0 0.75rem; }
h3 { font-size: 1.15rem; margin: 1.5rem 0 0.5rem; }
.lead { font-size: 1.125rem; color: var(--color-text); margin: 0 0 1rem; }
.meta, .updated, .byline {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin: 0 0 1.25rem;
}
.answer, .cite-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
  margin: 0 0 1.25rem;
}
.answer p:first-child { margin-top: 0; }
.answer p:last-child { margin-bottom: 0; }
.prose p, .prose li { max-width: 70ch; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin: 0.35rem 0; }
.sources { font-size: 0.92rem; }
.sources a { overflow-wrap: anywhere; }

.table-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-surface); }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 36rem; }
th, td { text-align: left; vertical-align: top; padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--color-border); }
th { background: var(--color-primary); color: var(--color-on-primary); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: #fff7ed; }
caption { text-align: left; font-weight: 600; margin: 0 0 0.5rem; caption-side: top; color: var(--color-primary-dark); }

.cards { display: grid; gap: 1rem; margin: 1rem 0 1.5rem; }
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
}
.card h2, .card h3 { margin-top: 0; }
.card ol { margin: 0; padding-left: 1.2rem; }
.cta {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-on-primary) !important;
  text-decoration: none;
  font-weight: 700;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius);
  margin: 0.35rem 0.5rem 0.35rem 0;
}
.cta:hover { background: #ea580c; color: var(--color-on-primary) !important; }
.cta-secondary {
  display: inline-block;
  background: transparent;
  color: var(--color-primary) !important;
  border: 2px solid var(--color-primary);
  text-decoration: none;
  font-weight: 700;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  margin: 0.35rem 0.5rem 0.35rem 0;
}
.cta-band {
  background: linear-gradient(120deg, #f97316 0%, #fb7185 100%);
  color: var(--color-on-primary);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  margin: 1.75rem 0;
}
.cta-band h2, .cta-band p { color: var(--color-on-primary); margin-top: 0; }
.cta-band .cta { background: #fffdf9; color: var(--color-on-primary) !important; }
.note { font-size: 0.9rem; color: var(--color-muted); }

.sidebar .cta-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}
.sidebar .cta-card h2 { font-size: 1.15rem; margin-top: 0; color: var(--color-primary); }
.toc { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1rem; margin: 0 0 1rem; }
.toc h2 { margin: 0 0 0.5rem; font-size: 1rem; }
.toc ol { margin: 0; padding-left: 1.2rem; }
.toc a { text-decoration: none; }

.faq details {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
  margin: 0.5rem 0;
}
.faq summary { cursor: pointer; font-weight: 700; color: var(--color-primary-dark); }
.verdict { border-top: 3px solid var(--color-accent); }

.site-footer {
  background: var(--color-charcoal);
  color: #ffedd5;
  padding: 2rem 1rem;
  font-size: 0.92rem;
  border-top: 4px solid var(--color-primary);
}
.footer-inner { max-width: var(--max); margin: 0 auto; display: grid; gap: 1rem; }
.site-footer a { color: #fde68a; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; }
.footer-disc { margin: 0; max-width: 70ch; }

.placeholder { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.95em; }

@media (min-width: 48rem) {
  .nav-toggle, .nav-toggle-label { display: none; }
  .header-inner { flex-wrap: nowrap; }
  .site-nav { margin-left: auto; }
  .site-nav ul { display: flex; flex-direction: row; width: auto; gap: 0.15rem; }
  .layout.has-sidebar { grid-template-columns: minmax(0, 1fr) 16.5rem; align-items: start; }
  .sidebar { position: sticky; top: 5rem; }
  .cards.cols-3, .cards.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 64rem) {
  .cards.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.cta-band .cta-secondary {
  color: var(--color-on-primary) !important;
  border-color: var(--color-on-primary);
  background: transparent;
}
.cta-band .cta-secondary:hover {
  background: rgba(255, 255, 255, 0.35);
  color: var(--color-on-primary) !important;
}

.hero, .page-visual {
  margin: 0 0 1.35rem;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fed7aa;
}
.hero img, .page-visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.hero { margin-bottom: 1.5rem; }
.cta, .cta-secondary, .banner-cta { border-radius: 999px; }
.card, .answer, .cite-box, .cta-band, .sidebar .cta-card, .toc, .faq details, .table-wrap, .disclosure {
  border-radius: var(--radius);
}

.related { margin-top: 2rem; padding-top: 0.25rem; }
.related h2 { margin-top: 0; }
.kicker, .answer .kicker { color: var(--color-accent-dark); }
.sidebar .cta-card { border-color: var(--color-border); background: linear-gradient(180deg, #fffdf9 0%, #fff7ed 100%); }
