/* ==========================================================
   Pet Nest Daily — Coastal Pet Care theme
   ========================================================== */
:root {
  --teal: #2F7D7A;
  --teal-dark: #245F5D;
  --teal-50: #E7F1F0;
  --ivory: #FAF7F2;
  --sand: #F1EBE1;
  --blue: #8FB6C8;
  --blue-50: #E3EEF3;
  --terra: #D97A5B;
  --terra-dark: #C0624400;
  --terra-50: #F8E3DA;
  --charcoal: #2E3A40;
  --ink-2: #55636A;
  --line: #E6DFD3;
  --white: #FFFFFF;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(46,58,64,.06), 0 8px 24px rgba(46,58,64,.07);
  --shadow-lg: 0 2px 4px rgba(46,58,64,.06), 0 18px 40px rgba(46,58,64,.12);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--charcoal); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--charcoal); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }

/* ---------- Buttons & pills ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .8em 1.4em; border-radius: 999px;
  font: 600 .98rem/1 var(--sans); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn svg { width: 1em; height: 1em; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 6px 16px rgba(47,125,122,.28); }
.btn-primary:hover { background: var(--teal-dark); color: #fff; }
.btn-secondary { background: rgba(255,255,255,.85); color: var(--teal); border-color: var(--teal); }
.btn-secondary:hover { background: var(--teal-50); color: var(--teal-dark); }
.btn-terra { background: var(--terra); color: #fff; box-shadow: 0 6px 16px rgba(217,122,91,.3); }
.btn-terra:hover { background: #C66A4C; color: #fff; }
.btn-block { width: 100%; justify-content: center; }

.pill { display: inline-block; padding: .3em .85em; border-radius: 999px; font: 600 .75rem/1.4 var(--sans); text-decoration: none; letter-spacing: .01em; }
.pill-dogs { background: var(--blue-50); color: #2B5A6E; }
.pill-cats { background: var(--sand); color: #6B5643; }
.pill-other-pets { background: #E6EFE3; color: #3E6436; }
.pill-pet-health { background: var(--terra-50); color: #9B4529; }
.pill-pet-products { background: #EFE8F4; color: #5D4775; }
.pill-calculators { background: var(--teal-50); color: var(--teal-dark); }
.pill-on-image { position: absolute; left: 12px; bottom: 12px; color: #fff; }
.pill-on-image.pill-dogs { background: var(--teal); }
.pill-on-image.pill-cats { background: var(--terra); }
.pill-on-image.pill-other-pets { background: #4F8C6A; }
.pill-on-image.pill-pet-health { background: #C0624A; }
.pill-on-image.pill-pet-products { background: #7A63A0; }

/* ---------- Header ---------- */
.site-header { background: var(--ivory); position: relative; z-index: 40; }
.header-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 24px; }
.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--charcoal); }
.logo svg { width: 54px; height: 54px; flex: none; color: var(--teal); }
.logo-name { font: 700 clamp(1.45rem, 3vw, 2.15rem)/1 var(--serif); letter-spacing: -.01em; display: block; }
.logo-tag { font-size: clamp(.8rem, 1.4vw, 1rem); color: var(--ink-2); display: block; margin-top: 4px; }
.header-search { display: flex; flex: 0 1 360px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; overflow: hidden; transition: border-color .2s; }
.header-search:focus-within { border-color: var(--teal); }
.header-search input { flex: 1; border: 0; padding: 11px 18px; font: 400 .92rem var(--sans); background: transparent; color: var(--charcoal); min-width: 0; }
.header-search input:focus { outline: none; }
.header-search button { border: 0; background: var(--teal); color: #fff; width: 50px; cursor: pointer; display: grid; place-items: center; }
.header-search button svg { width: 20px; height: 20px; }
.nav-toggle { display: none; border: 0; background: var(--teal); color: #fff; width: 46px; height: 46px; border-radius: 12px; cursor: pointer; place-items: center; }
.nav-toggle svg { width: 24px; height: 24px; }

.main-nav { background: var(--teal); }
.main-nav > .wrap { display: flex; align-items: stretch; justify-content: space-between; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex: 1; justify-content: space-between; }
.nav-item { position: relative; }
.nav-link { display: flex; align-items: center; gap: 6px; padding: 16px 14px; color: #fff; text-decoration: none; font: 600 1rem/1 var(--sans); white-space: nowrap; background: none; border: 0; cursor: pointer; }
.nav-link:hover, .nav-item:hover > .nav-link, .nav-link[aria-current="page"] { background: rgba(255,255,255,.12); color: #fff; }
.nav-link .chev { width: 14px; height: 14px; opacity: .85; transition: transform .2s; }
.nav-item:hover .chev, .nav-item.open .chev { transform: rotate(180deg); }
.nav-search-btn { display: flex; align-items: center; padding: 0 14px; color: #fff; text-decoration: none; }
.nav-search-btn svg { width: 20px; height: 20px; }
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 250px; padding: 10px; margin: 0;
  list-style: none; background: #fff; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.nav-item:hover > .dropdown, .nav-item:focus-within > .dropdown, .nav-item.open > .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a, .dropdown .soon { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border-radius: 8px; color: var(--charcoal); text-decoration: none; font-size: .94rem; }
.dropdown a:hover { background: var(--teal-50); color: var(--teal-dark); }
.dropdown .dd-all { font-weight: 600; color: var(--teal); border-bottom: 1px solid var(--line); border-radius: 8px 8px 0 0; margin-bottom: 4px; }
.dropdown .soon { color: #9AA4A8; cursor: default; }
.dropdown .soon em { font-style: normal; font-size: .7rem; font-weight: 600; background: var(--sand); color: #8A7A68; padding: 2px 8px; border-radius: 999px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: #DCE9EE; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(250,247,242,.96) 0%, rgba(250,247,242,.88) 34%, rgba(250,247,242,.25) 62%, rgba(250,247,242,0) 80%); }
.hero-inner { position: relative; z-index: 1; padding: 84px 24px 150px; }
.hero-copy { max-width: 560px; }
.hero h1 { margin-bottom: .35em; }
.hero p { font-size: 1.15rem; color: #3D4A50; max-width: 480px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1; width: 100%; height: 70px; color: var(--ivory); }

/* ---------- Category cards ---------- */
.cat-cards { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: -110px; }
.cat-card {
  background: #fff; border-radius: var(--radius); padding: 22px 14px 20px; text-align: center; text-decoration: none; color: var(--charcoal);
  box-shadow: var(--shadow); border: 1px solid rgba(230,223,211,.7); transition: transform .2s, box-shadow .2s;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--charcoal); }
.cat-card svg { width: 44px; height: 44px; margin: 0 auto 10px; }
.cat-card strong { display: block; font: 700 1.1rem/1.3 var(--sans); }
.cat-card span { display: block; font-size: .86rem; color: var(--ink-2); line-height: 1.45; margin-top: 4px; }
.ic-teal { color: var(--teal); } .ic-terra { color: var(--terra); }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--ink-2); }
.link-arrow { font-weight: 600; font-size: .92rem; text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.link-arrow svg { width: 14px; height: 14px; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(3px); }
.eyebrow { font: 700 .78rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--terra); margin-bottom: 12px; display: block; }

.guides-layout { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.post-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; border: 1px solid rgba(230,223,211,.6); }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card .thumb { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--blue-50); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover .thumb img { transform: scale(1.04); }
.post-card .body { padding: 18px 18px 16px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font: 700 1.08rem/1.35 var(--sans); margin-bottom: 8px; }
.post-card h3 a { color: var(--charcoal); text-decoration: none; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; }
.post-card { position: relative; }
.post-card .excerpt { font-size: .92rem; color: var(--ink-2); margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .82rem; color: var(--ink-2); margin-top: auto; }
.meta span { display: inline-flex; align-items: center; gap: 6px; }
.meta svg { width: 15px; height: 15px; }

/* Calculator panel */
.calc-panel { position: relative; background: linear-gradient(180deg, #E5EFF2 0%, #EEF4F3 100%); border-radius: var(--radius); padding: 28px 22px 24px; text-align: center; overflow: hidden; }
.calc-panel::before { content: ""; position: absolute; top: -40px; right: -50px; width: 220px; height: 110px; border-radius: 50%; background: rgba(143,182,200,.45); }
.calc-panel > * { position: relative; }
.calc-panel .panel-ic { width: 48px; height: 48px; margin: 0 auto 10px; color: var(--teal); }
.calc-panel h3 { font-size: 1.45rem; margin-bottom: 6px; }
.calc-panel p { font-size: .92rem; color: var(--ink-2); }
.calc-links { list-style: none; margin: 16px 0 18px; padding: 0; display: grid; gap: 10px; }
.calc-links a { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 12px; padding: 11px 14px; text-decoration: none; color: var(--charcoal); font-weight: 600; font-size: .92rem; box-shadow: 0 1px 3px rgba(46,58,64,.07); transition: transform .15s; text-align: left; }
.calc-links a:hover { transform: translateX(3px); color: var(--teal-dark); }
.calc-links a svg { width: 20px; height: 20px; color: var(--teal); flex: none; }
.calc-links a .arr { margin-left: auto; color: var(--charcoal); width: 16px; height: 16px; }

/* Roadmap (dog lifestyle) */
.roadmap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.road-card { background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); text-decoration: none; color: var(--charcoal); display: flex; gap: 16px; align-items: flex-start; transition: border-color .2s, transform .2s; }
.road-card:hover { border-color: var(--teal); transform: translateY(-3px); color: var(--charcoal); }
.road-card .num { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--teal-50); color: var(--teal); display: grid; place-items: center; font: 700 1.05rem var(--serif); }
.road-card h3 { font: 700 1.05rem/1.3 var(--sans); margin-bottom: 4px; }
.road-card p { font-size: .9rem; color: var(--ink-2); margin: 0; }

/* Split feature */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.split-img { border-radius: 28px; overflow: hidden; aspect-ratio: 5/4; box-shadow: var(--shadow-lg); }
.split-img img { width: 100%; height: 100%; object-fit: cover; }
.checklist { list-style: none; padding: 0; margin: 18px 0 26px; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li svg { flex: none; width: 22px; height: 22px; color: var(--teal); margin-top: 2px; }

/* Promo band */
.promo { position: relative; border-radius: 28px; overflow: hidden; background: linear-gradient(100deg, #F3ECE2 0%, #F6F1EA 45%, #EAE2D6 100%); min-height: 220px; display: flex; align-items: center; }
.promo-img { position: absolute; right: 0; top: 0; height: 100%; width: 48%; object-fit: cover; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%); mask-image: linear-gradient(90deg, transparent 0%, #000 30%); }
.promo-copy { position: relative; padding: 40px 44px; max-width: 620px; }
.promo-copy h2 { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.promo-copy h2 svg { width: 40px; height: 40px; color: var(--terra); flex: none; }
.promo-copy p { color: var(--ink-2); margin-bottom: 20px; }

/* Newsletter */
.newsletter { background: var(--teal); color: #fff; border-radius: 28px; padding: 44px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.newsletter::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.07); }
.newsletter h2 { color: #fff; margin-bottom: 8px; }
.newsletter p { color: rgba(255,255,255,.85); margin: 0; }
.nl-form { display: flex; gap: 10px; position: relative; z-index: 1; flex-wrap: wrap; }
.nl-form input { flex: 1 1 220px; border: 0; border-radius: 999px; padding: 14px 20px; font: 400 1rem var(--sans); }
.nl-note { font-size: .82rem; color: rgba(255,255,255,.75); margin-top: 10px; position: relative; z-index: 1; }

/* ---------- Page header / hubs ---------- */
.page-hero { position: relative; padding: 56px 0 48px; background: linear-gradient(180deg, #E8F0F1 0%, var(--ivory) 100%); overflow: hidden; }
.page-hero.has-img { padding: 64px 0 56px; }
.page-hero .ph-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.page-hero .ph-img { border-radius: 26px; overflow: hidden; aspect-ratio: 16/11; box-shadow: var(--shadow-lg); }
.page-hero .ph-img img { width: 100%; height: 100%; object-fit: cover; }
.page-hero p.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 620px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .84rem; color: var(--ink-2); margin-bottom: 18px; list-style: none; padding: 0; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--teal); }
.crumbs svg { width: 14px; height: 14px; }
.crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.crumbs li + li::before { content: "›"; color: #A9B2B6; margin-right: 2px; }

.sub-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.sub-tile { background: #fff; border-radius: var(--radius-sm); padding: 20px; border: 1px solid var(--line); text-decoration: none; color: var(--charcoal); transition: border-color .2s, transform .2s; display: block; }
a.sub-tile:hover { border-color: var(--teal); transform: translateY(-3px); color: var(--charcoal); }
.sub-tile strong { display: flex; justify-content: space-between; align-items: center; font-size: 1.02rem; margin-bottom: 4px; }
.sub-tile p { margin: 0; font-size: .88rem; color: var(--ink-2); }
.sub-tile .count { font-size: .75rem; font-weight: 600; color: var(--teal); background: var(--teal-50); padding: 2px 9px; border-radius: 999px; }
.sub-tile.is-soon { background: transparent; border-style: dashed; }
.sub-tile.is-soon .count { color: #8A7A68; background: var(--sand); }

/* ---------- Article ---------- */
.article-head { padding: 40px 0 8px; }
.article-head h1 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); max-width: 860px; }
.article-head .dek { font-size: 1.15rem; color: var(--ink-2); max-width: 760px; }
.article-head .meta { margin: 18px 0 0; font-size: .88rem; align-items: center; }
.byline { display: flex; align-items: center; gap: 10px; }
.byline .avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; }
.byline .avatar svg { width: 20px; height: 20px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; padding: 28px 0 72px; align-items: start; }
.article-hero-img { border-radius: 22px; overflow: hidden; margin-bottom: 32px; aspect-ratio: 16/9; background: var(--blue-50); }
.article-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.prose { font-size: 1.06rem; line-height: 1.78; max-width: 720px; }
.prose h2 { margin: 1.8em 0 .55em; scroll-margin-top: 24px; font-size: 1.7rem; }
.prose h3 { margin: 1.5em 0 .5em; font: 700 1.15rem/1.35 var(--sans); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--teal); }
.prose strong { color: #1F292E; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: .95rem; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.prose th, .prose td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--teal-50); color: var(--teal-dark); font-weight: 700; }
.prose tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; }
.tldr { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--teal); border-radius: 14px; padding: 20px 24px; margin-bottom: 28px; }
.tldr strong.label { display: block; font: 700 .78rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin-bottom: 10px; }
.tldr ul { margin: 0; }
.callout { border-radius: 14px; padding: 18px 22px; margin: 1.4em 0; font-size: 1rem; display: flex; gap: 14px; }
.callout svg { flex: none; width: 24px; height: 24px; margin-top: 3px; }
.callout p:last-child { margin: 0; }
.callout-vet { background: var(--terra-50); color: #6E3523; }
.callout-vet svg { color: var(--terra); }
.callout-tip { background: var(--blue-50); color: #23495A; }
.callout-tip svg { color: #3D7891; }
.tool-inline { display: flex; align-items: center; gap: 16px; background: var(--teal-50); border-radius: 16px; padding: 18px 20px; margin: 1.6em 0; text-decoration: none; color: var(--charcoal); border: 1px solid #CFE2E0; }
.tool-inline:hover { border-color: var(--teal); color: var(--charcoal); }
.tool-inline svg { width: 36px; height: 36px; color: var(--teal); flex: none; }
.tool-inline strong { display: block; font-size: 1rem; }
.tool-inline span { font-size: .9rem; color: var(--ink-2); }

.faq { margin-top: 2.4em; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--teal); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 20px 16px; color: #3D4A50; }
.faq details > div p:last-child { margin: 0; }

.sidebar { position: sticky; top: 20px; display: grid; gap: 18px; }
.side-box { background: #EEF4F4; border-radius: var(--radius); padding: 20px 22px; }
.side-box h4 { font: 700 1rem/1.3 var(--sans); margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc a { display: flex; gap: 8px; padding: 6px 8px; border-radius: 8px; font-size: .9rem; color: var(--ink-2); text-decoration: none; line-height: 1.4; }
.toc a::before { content: "›"; color: var(--teal); }
.toc a:hover, .toc a.active { background: #fff; color: var(--teal-dark); }
.side-tool { text-align: left; }
.side-tool .head { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .95rem; margin-bottom: 4px; }
.side-tool .head svg { width: 30px; height: 30px; color: var(--teal); }
.side-tool p { font-size: .88rem; color: var(--ink-2); margin: 6px 0 14px; }
.side-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.side-list a { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; text-decoration: none; color: var(--charcoal); font-size: .9rem; font-weight: 600; line-height: 1.35; }
.side-list img { width: 64px; height: 52px; object-fit: cover; border-radius: 10px; }
.side-list a:hover { color: var(--teal-dark); }

.author-box { display: flex; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; margin-top: 2.4em; }
.author-box .avatar { width: 56px; height: 56px; flex: none; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; }
.author-box .avatar svg { width: 30px; height: 30px; }
.author-box p { margin: 0; font-size: .94rem; color: var(--ink-2); }
.updated-note { font-size: .86rem; color: var(--ink-2); border-top: 1px solid var(--line); margin-top: 2em; padding-top: 1em; }

/* ---------- Calculators ---------- */
.calc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; padding: 8px 0 72px; align-items: start; }
.calc-card { background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); padding: 30px; border: 1px solid var(--line); margin-bottom: 36px; }
.calc-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 20px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label, .field .label { font-weight: 600; font-size: .92rem; }
.field .hint { font-size: .8rem; color: var(--ink-2); }
.field input, .field select { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; font: 400 1rem var(--sans); background: var(--ivory); color: var(--charcoal); appearance: none; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F7D7A' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.field input:focus, .field select:focus { outline: none; border-color: var(--teal); background-color: #fff; }
.input-unit { display: flex; }
.input-unit input { border-radius: 12px 0 0 12px; }
.seg { display: inline-flex; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--ivory); }
.input-unit .seg { border-left: 0; border-radius: 0 12px 12px 0; }
.seg button { border: 0; background: transparent; padding: 0 14px; font: 600 .88rem var(--sans); color: var(--ink-2); cursor: pointer; min-height: 46px; }
.seg button[aria-pressed="true"] { background: var(--teal); color: #fff; }
.calc-actions { grid-column: 1 / -1; display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.calc-result { margin-top: 26px; border-radius: 18px; background: linear-gradient(135deg, var(--teal) 0%, #3A8F8B 100%); color: #fff; padding: 26px 28px; display: none; }
.calc-result.show { display: block; animation: rise .35s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.calc-result .big { font: 700 clamp(2.2rem, 5vw, 3rem)/1.1 var(--serif); }
.calc-result .big small { font: 500 1rem var(--sans); opacity: .85; }
.calc-result .sub { opacity: .9; margin-top: 6px; }
.calc-result .stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 18px; }
.calc-result .stat { background: rgba(255,255,255,.13); border-radius: 12px; padding: 12px 14px; }
.calc-result .stat b { display: block; font-size: 1.25rem; }
.calc-result .stat span { font-size: .8rem; opacity: .85; }
.calc-result .note { font-size: .84rem; opacity: .88; margin: 16px 0 0; }
.calc-error { color: #A8452A; font-size: .9rem; grid-column: 1 / -1; display: none; margin: 0; }
.calc-error.show { display: block; }
.calc-hub-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-decoration: none; color: var(--charcoal); display: flex; flex-direction: column; gap: 10px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.calc-hub-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--teal); color: var(--charcoal); }
.calc-hub-card .ic { width: 52px; height: 52px; border-radius: 14px; background: var(--teal-50); color: var(--teal); display: grid; place-items: center; }
.calc-hub-card .ic svg { width: 28px; height: 28px; }
.calc-hub-card h3 { font: 700 1.12rem/1.3 var(--sans); margin: 4px 0 0; }
.calc-hub-card p { font-size: .92rem; color: var(--ink-2); margin: 0; }
.calc-hub-card .go { margin-top: auto; font-weight: 600; color: var(--teal); font-size: .9rem; padding-top: 8px; }

/* ---------- Simple pages ---------- */
.narrow { max-width: 780px; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 28px 0; }
.value { background: #fff; border-radius: 16px; padding: 22px; border: 1px solid var(--line); }
.value svg { width: 30px; height: 30px; color: var(--terra); margin-bottom: 10px; }
.value h3 { font: 700 1.02rem var(--sans); margin-bottom: 6px; }
.value p { font-size: .9rem; color: var(--ink-2); margin: 0; }
.contact-form { display: grid; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.contact-form textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; font: 400 1rem var(--sans); background: var(--ivory); min-height: 150px; resize: vertical; }
.form-ok { display: none; background: var(--teal-50); color: var(--teal-dark); border-radius: 12px; padding: 14px 18px; font-weight: 600; }
.form-ok.show { display: block; }

/* Search */
.search-big { display: flex; max-width: 640px; border: 2px solid var(--teal); border-radius: 999px; overflow: hidden; background: #fff; margin-top: 18px; }
.search-big input { flex: 1; border: 0; padding: 16px 22px; font: 400 1.05rem var(--sans); min-width: 0; }
.search-big input:focus { outline: none; }
.search-big button { border: 0; background: var(--teal); color: #fff; padding: 0 24px; font: 600 1rem var(--sans); cursor: pointer; }
.search-count { color: var(--ink-2); margin-bottom: 20px; }
.search-results { display: grid; gap: 14px; }
.search-hit { display: grid; grid-template-columns: 120px 1fr; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; text-decoration: none; color: var(--charcoal); }
.search-hit:hover { border-color: var(--teal); color: var(--charcoal); }
.search-hit img { width: 120px; height: 90px; object-fit: cover; border-radius: 10px; }
.search-hit .noimg { width: 120px; height: 90px; border-radius: 10px; background: var(--teal-50); display: grid; place-items: center; color: var(--teal); }
.search-hit .noimg svg { width: 36px; height: 36px; }
.search-hit h3 { font: 700 1.05rem/1.35 var(--sans); margin: 6px 0 4px; }
.search-hit p { font-size: .9rem; color: var(--ink-2); margin: 0; }
mark { background: #FBE3B8; color: inherit; border-radius: 3px; padding: 0 2px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: #C9D1D4; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; padding: 60px 24px 36px; }
.site-footer .logo { color: #fff; }
.site-footer .logo svg { color: var(--blue); width: 44px; height: 44px; }
.site-footer .logo-name { font-size: 1.5rem; }
.site-footer .logo-tag { color: #A8B4B9; }
.footer-about { font-size: .92rem; margin-top: 16px; max-width: 340px; }
.site-footer h4 { font: 700 .82rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: #C9D1D4; text-decoration: none; font-size: .92rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 24px 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .84rem; color: #A8B4B9; }
.footer-bottom p { margin: 0; max-width: 760px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .cat-cards { grid-template-columns: repeat(3, 1fr); }
  .guides-layout { grid-template-columns: 1fr; }
  .calc-panel { max-width: 560px; }
  .nav-link { padding: 16px 10px; font-size: .95rem; }
  .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .header-search { display: none; }
  .nav-toggle { display: grid; }
  .main-nav { display: none; }
  .main-nav.open { display: block; }
  .main-nav > .wrap { padding: 0; }
  .nav-list { flex-direction: column; }
  .nav-link { width: 100%; justify-content: space-between; padding: 15px 24px; border-bottom: 1px solid rgba(255,255,255,.12); }
  .nav-search-btn { display: none; }
  .dropdown { position: static; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-radius: 0; background: #2A706D; padding: 6px 12px 10px; }
  .nav-item:hover > .dropdown { display: none; }
  .nav-item.open > .dropdown { display: block; }
  .dropdown a, .dropdown .soon { color: #fff; }
  .dropdown .soon { color: rgba(255,255,255,.55); }
  .dropdown a:hover { background: rgba(255,255,255,.1); color: #fff; }
  .dropdown .dd-all { color: #fff; border-color: rgba(255,255,255,.15); }
  .mobile-search { display: flex !important; margin: 14px 24px 18px; }
  .article-layout, .calc-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .split, .page-hero .ph-grid, .newsletter { grid-template-columns: 1fr; }
  .roadmap { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .value-grid { grid-template-columns: 1fr; }
  .promo-img { width: 100%; opacity: .25; -webkit-mask-image: none; mask-image: none; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .header-top { padding: 14px 16px; }
  .logo svg { width: 42px; height: 42px; }
  .logo { gap: 10px; }
  .hero-inner { padding: 48px 16px 140px; }
  .hero::after { background: linear-gradient(180deg, rgba(250,247,242,.95) 0%, rgba(250,247,242,.82) 55%, rgba(250,247,242,.2) 100%); }
  .hero-img { object-position: 60% 50%; }
  .cat-cards { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: -100px; }
  .card-grid, .card-grid.cols-2, .card-grid.cols-4, .roadmap { grid-template-columns: 1fr; }
  .calc-form { grid-template-columns: 1fr; }
  .calc-card { padding: 20px; }
  .section { padding: 52px 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .promo-copy, .newsletter { padding: 30px 22px; }
  .footer-grid { padding: 44px 16px 28px; }
  .footer-bottom { padding: 18px 16px 26px; }
  .search-hit { grid-template-columns: 1fr; }
  .search-hit img, .search-hit .noimg { width: 100%; height: 150px; }
  .mobile-search { margin: 14px 16px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================
   Interactive features
   ========================================================== */
/* Header search suggestions */
.header-search { position: relative; overflow: visible; }
.header-search button { border-radius: 0 999px 999px 0; }
.suggest { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: 8px; list-style: none; margin: 0; z-index: 60; display: none; }
.suggest.show { display: block; animation: rise .18s ease; }
.suggest a { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: center; padding: 8px; border-radius: 10px; text-decoration: none; color: var(--charcoal); font-size: .88rem; line-height: 1.35; }
.suggest a small { display: block; color: var(--ink-2); font-size: .74rem; }
.suggest a:hover, .suggest a.active { background: var(--teal-50); }
.suggest img, .suggest .s-ic { width: 44px; height: 36px; border-radius: 8px; object-fit: cover; background: var(--teal-50); display: grid; place-items: center; color: var(--teal); }
.suggest .s-ic svg { width: 20px; height: 20px; }
.suggest .s-all { display: block; text-align: center; font-weight: 600; color: var(--teal); padding: 9px; grid-template-columns: none; }

/* Filter chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.chip { border: 1.5px solid var(--line); background: #fff; color: var(--charcoal); padding: 9px 16px; border-radius: 999px; font: 600 .9rem/1 var(--sans); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: all .18s; }
.chip:hover { border-color: var(--teal); color: var(--teal-dark); }
.chip[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: #fff; }
.chip .n { font-size: .74rem; background: rgba(46,58,64,.08); padding: 2px 7px; border-radius: 999px; }
.chip[aria-pressed="true"] .n { background: rgba(255,255,255,.22); }
.center { text-align: center; margin-top: 28px; }
.post-card[hidden] { display: none; }
.filter-anim { animation: rise .3s ease; }

/* Food checker + tips */
.interactive-duo { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; align-items: stretch; }
.food-checker { background: #fff; border-radius: 24px; padding: 30px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.food-checker h2, .food-checker h3, .tip-card h3 { font-size: 1.6rem; display: flex; align-items: center; gap: 10px; }
.food-checker h2 svg, .food-checker h3 svg { width: 30px; height: 30px; color: var(--terra); }
.food-checker > p { color: var(--ink-2); }
.fc-input { display: flex; border: 2px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--ivory); transition: border-color .2s; }
.fc-input:focus-within { border-color: var(--teal); }
.fc-input input { flex: 1; border: 0; background: transparent; padding: 13px 20px; font: 400 1rem var(--sans); min-width: 0; color: var(--charcoal); }
.fc-input input:focus { outline: none; }
.fc-input button { border: 0; background: var(--teal); color: #fff; font: 600 .95rem var(--sans); padding: 0 22px; cursor: pointer; }
.fc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.fc-chips button { border: 1px dashed #CBBFAE; background: transparent; border-radius: 999px; padding: 6px 12px; font: 500 .82rem var(--sans); color: var(--ink-2); cursor: pointer; }
.fc-chips button:hover { border-style: solid; border-color: var(--teal); color: var(--teal-dark); }
.fc-result { margin-top: 18px; border-radius: 16px; padding: 18px 20px; display: none; gap: 14px; align-items: flex-start; }
.fc-result.show { display: flex; animation: rise .3s ease; }
.fc-result .badge { flex: none; font: 700 .74rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 8px 12px; border-radius: 999px; color: #fff; }
.fc-result strong { display: block; font-size: 1.08rem; margin-bottom: 2px; }
.fc-result p { margin: 0; font-size: .93rem; }
.fc-safe { background: #E5F2EA; color: #24543A; } .fc-safe .badge { background: #3E8A5E; }
.fc-caution { background: #FBF0D9; color: #6B4E12; } .fc-caution .badge { background: #C08A1E; }
.fc-toxic { background: var(--terra-50); color: #7A2E17; } .fc-toxic .badge { background: #C0503A; }
.fc-unknown { background: var(--blue-50); color: #23495A; } .fc-unknown .badge { background: #3D7891; }
.fc-foot { font-size: .8rem; color: var(--ink-2); margin: 14px 0 0; }
.prose .food-checker { margin: 1.6em 0; }
.prose .food-checker h3 { margin-top: 0; font-family: var(--serif); font-size: 1.45rem; }

.tip-card { position: relative; background: linear-gradient(150deg, var(--teal) 0%, #3B8E8A 100%); color: #fff; border-radius: 24px; padding: 30px; overflow: hidden; display: flex; flex-direction: column; }
.tip-card::after { content: ""; position: absolute; right: -50px; top: -50px; width: 180px; height: 180px; border-radius: 50%; background: rgba(255,255,255,.08); }
.tip-card h3 { color: #fff; }
.tip-card h3 svg { width: 28px; height: 28px; color: #FBE3B8; }
.tip-num { font: 600 .78rem var(--sans); letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.tip-body { min-height: 130px; margin: 8px 0 18px; }
.tip-body strong { display: block; font: 700 1.25rem/1.3 var(--serif); margin-bottom: 8px; }
.tip-body p { opacity: .92; margin: 0; }
.tip-body a { color: #FBE3B8; font-weight: 600; }
.tip-body.swap { animation: rise .35s ease; }
.tip-nav { display: flex; align-items: center; gap: 10px; margin-top: auto; position: relative; z-index: 1; }
.tip-nav button.arrowbtn { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.5); background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; }
.tip-nav button.arrowbtn:hover { background: rgba(255,255,255,.15); }
.tip-nav svg { width: 18px; height: 18px; }
.tip-dots { display: flex; gap: 6px; margin-left: auto; }
.tip-dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.35); cursor: pointer; transition: width .2s; }
.tip-dots button[aria-current="true"] { background: #fff; width: 22px; border-radius: 999px; }

/* Article tools */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 90; background: transparent; }
.read-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), var(--terra)); transition: width .1s linear; }
.checklist-box { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; margin: 0 0 1.4em; }
.cl-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; font-size: .86rem; color: var(--ink-2); }
.cl-bar { flex: 1; height: 8px; background: var(--sand); border-radius: 999px; overflow: hidden; }
.cl-bar span { display: block; height: 100%; width: 0; background: var(--teal); border-radius: 999px; transition: width .3s; }
.cl-reset { border: 0; background: none; color: var(--teal); font: 600 .82rem var(--sans); cursor: pointer; }
.cl-done .cl-count { color: var(--teal-dark); font-weight: 700; }
.prose ul.checks { list-style: none; padding: 0; margin: 0; }
.prose ul.checks li { margin: 0; }
.prose ul.checks label { display: flex; gap: 12px; align-items: flex-start; padding: 9px 8px; border-radius: 10px; cursor: pointer; transition: background .15s; }
.prose ul.checks label:hover { background: var(--ivory); }
.prose ul.checks input { appearance: none; flex: none; width: 22px; height: 22px; margin: 3px 0 0; border: 2px solid #C9BFB0; border-radius: 7px; cursor: pointer; display: grid; place-items: center; transition: all .15s; background: #fff; }
.prose ul.checks input::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) scale(0); margin-top: -3px; transition: transform .15s; }
.prose ul.checks input:checked { background: var(--teal); border-color: var(--teal); }
.prose ul.checks input:checked::after { transform: rotate(45deg) scale(1); }
.prose ul.checks input:checked + span { color: var(--ink-2); text-decoration: line-through; text-decoration-color: rgba(47,125,122,.5); }

.feedback { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; background: var(--teal-50); border-radius: 16px; padding: 16px 20px; margin-top: 1.6em; font-size: .95rem; }
.feedback .fb-q { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 600; }
.fb-btn { border: 1.5px solid var(--teal); background: #fff; color: var(--teal-dark); border-radius: 999px; padding: 7px 16px; font: 600 .86rem var(--sans); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.fb-btn:hover, .fb-btn[aria-pressed="true"] { background: var(--teal); color: #fff; }
.fb-btn svg { width: 16px; height: 16px; }
.fb-thanks { font-weight: 600; color: var(--teal-dark); }

.to-top { position: fixed; right: 22px; bottom: 22px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--charcoal); color: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .25s, background .2s; z-index: 80; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--teal); }
.to-top svg { width: 20px; height: 20px; transform: rotate(-90deg); }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); background: var(--charcoal); color: #fff; padding: 11px 20px; border-radius: 999px; font-size: .9rem; opacity: 0; transition: all .25s; z-index: 95; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Hero quick picker */
.hero-quick { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .88rem; color: #3D4A50; }
.hero-quick a { background: rgba(255,255,255,.75); border: 1px solid rgba(47,125,122,.25); color: var(--teal-dark); border-radius: 999px; padding: 6px 12px; text-decoration: none; font-weight: 600; font-size: .82rem; backdrop-filter: blur(4px); }
.hero-quick a:hover { background: #fff; border-color: var(--teal); }

@media (max-width: 960px) {
  .interactive-duo { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .food-checker, .tip-card { padding: 22px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-left: -16px; margin-right: -16px; padding: 0 16px 6px; scrollbar-width: none; }
  .chip { flex: none; }
  .to-top { right: 14px; bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
