:root {
    color-scheme: light;
    --background: #f8f7f2;
    --paper: #fffefa;
    --ink: #202820;
    --muted: #5b675a;
    --green: #275940;
    --dark-green: #19432e;
    --line: #dedfd3;
    --sage: #e5ecdf;
    --lime: #e4ecb7;
    --radius: 20px;
    font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--background); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
a { color: var(--dark-green); }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.13; letter-spacing: -.035em; }
:focus-visible { outline: 3px solid #628e49; outline-offset: 3px; }
.shell { width: min( calc(100% - 72px), 1200px ); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.head-inner { min-height: 74px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; gap: 0; align-items: center; text-decoration: none; font-size: clamp(.98rem, 3.8vw, 1.25rem); font-weight: 800; letter-spacing: -.04em; color: var(--ink); white-space: nowrap; }
.header-note, .header-link { font-size: .92rem; }
.header-note { color: var(--muted); padding-left: 24px; border-left: 1px solid var(--line); }
.header-nav { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.header-link { font-weight: 750; text-decoration: none; padding: 8px 0; }
.header-link:hover { text-decoration: underline; }
.hero { margin: 30px 0 35px; display: grid; grid-template-columns: 1fr 1.04fr; min-height: 386px; overflow: hidden; position: relative; isolation: isolate; border-radius: 26px; background: var(--sage); }
.hero-copy { align-self: center; padding: 40px 50px; }
.eyebrow { display: flex; align-items: center; gap: 8px; color: var(--green); font-size: .83rem; font-weight: 800; letter-spacing: .1em; margin-bottom: 19px; }
.eyebrow span { width: 8px; height: 8px; background: var(--green); border-radius: 50%; }
.hero h1 { font-size: clamp(2.45rem, 5vw, 4.35rem); font-weight: 800; letter-spacing: -.075em; line-height: .99; }
.hero-lead { max-width: 400px; margin: 19px 0 25px; font-size: 1.05rem; color: #445444; }
.hero-photo { width: 100%; height: 100%; position: absolute; top: 0; left: 49%; width: 51%; object-fit: cover; object-position: center 52%; background: #afad87; }
.button { border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; padding: 11px 19px; min-height: 45px; background: var(--green); color: white; border-radius: 11px; font-weight: 750; text-decoration: none; text-align: center; }
.button:hover { background: var(--dark-green); }
.button.secondary { color: var(--dark-green); background: transparent; border-color: var(--line); }
.button.secondary:hover { background: var(--sage); }
#menu { scroll-margin-top: 16px; }
.steps { display: flex; align-items: center; gap: 22px; border-bottom: 1px solid var(--line); padding-bottom: 13px; margin-bottom: 24px; }
.steps button { border: 0; background: transparent; color: var(--muted); padding: 4px 0; font-size: .94rem; font-weight: 700; display: flex; gap: 7px; align-items: center; }
.steps button span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #eae9e0; font-size: .82rem; }
.steps button[aria-current="step"] { color: var(--dark-green); }
.steps button[aria-current="step"] span { background: var(--green); color: white; }
.order-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 320px); gap: 24px; align-items: start; }
.order-layout > div { min-width: 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 17px; }
.section-head h2 { font-size: clamp(1.72rem, 3vw, 2.22rem); }
.section-head p { margin-top: 5px; color: var(--muted); }
.period, .fruit { font-size: .85rem; color: var(--dark-green); font-weight: 700; }
.period { padding: 6px 11px; background: #eeeade; border-radius: 20px; white-space: nowrap; }
.date-tabs { display: grid; grid-auto-columns: minmax(112px, 1fr); grid-auto-flow: column; overflow-x: auto; gap: 8px; padding: 3px; margin: -3px -3px 12px; }
.date-tabs button { position: relative; display: grid; justify-items: start; gap: 3px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; color: var(--muted); padding: 9px 11px; text-align: left; font-size: .82rem; }
.date-tabs button strong { font-size: .99rem; color: var(--ink); line-height: 1.2; }
.date-tabs button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #edf3e9; }
.date-tabs button[aria-pressed="true"] strong { color: white; }
.date-tabs button:hover:not([aria-pressed="true"]) { background: var(--sage); }
.date-tabs small { border-radius: 12px; min-width: 17px; background: var(--lime); color: var(--dark-green); position: absolute; right: 6px; bottom: 7px; text-align: center; }
.daily, .panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.daily { padding: 17px; margin-bottom: 12px; }
.day-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin: 1px 0 13px; }
.day-head h3 { font-size: 1.3rem; }
.day-head h3 span { color: var(--muted); font-size: .91rem; margin-left: 5px; font-weight: 550; letter-spacing: 0; white-space: nowrap; }
.fruit { background: var(--lime); padding: 4px 10px; border-radius: 20px; }
.dishes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.dish { display: grid; grid-template-columns: minmax(0,1fr) 25px; align-items: start; gap: 8px; position: relative; padding: 12px 11px; min-height: 106px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.dish:hover { border-color: #89a186; background: #f5f7f1; }
.dish:has(:checked) { border-color: #729477; background: #edf4e8; }
.dish input { position: absolute; opacity: 0; width: 20px; height: 20px; }
.dish:has(:focus-visible) { outline: 3px solid #628e49; outline-offset: 2px; }
.food-text { display: grid; gap: 4px; }
.meal { font-size: .76rem; color: var(--green); font-weight: 800; text-transform: uppercase; letter-spacing: .055em; }
.food-text strong { font-size: .96rem; line-height: 1.3; overflow-wrap: anywhere; }
.food-text small { font-size: .82rem; color: var(--muted); }
.dish-control { width: 25px; height: 25px; display: grid; place-items: center; color: var(--dark-green); font-weight: 700; background: var(--sage); border-radius: 8px; }
.dish-control::before { content: "+"; }
.dish input:checked ~ .dish-control { background: var(--green); color: white; }
.dish input:checked ~ .dish-control::before { content: "✓"; }
.day-other { margin-top: 13px; color: var(--green); font-size: .91rem; }
.day-other .field { margin-top: 8px; }
summary { cursor: pointer; }
.order-aside { position: sticky; top: 16px; }
.panel { padding: 21px; margin-bottom: 13px; }
.summary { box-shadow: 0 7px 22px #25392309; }
.summary-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 13px; }
.summary-head h2 { font-size: 1.37rem; }
.summary-count { width: 28px; height: 28px; border-radius: 50%; background: var(--sage); color: var(--dark-green); display: grid; place-items: center; font-weight: 750; }
.empty-summary { border: 1px dashed #d3d9cb; padding: 14px; border-radius: 10px; background: #f7f8f2; color: var(--muted); font-size: .93rem; }
.summary-price { padding-top: 13px; margin-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.back { color: var(--green); font-weight: 700; background: transparent; border: 0; min-height: 38px; }
.back:hover { text-decoration: underline; }
.selection { margin: 10px 0; font-size: .89rem; overflow-wrap: anywhere; }
.selection ul { margin: 5px 0 0; padding-left: 18px; }
.selection li { margin-bottom: 3px; }
.fields, .field { display: grid; gap: 15px; }
.field { gap: 5px; color: var(--ink); }
.field > span { font-weight: 660; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #d2d7ca; border-radius: 9px; background: #fcfcf7; min-height: 44px; padding: 9px 11px; color: var(--ink); }
select { appearance: none; padding-right: 35px !important; background-image: linear-gradient(45deg, transparent 50%, #355f48 50%), linear-gradient(135deg, #355f48 50%, transparent 50%) !important; background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50% !important; background-size: 5px 5px !important; background-repeat: no-repeat !important; }
.field textarea { resize: vertical; }
.field small, .subtle { color: var(--muted); font-size: .9rem; }
.required { color: var(--green); }
.two-fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.check { display: flex; align-items: flex-start; gap: 9px; }
.check input { width: 18px; height: 18px; margin: 3px 1px; flex-shrink: 0; accent-color: var(--green); }
.terms li { margin-bottom: 5px; }
.notice { border: 1px solid #e1ac9d; padding: 11px 14px; border-radius: 10px; color: #7f3429; background: #fff2ed; margin-bottom: 16px; }
.notice ul { margin: 5px 0; padding-left: 20px; }
.summary-error { font-size: .87rem; margin: 10px 0 0; }
.confirmation { margin-top: 12px; background: var(--sage); border-color: #b5c6af; color: var(--dark-green); }
dl { display: grid; grid-template-columns: minmax(120px, .55fr) minmax(0, 1fr); column-gap: 12px; row-gap: 7px; margin-bottom: 0; }
dt { font-weight: 700; }
dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.footer { border-top: 1px solid var(--line); margin-top: 45px; padding-block: 18px 25px; display: flex; gap: 14px; align-items: center; justify-content: space-between; color: var(--muted); font-size: .87rem; }
.simple, .admin { margin-block: 35px; min-height: 55vh; }
.success { max-width: 650px; padding: 36px; margin: 0 auto; text-align: center; }
.success h1, .admin h1 { font-size: clamp(2rem, 5vw, 3rem); }
.success-mark { display: grid; place-items: center; width: 55px; height: 55px; margin: 0 auto 15px; border-radius: 50%; background: var(--sage); color: var(--green); font-size: 1.8rem; }
.success p { margin: 14px 0 20px; }
.admin .panel > p { margin: 10px 0; }
.admin-order { padding: 10px 0; border-top: 1px solid var(--line); }
.admin-order summary span { color: var(--muted); margin-left: 7px; }
.login { max-width: 490px; }
.menu-editor { font-family: ui-monospace, monospace; }
@media (max-width: 900px) {
    .shell { width: calc(100% - 40px); }
    .hero-copy { padding: 34px 28px; }
    .order-layout { gap: 14px; grid-template-columns: minmax(0, 1fr) minmax(220px, 265px); }
}
@media (max-width: 680px) {
    .shell { width: calc(100% - 28px); }
    .head-inner { min-height: 59px; }
    .header-note { display: none; }
    .hero { margin-block: 15px 23px; min-height: auto; grid-template-columns: 1fr; border-radius: 19px; }
    .hero-copy { padding: 24px 22px; }
    .hero-lead { margin: 12px 0 15px; }
    .eyebrow { margin-bottom: 12px; }
    .hero-photo { position: static; width: 100%; height: clamp(145px, 43vw, 230px); }
    .steps { justify-content: space-between; gap: 8px; margin-bottom: 17px; }
    .steps button { font-size: .81rem; }
    .steps button span { width: 22px; height: 22px; }
    .order-layout { display: block; }
    .order-aside { position: static; margin-top: 11px; }
    .daily, .panel { padding: 14px; }
    .two-fields, .dishes { grid-template-columns: 1fr; }
    .dish { min-height: 0; }
    .section-head { align-items: flex-start; flex-wrap: wrap; }
    .footer { margin-top: 28px; flex-wrap: wrap; }
}


.account-page { max-width: 660px; }
.account-form { margin-top: 20px; }
.account-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
@media (max-width: 390px) {
    .head-inner, .header-nav { gap: 9px; }
    .header-link { font-size: .82rem; }
}

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.channel-link { font-size: .94rem; font-weight: 700; }

.steps > a, .steps > span { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .94rem; font-weight: 700; text-decoration: none; }
.steps > a:hover { text-decoration: underline; }
.steps > a span, .steps > span b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #eae9e0; font-size: .82rem; }
.steps > span[aria-current] { color: var(--dark-green); }
.steps > span[aria-current] b { background: var(--green); color: white; }
.nutrition-switch { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin: 0 0 8px; color: var(--dark-green); font-size: .94rem; font-weight: 700; cursor: pointer; }
.nutrition-switch input { appearance: none; width: 38px; height: 22px; background: #9da69a; border-radius: 12px; margin: 0; cursor: pointer; display: grid; align-items: center; padding: 3px; }
.nutrition-switch input::before { content: ''; width: 16px; height: 16px; border-radius: 50%; background: #fff; }
.nutrition-switch input:checked { background: var(--green); justify-items: end; }
.nutrition-result { background: var(--sage); padding: 7px 10px; margin-top: 6px; border-radius: 8px; color: var(--dark-green); }
.nutrition-result small { display: block; font-size: .83rem; }
.confirmation-page { margin-top: 32px; }
.confirmation-page h1 { font-size: clamp(2rem, 5vw, 3rem); }
.confirm-nutrition { font-size: .92rem; }
.confirm-nutrition summary { font-weight: 750; }
.confirm-nutrition p { margin-top: 8px; }
@media (max-width: 680px) {
    .steps > a, .steps > span { font-size: .81rem; }
    .steps > a span, .steps > span b { width: 22px; height: 22px; }
}

.primary-order-action > .button { width: 100%; }
.order-aside .summary { max-height: min(52vh, 500px); overflow-y: auto; }
@media (max-width: 680px) {
    .order-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .order-aside { display: contents; }
    .primary-order-action {
        grid-row: 1;
        position: sticky;
        top: 0;
        z-index: 3;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 6px 10px;
        margin: 0;
        padding: 8px 10px;
        box-shadow: 0 4px 12px #25392312;
    }
    .primary-order-action .summary-head { margin: 0; justify-content: flex-start; }
    .primary-order-action h2 { font-size: .96rem; }
    .primary-order-action .summary-count { width: 23px; height: 23px; font-size: .81rem; flex-shrink: 0; }
    .primary-order-action > .button { padding-inline: 9px; font-size: .88rem; width: auto; }
    .primary-order-action .summary-error { grid-column: 1 / -1; margin: 0; }
    .order-aside .summary { max-height: none; }
    .confirm-layout .order-aside .summary { grid-row: 2; }
    .order-main input, .order-main select, .order-main textarea { scroll-margin-block-start: 100px; }
}

.brand-logo { width: 90px; height: auto; clip-path: circle(46.5%); display: block; flex-shrink: 0; }
.account-page-illustrated { max-width: 990px; }
.account-page-illustrated .account-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, .75fr);
    gap: clamp(18px, 4vw, 48px);
    align-items: start;
}
.account-photo { width: 100%; height: auto; max-height: 570px; object-fit: cover; object-position: center 54%; border-radius: var(--radius); }
@media (max-width: 680px) {
    .brand-logo { width: 68px; }
    .account-page-illustrated .account-content { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .account-photo { max-height: 240px; }
}

/* IGF: simplified public order form. Keep functional navigation. */
.site-header:has(+ main.checkout) .head-inner > :is(.brand, .header-note) { display: none; }
.site-header:has(+ main.checkout) .head-inner { min-height: 52px; }
main.checkout + footer.footer > a.brand:has(> img.brand-logo),
main.checkout + footer.footer > span { display: none; }
main.checkout + footer.footer:not(:has(> :not(a.brand, span))) { display: none; }
main.checkout { padding-bottom: 24px; }

@media (max-width: 680px) {
    .site-header:has(+ .checkout #menu[data-page="menu"]:not([hidden])) .header-nav a[href$="#menu"] { display: none; }
    .site-header:has(+ .checkout #menu[data-page="menu"]:not([hidden])):not(:has(.header-nav a:not([href$="#menu"]))) { display: none; }
    .checkout .hero { margin-block: 8px 12px; min-height: 0; grid-template-columns: minmax(0, 1fr); border-radius: 17px; }
    .checkout .hero-copy { padding: 14px 15px 12px; }
    .checkout .hero .eyebrow, .checkout .hero-actions > [data-menu-link], .checkout .steps { display: none; }
    .checkout .hero h1 { font-size: clamp(1.7rem, 6.4vw, 2.2rem); letter-spacing: -.055em; line-height: 1.04; }
    .checkout .hero-lead { margin: 7px 0 0; font-size: .92rem; }
    .checkout .hero-photo { height: clamp(68px, 22vw, 128px); }
    .checkout .order-layout { gap: 10px; }
    .checkout .primary-order-action, .checkout .order-aside .summary { box-shadow: none; }
    .checkout .section-head { gap: 7px; margin-bottom: 9px; }
    .checkout .nutrition-switch { margin-bottom: 4px; }
    .checkout .daily { padding: 0; border: 0; border-radius: 0; background: transparent; }
    .checkout .day-head { margin: 0 0 8px; }
    .checkout .dishes { gap: 6px; }
    .checkout .dish { border-radius: 10px; }
    .checkout .fruit { padding: 3px 7px; border-radius: 7px; background: var(--sage); }
    #menu[data-page="menu"] .section-head p, #menu[data-page="menu"] .order-aside .summary-price,
    #menu[data-page="menu"] .order-aside .summary:has(.empty-summary), #menu[data-page="confirm"] .section-head p { display: none; }
    #menu[data-page="menu"] .date-tabs { grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-flow: row; gap: 4px; overflow: visible; }
    #menu[data-page="menu"] .date-tabs button { min-width: 0; min-height: 48px; grid-template-rows: auto auto; align-content: center; justify-items: center; gap: 1px; padding: 5px 2px; border-radius: 9px; text-align: center; font-size: .75rem; line-height: 1.12; }
    #menu[data-page="menu"] .date-tabs button > span { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    #menu[data-page="menu"] .date-tabs strong { white-space: nowrap; font-size: .8rem; }
    #menu[data-page="menu"] .date-tabs small { position: static; min-width: 16px; height: 14px; padding: 0 3px; font-size: .68rem; line-height: 14px; }
    .confirm-layout > .order-main { grid-row: 1; }
    .confirm-layout .order-aside > .summary { grid-row: 2; }
    .confirm-layout .primary-order-action { grid-row: 3; position: static; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 12px; }
    .confirm-layout .primary-order-action > .button { width: 100%; font-size: .95rem; }
    .confirm-layout .order-main :is(input, select, textarea) { scroll-margin-block-start: 16px; }
    .confirm-layout .igf-mobile-terms > summary { display: flex; align-items: center; min-height: 44px; gap: 8px; font-weight: 750; color: var(--dark-green); }
    .confirm-layout .igf-mobile-terms > summary::before { content: '▸'; }
    .confirm-layout .igf-mobile-terms[open] > summary::before { content: '▾'; }
    .confirm-layout .igf-mobile-deadline { margin: 0; font-size: .86rem; }
    .confirm-layout .igf-mobile-terms[open] { margin-bottom: 8px; }
}

/* Keep the public sign-in screen consistent with checkout. */
.site-header:has(+ main.account-page) .head-inner > :is(.brand, .header-note) { display: none; }
.site-header:has(+ main.account-page) .head-inner { min-height: 52px; }
main.account-page + footer.footer > a.brand:has(> img.brand-logo),
main.account-page + footer.footer > span { display: none; }
main.account-page + footer.footer:not(:has(> :not(a.brand, span))) { display: none; }
@media (max-width: 680px) { main.account-page .steps { display: none; } }
