.food-guide-page { color: var(--text-primary); background: var(--bg-app); }
.food-guide-page *, .food-guide-page *::before, .food-guide-page *::after { box-sizing: border-box; }
.food-guide-page :where(h1,h2,h3,p,figure) { margin-top: 0; }
.food-guide-page :where(a,button,input,summary):focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.food-guide-hero-band { border-bottom: 1px solid var(--border-color); background: var(--bg-surface); }
.food-guide-hero { padding-top: 28px; padding-bottom: 42px; }
.food-guide-hero .breadcrumb { margin-bottom: 30px; }
.food-guide-hero-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,390px); gap: 56px; align-items: center; }
.food-guide-hero h1 { max-width: 780px; margin: 14px 0 16px; font-size: var(--text-5xl); line-height: 1.08; letter-spacing: 0; overflow-wrap: anywhere; }
.food-guide-hero p { max-width: 780px; margin-bottom: 20px; color: var(--text-secondary); font-size: var(--text-lg); line-height: 1.7; }
.food-guide-meta { display: flex; flex-wrap: wrap; gap: 9px 18px; color: var(--text-secondary); font-size: var(--text-sm); }
.food-guide-meta span { display: inline-flex; align-items: center; gap: 7px; }
.food-guide-meta svg { width: 17px; color: var(--primary-light); }
.food-package-mini { position: relative; min-height: 260px; padding: 34px 34px 30px; border: 2px solid #172033; border-top: 14px solid #172033; border-radius: 8px; background: #fff; color: #111827; box-shadow: 14px 16px 0 #d8e8d7; transform: rotate(1deg); }
.food-package-mini::after { content: ''; position: absolute; right: 24px; bottom: 28px; width: 62px; height: 62px; border: 8px solid #377c53; border-radius: 50%; }
.food-package-brand { display: block; color: #255d3c; font-size: var(--text-sm); font-style: normal; font-weight: 900; }
.food-package-brand b { color: #d8582c; }
.food-package-mini > strong { display: block; margin: 22px 0 5px; font-size: var(--text-3xl); }
.food-package-mini > small { color: #4b5563; }
.food-package-mini > div { display: grid; gap: 5px; width: 57%; margin-top: 28px; color: #374151; font-size: 10px; font-weight: 900; }
.food-package-mini > em { display: block; margin-top: 20px; font-size: 10px; font-style: normal; }

.food-guide-shell { display: grid; grid-template-columns: 260px minmax(0,1fr); gap: 40px; padding-top: 38px; padding-bottom: 72px; }
.food-guide-toc { position: sticky; top: calc(var(--navbar-height) + 18px); align-self: start; max-height: calc(100vh - var(--navbar-height) - 36px); overflow: auto; padding-right: 14px; }
.food-guide-toc > strong { display: block; margin-bottom: 12px; font-size: var(--text-sm); text-transform: uppercase; color: var(--text-secondary); }
.food-guide-toc ol { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.food-guide-toc a { display: grid; grid-template-columns: 25px minmax(0,1fr); gap: 8px; align-items: start; padding: 8px; border-radius: 6px; color: var(--text-secondary); font-size: 13px; line-height: 1.35; text-decoration: none; overflow-wrap: anywhere; }
.food-guide-toc a:hover { background: var(--bg-hover); color: var(--primary-light); }
.food-guide-toc a span { display: grid; width: 24px; height: 24px; place-items: center; border: 1px solid var(--border-color); border-radius: 4px; font-size: 10px; font-weight: 800; }
.food-guide-main { min-width: 0; }
.food-guide-mobile-toc { display: none; }
.food-guide-language-note, .food-guide-status { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; padding: 14px 16px; border-left: 4px solid #b76d13; background: #fff7e6; color: #6b410c; }
[data-theme="dark"] .food-guide-language-note { background: #372710; color: #ffd896; }
.food-guide-language-note svg, .food-guide-status svg { flex: 0 0 20px; }
.food-guide-tools { display: grid; gap: 14px; margin-bottom: 34px; }
.food-guide-search { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 0 18px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-surface); box-shadow: var(--shadow-sm); }
.food-guide-search svg { flex: 0 0 22px; color: var(--primary-light); }
.food-guide-search input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--text-primary); font: inherit; font-size: var(--text-base); }
.food-guide-actions { display: flex; gap: 8px; }
.food-guide-actions .btn { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; }
.food-guide-actions svg { width: 18px; }
.food-guide-filters { display: flex; flex-wrap: wrap; gap: 7px; }
.food-filter { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 8px 11px; border: 1px solid var(--border-color); border-radius: 6px; background: var(--bg-surface); color: var(--text-secondary); cursor: pointer; font: inherit; font-size: var(--text-sm); font-weight: 700; }
.food-filter svg { width: 16px; }
.food-filter:hover, .food-filter.is-active { border-color: var(--primary-light); background: var(--primary); color: #fff; }
.food-guide-result-count { margin: 0; color: var(--text-secondary); font-size: var(--text-sm); }

.food-guide-category-grid { margin-bottom: 38px; }
.food-guide-category-grid h2 { font-size: var(--text-2xl); }
.food-guide-category-grid > div { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.food-guide-category-grid a { display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 11px; align-items: center; min-height: 82px; padding: 13px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-surface); color: var(--text-primary); text-decoration: none; }
.food-guide-category-grid a:hover { border-color: var(--primary-light); box-shadow: var(--shadow-md); }
.food-guide-category-grid a > svg { width: 24px; color: var(--accent); }
.food-guide-category-grid a span { display: grid; gap: 3px; min-width: 0; }
.food-guide-category-grid small { color: var(--text-muted); font-size: 10px; font-weight: 900; }
.food-guide-category-grid strong { font-size: var(--text-sm); line-height: 1.35; overflow-wrap: anywhere; }

.food-guide-sections { display: grid; gap: 12px; scroll-margin-top: 100px; }
.food-guide-section { min-width: 0; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-surface); scroll-margin-top: calc(var(--navbar-height) + 18px); }
.food-guide-section[open] { border-color: #a7bedf; box-shadow: var(--shadow-md); }
.food-guide-section > summary { display: grid; grid-template-columns: 44px minmax(0,1fr) 24px; gap: 14px; align-items: center; min-height: 76px; padding: 14px 18px; cursor: pointer; list-style: none; }
.food-guide-section > summary::-webkit-details-marker { display: none; }
.food-guide-section-index { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 6px; background: #e9f0fa; color: #174783; font-size: var(--text-sm); font-weight: 900; }
[data-theme="dark"] .food-guide-section-index { background: #263c5d; color: #c9dcfb; }
.food-guide-section-heading { display: grid; gap: 3px; min-width: 0; }
.food-guide-section-heading small { color: var(--text-secondary); font-size: 11px; text-transform: uppercase; }
.food-guide-section-heading strong { font-size: var(--text-lg); overflow-wrap: anywhere; }
.food-guide-section > summary > svg { transition: transform var(--transition-fast); }
.food-guide-section[open] > summary > svg { transform: rotate(180deg); }
.food-guide-section-body { padding: 0 20px 22px 76px; }
.food-guide-section-intro { max-width: 850px; margin-bottom: 18px; color: var(--text-secondary); line-height: 1.7; }
.food-guide-term-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.food-term { display: flex; flex-direction: column; min-width: 0; padding: 15px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-card); }
.food-term-heading { display: grid; gap: 5px; margin-bottom: 9px; }
.food-term-heading > span { width: fit-content; max-width: 100%; padding: 4px 7px; border-radius: 4px; background: #e9f0fa; color: #174783; font-weight: 900; overflow-wrap: anywhere; }
[data-theme="dark"] .food-term-heading > span { background: #263c5d; color: #d7e6ff; }
.food-term-heading strong { font-size: var(--text-sm); overflow-wrap: anywhere; }
.food-term p { flex: 1; margin: 0; color: var(--text-secondary); font-size: var(--text-sm); line-height: 1.6; overflow-wrap: anywhere; }
.food-term-detail { display: grid; gap: 6px; margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--border-color); font-size: 11px; }
.food-term-detail > div { display: grid; grid-template-columns: 64px minmax(0,1fr); gap: 7px; }
.food-term-detail dt { color: var(--text-secondary); font-weight: 800; }
.food-term-detail dd { margin: 0; overflow-wrap: anywhere; }
.food-term-sources { display: flex; gap: 8px; margin-top: 10px; }
.food-term-sources a { display: inline-flex; align-items: center; gap: 4px; color: var(--primary-light); font-size: 11px; font-weight: 800; text-decoration: none; }
.food-term-sources svg { width: 13px; }
.food-guide-facts { display: grid; gap: 7px; margin-top: 14px; }
.food-guide-facts p { display: flex; align-items: flex-start; gap: 9px; margin: 0; padding: 11px 12px; border-left: 3px solid #2f7c51; background: #edf8f1; color: #234d34; font-size: var(--text-sm); }
[data-theme="dark"] .food-guide-facts p { background: #183226; color: #bfe6cd; }
.food-guide-facts svg { flex: 0 0 17px; }
.food-section-sources { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border-color); }
.food-section-sources > strong { display: block; margin-bottom: 9px; font-size: var(--text-sm); }
.food-section-sources > div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.food-section-sources a, .food-official-sources a { display: grid; grid-template-columns: 22px minmax(0,1fr) 16px; gap: 10px; align-items: center; padding: 11px; border: 1px solid var(--border-color); border-radius: 7px; color: var(--text-primary); text-decoration: none; }
.food-section-sources a:hover, .food-official-sources a:hover { border-color: var(--primary-light); }
.food-section-sources a > svg:first-child, .food-official-sources a > svg:first-child { color: var(--primary-light); }
.food-section-sources a > svg:last-child, .food-official-sources a > svg:last-child { width: 15px; }
.food-section-sources span, .food-official-sources span { min-width: 0; overflow-wrap: anywhere; }
.food-section-sources small, .food-official-sources small { display: block; margin-top: 3px; color: var(--text-secondary); font-size: 10px; }

.food-visual { min-width: 0; margin: 0 0 18px; padding: 16px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-app); }
.food-visual figcaption { margin-bottom: 13px; font-weight: 800; }
.food-visual > p { margin: 10px 0 0; color: var(--text-secondary); font-size: 11px; }
.food-table-wrap { width: 100%; min-width: 0; max-width: 100%; overflow-x: auto; border: 1px solid var(--border-color); border-radius: 8px; }
.food-table-wrap table { width: 100%; min-width: 620px; border-collapse: collapse; background: var(--bg-surface); }
.food-table-wrap th, .food-table-wrap td { padding: 11px 13px; border-bottom: 1px solid var(--border-color); text-align: left; vertical-align: top; }
.food-table-wrap thead th { background: #172033; color: #fff; }
.food-score-scale { display: grid; grid-template-columns: repeat(5,1fr); max-width: 600px; }
.food-score-scale span { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 66px; color: #111; font-size: var(--text-2xl); font-weight: 900; }
.food-score-scale small { font-size: 10px; }
.food-score-scale [data-grade="a"] { background: #1c8b61; color: #fff; }.food-score-scale [data-grade="b"] { background: #7fbb43; }.food-score-scale [data-grade="c"] { background: #f1cf35; }.food-score-scale [data-grade="d"] { background: #ed8e32; }.food-score-scale [data-grade="e"] { background: #d54732; color: #fff; }
.food-code-visual > div, .food-egg-visual > div { display: flex; align-items: center; gap: 12px; font-size: var(--text-2xl); font-weight: 900; }
.food-code-visual > div i { width: 1px; height: 34px; background: var(--border-color); }
.food-code-visual ol, .food-egg-visual ol { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 13px 0 0; padding-left: 20px; color: var(--text-secondary); font-size: var(--text-sm); }
.food-material-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.food-material-grid span { display: grid; min-height: 56px; place-items: center; border: 2px solid #2f7c51; border-radius: 6px; color: #2f7c51; font-weight: 900; }
.food-date-comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.food-date-comparison article { display: grid; grid-template-columns: 32px 1fr; gap: 4px 10px; padding: 15px; border: 1px solid var(--border-color); border-radius: 8px; }
.food-date-comparison svg { grid-row: 1 / 3; color: var(--primary-light); }.food-date-comparison span { color: var(--text-secondary); font-size: var(--text-sm); }

.food-package-section, .food-checklist, .food-glossary, .food-faq, .food-official-sources, .food-guide-final-notice { margin-top: 56px; scroll-margin-top: 100px; }
.food-guide-heading { margin-bottom: 18px; }.food-guide-heading h2 { margin: 8px 0; font-size: var(--text-3xl); }.food-guide-heading p { color: var(--text-secondary); }
.food-package-workbench { display: grid; grid-template-columns: minmax(360px,1.25fr) minmax(240px,.75fr); gap: 18px; align-items: stretch; }
.food-package-large { position: relative; min-height: 520px; padding: 70px 70px; border: 4px solid #172033; border-top-width: 20px; border-radius: 8px; background: #fff; color: #111827; box-shadow: 12px 14px 0 #d8e8d7; overflow: hidden; }
.food-package-large > strong { display: block; margin: 38px 0 4px; font-size: var(--text-4xl); }
.food-package-large > small { font-size: var(--text-base); }.food-package-copy { display: grid; width: 65%; gap: 6px; margin-top: 48px; font-size: 12px; }.food-package-copy b { margin-top: 8px; border-bottom: 2px solid #111827; }
.food-hotspot { position: absolute; left: var(--hotspot-x); top: var(--hotspot-y); display: grid; width: 44px; height: 44px; place-items: center; padding: 0; border: 3px solid #fff; border-radius: 50%; background: #0b3d91; color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.3); cursor: pointer; font: inherit; font-weight: 900; transform: translate(-50%,-50%); }
.food-hotspot:hover, .food-hotspot.is-active { background: #d8582c; transform: translate(-50%,-50%) scale(1.1); }
.food-hotspot-panel { display: flex; gap: 14px; align-items: flex-start; padding: 24px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-surface); }
.food-hotspot-panel > span { display: grid; flex: 0 0 48px; height: 48px; place-items: center; border-radius: 6px; background: var(--primary); color: #fff; font-size: var(--text-xl); font-weight: 900; }
.food-hotspot-panel strong { display: block; margin-bottom: 8px; font-size: var(--text-lg); }.food-hotspot-panel p { margin: 0; color: var(--text-secondary); line-height: 1.6; }
.food-package-fallback { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px 20px; margin: 26px 0 0; padding-left: 22px; }
.food-package-fallback li { padding: 6px; }.food-package-fallback strong, .food-package-fallback span { display: block; }.food-package-fallback span { margin-top: 3px; color: var(--text-secondary); font-size: var(--text-sm); }

.food-checklist { padding: 24px; border: 1px solid #9fc5ad; border-left: 6px solid #2f7c51; border-radius: 8px; background: var(--bg-surface); }
.food-checklist > div { display: flex; gap: 18px; align-items: center; }.food-checklist > div > div { flex: 1; display: flex; justify-content: space-between; gap: 16px; align-items: center; }.food-checklist h2 { margin: 0; }.food-checklist button { display: inline-flex; align-items: center; gap: 7px; }.food-checklist-time { display: grid; flex: 0 0 74px; height: 54px; place-items: center; border-radius: 6px; background: #172033; color: #fff; font-family: ui-monospace,monospace; font-weight: 900; }
.food-checklist ol { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; margin: 22px 0 0; padding: 0; list-style: none; }.food-checklist li { display: grid; grid-template-columns: 28px 1fr; gap: 9px; align-items: center; }.food-checklist li span { display: grid; width: 27px; height: 27px; place-items: center; border: 1px solid #2f7c51; border-radius: 50%; color: #2f7c51; font-size: 11px; font-weight: 900; }
.food-glossary .food-table-wrap { max-height: 720px; }.food-glossary thead { position: sticky; top: 0; z-index: 1; }.food-glossary td small { display: block; margin-top: 5px; color: var(--text-secondary); }.food-glossary tr[hidden] { display: none; }
.food-faq > details { border-bottom: 1px solid var(--border-color); }.food-faq > details:first-of-type { border-top: 1px solid var(--border-color); }.food-faq summary { display: grid; grid-template-columns: 1fr 22px; gap: 12px; padding: 18px 4px; cursor: pointer; font-weight: 800; list-style: none; }.food-faq summary::-webkit-details-marker { display: none; }.food-faq details[open] summary svg { transform: rotate(180deg); }.food-faq details p { max-width: 800px; padding: 0 4px 18px; color: var(--text-secondary); line-height: 1.7; }
.food-official-sources > div:last-child { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.food-guide-final-notice { display: flex; gap: 16px; padding: 22px; border: 1px solid #e6a3a3; border-left: 5px solid #b42323; border-radius: 8px; background: #fff3f3; color: #681e1e; }.food-guide-final-notice svg { flex: 0 0 27px; }.food-guide-final-notice h2 { font-size: var(--text-lg); }.food-guide-final-notice p { margin: 0; line-height: 1.65; }[data-theme="dark"] .food-guide-final-notice { background: #391c1c; color: #ffd0d0; }

@media (max-width: 1050px) {
    .food-guide-shell { grid-template-columns: 1fr; }.food-guide-toc { display: none; }.food-guide-mobile-toc { display: block; margin-bottom: 16px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-surface); }.food-guide-mobile-toc summary { display: flex; align-items: center; gap: 8px; padding: 14px; cursor: pointer; font-weight: 800; }.food-guide-mobile-toc ol { columns: 2; margin: 0; padding: 0 18px 18px 38px; }.food-guide-mobile-toc li { break-inside: avoid; margin-bottom: 7px; }.food-guide-mobile-toc a { color: var(--text-secondary); font-size: var(--text-sm); }.food-guide-category-grid > div { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
    .food-guide-hero-grid { grid-template-columns: 1fr; gap: 32px; }.food-guide-hero h1 { font-size: var(--text-4xl); }.food-package-mini { max-width: 430px; }.food-guide-section-body { padding: 0 14px 18px; }.food-guide-term-grid, .food-section-sources > div, .food-official-sources > div:last-child, .food-package-fallback, .food-checklist ol { grid-template-columns: 1fr; }.food-package-workbench { grid-template-columns: 1fr; }.food-package-large { min-height: 500px; padding: 64px 52px; }.food-date-comparison { grid-template-columns: 1fr; }.food-checklist > div, .food-checklist > div > div { align-items: flex-start; }.food-checklist > div > div { flex-direction: column; }.food-material-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 480px) {
    .food-guide-hero { padding-top: 18px; padding-bottom: 28px; }.food-guide-hero .breadcrumb { margin-bottom: 22px; }.food-guide-hero h1 { font-size: var(--text-3xl); }.food-guide-hero p { font-size: var(--text-base); }.food-package-mini { min-height: 220px; padding: 26px 22px; box-shadow: 7px 8px 0 #d8e8d7; }.food-package-mini > strong { font-size: var(--text-2xl); }.food-guide-shell { padding-top: 22px; }.food-guide-mobile-toc ol { columns: 1; }.food-guide-actions { display: grid; grid-template-columns: 1fr 1fr; }.food-guide-actions .btn { justify-content: center; min-width: 0; padding: 8px; font-size: 12px; }.food-guide-category-grid > div { grid-template-columns: 1fr; }.food-guide-section > summary { grid-template-columns: 38px minmax(0,1fr) 20px; gap: 10px; padding: 12px; }.food-guide-section-index { width: 36px; height: 36px; }.food-guide-section-heading strong { font-size: var(--text-base); }.food-guide-section-body { padding: 0 11px 14px; }.food-package-large { min-height: 520px; padding: 70px 36px; box-shadow: 6px 7px 0 #d8e8d7; }.food-package-large > strong { font-size: var(--text-2xl); }.food-package-copy { width: 74%; }.food-hotspot-panel { padding: 16px; }.food-package-fallback { padding-left: 18px; }.food-checklist { padding: 16px; }.food-checklist > div { display: grid; }.food-checklist-time { width: 74px; }.food-score-scale span { min-height: 54px; font-size: var(--text-lg); }.food-code-visual > div, .food-egg-visual > div { gap: 7px; font-size: var(--text-lg); overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) { .food-guide-page *, .food-guide-page *::before, .food-guide-page *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; } }
@media print {
    body * { visibility: hidden !important; }.food-checklist, .food-checklist * { visibility: visible !important; }.food-checklist { position: absolute; inset: 0 auto auto 0; width: 100%; border: 2px solid #111; color: #111; background: #fff; }.food-checklist button { display: none; }.food-checklist ol { grid-template-columns: 1fr; }
}
