/* Protein guide: food editorial layout. Loaded after the site's shared styles. */
body.protein-tool-page {
  --cream: #f7f1e7;
  --paper: #fffaf1;
  --ink: #3b2b22;
  --muted: #716558;
  --line: #ddcfba;
  --tomato: #aa4730;
  --tomato-dark: #81341f;
  --olive: #596548;
  max-width: 1280px;
  padding: 28px clamp(16px, 4vw, 54px) 48px;
  color: var(--ink);
  background: radial-gradient(circle at 15% 8%, #fffbf3 0, transparent 24%), var(--cream);
  color-scheme: light;
}

.protein-tool-page p { color: var(--ink); }
.protein-tool-page a { color: var(--tomato-dark); }
.protein-tool-page a:focus-visible,
.protein-tool-page button:focus-visible,
.protein-tool-page select:focus-visible,
.protein-tool-page summary:focus-visible,
.protein-table-scroll:focus-visible {
  outline: 3px solid var(--tomato);
  outline-offset: 3px;
}
.protein-tool-page hr { border-color: var(--line); }
.protein-tool-page h1,
.protein-tool-page h2,
.protein-tool-page h3 {
  color: var(--ink);
  font-family: "Noto Serif TC", "Source Han Serif TC", "PMingLiU", Georgia, serif;
  letter-spacing: -.025em;
}

.protein-tool-page .back-link {
  margin: 0 0 18px;
  font-size: .84rem;
  font-weight: 700;
}
.protein-tool-page .back-link a { text-decoration: underline; text-underline-offset: 4px; }
.protein-tool-page main { gap: clamp(24px, 4vw, 46px); }

/* Ingredient photograph + editorial title */
.protein-tool-page .protein-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  min-height: 480px;
  overflow: hidden;
  padding: 0;
  border: 1px solid #e0c9a8;
  border-radius: 4px;
  background: var(--paper);
  box-shadow: 0 20px 45px rgba(87, 56, 31, .10);
}
.protein-intro-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  padding: clamp(28px, 5vw, 64px);
  background: linear-gradient(150deg, #fffaf1 0%, #f7ead4 100%);
}
.protein-eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 17px;
  color: var(--tomato-dark) !important;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .12em;
}
.protein-eyebrow span {
  padding-left: 12px;
  border-left: 1px solid #c79b79;
  color: var(--muted);
  font-size: .68rem;
  letter-spacing: .17em;
}
.protein-tool-page .protein-intro h1 {
  margin: 0;
  color: #432a1f;
  font-size: clamp(2.8rem, 5.7vw, 5.3rem);
  font-weight: 900;
  line-height: 1.16;
}
.protein-intro h1 em { color: var(--tomato); font-style: normal; }
.protein-tool-page .protein-intro .tagline {
  max-width: 31rem;
  margin: 24px 0 0;
  color: #5e5144;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.85;
}
.protein-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 24px;
}
.protein-hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 17px;
  border: 1px solid var(--tomato);
  background: var(--tomato);
  color: #fff;
  font-size: .9rem;
  font-weight: 800;
  text-decoration: none;
}
.protein-hero-actions a:hover { background: var(--tomato-dark); border-color: var(--tomato-dark); }
.protein-hero-actions a + a { background: transparent; color: var(--tomato-dark); }
.protein-hero-actions a + a:hover { background: #f2ddc7; }
.protein-hero-actions span { margin-left: 12px; }
.protein-tool-page .protein-data-stamp {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  width: 100%;
  min-width: 0;
  padding: 16px 0 0;
  border: 0;
  border-top: 1px solid #d9bf9e;
}
.protein-data-stamp > div { display: flex; align-items: baseline; gap: 9px; }
.protein-tool-page .protein-data-stamp strong {
  color: var(--tomato);
  font-family: Georgia, serif;
  font-size: 2.4rem;
  line-height: 1;
}
.protein-tool-page .protein-data-stamp span { color: var(--ink); font-size: .82rem; }
.protein-tool-page .protein-data-stamp small { margin-left: auto; color: var(--muted); font-size: .73rem; line-height: 1.5; }
.protein-hero-photo { position: relative; min-width: 0; min-height: 100%; margin: 0; overflow: hidden; }
.protein-hero-photo img { width: 100%; height: 100%; min-height: 480px; display: block; object-fit: cover; object-position: 62% center; }
.protein-hero-photo figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  max-width: calc(100% - 28px);
  padding: 5px 9px;
  background: rgba(255, 250, 241, .93);
  color: #5d5145;
  font-size: .67rem;
}

