/* ==========================================================================
   OLI BENE — site theme v3 · "The dark room", in Oli's own type
   Direction seed 915272721 · Poiret One / Mulish / Caveat · graphite + orange.

   This sheet loads LAST on every page and re-dresses the existing markup:
   the left sidebar becomes a top bar, the cream pages become one dark room,
   and the card grids, gradients, pills and eyebrows go.
   Page-specific rebuilds live in the pages themselves.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poiret+One&family=Mulish:wght@300;400;600&family=Caveat:wght@500&display=swap');

:root {
  --bg: #18191b;
  --surface: #222427;
  --surface-2: #2b2e32;
  --ink: #eff0f1;
  --muted: #aeb0b4;
  --accent: #ff4a1f;
  --accent-ink: #18191b;
  --paper: #eff0f1;

  --t-small:   1rem;
  --t-body:    clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  --t-lead:    clamp(1.375rem, 1.05rem + 1.05vw, 2rem);
  --t-head:    clamp(1.875rem, 1.2rem + 2vw, 3rem);
  --t-giant:   clamp(2.5rem, 1rem + 5.6vw, 5.75rem);
  --t-display: clamp(3.25rem, 0.2rem + 11.6vw, 11rem);

  --margin: clamp(20px, 2.2vw, 32px);
  --bar: 74px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ------------------------------------------------------------------- base */

html { scroll-behavior: smooth; background: var(--bg); }

body {
  background: var(--bg) !important;
  color: var(--ink);
  font-family: 'Mulish', system-ui, -apple-system, 'Segoe UI', sans-serif !important;
  font-weight: 300;
  font-size: var(--t-body);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body, body * { font-style: normal; }

/* one text face, one display face; the handwritten and Poiret faces go */
body :where(h1, h2, h3, h4, h5, h6, p, a, span, li, td, th, div, button, input, textarea, select, label, figcaption, blockquote, summary) {
  font-family: 'Mulish', system-ui, -apple-system, sans-serif !important;
}

/* Oli's own hand stays: the wordmark's subtitle and anything marked .hand.
   It is a signature, never running text — that is what made the old pages
   hard to read. */
.sidebar__logo::after,
body .hand,
body .hand * {
  font-family: 'Caveat', cursive !important;
  font-weight: 500;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--ink);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

h1, h2, .display,
body [class*="hero__title"],
body [class*="-hero"]:not([class*="__"]) h1 {
  font-family: 'Poiret One', system-ui, sans-serif !important;
  font-weight: 400 !important;
}

h1 { font-size: var(--t-head); }
h2 { font-size: var(--t-head); }
h3 { font-size: var(--t-lead); }
h4, h5, h6 { font-size: var(--t-body); }

p, li, td, dd { color: var(--ink); }

a { color: inherit; text-underline-offset: 3px; text-decoration-color: var(--accent); }

::selection { background: var(--accent); color: var(--accent-ink); }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

img { max-width: 100%; }

/* --------------------------------------------------------- the kill list */
/* the devices the direction bans, wherever the old sheets put them */

body :where(section, div, header, footer, article, aside, a, li, nav, main)[class] {
  background-image: none;
}

body :where(.card, .inside-card, .dest-card, .tip-item, .service-icon, .tool-card,
            .product-card, .faq-item, .blog-card, .post-card, .feature, .box) {
  box-shadow: none !important;
  border-radius: 0 !important;
}

body :where(.eyebrow, .inside__label, .how__label, .faq-teaser__label,
            .useful-services__label, .sidebar__group, .sidebar__tagline,
            .dest-card__rating, .inside-card__icon, .tip-item__icon) {
  display: none !important;
}

/* the page is one room, so nothing floats on a shadow and nothing is rounded */
body :where(*) { text-shadow: none; }

/* --------------------------------------------- the sidebar becomes a top bar */

.sidebar {
  position: fixed;
  inset: 0 0 auto 0;
  width: 100%;
  height: var(--bar);
  background: var(--bg);
  color: var(--ink);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(12px, 1.6vw, 26px);
  padding: 0 var(--margin);
  overflow: visible;
  z-index: 100;
}

.sidebar__logo {
  font-family: 'Poiret One', sans-serif !important;
  font-weight: 400;
  font-size: var(--t-lead);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0;
  flex: none;
  line-height: 1;
}

.sidebar__nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(12px, 1.6vw, 26px);
  margin: 0 auto 0 clamp(16px, 3vw, 56px);
  flex-wrap: nowrap;
}

.sidebar__nav a {
  font-size: var(--t-small);
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  color: var(--muted);
  white-space: nowrap;
  transition: color .2s;
}
.sidebar__nav a:hover,
.sidebar__nav a.active { color: var(--ink); }
.sidebar__nav a.active { color: var(--accent); }

/* sentence case instead of the old tracked capitals */
.sidebar__nav a,
.sidebar__tools-link { text-transform: none; }

/* the dropdown keeps working; it is a menu, so it may sit on a surface */
.sidebar__tools-submenu {
  background: var(--surface-2);
  border-radius: 0;
  min-width: 230px;
}
.sidebar__tools-link { color: var(--ink); font-size: var(--t-small); }
.sidebar__tools-link:hover { background: var(--surface); }

