/* DiabeticIndex — after the owner's two references (2026-10-08): a light app.
   Pale ground, white rounded panels, pill search with a filter button, round
   category icons, photo cards with a green "+", list rows with a chevron,
   dark/light chips, a dark pill call to action, a bottom tab bar on phones.
   Floor (older readers): body 18px, nothing under 13px, targets ≥44px,
   text ≥4.5:1, colour never the only signal. */

@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(/assets/fonts/outfit-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(/assets/fonts/outfit-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #f4f5f4;
  --card: #ffffff;
  --ink: #1d231f;
  --ink-soft: #5a615c;     /* 6.3:1 on white, 5.8:1 on --bg */
  --line: #e6e9e7;
  --green: #15803d;        /* 5.0:1 on white: text, the "+" and pills */
  --green-soft: #eaf6ee;
  --tint: #eef2ee;
  --amber: #b45309;        /* "over your target": 5.0:1 */
  --shadow: 0 1px 2px rgba(20, 30, 24, .04), 0 8px 24px rgba(20, 30, 24, .06);
  --r: 22px;
  --tabbar: 68px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 18px/1.5 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom));
}
a { color: var(--green); }
img { max-width: 100%; }
h1, h2 { font-weight: 600; letter-spacing: -.01em; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: #fff; padding: 8px 12px; z-index: 50; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { flex: none; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.nodata { color: var(--ink-soft) !important; }

/* Round icon buttons */
.round-btn {
  display: inline-flex; align-items: center; justify-content: center; position: relative;
  width: 48px; height: 48px; border-radius: 50%; background: var(--card); color: var(--ink);
  box-shadow: var(--shadow); border: 0; text-decoration: none; flex: none; cursor: pointer;
}
.round-btn.small { width: 44px; height: 44px; box-shadow: none; background: var(--bg); }
.badge {
  position: absolute; top: -2px; right: -2px; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 11px; background: var(--green); color: #fff; font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--card);
}

/* Top bar */
.topbar { padding-top: env(safe-area-inset-top); }
.topbar-row { display: flex; align-items: center; gap: 12px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-mark { width: 44px; height: 44px; border-radius: 14px; background: var(--green); color: #fff; display: grid; place-items: center; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 19px; font-weight: 600; }
.brand-text small { font-size: 14px; color: var(--ink-soft); }
.topnav { display: none; gap: 4px; }
.topnav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; color: var(--ink-soft); text-decoration: none; }
.topnav a[aria-current] { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }

/* Sub-page head: round back button, centred title (second reference) */
.page-head { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; gap: 8px; margin: 4px auto 18px; }
.page-head h1 { margin: 0; text-align: center; font-size: 30px; line-height: 1.15; color: #173b26; }

main.wrap { padding-top: 4px; padding-bottom: 32px; }
.title-plain { font-size: 28px; margin: 8px 0; }
.lead { color: var(--ink-soft); }

/* Search pill */
.search {
  display: flex; align-items: center; gap: 4px; background: var(--card); border-radius: 999px;
  box-shadow: var(--shadow); padding: 4px 4px 4px 18px; margin-bottom: 18px;
}
.search-ic { color: var(--ink-soft); display: flex; }
.search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; color: var(--ink);
  min-height: 48px; padding: 0 8px;
}
.search input::placeholder { color: #747b76; }
.search:focus-within { box-shadow: 0 0 0 3px var(--green-soft), var(--shadow); }
.search-filter { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: var(--green); }
.search-filter:hover { background: var(--green-soft); }

/* Banner (first reference) */
.banner {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 8px;
  background: linear-gradient(120deg, #f7faf5 0%, #edf5ec 100%); border-radius: var(--r); box-shadow: var(--shadow);
  overflow: hidden; margin-bottom: 18px; min-height: 170px;
}
.banner-text { padding: 20px 0 20px 20px; }
.banner-kicker { margin: 0; color: var(--ink-soft); font-size: 16px; }
.banner-title { margin: 2px 0 14px; font-size: 22px; font-weight: 600; line-height: 1.2; }
.banner-art { align-self: stretch; display: grid; place-items: center; }
.banner-art img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; display: block; }
.banner-art span { font-size: 84px; }
.pill-green, .pill-dark, .pill-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px;
  border-radius: 999px; font: inherit; font-size: 17px; font-weight: 600; text-decoration: none; border: 0; cursor: pointer;
}
.pill-green { background: var(--green); color: #fff; }
.pill-dark { background: #1f2421; color: #fff; }
.pill-dark:hover { background: #000; }
.pill-ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line); }

/* Panels */
.panel { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px; margin-bottom: 18px; }
.panel h2 { font-size: 19px; margin: 0 0 10px; }

/* Category icons */
.cat-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.cat-row a, .cat-grid a { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); text-align: center; }
.cat-row a { font-size: 14px; line-height: 1.2; padding: 4px 0; min-height: 44px; }
.cat-ic { width: 56px; height: 56px; border-radius: 50%; background: var(--tint); display: grid; place-items: center; font-size: 28px; line-height: 1; }
.more-cats {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; min-height: 48px;
  border-radius: 999px; background: var(--bg); color: var(--green); font-weight: 500; text-decoration: none;
}
.cat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cat-grid a { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px 10px; }
.cat-grid .cat-ic { width: 68px; height: 68px; font-size: 34px; }
.cat-name { font-weight: 600; }
.cat-count { font-size: 14px; color: var(--ink-soft); }

/* Section head: title + "View all" */
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 26px 0 12px; }
.section-head h2 { margin: 0; font-size: 21px; }
.section-head a, .link-btn {
  color: var(--ink-soft); font-size: 16px; text-decoration: none; background: none; border: 0; font: inherit;
  min-height: 44px; display: inline-flex; align-items: center; cursor: pointer;
}

/* Photo cards (first reference) */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card { position: relative; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.card-link { display: flex; flex-direction: column; height: 100%; color: var(--ink); text-decoration: none; padding: 10px 10px 14px; }
.card-photo { display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg); margin-bottom: 12px; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-photo .nophoto { height: 100%; }
.card-fig { font-size: 22px; font-weight: 600; line-height: 1.1; padding: 0 4px; padding-right: 50px; }
.card-fig small { font-size: 15px; font-weight: 400; color: var(--ink-soft); }
.card-name { font-size: 16px; color: var(--ink-soft); line-height: 1.3; margin-top: 4px; padding: 0 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-basis { font-size: 14px; color: var(--ink-soft); padding: 0 4px; margin-top: auto; padding-top: 4px; padding-right: 50px; }
.add-btn {
  position: absolute; right: 10px; bottom: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: var(--green); color: #fff; display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 4px 12px rgba(21, 128, 61, .3); transition: transform .15s;
}
.add-btn:active { transform: scale(.92); }
.add-btn.done { background: #1f2421; }
.nophoto { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #8a918c; font-size: 14px; background: var(--bg); }
.nophoto span { color: var(--ink-soft); }

/* Chips (second reference) */
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 14px; padding: 2px 16px 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips a {
  flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid #d9ddda; background: var(--card); color: var(--ink); text-decoration: none; font-size: 17px;
}
.chips a[aria-current] { background: #1f2421; border-color: #1f2421; color: #fff; }
.count { color: var(--ink-soft); font-size: 16px; margin: 0 0 12px; }
.empty { color: var(--ink-soft); }

/* List rows (second reference) */
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.row > a, .row-inner {
  display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 12px; min-height: 88px;
  background: var(--card); border-radius: var(--r); color: var(--ink); text-decoration: none; box-shadow: var(--shadow);
}
.row-photo { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; flex: none; background: var(--bg); }
.row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; color: var(--ink); text-decoration: none; }
.row-name { font-size: 18px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: 15px; color: var(--ink-soft); }
.row-meta strong { color: var(--ink); font-weight: 600; }
.meta-carb { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); font-weight: 600; }
.meta-carb .ic { color: var(--green); }
.dot { width: 4px; height: 4px; border-radius: 50%; background: #b9bfbb; }
.chev { color: var(--ink); display: flex; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 22px 0 0; color: var(--ink-soft); font-size: 16px; }

/* Food page (second reference, detail screen) */
.bare-top main.wrap { padding-top: 0; }
.food { padding-bottom: 8px; }
.hero { position: relative; margin: 0 -16px 18px; background: var(--tint); }
.hero img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; height: auto; }
.hero .nophoto { aspect-ratio: 16 / 7; font-size: 15px; }
.hero-back { position: absolute; top: calc(14px + env(safe-area-inset-top)); left: 14px; }
.hero-credit { position: absolute; right: 10px; bottom: 10px; margin: 0; font-size: 13px; background: rgba(255,255,255,.9); color: var(--ink-soft); padding: 3px 10px; border-radius: 999px; }
.crumb { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; color: var(--ink-soft); text-decoration: none; min-height: 32px; }
.food-body h1 { font-size: 28px; line-height: 1.2; margin: 2px 0 6px; }
.source { margin: 0 0 18px; font-size: 15px; color: var(--ink-soft); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stats-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 14px; }
.stat { display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--line); background: var(--card); border-radius: 18px; padding: 14px 12px; }
.stat .ic { color: var(--ink); margin-bottom: 10px; }
.stat-main .ic { color: var(--green); }
.stat-label { font-size: 15px; color: var(--ink-soft); }
.stat-val { font-size: 24px; font-weight: 600; line-height: 1.15; }
.stat-main .stat-val { font-size: 28px; }
.choices { margin: 12px 0 18px; font-size: 17px; }
.choices strong { color: var(--green); font-weight: 700; }
.choices span:last-child { color: var(--ink-soft); font-size: 15px; }
.amount h2 { font-size: 18px; }
.amount-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.qty { display: flex; align-items: center; background: var(--bg); border-radius: 999px; padding: 4px; }
.qty input { width: 64px; min-height: 44px; border: 0; background: transparent; text-align: center; font: inherit; font-weight: 600; font-size: 21px; color: var(--ink); }
.step { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--card); color: var(--ink); font-size: 22px; box-shadow: var(--shadow); cursor: pointer; font-family: inherit; }
.amount-row select {
  flex: 1 1 200px; min-width: 0; max-width: 100%; min-height: 52px; padding: 0 14px; font: inherit; color: var(--ink);
  border: 1px solid var(--line); border-radius: 16px; background: #fff; text-overflow: ellipsis;
}
.basis, .note { margin: 10px 0 0; font-size: 16px; color: var(--ink-soft); }
.list-head { font-size: 20px; margin: 22px 0 10px; }
.nutrients { list-style: none; margin: 0 0 18px; padding: 0; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); }
.nutrients li { display: flex; align-items: center; gap: 10px; padding: 0 18px; min-height: 60px; border-top: 1px solid var(--line); }
.nutrients li:first-child { border-top: 0; }
.n-name { font-size: 18px; }
.n-val { margin-left: auto; font-weight: 600; font-size: 18px; }
.tag { font-size: 13px; padding: 3px 10px; border-radius: 999px; }
.tag-kidney { background: #e7f0fb; color: #1e4f8a; }
.footnote { font-size: 14px; color: var(--ink-soft); margin: 4px 2px 0; }
.cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 70%, rgba(244,245,244,0));
}
.cta-bar .pill-dark { width: 100%; max-width: 440px; margin: 0 auto; display: flex; min-height: 56px; font-size: 18px; }

