/*
Theme Name: Eau Gazeuse Atlas
Description: L'atlas mondial des eaux gazeuses : fiches sourcées, comparateur, classements et bouteilles SVG.
Version: 1.2.2
Author: Eau Gazeuse
Text Domain: eg
Requires PHP: 7.4
*/

:root {
	--ground: #F1F5F3;
	--surface: #FFFFFF;
	--ink: #0F1B1E;
	--ink-2: #24302F;
	--muted: #4A585C;
	--line: #D3DDDA;
	--line-2: #E6EEEC;
	--teal: #0D6B6F;
	--teal-soft: #9CCFD3;
	--deep: #0A2225;
	--deep-2: #102F33;
	--deep-line: #1F4A4E;
	--cyan: #6FD3DD;
	--on-deep: #EAF4F3;
	--on-deep-2: #B9D3D2;
	--copper: #B4581F;
	--soft: #E3ECEA;
	--chip: #E3EFEE;
	--display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
	--body: 'Hanken Grotesk', system-ui, sans-serif;
	--mono: 'DM Mono', ui-monospace, monospace;
	--radius: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; }
img, svg { max-width: 100%; }
a { color: var(--teal); }
a:hover { color: var(--deep); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-soft { background: var(--soft); }
.dark { background: var(--deep); color: var(--on-deep); }
.dark .lead, .dark p { color: var(--on-deep-2); }
.dark a { color: var(--cyan); }

.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.dark .eyebrow { color: var(--cyan); }
.display { font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: .92; letter-spacing: .005em; margin: 0; }
.d1 { font-size: clamp(52px, 7.4vw, 112px); }
.d2 { font-size: clamp(40px, 4.6vw, 60px); }
.d3 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1; }
.lead { font-size: 20px; line-height: 1.55; color: var(--ink-2); max-width: 36em; margin: 0; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: 13px; color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 22px; }
.row { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.row > * { min-width: 0; }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 28px; }
.more { font-weight: 700; padding: 12px 0; }