/* flags are emoji; the bar says the language in letters instead */
.sidebar__lang { display: flex; gap: 10px; flex: none; margin: 0; }
.sidebar__lang span {
  font-size: 0;
  opacity: 1;
  color: var(--muted);
  transition: color .2s;
}
.sidebar__lang span::after {
  font-size: 1rem;
  letter-spacing: 0.02em;
  font-family: 'Mulish', sans-serif;
}
.sidebar__lang span[data-lang="en"]::after { content: "EN"; }
.sidebar__lang span[data-lang="sk"]::after { content: "SK"; }
.sidebar__lang span[data-lang="uk"]::after { content: "UA"; }
.sidebar__lang span[data-lang="es"]::after { content: "ES"; }
.sidebar__lang span[data-lang="vi"]::after { content: "VI"; }
.sidebar__lang span[data-lang="sr"]::after { content: "SR"; }
.sidebar__lang span:hover { color: var(--ink); }
.sidebar__lang span.active { color: var(--accent); }
.sidebar__lang span.active::after { background: none; }

.sidebar__logo::after {
  content: "story";
  display: inline-block;
  margin-left: 10px;
  font-size: 1.125rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--accent);
  vertical-align: 0.1em;
}

.sidebar__user { margin: 0; flex: none; }
.sidebar__user * { font-size: var(--t-small); }

/* the theme switch goes: this direction is a dark room, not a light page */
.sidebar > .theme-toggle,
.sidebar > .sidebar__controls .theme-toggle { display: none !important; }

.sidebar > .sidebar__controls {
  position: static;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ------------------------------------------------------------ the frame */

.main {
  margin-left: 0;
  margin-right: 0;
  margin-top: var(--bar);
  padding-inline: 0;
}

/* sections that used to bleed under the fixed left column */
.hero, .dest-hero, .page-hero { margin-right: 0; margin-top: 0; }

.container, .wrap {
  width: 100%;
  max-width: 1680px;
  margin-inline: auto;
  padding-inline: var(--margin);
}

/* ------------------------------------------------------- the page heroes */

.page-hero,
.dest-hero {
  display: block;
  text-align: left;
  background: var(--surface) !important;
  min-height: 0;
  padding: clamp(72px, 11vw, 150px) var(--margin) clamp(48px, 7vw, 92px);
  margin: 0;
}
.page-hero::after,
.dest-hero::after { display: none !important; }

.page-hero > *,
.dest-hero > * { max-width: 1680px; margin-inline: auto; }

.page-hero__title,
.dest-hero__title {
  font-family: 'Poiret One', sans-serif !important;
  font-weight: 700;
  text-transform: uppercase;
  font-size: var(--t-giant);
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--ink);
  max-width: 18ch;
}

.page-hero__sub,
.dest-hero__sub,
.dest-hero__count {
  font-size: var(--t-body);
  color: var(--muted);
  margin-top: 20px;
  max-width: 56ch;
}

.dest-hero__back {
  display: inline-block;
  margin-bottom: 24px;
  font-size: var(--t-small);
  color: var(--muted);
  text-decoration: none;
}
.dest-hero__back:hover { color: var(--ink); }
.dest-hero__credit { display: none; }

.page-hero__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.page-hero__tab {
  background: var(--surface-2);
  color: var(--muted);
  border: 0;
  border-radius: 0;
  padding: 10px 16px;
  font-size: var(--t-small);
  text-decoration: none;
}
.page-hero__tab:hover { color: var(--ink); }
.page-hero__tab.active { background: var(--accent); color: var(--accent-ink); }

/* -------------------------------------------- the picks: a list, not cards */

.dest-card {
  display: grid;
  grid-template-columns: minmax(260px, 2fr) 3fr;
  gap: clamp(24px, 3vw, 56px);
  padding: clamp(32px, 4vw, 56px) var(--margin);
  background: none;
  border: 0;
  align-items: start;
  max-width: 1680px;
  margin-inline: auto;
}
.dest-card + .dest-card { border-top: 0; }
.dest-card:nth-child(even) { background: var(--surface); }

.dest-card__image { border-radius: 0; overflow: hidden; }
.dest-card__image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0;
  filter: brightness(0.94) saturate(0.9);
}
.dest-card__image::after { display: none; }

.dest-card__info { padding: 0; }

.dest-card__title {
  font-family: 'Poiret One', sans-serif !important;
  font-weight: 700;
  text-transform: uppercase;
  font-size: var(--t-head);
  line-height: 1.02;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin: 0 0 12px;
}

.dest-card__category {
  display: inline-block;
  background: none;
  color: var(--accent);
  padding: 0;
  border-radius: 0;
  font-size: var(--t-small);
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 10px;
}

.dest-card__address,
.dest-card__desc,
.dest-card__details { color: var(--muted); font-size: var(--t-body); }
.dest-card__address::after { display: none; }
.dest-card__desc { color: var(--ink); max-width: 62ch; margin-bottom: 14px; }
.dest-card__details strong { color: var(--ink); font-weight: 500; }

