:root {
  --olive: #6d7844;
  --ink: #243038;
  --muted: #5d6b72;
  --line: #d5dee2;
  --card: #f4f6f7;
  --field: #ffffff;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

body {
  margin: 0;
  color: var(--ink);
  font-family: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  background: #fff;
}

body.tone-bmi {
  background:
    radial-gradient(820px 240px at 50% 92px, #e7f2f4 0%, rgba(255, 255, 255, 0) 72%),
    #fff;
}

body.tone-bmr {
  background:
    radial-gradient(860px 260px at 50% 108px, #eef3df 0%, rgba(255, 255, 255, 0) 72%),
    #fff;
}

body.tone-fat {
  background:
    radial-gradient(860px 280px at 50% 120px, #e5f7f3 0%, rgba(255, 255, 255, 0) 72%),
    #fff;
}

a { color: inherit; }

button,
.row,
.bar nav a,
.jumps a,
.calc {
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
}

button:active,
.row:active {
  transform: translateY(1px);
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid #3d4a28;
  outline-offset: 2px;
}

.warn,
.form-error {
  margin: 12px 0 0;
  color: #9a3b32;
  font-size: 14px;
  font-weight: 650;
}

.bar {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 64px;
  padding: 0 28px;
  background: var(--olive);
  color: #fff;
}

.bar .brand {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.bar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bar nav a {
  padding: 8px 18px;
  border-radius: 999px;
  color: #fff;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.bar nav a[aria-current="page"] {
  background: #8d9770;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.wrap {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto 72px;
}

.split {
  width: min(1120px, calc(100% - 48px));
  margin: 8px auto 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  column-gap: 48px;
  row-gap: 28px;
  align-items: start;
}

.split .block,
.split .info {
  margin-top: 18px;
}

.split .info .tabs {
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 0;
}

.split .info .tabs button {
  border-bottom: 1px solid #d7e0e3;
  border-radius: 10px;
  white-space: nowrap;
}

.span { grid-column: 1 / -1; }

.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 18px auto 0;
  width: min(1120px, calc(100% - 48px));
  color: #6a5a32;
  font-size: 14px;
  font-weight: 650;
}

.steps a { text-decoration: none; }
.steps a:hover { text-decoration: underline; }

.scene {
  display: flex;
  justify-content: center;
  height: auto;
  margin: 18px 12px 0;
}

.scene img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 28px;
  box-shadow: 0 16px 36px rgba(61, 72, 48, 0.12);
}

.panel {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  padding: 34px 36px 28px;
  border: 3px solid var(--edge);
  border-radius: 36px;
  background: var(--card);
  box-shadow: 0 18px 40px rgba(90, 100, 70, 0.08);
}

.panel h1 {
  margin: 0 0 12px;
  font-size: 30px;
  letter-spacing: 0.01em;
}

.panel p,
.block p {
  margin: 0 0 12px;
  color: #3d4a50;
  font-size: 15px;
  line-height: 1.9;
}

.panel p:last-of-type,
.block > p:last-of-type { margin-bottom: 0; }

.field { margin-top: 18px; }

.field > span,
.grid label > span {
  display: block;
  margin-bottom: 8px;
  font-weight: 650;
}

input[type="number"],
input[type="text"] {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid #c5d0d4;
  border-radius: 10px;
  background: var(--field);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

input:focus {
  outline: 3px solid color-mix(in srgb, var(--edge) 25%, white);
  border-color: var(--edge);
}

.sex {
  display: flex;
  gap: 22px;
  align-items: center;
}

.sex label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 650;
}

.face {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f3c7a8;
}

.block { margin-top: 42px; }

.block h2 {
  margin: 0 0 10px;
  font-size: 28px;
}

.tabs {
  display: flex;
  gap: 8px;
  margin: 18px 0 0;
  border-bottom: 1px solid #d7e0e3;
}

.tabs button {
  height: 40px;
  padding: 0 16px;
  border: 1px solid #d7e0e3;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: #fff;
  color: #607078;
  font: inherit;
  cursor: pointer;
}

.tabs button[aria-selected="true"] {
  color: var(--ink);
  font-weight: 700;
  box-shadow: inset 0 -2px 0 var(--edge);
}

.rows { display: grid; gap: 12px; margin-top: 16px; }

.row {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 14px 16px;
  border: 2px solid color-mix(in srgb, var(--edge) 55%, white);
  border-radius: 16px;
  background: #fff;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.row small { display: block; color: var(--muted); font-size: 13px; }
.row strong { font-size: 18px; white-space: nowrap; }
.row .mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--edge) 12%, white);
  font-size: 22px;
}

.note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.jump {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  color: var(--muted);
}

.jump a {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  background: #3d8496;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.food-card {
  position: relative;
  margin-top: 28px;
  padding: 28px 22px 16px;
  border: 3px solid #2ea44f;
  border-radius: 22px;
  background: #fff;
}

.food-pill {
  position: absolute;
  top: -16px;
  left: 22px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #2ea44f;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.food-label { margin: 8px 0 0; font-weight: 650; }

.food-line {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #e4e8e8;
}

.food-line input {
  flex: 1;
  height: 48px;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 22px;
}

.food-line input:focus { outline: none; }

#food-go,
.food-link {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: #2ea44f;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

#food-go:hover,
.food-link:hover { background: #248a41; }

.food-guide {
  margin: 12px 0 0;
  color: #5d6b72;
  font-size: 14px;
  line-height: 1.9;
}

.food-guide a { color: #1d7a34; }

.plate {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 1.25fr;
  margin-top: 14px;
  border-radius: 10px;
  background: #f3f4f4;
  position: relative;
}

.plate::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  border-width: 0 18px 18px 0;
  border-style: solid;
  border-color: transparent #fff #d5d8d8 transparent;
}

.plate-col { padding: 16px 14px; }
.plate-col + .plate-col { border-left: 1px solid #e3e6e6; }

.stack { display: grid; padding: 0; }
.stack > div { padding: 16px 14px; }
.stack > div + div { border-top: 1px solid #e3e6e6; }

.food-name { font-weight: 700; }
.food-name b,
.food-sub b { color: #1f8f3a; font-size: 22px; }
.food-name span,
.food-sub span { color: #667178; font-weight: 500; font-size: 14px; }
.food-sub { margin-top: 6px; color: #3d4a50; font-size: 14px; }
.food-sub b { font-size: 16px; }

.food-more {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.groups {
  margin-top: 12px;
  color: #3d4a50;
  font-size: 14px;
  line-height: 1.7;
}

.groups p { margin: 0 0 8px; }

.fine {
  margin: 16px 0 0;
  color: #7a868c;
  font-size: 13px;
}

.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border-radius: 999px;
  background: #fff;
}

.seg button {
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #243038;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.seg button[aria-pressed="true"] {
  background: #d7f3ee;
  color: #1d8f86;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 22px;
}

.actions button {
  height: 48px;
  border-radius: 999px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.go {
  border: 0;
  color: #fff;
  background: linear-gradient(90deg, #7ed0c4, #3fbea8);
}

.go:hover { filter: saturate(0.9) brightness(0.97); }

.clear {
  border: 2px solid #7ed0c4;
  background: #fff;
  color: #3aa894;
}

.score {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.score div {
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  text-align: center;
}

.score b {
  display: block;
  margin-top: 4px;
  font-size: 32px;
}

.score em { font-style: normal; color: #1d8f86; font-weight: 700; }

.info { margin-top: 28px; }

.info .tabs { margin-top: 0; }
.info article { padding-top: 8px; }
.info article p {
  margin: 0 0 16px;
  color: #3d4a50;
  font-size: 16px;
  line-height: 1.95;
}
.info article .kicker {
  margin-bottom: 10px;
  color: #243038;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.6;
}
.info article ol {
  margin: 0 0 16px;
  padding-left: 1.4em;
  color: #3d4a50;
  font-size: 16px;
  line-height: 1.95;
}
.info article ol li + li { margin-top: 10px; }
.info article p:last-child { margin-bottom: 0; }
.info article ul {
  margin: 0 0 14px;
  padding-left: 1.25em;
  color: #3d4a50;
  line-height: 1.9;
}
.info article li + li { margin-top: 6px; }
.info h3 { margin: 20px 0 8px; font-size: 18px; }

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 14px;
}

th, td {
  padding: 8px 6px;
  border-bottom: 1px solid #e1e8ea;
  text-align: center;
}

th { color: var(--muted); font-weight: 650; }

.tag {
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #d7dde0;
  color: #4d5960;
  font-size: 12px;
  font-weight: 650;
}

.page-groups { background: #f6f1e6; color: #2c241c; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

.learn {
  width: min(1040px, calc(100% - 40px));
  margin: 28px auto 80px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 28px;
  align-items: center;
}

.learn h1 {
  margin: 0;
  font-size: 52px;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.badge {
  display: inline-block;
  margin: 12px 0 0;
  padding: 7px 14px;
  border-radius: 999px;
  background: #fff;
  color: #6d5c4a;
  font-size: 14px;
}

.hero-copy {
  margin: 0;
  padding: 4px 0 4px 18px;
  border-left: 4px solid #e39a3c;
  color: #4e463e;
  font-size: 16px;
  line-height: 1.95;
}

.jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: sticky;
  top: 0;
  z-index: 4;
  margin: 22px 0 0;
  padding: 12px 0 14px;
  background: #f6f1e6;
  box-shadow: 0 10px 0 #f6f1e6;
}

.jumps a {
  padding: 7px 14px;
  border-radius: 999px;
  background: #fffdf8;
  color: #3d3428;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px #e4d8c6;
}

.jumps a:hover { background: #5c4a3a; color: #fff; }

.ask { margin-top: 26px; }
.ask h2 {
  display: inline-block;
  margin: 0 0 8px;
  padding: 5px 16px 5px 12px;
  border-radius: 3px 16px 16px 3px;
  background: #5c4a3a;
  color: #fff;
  font-size: 16px;
}
.ask p { margin: 0 0 10px; line-height: 1.9; color: #3f3832; }
.ask p:last-child { margin-bottom: 0; }

.stage {
  position: relative;
  margin: 28px auto 10px;
}

.stage img {
  display: block;
  width: 100%;
  border-radius: 28px;
}

.chip {
  position: absolute;
  width: 176px;
  transform: translate(-50%, -50%);
  border-radius: 16px;
  background: #fff;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(70, 46, 20, 0.12);
  overflow: hidden;
}

@media (min-width: 961px) {
  .chip:hover { transform: translate(-50%, -56%); }
}

.chip b {
  display: block;
  padding: 7px 8px;
  background: var(--c);
  color: #fff;
  font-size: 15px;
}

.chip span {
  display: block;
  padding: 8px 8px 10px;
  color: #5c5348;
  font-size: 13px;
}

.grain { --c: #e2a63a; left: 30%; top: 24%; }
.protein { --c: #e07a90; left: 72%; top: 26%; }
.veg { --c: #7cb342; left: 18%; top: 50%; }
.dairy { --c: #6aaed6; left: 84%; top: 52%; }
.fruit { --c: #ef9a4a; left: 24%; top: 78%; }
.fat { --c: #c4a06a; left: 76%; top: 80%; }

.group {
  margin-top: 46px;
  padding: 0;
  border: 0;
  background: transparent;
  scroll-margin-top: 72px;
}

.band {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px 12px 22px;
  border-radius: 16px 16px 0 0;
  background: var(--tone);
}

.band::before,
.band::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4a3b2a;
}

.group h2 {
  width: fit-content;
  margin: 0;
  padding: 8px 28px;
  border: 3px solid #4a3b2a;
  border-radius: 999px;
  background: #fffdf8;
  color: #3d3428;
  box-shadow: none;
  font-size: 26px;
}

.sheet {
  padding: 22px 28px 20px;
  border-radius: 0 0 22px 22px;
  background: #fffdf8;
}

.with-fig {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 22px;
  align-items: start;
  margin-top: 16px;
}

.with-fig img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 16px;
  background: #f6f1e6;
}

.size-board {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: start;
  align-items: start;
  gap: 16px 18px;
}

.size-board.pair {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
}

.size-board.fruit {
  grid-template-columns: minmax(220px, 280px) auto auto;
}

.size-board.dairy {
  grid-template-columns: auto auto;
}

.size-board > figure {
  margin: 0;
  width: max-content;
  max-width: min(420px, 100%);
}

.size-board > img,
.size-board > figure img {
  display: block;
  width: auto;
  max-width: min(420px, 100%);
  max-height: 500px;
  height: auto;
  border-radius: 16px;
  background: #f6f1e6;
  object-fit: contain;
  object-position: top center;
}

.size-board.pair > figure {
  width: auto;
  max-width: none;
}

.size-board.pair > img,
.size-board.pair > figure img {
  width: 100%;
  max-width: none;
  max-height: none;
}

.size-board figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.size-board figcaption span {
  padding: 4px 8px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--tone, #c4a06a) 28%, #fff);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.portion-nut {
  width: max-content;
  min-width: 220px;
  border: 2px solid var(--tone, #c4a06a);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.portion-nut > p,
.portion-list > p {
  margin: 0;
  padding: 8px 12px;
  background: var(--tone, #c4a06a);
  color: #2c241c;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  max-width: none;
}

.portion-nut table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.portion-nut th,
.portion-nut td {
  padding: 7px 10px;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
}

.portion-nut thead th {
  background: color-mix(in srgb, var(--tone, #c4a06a) 35%, #fff);
}

.portion-nut td { text-align: right; white-space: nowrap; }

.portion-nut tbody tr + tr th,
.portion-nut tbody tr + tr td { border-top: 1px solid #efe6d8; }

.nut-pair {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: start;
}

.portion-list {
  border: 2px solid var(--tone, #ef9a4a);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.portion-list .measure {
  width: auto;
  max-width: none;
  margin: 0;
}

.portion-list .measure li {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  margin: 0;
  padding: 8px 12px;
}

article[data-tab="size"] > .measure {
  width: 100%;
  max-width: none;
  margin-top: 16px;
}

.card-fig {
  width: min(420px, 100%);
  margin: 4px auto 14px;
}

.card-fig img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  background: #f6f1e6;
}

.with-fig h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.with-fig h3.rule {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 2px dotted #d5cbbd;
}

.group .tabs {
  gap: 8px;
  margin-top: 16px;
  border-bottom: 0;
}

.group .tabs button {
  border: 1px solid #d9d0c4;
  border-radius: 999px;
  background: #fff;
  color: #5c5348;
  box-shadow: none;
}

.group .tabs button[aria-selected="true"] {
  border-color: #5c4a3a;
  background: #5c4a3a;
  color: #fff;
  box-shadow: none;
}

.group article {
  margin-top: 14px;
  padding: 16px 18px 14px;
  border-radius: 16px;
  background: #fff;
}

.group article h3 {
  margin: 14px 0 8px;
  font-size: 17px;
}

.group article h3:first-child { margin-top: 0; }

.group article p,
.sheet > p { margin: 0 0 12px; line-height: 1.9; max-width: 68ch; }
.group article p:last-child,
.sheet > p:last-child { margin-bottom: 0; }
.group ul,
.group ol { margin: 8px 0 0; padding-left: 1.2em; line-height: 1.9; }
.group li + li { margin-top: 4px; }

ul.cols {
  columns: 2;
  column-gap: 28px;
  max-width: none;
}

ul.cols li { break-inside: avoid; }

.measure {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  max-width: 640px;
}

.measure li {
  display: grid;
  grid-template-columns: minmax(8em, 15em) 1fr;
  gap: 8px 16px;
  margin: 0;
  padding: 9px 0;
  border-bottom: 1px solid #efe6d8;
}

.measure b { font-weight: 700; }

.source-line {
  margin: 36px 0 0;
  max-width: 68ch;
  color: #7a6d60;
  font-size: 13px;
  line-height: 1.8;
}
.group .calc {
  display: inline-flex;
  margin-top: 16px;
  color: #9a6230;
  font-weight: 700;
}

@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; width: min(760px, calc(100% - 32px)); }
  .steps { width: min(760px, calc(100% - 32px)); }
  .span { grid-column: auto; }
  .hero { grid-template-columns: 1fr; }
  .learn h1 { font-size: 40px; }
  .chip { position: static; transform: none; width: auto; margin: 10px 0 0; }
  .with-fig { grid-template-columns: 1fr; }
  .group h2 { font-size: 22px; }
  .stage { display: flex; flex-direction: column; }
  ul.cols,
  .measure li { columns: 1; grid-template-columns: 1fr; }
  .portion-list .measure li { grid-template-columns: minmax(0, 1fr) auto; }
  .size-board,
  .size-board.pair,
  .size-board.fruit,
  .size-board.dairy { grid-template-columns: 1fr; }
  .size-board > img,
  .size-board > figure,
  .size-board > figure img,
  .size-board.pair > img,
  .size-board.pair > figure img { max-width: min(420px, 100%); }
}

@media (max-width: 720px) {
  .bar { flex-wrap: wrap; padding: 12px 16px; }
  .panel { padding: 24px 18px; border-radius: 24px; }
  .grid, .actions, .score, .plate, .row, .shortcuts { grid-template-columns: 1fr; }
  .plate-col + .plate-col { border-left: 0; border-top: 1px solid #e3e6e6; }
  .food-more { flex-wrap: wrap; justify-content: flex-start; }
  .row strong { white-space: normal; }
  .strain-grid,
  .strain-intro { grid-template-columns: 1fr; }
}

.search-line {
  display: grid;
  gap: 6px;
  margin: 18px 0 8px;
  color: #5c5348;
  font-weight: 700;
}

.search-line input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d9d0c4;
  border-radius: 14px;
  background: #fff;
  color: #2c241c;
  font: inherit;
}

.mode-tabs { margin-top: 22px; }

.cat-label {
  margin: 22px 0 10px;
  font-size: 18px;
}

.nut-grid,
.strain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.nut-card,
.strain-grid article,
.door,
#detail,
.quiz-options button,
details {
  border: 1px solid #efe6d8;
  border-radius: 16px;
  background: #fff;
}

.nut-card {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  text-align: left;
  color: #2c241c;
  box-shadow: none;
}

.nut-card span,
.latin {
  color: #7a6d60;
  font-size: 14px;
  font-weight: 500;
}

.nut-card[aria-current="true"] {
  border-color: #5c4a3a;
  box-shadow: inset 0 0 0 1px #5c4a3a;
}

.door { margin-top: 16px; padding: 18px; }
.door h2 { margin: 0 0 8px; font-size: 22px; }

#detail { margin-top: 22px; padding: 18px 20px; }
#detail h2 { margin: 0 0 8px; font-size: 28px; }
#detail h3 { margin: 16px 0 6px; font-size: 17px; }
#detail .kicker { margin: 0; color: #9a6230; font-weight: 700; }

.strain-grid { margin-top: 12px; }
.strain-grid article { padding: 16px; }
.strain-grid h3 { margin: 0 0 4px; font-size: 18px; }
.strain-grid p { margin: 8px 0 0; }

.strain-intro {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.strain-code {
  display: inline-block;
  margin: 10px 0 0;
  padding: 2px 10px;
  border-radius: 999px;
  background: #f3e4c4;
  font-size: 13px;
  font-weight: 700;
}

.strain-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.strain-tags li {
  margin: 0;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f6f1e6;
  font-size: 13px;
  line-height: 1.5;
}

.strain-intro img {
  width: min(100%, 280px);
  height: auto;
  margin: 0 auto;
}

.quiz-options { display: grid; gap: 8px; margin-top: 12px; }
.quiz-options button {
  padding: 12px 14px;
  text-align: left;
  color: #2c241c;
  box-shadow: none;
}
.quiz-options button.is-right { border-color: #2f7d4a; background: #eef6ef; }
.quiz-options button.is-wrong { border-color: #a33b32; background: #fbf1ef; }
.explain {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
}

details { margin-top: 10px; padding: 12px 16px; }
details summary { cursor: pointer; font-weight: 700; }
details p { margin: 8px 0 0; }

#picks ~ article { margin-top: 14px; }

.hero-fig {
  display: block;
  width: 100%;
  height: min(360px, 46vw);
  object-fit: cover;
  border-radius: 18px;
  margin: 0 0 22px;
  background: #f6f1e6;
}

.nut-card img,
.strain-grid img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: contain;
  border-radius: 12px;
  background: #f6f1e6;
}

.strain-grid.strain-intro img {
  width: min(100%, 280px);
  height: auto;
  margin: 0 auto;
}

.detail-fig,
.quiz-fig {
  display: block;
  width: 180px;
  height: 180px;
  object-fit: contain;
  border-radius: 16px;
  background: #f6f1e6;
}

.quiz-fig { margin: 10px 0 4px; }
.detail-fig { margin: 0 0 12px; }

/* --- Probiotics Page Enhancements --- */
.prob-trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.prob-trio-card {
  padding: 18px 18px 16px;
  border: 1px solid #e7dccb;
  border-radius: 18px;
  background: #fffdf9;
  box-shadow: 0 6px 18px rgba(74, 59, 42, 0.04);
}

.prob-trio-card .pill-step {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--pill-bg, #e9efc9);
  color: var(--pill-ink, #3d4a28);
  font-size: 12px;
  font-weight: 700;
}

.prob-trio-card h3 {
  margin: 10px 0 4px;
  font-size: 19px;
}

.prob-trio-card .sub-en {
  margin: 0 0 8px;
  color: #7a6d60;
  font-size: 13px;
}

.prob-trio-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.8;
}

.prob-vs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.prob-vs-card {
  padding: 16px 18px;
  border: 1px solid #e7dccb;
  border-radius: 16px;
  background: #fff;
}

.prob-vs-card h3 {
  margin: 0 0 6px;
  font-size: 17px;
  color: #3d3428;
}

.id-anatomy {
  margin-top: 14px;
  padding: 20px 22px;
  border: 2px solid #d8cab6;
  border-radius: 20px;
  background: #fffdf8;
}

.id-formula {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 16px;
}

.id-part {
  padding: 14px 16px;
  border-radius: 14px;
  background: #f6f1e6;
  border-left: 4px solid var(--id-c, #6d7844);
}

.id-part small {
  display: block;
  color: #6d5c4a;
  font-size: 12.5px;
  font-weight: 700;
}

.id-part b {
  display: block;
  margin: 4px 0;
  font-size: 17px;
  color: #2c241c;
}

.id-part span {
  display: block;
  color: #4e463e;
  font-size: 13.5px;
  line-height: 1.65;
}

.quiz-box {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 24px;
  align-items: center;
  margin-top: 12px;
  padding: 22px 24px;
  border: 1px solid #e5d9c7;
  border-radius: 22px;
  background: #fffdf9;
  box-shadow: 0 10px 26px rgba(74, 59, 42, 0.05);
}

.quiz-box.is-done {
  grid-template-columns: 1fr;
}

.quiz-box .quiz-fig {
  width: 210px;
  height: 210px;
  margin: 0 auto;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid #efe6d8;
}

.quiz-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.quiz-dots {
  display: inline-flex;
  gap: 6px;
}

.quiz-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e2d6c3;
}

.quiz-dot.is-current {
  background: #6d7844;
  transform: scale(1.15);
}

.quiz-dot.is-done {
  background: #a5b07a;
}

.quiz-box h3 {
  margin: 4px 0 12px;
  font-size: 22px;
  line-height: 1.4;
}

.quiz-options button {
  font: inherit;
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.quiz-options button:hover:not(:disabled) {
  border-color: #8d7a64;
  background: #faf6ee;
}

.explain {
  border-left: 4px solid #6d7844;
  background: #f6f3eb;
  font-size: 14.5px;
}

.quiz-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.quiz-actions button {
  height: 42px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: #5c4a3a;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.quiz-actions button:hover {
  background: #46372a;
}

.strain-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 16px;
}

.strain-filter button {
  padding: 7px 15px;
  border: 1px solid #d9d0c4;
  border-radius: 999px;
  background: #fff;
  color: #5c5348;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}

.strain-filter button[aria-pressed="true"] {
  border-color: #5c4a3a;
  background: #5c4a3a;
  color: #fff;
}

.strain-intro article {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid #e6dac8;
  border-radius: 20px;
  background: #fffdf9;
  box-shadow: 0 8px 22px rgba(74, 59, 42, 0.04);
}

.strain-card-top {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
}

.strain-grid.strain-intro .strain-card-top img {
  width: 132px;
  height: 132px;
  margin: 0;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid #eee3d3;
  background: #f6f1e6;
}

.strain-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.strain-code {
  margin: 0;
  padding: 3px 10px;
  background: #e9efc9;
  color: #3d4a28;
}

.strain-site {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: #f3e4c4;
  color: #6b4e23;
  font-size: 12.5px;
  font-weight: 700;
}

.strain-meta-list {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f7f3ea;
  font-size: 13.5px;
  line-height: 1.7;
  color: #4a4037;
}

.strain-meta-list div + div {
  margin-top: 4px;
}

.strain-meta-list b {
  color: #2c241c;
}

.strain-tags {
  margin-top: auto;
  padding-top: 12px;
}

.strain-tags li {
  background: #efe7d8;
  color: #3d3428;
  font-weight: 600;
}

.who-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.who-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px;
  border: 1px solid #e6dac8;
  border-radius: 20px;
  background: #fffdf9;
}

.who-card img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid #eee3d3;
  background: #f6f1e6;
}

.who-card h3 {
  margin: 0 0 6px;
  font-size: 19px;
}

.who-card p {
  margin: 0 0 8px;
  font-size: 14.5px;
  line-height: 1.8;
}

.who-card .who-tip {
  margin: 0;
  padding: 6px 10px;
  border-radius: 10px;
  background: #f6f1e6;
  color: #5c4a3a;
  font-size: 13px;
  font-weight: 650;
}

.warn-banner {
  margin-top: 16px;
  padding: 14px 18px;
  border-left: 4px solid #b85c38;
  border-radius: 12px;
  background: #fdf5f0;
  color: #4a2e22;
  font-size: 14.5px;
  line-height: 1.8;
}

@media (max-width: 960px) {
  .prob-trio,
  .id-formula,
  .prob-vs-grid,
  .who-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .quiz-box {
    grid-template-columns: 1fr;
    padding: 18px;
  }
  .strain-card-top,
  .who-card {
    grid-template-columns: 1fr;
  }
  .strain-grid.strain-intro .strain-card-top img,
  .who-card img {
    width: 100%;
    max-width: 220px;
    height: auto;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
  }
}


/* =========================================================
   NPower-Style Nutrition Encyclopedia & Lightbox System
   ========================================================= */
body.np-modal-open {
  overflow: hidden;
}

.np-main {
  width: min(1140px, calc(100% - 36px));
  margin: 24px auto 80px;
}

/* --- Hero Banner --- */
.np-hero-banner {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 24px;
  align-items: center;
  padding: 28px 30px 44px;
  border-radius: 26px;
  background: linear-gradient(135deg, #f6edd9 0%, #efe1c6 100%);
  border: 1px solid #e3d3b6;
  box-shadow: 0 10px 30px rgba(104, 82, 57, 0.08);
}

.np-hero-card {
  padding: 22px 24px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 20px rgba(93, 76, 53, 0.06);
}

.np-hero-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.np-hero-title-row h1 {
  margin: 0;
  font-size: 38px;
  color: #4a3823;
  letter-spacing: 0.04em;
}

.np-hero-pill {
  padding: 5px 14px;
  border-radius: 999px;
  background: #f3e4c4;
  color: #5d4c35;
  font-size: 13.5px;
  font-weight: 700;
}

.np-hero-lead {
  margin: 0 0 14px;
  padding: 10px 0 10px 16px;
  border-left: 5px solid #efa234;
  color: #333;
  font-size: 15.5px;
  line-height: 1.85;
  letter-spacing: 0.03em;
}

.np-hero-Ways p {
  margin: 4px 0 0;
  color: #3f352a;
  font-size: 15px;
  line-height: 1.75;
}

.np-hero-Ways b {
  color: #5d4c35;
  background: linear-gradient(transparent 58%, #ffe173 42%);
  padding: 0 2px;
}

.np-hero-visual img {
  display: block;
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 20px;
  border: 3px solid #fff;
  box-shadow: 0 10px 26px rgba(86, 65, 34, 0.14);
}

/* --- Unified Dashboard (查族群 + 搜尋/查需求/查百科) --- */
.np-dashboard {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 18px;
  margin: -26px 14px 22px;
  position: relative;
  z-index: 2;
}

.np-group-search {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(169, 124, 71, 0.14);
  overflow: hidden;
  border: 1px solid #eadcc9;
  display: flex;
  flex-direction: column;
}

.np-group-search h4 {
  margin: 0;
  padding: 10px 12px;
  background-color: #685239;
  color: #fff;
  font-size: 18px;
  text-align: center;
  text-shadow: 2px 2px 4px #4e3a24;
  letter-spacing: 0.04em;
}

.np-group-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 14px;
  margin: auto 0;
}

.np-group-btn {
  padding: 9px 10px;
  border: 1px solid #dcdcdc;
  border-radius: 9px;
  background-color: #eceae6;
  box-shadow: 2px 2px 0 #d2cec6;
  color: #333;
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}

.np-group-btn:hover {
  background-color: #f6e7c8;
  border-color: #efa234;
}

.np-group-btn.is-active {
  background-color: #685239;
  border-color: #685239;
  color: #fff;
  box-shadow: 2px 2px 0 #4a3823;
}

.np-group-btn.is-all {
  background-color: #f7f3eb;
  color: #685239;
}

.np-filter-search {
  padding: 18px 24px 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(169, 124, 71, 0.14);
  border: 1px solid #eadcc9;
  scroll-margin-top: 20px;
}

.np-search-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}

.np-search-bar input {
  flex: 1 1 260px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid #ccc2b4;
  border-radius: 10px;
  font: inherit;
  font-size: 15px;
  color: #2c241c;
  background: #fdfcf9;
}

.np-search-submit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background-color: #8ab165;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.np-search-submit:hover {
  background-color: #749b50;
}

.np-filter-bg {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 20px;
}

.np-filter-col h4 {
  margin: 0 0 8px;
  padding: 0 0 6px;
  border-bottom: 1px solid #333;
  color: #333;
  font-size: 17px;
}

.np-pill-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.np-filter-btn {
  height: 34px;
  padding: 0 13px;
  border: 2px solid transparent;
  border-radius: 999px;
  background-color: #494039;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.np-filter-btn:hover {
  border-color: #f0a334;
}

.np-filter-btn.is-active {
  background-color: #efa234;
  color: #2c2013;
  border-color: #494039;
  font-weight: 700;
}

/* --- Status Bar --- */
.np-status-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 6px 16px;
  padding: 10px 16px;
  border-radius: 12px;
  background: #fffdf8;
  border: 1px solid #e6dac8;
}

.np-status-text {
  margin: 0;
  font-size: 14.5px;
  color: #4e4234;
}

.np-status-text b {
  color: #c97218;
}

.np-dris-btn {
  padding: 6px 14px;
  border: 1px solid #685239;
  border-radius: 999px;
  background: #fff;
  color: #564122;
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}

.np-dris-btn:hover {
  background: #685239;
  color: #fff;
}

/* --- Active Group/Need Spotlight Banner --- */
.np-spotlight {
  margin: 0 0 24px;
  padding: 20px 24px;
  border-radius: 20px;
  background: linear-gradient(135deg, #fffdf9 0%, #f9efda 100%);
  border: 2px solid #efa234;
  box-shadow: 0 8px 24px rgba(138, 102, 50, 0.1);
}

.np-spotlight-inner {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  align-items: center;
}

.np-spotlight-img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 16px;
  background: #f6f1e6;
  border: 1px solid #e5d7c1;
}

.np-spotlight-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.np-spotlight-pill {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 999px;
  background: #685239;
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
}

.np-spotlight-sub {
  color: #8a5a22;
  font-size: 13.5px;
  font-weight: 700;
}

.np-spotlight-text h2 {
  margin: 0 0 6px;
  font-size: 24px;
  color: #3d2d19;
}

.np-spotlight-text p {
  margin: 0 0 12px;
  color: #463c32;
  font-size: 15px;
  line-height: 1.75;
}

.np-spotlight-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.np-spotlight-more {
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: #7a9c59;
  color: #fff;
  font: inherit;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(122, 156, 89, 0.3);
}

.np-spotlight-more:hover {
  background: #638344;
}

.np-spotlight-reset {
  padding: 8px 16px;
  border: 1px solid #bfa98e;
  border-radius: 999px;
  background: #fff;
  color: #564122;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* --- Section Title Lines & Nutrient Card Grid --- */
.np-cat-section {
  margin-top: 26px;
}

.np-title-line {
  position: relative;
  text-align: center;
  margin: 24px 0 16px;
  font-size: 22px;
  color: #333;
}

.np-title-line::before,
.np-title-line::after {
  content: "";
  position: absolute;
  top: 50%;
  width: calc(50% - 110px);
  height: 1px;
  background: #b5aa9b;
}

.np-title-line::before { left: 0; }
.np-title-line::after { right: 0; }

.np-title-line span {
  display: inline-block;
  padding: 0 16px;
  font-weight: 700;
}

.np-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.np-card {
  background-color: #fff;
  border-radius: 24px;
  box-shadow: 3px 3px 0 #b8b2a8;
  border: 1px solid #ece3d5;
  padding: 16px 18px 14px;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  display: flex;
  flex-direction: column;
}

.np-card:hover {
  transform: translateY(-3px);
  border-color: #efa234;
  box-shadow: 4px 6px 0 #d5ab6f;
}

.np-card-body {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.np-card-top h4 {
  font-size: 23px;
  margin: 0;
  font-weight: 700;
  padding-bottom: 9px;
  color: #564122;
  border-bottom: 2px dashed #efa234;
  text-align: center;
}

.np-card-tagline {
  font-size: 15px;
  margin: 10px 0 8px;
  color: #3c352e;
  text-align: center;
  font-weight: 500;
  line-height: 1.45;
}

.np-card-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  margin-bottom: 6px;
}

.np-card-tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: #f5efe4;
  color: #6d583e;
  font-size: 12px;
  font-weight: 600;
}

.np-card-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}

.np-card-thumb {
  width: 68px;
  height: 68px;
  object-fit: contain;
  border-radius: 12px;
  background: #f6f1e6;
  flex-shrink: 0;
}

.np-more-btn {
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.np-more-btn span {
  display: inline-block;
  background-color: #767676;
  padding: 5px 15px;
  border-radius: 24px;
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  transition: background 0.15s ease, transform 0.15s ease;
}

.np-card:hover .np-more-btn span,
.np-more-btn:hover span {
  background-color: #564122;
}

.np-empty-box {
  padding: 36px 24px;
  text-align: center;
  background: #fff;
  border-radius: 18px;
  border: 1px dashed #cbbba4;
}

/* --- Bottom Sections: 7 大族群專欄 & 圖解營養 --- */
.np-bottom-sec {
  margin-top: 52px;
  padding-top: 12px;
}

.np-sec-header {
  text-align: center;
  margin-bottom: 22px;
}

.np-sec-header h2 {
  display: inline-block;
  margin: 0 0 8px;
  padding: 8px 34px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 3px 3px 0 #d3cac1;
  color: #333;
  font-size: 24px;
}

.np-sec-header h2 span {
  color: #efa234;
}

.np-sec-header p {
  margin: 0;
  color: #665a4c;
  font-size: 15px;
}

.np-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 16px;
}

.np-showcase-card {
  display: flex;
  flex-direction: column;
  padding: 18px 20px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #e6dac8;
  box-shadow: 3px 3px 0 #cbc2b6;
}

.np-showcase-top {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 10px;
}

.np-showcase-top img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 14px;
  background: #f6f1e6;
}

.np-showcase-badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: #f3e4c4;
  color: #685239;
  font-size: 12px;
  font-weight: 700;
}

.np-showcase-top h4 {
  margin: 4px 0 0;
  font-size: 21px;
  color: #4a3823;
}

.np-showcase-card > p {
  margin: 0 0 12px;
  color: #4a4138;
  font-size: 14.5px;
  line-height: 1.75;
}

.np-showcase-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.np-mini-pill {
  padding: 3px 10px;
  border: 1px solid #d9cbb8;
  border-radius: 999px;
  background: #faf6ee;
  color: #564122;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.np-mini-pill:hover {
  background: #685239;
  color: #fff;
}

.np-showcase-foot {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed #e3d7c6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.np-filter-jump {
  border: 0;
  background: transparent;
  color: #7a9c59;
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

/* --- 圖解營養 Grid --- */
.np-visual-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.np-vg-card {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #e6dac8;
  box-shadow: 3px 3px 0 #cbc2b6;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.np-vg-card:hover {
  transform: translateY(-3px);
  box-shadow: 4px 6px 0 #d5ab6f;
}

.np-vg-img-wrap {
  position: relative;
  padding: 16px;
  background: #f6f1e6;
  text-align: center;
}

.np-vg-img-wrap img {
  width: 130px;
  height: 130px;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

.np-vg-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #685239;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.np-vg-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.np-vg-body h4 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.5;
  color: #333;
}

.np-vg-body p {
  margin: 0 0 12px;
  font-size: 13.5px;
  line-height: 1.7;
  color: #5c534a;
}

.np-vg-foot {
  margin-top: auto;
  text-align: right;
}

/* =========================================================
   NPower Lightbox Modal & Bar Charts
   ========================================================= */
.np-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(34, 28, 22, 0.65);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 28px 16px;
  overflow-y: auto;
}

.np-modal-dialog {
  position: relative;
  width: min(900px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 28px 30px 20px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
  margin: auto 0;
}

.np-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 5;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #666;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.np-modal-close:hover {
  background: #f0f0f0;
  color: #111;
}

.np-lb-header {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
  align-items: center;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid #eee;
}

.np-lb-title-col {
  display: flex;
  align-items: center;
  gap: 14px;
}

.np-lb-MainFig {
  width: 84px;
  height: 84px;
  object-fit: contain;
  border-radius: 14px;
  background: #f6f1e6;
  flex-shrink: 0;
}

.nutrition-name {
  font-weight: 700;
  font-size: 32px;
  text-align: left;
  margin: 0 0 6px;
  color: #333;
  line-height: 1.25;
}

.nutrition-subname {
  font-size: 14px;
  color: #666;
  font-weight: 400;
  margin: 0 0 0 4px;
}

.nutrition-hr {
  margin: 8px 0;
  border: 0;
  border-top: 1px solid #efefef;
}

.nutrition-label {
  margin: 0;
  text-align: left;
  font-weight: 600;
  font-size: 16px;
  color: #333;
}

.nutrition-introduction {
  text-align: left;
  line-height: 1.85;
  margin: 0;
  padding: 0 5px;
  font-size: 16px;
  color: #333;
}

.np-efficacy-badge {
  display: inline-block;
  border: 1px solid #333;
  padding: 2px 7px;
  margin-right: 4px;
  font-weight: 700;
  font-size: 14px;
  border-radius: 4px;
}

.np-lb-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.np-modal-tag {
  padding: 3px 10px;
  border: 1px solid #dcd2c2;
  border-radius: 999px;
  background: #f7f3eb;
  color: #564122;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.np-modal-tag:hover {
  background: #efa234;
  color: #222;
}

.np-ref-range {
  padding: 12px 16px;
  border: 2px dashed #c8c8c8;
  border-radius: 12px;
  margin: 0 0 16px;
  background: #fcfbf9;
}

.np-ref-range strong {
  color: #564122;
  font-size: 15px;
}

.np-ref-range p {
  margin: 6px 0 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: #333;
}

/* --- Lightbox Tabs --- */
.np-tabbed-content {
  margin-bottom: 18px;
}

.np-tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.np-tab-btn {
  padding: 8px 16px;
  border: 2px solid #e7e7e7;
  border-radius: 8px;
  background: #fff;
  color: #555;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.np-tab-btn:hover {
  border-color: #7a9c59;
}

.np-tab-btn.is-active {
  background-color: #7a9c59;
  border-color: #7a9c59;
  color: #fff;
}

.np-tab-panel {
  padding: 8px 0 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 15.5px;
  line-height: 1.85;
}

/* Support NPower's .row / .col grid inside tab panels */
.np-tab-panel .row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.np-tab-panel .col.large-3,
.np-tab-panel .col.medium-3 {
  grid-column: span 3;
}

.np-tab-panel .col.large-9,
.np-tab-panel .col.medium-9 {
  grid-column: span 9;
}

.np-tab-panel .col.large-6,
.np-tab-panel .col.medium-6 {
  grid-column: span 6;
}

.np-tab-panel .col.large-2,
.np-tab-panel .col.medium-2 {
  grid-column: span 3;
}

.np-tab-panel .col.large-12 {
  grid-column: span 12;
}

.np-tab-grid {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 20px;
  align-items: start;
}

.np-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.np-food-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  align-items: center;
}

.np-food-fig {
  width: 115px;
  height: 115px;
  object-fit: contain !important;
  border-radius: 0 !important;
  border: 0 !important;
  background: transparent !important;
  display: block;
  margin: 0 auto;
}

/* --- NPower Intake Bars & Special Group Box --- */
.other-add {
  border: 1px solid #566f31;
  padding: 12px 14px;
  border-radius: 8px;
  background: #fff;
}

.other-add h5 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: #333;
}

.other-add p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: #333;
}

.nutrition-grey {
  color: #777;
  font-size: 14px;
}

.add-label-1,
.add-label-2 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 400;
  color: #333;
  margin-right: 10px;
}

.add-label-1 span {
  background-color: #f0d39e;
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 0;
}

.add-label-2 span {
  background-color: #523e1ecb;
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 0;
}

.less-label span {
  background-color: #e74d4dbd !important;
}

.men-icon,
.women-icon {
  margin: 8px 0 4px;
  font-size: 16px;
  color: #333;
  font-weight: 600;
}

.nutrition-men-bg,
.nutrition-women-bg {
  background-color: #ececec;
  border-radius: 0;
  height: 26px;
  overflow: visible;
}

.nutrition-men,
.nutrition-women {
  position: relative;
  background-color: #f0d39e;
  color: #fff;
  font-weight: 400;
  font-size: 14.5px;
  height: 26px;
  line-height: 26px;
  padding: 0 10px;
  text-align: right;
  border-radius: 0;
}

.nutrition-men p,
.nutrition-women p {
  margin: 0;
  display: none;
}

.men-percent,
.women-percent {
  position: absolute;
  height: 100%;
  background-color: #523e1e9a;
  color: #fff;
  left: 0;
  top: 0;
  padding-right: 6px;
  line-height: 26px;
  font-size: 14.5px;
  font-weight: 400;
  border-radius: 0;
  animation-duration: 1.2s;
  animation-fill-mode: both;
}

.less-percent {
  background-color: #db4949bd !important;
}

@keyframes percent-40 { 0% { width: 0; } 100% { width: 40%; } }
@keyframes percent-50 { 0% { width: 0; } 100% { width: 50%; } }
@keyframes percent-70 { 0% { width: 0; } 100% { width: 70%; } }
@keyframes percent-80 { 0% { width: 0; } 100% { width: 80%; } }
@keyframes percent-110 { 0% { width: 0; } 100% { width: 110%; } }
@keyframes percent-120 { 0% { width: 0; } 100% { width: 120%; } }
@keyframes percent-130 { 0% { width: 0; } 100% { width: 130%; } }
@keyframes percent-140 { 0% { width: 0; } 100% { width: 140%; } }
@keyframes percent-160 { 0% { width: 0; } 100% { width: 160%; } }
@keyframes percent-170 { 0% { width: 0; } 100% { width: 170%; } }

.percent-40 { width: 40%; animation-name: percent-40; }
.percent-50 { width: 50%; animation-name: percent-50; }
.percent-70 { width: 70%; animation-name: percent-70; }
.percent-80 { width: 80%; animation-name: percent-80; }
.percent-110 { width: 110%; animation-name: percent-110; }
.percent-120 { width: 120%; animation-name: percent-120; }
.percent-130 { width: 130%; animation-name: percent-130; }
.percent-140 { width: 140%; animation-name: percent-140; }
.percent-160 { width: 160%; animation-name: percent-160; }
.percent-170 { width: 170%; animation-name: percent-170; }

.nutrition-most {
  text-align: right;
  font-size: 12.5px;
  color: #666;
  margin-top: 3px;
}

.nutrition-border-bottom {
  background: linear-gradient(transparent 55%, #ffe173 20%);
  display: inline;
  font-weight: 500;
}

.red-color {
  color: #e74d4d;
  font-weight: 400;
}

.np-dris-plain-link {
  color: #333;
  text-decoration: none;
  font-weight: 400;
  cursor: pointer;
}

.np-dris-plain-link:hover {
  text-decoration: underline;
}

.np-calc-link,
.np-inline-link {
  color: #4f6f2c;
  font-weight: 700;
  text-decoration: underline;
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

/* --- Recommended Reading Box Inside Lightbox --- */
.np-recommend-box {
  background-color: #f7f7f7;
  padding: 16px 20px;
  border-radius: 14px;
  border: 1px solid #e5e5e5;
}

.np-recommend-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.np-recommend-head b {
  color: #627f46;
  font-size: 18px;
}

.np-recommend-hint {
  color: #777;
  font-size: 13px;
}

.np-recommend-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.np-recommend-list li + li {
  margin-top: 8px;
}

.np-more-blog-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
  color: #333;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.np-more-blog-btn:hover,
.np-more-blog-btn.is-open {
  border-color: #7a9c59;
  background: #f5f9f0;
}

.np-blog-cta {
  flex-shrink: 0;
  font-size: 13px;
  color: #627f46;
  font-weight: 700;
}

.np-art-drawer {
  margin-top: 6px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #fff;
  border-left: 4px solid #7a9c59;
  font-size: 14.5px;
  line-height: 1.8;
  color: #333;
}

.np-art-drawer p {
  margin: 0 0 8px;
}

.np-art-drawer ul {
  margin: 6px 0 0;
  padding-left: 1.25em;
}

.np-recommend-more-wrap {
  text-align: right;
  margin-top: 12px;
}

.np-expand-all-btn {
  padding: 6px 16px;
  border: 1px solid #627f46;
  border-radius: 999px;
  background: #627f46;
  color: #fff;
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}

.np-expand-all-btn:hover {
  background: #4d6635;
}

.np-all-arts-summary {
  margin-top: 14px;
  padding: 16px;
  border-radius: 12px;
  background: #fffdf8;
  border: 1px solid #e2d5c1;
}

.np-all-arts-summary h4 {
  margin: 0 0 10px;
  color: #564122;
  font-size: 16.5px;
}

.np-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.np-summary-card {
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #eee3d3;
}

.np-summary-card h5 {
  margin: 0 0 6px;
  font-size: 15px;
  color: #627f46;
}

.np-summary-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
}

/* --- Modal Footer Navigation --- */
.np-lb-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #eee;
}

.np-nav-prev,
.np-nav-next,
.np-nav-close {
  padding: 8px 16px;
  border: 1px solid #d5cab8;
  border-radius: 999px;
  background: #faf6ee;
  color: #4a3823;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.np-nav-close {
  background: #685239;
  border-color: #685239;
  color: #fff;
}

.np-nav-prev:hover,
.np-nav-next:hover {
  background: #efa234;
  border-color: #efa234;
}

/* --- Guide Modals (查族群 / 查需求 / 圖解營養) --- */
.np-guide-hero {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  align-items: center;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid #eae2d6;
}

.np-guide-hero img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  border-radius: 16px;
  background: #f6f1e6;
}

.np-guide-hero h2 {
  margin: 6px 0;
  font-size: 25px;
  color: #3d2d19;
}

.np-guide-hero p {
  margin: 0;
  color: #4f4438;
  font-size: 15px;
  line-height: 1.75;
}

.np-guide-sec {
  margin-bottom: 20px;
}

.np-guide-sec h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: #564122;
}

.np-check-list {
  margin: 0;
  padding-left: 1.3em;
  line-height: 1.85;
  font-size: 15px;
}

.np-check-list li + li {
  margin-top: 6px;
}

.np-meal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.np-meal-card {
  padding: 14px;
  border-radius: 12px;
  background: #faf6ee;
  border: 1px solid #e6dac8;
}

.np-meal-card b {
  display: block;
  margin-bottom: 6px;
  color: #685239;
  font-size: 15px;
}

.np-meal-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
}

.np-warn-box {
  padding: 14px 16px;
  border-left: 4px solid #d15250;
  border-radius: 10px;
  background: #fdf4f3;
  color: #4a2523;
  font-size: 14.5px;
  line-height: 1.8;
}

.np-mini-nut-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.np-mini-nut-card {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #e5d9c6;
  border-radius: 12px;
  background: #fff;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.np-mini-nut-card:hover {
  border-color: #efa234;
  background: #fffcf5;
}

.np-mini-nut-card img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 10px;
  background: #f6f1e6;
}

.np-mini-nut-card b {
  display: block;
  font-size: 15px;
  color: #4a3823;
}

.np-mini-nut-card span {
  display: block;
  font-size: 12.5px;
  color: #776b5d;
}

.np-mini-more {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: #627f46;
  white-space: nowrap;
}

.np-vg-article-content {
  font-size: 15px;
  line-height: 1.85;
  color: #333;
  margin-bottom: 20px;
}

.np-vg-article-content h4 {
  margin: 16px 0 8px;
  font-size: 18px;
  color: #564122;
}

.np-vg-article-content table th,
.np-vg-article-content table td {
  text-align: left;
  padding: 10px 12px;
}

.np-vg-article-content table thead th {
  background: #f5ebd6;
  color: #4a3823;
}

.np-guide-tip {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  background: #f3f8ec;
  border-left: 4px solid #7a9c59;
}

.np-table-scroll {
  overflow-x: auto;
}

/* --- Responsive Adjustments --- */
@media (max-width: 980px) {
  .np-hero-banner {
    grid-template-columns: 1fr;
    padding: 20px 20px 36px;
  }
  .np-dashboard {
    grid-template-columns: 1fr;
    margin: -18px 6px 20px;
  }
  .np-group-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .np-filter-bg {
    grid-template-columns: 1fr;
  }
  .np-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .np-visual-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .np-lb-header {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .np-group-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .np-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .np-visual-grid,
  .np-meal-grid,
  .np-summary-grid,
  .np-two-col,
  .np-tab-grid,
  .np-food-row {
    grid-template-columns: 1fr;
  }
  .np-tab-panel .row {
    grid-template-columns: 1fr;
  }
  .np-tab-panel .col.large-3,
  .np-tab-panel .col.medium-3,
  .np-tab-panel .col.large-9,
  .np-tab-panel .col.medium-9,
  .np-tab-panel .col.large-6,
  .np-tab-panel .col.medium-6,
  .np-tab-panel .col.large-2,
  .np-tab-panel .col.medium-2 {
    grid-column: span 1;
  }
  .np-spotlight-inner,
  .np-guide-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .np-spotlight-img,
  .np-guide-hero img {
    margin: 0 auto;
  }
  .np-modal-dialog {
    padding: 18px 16px;
  }
}


/* =========================================================
   Exact NPower Format Layout (.page-npower-nutrition)
   ========================================================= */
.page-npower-nutrition {
  background-color: rgb(246, 237, 217);
  color: #333;
}

.npw-banner {
  background-color: rgb(246, 237, 217);
  padding: 36px 20px 128px;
}

.npw-banner-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 28px;
  align-items: center;
}

.npw-banner-text-box {
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  padding: 18px 22px;
  box-shadow: 0 4px 18px rgba(104, 82, 57, 0.06);
}

.npw-banner-quote {
  border-left: 5px solid #efa234;
  padding: 12px 0 12px 20px;
  margin: 0 0 14px;
  text-align: left;
  letter-spacing: 1.5px;
  line-height: 1.85;
  font-size: 16px;
  color: #333;
}

.npw-banner-sub {
  margin: 0;
  color: #333;
  font-size: 15.5px;
  line-height: 1.9;
  letter-spacing: 1px;
}

.npw-banner-img-box img {
  display: block;
  width: 100%;
  height: 290px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(82, 62, 30, 0.16);
  border: 4px solid #fff;
}

.npw-container {
  max-width: 1140px;
  margin: 0 auto 80px;
  padding: 0 16px;
}

.npw-top-controls {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 16px;
  margin-top: -92px;
  margin-bottom: 26px;
  position: relative;
  z-index: 3;
}

.group-search {
  width: 28.5%;
  box-shadow: 0 3px 20px #a97c471f;
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}

.group-search h4 {
  margin: 0;
  background-color: #685239;
  text-align: center;
  padding: 8px 6px 7px;
  color: #fff;
  border-radius: 12px 12px 0 0;
  text-shadow: 3px 3px 5px #4e3a24;
  font-size: 18px;
}

.group-row {
  padding: 12px 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 6px;
}

.group-blog {
  text-align: center;
  background-color: #e7e7e7;
  box-shadow: 2px 2px 0 #d2d2d2;
  border-radius: 8px;
  width: calc(33.333% - 4px);
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.group-blog a {
  display: block;
  padding: 9px 4px;
  font-size: 14px;
  color: #333;
  font-weight: 600;
  text-decoration: none;
}

.group-blog:hover {
  background-color: #f5e2c0;
}

.group-blog a.is-active {
  background-color: #685239;
  color: #fff;
  border-radius: 8px;
}

.filter-search {
  flex: 1;
  padding: 15px 25px 20px 25px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 20px #a97c471f;
}

.npw-search-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.npw-search-line .form-control {
  width: 60%;
  height: 40px;
  padding: 0 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font: inherit;
  font-size: 15px;
}

.npw-search-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  background-color: #8ab165;
  padding: 0 14px;
  color: #fff;
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.npw-search-link:hover {
  background-color: #769c52;
}

.filter-bg {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

.filter-option-1 {
  width: 57%;
}

.filter-option-2 {
  width: 40%;
}

.filter-option-1 h4,
.filter-option-2 h4 {
  margin: 0 0 8px;
  padding: 3px;
  text-align: left;
  border-bottom: 1px solid #333;
  font-size: 17px;
  color: #333;
}

.filter-button {
  background-color: #494039;
  border-radius: 24px;
  padding: 5px 13px;
  border: 3px solid transparent;
  outline: 0;
  color: #fff;
  margin: 4px 2px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.filter-button:hover,
.filter-button:focus,
.filter-button.is-active {
  border: 3px solid #f0a334;
}

.filter-button.is-active {
  background-color: #685239;
  font-weight: 700;
}

/* --- Exact NPower Card Grid (.filter-group.node-row) --- */
.filter-group.node-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px;
}

.filter-node {
  width: calc(25% - 20px);
  margin: 10px;
  position: relative;
  text-align: center;
}

.filter-node.filter-sec-head {
  width: calc(100% - 20px) !important;
  margin: 22px 10px 8px;
}

.title-1 {
  margin: 10px 0;
  font-size: 24px;
  font-weight: 600;
}

.title-1 span {
  display: block;
  font-size: 0.85em;
  color: #333;
  position: relative;
}

.title-1 span::before,
.title-1 span::after {
  content: "";
  position: absolute;
  top: 50%;
  background: #aaa;
  width: 40%;
  height: 1px;
}

.title-1 span::before { left: 0; }
.title-1 span::after { right: 0; }

.nutrients-style {
  background-color: #fff;
  border-radius: 24px;
  box-shadow: 3px 3px #a8a8a7;
  font-size: 30px;
  font-weight: 500;
  padding: 16px 20px;
  background-size: 65px;
  background-position-x: -1px;
  background-position-y: 110px;
  overflow: hidden;
  background-repeat: no-repeat;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nutrients-style:hover {
  transform: translateY(-2px);
  box-shadow: 4px 5px #8e8e8d;
}

.filter-node h4 {
  font-size: 24px;
  margin: 0;
  font-weight: 500;
  padding-bottom: 10px;
  color: #564122;
  border-bottom: 2px dashed #efa234;
}

.filter-node p.lc-1 {
  font-size: 16px;
  margin: 12px 4px 5px 4px;
  font-weight: 400;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.filter-node a {
  text-decoration: none;
}

.nutrients-btn {
  text-align: right;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.nutrients-btn span {
  display: inline-block;
  background-color: #767676;
  padding: 5px 16px;
  border-radius: 24px;
  font-size: 14px;
  line-height: 1.4;
  color: #fff;
  border: 3px solid transparent;
}

.nutrients-style:hover .nutrients-btn span,
.nutrients-btn:hover span {
  border: 3px solid #f0a334;
}

/* --- Exact NPower Lightbox Header & Footer --- */
.np-lb-header-exact {
  display: grid;
  grid-template-columns: 25% 1fr;
  gap: 18px;
  align-items: start;
  padding-bottom: 10px;
}

.np-lb-head-left {
  padding-right: 8px;
}

.np-lb-head-right {
  padding-top: 4px;
}

.np-nav-pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 12px;
  padding: 0;
}

.np-nav-pills li {
  margin: 0;
}

.np-nav-pills .np-tab-btn {
  margin: 3px;
  padding: 6px 16px;
  border: 2px solid #e7e7e7;
  border-radius: 999px;
  background-color: #fff;
  color: #555;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.np-nav-pills .np-tab-btn:hover {
  border-color: #7a9c59;
  color: #333;
}

.np-nav-pills .np-tab-btn.is-active {
  background-color: #7a9c59 !important;
  border: 2px solid #7a9c59 !important;
  color: #fff !important;
}

.np-lb-gray-footer {
  background-color: rgb(247, 247, 247);
  padding: 15px 18px;
  border-radius: 10px;
  margin-top: 12px;
}

.np-lb-blog-ul {
  list-style: disc;
  padding-left: 18px;
  margin: 8px 0 6px;
}

.np-lb-blog-ul li {
  margin: 6px 0;
  line-height: 30px;
  color: #333;
}

.more-blog {
  color: #333;
  border-bottom: 1px solid #333;
  line-height: 30px;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
}

.more-blog:hover {
  color: #627f46;
  border-bottom-color: #627f46;
}

.np-lb-more-a {
  color: #333;
  font-size: 15.5px;
  text-decoration: none;
}

.np-lb-more-a:hover {
  color: #627f46;
}

/* --- Bottom • 圖解營養 • Section --- */
.npw-visual-section {
  margin-top: 56px;
}

.npw-visual-header-row {
  text-align: center;
  margin-bottom: 24px;
}

.npw-visual-pill {
  display: inline-block;
  background-color: #fff;
  padding: 6px 48px;
  border-radius: 100px;
  box-shadow: 3px 3px 0 #d3cac1;
}

.npw-visual-pill h2 {
  margin: 0;
  line-height: 38px;
  font-size: 22px;
  color: #333;
}

.npw-visual-pill h2 span {
  color: #efa234;
  font-size: 24px;
}

.npw-post-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.npw-post-item {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  display: flex;
  flex-direction: column;
}

.npw-post-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.npw-post-cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #eee;
}

.npw-post-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.npw-post-item:hover .npw-post-cover img {
  transform: scale(1.04);
}

.npw-post-text {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.npw-post-title {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: #333;
  font-weight: 600;
}

/* Make modal photos look crisp as real photos */
.np-lb-MainFig,
.np-spotlight-img,
.np-guide-hero img,
.np-mini-nut-card img {
  object-fit: cover !important;
  background: #fff !important;
  border: 2px solid #efe6d8;
}

@media (max-width: 1024px) {
  .npw-banner-inner {
    grid-template-columns: 1fr;
  }
  .npw-top-controls {
    flex-direction: column;
    margin-top: -70px;
  }
  .group-search,
  .filter-search {
    width: 100%;
  }
  .group-blog {
    width: calc(25% - 6px);
  }
  .filter-node {
    width: calc(33.333% - 20px);
  }
  .npw-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .filter-option-1,
  .filter-option-2 {
    width: 100%;
  }
  .npw-search-line .form-control {
    width: 100%;
  }
  .group-blog {
    width: calc(50% - 6px);
  }
  .filter-node {
    width: calc(50% - 14px);
    margin: 7px;
  }
  .title-1 span::before,
  .title-1 span::after {
    width: 30%;
  }
  .npw-post-grid {
    grid-template-columns: 1fr;
  }
}