/* Menu-like page navigation */
.protein-jump-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: .86rem;
}
.protein-jump-nav span { margin-right: 6px; color: var(--muted); font-weight: 700; }
.protein-jump-nav a { font-weight: 800; text-decoration: none; }
.protein-jump-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

.protein-tool-page .service-kicker {
  color: var(--tomato-dark);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.protein-tool-page .protein-section-heading { align-items: end; margin-bottom: 16px; }
.protein-tool-page .protein-section-heading h2,
.protein-tool-page .protein-filter-heading h2,
.protein-tool-page .protein-method h2,
.protein-tool-page .protein-simple h2,
.protein-tool-page .protein-pending h2,
.protein-tool-page .protein-faq h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.55rem, 2.8vw, 2.25rem);
  font-weight: 850;
  line-height: 1.4;
}
.protein-tool-page .protein-answer-note,
.protein-tool-page .protein-filter-note,
.protein-tool-page .protein-legend { color: var(--muted); font-size: .85rem; }

/* Asymmetric tasting-note cards */
.protein-tool-page .protein-highlight-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  grid-template-rows: repeat(2, minmax(190px, auto));
  gap: 14px;
}
.protein-tool-page .protein-highlight-grid article {
  position: relative;
  padding: clamp(22px, 3.2vw, 38px);
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 4px;
  box-shadow: 0 8px 22px rgba(87, 56, 31, .06);
}
.protein-highlight-number {
  position: absolute;
  top: 20px;
  right: 24px;
  opacity: .7;
  font: 800 .74rem/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: .11em;
}
.protein-tool-page .protein-highlight-grid h3 { margin: 13px 0 16px; font-size: clamp(1.25rem, 2.2vw, 2.15rem); font-weight: 850; }
.protein-tool-page .protein-highlight-grid p { max-width: 38rem; margin: 10px 0 0; line-height: 1.8; }
.protein-tool-page .protein-highlight--value {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #a9432d;
  color: #fff6e8;
}
.protein-tool-page .protein-highlight--value h3,
.protein-tool-page .protein-highlight--value p,
.protein-tool-page .protein-highlight--value .service-kicker { color: #fff6e8; }
.protein-tool-page .protein-highlight--value .protein-highlight-number { color: #fff6e8; }
.protein-feature-price {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin: auto 0 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.45);
}
.protein-feature-price strong { font: 800 clamp(2.4rem, 5vw, 4.5rem)/1 Georgia, serif; }
.protein-feature-price span { font-size: .82rem; font-weight: 700; }
.protein-tool-page .protein-highlight--simple { background: #f3dfb8; }
.protein-tool-page .protein-highlight--protein { background: #e5e9d9; }
.protein-highlights > .protein-answer-note { margin: 15px 0 0; }
.protein-tool-page .protein-pairing-note {
  margin: 16px 0 0;
  padding: 13px 16px;
  border-left: 4px solid var(--olive);
  background: #ecebdc;
  color: var(--ink);
  font-size: .88rem;
  line-height: 1.75;
}
.protein-pairing-note strong { color: var(--tomato-dark); }

/* Price list, ingredient labels, and product shelf */
.protein-tool-page .protein-ranking,
.protein-tool-page .protein-simple,
.protein-tool-page .protein-filter-board,
.protein-tool-page .protein-method,
.protein-tool-page .protein-pending,
.protein-tool-page .protein-faq {
  padding: clamp(22px, 3.5vw, 38px);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  box-shadow: 0 8px 22px rgba(87, 56, 31, .04);
}
.protein-tool-page .protein-ranking > .protein-section-heading > p {
  padding: 5px 11px;
  border: 1px solid var(--tomato);
  color: var(--tomato-dark);
  font-size: .8rem;
  font-weight: 800;
}
.protein-table-hint { display: none; }
.protein-tool-page .protein-table-scroll { border: 1px solid var(--line); border-radius: 0; background: #fff; }
.protein-tool-page .protein-table { min-width: 950px; font-size: .85rem; }
.protein-tool-page .protein-table thead { background: #604337; color: #fff7e8; }
.protein-tool-page .protein-table th,
.protein-tool-page .protein-table td { padding: 11px 12px; border-color: #eadfcd; }
.protein-tool-page .protein-table tbody tr:nth-child(even) { background: #faf2e5; }
.protein-tool-page .protein-table tbody tr:nth-child(odd) { background: #fffaf1; }
.protein-tool-page .protein-table tbody tr:first-child { background: #f7e4be; }
.protein-tool-page .protein-table tbody th { color: var(--tomato-dark); font-family: Georgia, serif; font-size: 1.06rem; }
.protein-tool-page .protein-table strong { color: var(--tomato-dark); }
.protein-tool-page .protein-volume { color: var(--muted); }

.protein-tool-page .protein-simple-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  list-style: none;
}
.protein-tool-page .protein-simple-list li {
  padding: 14px 15px;
  border: 1px dashed #c5ab84;
  background: #fcf3e2;
  line-height: 1.55;
}
.protein-tool-page .protein-simple-list li strong { color: var(--ink); font-size: .91rem; }
.protein-tool-page .protein-simple-list li span:not(.protein-volume) { margin-top: 6px; color: var(--muted); font-size: .78rem; }

.protein-tool-page .protein-filter-board { background: #f4e8d3; }
.protein-tool-page .protein-result-count { color: var(--tomato-dark); }
.protein-tool-page .protein-filter-buttons { gap: 9px; }
.protein-tool-page .protein-filter-buttons button,
.protein-tool-page .protein-clear {
  min-height: 44px;
  border: 1px solid #bea78a;
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 750;
}
.protein-tool-page .protein-filter-buttons button[aria-pressed="true"] { border-color: var(--tomato); background: var(--tomato); color: #fff; }
.protein-tool-page .protein-filter-buttons button:hover,
.protein-tool-page .protein-clear:hover { border-color: var(--tomato); }
.protein-tool-page .protein-sort-row select {
  border: 1px solid #bea78a;
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
}
.protein-tool-page .protein-sort-row label { color: var(--ink); }
.protein-tool-page .protein-results { gap: 15px; }
.protein-tool-page .protein-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  box-shadow: 0 7px 22px rgba(87, 56, 31, .06);
}
.protein-tool-page .protein-card::before { content: ""; display: block; height: 6px; background: var(--olive); }
.protein-tool-page .protein-card-photo { display: block; color: var(--ink); text-decoration: none; }
.protein-tool-page .protein-card-photo img { display: block; width: 100%; height: 260px; object-fit: contain; background: #eee8db; }
.protein-tool-page .protein-card-photo span { display: block; padding: 8px 20px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .75rem; }
.protein-tool-page .protein-card-photo:hover span { color: var(--tomato-dark); text-decoration: underline; }
.protein-tool-page .protein-card-head { gap: 14px; padding: 20px 20px 14px; }
.protein-tool-page .protein-card h3 { margin: 9px 0 4px; color: var(--ink); font-size: 1.15rem; line-height: 1.45; }
.protein-tool-page .protein-card-head > div > p:last-child { color: var(--muted); }
.protein-tool-page .protein-card-badges span {
  padding: 2px 7px;
  border: 1px solid #cfbda2;
  border-radius: 2px;
  background: #faf0df;
  color: #614633;
  font-size: .69rem;
  font-weight: 800;
}
.protein-tool-page .protein-cost {
  min-width: 132px;
  padding: 10px;
  background: #eed8b7;
  text-align: right;
}
.protein-tool-page .protein-cost span,
.protein-tool-page .protein-cost small { color: #684838; }
.protein-tool-page .protein-cost strong { color: var(--tomato-dark); font-family: Georgia, serif; font-size: 1.45rem; }
.protein-tool-page .protein-metrics { gap: 0; margin: 0 20px 18px; border-top: 1px solid var(--line); }
.protein-tool-page .protein-metrics div { padding: 10px 8px 7px 0; border-bottom: 1px dashed var(--line); border-radius: 0; background: transparent; }
.protein-tool-page .protein-metrics dt { color: var(--muted); }
.protein-tool-page .protein-metrics dd { color: var(--ink); font-family: Georgia, "Noto Serif TC", serif; font-size: 1rem; }
.protein-tool-page .protein-metrics dd small { color: var(--muted); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.protein-tool-page .protein-other-size-price { margin: -4px 20px 18px; padding: 10px 12px; border-left: 3px solid var(--olive); background: #f2eadb; color: var(--ink); font-size: .85rem; line-height: 1.6; }
.protein-tool-page .protein-empty { border-color: var(--line); border-radius: 0; background: var(--paper); }

.protein-tool-page .protein-method-grid article { padding: 18px; border: 0; border-top: 3px solid var(--olive); background: #f2eadb; }
.protein-tool-page .protein-method-grid strong { color: var(--tomato-dark); }
.protein-tool-page .protein-method-grid p { color: var(--ink); }
.protein-tool-page .protein-sources { border-color: var(--line); }
.protein-tool-page .protein-sources summary { color: var(--tomato-dark); }
.protein-tool-page .protein-pending ul { gap: 7px 30px; }
.protein-tool-page .protein-pending li { padding: 5px 0; border-bottom: 1px dashed var(--line); }
.protein-tool-page .protein-faq article { border-color: var(--line); }
.protein-tool-page .protein-faq h3 { color: var(--ink); font-size: 1.12rem; }
.protein-tool-page footer { color: var(--muted); }
.protein-tool-page .footer-links a { color: var(--tomato-dark); }

@media (max-width: 900px) {
  .protein-tool-page .protein-intro { min-height: 0; }
  .protein-intro-copy { padding: 32px; }
  .protein-hero-photo img { min-height: 430px; }
  .protein-tool-page .protein-simple-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  body.protein-tool-page { padding: 16px 14px 34px; }
  .protein-tool-page .protein-intro { grid-template-columns: minmax(0, 1fr); }
  .protein-hero-photo { grid-row: 1; height: 240px; }
  .protein-hero-photo img { min-height: 240px; height: 240px; object-position: center 56%; }
  .protein-intro-copy { padding: 26px 23px 23px; }
  .protein-tool-page .protein-intro h1 { font-size: clamp(2.65rem, 11vw, 4.4rem); }
  .protein-tool-page .protein-intro .tagline { margin-top: 16px; }
  .protein-hero-actions { margin: 20px 0; }
  .protein-tool-page .protein-data-stamp { align-items: flex-start; }
  .protein-tool-page .protein-data-stamp small { margin-left: 0; }
  .protein-jump-nav { gap: 8px 14px; }
  .protein-jump-nav span { width: 100%; }
  .protein-tool-page .protein-highlight-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
  .protein-tool-page .protein-highlight--value { grid-row: auto; min-height: 330px; }
  .protein-feature-price { margin-top: 24px; }
  .protein-tool-page .protein-simple-list { grid-template-columns: minmax(0, 1fr); }
  .protein-tool-page .protein-ranking,
  .protein-tool-page .protein-simple,
  .protein-tool-page .protein-filter-board,
  .protein-tool-page .protein-method,
  .protein-tool-page .protein-pending,
  .protein-tool-page .protein-faq { padding: 20px 17px; }
  .protein-tool-page .protein-table-hint { display: block; margin: 0 0 10px; color: var(--tomato-dark); font-size: .78rem; font-weight: 800; }
  .protein-tool-page .protein-filter-buttons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .protein-tool-page .protein-results { grid-template-columns: minmax(0, 1fr); }
  .protein-tool-page .protein-pending ul { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 390px) {
  .protein-tool-page .protein-filter-buttons { grid-template-columns: minmax(0, 1fr); }
  .protein-tool-page .protein-card-head { grid-template-columns: minmax(0, 1fr); }
  .protein-tool-page .protein-cost { width: max-content; min-width: 0; text-align: left; }
}
