/* ==========================================================================
   Visit-Thailand.org - main stylesheet (engine and layout from the
   Portugalguiden / Guide-to-London family, palette and details its own).
   Palette "Andaman" (owner's choice 2.10.2026): deep sea blue + coral
   (sunset over the Andaman Sea) + a touch of sun yellow, on a light sky-grey
   ground. Contrast measured: brand 9.5:1, brand-l 6.8:1, accent 5.2:1 on
   white / 4.8:1 on sky-grey, muted text 6.5:1. Sun yellow is decoration only
   (1.8:1) - never text. System fonts only.
   ========================================================================== */

:root {
  --brand:       #0B4A6F;   /* deep sea blue, 9.5:1 on white */
  --brand-d:     #062E45;
  --brand-l:     #14608C;   /* 6.8:1 on white */
  --accent:      #C2410C;   /* coral, 5.2:1 on white, 4.8:1 on sky-grey */
  --accent-h:    #9A3412;
  --accent-soft: #FDECE4;
  --gold:        #F2B544;   /* sun yellow, decoration only */
  --blue:        #1F5F99;
  --bg:          #F2F7FA;   /* light sky-grey */
  --bg-2:        #E2EDF3;
  --white:       #FFFFFF;
  --text:        #18242C;
  --text-light:  #51606B;   /* 6.5:1 on white */
  --border:      #D8E3EA;
  --good:        #2E7D5B;
  --warn:        #B7791F;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;

  --r-sm: 8px;
  --r:    12px;
  --r-lg: 18px;
  --shadow: 0 1px 3px rgba(6,46,69,.06), 0 8px 24px rgba(6,46,69,.06);
  --shadow-lg: 0 12px 40px rgba(6,46,69,.16);
  --maxw: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); color: var(--text); background: var(--white); line-height: 1.65; }
html, body { overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: var(--brand-l); text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent); }
[hidden] { display: none !important; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.2; color: var(--text); letter-spacing: -0.005em; }
h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
h3 { font-size: 1.22rem; }
p  { margin-bottom: 1rem; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.2rem; }
.narrow { max-width: 780px; }
.muted { color: var(--text-light); }

.section { padding: 3.4rem 0; }
.section.alt { background: var(--bg); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 2.2rem; }
.section-head .eyebrow { color: var(--accent); font-family: var(--sans); font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.section-head h2 { margin: .4rem 0 .6rem; }
.section-head h2 a { color: inherit; }
.section-head h2 a:hover { color: var(--accent); }
.section-head p { color: var(--text-light); font-size: 1.05rem; margin: 0; }
.more-link { text-align: center; margin: 1.8rem 0 0; }

/* ---------- Skip link ---------- */
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 1000; background: var(--accent); color: #fff; padding: .6rem 1rem; border-radius: var(--r-sm); transition: top .15s; }
.skip-link:focus { top: 8px; color: #fff; }
#main { scroll-margin-top: 80px; }
#main:focus { outline: none; }

/* ---------- Top navigation ---------- */
.site-nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.97); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: 1320px; margin: 0 auto; padding: .5rem 1rem; display: flex; align-items: center; gap: .6rem; }
.nav-logo { display: flex; align-items: center; gap: .45rem; font-family: var(--serif); font-weight: 700; font-size: 1.12rem; color: var(--brand); letter-spacing: -.01em; white-space: nowrap; }
.nav-logo:hover { color: var(--brand); }
.nav-logo-icon { width: 34px; height: 34px; border-radius: 10px; overflow: hidden; display: block; flex: 0 0 auto; box-shadow: 0 1px 3px rgba(6,46,69,.2); }
.nav-logo-icon svg { width: 100%; height: 100%; display: block; }
.nav-logo-text span { color: var(--accent); }
.nav-menu { display: flex; align-items: center; gap: .1rem; margin-left: auto; }
.nav-link { display: block; padding: .55rem .5rem; border-radius: var(--r-sm); font-size: .86rem; font-weight: 600; color: var(--text); white-space: nowrap; }
.nav-link:hover, .nav-dropdown:focus-within > .nav-link { background: var(--bg); color: var(--accent); }
.nav-dropdown { position: relative; }
.dropdown-menu { position: absolute; top: calc(100% + 4px); left: 50%; transform: translateX(-50%) translateY(8px); background: var(--white); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 1.1rem 1.3rem; display: flex; gap: 1.6rem; min-width: 250px; opacity: 0; visibility: hidden; transition: opacity .16s, transform .16s, visibility .16s; }
.nav-dropdown:hover .dropdown-menu, .nav-dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-dropdown.nav-dd-right .dropdown-menu { left: auto; right: 0; transform: translateY(8px); }
.nav-dropdown.nav-dd-right:hover .dropdown-menu, .nav-dropdown.nav-dd-right:focus-within .dropdown-menu { transform: translateY(0); }
.dropdown-col { min-width: 210px; }
.dropdown-col a { display: block; padding: .3rem 0; font-size: .92rem; color: var(--text); font-weight: 500; white-space: nowrap; }
.dropdown-col a:hover { color: var(--accent); }
.dropdown-col a.more { color: var(--accent); font-weight: 700; margin-top: .3rem; }
.dropdown-col .dd-head { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-light); margin: 0 0 .25rem; padding: 0; }
.dropdown-col a.dd-head:hover { color: var(--accent); }
.dropdown-col + .dropdown-col { border-left: 1px solid var(--border); padding-left: 1.4rem; }
.dropdown-menu { max-width: calc(100vw - 40px); flex-wrap: wrap; }
.dropdown-col .dd-group { margin-bottom: .8rem; }
.dropdown-col .dd-group:last-child { margin-bottom: 0; }