/* Header */
.topbar { background: var(--deep); color: #CFE6E6; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: 9px 16px; text-align: center; }
.site-header { border-bottom: 1px solid var(--line); background: var(--ground); position: relative; z-index: 20; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: .02em; text-transform: uppercase; line-height: 1; display: block; }
.brand-sub { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); display: block; margin-top: 4px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.nav a { display: block; padding: 12px 14px; font-weight: 600; font-size: 15px; color: var(--ink); text-decoration: none; border-bottom: 2px solid transparent; }
.nav a:hover, .nav .current-menu-item > a, .nav a[aria-current="page"] { color: var(--teal); border-bottom-color: var(--teal); }
.nav-toggle { display: none; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font: 600 15px var(--body); color: var(--ink); }
@media (max-width: 860px) {
	.nav-toggle { display: inline-flex; align-items: center; }
	.nav { display: none; width: 100%; }
	.nav.open { display: block; }
	.nav ul { flex-direction: column; }
}

/* Buttons, chips */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 999px; background: var(--teal); color: #fff; font-weight: 700; text-decoration: none; border: 0; font-family: var(--body); font-size: 16px; cursor: pointer; }
.btn:hover { background: var(--deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--teal); border: 1px solid var(--teal); }
.btn-ghost:hover { background: var(--teal); color: #fff; }
.dark .btn { background: var(--cyan); color: var(--deep); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-block; padding: 9px 15px; border-radius: 999px; border: 1px solid #A8B6B3; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; background: transparent; }
.dark .chip { border-color: #2E5357; color: #DDEDEC; }
.tag { display: inline-block; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: 5px 9px; border-radius: 6px; background: var(--chip); color: var(--deep); }
.tag-dark { background: var(--deep); color: var(--on-deep); }
.tag-dashed { background: transparent; border: 1px dashed var(--muted); color: var(--muted); }
.tag-ok { background: var(--teal); color: #fff; }

/* Hero */
.hero { overflow: hidden; }
.hero .wrap { padding-top: 72px; padding-bottom: 80px; }
.hero-copy { flex: 1 1 520px; }
.hero-art { flex: 1 1 400px; display: flex; justify-content: center; align-items: flex-end; gap: 4%; position: relative; min-height: 420px; }
.hero-art::before { content: ""; position: absolute; left: 50%; bottom: 0; width: min(520px, 100%); aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: var(--deep-2); border: 1px dashed var(--deep-line); }
.hero-art .eg-bottle { position: relative; height: 380px; width: auto; filter: drop-shadow(0 18px 24px rgba(0,0,0,.35)); }
.hero-art .eg-bottle:nth-child(2) { height: 440px; }
.search { display: flex; flex-wrap: wrap; gap: 10px; max-width: 620px; }
.search input { flex: 1 1 260px; min-width: 0; height: 56px; padding: 0 20px; border-radius: 999px; border: 1px solid #2E5357; background: var(--deep-2); color: var(--on-deep); font: 17px var(--body); }
.search button { height: 56px; }

/* Mineral scale */
.scale { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px 36px 28px; margin: 0; }
.scale-track { position: relative; height: 230px; }
.scale-bar { position: absolute; left: 0; right: 0; top: 120px; height: 18px; border-radius: 999px; display: flex; overflow: hidden; }
.scale-bar span:nth-child(1) { background: #DCEFF0; }
.scale-bar span:nth-child(2) { background: #A9DADF; }
.scale-bar span:nth-child(3) { background: #4FA9B1; }
.scale-bar span:nth-child(4) { background: var(--teal); }
.scale-dot { position: absolute; top: 123px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); }
.scale-pin { position: absolute; display: flex; flex-direction: column; gap: 2px; align-items: flex-start; margin-left: -1px; text-decoration: none; color: var(--ink); }
.scale-pin.end { align-items: flex-end; transform: translateX(-100%); margin-left: 1px; }
.scale-pin .v { font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.scale-pin .n { font-weight: 700; font-size: 15px; white-space: nowrap; }
.scale-pin .stem { width: 2px; flex: 1 1 auto; background: var(--ink); }
.scale-legend { display: grid; gap: 0; margin-top: 8px; font-size: 13px; color: var(--muted); }
.scale-legend strong { color: var(--ink); display: block; }
@media (max-width: 700px) { .scale { padding: 24px 16px; overflow-x: auto; } .scale-inner { min-width: 680px; } }

/* Mineralisation dot plot */
.sw { position: relative; margin: 0 6px; }
.sw-zone { position: absolute; bottom: 0; border-radius: 10px; opacity: .55; }
.sw-dot { position: absolute; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%; border: 1.5px solid #fff; box-sizing: border-box; transition: transform .15s ease; z-index: 1; }
.sw-dot.z0 { background: #7CC1C7; } .sw-dot.z1 { background: #3E9CA3; } .sw-dot.z2 { background: #0D6B6F; } .sw-dot.z3 { background: #0A2225; }
.sw-dot.hl { box-shadow: 0 0 0 2.5px var(--copper); }
.sw-dot:hover, .sw-dot:focus-visible { transform: scale(1.6); z-index: 5; outline: none; }
.sw-dot:hover::after, .sw-dot:focus-visible::after { content: attr(data-tip); position: absolute; bottom: 150%; left: 50%; transform: translateX(-50%) scale(.625); transform-origin: bottom center; white-space: nowrap; background: var(--ink); color: #fff; font: 600 20px var(--body); padding: 8px 12px; border-radius: 10px; pointer-events: none; }
.sw-label { position: absolute; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--ink); line-height: 1.15; white-space: nowrap; }
.sw-label.start { transform: none; align-items: flex-start; } .sw-label.end { transform: translateX(-100%); align-items: flex-end; }
.sw-label .n { font-weight: 700; font-size: 14px; } .sw-label .v { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.sw-label:hover .n { color: var(--teal); }
.sw-stem { position: absolute; width: 1.5px; margin-left: -.75px; background: var(--copper); opacity: .8; }
.sw-axis { position: relative; height: 30px; margin: 0 6px; border-top: 2px solid var(--ink); }
.sw-axis span { position: absolute; top: 6px; transform: translateX(-50%); font-family: var(--mono); font-size: 11px; color: var(--muted); }
.sw-axis span::before { content: ""; position: absolute; top: -10px; left: 50%; width: 1px; height: 6px; background: var(--ink); }
.sw-axis em { position: absolute; right: 0; top: -22px; font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.sw-legend { list-style: none; margin: 10px 6px 0; padding: 0; display: flex; }
.sw-legend li { padding-right: 10px; font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sw-legend strong { color: var(--ink); font-size: 13px; }
.sw-key { width: 22px; height: 8px; border-radius: 4px; }
@media (max-width: 700px) { .scale .scale-inner { min-width: 760px; } }

/* Globe */
.globe-section { overflow: hidden; }
.globe-wrap { flex: 1.1 1 420px; min-width: 0; display: flex; justify-content: center; }
.globe { position: relative; width: 100%; max-width: 620px; aspect-ratio: 1; cursor: grab; touch-action: none; }
.globe:active { cursor: grabbing; }
.globe svg { width: 100%; height: 100%; display: block; }
.globe-tip { position: absolute; transform: translate(-50%, calc(-100% - 14px)); background: #fff; color: var(--ink); border-radius: 12px; padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; box-shadow: 0 10px 30px rgba(0,0,0,.35); pointer-events: none; white-space: nowrap; z-index: 3; }
.globe-tip strong { font-family: var(--display); font-size: 22px; text-transform: uppercase; line-height: 1; }
.globe-tip span { color: var(--muted); }
.globe-legend { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 16px; font-size: 14px; color: var(--on-deep-2); }
.globe-legend li { display: flex; align-items: center; gap: 8px; }
.globe-legend span { width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 8px currentColor; }
.globe-fly { display: flex; flex-wrap: wrap; gap: 8px; }
.globe-fly button { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid #2E5357; background: transparent; color: #DDEDEC; font: 600 14px var(--body); cursor: pointer; }
.globe-fly button small { opacity: .6; font-weight: 400; margin-left: 4px; }
.globe-fly button:hover, .globe-fly button[aria-pressed="true"] { background: var(--cyan); border-color: var(--cyan); color: var(--deep); }

/* Water cards */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.w-card { display: flex; flex-direction: column; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-decoration: none; color: var(--ink); transition: transform .2s ease, box-shadow .2s ease; }
.w-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(10, 34, 37, .1); color: var(--ink); }
.w-card .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.w-card .stage { height: 230px; border-radius: 14px; background: radial-gradient(circle at 50% 75%, #FFFFFF 0, #E4ECEA 70%); display: flex; align-items: flex-end; justify-content: center; padding: 12px 0 8px; }
.w-card .stage .eg-bottle { height: 100%; width: auto; }
.w-card .name { font-family: var(--display); font-weight: 800; font-size: 32px; line-height: 1; text-transform: uppercase; }
.w-card .gas { font-size: 14px; color: var(--muted); }
.w-card .foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line-2); padding-top: 12px; }
.w-card .verdict { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.w-card .src { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--muted); }
.minibars { margin: 0; display: flex; flex-direction: column; gap: 7px; }
.minibars div { display: grid; grid-template-columns: 34px minmax(0, 1fr) 82px; gap: 10px; align-items: center; }
.minibars dt { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.minibars dd { margin: 0; }
.minibars .track { height: 8px; border-radius: 999px; background: #E6EEEC; overflow: hidden; }
.minibars .fill { display: block; height: 100%; border-radius: 999px; }
.minibars .val { font-family: var(--mono); font-size: 12px; text-align: right; }
.score { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1; }
.score small { font-family: var(--mono); font-weight: 400; font-size: 12px; color: var(--muted); }
.dots { display: inline-flex; gap: 4px; }
.dots span { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--teal); }
.dots span.on { background: var(--teal); }

/* Duel */
.duel { flex: 1.4 1 520px; background: var(--deep-2); border: 1px solid var(--deep-line); border-radius: var(--radius); padding: 28px; }
.duel-row { display: grid; grid-template-columns: minmax(0, 1fr) 70px minmax(0, 1fr); gap: 10px; align-items: center; padding: 7px 0; }
.duel-row .l { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.duel-row .r { display: flex; align-items: center; gap: 8px; }
.duel-row .k { text-align: center; font-family: var(--mono); font-size: 12px; color: var(--cyan); }
.duel-row .v { font-family: var(--mono); font-size: 12px; color: var(--on-deep-2); }
.duel-row .bar { display: block; height: 12px; border-radius: 999px; }
.duel-head { font-family: var(--display); font-weight: 800; font-size: 30px; text-transform: uppercase; }

/* Country index */
.country-index { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); border-top: 1px solid #C7D3D0; }
.country-index li { border-bottom: 1px solid #C7D3D0; }
.country-index a { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 20px 16px 20px 0; text-decoration: none; color: var(--ink); }
.country-index .cn { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1; text-transform: uppercase; display: block; }
.country-index .cw { font-size: 14px; color: var(--muted); display: block; margin-top: 4px; }
.country-index .cc { font-family: var(--mono); font-size: 13px; color: var(--teal); white-space: nowrap; }

/* Rankings */
.rank-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.rank-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.rank-card ol { list-style: none; margin: 14px 0 0; padding: 0; }
.rank-card li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-2); }
.rank-card li a { font-weight: 600; color: var(--ink); text-decoration: none; }
.rank-card .n, .rank-card .v { font-family: var(--mono); font-size: 13px; }
.rank-card .n { color: var(--muted); }

/* Method */
.method-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 28px; }
.method-grid .num { font-family: var(--mono); font-size: 40px; color: var(--teal); }
.method-grid h3 { margin: 6px 0; font-size: 21px; }
.method-grid p { margin: 0; color: #34413F; }

/* Fiche */
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: #9AA9A6; }
.fiche-top { display: flex; flex-wrap: wrap; gap: 40px; align-items: stretch; margin-top: 24px; }
.bottle-stage { flex: 1 1 380px; min-width: 0; background: var(--deep); border-radius: 24px; padding: 36px; display: flex; align-items: flex-end; justify-content: center; min-height: 540px; position: relative; overflow: hidden; }
.bottle-stage::before { content: ""; position: absolute; left: 50%; bottom: 8%; width: 80%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: var(--deep-2); border: 1px dashed var(--deep-line); }
.bottle-stage .eg-bottle { position: relative; height: 470px; width: auto; filter: drop-shadow(0 20px 26px rgba(0,0,0,.4)); }
.bottle-stage .note { position: absolute; left: 22px; top: 20px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }
.fiche-copy { flex: 1.2 1 480px; min-width: 0; }
.facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 12px; }
.facts > div { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.facts dt { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.facts dd { margin: 6px 0 0; font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 1; }
.facts dd small { font-family: var(--mono); font-weight: 400; font-size: 13px; color: var(--muted); }
.facts dd.txt { font-family: var(--body); font-size: 17px; font-weight: 700; line-height: 1.25; }
.mentions li { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.mentions .on { background: var(--teal); color: #fff; }
.mentions .off { border: 1px dashed #A8B6B3; color: var(--muted); text-decoration: line-through; }
.split { display: flex; flex-wrap: wrap; gap: 28px; }
.panel { flex: 1.5 1 560px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 32px; }
.panel-dark { flex: 1 1 360px; min-width: 0; background: var(--deep); color: var(--on-deep); border-radius: 24px; padding: 32px; }
.compo { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.compo-row { display: grid; grid-template-columns: 130px minmax(0, 1fr) 96px; gap: 14px; align-items: center; }
.compo-row .lab strong { display: block; font-size: 15px; }
.compo-row .lab span { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.compo-row .track { position: relative; height: 22px; border-radius: 6px; background: #EEF3F1; }
.compo-row .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; background: var(--teal-soft); }
.compo-row .fill.over { background: var(--teal); }
.compo-row .th { position: absolute; top: -5px; bottom: -5px; width: 2px; background: var(--ink); }
.compo-row .val { font-family: var(--mono); font-size: 14px; text-align: right; font-weight: 500; }
.compo-row .val sup a { text-decoration: none; }
@media (max-width: 560px) { .compo-row { grid-template-columns: 96px minmax(0, 1fr) 76px; gap: 8px; } }
.avis-score { font-family: var(--display); font-weight: 800; font-size: 72px; line-height: .85; color: var(--teal); }
.avis-score small { font-family: var(--mono); font-weight: 400; font-size: 16px; color: var(--muted); }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.box h3 { margin: 0 0 12px; font-size: 17px; }
.box ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.5; }
.identity div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; padding: 13px 0; border-top: 1px solid #C7D3D0; }
.identity dt { font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.identity dd { margin: 0; font-weight: 600; }
@media (max-width: 560px) { .identity div { grid-template-columns: 1fr; gap: 4px; } }
.sources-list { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 12px; font-size: 15px; line-height: 1.5; }
.sources-list .meta { display: block; font-size: 13px; color: var(--muted); }
.similar { display: flex; gap: 18px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; text-decoration: none; color: var(--ink); }
.similar .eg-bottle { height: 110px; width: auto; flex: 0 0 auto; }
.prose { max-width: 760px; }
.prose p, .prose li { color: var(--ink-2); }
.prose h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 40px; line-height: 1; margin: 48px 0 16px; }
.prose h3 { font-size: 22px; margin: 32px 0 10px; }

/* Registry / tables */
.table-box { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.registry { width: 100%; min-width: 900px; border-collapse: collapse; font-size: 15px; }
.registry th, .registry td { padding: 14px 12px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: middle; }
.registry thead th { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 500; border-bottom-color: var(--line); }
.registry .wname { font-family: var(--display); font-weight: 800; font-size: 24px; text-transform: uppercase; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 12px; }
.registry .wname .eg-bottle { height: 54px; width: auto; }
.registry .num { font-family: var(--mono); font-size: 13px; text-align: right; }
.registry .rs { display: grid; grid-template-columns: minmax(80px, 1fr) 70px; gap: 10px; align-items: center; }
.registry .rs .track { height: 10px; border-radius: 999px; background: #EEF3F1; overflow: hidden; }
.registry .rs .fill { display: block; height: 100%; background: var(--teal); border-radius: 999px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.filters label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.filters select { min-height: 44px; border-radius: 12px; border: 1px solid #A8B6B3; padding: 0 12px; font: 15px var(--body); background: var(--surface); color: var(--ink); }

/* Tabs + ranking */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs button, .tabs a { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid #A8B6B3; background: transparent; color: var(--ink); font: 600 15px var(--body); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.tabs [aria-selected="true"], .tabs .is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.ranked { list-style: none; margin: 0; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; }
.ranked li { display: grid; grid-template-columns: 64px minmax(140px, 240px) minmax(0, 1fr) 110px; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid #EEF3F1; }
.ranked .rn { font-family: var(--display); font-weight: 800; font-size: 44px; line-height: 1; color: var(--teal); }
.ranked .rname { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.ranked .rc { font-size: 13px; color: var(--muted); display: block; }
.ranked .track { position: relative; height: 18px; border-radius: 999px; background: #EEF3F1; }
.ranked .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--teal-soft); }
.ranked .fill.pass { background: var(--teal); }
.ranked .th { position: absolute; top: -6px; bottom: -6px; width: 2px; background: var(--ink); }
.ranked .rv { font-family: var(--mono); font-size: 15px; text-align: right; }
@media (max-width: 700px) { .ranked { padding: 16px; } .ranked li { grid-template-columns: 44px minmax(0, 1fr) 90px; } .ranked .track { grid-column: 1 / -1; } .ranked .rn { font-size: 32px; } }

/* Comparator */
.cmp-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.cmp-pick button { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid #2E5357; background: transparent; color: #DDEDEC; font: 600 15px var(--body); cursor: pointer; }
.cmp-pick button[aria-pressed="true"] { color: #fff; border-width: 2px; }
.cmp-search { min-height: 48px; border-radius: 999px; border: 1px solid #2E5357; background: var(--deep-2); color: var(--on-deep); padding: 0 18px; font: 16px var(--body); width: min(100%, 420px); }
.cmp-table { min-width: 820px; padding: 28px; }
.cmp-grid { display: grid; gap: 18px; align-items: center; padding: 10px 0; }
.cmp-head .eg-bottle { height: 130px; width: auto; }
.cmp-cell { display: grid; grid-template-columns: minmax(0, 1fr) 76px; gap: 10px; align-items: center; }
.cmp-cell .track { height: 14px; border-radius: 999px; background: #EEF3F1; overflow: hidden; }
.cmp-cell .fill { display: block; height: 100%; border-radius: 999px; }
.cmp-cell .v { font-family: var(--mono); font-size: 13px; text-align: right; color: var(--muted); }
.cmp-cell .v.over { color: var(--ink); font-weight: 700; }

/* Footer */
.site-footer { background: var(--deep); color: var(--on-deep-2); padding: 56px 0 40px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.site-footer a { color: var(--on-deep); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 48px; }

/* Bottle micro-animation */
.eg-bottle { display: block; }
@media (prefers-reduced-motion: no-preference) {
	.w-card .eg-bottle, .similar .eg-bottle { transition: transform .35s ease; }
	.w-card:hover .eg-bottle { transform: translateY(-4px) rotate(-2deg); }
}

.sw-axis { margin-bottom: 18px; }
.sw-legend li { flex: 1 1 0 !important; width: auto !important; }

/* Globe tooltip with bottle, controls */
.globe-tip { position: absolute; transform: translate(-50%, calc(-100% - 16px)); background: #fff; color: var(--ink); border-radius: 16px; padding: 12px 16px; display: flex; flex-direction: row; gap: 14px; align-items: flex-end; font-size: 13px; line-height: 1.35; box-shadow: 0 14px 40px rgba(0,0,0,.4); pointer-events: none; white-space: nowrap; z-index: 3; }
.globe-tip.below { transform: translate(-50%, 18px); }
.globe-tip .gt-txt { display: flex; flex-direction: column; gap: 2px; padding-bottom: 2px; }
.globe-tip strong { font-size: 24px; margin-bottom: 2px; }
.globe-tip .gt-bottle { flex: 0 0 auto; width: 54px; height: 150px; display: flex; align-items: flex-end; justify-content: center; }
.globe-tip .gt-bottle .eg-bottle { height: 150px; width: auto; max-width: none; }
.globe-tip .gt-load { width: 30px; height: 120px; border-radius: 12px; background: linear-gradient(90deg, #E6EEEC, #F4F8F7, #E6EEEC); background-size: 200% 100%; animation: egshim 1s linear infinite; }
@keyframes egshim { to { background-position: -200% 0; } }
.globe-tip em { font-style: normal; font-weight: 700; font-size: 12px; color: var(--teal); margin-top: 4px; }
.globe-ctrls { position: absolute; right: 2%; bottom: 4%; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.globe-ctrls button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid #2E5357; background: rgba(10, 34, 37, .85); color: var(--on-deep); font: 600 20px/1 var(--body); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.globe-ctrls button:hover { background: var(--cyan); color: var(--deep); border-color: var(--cyan); }
.globe-hint { margin: 10px 0 0; text-align: center; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--on-deep-2); }
.globe-wrap, .cty-globe { flex-direction: column; align-items: center; }
.globe-legend b { font-weight: 500; opacity: .7; margin-left: 2px; }
.legend-light .globe-legend { color: var(--muted); }

/* Header search + live suggestions */
.hsearch { position: relative; display: flex; align-items: center; flex: 0 1 260px; min-width: 0; }
.hsearch svg { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.hsearch input { width: 100%; height: 44px; padding: 0 16px 0 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 15px var(--body); }
.hsearch input:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px rgba(13, 107, 111, .15); }
@media (max-width: 860px) { .hsearch { order: 3; flex: 1 1 100%; } }
@media (min-width: 861px) { .site-header .wrap { flex-wrap: nowrap; } .nav { margin-left: auto; } }
form.ls { position: relative; }
.ls-pop { position: absolute; left: 0; right: 0; top: calc(100% + 8px); min-width: min(420px, 92vw); max-height: min(70vh, 620px); overflow-y: auto; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 60px rgba(10, 34, 37, .28); padding: 8px; z-index: 50; text-align: left; }
.hsearch .ls-pop { left: auto; right: 0; width: 440px; max-width: 92vw; }
.ls-pop a { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 12px; color: var(--ink); text-decoration: none; }
.ls-pop a.on, .ls-pop a:hover { background: var(--ground); color: var(--ink); }
.ls-bottle { height: 92px; display: flex; align-items: flex-end; justify-content: center; }
.ls-bottle .eg-bottle { height: 92px; width: auto; max-width: none; }
.ls-txt { display: flex; flex-direction: column; min-width: 0; }
.ls-txt strong, .ls-country strong { font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1; text-transform: uppercase; }
.ls-txt small, .ls-country small { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.ls-txt .ls-gas { font-family: var(--mono); font-size: 11px; }
.ls-score { font-family: var(--display); font-weight: 800; font-size: 24px; color: var(--teal); }
.ls-score small { font-family: var(--mono); font-weight: 400; font-size: 11px; color: var(--muted); }
.ls-country { border-bottom: 1px solid var(--line-2); }
.ls-country span:nth-child(2) { display: flex; flex-direction: column; }
.ls-pin { width: 34px; height: 34px; margin: 0 auto; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #1B4E53, #061A1C); box-shadow: inset 0 0 0 2px var(--cyan); }
.ls-go { color: var(--teal); font-weight: 700; }
.ls-pop a.ls-all { display: block; text-align: center; font-weight: 700; color: var(--teal); padding: 12px; margin-top: 4px; border-top: 1px solid var(--line-2); border-radius: 0 0 12px 12px; }
.ls-empty { margin: 0; padding: 14px; font-size: 15px; color: var(--muted) !important; }
form.ls.is-loading input { background-image: linear-gradient(90deg, transparent, rgba(111, 211, 221, .25), transparent); background-size: 200% 100%; animation: egshim 1s linear infinite; }

/* Search page */
.sr-hero .wrap { padding-top: 56px; padding-bottom: 48px; }
.sr-title { margin: 0; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(40px, 5vw, 72px); line-height: .95; color: var(--on-deep); overflow-wrap: anywhere; }
.sr-title .mono { display: block; font-family: var(--mono); font-weight: 400; font-size: 15px; letter-spacing: .08em; color: var(--cyan); margin-bottom: 10px; }
.sr-form { max-width: 720px; }
.sr-countries { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.sr-countries a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 18px 20px; background: var(--deep); color: var(--on-deep); border-radius: 16px; text-decoration: none; }
.sr-countries a:hover { background: var(--teal); color: #fff; }
.sr-countries strong { font-family: var(--display); font-size: 30px; text-transform: uppercase; line-height: 1; }
.sr-countries .small { color: var(--cyan); }

/* Country pages */
.cty-hero { overflow: hidden; }
.cty-hero > .wrap { padding-top: 28px; padding-bottom: 56px; }
.crumbs-dark ol { color: var(--on-deep-2); }
.crumbs-dark a { color: var(--on-deep); }
.cty-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: center; margin-top: 18px; }
@media (max-width: 960px) { .cty-grid { grid-template-columns: 1fr; } }
.cty-copy { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.cty-name { font-size: clamp(60px, 8.4vw, 136px); line-height: .85; color: var(--on-deep); overflow-wrap: anywhere; }
.cty-globe { display: flex; min-width: 0; }
.cty-globe .globe { max-width: 600px; }
.kpis { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 560px; }
.kpis > div { background: var(--deep-2); border: 1px solid var(--deep-line); border-radius: 16px; padding: 14px 16px; }
.kpis dt { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--on-deep-2); }
.kpis dd { margin: 6px 0 0; font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 1; color: var(--on-deep); }
.kpis dd small { font-family: var(--mono); font-weight: 400; font-size: 13px; color: var(--on-deep-2); margin-left: 3px; }
.kpis dd.txt { font-size: 22px; text-transform: uppercase; line-height: 1.05; }
.kpis dd.txt .mono { display: block; font-size: 13px; font-weight: 400; color: var(--cyan); margin-top: 4px; }
.cty-gas { display: flex; flex-direction: column; gap: 10px; }
.gasbar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: #1F4A4E; gap: 2px; }
.gasbar span { display: block; height: 100%; }
.cty-nav { position: sticky; top: 0; z-index: 15; background: rgba(241, 245, 243, .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.cty-nav .wrap { display: flex; gap: 6px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; }
.cty-nav a { flex: 0 0 auto; padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--ink); text-decoration: none; border: 1px solid var(--line); background: var(--surface); }
.cty-nav a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.cty-nav small { font-family: var(--mono); opacity: .6; margin-left: 4px; }
section[id], .cont-block { scroll-margin-top: 70px; }
.podium { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.pod-card { position: relative; display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 18px; align-items: end; height: 100%; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; text-decoration: none; color: var(--ink); transition: transform .2s ease, box-shadow .2s ease; }
.pod-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(10, 34, 37, .12); color: var(--ink); }
.podium li:first-child .pod-card { background: var(--deep); color: var(--on-deep); border-color: var(--deep); }
.podium li:first-child .pod-card .small, .podium li:first-child .pod-verdict { color: var(--on-deep-2); }
.podium li:first-child .score { color: var(--cyan); }
.podium li:first-child .score small { color: var(--on-deep-2); }
.pod-rank { position: absolute; top: 18px; right: 22px; font-family: var(--display); font-weight: 800; font-size: 44px; line-height: 1; color: var(--teal); opacity: .35; }
.podium li:first-child .pod-rank { color: var(--cyan); opacity: .8; }
.pod-stage { height: 250px; display: flex; align-items: flex-end; justify-content: center; }
.pod-stage .eg-bottle { height: 100%; width: auto; max-width: none; filter: drop-shadow(0 12px 16px rgba(0,0,0,.18)); }
.pod-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pod-name { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: .95; text-transform: uppercase; padding-right: 40px; }
.pod-verdict { font-size: 14px; line-height: 1.45; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.cf-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.cf-bar button { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid #A8B6B3; background: var(--surface); color: var(--ink); font: 600 14px var(--body); cursor: pointer; }
.cf-bar button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.cf { display: flex; min-width: 0; }
.cf > .w-card { flex: 1 1 auto; min-width: 0; }
.reg-details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0; overflow: hidden; }
.reg-details summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; padding: 22px 26px; cursor: pointer; list-style: none; }
.reg-details summary::-webkit-details-marker { display: none; }
.reg-details summary::after { content: "+"; margin-left: auto; font: 700 26px/1 var(--body); color: var(--teal); }
.reg-details[open] summary::after { content: "\2212"; }
.reg-details .table-box { border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.reg-details > .small { padding: 0 26px 20px; }
.cty-find { position: relative; display: flex; align-items: center; max-width: 460px; }
.cty-find svg { position: absolute; left: 18px; width: 20px; height: 20px; color: var(--on-deep-2); }
.cty-find input { width: 100%; height: 56px; padding: 0 20px 0 48px; border-radius: 999px; border: 1px solid #2E5357; background: var(--deep-2); color: var(--on-deep); font: 17px var(--body); }
.cty-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.cty-cards a { display: flex; flex-direction: column; gap: 12px; height: 100%; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; text-decoration: none; color: var(--ink); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.cty-cards a:hover { transform: translateY(-2px); border-color: var(--teal); box-shadow: 0 12px 26px rgba(10, 34, 37, .1); color: var(--ink); }
.cc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.cc-name { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: .95; text-transform: uppercase; }
.cc-count { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: .9; color: var(--teal); text-align: right; }
.cc-count small { display: block; font-family: var(--mono); font-weight: 400; font-size: 11px; color: var(--muted); }
.cty-cards .gasbar { height: 8px; background: #E6EEEC; }
.cc-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); }
.cc-best { font-size: 14px; font-weight: 600; border-top: 1px solid var(--line-2); padding-top: 10px; margin-top: auto; }
.cc-best .mono { font-weight: 400; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-right: 4px; }
.sw-axis em { top: 24px; }
.kpis-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
