/* The new design for every page: the logo's navy, one strong orange for actions, Karantina for
   large headlines and IBM Plex Sans Hebrew for text, big photographs, quieter cards.
   Loaded after styles.css (which still holds the layout of each component) and before home.css. */
:root {
  --ink: #0b3954;
  --ink-2: #3d5a6e;
  --ink-3: #66798a;
  --blue: #1f6f9a;
  --blue-deep: #0b3954;
  --blue-tint: #e6eef3;
  --sun: #f26b3a;          /* the logo's dot: every action you can take */
  --sun-deep: #d9541f;
  --paper: #f3f5f6;
  --paper-2: #e6ebee;
  --line: #d3dce2;
  --shadow: 0 1px 2px rgb(11 57 84 / 0.06), 0 18px 40px -26px rgb(11 57 84 / 0.45);
  --display: "Karantina", "IBM Plex Sans Hebrew", "Arial Narrow", sans-serif;
  --body: "IBM Plex Sans Hebrew", "Segoe UI", Arial, sans-serif;
  --night: #062438;
  --night-2: #0b3954;
  --sky: #062438;
  --maxw: 1280px;
}

body { font-size: 16.5px; }
:focus-visible { outline-color: var(--sun); }
/* Karantina is for big words only; smaller headings use the text face */
h1, h2 { font-weight: 700; line-height: 0.92; letter-spacing: -0.005em; }
h3 { font-family: var(--body); font-weight: 600; line-height: 1.3; }
a { color: var(--blue); }

