@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fbfaf7;
  --fg: #161513;
  --muted: #77736b;
  --line: #e3e0d8;
  --field: #ffffff;
  --accent: #d52b1e;
  --max: 1040px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141412;
    --fg: #ecebe6;
    --muted: #8f8b82;
    --line: #2c2b27;
    --field: #1b1b18;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: light dark; }
body {
  margin: 0;
  font: 400 16.5px/1.55 "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.75rem); margin: 2.5rem 0 1.5rem; }
h2 { font-size: 1.05rem; margin: 0 0 .75rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.lead { color: var(--muted); max-width: 38rem; margin: -0.75rem 0 1.5rem; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--bg); padding: .5rem 1rem; z-index: 10; }

/* Header: one quiet line */
.site-head { display: flex; align-items: center; gap: 2rem; height: 64px; }
.logo { text-decoration: none; font-size: 1.1rem; white-space: nowrap; }
.logo:hover { color: inherit; }
.wordmark { font-weight: 600; letter-spacing: -0.03em; }
.tld { color: var(--accent); }
.site-head ul { list-style: none; margin: 0; padding: 0; display: flex; }
.main-nav { flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.main-nav ul { gap: 1.25rem; }
.main-nav a, .lang a { text-decoration: none; color: var(--muted); font-size: .92rem; white-space: nowrap; }
.main-nav a:hover, .lang a:hover, .main-nav a[aria-current], .lang a[aria-current] { color: var(--fg); }
.lang ul { gap: .6rem; }
.lang a { font-size: .8rem; letter-spacing: .04em; }

/* Home */
.home h1 { margin-top: 18vh; }
.tablist { display: none; }
.js-tabs .tablist { display: flex; gap: 1.5rem; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); margin-bottom: 1.25rem; }
.tablist button {
  font: inherit; font-size: .95rem; cursor: pointer; background: none; border: 0; padding: .5rem 0; margin-bottom: -1px;
  color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap;
}
.tablist button:hover { color: var(--fg); }
.tablist button[aria-selected="true"] { color: var(--fg); border-color: var(--fg); }
.panel { margin-bottom: 2rem; }
.js-tabs .panel-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.popular { margin: 4rem 0 0; }
.popular h2 { font-size: .8rem; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.popular ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; }
.popular a { text-decoration: none; color: var(--muted); font-size: .95rem; }
.popular a:hover { color: var(--fg); }

/* Search */
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .5rem; align-items: end; }
.field { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.field-lg { grid-column: span 2; }
.field-xl { grid-column: span 3; }
.field label { font-size: .8rem; color: var(--muted); }
.hint { opacity: .8; }
input, select {
  font: inherit; width: 100%; height: 50px; padding: 0 .9rem; border: 1px solid var(--line); border-radius: 6px;
  background: var(--field); color: var(--fg);
}
input:focus, select:focus { border-color: var(--fg); outline: none; }
.providers { border: 0; padding: 0; margin: .9rem 0 0; display: flex; gap: 1.25rem; font-size: .9rem; color: var(--muted); }
.providers legend { float: left; margin-right: .25rem; }
.providers input { width: auto; height: auto; accent-color: var(--fg); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 50px; padding: 0 1.6rem;
  font: inherit; font-weight: 500; text-decoration: none; cursor: pointer;
  background: var(--fg); color: var(--bg); border: 1px solid var(--fg); border-radius: 6px;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn-ghost:hover { background: transparent; color: var(--fg); border-color: var(--fg); }
.field-btn .btn { width: 100%; }
.note { font-size: .8rem; color: var(--muted); margin: .75rem 0 0; }
.alert { color: var(--accent); margin: 0 0 1rem; }
.cta { display: flex; flex-wrap: wrap; gap: .5rem; }
.widget + .widget, .widget + .cta, .cta + .widget { margin-top: 1rem; }
.widget-off { margin: 0; padding: 1.1rem 0; color: var(--muted); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: .75rem; }
.plogo { width: 22px; height: 22px; border-radius: 5px; flex: none; vertical-align: middle; }
.btn-partner { gap: .6rem; background: var(--field); color: var(--fg); border-color: var(--line); padding: 0 1.25rem 0 .9rem; }
.btn-partner:hover { background: var(--field); color: var(--fg); border-color: var(--fg); }
.providers label { display: inline-flex; align-items: center; gap: .4rem; }
.wl { min-height: 80px; }
.wl .widget-off + #tpwl-search { display: none; }
.link { font: inherit; color: var(--fg); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--accent); }
.wl { min-height: 80px; }

/* Content */
.section { margin: 3.5rem 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 1.5rem 0 0; font-size: .82rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: .4rem; }
.crumbs a { text-decoration: none; }
.crumbs + h1 { margin-top: 1rem; }
.links { list-style: none; padding: 0; margin: 0; columns: 3 220px; column-gap: 2rem; }
.links li { break-inside: avoid; }
.links a { display: block; padding: .35rem 0; text-decoration: none; }
.faq details { border-top: 1px solid var(--line); padding: .9rem 0; max-width: 42rem; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .6rem 0 0; color: var(--muted); }
.table-wrap { overflow-x: auto; }
.prices { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.prices th, .prices td { text-align: left; padding: .7rem .5rem .7rem 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.prices th { font-size: .78rem; font-weight: 500; color: var(--muted); }
.prices .num { text-align: right; }
.prices a { text-decoration: none; }
.prose { max-width: 40rem; padding-bottom: 3rem; }
.prose h2 { margin-top: 2.25rem; font-size: 1.15rem; }
.posts { list-style: none; padding: 0; margin: 0; max-width: 40rem; }
.posts li { padding: 1.25rem 0; border-top: 1px solid var(--line); }
.posts h2 { font-size: 1.2rem; margin: .2rem 0 .3rem; }
.posts h2 a { text-decoration: none; }
.posts p { margin: 0; color: var(--muted); }
.small { font-size: .82rem; }
.post h2 { font-size: 1.2rem; }

/* Footer */
.site-foot { margin-top: 6rem; padding-top: 1.5rem; padding-bottom: 2rem; border-top: 1px solid var(--line); font-size: .82rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
.site-foot p { margin: 0; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }
.site-foot a, .site-foot .link { color: var(--muted); text-decoration: none; font-size: inherit; }
.site-foot a:hover, .site-foot .link:hover { color: var(--fg); }

/* Consent notice */
.consent {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 20;
  width: min(640px, calc(100% - 32px)); padding: 1rem 1.1rem; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem;
  background: var(--field); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 30px rgba(0, 0, 0, .08); font-size: .88rem;
}
.consent p { margin: 0; flex: 1 1 260px; }
.consent div { display: flex; gap: .5rem; }
.consent .btn { height: 40px; padding: 0 1rem; }

@media (max-width: 720px) {
  .site-head { flex-wrap: wrap; height: auto; padding-top: 1rem; gap: .5rem 1rem; }
  .main-nav { order: 3; flex-basis: 100%; padding-bottom: .5rem; }
  .lang { margin-left: auto; }
  .home h1 { margin-top: 8vh; }
  .field-lg, .field-xl { grid-column: 1 / -1; }
}
