/* ToxicFree Foundation: shared styles for pages in the new design (every page except the homepage).
   The homepage (index/index) still carries its own inline copy of these base styles. */
:root {
  --ink: #0E1E18; --paper: #F4F2EC; --paper-2: #EAE7DF; --white: #FFFFFF; --line: #DEDAD0; --line-2: #CFCBC0;
  --text: #0E1E18; --text-2: #2E3A34; --muted: #4E5A54;
  --mint: #7FDDB0; --green: #1F6B45; --green-2: #15492F; --green-tint: #E6F0E9; --red: #A8231C;
  --serif: 'Instrument Serif', Georgia, serif; --sans: 'Geist', system-ui, -apple-system, sans-serif; --mono: 'Geist Mono', ui-monospace, monospace;
  --pad: clamp(20px, 5.5vw, 80px);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--green); }
a:hover { color: var(--green-2); }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid #2E9E66; outline-offset: 2px; }
::placeholder { color: #6B7771; }
.wrap { max-width: 1440px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.mono { font-family: var(--mono); letter-spacing: 0.1em; font-size: 12px; text-transform: uppercase; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; color: var(--ink); padding: 10px 14px; font-weight: 600; }
.skip:focus { left: 8px; }
.lift { transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease; }
.lift:hover { transform: translateY(-2px); }

/* Nav */
.nav-bar { position: sticky; top: 0; z-index: 50; background: rgba(244, 242, 236, 0.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav { position: relative; height: 84px; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.brand img { width: 46px; height: 46px; }
.brand b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.brand small { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--muted); margin-top: 2px; }
.links { display: flex; gap: 30px; flex-grow: 1; justify-content: center; }
.links a { position: relative; color: var(--text-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.links a:hover, .links a[aria-current="page"] { color: var(--green); }
.links a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; border-radius: 2px; background: var(--green); }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 12px; background: transparent; color: var(--ink); align-items: center; justify-content: center; }
.mobile-menu { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 20px 24px; box-shadow: 0 30px 60px rgba(14, 30, 24, 0.12); }
.mobile-menu a.m-link { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text); font-family: var(--serif); font-size: 30px; text-decoration: none; }
.mobile-menu a.m-link[aria-current="page"] { color: var(--green); }
.mobile-menu .btn-mint { margin-top: 18px; width: 100%; justify-content: center; height: 52px; }

/* Buttons and links */
.btn-mint { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 22px; border-radius: 999px; background: var(--green); color: #fff; font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; border: 0; }
.btn-mint:hover { color: #fff; background: var(--green-2); }
.btn-mint.lg, .btn-ghost.lg { height: 56px; padding: 0 26px; font-size: 16px; }
.btn-ghost { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--ink); color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; background: transparent; }
.btn-ghost:hover { color: var(--ink); border-color: var(--green); background: #fff; }
.btn-dark { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 58px; padding: 0 28px; border: 0; border-radius: 14px; background: var(--ink); color: #fff; font-size: 17px; font-weight: 600; text-decoration: none; }
.btn-dark:hover { color: #fff; background: #193328; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; text-decoration: none; color: var(--green); white-space: nowrap; }
.link-arrow:hover { gap: 11px; }
.cta-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

/* Type */
.eyebrow { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em; color: var(--green); text-transform: uppercase; }
.eyebrow .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
h2.big { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 5vw, 72px); line-height: 1; letter-spacing: -0.015em; }
h2.big em { color: var(--green); }
.lede { margin: 0; max-width: 600px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--muted); }

/* Page hero */
.page-hero { position: relative; overflow: hidden; background-color: var(--paper); background-image: linear-gradient(rgba(31, 107, 69, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(31, 107, 69, 0.07) 1px, transparent 1px); background-size: 56px 56px; }
.page-hero::before { content: ""; position: absolute; width: 1000px; height: 1000px; right: -300px; top: -380px; border-radius: 50%; background: radial-gradient(closest-side, rgba(127, 221, 176, 0.32), rgba(127, 221, 176, 0.10) 55%, transparent 72%); pointer-events: none; }
.ph-body { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; padding-top: 72px; padding-bottom: 88px; }
.page-hero.compact .ph-body { grid-template-columns: minmax(0, 1fr); padding-bottom: 56px; }
.ph-text { display: flex; flex-direction: column; gap: 26px; }
.page-hero h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(52px, 6.4vw, 96px); line-height: 0.96; letter-spacing: -0.02em; }
.page-hero h1 em { color: var(--green); }
.page-hero.compact h1 { font-size: clamp(48px, 5.6vw, 84px); max-width: 1000px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--green); }
.ph-media { position: relative; }
.ph-media img.ph-photo { display: block; width: 100%; height: 560px; object-fit: cover; border-radius: 28px; box-shadow: 0 30px 70px rgba(14, 30, 24, 0.14); }
.ph-badge { position: absolute; left: -32px; bottom: -32px; width: 176px; height: 176px; border-radius: 50%; background: #fff; box-shadow: 0 20px 50px rgba(14, 30, 24, 0.18); display: flex; align-items: center; justify-content: center; }
.ph-badge img { width: 138px; mix-blend-mode: multiply; }

/* Sections */
section.sec { padding-top: clamp(64px, 8vw, 112px); padding-bottom: clamp(64px, 8vw, 112px); scroll-margin-top: 84px; }
.bg-white { background: var(--white); }
.bg-paper { background: var(--paper); }
.bg-tint { background: var(--green-tint); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 64px; margin-bottom: 48px; }
.sec-head .t { display: flex; flex-direction: column; gap: 16px; max-width: 840px; }
.sec-head p { margin: 0; max-width: 420px; font-size: 18px; line-height: 1.55; color: var(--muted); }

/* About: statement */
.statement { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; align-items: start; }
.statement p { margin: 0; font-family: var(--serif); font-size: clamp(32px, 3.6vw, 54px); line-height: 1.12; letter-spacing: -0.01em; }
.statement p em { color: var(--green); }

/* About: how we work */
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.work-card { display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.work-card img { display: block; width: 100%; height: 240px; object-fit: cover; }
.work-card .wc-body { display: flex; flex-direction: column; gap: 14px; padding: 26px 26px 30px; flex-grow: 1; }
.work-card .mono { color: var(--green); }
.work-card h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.05; }
.work-card p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted); flex-grow: 1; }

/* About: what we cover */
.cover-list { border-top: 1px solid var(--line); }
.cover-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.cover-row .n { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.cover-row h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3vw, 42px); line-height: 1; }
.cover-row .go { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.chip-link { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--text-2); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.chip-link:hover { border-color: var(--green); color: var(--green); }

/* About: board */
.board-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.person { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 22px; padding: 26px; border-radius: 24px; background: #fff; border: 1px solid var(--line); }
.avatar { width: 112px; height: 112px; border-radius: 50%; overflow: hidden; background: var(--green-tint); display: flex; align-items: center; justify-content: center; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar img.mark { width: 62%; height: auto; object-fit: contain; }
.person .p-text { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.person h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.05; }
.person .role { color: var(--green); }
.person p { margin: 4px 0 6px; font-size: 15.5px; line-height: 1.6; color: var(--muted); }

/* CTA band */
.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 48px; padding: clamp(36px, 5vw, 64px); border-radius: 32px; background: var(--green-tint); }
.cta-band p { margin: 12px 0 0; max-width: 560px; font-size: 18px; line-height: 1.55; color: var(--muted); }

/* Board page */
.bio { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 56px; align-items: start; padding: 48px 0; border-top: 1px solid var(--line); scroll-margin-top: 100px; }
.bio:first-child { border-top: 0; padding-top: 0; }
.bio .avatar { width: 300px; height: 300px; border-radius: 28px; }
.bio .avatar img.mark { width: 48%; }
.bio h2 { margin: 0 0 8px; font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 4vw, 56px); line-height: 1; }
.bio .role { display: block; margin-bottom: 24px; color: var(--green); }
.prose { max-width: 760px; font-size: 18px; line-height: 1.7; color: var(--text-2); }
.prose p { margin: 0 0 18px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 40px; align-items: start; }
.form-card { padding: clamp(24px, 4vw, 44px); border-radius: 28px; background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 70px rgba(14, 30, 24, 0.06); }
.form-card h2 { margin: 0 0 8px; font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1.05; }
.form-card .intro { margin: 0 0 28px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 15px; font-weight: 600; color: var(--text); }
.field label .req { color: var(--green); }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea { width: 100%; height: 56px; padding: 0 18px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--paper); font-family: var(--sans); font-size: 17px; color: var(--text); transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease; }
.field textarea { height: auto; min-height: 190px; padding: 16px 18px; line-height: 1.55; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); background: #fff; box-shadow: 0 0 0 4px rgba(31, 107, 69, 0.14); }
.field-error { font-size: 14px; font-weight: 500; color: var(--red); }
.form-alert { margin: 0 0 24px; padding: 16px 20px; border-radius: 14px; background: #FBE9E7; color: var(--red); font-size: 15px; line-height: 1.5; }
.form-alert h2 { margin: 0; font-family: var(--sans); font-size: 16px; font-weight: 600; }
.form-alert ul { margin: 8px 0 0; padding-left: 20px; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.form-foot .mono { color: var(--muted); }
.success-card { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.success-card .tick { width: 64px; height: 64px; border-radius: 50%; background: var(--green-tint); display: flex; align-items: center; justify-content: center; }
.success-card p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--muted); }
.contact-aside { display: flex; flex-direction: column; gap: 16px; }
.info-card { padding: 26px; border-radius: 22px; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.info-card .mono { color: var(--green); }
.info-card .big-link { font-family: var(--serif); font-size: 26px; line-height: 1.15; color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.info-card .big-link:hover { color: var(--green); }
.info-card address { font-style: normal; font-size: 17px; line-height: 1.6; color: var(--text-2); }
.info-card p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--muted); }
.info-card.cert { flex-direction: row; align-items: center; gap: 18px; background: var(--green-tint); border-color: #D3E3D8; }
.info-card.cert img { width: 86px; height: auto; flex-shrink: 0; mix-blend-mode: multiply; }
.info-card.cert div { display: flex; flex-direction: column; gap: 6px; }
.info-card.cert b { font-size: 17px; }

/* Footer */
.site-footer { background: var(--paper-2); color: var(--text-2); padding-top: 72px; padding-bottom: 48px; }
.foot-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px; padding: 0 0 56px; font-size: 15px; }
.foot-grid nav, .foot-grid .addr { display: flex; flex-direction: column; gap: 12px; }
.foot-grid .mono { color: var(--green); }
.foot-grid a { color: var(--text-2); text-decoration: none; }
.foot-grid a:hover, .foot-grid .addr a { color: var(--green); }
.foot-legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); }
.foot-legal a { color: var(--muted); margin-left: 24px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .lift, .link-arrow { transition: none; }
}

/* Responsive */
@media (max-width: 1240px) {
  .links { gap: 20px; }
  .ph-body { gap: 48px; }
  .ph-media img.ph-photo { height: 460px; }
  .contact-grid { grid-template-columns: minmax(0, 1fr) 360px; }
}
@media (max-width: 1080px) {
  .links, .nav > .btn-mint { display: none; }
  .menu-btn { display: inline-flex; margin-left: auto; }
  .ph-body { grid-template-columns: minmax(0, 1fr); padding-bottom: 72px; }
  .ph-media { max-width: 720px; }
  .ph-badge { left: auto; right: 20px; bottom: -28px; width: 140px; height: 140px; }
  .ph-badge img { width: 108px; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .statement { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .work-grid { grid-template-columns: minmax(0, 1fr); }
  .work-card { flex-direction: row; }
  .work-card img { width: 38%; height: auto; min-height: 240px; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .bio { grid-template-columns: 220px minmax(0, 1fr); gap: 36px; }
  .bio .avatar { width: 220px; height: 220px; }
  .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .nav { height: 68px; gap: 12px; }
  .brand img { width: 40px; height: 40px; }
  .brand small { display: none; }
  .ph-body { padding-top: 36px; padding-bottom: 56px; gap: 36px; }
  .page-hero.compact .ph-body { padding-bottom: 36px; }
  .ph-text { gap: 18px; }
  .ph-media img.ph-photo { height: 300px; border-radius: 22px; }
  .ph-badge { width: 112px; height: 112px; right: 14px; bottom: -24px; }
  .ph-badge img { width: 86px; }
  .sec-head { margin-bottom: 28px; }
  .work-card { flex-direction: column; }
  .work-card img { width: 100%; height: 200px; min-height: 0; }
  .work-card h3 { font-size: 28px; }
  .cover-row { grid-template-columns: 36px minmax(0, 1fr); gap: 10px 14px; }
  .cover-row .go { grid-column: 2; justify-content: flex-start; }
  .chip-link { height: 40px; padding: 0 14px; }
  .person { grid-template-columns: 72px minmax(0, 1fr); gap: 16px; padding: 20px; }
  .avatar { width: 72px; height: 72px; }
  .person h3 { font-size: 26px; }
  .bio { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 36px 0; }
  .bio .avatar { width: 160px; height: 160px; border-radius: 22px; }
  .prose { font-size: 17px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .form-card h2 { font-size: 32px; }
  .btn-dark { width: 100%; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 40px; }
  .foot-legal a { margin: 0 16px 0 0; }
}

/* ===== Ingredient database ===== */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Rating pills: .rps shows each rating once; .rps.one shows only the headline rating (Reality Check > Red > Green) */
.rps { display: flex; flex-wrap: wrap; gap: 6px; }
.rp { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; line-height: 1.2; white-space: nowrap; }
.rp::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.rp-13 { background: #E3F2E9; color: #1F6B45; }
.rp-13::before { background: #2E9E66; }
.rp-11 { background: #FBE9E7; color: #A8231C; }
.rp-11::before { background: #C8382F; }
.rp-26 { background: #FBEFD5; color: #8A5300; order: -1; }
.rp-26::before { background: #D69A2D; }
.rp-11 ~ .rp-11, .rp-13 ~ .rp-13, .rp-26 ~ .rp-26 { display: none; }
a.rp { text-decoration: none; transition: filter .15s ease; }
a.rp:hover { filter: brightness(0.95); }
.rps.one:has(.rp-26) .rp-11, .rps.one:has(.rp-26) .rp-13, .rps.one:has(.rp-11) .rp-13 { display: none; }
.rps.lg .rp { padding: 8px 16px; font-size: 14px; }
.rps.lg .rp::before { width: 10px; height: 10px; }

/* Search */
.db-search { position: relative; max-width: 680px; }
.db-search form { margin: 0; }
.db-search-box { display: flex; align-items: center; gap: 12px; height: 68px; padding: 0 8px 0 22px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 44px rgba(14, 30, 24, 0.10); }
.db-search-box:focus-within { border-color: var(--green); box-shadow: 0 0 0 4px rgba(31, 107, 69, 0.12), 0 18px 44px rgba(14, 30, 24, 0.10); }
.db-search-box input { flex-grow: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; font-family: var(--sans); font-size: 19px; color: var(--text); }
.db-search-box input::-webkit-search-cancel-button { display: none; }
.db-go { height: 52px; padding: 0 22px; border: 0; border-radius: 12px; background: var(--green); color: #fff; font-size: 15px; font-weight: 600; flex-shrink: 0; }
.db-go:hover { background: var(--green-2); }
.db-search.sm .db-search-box { height: 56px; border-radius: 14px; box-shadow: none; padding-left: 16px; }
.db-search.sm .db-search-box input { font-size: 16px; }
.db-search.sm .db-go { height: 42px; padding: 0 16px; font-size: 14px; }
.db-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 40; list-style: none; margin: 0; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 70px rgba(14, 30, 24, 0.16); }
.db-suggest li a { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 12px; color: var(--text); text-decoration: none; }
.db-suggest li[aria-selected="true"] a, .db-suggest li a:hover { background: var(--paper); }
.db-suggest .s-text { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.db-suggest .s-name { font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.db-suggest .s-sci { font-size: 13px; font-style: italic; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.db-suggest .s-note { padding: 12px; font-size: 15px; color: var(--muted); }
.db-hint { margin: 10px 0 0; font-size: 14px; color: var(--muted); }

/* Symbol tile (used when an ingredient has no image) */
.ing-sym { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--green-tint); color: var(--green); font-family: var(--serif); font-size: 40px; }

/* Ingredient cards */
.ing-grid-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.ing-card { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; align-items: center; padding: 12px 16px 12px 12px; border-radius: 18px; background: #fff; border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.ing-card:hover { color: var(--text); border-color: #BFD3C6; box-shadow: 0 14px 30px rgba(14, 30, 24, 0.08); transform: translateY(-2px); }
.ic-img { width: 88px; height: 88px; border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid #EEECE5; }
.ic-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ic-img .ing-sym { font-size: 32px; }
.ic-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ic-name { font-size: 16.5px; font-weight: 600; line-height: 1.25; }
.ic-sci { font-size: 13.5px; font-style: italic; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* List toolbar */
.list-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 24px; }
.list-filter { position: relative; flex: 1 1 280px; max-width: 420px; }
.list-filter input { width: 100%; height: 48px; padding: 0 16px 0 44px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; font-family: var(--sans); font-size: 15px; color: var(--text); }
.list-filter input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(31, 107, 69, 0.12); }
.list-filter svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); }
.list-sort { height: 48px; padding: 0 40px 0 16px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%230E1E18' stroke-width='1.8' stroke-linecap='round'/></svg>") no-repeat right 16px center; font-family: var(--sans); font-size: 15px; color: var(--text); -webkit-appearance: none; appearance: none; cursor: pointer; }
.list-count { margin-left: auto; color: var(--muted); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.f-chip { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--text-2); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.f-chip small { font-family: var(--mono); font-size: 12px; font-weight: 400; opacity: 0.75; }
.f-chip .dot { width: 9px; height: 9px; border-radius: 50%; }
.f-chip:hover { border-color: var(--green); color: var(--green); }
.f-chip[aria-pressed="true"], .f-chip[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.list-empty { padding: 40px 0; font-size: 17px; color: var(--muted); }

/* Database home */
.db-hero .ph-body { align-items: start; }
.rate-card { display: flex; flex-direction: column; padding: 10px; border-radius: 28px; background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 70px rgba(14, 30, 24, 0.10); }
.rate-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 20px 18px; border-radius: 20px; color: var(--text); text-decoration: none; }
.rate-row + .rate-row { border-top: 1px solid #EEECE5; }
.rate-row:hover { background: var(--paper); color: var(--text); }
.rate-row b { font-family: var(--serif); font-weight: 400; font-size: 56px; line-height: 1; }
.rate-row .rr-text { display: flex; flex-direction: column; gap: 6px; }
.rate-row .rr-text span { font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.rate-row svg { color: var(--green); }
.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cat-card { position: relative; isolation: isolate; display: block; height: 280px; border-radius: 22px; overflow: hidden; background: var(--ink); color: #fff; text-decoration: none; }
.cat-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.cat-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14, 30, 24, 0) 35%, rgba(14, 30, 24, 0.82) 100%); }
.cat-card:hover { color: #fff; }
.cat-card:hover img { transform: scale(1.05); }
.cat-card .cc-body { position: absolute; left: 22px; right: 22px; bottom: 20px; display: flex; flex-direction: column; gap: 6px; }
.cat-card .cc-title { font-family: var(--serif); font-size: 34px; line-height: 1; }
.cat-card .cc-meta { font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, 0.92); }
.az-nav { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 20px; }
.az-nav a, .az-nav span { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; font-family: var(--mono); font-size: 13px; text-decoration: none; color: var(--text-2); }
.az-nav a:hover { background: #fff; color: var(--green); }
.az-nav span { color: #B4B8B2; }
.az-list { list-style: none; margin: 0; padding: 0; columns: 3 300px; column-gap: 40px; }
.az-list li { break-inside: avoid; }
.az-list li.az-letter { padding: 18px 0 6px; font-family: var(--serif); font-size: 34px; line-height: 1; color: var(--green); scroll-margin-top: 100px; }
.az-list li.az-letter:first-child { padding-top: 0; }
.az-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #E7E4DB; color: var(--text); text-decoration: none; font-size: 15.5px; }
.az-list a:hover { color: var(--green); }
.az-list .rp { padding: 3px 9px; font-size: 11.5px; }
.label-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; padding: clamp(28px, 4vw, 48px); border-radius: 28px; background: #fff; border: 1px solid var(--line); }

/* Rating + category list pages */
.list-hero .ph-body { align-items: center; }
.rating-mark { width: 100%; max-width: 420px; aspect-ratio: 1 / 1; justify-self: end; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; }
.rating-mark b { font-family: var(--serif); font-weight: 400; font-size: clamp(96px, 11vw, 160px); line-height: 0.9; }
.rating-mark span { font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
.theme-green-light .rating-mark { background: #E3F2E9; color: #1F6B45; box-shadow: inset 0 0 0 14px #fff, inset 0 0 0 16px #BFE0CC; }
.theme-red-light .rating-mark { background: #FBE9E7; color: #A8231C; box-shadow: inset 0 0 0 14px #fff, inset 0 0 0 16px #F0C4BE; }
.theme-reality-check .rating-mark { background: #FBEFD5; color: #8A5300; box-shadow: inset 0 0 0 14px #fff, inset 0 0 0 16px #EFD49C; }
.theme-red-light .eyebrow, .theme-red-light h1 em { color: #A8231C; }
.theme-red-light .eyebrow .dot { background: #C8382F; }
.theme-reality-check .eyebrow, .theme-reality-check h1 em { color: #8A5300; }
.theme-reality-check .eyebrow .dot { background: #D69A2D; }
.cat-photo { display: block; width: 100%; height: 420px; object-fit: cover; border-radius: 28px; box-shadow: 0 30px 70px rgba(14, 30, 24, 0.14); }
.hero-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

/* Ingredient profile */
.ing-hero .ph-body { grid-template-columns: minmax(0, 1fr) 420px; align-items: center; padding-top: 56px; padding-bottom: 72px; }
.ing-hero h1 { font-size: clamp(46px, 5.4vw, 84px); overflow-wrap: anywhere; }
.ing-hero .sci { margin: -8px 0 0; font-size: clamp(18px, 1.6vw, 22px); font-style: italic; color: var(--muted); }
.ing-found { display: flex; flex-direction: column; gap: 10px; }
.ing-found .mono { color: var(--muted); }
.ing-figure { width: 100%; aspect-ratio: 1 / 1; border-radius: 28px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 70px rgba(14, 30, 24, 0.12); }
.ing-figure img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ing-figure .ing-sym { font-size: 140px; }
.ing-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 64px; align-items: start; }
.ing-main h2 { margin: 40px 0 14px; font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1.1; color: var(--text); }
.ing-main h2:first-child { margin-top: 0; }
.prose a { overflow-wrap: anywhere; }
.prose ul { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose img { max-width: 100%; height: auto; }
.keylist { list-style: none; margin: 0 0 18px; padding: 0 !important; display: flex; flex-direction: column; gap: 10px; }
.keylist li { position: relative; margin: 0; padding: 14px 18px 14px 50px; border-radius: 14px; background: var(--paper); line-height: 1.55; }
.keylist li::before { content: ""; position: absolute; left: 18px; top: 18px; width: 18px; height: 18px; border-radius: 50%; background: var(--green) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'><path d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center; }
.ing-side { position: sticky; top: 108px; display: flex; flex-direction: column; gap: 16px; }
.rexp { display: flex; flex-direction: column; gap: 10px; }
.rexp + .rexp { padding-top: 14px; border-top: 1px solid var(--line); }
.rexp-11 ~ .rexp-11, .rexp-13 ~ .rexp-13, .rexp-26 ~ .rexp-26 { display: none; }
.rexp p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--text-2); }
.ing-articles ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ing-articles li { padding: 12px 0; border-top: 1px solid var(--line); }
.ing-articles li:first-child { border-top: 0; padding-top: 2px; }
.ing-articles li a { display: block; font-weight: 600; line-height: 1.4; text-decoration: none; color: var(--text); }
.ing-articles li a:hover { color: var(--green); }
.ing-articles time { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.ing-articles:not(:has(li)) { display: none; }

@media (max-width: 1240px) {
  .ing-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; }
}
@media (max-width: 1080px) {
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ing-hero .ph-body { grid-template-columns: minmax(0, 1fr); }
  .ing-figure { max-width: 360px; }
  .ing-layout { grid-template-columns: minmax(0, 1fr); }
  .ing-side { position: static; }
  .rating-mark { max-width: 300px; justify-self: start; }
  .cat-photo { height: 320px; }
  .label-cta { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .db-search-box { height: 60px; padding-left: 16px; border-radius: 16px; }
  .db-search-box input { font-size: 16px; }
  .db-go { height: 46px; padding: 0 14px; }
  .ing-grid-list { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ing-card { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; }
  .ic-img { width: 72px; height: 72px; }
  .list-count { margin-left: 0; width: 100%; }
  .list-filter { max-width: none; }
  .rate-row { grid-template-columns: 70px minmax(0, 1fr); padding: 16px 12px; }
  .rate-row b { font-size: 44px; }
  .rate-row svg { display: none; }
  .cat-grid { gap: 12px; }
  .cat-card { height: 190px; border-radius: 16px; }
  .cat-card .cc-body { left: 14px; right: 14px; bottom: 14px; }
  .cat-card .cc-title { font-size: 24px; }
  .cat-card .cc-meta { font-size: 12px; }
  .az-list { columns: 1; }
  .rating-mark { max-width: 220px; }
  .ing-figure { max-width: 260px; border-radius: 22px; }
  .ing-figure .ing-sym { font-size: 96px; }
  .ing-main h2 { font-size: 30px; }
  .cat-photo { height: 240px; border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .ing-card, .cat-card img { transition: none; }
}
.rating-info:not(:has(.rexp)) { display: none; }
.ing-found:not(:has(a)) { display: none; }
.db-pop { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.db-pop .mono { color: var(--muted); margin-right: 4px; }
.pager { grid-column: 1 / -1; display: flex; justify-content: center; gap: 6px; margin-top: 24px; font-weight: 600; }
.pager a, .pager strong { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; color: var(--text); text-decoration: none; }
.pager strong { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ===== Articles ===== */
.art-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.art-card { display: flex; flex-direction: row; align-items: center; gap: 20px; padding: 14px; border-radius: 22px; overflow: hidden; background: #fff; border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.art-card:hover { color: var(--text); border-color: #BFD3C6; box-shadow: 0 18px 40px rgba(14, 30, 24, 0.08); transform: translateY(-3px); }
.ac-img { display: block; width: 150px; flex-shrink: 0; aspect-ratio: 1 / 1; border-radius: 14px; background: var(--paper-2); overflow: hidden; }
.ac-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.art-card:hover .ac-img img { transform: scale(1.04); }
.ac-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 4px 8px 4px 0; }
.ac-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ac-meta .ac-cat { color: var(--green); }
.ac-meta .ac-cat:empty { display: none; }
.ac-title { font-family: var(--serif); font-size: 25px; line-height: 1.12; }
.ac-ex { font-size: 15px; line-height: 1.55; color: var(--muted); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.art-feature { display: grid; grid-template-columns: 420px minmax(0, 1fr); border-radius: 28px; overflow: hidden; background: #fff; border: 1px solid var(--line); color: var(--text); text-decoration: none; margin-bottom: 48px; transition: box-shadow .15s ease; }
.art-feature:hover { color: var(--text); box-shadow: 0 24px 56px rgba(14, 30, 24, 0.10); }
.art-feature .ac-img { width: auto; aspect-ratio: 1 / 1; border-radius: 0; }
.art-feature .ac-body { justify-content: center; gap: 18px; padding: clamp(28px, 4vw, 56px); }
.art-feature .ac-title { font-size: clamp(34px, 3.6vw, 52px); line-height: 1.04; }
.art-feature .ac-ex { font-size: 17px; -webkit-line-clamp: 4; }
.art-feature .link-arrow { margin-top: 4px; }
.topic-row { display: flex; flex-wrap: wrap; gap: 8px; }
.art-empty { padding: 40px 0; font-size: 18px; color: var(--muted); }
.month-list { display: flex; flex-direction: column; gap: 28px; }
.month-year { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 20px; align-items: start; padding-top: 22px; border-top: 1px solid var(--line); }
.month-year h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1; }
.month-year .chip-row { gap: 8px; }

/* Article page */
.art-hero .ph-body { grid-template-columns: minmax(0, 1fr) 360px; align-items: center; padding-top: 56px; padding-bottom: 72px; }
.art-hero h1 { font-size: clamp(40px, 4.6vw, 70px); line-height: 1.02; }
.art-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; color: var(--muted); }
.art-figure { width: 100%; aspect-ratio: 1 / 1; border-radius: 28px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 70px rgba(14, 30, 24, 0.12); }
.art-figure img { display: block; width: 100%; height: 100%; object-fit: cover; }
.art-layout { display: grid; grid-template-columns: minmax(0, 740px) 340px; justify-content: space-between; gap: 64px; align-items: start; }
.art-body { font-size: 18.5px; line-height: 1.75; color: var(--text-2); max-width: 740px; }
.art-body p { margin: 0 0 22px; }
.art-body h2, .art-body h3, .art-body h4 { margin: 36px 0 12px; font-family: var(--serif); font-weight: 400; line-height: 1.15; color: var(--text); }
.art-body h2 { font-size: 34px; }
.art-body h3 { font-size: 28px; }
.art-body h4 { font-size: 23px; }
.art-body blockquote { margin: 28px 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--green); font-family: var(--serif); font-size: 26px; line-height: 1.35; color: var(--text); }
.art-body img { border-radius: 16px; }
.art-body table { width: 100%; border-collapse: collapse; margin: 0 0 22px; font-size: 16px; }
.art-body td, .art-body th { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.art-side { position: sticky; top: 108px; display: flex; flex-direction: column; gap: 16px; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; }
.share-row .chip-link { font-family: var(--sans); cursor: pointer; }
.art-tags:not(:has(a)) { display: none; }
.tag-ing { display: inline-flex; align-items: center; gap: 8px; }
.art-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; margin-top: 48px; padding: 28px 32px; border-radius: 22px; background: var(--green-tint); }
.art-cta p { margin: 6px 0 0; font-size: 16px; line-height: 1.55; color: var(--muted); }
.art-cta b { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.1; }

@media (max-width: 1240px) {
  .art-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; }
}
@media (max-width: 1080px) {
  .art-grid { grid-template-columns: minmax(0, 1fr); }
  .art-feature { grid-template-columns: 300px minmax(0, 1fr); }
  .art-hero .ph-body { grid-template-columns: minmax(0, 1fr); }
  .art-figure { max-width: 360px; }
  .art-layout { grid-template-columns: minmax(0, 1fr); }
  .art-side { position: static; }
  .art-cta { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .art-grid { gap: 12px; }
  .art-card { gap: 14px; padding: 10px; border-radius: 18px; }
  .art-card .ac-img { width: 96px; border-radius: 12px; }
  .art-card .ac-body { gap: 6px; padding: 2px 4px 2px 0; }
  .art-card .ac-title { font-size: 20px; }
  .art-card .ac-ex { display: none; }
  .art-feature { grid-template-columns: minmax(0, 1fr); }
  .art-feature .ac-img { aspect-ratio: 16 / 10; }
  .art-feature { margin-bottom: 28px; }
  .art-feature .ac-title { font-size: 32px; }
  .art-figure { max-width: 260px; border-radius: 22px; }
  .art-body { font-size: 17px; }
  .month-year { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .page-hero .topic-row { flex-wrap: nowrap; overflow-x: auto; margin-right: calc(var(--pad) * -1); padding-right: var(--pad); scrollbar-width: none; }
  .page-hero .topic-row::-webkit-scrollbar { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .art-card, .ac-img img { transition: none; }
}

/* ===== Certification, documents, legal, search, credits, 404 ===== */
.nav-search { width: 44px; height: 44px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid var(--line-2); color: var(--ink); }
.nav-search:hover, .nav-search[aria-current="page"] { border-color: var(--green); color: var(--green); }
.chem-list { display: flex; flex-wrap: wrap; gap: 10px; }
.chem { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--text); font-size: 15.5px; font-weight: 600; text-decoration: none; }
a.chem:hover { border-color: var(--green); color: var(--green); }
.chem .dot { width: 9px; height: 9px; border-radius: 50%; }
.claim-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.claim-card { display: flex; flex-direction: column; gap: 14px; padding: 30px; border-radius: 24px; background: #fff; border: 1px solid var(--line); }
.claim-card .mono { color: var(--muted); }
.claim-card h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1; }
.claim-card p { margin: 0; font-family: var(--serif); font-size: 24px; line-height: 1.25; color: var(--text-2); }
.ill-list { list-style: none; margin: 0; padding: 0; columns: 3 220px; column-gap: 40px; }
.ill-list li { break-inside: avoid; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 17px; color: var(--text-2); }
.cert-split { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 72px; align-items: center; }
.pillar-list { display: flex; flex-direction: column; gap: 14px; margin-top: 32px; }
.pillar-row { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px; align-items: start; padding: 22px; border-radius: 20px; background: var(--paper); }
.pillar-row .ico { width: 56px; height: 56px; border-radius: 16px; background: #fff; display: flex; align-items: center; justify-content: center; }
.pillar-row h3 { margin: 0 0 6px; font-size: 20px; font-weight: 600; }
.pillar-row p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--muted); }
.stamp-disc { width: 100%; max-width: 460px; aspect-ratio: 1 / 1; border-radius: 50%; background: var(--paper); display: flex; align-items: center; justify-content: center; position: relative; justify-self: center; }
.stamp-disc::before { content: ""; position: absolute; inset: 24px; border-radius: 50%; border: 1px dashed var(--line-2); }
.stamp-disc img { width: 66%; position: relative; mix-blend-mode: multiply; }
.doc-card { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 22px 26px; border-radius: 22px; background: #fff; border: 1px solid var(--line); color: var(--text); text-decoration: none; }
a.doc-card:hover { color: var(--text); border-color: #BFD3C6; box-shadow: 0 14px 30px rgba(14, 30, 24, 0.08); }
.doc-card .doc-thumb { width: 120px; height: 120px; border-radius: 14px; overflow: hidden; background: var(--green-tint); display: flex; align-items: center; justify-content: center; }
.doc-card .doc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.doc-card b { display: block; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.1; }
.doc-card p { margin: 6px 0 0; font-size: 15.5px; line-height: 1.55; color: var(--muted); }
.doc-list { display: flex; flex-direction: column; gap: 16px; }
.pdf-frame { width: 100%; height: min(88vh, 1100px); border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 30px 70px rgba(14, 30, 24, 0.08); }
.report-cover { width: 100%; max-width: 420px; justify-self: end; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 70px rgba(14, 30, 24, 0.18); }
.report-cover img { display: block; width: 100%; height: auto; }
.legal-layout { display: grid; grid-template-columns: 260px minmax(0, 780px); gap: 64px; align-items: start; }
.toc { position: sticky; top: 108px; display: flex; flex-direction: column; gap: 4px; }
.toc .mono { color: var(--muted); margin-bottom: 8px; }
.toc a { padding: 8px 12px; border-radius: 10px; color: var(--text-2); text-decoration: none; font-weight: 500; }
.toc a:hover { background: #fff; color: var(--green); }
.legal-body { font-size: 17px; line-height: 1.7; color: var(--text-2); }
.legal-body h3 { margin: 40px 0 12px; font-family: var(--serif); font-weight: 400; font-size: 38px; line-height: 1.1; color: var(--text); scroll-margin-top: 100px; }
.legal-body h4 { margin: 28px 0 8px; font-size: 19px; font-weight: 600; color: var(--text); }
.legal-body h5 { margin: 20px 0 6px; font-size: 16px; font-weight: 600; color: var(--text); }
.legal-body p { margin: 0 0 16px; }
.legal-body hr { margin: 40px 0 0; border: 0; border-top: 1px solid var(--line); }
.legal-body table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 16px; }
.legal-body th, .legal-body td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-body th { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.legal-body ul { padding-left: 22px; }
.legal-body li { margin-bottom: 6px; }
.sr-list { display: flex; flex-direction: column; gap: 14px; max-width: 900px; }
.sr-card { display: flex; flex-direction: column; gap: 8px; padding: 22px 26px; border-radius: 20px; background: #fff; border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.sr-card:hover { color: var(--text); border-color: #BFD3C6; box-shadow: 0 14px 30px rgba(14, 30, 24, 0.08); }
.sr-card .sr-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.sr-type { padding: 4px 10px; border-radius: 999px; background: var(--green-tint); color: var(--green); }
.sr-card b { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.12; }
.sr-card p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--muted); }
.site-search { max-width: 680px; }
.site-search form { margin: 0; }
.quick-links { display: flex; flex-wrap: wrap; gap: 10px; }
.field select { width: 100%; height: 56px; padding: 0 44px 0 18px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--paper) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%230E1E18' stroke-width='1.8' stroke-linecap='round'/></svg>") no-repeat right 18px center; font-family: var(--sans); font-size: 17px; color: var(--text); -webkit-appearance: none; appearance: none; }
.field select:focus { outline: none; border-color: var(--green); background-color: #fff; box-shadow: 0 0 0 4px rgba(31, 107, 69, 0.14); }
.form-card h2.form-sec { grid-column: 1 / -1; margin: 18px 0 0; padding-top: 22px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12.5px; line-height: 1.4; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); }
.form-card h2.form-sec:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: flex; flex-direction: column; gap: 14px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; font-size: 15.5px; line-height: 1.55; color: var(--text-2); }
.steps li::before { content: counter(step); width: 32px; height: 32px; border-radius: 50%; background: var(--green-tint); color: var(--green); font-family: var(--mono); font-size: 13px; display: flex; align-items: center; justify-content: center; }
.credits-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.credit { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.credit img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; background: var(--paper-2); }
.credit figcaption { display: flex; flex-direction: column; gap: 4px; font-size: 15px; line-height: 1.45; }
.credit-where { font-weight: 600; color: var(--text); }
.credit-by { color: var(--muted); }
.notfound-code { font-family: var(--serif); font-size: clamp(120px, 18vw, 240px); line-height: 0.8; color: var(--green-tint); -webkit-text-stroke: 2px var(--green); }

@media (max-width: 1240px) {
  .cert-split { grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; }
}
@media (max-width: 1080px) {
  .claim-grid { grid-template-columns: minmax(0, 1fr); }
  .cert-split { grid-template-columns: minmax(0, 1fr); }
  .stamp-disc { max-width: 320px; }
  .legal-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .toc { position: static; flex-direction: row; flex-wrap: wrap; }
  .toc .mono { width: 100%; margin-bottom: 0; }
  .toc a { background: #fff; border: 1px solid var(--line); }
  .report-cover { justify-self: start; max-width: 320px; }
}
@media (max-width: 1080px) {
  .nav-search { margin-left: auto; }
  .nav-search ~ .menu-btn { margin-left: 8px; }
}
@media (max-width: 720px) {
  .nav-search { width: 40px; height: 40px; }
  .claim-card { padding: 22px; }
  .claim-card p { font-size: 21px; }
  .ill-list { columns: 1; }
  .doc-card { grid-template-columns: 80px minmax(0, 1fr); padding: 16px; }
  .doc-card .doc-thumb { width: 80px; height: 80px; }
  .doc-card .link-arrow { grid-column: 1 / -1; }
  .doc-card b { font-size: 24px; }
  .pdf-frame { height: 70vh; border-radius: 16px; }
  .legal-body h3 { font-size: 30px; }
  .sr-card { padding: 18px; }
  .sr-card b { font-size: 23px; }
  .credits-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; }
}

/* ===== Label check page ===== */
.lcx { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.lcx-in { display: flex; flex-direction: column; gap: 14px; }
.lcx-label { font-size: 15px; font-weight: 600; }
.lcx-in textarea { min-height: 280px; padding: 20px 22px; border: 1px solid var(--line-2); border-radius: 20px; background: var(--paper); font-family: var(--mono); font-size: 16px; line-height: 1.7; color: var(--text); resize: vertical; }
.lcx-in textarea:focus { outline: none; border-color: var(--green); background: #fff; box-shadow: 0 0 0 4px rgba(31, 107, 69, 0.12); }
.lcx-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lcx-actions .mono { color: var(--muted); margin-right: 4px; }
.lcx-actions .chip-link { cursor: pointer; font-family: var(--sans); }
.lcx-clear { margin-left: auto; height: 42px; padding: 0 14px; border: 0; background: transparent; color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: underline; }
.lcx-tip { margin: 0; font-size: 14px; color: var(--muted); }
.lcx-sum { position: sticky; top: 108px; display: flex; flex-direction: column; gap: 18px; padding: 28px; border-radius: 24px; background: var(--paper); border: 1px solid var(--line); }
.lcx-count { display: flex; align-items: baseline; gap: 12px; }
.lcx-count b { font-family: var(--serif); font-weight: 400; font-size: 56px; line-height: 1; }
.lcx-count .mono { color: var(--muted); }
.lcx-verdict { margin: 0; font-size: 20px; line-height: 1.4; font-weight: 600; }
.lcx-verdict.is-red { color: #A8231C; }
.lcx-verdict.is-check { color: #8A5300; }
.lcx-verdict.is-green { color: #1F6B45; }
.lcx-bar { display: flex; gap: 3px; height: 14px; border-radius: 999px; overflow: hidden; background: #E5E2D9; }
.lcx-bar span { transition: width .35s ease; }
.lcx-legend { display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--text-2); }
.lcx-legend span { display: flex; align-items: center; gap: 10px; }
.lcx-legend .dot { width: 10px; height: 10px; border-radius: 50%; }
.lcx-sum .btn-ghost { justify-content: center; }
.lcx-results { margin-top: 48px; }
.lcx-results-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.lcx-results-head h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1.05; }
.f-chip[disabled] { opacity: 0.45; cursor: default; }
.lcx-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.lcx-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 18px; align-items: start; padding: 18px 4px; border-bottom: 1px solid var(--line); }
.lcx-no { color: var(--muted); padding-top: 4px; }
.lcx-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; font-size: 18px; font-weight: 600; }
.lcx-name a { color: var(--text); text-decoration: none; }
.lcx-name a:hover { color: var(--green); text-decoration: underline; }
.lcx-as { font-size: 14px; font-weight: 400; color: var(--muted); }
.lcx-main p { margin: 6px 0 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
.lcx-row .rp { margin-top: 2px; }
.rp-u { background: #EFEEEA; color: #4E5A54; }
.rp-u::before { background: #8A948F; }
.lcx-u .lcx-name span { color: var(--muted); }
.lcx-empty { padding: 24px 4px; color: var(--muted); }
.lcx-note { margin: 18px 0 0; font-size: 14.5px; color: var(--muted); }
.lcx-how .info-card b { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.15; }

/* ===== Certified directory ===== */
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.brand-card { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 24px; border-radius: 22px; background: #fff; border: 1px solid var(--line); }
.brand-logo { height: 96px; display: flex; align-items: center; }
.brand-logo img { max-height: 96px; max-width: 220px; object-fit: contain; }
.brand-logo .ing-sym { width: 96px; height: 96px; border-radius: 18px; font-size: 40px; }
.brand-card h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.1; }
.brand-desc { font-size: 15.5px; line-height: 1.6; color: var(--muted); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; overflow: hidden; }
.brand-desc p { margin: 0 0 8px; }
.brand-grid .dir-empty { grid-column: 1 / -1; }
.dir-empty { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 36px; align-items: center; padding: clamp(28px, 4vw, 56px); border-radius: 28px; background: var(--green-tint); }
.dir-empty img { width: 180px; mix-blend-mode: multiply; }

@media (max-width: 1080px) {
  .lcx { grid-template-columns: minmax(0, 1fr); }
  .lcx-sum { position: static; }
  .lcx-how { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .lcx-in textarea { min-height: 200px; font-size: 15px; padding: 16px; }
  .lcx-row { grid-template-columns: 30px minmax(0, 1fr); gap: 10px 12px; }
  .lcx-row .rp { grid-column: 2; justify-self: start; }
  .lcx-results-head h2 { font-size: 32px; }
  .lcx-count b { font-size: 44px; }
  .lcx-clear { margin-left: 0; }
  .dir-empty { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .dir-empty img { width: 120px; }
}