/* Today */
.today-date { margin: -8px 0 14px; text-align: center; color: var(--ink-soft); }
.tot-main { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 6px 0 4px; }
.tot-label { color: var(--ink-soft); font-size: 16px; }
.tot-big { font-size: 52px; font-weight: 600; line-height: 1.05; }
.tot-sub { color: var(--green); font-weight: 600; min-height: 1.5em; }
.bar { height: 12px; border-radius: 6px; background: var(--bg); overflow: hidden; margin: 12px 0 6px; }
.bar span { display: block; height: 100%; background: var(--green); border-radius: 6px; }
.target-wrap.over .bar span { background: var(--amber); }
.target-line { margin: 0; text-align: center; font-size: 16px; }
.target-wrap.over .target-line { color: var(--amber); font-weight: 600; }
.tot-note { margin: 12px 0 0; font-size: 14px; color: var(--ink-soft); }
.empty-state { text-align: center; background: var(--card); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); }
.empty-state p { margin: 0 0 12px; color: var(--ink-soft); }
.target-form { margin-top: 18px; }
.target-form p { margin: 0 0 12px; font-size: 16px; color: var(--ink-soft); }
.target-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.target-row input { width: 110px; min-height: 48px; padding: 0 14px; font: inherit; border: 1px solid var(--line); border-radius: 14px; }

