/* ===========================================================
   Malamig Brew — Design System  (logo-matched: cyan · ice · coffee)
   Cold brew, one bean at a time. Mobile-first.
   =========================================================== */

:root {
  /* Brand — from the logo */
  --cyan:       #18c2ef;  /* malamig — cold, bright */
  --cyan-2:     #36d0f5;
  --cyan-deep:  #0e93bb;  /* accessible link/accent */
  --ice:        #e2f3fb;  /* pale ice */
  --ice-2:      #bfe6f2;

  --espresso:   #241208;  /* darkest coffee */
  --bean:       #3a2114;  /* shield brown */
  --bean-2:     #5a3825;  /* lighter roast */
  --crema:      #b9774a;  /* warm tan */
  --cream:      #f6efe3;  /* soft cream — rating pill bg (was undefined → rating invisible on dark hero) */

  --bg:         #ecf7fc;  /* icy page background */
  --paper:      #ffffff;
  --ink:        #2b1a10;  /* coffee-ink text */
  --muted:      #6c6258;  /* secondary text */
  --line:       #d8e7ee;  /* cool hairline */
  --line-soft:  #e9f2f6;

  --star:       #4a2c18;  /* full coffee-bean fill */
  --star-empty: #d7cec4;  /* empty bean outline */
  --ok:         #2f9d6a;

  --radius:     18px;
  --radius-sm:  12px;
  --shadow:     0 10px 30px -12px rgba(20,40,55,.18);
  --shadow-lg:  0 24px 60px -20px rgba(20,40,55,.30);

  --maxw: 1140px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-logo: "Baloo 2", "Fredoka", system-ui, sans-serif; /* matches the logo wordmark */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 560; line-height: 1.14; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1rem; }