.dest-card__link {
  display: inline-block;
  margin-top: 16px;
  padding: 0 0 3px;
  border: 0;
  border-bottom: 2px solid var(--accent);
  border-radius: 0;
  background: none;
  color: var(--ink);
  font-size: var(--t-body);
  text-decoration: none;
}
.dest-card__link::after { display: none; }
.dest-card__link:hover { color: var(--accent); }

/* --------------------------------------------------- the rest of the cards */

.inside-card,
.tip-item,
.card {
  background: var(--surface);
  border-radius: 0;
  border: 0;
  box-shadow: none;
  padding: clamp(20px, 2vw, 28px);
  color: var(--ink);
}
.inside-card:hover { background: var(--surface-2); transform: none; }

.inside-card__name,
.tip-item__title {
  font-family: 'Poiret One', sans-serif !important;
  font-weight: 700;
  text-transform: uppercase;
  font-size: var(--t-lead);
  letter-spacing: 0.01em;
  line-height: 1.05;
  color: var(--ink);
}
.inside-card__desc,
.tip-item__desc { color: var(--muted); font-size: var(--t-body); }

.inside__title,
.how__title,
.faq-teaser__title,
.useful-services__title {
  font-family: 'Mulish', sans-serif !important;
  font-weight: 500;
  font-size: var(--t-head);
  letter-spacing: 0.01em;
  color: var(--ink);
  text-align: left;
}

.product-price { color: var(--accent); font-size: var(--t-small); }

/* ------------------------------------------------------------- buttons */

.btn-pill,
.btn-pill--filled,
.btn-pill--outline,
.btn-pill--dark,
.btn-pill--orange,
.btn-pill--outline-light,
button.btn,
.cta-button {
  display: inline-block;
  border-radius: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: var(--surface-2) !important;
  color: var(--ink) !important;
  font-family: 'Mulish', sans-serif !important;
  font-size: var(--t-small) !important;
  font-weight: 500;
  letter-spacing: 0 !important;
  text-transform: none !important;
  padding: 14px 24px !important;
  text-decoration: none;
  transition: background-color .18s, transform .18s var(--ease);
}

.btn-pill--filled,
.btn-pill--orange,
.cta-button {
  background: var(--accent) !important;
  color: var(--accent-ink) !important;
}
.btn-pill--filled:hover,
.btn-pill--orange:hover,
.cta-button:hover { background: #ff5f39 !important; transform: translateY(-2px); }
.btn-pill:hover { background: #35383d !important; }
.btn-pill:active { transform: translateY(0); }

.hero-link { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); }
.hero-link:hover { color: var(--accent); }

/* --------------------------------------------------- tables, forms, code */
/* these keep their own conventions: lines are correct in them */

table { border-collapse: collapse; width: 100%; font-size: var(--t-body); }
th, td { padding: 12px 14px; text-align: left; }
thead th { color: var(--muted); font-weight: 500; }
tbody tr { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
tbody tr:hover { background: var(--surface); }

input, textarea, select {
  background: var(--surface-2);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0;
  padding: 12px 14px;
  font-size: var(--t-body);
}
input::placeholder, textarea::placeholder { color: var(--muted); }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: -2px; }

pre, code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important; }
pre { background: var(--surface); padding: 16px; overflow-x: auto; }

/* ------------------------------------------------------------- the footer */

.footer {
  background: var(--bg);
  color: var(--ink);
  margin: 0;
  padding: clamp(72px, 9vw, 120px) var(--margin) clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3vw, 48px);
  max-width: 1680px;
  margin-inline: auto;
  border-top: 0;
}

.footer__col h4 {
  font-size: var(--t-body);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 14px;
}
.footer__col a {
  display: block;
  font-size: var(--t-small);
  color: var(--muted);
  text-decoration: none;
  padding: 5px 0;
}
.footer__col a:hover { color: var(--ink); }

.footer__disclaimer { color: var(--muted); font-size: var(--t-small); }

/* ------------------------------------------- the widgets the scripts inject */

.cookie-banner,
#cookie-banner {
  background: var(--surface) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: var(--ink) !important;
  font-size: var(--t-small) !important;
}

.notif-toast,
.streak-toast,
.support-widget,
.support-widget__panel {
  border-radius: 0 !important;
  box-shadow: none !important;
  background: var(--surface-2) !important;
  color: var(--ink) !important;
}

/* ------------------------------------------------------------- motion */

@media (prefers-reduced-motion: no-preference) {
  .dest-card,
  .inside-card,
  .footer__col { animation: v2-lift .7s var(--ease) both; }
  @keyframes v2-lift {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: none; }
  }
}

/* --------------------------------------------------------------- phone */

@media (max-width: 1100px) {
  .sidebar__nav { gap: 14px; margin-left: 20px; }
  .sidebar__nav a { font-size: 0.9375rem; }
}