/* Prose (About) */
.prose { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 22px; max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 21px; margin: 22px 0 6px; }
.prose p { margin: 0 0 12px; }

/* Toast */
.toast {
  position: fixed; left: 16px; right: 16px; bottom: calc(var(--tabbar) + 16px + env(safe-area-inset-bottom)); z-index: 40;
  max-width: 480px; margin: 0 auto; background: #1f2421; color: #fff; border-radius: 18px; padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 16px;
  opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: none; }
.toast a { color: #9be3b3; font-weight: 600; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
.bare-top .toast { bottom: calc(96px + env(safe-area-inset-bottom)); }

/* Footer */
.site-footer { font-size: 15px; color: var(--ink-soft); padding: 18px 0 8px; }
.site-footer p { margin: 0 0 10px; }
.disclaimer strong { color: var(--ink); }
.bare-top .site-footer { padding-bottom: 90px; }

/* Bottom tab bar (first reference) */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--card); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: var(--tabbar); color: var(--ink-soft); text-decoration: none; font-size: 13px; font-weight: 500;
}
.tabbar a[aria-current] { color: var(--green); }
.tabbar a[aria-current]::before { content: ''; position: absolute; top: 0; width: 32px; height: 3px; border-radius: 0 0 3px 3px; background: var(--green); }
.tabbar .badge { top: 6px; right: calc(50% - 26px); }
.bare-top .tabbar { display: none; }
.bare-top { padding-bottom: 0; }