.btn-search-icon { order: 3; background: none; border: none; padding: .5rem; cursor: pointer; color: var(--text); border-radius: var(--r-sm); display: flex; margin-left: .2rem; }
.btn-search-icon:hover { background: var(--bg); color: var(--accent); }
.nav-toggle { order: 4; display: none; background: none; border: none; cursor: pointer; color: var(--text); padding: .35rem; border-radius: var(--r-sm); }
.nav-toggle:hover { background: var(--bg); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .78rem 1.45rem; border-radius: var(--r-sm); font-weight: 700; font-size: .98rem; cursor: pointer; border: 2px solid transparent; transition: .15s; }
.btn-primary { background: var(--accent); color: #fff !important; }
.btn-primary:hover { background: var(--accent-h); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(194,65,12,.35); }
.btn-light { background: rgba(255,255,255,.95); color: var(--brand) !important; }
.btn-light:hover { background: #fff; transform: translateY(-1px); }
.btn-ghost { background: var(--white); color: var(--brand) !important; border-color: var(--border); }
.btn-ghost:hover { border-color: var(--brand); background: var(--bg); }
.btn-lg { padding: .95rem 1.8rem; font-size: 1.04rem; }

/* ---------- Front-page hero with slideshow ----------
   The text sits on its own dark panel, so contrast does not depend on
   whichever photo is showing (measured approach from the sister sites:
   a box behind the text, not a gradient over the photo). */
.hero { position: relative; background: var(--brand-d); color: #fff; overflow: hidden; min-height: 560px; display: flex; align-items: center; }
.hero .slides { position: absolute; inset: 0; }
.hero .slides img.slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.6s ease; }
.hero .slides img.slide.active { opacity: 1; }
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 4.5rem 1.2rem; }
.hero-copy { max-width: 640px; background: rgba(6,46,69,.72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); border-radius: var(--r-lg); padding: 2rem 2.2rem 2.2rem; box-shadow: 0 10px 40px rgba(0,0,0,.25); }
.hero h1 { color: #fff; margin: .6rem 0 1rem; }
.hero p.lead { font-size: 1.12rem; color: rgba(255,255,255,.94); margin-bottom: 1.5rem; }
.hero .pill { display: inline-block; background: var(--accent); color: #fff; font-weight: 700; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; padding: .3rem .8rem; border-radius: 999px; margin: 0; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ---------- Page hero (articles, hubs) ---------- */
.page-hero { position: relative; min-height: 360px; display: flex; align-items: flex-end; color: #fff; background: var(--brand); overflow: hidden; }
.page-hero.no-img { min-height: 0; background: linear-gradient(135deg, var(--brand-d), var(--brand-l)); }
.page-hero .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.page-hero .inner { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; width: 100%; padding: 2.2rem 1.2rem; }
.page-hero .hero-text { display: inline-block; max-width: 48rem; background: rgba(6,46,69,.74); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); border-radius: var(--r); padding: 1.15rem 1.5rem 1.25rem; box-shadow: 0 6px 30px rgba(0,0,0,.25); }
.page-hero.no-img .hero-text { background: none; box-shadow: none; padding-left: 0; }
.page-hero .kicker { display: inline-block; background: var(--accent); color: #fff; font-family: var(--sans); font-weight: 700; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; padding: .26rem .75rem; border-radius: 999px; margin-bottom: .65rem; }
.page-hero h1 { color: #fff; margin: 0 0 .4rem; }
.page-hero p { color: rgba(255,255,255,.93); font-size: 1.08rem; margin: 0; max-width: 46ch; }

/* Credit lines under images (full attribution for CC BY / CC BY-SA). They
   must wrap: a full TASL line is long and must never overflow on mobile. */
.img-credit-inline { display: block; font-size: .74rem; line-height: 1.45; color: var(--text-light); margin: 0; padding: .35rem 1.2rem; max-width: var(--maxw); margin-left: auto; margin-right: auto; overflow-wrap: anywhere; }
.img-credit-inline a { color: var(--text-light); text-decoration: underline; }
.img-credit-inline a:hover { color: var(--accent); }
.page-hero + .img-credit-inline, .hero + .img-credit-inline { text-align: right; }
.article-figure figcaption .img-credit-inline { padding: .35rem 0 0; text-align: left; }
.card-credit { font-size: .76rem; color: var(--text-light); margin: 1rem 0 0; text-align: center; }
.card-credit a { color: var(--text-light); text-decoration: underline; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { background: var(--bg); border-bottom: 1px solid var(--border); font-size: .85rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: .7rem 0; align-items: center; }
.breadcrumb li { color: var(--text-light); }
.breadcrumb li a { color: var(--text-light); }
.breadcrumb li a:hover { color: var(--accent); }
.breadcrumb li::after { content: "/"; margin-left: .4rem; color: #A9B8C2; }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb li:last-child { color: var(--text); font-weight: 600; }

/* ---------- Section cards (front page) ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 1.2rem; }
.scard { background: var(--white); border: 1px solid var(--border); border-top: 4px solid var(--brand); border-radius: var(--r); padding: 1.4rem 1.5rem; box-shadow: var(--shadow); transition: .18s; display: block; }
.scard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-top-color: var(--accent); }
.scard .ico { display: block; font-size: 1.7rem; margin-bottom: .5rem; }
.scard h3 { margin-bottom: .35rem; color: var(--text); }
.scard p { font-size: .9rem; color: var(--text-light); margin: 0; }

/* ---------- Image cards ---------- */
.dest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 1.3rem; }
.dest-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); transition: .18s; display: flex; flex-direction: column; color: var(--text); }
.dest-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--text); }
.dest-card img.ph { display: block; width: 100%; aspect-ratio: 3/2; height: auto; object-fit: cover; background: var(--bg-2); }
.dest-card .ph-empty { aspect-ratio: 3/2; background: linear-gradient(135deg, var(--brand) 0%, var(--brand-l) 100%); }
.dest-card .body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.dest-card h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.dest-card:hover h3 { color: var(--accent); }
.dest-card .grp { font-size: .72rem; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .4rem; }
.dest-card .desc { font-size: .9rem; color: var(--text-light); flex: 1; margin: 0; }

/* ---------- Article ---------- */
.article { max-width: 780px; margin: 0 auto; padding: 2.2rem 1.2rem 3.5rem; }
.article.wide { max-width: var(--maxw); }
.article p, .article ul, .article ol { font-size: 1.06rem; color: #2A313D; }
.article ul, .article ol { margin: 0 0 1.2rem 1.3rem; }
.article li { margin-bottom: .4rem; }
.article h2 { margin: 2.3rem 0 .8rem; scroll-margin-top: 80px; }
.article h3 { margin: 1.6rem 0 .5rem; }
.article a { text-decoration: underline; text-decoration-color: rgba(20,96,140,.35); text-underline-offset: 2px; }
.article a:hover { text-decoration-color: var(--accent); }
.article blockquote { border-left: 4px solid var(--gold); padding: .4rem 0 .4rem 1.2rem; margin: 1.5rem 0; color: var(--text-light); font-style: italic; }
.article p.lead, .lead { font-size: 1.2rem; color: var(--text); line-height: 1.6; }
.byline { font-size: .85rem; color: var(--text-light); margin: 0 0 1.4rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.article .byline { font-size: .85rem; color: var(--text-light); }
.byline a { color: var(--text-light); }

.toc { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r); padding: 1.1rem 1.4rem; margin: 0 0 1.8rem; }
.toc h2 { font-family: var(--sans); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-light); margin: 0 0 .6rem; }
.article .toc ul { list-style: none; margin: 0; display: grid; gap: .3rem; }
.article .toc li { margin: 0; font-size: .95rem; }
.article .toc a { font-weight: 600; text-decoration: none; }

.article-figure { margin: .6rem 0 1.8rem; }
.article-figure img { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--r-lg); display: block; height: auto; }
.article-figure.tall img { max-height: 620px; object-fit: contain; background: var(--bg); }

.callout { background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: var(--r-sm); padding: 1rem 1.25rem; margin: 1.6rem 0; }
.callout.green { background: #E8F3EE; border-color: var(--good); }
.callout.blue { background: #E8F0F8; border-color: var(--blue); }
.callout.warn { background: #FBF3E3; border-color: var(--warn); }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout strong { color: var(--text); }

.factbox { background: var(--bg); border: 1px solid var(--border); border-top: 4px solid var(--brand); border-radius: var(--r); padding: 1.2rem 1.5rem; margin: 1.6rem 0; }
.factbox h3 { margin: 0 0 .8rem; font-size: 1.08rem; }
.factbox dl { display: grid; grid-template-columns: minmax(7rem, auto) 1fr; gap: .45rem 1.1rem; font-size: .95rem; }
.factbox dt { color: var(--text-light); font-weight: 600; }
.factbox dd { font-weight: 500; }

.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.6rem 0; }
.pros-cons > div { border-radius: var(--r); padding: 1.1rem 1.3rem; }
.pros { background: #E8F3EE; }
.cons { background: #FBECEC; }
.pros h4, .cons h4 { margin-bottom: .6rem; font-size: 1rem; }
.article .pros-cons ul { list-style: none; margin: 0; }
.article .pros-cons li { font-size: .94rem; padding-left: 1.4rem; position: relative; margin-bottom: .45rem; }
.pros li::before { content: "✓"; position: absolute; left: 0; color: var(--good); font-weight: 800; }
.cons li::before { content: "✕"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

.table-scroll { overflow-x: auto; margin: 1.5rem 0; -webkit-overflow-scrolling: touch; }
.article table { border-collapse: collapse; width: 100%; font-size: .95rem; background: var(--white); }
.article th, .article td { border: 1px solid var(--border); padding: .6rem .8rem; text-align: left; vertical-align: top; }
.article th { background: var(--bg); font-weight: 700; color: var(--text); font-size: .88rem; }
.article tbody tr:nth-child(even) { background: #F8FBFC; }
.table-scroll table { margin: 0; }

.article ul.sources { font-size: .92rem; }
.article ul.sources li { color: var(--text-light); }
.article-list { columns: 2 280px; }
.article .article-list li { break-inside: avoid; }

/* ---------- Related ---------- */
.related { background: var(--bg); border-top: 1px solid var(--border); }
.related h2 { text-align: center; margin-bottom: 1.4rem; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.chip { background: var(--white); border: 1px solid var(--border); border-radius: 999px; padding: .45rem 1rem; font-size: .88rem; font-weight: 600; color: var(--brand); }
.chip:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Hubs ---------- */
.hub-intro { padding-bottom: 0; }
.hub-intro p { font-size: 1.06rem; color: #2A313D; }
.hub-count { padding-top: 1.4rem; }
.hub-count p { margin: 0; font-size: .9rem; }
.welcome p, .welcome ul { font-size: 1.06rem; color: #2A313D; }
.welcome ul { margin: 0 0 1.2rem 1.3rem; }
.welcome h2 { margin: 2rem 0 .8rem; }
.welcome h2:first-child { margin-top: 0; }
.welcome a { text-decoration: underline; text-decoration-color: rgba(20,96,140,.35); }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-d); color: rgba(255,255,255,.82); padding: 3.2rem 0 1.5rem; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 2rem; }
.footer-brand .nav-logo { color: #fff; margin-bottom: .9rem; }
.footer-brand p { font-size: .88rem; color: rgba(255,255,255,.75); max-width: 24rem; }
.footer-imprint { font-size: .8rem !important; color: rgba(255,255,255,.65) !important; }
.footer-col h2 { font-family: var(--sans); color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: .8rem; }
.footer-col a { display: block; color: rgba(255,255,255,.78); font-size: .9rem; padding: .22rem 0; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.link-button { background: none; border: none; color: rgba(255,255,255,.78); font: inherit; font-size: .9rem; padding: .22rem 0; cursor: pointer; text-align: left; }
.link-button:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 2.2rem; padding-top: 1.3rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; font-size: .8rem; color: rgba(255,255,255,.62); }

/* ---------- Search ---------- */
.search-modal { position: fixed; inset: 0; background: rgba(6,46,69,.6); backdrop-filter: blur(3px); z-index: 200; display: none; padding: 8vh 1rem 0; }
.search-modal.open { display: block; }
.search-box { max-width: 620px; margin: 0 auto; background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.search-box-head { display: flex; align-items: center; padding: .5rem .5rem .5rem 1.2rem; border-bottom: 1px solid var(--border); }
.search-box input { flex: 1; min-width: 0; border: none; outline: none; font-size: 1.05rem; padding: .8rem .5rem; }
.search-box .close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-light); padding: .3rem .8rem; }
.search-res { max-height: 55vh; overflow-y: auto; padding: .6rem; }
.search-res a { display: block; padding: .6rem .8rem; border-radius: var(--r-sm); }
.search-res a:hover { background: var(--bg); }
.search-res a.all { font-weight: 700; color: var(--accent); }
.search-res .t { font-weight: 600; color: var(--text); }
.search-res .s { font-size: .8rem; color: var(--text-light); }
.search-res .empty { padding: 1rem; color: var(--text-light); font-size: .92rem; }
.search-field input { width: 100%; font-size: 1.1rem; padding: .85rem 1rem; border: 2px solid var(--border); border-radius: var(--r); margin-bottom: 1rem; }
.search-field input:focus { outline: none; border-color: var(--brand-l); }
.search-hits { display: grid; gap: .7rem; }
.search-hit { display: block; border: 1px solid var(--border); border-radius: var(--r); padding: .8rem 1rem; text-decoration: none !important; }
.search-hit:hover { border-color: var(--accent); }
.search-hit .s { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); font-weight: 700; }
.search-hit .t { display: block; font-weight: 700; color: var(--text); }
.search-hit .d { display: block; font-size: .9rem; color: var(--text-light); }

/* ---------- Analytics consent banner ----------
   Our own banner covers ONLY Google Analytics. Ads consent is Google's own
   message from AdSense. <html data-consent> is set synchronously in <head>
   from localStorage, so the banner can never flash for someone who has
   already answered (it is hidden by CSS before first paint). */
.cookie-consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999; background: #fff; border-top: 4px solid var(--brand); box-shadow: 0 -4px 24px rgba(6,46,69,.18); }
html[data-consent] .cookie-consent { display: none; }
html[data-consent] .cookie-consent.reopen { display: block; }
.cookie-consent-inner { max-width: 1100px; margin: 0 auto; padding: .95rem 1.2rem; display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; justify-content: space-between; }
.cookie-consent-text { margin: 0; font-size: .92rem; color: var(--text); line-height: 1.45; flex: 1 1 360px; }
.cookie-consent-text a { text-decoration: underline; }
.cookie-consent-btns { display: flex; gap: .6rem; flex: 0 0 auto; }
.btn-consent { cursor: pointer; border-radius: var(--r-sm); padding: .6rem 1.4rem; font-size: .95rem; font-weight: 700; border: 2px solid var(--brand); transition: background .15s, color .15s; }
.btn-consent-accept { background: var(--brand); color: #fff; }
.btn-consent-accept:hover { background: var(--brand-d); border-color: var(--brand-d); }
.btn-consent-deny { background: #fff; color: var(--brand); }
.btn-consent-deny:hover { background: var(--bg); }

/* ---------- Image credits page ---------- */
.bkfilter-row { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.6rem 0 1rem; }
.bkfilter { cursor: pointer; border: 1px solid var(--border); background: var(--white); border-radius: 999px; padding: .45rem .95rem; font-size: .86rem; font-weight: 600; color: var(--text); }
.bkfilter:hover { border-color: var(--brand-l); }
.bkfilter.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.bkcount { display: inline-block; min-width: 1.6em; padding: 0 .35em; margin-left: .25rem; border-radius: 999px; background: rgba(0,0,0,.08); font-size: .78rem; text-align: center; }
.bkfilter.on .bkcount { background: rgba(255,255,255,.2); }
.article .bktable { font-size: .86rem; min-width: 860px; }
.bktable td { overflow-wrap: anywhere; }
.bkimg { width: 150px; }
.bkimg img { width: 120px; height: 80px; object-fit: cover; border-radius: 6px; margin-bottom: .35rem; }
.bkmotif { display: block; font-size: .8rem; color: var(--text); }
.bktitle { display: block; font-size: .72rem; color: var(--text-light); margin-top: .2rem; }
.bkchange { display: block; font-size: .72rem; color: var(--text-light); margin-top: .25rem; }
.unused { color: var(--text-light); font-style: italic; }

/* ---------- Photos inherited from the Joomla articles ----------
   The old bodies carry <img> with inline float styles; bygg.py turns those
   into classes at build time (the article files themselves are untouched). */
.article img.legacy-img { height: auto; border-radius: var(--r); margin: .4rem 0 1.4rem; }
.welcome img.legacy-img.right { float: right; max-width: 40%; margin: .3rem 0 1rem 1.4rem; border-radius: var(--r-sm); }
.article img.legacy-img.right { float: right; max-width: 46%; margin: .3rem 0 1rem 1.4rem; }
.article img.legacy-img.left { float: left; max-width: 46%; margin: .3rem 1.4rem 1rem 0; }
.article h2, .article h3, .article .toc, .article table, .article .callout { clear: both; }
.article::after { content: ""; display: block; clear: both; }
@media (max-width: 600px) {
  .article img.legacy-img.right, .article img.legacy-img.left { float: none; max-width: 100%; margin: .4rem 0 1.2rem; }
}
.sponsored-note { font-size: .82rem; color: var(--text-light); }

/* ---------- Hub: the main guide in full, then the cards ---------- */
.hub-guide { padding-top: 2.2rem; }
.hub-more-head { text-align: left; margin: 0 0 1.4rem; max-width: none; }

/* ---------- Tools ---------- */
.nav-tools { margin-left: .4rem; padding: .45rem .85rem; border-radius: 999px; background: var(--accent); color: #fff !important; font-size: .84rem; font-weight: 700; white-space: nowrap; }
.nav-tools:hover { background: var(--accent-h); }
.tools-lead { text-align: center; max-width: 680px; margin: 0 auto 2rem; }
.tool-page .tool-card { background: var(--bg); border: 1px solid var(--border); border-top: 4px solid var(--brand); border-radius: var(--r); padding: 1.3rem 1.4rem; margin: 1.4rem 0 1.8rem; }
.tool-card label, .tool-card legend { display: block; font-weight: 700; font-size: .95rem; margin: .8rem 0 .35rem; }
.tool-card label.check { display: flex; gap: .55rem; align-items: center; font-weight: 500; margin: .35rem 0; }
.tool-card fieldset { border: none; margin: 0; padding: 0; }
.tool-card select, .tool-card input[type=number], .tool-card input[type=date], .tool-card textarea { width: 100%; max-width: 420px; font: inherit; font-size: 1rem; padding: .6rem .7rem; border: 2px solid var(--border); border-radius: var(--r-sm); background: #fff; color: var(--text); }
.tool-card textarea { max-width: 100%; }
.tool-card select:focus, .tool-card input:focus, .tool-card textarea:focus { outline: none; border-color: var(--brand-l); }
.tool-result { margin-top: 1.1rem; }
.tool-result:empty { display: none; }
.tool-big { font-family: var(--serif); font-size: 1.9rem; font-weight: 700; color: var(--brand); margin: 0 0 .4rem; }
.tool-big.tool-wet { color: var(--accent); }
.tool-warn { background: var(--accent-soft); border-left: 4px solid var(--accent); padding: .6rem .9rem; border-radius: var(--r-sm); }
.tool-table td.tool-good { background: #E3F1EA; } .tool-table td.tool-ok { background: #FBF3E3; } .tool-table td.tool-wet { background: #F7E1D7; }
.tool-table td { text-align: center; font-size: .85rem; } .tool-table th { font-size: .82rem; }
.tool-table td.num, .tool-table th.num { text-align: right; white-space: nowrap; } .tool-table tr.sum th { border-top: 2px solid var(--brand); } .tool-table td:first-child { text-align: left; }
.s-rad { padding: .6rem 0; border-bottom: 1px solid var(--border); }
.article ul.tool-check { list-style: none; margin-left: 0; } .tool-check li { display: flex; gap: .5rem; align-items: flex-start; }
.tool-check input { margin-top: .35rem; } .article ul.tool-no li { color: var(--accent-h); }
@media print { .site-nav, .site-footer, .breadcrumb, .page-hero, .cookie-consent, #t-print, ins.adsbygoogle, .related { display: none !important; } }

/* ---------- Responsive ----------
   ONE one-sided breakpoint for the menu (never a max/min pair: at
   devicePixelRatio 1.5 such a pair misses both). The width is MEASURED in the
   browser 1.10.2026: seven labels + Tools + logo + search need 1,048 px, so the
   menu folds at 1,120 (70 px of air). Re-measure if the menu changes; sjekk.py L
   stops the build if the number of top items changes. */
@media (max-width: 1120px) {
  .site-nav { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  html.menu-open, html.menu-open body { overflow: hidden; }
  .dropdown-col + .dropdown-col { border-left: none; padding-left: 0; }
  .dropdown-col .dd-head { margin-top: .5rem; }
  .nav-menu { position: fixed; top: 55px; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: stretch; padding: .8rem 1rem 1.4rem; gap: 0; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); display: none; max-height: calc(100vh - 55px); max-height: calc(100dvh - 55px); overflow-y: auto; overscroll-behavior: contain; }
  .nav-menu.open { display: flex; }
  .nav-link { padding: .75rem .4rem; font-size: 1rem; border-bottom: 1px solid var(--border); border-radius: 0; }
  .dropdown-menu, .nav-dropdown.nav-dd-right .dropdown-menu { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: none; padding: .2rem 0 .6rem .9rem; min-width: 0; display: none; }
  .nav-dropdown.open .dropdown-menu, .nav-dropdown.nav-dd-right.open .dropdown-menu { display: block; }
  .nav-dropdown > .nav-link { position: relative; padding-right: 2rem; }
  .nav-dropdown > .nav-link::after { content: "+"; position: absolute; right: .6rem; top: 50%; transform: translateY(-50%); font-size: 1.2rem; color: var(--text-light); }
  .nav-dropdown.open > .nav-link::after { content: "\2212"; }
  .nav-dropdown:hover .dropdown-menu, .nav-dropdown.nav-dd-right:hover .dropdown-menu { transform: none; }
  .dropdown-col { min-width: 0; }
  .dropdown-col a { white-space: normal; font-size: .92rem; }
  .nav-toggle { display: flex; }
  .nav-tools { margin: .8rem 0 0; text-align: center; }
  .btn-search-icon { margin-left: auto; }
}
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.6rem; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .hero { min-height: 0; }
  .hero-inner { padding: 2.2rem 1rem; }
  .hero-copy { padding: 1.4rem 1.3rem 1.5rem; }
  .page-hero { min-height: 280px; }
  .page-hero .inner { padding: 1.4rem 1rem; }
  .page-hero .hero-text { padding: .9rem 1.1rem 1rem; }
  .pros-cons { grid-template-columns: 1fr; }
  .section { padding: 2.5rem 0; }
  .factbox dl { grid-template-columns: 1fr; gap: .1rem; }
  .factbox dd { margin-bottom: .45rem; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .cookie-consent-inner { flex-direction: column; align-items: stretch; gap: .7rem; padding: .9rem 1rem; }
  .cookie-consent-text { flex: 0 0 auto; }
  .btn-consent { flex: 1; padding: .6rem .8rem; }
  .cookie-consent-btns { justify-content: flex-end; }
  .btn-lg { padding: .85rem 1.3rem; font-size: .98rem; }
}
@media (max-width: 400px) {
  .nav-inner { padding: .5rem .7rem; gap: .3rem; }
  .nav-logo { font-size: 1rem; gap: .35rem; }
  .nav-logo-icon { width: 30px; height: 30px; }
}
@media (max-width: 340px) {
  .wrap { padding: 0 .8rem; }
  .nav-logo { font-size: .9rem; }
  .btn-search-icon { padding: .3rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .slides img.slide { transition: none; }
  .dest-card, .scard, .btn { transition: none; }
}