@media (max-width: 860px) {
  /* the bar keeps the wordmark, the language and the account; the links
     come back as a drawer behind the existing hamburger */
  .sidebar {
    height: auto;
    min-height: var(--bar);
    flex-wrap: wrap;
    padding-left: 72px;
  }
  .sidebar__nav {
    display: none;
    order: 5;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    margin: 0 0 18px;
    padding-left: 0;
  }
  .sidebar.open { padding-bottom: 8px; }
  .sidebar.open .sidebar__nav { display: flex; }
  .sidebar__nav a { font-size: var(--t-body); padding: 9px 0; }
  .sidebar__logo { margin-right: auto; }

  .hamburger {
    display: block;
    background: var(--surface-2);
    border-radius: 0;
    color: var(--ink);
    top: 15px;
    left: var(--margin);
  }

  .main { margin-top: var(--bar); }

  .dest-card { grid-template-columns: 1fr; }
  .footer { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .footer { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Pass 2 — the old sheets fight back in places. These rules settle it
   across every page family (tool-, tips-, travel-, region-, blog-, ls-, …).
   ========================================================================== */

/* ---------------------------------------------------- ink, everywhere */
/* the old pages were cream with near-black type; in the dark room every
   piece of running text is the full ink and only notes stay muted */

body :where(h1, h2, h3, h4, h5, h6, p, li, dd, figcaption, blockquote, summary),
body [class*="title"],
body [class*="heading"],
body [class*="__desc"],
body [class*="__text"],
body [class*="__sub"],
body [class*="__body"],
body [class*="intro"] {
  color: var(--ink) !important;
}

body :where(.footer__col a, .footer__disclaimer, [class*="__meta"], [class*="__date"],
            [class*="__address"], [class*="__count"], [class*="credit"], small) {
  color: var(--muted) !important;
}

body [class*="label"]:not(label):not([class*="__title"]) { color: var(--muted) !important; }

/* ------------------------------------------------- no lines, no corners */

body :where(section, article, div, a, li, header, footer, aside, nav, figure, span)[class] {
  border-radius: 0 !important;
  box-shadow: none !important;
}

body :where(section, article, div, a, li, header, footer, aside, nav, figure)[class]:not(.footer):not([data-ui]):not([data-ui] *) {
  border: 0 !important;
}

/* the one line the page keeps: the legal strip's rule, turned into space */
.footer__disclaimer { padding-top: 0; }
.footer > div[style] { border-top: 0 !important; }

/* ------------------------------------------------ heroes on every page */

body [class*="-hero"]:not([class*="__"]),
body .hero {
  background-color: var(--surface) !important;
  background-image: none !important;
  text-align: left !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: clamp(72px, 11vw, 150px) var(--margin) clamp(48px, 7vw, 92px) !important;
}
body [class*="-hero"]:not([class*="__"])::after,
body [class*="-hero"]:not([class*="__"])::before { display: none !important; }

/* the destinations hero keeps Oli's own aerial photograph of the castle */
.dest-hero {
  position: relative;
  background-image: url('../images/dest-hero-cover.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
}
.dest-hero > * { position: relative; z-index: 1; }
.dest-hero::before {
  content: "" !important;
  display: block !important;
  position: absolute;
  inset: 0;
  background: rgba(24, 25, 27, 0.6);
  z-index: 0;
}

body [class*="-hero"]:not([class*="__"]) > *,
body .hero > * { max-width: 1680px; margin-inline: auto; width: 100%; }

body [class*="hero__title"],
body [class*="hero__icon"] + h1,
body [class*="-hero"]:not([class*="__"]) h1 {
  font-family: 'Poiret One', sans-serif !important;
  font-weight: 400 !important;
  text-transform: uppercase;
  font-size: var(--t-giant) !important;
  line-height: 1.06 !important;
  letter-spacing: 0.035em !important;
  max-width: 18ch;
}

body [class*="hero__subtitle"],
body [class*="hero__sub"] {
  font-size: var(--t-lead) !important;
  color: var(--muted) !important;
  max-width: 48ch;
  margin-top: 20px;
}

/* an icon in a tinted square above a centred title is the tell this
   direction exists to remove */
body [class*="hero__icon"],
body [class*="__icon"]:not(.dest-card__link):empty,
body [class*="-icon"][class*="__img"] { display: none !important; }

/* ------------------------------------------------- sections and intros */

body [class*="-section"],
body [class*="__section"] {
  margin-right: 0 !important;
  padding-inline: var(--margin);
  max-width: 1680px;
  margin-inline: auto;
}

body [class*="section__title"],
body [class*="-section"] > h2 {
  font-family: 'Mulish', sans-serif !important;
  font-weight: 500 !important;
  font-size: var(--t-head) !important;
  letter-spacing: 0.02em !important;
  text-align: left !important;
  margin-bottom: 28px;
}

body [class*="intro"] {
  text-align: left !important;
  max-width: 1680px;
  margin-inline: auto;
  padding-inline: var(--margin);
}
body [class*="intro"] :where(p, [class*="__desc"]) { max-width: 62ch; margin-inline: 0; }

/* --------------------------------------------------- every card family */

body [class*="-card"],
body [class*="_card"],
body .card {
  background: var(--surface);
  padding: clamp(18px, 1.8vw, 26px);
  color: var(--ink);
  transition: background-color .2s;
}
body [class*="-card"]:hover { background: var(--surface-2); transform: none; }

body [class*="-card"] :where(img) {
  border-radius: 0 !important;
  width: 100%;
  object-fit: cover;
  filter: brightness(0.96) saturate(0.9);
}

/* Panchang is the display face for the big moments; inside a four-column
   grid an extended uppercase title simply does not fit, so cards are set
   in the text face */
body [class*="card__title"],
body [class*="card__name"] {
  font-family: 'Mulish', sans-serif !important;
  font-weight: 600 !important;
  font-size: var(--t-lead) !important;
  line-height: 1.1 !important;
  letter-spacing: 0.02em !important;
  overflow-wrap: anywhere;
}

/* the picks list has room for the display face */
.dest-card__title {
  font-family: 'Poiret One', sans-serif !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  font-size: var(--t-head) !important;
  line-height: 1.02 !important;
}

body [class*="-grid"] > * { min-width: 0; }
body [class*="-card"] { box-sizing: border-box; min-width: 0; }

body [class*="card__link"] {
  display: inline-block;
  margin-top: 14px;
  padding-bottom: 3px;
  border-bottom: 2px solid var(--accent) !important;
  color: var(--ink) !important;
  text-decoration: none;
  font-size: var(--t-body) !important;
}
body [class*="card__link"]:hover { color: var(--accent) !important; }

body [class*="-grid"] { gap: clamp(16px, 1.8vw, 28px); }

/* a row of identical boxes each topped by a small icon: gone */
body [class*="-card"] > :where(i, .fas, .fab, .far):first-child,
body [class*="quick-link"] :where(i, .fas, .fab):first-child { display: none; }

/* -------------------------------------------- the two injected widgets */

#cookie-banner,
.cookie-banner {
  background: var(--surface-2) !important;
  color: var(--ink) !important;
  border: 0 !important;
  font-size: var(--t-small) !important;
  padding: 16px var(--margin) !important;
}
#cookie-banner a { color: var(--ink) !important; }

.notif-bell {
  position: static !important;
  background: none !important;
  color: var(--muted) !important;
  width: auto !important;
  height: auto !important;
}
.notif-bell:hover { color: var(--ink) !important; }

/* the badge emojis the streak script prints */
.streak-toast__emoji,
.badge__emoji,
[class*="badge"] [class*="emoji"] { display: none !important; }

/* ------------------------------------------- the hamburger, drawn not typed */

.hamburger {
  font-size: 0 !important;
  position: relative;
}
.hamburger::before {
  content: "";
  position: absolute;
  left: 12px; right: 12px; top: 14px;
  height: 2px;
  background: var(--ink);
  box-shadow: 0 6px 0 var(--ink), 0 12px 0 var(--ink);
}

/* ------------------------------------------------ nothing under 13px */

body :where(small, .small, .tiny, [class*="__meta"], [class*="__date"],
            [class*="credit"], [class*="__count"], figcaption, .tag) {
  font-size: var(--t-small) !important;
}

/* ----------------------------------------------------- more motion */

@media (prefers-reduced-motion: no-preference) {
  body [class*="-card"],
  body [class*="-section"] > *,
  body [class*="intro"] > *,
  .footer__col {
    animation: v2-lift .7s var(--ease) both;
  }
  body [class*="-card"]:nth-child(2) { animation-delay: .06s; }
  body [class*="-card"]:nth-child(3) { animation-delay: .12s; }
  body [class*="-card"]:nth-child(4) { animation-delay: .18s; }
  body [class*="-card"]:nth-child(5) { animation-delay: .24s; }
  body [class*="-card"]:nth-child(6) { animation-delay: .30s; }
}

@media (prefers-reduced-motion: reduce) {
  body * { animation: none !important; }
}

/* ==========================================================================
   Pass 3 — one frame, one body size, headlines that hold.
   ========================================================================== */

/* every grid and section sits on the page's one pair of margins */
body [class*="-grid"],
body [class*="-list"],
body [class*="-section"],
body [class*="intro"],
body [class*="-notice"] {
  padding-inline: var(--margin) !important;
  max-width: 1680px;
  margin-inline: auto !important;
  box-sizing: border-box;
}

/* three across, not four: a four-up grid leaves no room for a real title */
body .tips-grid,
body [class*="-grid"]:not([class*="--"]) {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* running text is the body step; notes are the small step */
body [class*="__desc"],
body [class*="__text"],
body [class*="__body"],
body [class*="__sub"]:not([class*="title"]),
body [class*="intro"] p {
  font-size: var(--t-body) !important;
  line-height: 1.55 !important;
  max-width: 68ch;
}

/* the display face is extended; on a phone it needs a smaller step */
body [class*="hero__title"],
body [class*="-hero"]:not([class*="__"]) h1 {
  font-size: clamp(2rem, 7.4vw, 4.75rem) !important;
  overflow-wrap: anywhere;
  max-width: 16ch;
}

/* the cookie strip is fixed; keep it off the last line of the page */
body .main { padding-bottom: 96px; }

#cookie-banner :where(button, .btn, a[class]) {
  background: var(--accent) !important;
  color: var(--accent-ink) !important;
  border: 0 !important;
  padding: 10px 18px !important;
  font-size: var(--t-small) !important;
}
#cookie-banner :where(button, .btn):last-of-type {
  background: var(--surface) !important;
  color: var(--ink) !important;
}

/* the legal strip closed the footer with a hairline; space does it now */
.footer > div[style],
.footer__disclaimer,
.footer > div[style] * { border: 0 !important; }
.footer > div[style] { margin-top: 44px !important; padding-top: 0 !important; }

/* ==========================================================================
   Pass 4 — the old phone rules slid the whole sidebar off the screen.
   A top bar must stay put; only its links hide behind the hamburger.
   ========================================================================== */

@media (max-width: 860px) {
  .sidebar {
    transform: none !important;
    transition: none;
    position: fixed;
    inset: 0 0 auto 0;
    width: 100% !important;
    height: auto !important;
    max-height: 88svh;
    overflow-y: auto;
  }
  .main { margin: var(--bar) 0 0 0 !important; padding-bottom: 96px; }
  .footer { margin: 0 auto !important; }

  /* one column of picks, read top to bottom */
  body [class*="-grid"] { grid-template-columns: 1fr !important; }
  body [class*="hero__title"],
  body [class*="-hero"]:not([class*="__"]) h1 { max-width: 14ch; }
}

/* ==========================================================================
   Pass 5 — the shared inner-page hero: what it is on the left, one of Oli's
   own photographs closing the right. No page opens on a void any more.
   ========================================================================== */

body .v2h {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(28px, 4vw, 72px);
  padding: clamp(80px, 9vw, 132px) var(--margin) clamp(56px, 7vw, 96px) !important;
  background-color: var(--bg) !important;
  background-image: none !important;
}

body .v2h > * { max-width: none; margin-inline: 0; }

.v2h__say { align-self: end; }

.v2h__sub {
  font-size: var(--t-lead) !important;
  line-height: 1.25 !important;
  color: var(--ink) !important;
  max-width: 34ch;
  margin-top: 24px;
}

.v2h__act {
  display: inline-block;
  margin-top: 32px;
  background: var(--accent);
  color: var(--accent-ink) !important;
  padding: 15px 26px;
  font-size: var(--t-body);
  font-weight: 500;
  text-decoration: none;
  transition: background-color .18s, transform .18s var(--ease);
}
.v2h__act:hover { background: #ff5f39; transform: translateY(-2px); }
.v2h__act:active { transform: translateY(0); }

.v2h__shot { margin: 0; }
.v2h__shot img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: brightness(0.92) contrast(1.03) saturate(0.86);
}

/* the destinations hero keeps its own background photograph off now that
   it carries a real one in the frame */
.dest-hero.v2h { background-image: none !important; }
.dest-hero.v2h::before { display: none !important; }

@media (max-width: 860px) {
  body .v2h { grid-template-columns: 1fr !important; align-items: start; }
  .v2h__shot { order: -1; }
  .v2h__shot img { aspect-ratio: 3 / 2; }
  .v2h__sub { max-width: none; }
}

/* ==========================================================================
   Pass 6 — the hero title now lives in half the width, so it is set at the
   half-width step; the cookie strip stops covering the last row of a page.
   ========================================================================== */

body .v2h [class*="hero__title"],
body .v2h h1 {
  font-size: clamp(2rem, 4.4vw, 3.5rem) !important;
  line-height: 0.96 !important;
  max-width: 13ch;
}

/* the consent notice is an overlay, so it is a small block in the corner,
   not a bar across the foot of every page */
#cookie-banner,
.cookie-banner {
  left: var(--margin) !important;
  right: auto !important;
  bottom: var(--margin) !important;
  width: min(380px, calc(100vw - var(--margin) * 2)) !important;
  padding: 18px 20px !important;
  display: block !important;
}
#cookie-banner > * { margin-bottom: 10px; }

@media (max-width: 860px) {
  /* the bar grows a little on a phone: keep the page clear of it */
  .main { margin-top: 84px !important; }
}

/* ==========================================================================
   Pass 7 — v3 tuning. Mulish at the lead step is too wide for a three-up
   card grid, and the consent notice shrinks to a corner on a phone too.
   ========================================================================== */

body [class*="card__title"],
body [class*="card__name"] {
  font-size: clamp(1.25rem, 1.05rem + 0.5vw, 1.5rem) !important;
  line-height: 1.25 !important;
  letter-spacing: 0 !important;
}

/* the display face is thin: at small sizes it needs the text face instead */
body [class*="section__title"],
body [class*="-section"] > h2,
body .inside__title,
body .useful-services__title {
  font-family: 'Poiret One', sans-serif !important;
  letter-spacing: 0.02em !important;
}

@media (max-width: 860px) {
  #cookie-banner,
  .cookie-banner {
    width: calc(100vw - var(--margin) * 2) !important;
    padding: 14px 16px !important;
    font-size: 0.9375rem !important;
  }
}

/* the consent notice folds to a corner tab once the visitor starts reading */
#cookie-banner.cb-collapsed {
  width: auto !important;
  padding: 10px 14px !important;
  cursor: pointer;
  font-size: 0.875rem !important;
}
#cookie-banner.cb-collapsed > * { display: none !important; }
#cookie-banner.cb-collapsed::after {
  content: "Cookies";
  color: var(--muted);
}

/* ==========================================================================
   Pass 8 — the phone bar. One row: the wordmark and the hamburger. Every
   other control lives in the drawer, so the bar never wraps to two rows
   and the page never starts underneath it.
   ========================================================================== */

@media (max-width: 860px) {
  .sidebar {
    height: 64px !important;
    min-height: 0;
    max-height: 64px;
    overflow: hidden;
    flex-wrap: wrap;
    align-items: center;
    row-gap: 0;
    padding: 0 var(--margin) 0 80px !important;
  }
  .sidebar.open {
    height: auto !important;
    max-height: 92svh;
    overflow-y: auto;
    padding-bottom: 20px !important;
  }

  .sidebar__logo { font-size: var(--t-body); margin-right: auto; }

  /* everything but the wordmark waits in the drawer */
  .sidebar__lang,
  .sidebar__user,
  .sidebar > .sidebar__controls { display: none; }
  .sidebar.open .sidebar__lang    { display: flex; order: 6; width: 100%; margin: 8px 0 4px; gap: 18px; }
  .sidebar.open .sidebar__user    { display: block; order: 7; width: 100%; margin-top: 10px; }
  .sidebar.open > .sidebar__controls { display: flex; order: 8; width: 100%; margin-top: 12px; }

  .sidebar__nav { order: 5; margin: 6px 0 0; }

  .hamburger {
    top: 10px !important;
    left: var(--margin) !important;
    width: 44px; height: 44px;
    padding: 0;
  }

  .main { margin-top: 64px !important; }
}

/* ---- pass 9: the bar's small fixes -------------------------------------- */

/* pass 2 made the hamburger relative so its bars could be drawn on it;
   it still has to be a fixed control */
.hamburger { position: fixed !important; }

.sidebar__lang { flex-wrap: nowrap; white-space: nowrap; }
.sidebar__user,
.sidebar .favorites-link,
.sidebar [class*="favorit"] { white-space: nowrap; }
.sidebar [class*="favorit"] { font-size: var(--t-small); }

@media (max-width: 1240px) {
  .sidebar [class*="favorit"] span { display: none; }
}

@media (max-width: 860px) {
  /* only the wordmark and the hamburger stay on the bar */
  .sidebar > :not(.sidebar__logo):not(.sidebar__nav) { display: none; }
  .sidebar.open > * { display: revert; }
  .sidebar.open .sidebar__lang { display: flex; }
  .sidebar.open .sidebar__nav  { display: flex; }
}

/* ==========================================================================
   Pass 10 — one ground, and one box per thing.

   The old pages were cream, so dozens of blocks carry a white background of
   their own; this sheet sets every text colour to a light ink, which left
   them white-on-white. So: nothing keeps a background unless named here,
   and only the OUTER block of a component gets a surface — never its BEM
   children, or a card grows boxes inside boxes.
   ========================================================================== */

body .main :where(section, article, div, a, li, span, header, aside, nav, figure, dl, dd, details, summary)[class]:not([data-ui]):not([data-ui] *):not([class*="btn"]):not([class*="act"]):not([class*="cta"]) {
  background-color: transparent;
}

/* the outer blocks that get a surface back ("__" excludes BEM children) */
body .main :where(
  [class*="-card"], [class*="_card"], .card,
  [class*="quick-link"], [class*="-item"], [class*="-tile"],
  [class*="-post"], [class*="-panel"], [class*="-box"], [class*="-notice"],
  [class*="accordion"], [class*="faq-"]
):not([class*="__"]):not([data-ui]):not([data-ui] *) {
  background-color: var(--surface);
}

body .main :where([class*="-card"], [class*="quick-link"], [class*="-item"], [class*="-post"]):not([class*="__"]):hover {
  background-color: var(--surface-2);
}

/* a card is one block: name, sentence, count. Its parts carry no box. */
body [class*="-card"] [class*="__"],
body [class*="-post"] [class*="__"],
body [class*="quick-link"] [class*="__"] {
  background: none !important;
  padding-inline: 0;
}

/* the picture inside a card needs a height of its own or it collapses */
body :where([class*="-card"], [class*="-post"]) [class*="__image"] {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-bottom: 16px;
}
body :where([class*="-card"], [class*="-post"]) [class*="__image"] img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* an image box with nothing in it is just an empty square */
body :where([class*="-card"], [class*="-post"]) [class*="__image"]:empty { display: none; }

/* the tag that labels a post is a word, not a chip */
body [class*="__tag"],
body [class*="__category"] {
  display: inline-block;
  background: none !important;
  padding: 0 !important;
  color: var(--accent) !important;
  font-size: var(--t-small) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  margin-bottom: 10px;
}

/* the quick-link family: a name, a sentence, room to read them */
body [class*="quick-link"] { display: block; padding: clamp(18px, 1.8vw, 26px); text-decoration: none; }
body [class*="quick-link__name"] { display: block; font-size: var(--t-lead) !important; line-height: 1.2; color: var(--ink) !important; margin-bottom: 8px; }
body [class*="quick-link__desc"] { display: block; font-size: var(--t-body) !important; line-height: 1.55; color: var(--muted) !important; }

/* any inline white left over from the old cream pages */
body [style*="background:#fff"],
body [style*="background: #fff"],
body [style*="background:#ffffff"],
body [style*="background-color:#fff"] { background: var(--surface) !important; }

/* ==========================================================================
   Pass 11 — the language control: one globe, six named languages behind it.
   ========================================================================== */

.langpick { position: relative; flex: none; }

.langpick__btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: 0;
  padding: 8px 6px;
  color: var(--muted);
  font-size: var(--t-small);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color .2s;
  min-height: 44px;
}
.langpick__btn:hover,
.langpick.open .langpick__btn { color: var(--ink); }