/* Phones: the food page's photo is the top of the screen */
@media (max-width: 899px) {
  .bare-top .topbar { display: none; }
}

/* Admin */
.links-out li { padding-top: 10px; padding-bottom: 10px; }
.links-out .n-name { min-width: 0; overflow-wrap: anywhere; font-size: 16px; display: flex; flex-direction: column; }
.links-out small { font-size: 14px; color: var(--ink-soft); }
.flash { background: var(--green-soft); padding: 12px 16px; border-radius: 14px; }
.admin-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.admin-bar button, .admin-card button, .admin-login button { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0; font: inherit; font-weight: 600; background: #1f2421; color: #fff; cursor: pointer; }
.admin-bar button:disabled { opacity: .5; }
.auto-status { background: var(--card); border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow); }
.ghost { background: var(--card) !important; color: var(--ink) !important; border: 1px solid var(--line) !important; }
.admin-photos .card { padding: 0; }
.admin-card { display: flex; flex-direction: column; height: 100%; }
.admin-card .c-photo { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; height: auto; display: flex; }
.admin-card > :not(.c-photo) { padding: 0 14px; }
.admin-card strong { margin-top: 10px; }
.admin-card .c-basis { font-size: 14px; color: var(--ink-soft); }
.admin-card form { display: flex; gap: 8px; padding: 12px 14px 14px; margin-top: auto; }
.admin-card form button { flex: 1; padding: 0 10px; }
.admin-login { display: grid; gap: 10px; max-width: 360px; }
.admin-login input { font: inherit; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 14px; }