a  { color: var(--cyan-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section--tight { padding: 28px 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .74rem; font-weight: 700; color: var(--cyan-deep); margin: 0 0 .5em; }
.lead { font-size: 1.12rem; color: var(--muted); }
.center { text-align: center; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(36,18,8,.95); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,.08); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-logo); font-size: 1.4rem; color: var(--ice); font-weight: 700; letter-spacing: .005em; }
.brand:hover { text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 9px; display: block; }
.brand b { color: var(--cyan-2); font-weight: 800; }
.nav-links { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ice); font-size: .95rem; font-weight: 500; }
.nav-links a:hover { color: var(--cyan-2); text-decoration: none; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(160deg, var(--cyan) 0%, var(--cyan-deep) 100%); color: #06303c; padding: 60px 0 56px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -80px; top: -60px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255,255,255,.12); }
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 36px; align-items: center; }
.hero-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/3; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* Featured (latest) review card in the hero */
.featured-review { display: flex; gap: 16px; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 14px; }
.fr-video { position: relative; width: 208px; flex: none; aspect-ratio: 9/16; max-height: 430px; border-radius: 12px; overflow: hidden; background: var(--espresso); }
.fr-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.fr-meta { display: flex; flex-direction: column; gap: 9px; justify-content: center; min-width: 0; padding-right: 4px; }
.fr-eyebrow { align-self: flex-start; background: var(--cyan); color: #06303c; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 3px 10px; border-radius: 999px; }
.fr-meta h3 { font-family: var(--font-logo); font-weight: 700; font-size: 1.5rem; margin: 0; color: var(--ink); line-height: 1.12; }
.fr-roaster { color: var(--muted); font-size: .95rem; margin: 0; }
.fr-link { font-weight: 700; color: #fff; background: var(--bean); padding: 9px 14px; border-radius: 9px; align-self: flex-start; font-size: .9rem; }
.fr-link:hover { background: var(--bean-2); text-decoration: none; }
.fr-all { font-weight: 600; color: var(--cyan-deep); font-size: .88rem; align-self: flex-start; }
@media (max-width: 420px) { .fr-video { width: 150px; } .fr-meta h3 { font-size: 1.25rem; } }
.hero h1 { color: #07313d; max-width: 18ch; font-family: var(--font-logo); font-weight: 700; letter-spacing: 0; }
.hero .lead { color: #0a4150; max-width: 52ch; font-weight: 500; }
.hero .eyebrow { color: #ffffff; }
.hero-stats { display: flex; gap: 28px; margin-top: 26px; flex-wrap: wrap; }
.hero-stats .stat b { display: block; font-family: var(--font-display); font-size: 1.7rem; color: #06303c; }
.hero-stats .stat span { font-size: .8rem; color: #0a4150; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }

/* ---------- Bean rating (5 arabica beans) ---------- */
.bean-rating { display: inline-flex; align-items: center; gap: 8px; background: var(--cream); border: 1px solid var(--line); padding: 5px 11px; border-radius: 999px; }
.bean-rating.lg { padding: 7px 14px; }
.bean-rating .beans { display: inline-flex; gap: 3px; }
.bean-rating svg { width: 19px; height: 19px; display: block; }
.bean-rating .num { font-size: .9rem; font-weight: 700; color: var(--ink); }
.bean-rating .num small { color: var(--muted); font-weight: 500; }
.bean-rating.lg svg { width: 30px; height: 30px; }
.bean-rating.lg .num { font-size: 1.1rem; }

/* ---------- Bean grid (landing) — tall video BESIDE the info column ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(440px, 1fr)); gap: 26px; }

.bean-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: row; transition: transform .18s ease, box-shadow .18s ease; }
.bean-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.bean-card .video { position: relative; width: 230px; flex: none; aspect-ratio: 9 / 16; background: var(--espresso); }
.bean-card .video iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--ice); background: linear-gradient(160deg, #2a160b, #120a05); text-align: center; padding: 18px; }
.video-ph .play { width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.12); display: grid; place-items: center; border: 1px solid rgba(255,255,255,.25); }
.video-ph small { color: #b6a392; font-size: .72rem; letter-spacing: .04em; }

.bean-body { flex: 1; min-width: 0; padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 11px; }
.bean-top { display: flex; gap: 14px; align-items: flex-start; }
.bag { width: 70px; height: 88px; flex: none; border-radius: 10px; background: var(--ice); object-fit: contain; box-shadow: var(--shadow); border: 1px solid var(--line); }
.bag.ph { display: grid; place-items: center; color: var(--muted); font-size: .62rem; text-align: center; padding: 6px; line-height: 1.3; }
.bean-meta { min-width: 0; }
.bean-meta h3 { margin: 0 0 2px; font-size: 1.12rem; }
.bean-meta .roaster { color: var(--muted); font-size: .9rem; margin: 0 0 8px; }

.notes { display: flex; flex-wrap: wrap; gap: 6px; }
.note-chip { background: var(--ice); color: #0a4150; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font-size: .78rem; font-weight: 500; }
.note-chip.pending { background: #fff3e0; color: #8a5a1e; border-color: #f0dcc0; font-style: italic; }
.profile-tag { display: inline-block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.profile-tag.chocolate-forward { background: #efe2d4; color: #7a4a23; }
.profile-tag.fruity-floral { background: #dff0e9; color: #1f7a55; }
.profile-tag.balanced { background: #e3eef2; color: #2a6477; }

.know-more { margin-top: auto; align-self: flex-start; font-weight: 600; color: var(--cyan-deep); display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 0; }
.know-more:hover { gap: 9px; text-decoration: none; }

/* ---------- Detail page ---------- */
.detail-hero { background: linear-gradient(160deg, var(--espresso), var(--bean) 80%); color: var(--ice); padding: 30px 0 40px; }
.breadcrumb { font-size: .85rem; color: #cbb9a8; margin-bottom: 18px; }
.breadcrumb a { color: var(--cyan-2); }
.detail-grid { display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: start; }
.detail-media { position: sticky; top: 86px; }
.detail-media .video { aspect-ratio: 9/16; border-radius: var(--radius); overflow: hidden; background: var(--espresso); box-shadow: var(--shadow-lg); }
.detail-media .video iframe { width: 100%; height: 100%; border: 0; }

.detail-head h1 { color: #fff; margin-bottom: 4px; }
.detail-head .roaster { color: var(--cyan-2); font-size: 1.05rem; margin: 0 0 14px; }
.spec-row { display: flex; flex-wrap: wrap; gap: 8px 18px; color: #d8c9b8; font-size: .9rem; margin-bottom: 18px; }
.spec-row b { color: #fff; font-weight: 600; }
.detail-score { display: flex; align-items: center; gap: 16px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-sm); padding: 14px 18px; }
.detail-score .big { font-family: var(--font-display); font-size: 2.4rem; color: var(--cyan-2); line-height: 1; }
.detail-score .big small { font-size: 1rem; color: #cbb9a8; }

.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); margin-bottom: 24px; }
.panel h2 { font-size: 1.35rem; margin-bottom: 12px; }
.panel h2 .icon { color: var(--cyan-deep); }

/* origin */
.origin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 14px; }
.origin-fig { margin: 0; }
.origin-fig img { width: 100%; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--ice); aspect-ratio: 4/3; object-fit: cover; }
.origin-fig figcaption { font-size: .76rem; color: var(--muted); margin-top: 6px; }
.origin-facts { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .9rem; color: var(--muted); }
.origin-facts b { color: var(--ink); }

/* buy box */
.buy-box { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.buy-price .price { font-family: var(--font-display); font-size: 2rem; color: var(--ink); }
.buy-price .per { color: var(--muted); font-size: .9rem; }
.buy-price .per b { color: var(--cyan-deep); font-size: 1.1rem; }
.buy-links { display: flex; flex-direction: column; gap: 10px; }
.btn-buy { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--bean); color: #fff; font-weight: 700; padding: 11px 16px; border-radius: 10px; font-size: .95rem; }
.btn-buy:hover { background: var(--bean-2); text-decoration: none; }
.btn-buy .tag { font-size: .66rem; font-weight: 600; opacity: .75; text-transform: uppercase; letter-spacing: .05em; }
.aff-note { font-size: .76rem; color: var(--muted); margin: 10px 0 0; }

/* spider */
.spider-wrap { display: flex; justify-content: center; }
.spider-wrap svg { width: 100%; max-width: 380px; height: auto; }
.pending-banner { background: #fff3e0; border: 1px solid #f0dcc0; color: #8a5a1e; border-radius: 10px; padding: 10px 14px; font-size: .86rem; margin-bottom: 14px; }

/* watch next */
.watch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.watch-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.watch-card:hover { text-decoration: none; transform: translateY(-3px); transition: transform .15s; }
.watch-card .thumb { aspect-ratio: 4/3; background: linear-gradient(160deg,#2a160b,#120a05); display: grid; place-items: center; color: #b6a392; font-size: .7rem; }
.watch-card .wc-body { padding: 12px 14px; }
.watch-card .wc-body h4 { font-family: var(--font-display); font-size: 1rem; margin: 0 0 3px; color: var(--ink); }
.watch-card .wc-body .roaster { color: var(--muted); font-size: .82rem; margin: 0 0 6px; }

/* ===========================================================
   Why Cold Brew? — infographic page
   =========================================================== */
.why-hero { background: linear-gradient(160deg, var(--cyan), var(--cyan-deep)); color: #06303c; padding: 56px 0; text-align: center; }
.why-hero h1 { color: #06303c; font-family: var(--font-logo); font-weight: 700; }
.why-hero .lead { color: #0a4150; max-width: 56ch; margin: 0 auto; font-weight: 500; }

.info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 20px; }
.info-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow); text-align: center; }
.info-card .big-num { font-family: var(--font-display); font-size: 2.8rem; color: var(--cyan-deep); line-height: 1; }
.info-card .big-num small { font-size: 1.1rem; color: var(--muted); }
.info-card h3 { margin: 10px 0 6px; }
.info-card p { font-size: .92rem; color: var(--muted); margin: 0; }
.info-card .ic { width: 54px; height: 54px; margin: 0 auto 12px; color: var(--cyan-deep); }
.info-card .bean-img { display: block; width: 120px; height: auto; margin: 0 auto 10px; }

/* comparison bars */
.compare { display: grid; gap: 16px; }
.compare-row { display: grid; grid-template-columns: 140px 1fr; gap: 14px; align-items: center; }
.compare-row .label { font-weight: 600; font-size: .92rem; }
.bars { display: grid; gap: 8px; }
.bar { position: relative; height: 30px; border-radius: 8px; background: var(--line-soft); overflow: hidden; }
.bar span { position: absolute; left: 0; top: 0; bottom: 0; display: flex; align-items: center; padding-left: 12px; font-size: .8rem; font-weight: 700; color: #fff; border-radius: 8px; white-space: nowrap; }
.bar.cold span { background: linear-gradient(90deg, var(--cyan-deep), var(--cyan)); }
.bar.hot span { background: linear-gradient(90deg, var(--bean), var(--bean-2)); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px,1fr)); gap: 18px; counter-reset: step; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); position: relative; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -14px; left: 20px; width: 34px; height: 34px; background: var(--cyan); color: #06303c; font-family: var(--font-display); font-weight: 600; border-radius: 50%; display: grid; place-items: center; box-shadow: var(--shadow); }
.step h4 { margin: 8px 0 6px; }
.step p { font-size: .88rem; color: var(--muted); margin: 0; }

/* ---------- Process band: cherry -> green -> roast -> cold brew ---------- */
.process-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.origin-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.process-band.grow5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 760px) { .process-band.grow5 { grid-template-columns: repeat(2, 1fr); } }
.region-group { margin-bottom: 44px; }
.region-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.region-head img { width: 64px; height: 64px; flex: none; object-fit: contain; }
.region-head h2 { margin: 0; }
.region-head .c-sub { margin: 3px 0 0; color: var(--muted); font-size: .95rem; }
.proc { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow); }
.proc img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.proc:hover img { transform: scale(1.05); }
.proc .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 14px 12px; background: linear-gradient(to top, rgba(20,12,6,.82), transparent); color: #fff; }
.proc .cap b { font-family: var(--font-logo); font-weight: 700; font-size: 1.05rem; display: block; }
.proc .cap span { font-size: .78rem; opacity: .85; }

/* ---------- Extraction method cards ---------- */
.method-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.method-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.method-card .m-photo { aspect-ratio: 16/10; overflow: hidden; background: var(--ice); }
.method-card .m-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.method-card:hover .m-photo img { transform: scale(1.04); }
.method-card .m-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.method-card h3 { font-family: var(--font-logo); font-weight: 700; font-size: 1.3rem; margin: 0; }
.method-card .m-tag { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--cyan-deep); }
.method-card p { font-size: .92rem; color: var(--muted); margin: 0; }
.m-specs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.m-spec { background: var(--ice); border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; font-size: .76rem; color: #0a4150; }
.m-spec b { color: var(--ink); font-weight: 600; }
.method-card.is-ours { border: 2px solid var(--cyan); }
.method-card .ours-flag { display: inline-block; background: var(--cyan); color: #06303c; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 2px 9px; border-radius: 6px; }

/* full-width photo strip used on Why page sections */
.photo-strip { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16/6; margin-bottom: 8px; }
.photo-strip img { width: 100%; height: 100%; object-fit: cover; }

/* ===========================================================
   Guides hub + reference pages
   =========================================================== */
.guide-hub { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.guide-link { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.guide-link:hover { text-decoration: none; transform: translateY(-4px); box-shadow: var(--shadow-lg); transition: transform .18s, box-shadow .18s; }
.guide-link .gl-photo { aspect-ratio: 16/9; overflow: hidden; background: var(--ice); }
.guide-link .gl-photo img { width: 100%; height: 100%; object-fit: cover; }
.guide-link .gl-body { padding: 18px 20px 20px; }
.guide-link h3 { font-family: var(--font-logo); font-weight: 700; font-size: 1.25rem; margin: 0 0 6px; color: var(--ink); }
.guide-link p { font-size: .9rem; color: var(--muted); margin: 0; }

/* bean types / generic info cards reuse .info-card */

/* region card: map + text */
.region-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.region-card .r-map { background: var(--ice); aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; padding: 10px; }
.region-card .r-map img { max-width: 100%; max-height: 100%; object-fit: contain; }
.region-card .r-body { padding: 16px 18px 18px; }
.region-card h3 { font-family: var(--font-logo); font-weight: 700; font-size: 1.15rem; margin: 0 0 4px; }
.region-card .r-where { font-size: .8rem; color: var(--cyan-deep); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 8px; }
.region-card p { font-size: .9rem; color: var(--muted); margin: 0; }

/* roaster profile card */
.roaster-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.roaster-card h3 { font-family: var(--font-logo); font-weight: 700; font-size: 1.3rem; margin: 0; }
.roaster-card .r-loc { font-size: .78rem; color: var(--cyan-deep); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.roaster-card p { font-size: .92rem; color: var(--muted); margin: 0; }
.roaster-card .r-link { margin-top: auto; align-self: flex-start; font-weight: 600; color: var(--cyan-deep); }

/* country card (world origins): flag header + regions chips + characteristics */
.country-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.country-head { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--line); background: var(--ice); }
.country-head img { width: 48px; height: 34px; object-fit: cover; border-radius: 4px; box-shadow: var(--shadow); flex: none; }
.country-head h3 { font-family: var(--font-logo); font-weight: 700; font-size: 1.35rem; margin: 0; }
.country-head .c-sub { font-size: .82rem; color: var(--muted); margin: 0; }
.country-body { padding: 18px 20px 20px; }
.region-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.region-chips .rc { background: var(--ice); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: .8rem; font-weight: 600; color: #0a4150; }
.region-chips .rc-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--cyan-deep); font-weight: 700; align-self: center; margin-right: 2px; }
.country-traits { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .86rem; color: var(--muted); margin-bottom: 10px; }
.country-traits b { color: var(--ink); }

/* roast scale */
.roast-scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.roast-step { border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: var(--paper); }
.roast-step .swatch { height: 70px; }
.roast-step .rs-body { padding: 12px 14px; }
.roast-step h4 { font-family: var(--font-logo); font-weight: 700; font-size: .98rem; margin: 0 0 3px; }
.roast-step p { font-size: .8rem; color: var(--muted); margin: 0; }

/* glossary */
.glossary { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.gloss-term { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--cyan); border-radius: var(--radius-sm); padding: 16px 18px; box-shadow: var(--shadow); }
.gloss-term dt { font-family: var(--font-logo); font-weight: 700; font-size: 1.05rem; color: var(--ink); margin: 0 0 4px; }
.gloss-term dd { margin: 0; font-size: .9rem; color: var(--muted); }

/* ---------- Interactive PH map ---------- */
.ph-map-wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 30px; align-items: center; }
.ph-map { background: linear-gradient(160deg, #eaf7fc, #d4ecf5); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); }
.ph-map svg { width: 100%; height: auto; display: block; max-height: 540px; }
.ph-island { fill: #bfe6f2; stroke: #7cc4d8; stroke-width: 2; }
.ph-pin { cursor: pointer; }
.ph-pin circle { fill: var(--crema); stroke: #fff; stroke-width: 2.5; transition: fill .15s, r .15s; }
.ph-pin:hover circle, .ph-pin:focus circle { fill: var(--cyan-deep); }
.ph-pin text { fill: #fff; font-weight: 700; font-size: 13px; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.map-legend { display: grid; gap: 8px; }
.map-legend a { display: flex; align-items: center; gap: 11px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); font-weight: 600; font-size: .92rem; }
.map-legend a:hover { text-decoration: none; border-color: var(--cyan); background: var(--ice); }
.map-legend .num { width: 25px; height: 25px; flex: none; border-radius: 50%; background: var(--crema); color: #fff; display: grid; place-items: center; font-size: .82rem; font-weight: 700; }
.map-legend a small { color: var(--muted); font-weight: 500; margin-left: auto; }

/* region sections (anchored) */
.region-section { scroll-margin-top: 84px; }
.region-block { display: grid; grid-template-columns: 190px 1fr; gap: 26px; align-items: start; padding: 30px 0; border-top: 1px solid var(--line); }
.region-block .r-thumb { background: var(--ice); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px; }
.region-block .r-thumb img { width: 100%; display: block; }
.region-block h3 { font-family: var(--font-logo); font-weight: 700; font-size: 1.4rem; margin: 0 0 2px; }
.region-block .r-where { font-size: .8rem; color: var(--cyan-deep); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 10px; }
.bean-list { display: flex; flex-direction: column; gap: 7px; margin-top: 14px; }
.bean-list .bl-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; color: var(--muted); margin-bottom: 2px; }
.bean-row { display: flex; align-items: baseline; gap: 12px; padding: 8px 13px; background: var(--ice); border: 1px solid var(--line); border-radius: 8px; font-size: .9rem; }
.bean-row .b-brand { font-weight: 700; color: var(--cyan-deep); min-width: 128px; flex: none; }
.bean-row .b-name { color: var(--ink); }
.lzd-shop { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; background: #f57224; color: #fff; font-weight: 700; padding: 9px 15px; border-radius: 9px; font-size: .85rem; }
.lzd-shop:hover { background: #e0631a; text-decoration: none; }
.lzd-shop .lzd-tag { font-size: .64rem; font-weight: 600; opacity: .85; text-transform: uppercase; letter-spacing: .05em; }

/* roaster card photo */
.roaster-card .r-photo { aspect-ratio: 16/10; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 8px; display: flex; align-items: center; justify-content: center; }
.roaster-card .r-photo img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.roaster-mono { width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--font-logo); font-weight: 800; font-size: 1.8rem; color: #fff; background: linear-gradient(160deg, var(--cyan), var(--cyan-deep)); }

@media (max-width: 820px) {
  .ph-map-wrap { grid-template-columns: 1fr; }
  .region-block { grid-template-columns: 1fr; }
  .region-block .r-thumb { max-width: 200px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--espresso); color: #cbb9a8; padding: 40px 0; margin-top: 40px; font-size: .9rem; }
.site-footer a { color: var(--cyan-2); }
.site-footer .brand { margin-bottom: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 420px; }
  .process-band { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .detail-grid { grid-template-columns: 1fr; }
  .detail-media { position: static; max-width: 300px; margin: 0 auto; }
  .buy-box, .origin-grid { grid-template-columns: 1fr; }
  .compare-row { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .bean-card .video { width: 150px; }
  .bean-body { padding: 14px 14px 16px; }
  .bag { width: 56px; height: 70px; }
  .process-band { grid-template-columns: repeat(2, 1fr); }
}