/* ---------- buttons: orange to act, navy outline for the rest ---------- */
.btn { border-radius: 10px; background: var(--ink); }
.btn:hover { background: #072a3f; }
.btn.primary { background: var(--sun); color: #fff; box-shadow: none; }
.btn.primary:hover { background: var(--sun-deep); }
.btn.blue { background: var(--ink); }
.btn.blue:hover { background: #072a3f; }
.btn.ghost { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.small { border-radius: 8px; }
.btn.wide { border-radius: 12px; font-size: 1.1rem; padding: 15px 20px; }

/* ---------- header (every page) ---------- */
.site-header { background: rgb(255 255 255 / 0.96); backdrop-filter: saturate(1.2) blur(8px); }
.brand { font: 700 1.9rem/1 var(--display); letter-spacing: 0.01em; }
.nav a { color: var(--ink); font-weight: 500; }
.nav a:hover, .nav a.is-active { color: var(--sun-deep); }
.nav a.is-active { box-shadow: inset 0 -2px 0 var(--sun); }
.lang button[aria-pressed="true"] { box-shadow: 0 0 0 2.5px var(--sun); }
.quota-pill { background: var(--blue-tint); color: var(--ink); }

/* ---------- cards, panels, dialogs: square-ish, quiet ---------- */
.card, .ticket, .auth-card, .day, .trip-card, .empty, dialog, .banner, .panel { border-radius: 10px; }
.empty { border-width: 1.5px; }
.tag { border-radius: 6px; }
.toast { border-radius: 10px; background: var(--ink); }
.meter i { background: var(--ink); }
.load-bar i { background: var(--ink); }
.load-bar b { border-inline-start-color: var(--sun); }
.act time { color: var(--sun-deep); }
.budget-figure { font-weight: 700; font-size: 3rem; line-height: 1; }

/* ---------- app page titles: big words ---------- */
.page { padding-block-start: clamp(36px, 5vw, 64px); }
.page-head { margin-block-end: clamp(24px, 3vw, 40px); align-items: end; }
.page-head h1 { font-size: clamp(3.6rem, 8vw, 6.5rem); }
.empty h2 { font-size: 2.6rem; }

/* ---------- login and sign-up: a photo of Lisbon at night ---------- */
.auth {
  position: relative; isolation: isolate; min-height: calc(100svh - 66px);
  background:
    linear-gradient(to top, rgb(6 36 56 / 0.9), rgb(6 36 56 / 0.35) 60%, rgb(6 36 56 / 0.5)),
    url("https://thumb.wikimedia.org/wikipedia/commons/thumb/d/db/Lisbon_from_Miradouro_da_Senhora_do_Monte.jpg/1920px-Lisbon_from_Miradouro_da_Senhora_do_Monte.jpg") center / cover no-repeat,
    var(--night);
}
.auth-copy h1 { font-size: clamp(4.2rem, 9vw, 8rem); line-height: 0.82; max-inline-size: 9ch; text-shadow: 0 2px 30px rgb(0 0 0 / 0.4); }
.auth-copy p { color: #e4ecf1; font-size: 1.2rem; text-shadow: 0 1px 10px rgb(0 0 0 / 0.5); }
.auth-card { padding: 30px; box-shadow: 0 40px 80px -30px rgb(0 0 0 / 0.7); }
.auth-photo-credit { position: absolute; inset-inline-end: 16px; inset-block-end: 10px; font-size: 0.75rem; color: rgb(255 255 255 / 0.8); }
.auth-photo-credit a { color: inherit; }

/* ---------- my trips: photo cards ---------- */
.trip-list { gap: 22px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.trip-card { box-shadow: none; background: transparent; transition: none; }
.trip-card:hover { transform: none; }
.trip-photo { height: 260px; border-radius: 10px; overflow: hidden; }
.trip-photo::after { transition: opacity 0.4s, transform 0.8s ease; }
.trip-card:hover .trip-photo::after { transform: scale(1.04); }
.trip-card-body { padding: 14px 2px 4px; }
.trip-card h3 { font: 700 2.6rem/0.9 var(--display); }

/* ---------- a trip: the destination, very large ---------- */
.trip-hero { background: var(--night); }
.trip-hero.has-photo {
  min-height: clamp(460px, 74svh, 760px);
  background: linear-gradient(to top, rgb(6 36 56 / 0.95) 0%, rgb(6 36 56 / 0.55) 38%, rgb(6 36 56 / 0) 72%), var(--photo) center 55% / cover no-repeat, var(--night);
}
.trip-hero h1, .trip-hero.has-photo h1 { font-size: clamp(5rem, 13vw, 11rem); line-height: 0.8; }
.trip-hero a { color: #e4ecf1; }
.trip-stats { gap: 0; margin-block-start: 28px; border-block-start: 1px solid rgb(255 255 255 / 0.3); }
.trip-stats div { background: none; backdrop-filter: none; border-radius: 0; padding: 14px 0 0; }
.trip-stats div + div { padding-inline-start: 18px; border-inline-start: 1px solid rgb(255 255 255 / 0.2); }
.trip-stats b { font: 700 2.6rem/1 var(--display); color: #fff; }
.trip-stats span { color: #c9d7e0; }

/* a day: the side panel in the brand's pale blue, the day's name large */
.day { box-shadow: var(--shadow); }
.day-side { background: var(--blue-tint); }
.day-side h3 { font: 700 2rem/1 var(--display); }

/* ---------- footer (app pages) ---------- */
.site-footer { background: var(--night); }

/* ---------- admin ---------- */
.stat-card { border-radius: 10px; }
.stat-card b { font-family: var(--display); font-weight: 700; font-size: 2.6rem; }

/* ---------- Karantina only where words are big; small labels go back to the text face ---------- */
.yaara-id strong, .pace-card strong, .gate-box strong, .style-tile strong, .site-footer h4,
.stop-time b, .travel-route, .hotel-best strong, .load-readout {
  font-family: var(--body); font-weight: 600; letter-spacing: 0;
}
.stop-time b { font-variant-numeric: tabular-nums; }
.building-box strong, .change-tile strong { font: 700 2.1rem/0.95 var(--display); }
.ticket-head h2 { font-size: 2.3rem; line-height: 0.95; }
.page h2 { font-size: clamp(2.4rem, 4vw, 3.2rem); }
.page .ticket-head h2, .page .card h2, .page dialog h2 { font-size: 2.2rem; }
dialog h2 { font-size: 2.2rem; }

/* phones: the big login headline must not push the page wider than the screen */
.auth-grid > * { min-inline-size: 0; }
@media (max-width: 640px) {
  .auth-copy h1 { font-size: clamp(3rem, 15vw, 4.2rem); overflow-wrap: anywhere; }
}

/* ---------- privacy and accessibility pages ---------- */
.legal { max-width: 820px; }
.legal h1 { font-size: clamp(3.4rem, 8vw, 5.6rem); margin-block-end: 18px; }
.legal-intro { font-size: 1.15rem; color: var(--ink-2); margin-block-end: 28px; }
.legal section { border-block-start: 1px solid var(--line); padding-block: 18px 6px; }
.legal h2 { font-size: 2.2rem; margin-block-end: 10px; }
.legal ul { margin: 0; padding-inline-start: 20px; display: grid; gap: 6px; }
.legal p + p { margin-block-start: 8px; }
.legal-updated { margin-block-start: 28px; color: var(--ink-3); font-size: 0.9rem; }
.legal-links { display: inline-flex; gap: 16px; margin-inline-start: 16px; }
.legal-links a { color: #c9d7e0; }
.consent-note { font-size: 0.85rem; color: var(--ink-2); margin: 0; }