/* Wider screens: top nav, no tab bar, more columns */
@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .banner-title { font-size: 26px; }
}
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .tabbar { display: none; }
  .topnav { display: flex; }
  .toast { bottom: 24px; }
  .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .cat-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .banner { min-height: 220px; }
  .banner-text { padding: 32px; }
  .banner-title { font-size: 32px; max-width: 14ch; }
  .cat-row { gap: 12px; }
  .rows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .food { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
  .hero { margin: 0; border-radius: var(--r); overflow: hidden; position: sticky; top: 16px; }
  .hero .nophoto { aspect-ratio: 4 / 3; }
  .cta-bar { position: static; background: none; padding: 0; margin: -4px 0 6px; }
  .cta-bar .pill-dark { max-width: none; }
  .bare-top .toast { bottom: 24px; }
  .bare-top .site-footer { padding-bottom: 8px; }
}

/* Blog */
.post-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.post-card a { display: flex; flex-direction: column; height: 100%; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; color: var(--ink); text-decoration: none; }
.post-cover { display: block; aspect-ratio: 16 / 9; background: var(--bg); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-cover .nophoto { height: 100%; }
.post-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.post-cat { font-size: 14px; color: var(--green); font-weight: 600; }
.post-title { font-size: 21px; font-weight: 600; line-height: 1.25; }
.post-excerpt { font-size: 16px; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-meta { font-size: 14px; color: var(--ink-soft); margin-top: auto; padding-top: 6px; }
.article { max-width: 760px; margin: 0 auto; }
.article h1 { font-size: 32px; line-height: 1.2; margin: 6px 0 10px; }
.article-lead { font-size: 20px; color: var(--ink-soft); margin: 0 0 12px; }
.article-meta { font-size: 15px; color: var(--ink-soft); margin: 0 0 6px; }
.article-cover { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r); margin: 18px 0 8px; }
.article-body { font-size: 19px; line-height: 1.7; }
.article-body h2 { font-size: 25px; line-height: 1.25; margin: 34px 0 10px; }
.article-body h3 { font-size: 21px; margin: 26px 0 8px; }
.article-body p, .article-body ul, .article-body ol { margin: 0 0 18px; }
.article-body li { margin-bottom: 6px; }
.article-body img { max-width: 100%; height: auto; border-radius: 16px; }
.article-body figure { margin: 22px 0; }
.article-body figcaption { font-size: 15px; color: var(--ink-soft); margin-top: 6px; }
.article-body blockquote { margin: 20px 0; padding: 4px 18px; border-left: 4px solid var(--green); color: var(--ink-soft); }
.article-body table { width: 100%; border-collapse: collapse; font-size: 17px; display: block; overflow-x: auto; }
.article-body th, .article-body td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; }
.article-body a { overflow-wrap: anywhere; }
.blog-foods { margin: 18px 0 22px; font-size: 18px; line-height: 1.5; }
.blog-err { background: #fdecea; color: #8a1c12; padding: 8px 12px; border-radius: 10px; font-size: 15px; }
.article-note { font-size: 15px; color: var(--ink-soft); background: var(--card); border-radius: 16px; padding: 14px 16px; margin: 26px 0 0; }
.read-more { margin-bottom: 18px; }
.tag-draft { background: #eef0ee; color: #3d443f; }
.tag-scheduled { background: #fff3e0; color: #8a4b00; }
.tag-published { background: var(--green-soft); color: #14532d; }
.admin-posts form { margin: 0; }
@media (min-width: 640px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) {
  .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .article h1 { font-size: 40px; }
  .read-more .rows { grid-template-columns: minmax(0, 1fr); }
}