.langpick__btn svg {
  width: 19px; height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

/* the six spans are the menu; it is a real overlay, so it may float */
.sidebar .langpick .sidebar__lang {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  flex-direction: column;
  gap: 0;
  min-width: 190px;
  padding: 6px 0;
  background: var(--surface-2);
  z-index: 60;
}
.sidebar .langpick.open .sidebar__lang { display: flex; }

.sidebar .langpick .sidebar__lang span[data-lang] {
  display: block;
  /* the markup still holds a flag emoji; the written name replaces it */
  font-size: 0;
  line-height: 1.4;
  padding: 11px 16px;
  color: var(--ink);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
/* the flag emoji in the markup stays hidden; the name is written out */
.sidebar .langpick .sidebar__lang span[data-lang]::after {
  content: attr(data-name);
  font-size: var(--t-small);
}
.sidebar .langpick .sidebar__lang span[data-lang]:hover { background: var(--surface); }
.sidebar .langpick .sidebar__lang span[data-lang].active { color: var(--accent); }

/* the tag beside a post title is a word, not an outlined chip */
body :where(span, b, strong, em, small)[class] { border: 0 !important; }

@media (max-width: 860px) {
  /* in the drawer the languages are simply a list, no overlay */
  .sidebar.open .langpick { display: block; width: 100%; order: 6; }
  .sidebar .langpick .sidebar__lang {
    position: static;
    min-width: 0;
    background: none;
    padding: 0;
  }
  .sidebar.open .langpick .sidebar__lang { display: flex; }
  .langpick__btn { display: none; }
  .sidebar .langpick .sidebar__lang span[data-lang] { padding: 11px 0; }
}

/* ==========================================================================
   Pass 12 — the article furniture. A pulled-out fact and a note must read
   as separate objects, not as more paragraphs.
   ========================================================================== */

body .main :where([class*="__highlight"], [class*="__tip"], [class*="__note"], .wt) {
  background-color: var(--surface) !important;
  padding: clamp(16px, 1.6vw, 22px) clamp(18px, 1.8vw, 26px) !important;
  margin: 0 0 14px !important;
}
body .main [class*="__tip"] { color: var(--muted) !important; }
body .main [class*="__tip"] p { color: var(--muted) !important; }

body .main [class*="__highlight"] strong { color: var(--accent) !important; }

body .main [class*="blog-article__cta"] {
  background-color: var(--surface) !important;
  padding: clamp(22px, 2.2vw, 32px) !important;
  margin-top: 40px !important;
}
body .main [class*="cta-links"] { background: none !important; display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; }
body .main [class*="cta-links"] a {
  background: var(--accent) !important;
  color: var(--accent-ink) !important;
  padding: 11px 18px;
  text-decoration: none;
  font-size: var(--t-small) !important;
}

/* a long read needs a measure */
body .blog-article__body :where(p, ul, ol, h2, h3) { max-width: 68ch; }
body .blog-article__body h2 { margin: 48px 0 16px; }
body .blog-article__body ul { margin: 0 0 18px; padding-left: 22px; list-style: disc; }
body .blog-article__body li { margin-bottom: 10px; }

/* the article's own picture, set as wide as its measure */
body .blog-article__shot { margin: 0 0 36px; max-width: 68ch; }
body .blog-article__shot img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: brightness(0.92) contrast(1.03) saturate(0.86);
}

/* ==========================================================================
   Pass 13 — the blog article frame. Every article carried a small label
   ABOVE its title (an eyebrow) and sat off the page's margins.
   ========================================================================== */

body .blog-article {
  max-width: 1680px;
  margin-inline: auto;
  padding-inline: var(--margin);
}

/* the label belongs under the title, not above it */
body .blog-article__hero { display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 14px; }
body .blog-article__tag {
  background: none !important;
  padding: 0 !important;
  color: var(--accent) !important;
  font-size: var(--t-small) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
body .blog-article__title {
  font-family: 'Poiret One', sans-serif !important;
  font-size: var(--t-giant) !important;
  line-height: 1.06 !important;
  letter-spacing: 0.02em !important;
  max-width: 20ch;
  margin: 0;
}
body .blog-back { display: inline-block; margin: 0 0 28px; color: var(--muted); text-decoration: none; font-size: var(--t-small); }
body .blog-back:hover { color: var(--ink); }
