/* Sage Quotes, the "Green kitchen" design. One file for every page, on top of Bootstrap (the printed quote uses it without Bootstrap).
   The fonts are kept in /fonts (SIL Open Font License, texts beside them); nothing is loaded from outside. */
@font-face { font-family: Bricolage; src: url(fonts/BricolageGrotesque-Bold.ttf) format("truetype"); font-weight: 700; font-display: swap }
@font-face { font-family: Instrument; src: url(fonts/InstrumentSans-Regular.ttf) format("truetype"); font-weight: 400; font-display: swap }
@font-face { font-family: Instrument; src: url(fonts/InstrumentSans-Bold.ttf) format("truetype"); font-weight: 700; font-display: swap }
:root {
    --ink: #17291f; --muted: #56655c; --deep: #173a2c; --mid: #2f6b4f; --soft: #e7efe4; --line: #d3ddd2; --hot: #f0c541; --pale: #c5d8c9;
    --head: Bricolage, "Segoe UI", system-ui, sans-serif; --text: Instrument, "Segoe UI", system-ui, sans-serif;
    --bs-body-font-family: var(--text); --bs-body-color: var(--ink); --bs-body-bg: #fff; --bs-secondary-color: var(--muted); --bs-border-color: var(--line);
    --bs-primary: #2f6b4f; --bs-primary-rgb: 47,107,79; --bs-link-color: #2f6b4f; --bs-link-color-rgb: 47,107,79; --bs-link-hover-color: #173a2c; --bs-link-hover-color-rgb: 23,58,44;
    --bs-border-radius: .6rem; --bs-border-radius-sm: .5rem
}
body { font-variant-numeric: lining-nums; line-height: 1.45 }
h1, h2, h3 { font-family: var(--head); font-weight: 700; letter-spacing: -.02em; text-wrap: balance }
h1 { font-size: 2.1rem; line-height: 1.1; margin-bottom: 1.1rem }
h2 { font-size: 1.3rem; margin: 1.6rem 0 .6rem }
h1, h2, h3, .contact { overflow-wrap: anywhere }
.sub { color: var(--muted); font-size: 1.05rem; margin: -.8rem 0 1.1rem }
.money { text-align: right; white-space: nowrap; font-variant-numeric: lining-nums tabular-nums }
:focus-visible { outline: 3px solid #d99a00; outline-offset: 2px }

/* Boxes and buttons */
.form-control, .form-select { border: 1.5px solid #b9c7ba; min-height: 2.75rem }
.form-control-sm, .form-select-sm { min-height: 2.4rem; font-size: 1rem }
.form-select.w-auto, .newquote { max-width: 100% }
.form-control::placeholder { color: #69776e; opacity: 1 }
.form-control:focus, .form-select:focus { border-color: var(--mid); box-shadow: 0 0 0 3px #2f6b4f33 }
input[type=checkbox] { accent-color: var(--mid) }
.btn { font-weight: 700; border-radius: .6rem; padding: .55rem 1.1rem; border-width: 1.5px }
.btn-sm { padding: .4rem .85rem; font-size: .95rem; border-radius: .5rem }
.btn-primary { --bs-btn-bg: var(--mid); --bs-btn-border-color: var(--mid); --bs-btn-hover-bg: var(--deep); --bs-btn-hover-border-color: var(--deep); --bs-btn-active-bg: var(--deep); --bs-btn-active-border-color: var(--deep) }
.btn-outline-primary, .btn-outline-secondary { --bs-btn-color: var(--mid); --bs-btn-border-color: var(--mid); --bs-btn-bg: #fff; --bs-btn-hover-bg: var(--soft); --bs-btn-hover-color: var(--deep); --bs-btn-hover-border-color: var(--mid); --bs-btn-active-bg: var(--soft); --bs-btn-active-color: var(--deep); --bs-btn-active-border-color: var(--mid) }
.btn-secondary { --bs-btn-bg: var(--deep); --bs-btn-border-color: var(--deep) }
.btn-issue { --bs-btn-bg: var(--hot); --bs-btn-border-color: var(--hot); --bs-btn-color: #2b2200; --bs-btn-hover-bg: #ffd75e; --bs-btn-hover-border-color: #ffd75e; --bs-btn-hover-color: #2b2200; --bs-btn-active-bg: #e0b52f; --bs-btn-active-border-color: #e0b52f; --bs-btn-active-color: #2b2200 }
.nav-pills { --bs-nav-pills-link-active-bg: var(--mid) }
.panel { background: var(--soft); border-radius: .9rem; padding: 1rem; margin-inline: 0 }
.card { border-color: var(--line); border-radius: .9rem }
.alert { border: 0; border-radius: .7rem }
.alert-secondary { background: var(--soft); color: #33463b }
.alert-warning { background: #fdf0c4; color: #5f4100 }
.alert-danger { background: #fbe1dc; color: #7c1f10 }
.text-danger { color: #a82a16 !important }

/* Lists */
.table { --bs-table-border-color: var(--line); --bs-table-color: var(--ink) }
.table > thead th { color: var(--muted); font-weight: 400; font-size: .95rem; border-bottom: 1.5px solid var(--line) }
.table td { padding-block: .7rem; vertical-align: middle }
.table tbody tr:hover > * { background: #f5f8f3 }
.table td a { font-weight: 700 }
.tag { display: inline-block; background: var(--soft); color: #33463b; border-radius: .4rem; padding: .1rem .55rem; white-space: nowrap }
.tag.Accepted, .tag.Booked { background: var(--mid); color: #fff }
.tag.Declined { background: #fbe1dc; color: #7c1f10 }
.table td > a, .table td > form { margin-right: .35rem }
main p > a + a:not(.btn) { margin-left: .8rem }
dl dt { color: var(--muted); font-weight: 400 }
@media (max-width: 575.98px) {
    .stack thead { display: none }
    .stack tr { display: block; border-bottom: 1px solid var(--line); padding: .6rem 0 }
    .stack td { display: block; border: 0; padding: .1rem 0; text-align: left }
    .stack td[data-label]::before { content: attr(data-label); font-size: .85rem; color: var(--muted); margin-right: .4rem }
}

/* Dishes and their photos */
.thumb { width: 3.5rem; height: 2.625rem; object-fit: cover; border-radius: .4rem; display: block; flex: none }
span.thumb { display: grid; place-items: center; text-align: center; font-size: .82rem; line-height: 1.1; color: var(--muted) }
@media (max-width: 767.98px) { .dishname { flex: 1 0 calc(100% - 4.5rem) } }
[id^=dish-] { scroll-margin-top: 1rem }
[id^=dish-]:target { background: #f5f8f3 }
.dish { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.2rem 2rem; max-width: 60rem }
.dish .photo img, .dish .photo p { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: .9rem; margin: 0 0 .9rem; display: block }
.dish .photo p { display: grid; place-items: center; aspect-ratio: auto; padding: 2rem 1rem; background: var(--soft); color: var(--muted) }
.dish textarea { min-height: 10rem }
.dish .do { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1rem }
@media (min-width: 768px) { .dish { grid-template-columns: minmax(0, 24rem) minmax(0, 1fr) } .dish .do { grid-column: 1 / -1 } }

/* The colour of a template: its card, and the header and headings of its printed quote. White on --deep is 4.5:1 or better (a test checks it). */
.a-berry { --deep: #6b1f3c; --mid: #8c2c50; --pale: #f1d5df }
.a-navy { --deep: #1c3156; --mid: #2f4f86; --pale: #d3def0 }
.a-gold { --deep: #694a06; --mid: #7d5a0c; --pale: #f3e3bd }
.a-terracotta { --deep: #7c3519; --mid: #9a4526; --pale: #f5dace }
.a-teal { --deep: #0c4a4f; --mid: #17686e; --pale: #cce7e6 }

/* Templates */
.events { display: grid; grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr)); gap: 1rem }
.event { display: flex; flex-direction: column; border: 1.5px solid var(--line); border-radius: .9rem; overflow: hidden; padding: 0 1.1rem 1.1rem }
.event .kind { background: var(--deep); color: #fff; margin: 0 -1.1rem .9rem; padding: .45rem 1.1rem; font-weight: 700 }
.event h2 { margin: 0 0 .35rem; line-height: 1.2 }
.event .cost { font: 700 1.35rem/1.2 var(--head); color: var(--mid); letter-spacing: -.02em; margin: 0 0 .25rem }
.event .pick { color: var(--muted); margin: 0 0 1rem; text-wrap: balance }
.event .do { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto }

/* Prices */
.prices summary { padding: .9rem 1.1rem; cursor: pointer; border-radius: .9rem }
.prices summary h2 { display: inline; font-size: 1.2rem }
.prices form { padding: 0 1.1rem 1.1rem }
.prices h3 { font-size: 1.08rem; margin: 1.5rem 0 .2rem }
.prices .one, .prices .dishprice { display: flex; align-items: center; justify-content: space-between; gap: .4rem 1rem; border-bottom: 1px solid var(--line); padding: .3rem 0 }
.prices input { width: 8rem; flex: none }
.prices .dishprice > span { flex: 1 1 10rem; min-width: 0; overflow-wrap: anywhere }
.prices .dishprice small { display: block; color: var(--muted) }
.prices .dishprice label { font-size: .87rem; color: var(--muted); flex: none }
.prices .dishprice input { display: block }
.prices .help { color: var(--muted); margin: .9rem 0 0 }
@media (max-width: 767.98px) { .prices .dishprice { flex-wrap: wrap; align-items: flex-end; gap: .2rem .5rem } .prices .dishprice > span { flex: 1 0 100% } .prices .dishprice label { flex: 1 1 0; line-height: 1.2 } .prices .dishprice input { width: 100% } }

/* Signed in: the green menu beside the page */
.in main { padding: 2rem 2.2rem 3rem; min-width: 0 }
.side { background: var(--deep); color: var(--pale) }
.side .brand { font: 700 1.6rem/1 var(--head); letter-spacing: -.02em; color: #fff; text-decoration: none }
.side nav a { display: block; color: #dbe8dd; text-decoration: none; padding: .65rem .75rem; border-radius: .5rem; font-size: 1.06rem }
.side nav a:hover { background: #ffffff12 }
.side nav a[aria-current] { background: #ffffff26; color: #fff; font-weight: 700 }
.side .account form { display: flex !important; flex-wrap: wrap; align-items: baseline; gap: .2rem .9rem }
.side .account form > * { margin: 0 !important; vertical-align: baseline }
.side .account a, .side .account .btn { color: var(--pale); font-weight: 400; text-decoration: none }
.side .account a:hover, .side .account .btn:hover { color: #fff; text-decoration: underline }
.side :focus-visible { outline-color: var(--hot) }
@media (min-width: 992px) {
    .in { display: grid; grid-template-columns: 13.25rem minmax(0, 1fr); min-height: 100vh }
    .side { display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow: hidden auto; padding: 1.6rem 1.1rem 1.1rem;
        background: var(--deep) url(img/branch-side.svg) no-repeat -2.8rem calc(100% - 2.4rem) / 17rem }
    .side .brand { padding: 0 .75rem 1.5rem }
    .side .account { margin-top: auto; background: var(--deep); border-radius: .5rem; padding: .5rem .75rem }
}
@media (min-width: 992px) and (max-height: 900px) { .side { background-size: 11rem } }
@media (min-width: 992px) and (max-height: 760px) { .side { background-image: none } }
@media (max-width: 991.98px) {
    .side { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .5rem; padding: .7rem 1rem .6rem }
    .side .brand br { display: none }
    .side .brand { font-size: 1.35rem }
    .side nav { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(5.4rem, 1fr)); gap: .2rem }
    .side nav a { padding: .5rem .1rem; text-align: center; font-size: .97rem }
    .side .account { grid-area: 1 / 2; font-size: .95rem }
    .in main { padding: 1.2rem 1rem 3rem }
    h1 { font-size: 1.8rem }
}

/* Signed out: one card on green */
.out { background: var(--deep) url(img/branch-side.svg) no-repeat right -2rem bottom -3rem / 20rem; min-height: 100vh; padding: 8vh 1rem 3rem }
.out .brand { display: block; max-width: 27rem; margin: 0 auto 1.2rem; font: 700 1.9rem/1 var(--head); letter-spacing: -.02em; color: #fff }
.out main { max-width: 27rem; margin: auto; background: #fff; border-radius: 1rem; padding: 1.8rem 1.7rem }
.out h1 { font-size: 1.7rem }
.out form { width: 100%; max-width: none }
.out .btn-primary { width: 100%; margin-top: .4rem }

/* Ingredients and recipes */
.help { color: var(--muted); font-size: .95rem; margin: .2rem 0 0 }
.things { table-layout: fixed }
.things td { overflow-wrap: anywhere }
.things th + th { width: 22% }
.thing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; max-width: 60rem }
.thing .wide { grid-column: 1 / -1; margin-bottom: 0 }
.thing h2.wide { margin-top: .6rem }
.thing .num { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) 9rem; gap: .1rem 1rem; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: .8rem }
.thing .num label { font-weight: 700 }
.thing .num .help { grid-column: 1; margin: 0 }
.thing .num input { grid-area: 1 / 2 / span 2; align-self: start }
.thing .check input { width: 1.2rem; height: 1.2rem; vertical-align: -.2rem }
.do { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1rem }
.recipe { max-width: 48rem }
.makes { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: flex-end }
.makes label { width: 9rem }
.makes .help { flex: 1 1 14rem }
.ing { display: grid; grid-template-columns: minmax(0, 1fr) 7.5rem 7.5rem; gap: .5rem; margin-bottom: .5rem }
.notes { display: block; margin: 1rem 0 }
.preview { max-width: 48rem }
.preview td + td, .preview th + th { white-space: nowrap; width: 24% }
.preview small { display: block; font-size: .9rem }
.fromrecipe { display: block; color: var(--muted); white-space: nowrap }
.tag.draft { background: #fdf0c4; color: #5f4100 }
@media (max-width: 575.98px) {
    .thing { grid-template-columns: minmax(0, 1fr) }
    .thing .num { grid-template-columns: minmax(0, 1fr) 6.5rem }
    .thing .num .help { grid-column: 1 / -1 }
    .thing .num input { grid-area: 1 / 2 }
    .ing { grid-template-columns: minmax(0, 1fr) 5.2rem 5.6rem; gap: .3rem }
    .ing > * { padding-inline: .5rem }
    .ing .form-select { background-position: right .3rem center; padding-right: 1.4rem }
    .preview td + td, .preview th + th { white-space: normal }
}

/* The shopping list */
.names { overflow-wrap: anywhere }
.names a { color: inherit; margin-right: .2rem }
.names a:not(:last-child)::after { content: ","; }
.choose { margin-bottom: 2rem }
.when { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .7rem 1rem; margin-bottom: 1rem }
.when label { flex: 0 1 11rem; min-width: 7rem }
.when p { margin: 0 auto .5rem 0 }
.job { border: 1.5px solid var(--line); border-radius: .9rem; padding: .8rem 1rem; margin-bottom: .8rem }
.job:has(.who [type=checkbox]:not(:checked)) .prep { opacity: .55 }
.who { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .7rem }
.who label { flex: 1 1 14rem; min-width: 0; overflow-wrap: anywhere }
.who label b { font-size: 1.12rem; margin-right: .3rem }
.who input { width: 1.2rem; height: 1.2rem; align-self: center }
.job .warnings { margin: .5rem 0 0 }
.job summary { color: var(--mid); font-weight: 700; cursor: pointer; padding: .4rem 0 }
.prep { display: grid; grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); gap: 0 1.6rem }
.made { display: grid; grid-template-columns: minmax(0, 1fr) 5.4rem 3.6rem; align-items: center; gap: .6rem; padding: .3rem 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; line-height: 1.25; scroll-margin-top: 1rem }
.made small { display: block; color: var(--muted) }
.made .none { grid-column: 2 / -1; color: #a82a16 }
.made .of { color: var(--muted); font-size: .95rem }
.made .form-control { min-height: 2.3rem; padding: .2rem .5rem }
.made .form-control::placeholder { color: #4d5f55; opacity: 1 }
.made.other .form-control { background: #fdf0c4; border-color: #b08a1d }
.made.empty .form-control { background: #fbe1dc; border-color: #a82a16 }
.made:target { background: #f5f8f3 }
.again { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; color: var(--muted) }
.dept h2 { color: var(--mid); border-bottom: 2px solid var(--mid); margin-bottom: 0; padding-bottom: .2rem }
.buy { width: 100%; border-collapse: collapse; table-layout: fixed; max-width: 62rem }
.buy th { font-weight: 400; color: var(--muted); font-size: .95rem; padding: .35rem .6rem .35rem 0; text-align: left }
.buy td { border-top: 1px solid var(--line); padding: .5rem .6rem .5rem 0; vertical-align: top; overflow-wrap: anywhere }
.buy th:nth-child(2), .buy th:nth-child(3) { width: 19% }
.buy th.money { width: 13%; text-align: left }
.buy td.money { text-align: left }
.buy th.have { width: 14% }
.buy .n { font-weight: 700 }
.buy details { color: var(--muted); font-size: .92rem }
.buy summary { cursor: pointer }
.buy details ul { margin: .2rem 0 0; padding-left: 1.1rem }
.buy .not td { background: #fdf0c4; color: #5f4100 }
.buy .not details { color: inherit }
.buy .not td:first-child { padding-left: .4rem }
.shop .sum { margin-top: 1.4rem; font-size: 1.1rem }
.print-only { display: none }
@media (max-width: 575.98px) {
    .when label { flex: 1 1 7rem }
    .prep { grid-template-columns: minmax(0, 1fr) }
    .buy { table-layout: auto }
    .buy thead, .buy .have { display: none }
    .buy tbody { display: block }
    .buy tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 .8rem; border-top: 1px solid var(--line); padding: .5rem 0 }
    .buy td { border: 0; padding: 0 }
    .buy .n { grid-area: 1 / 2; text-align: right; white-space: nowrap }
    .buy td:first-child { grid-row: 1 / span 3 }
    .buy .need, .buy td.money { grid-column: 2; text-align: right; color: var(--muted); font-size: .95rem }
    .buy .need::before { content: "need " }
    .buy .not td { grid-column: 1 / -1; grid-row: auto; padding: .2rem .4rem }
}
@media print {
    .in { display: block }
    .in main { padding: 0 }
    .side, .shop .choose, .shop details, .shop .not a { display: none }
    .shop { page: shop; color: #000; font-size: 11pt }
    .shop h1 { font-size: 21pt; color: var(--deep); margin-bottom: 4pt }
    .shop .sub { margin: 0 0 6pt; color: #000 }
    .shop .names, .shop .alert { background: none; color: #000; padding: 0; margin: 0 0 4pt; border-radius: 0 }
    .shop .names a { text-decoration: none }
    .shop .print-only { display: block; margin: 0 0 4pt; font-size: 10pt }
    .dept h2 { font-size: 14pt; margin: 12pt 0 0; break-after: avoid; -webkit-print-color-adjust: exact; print-color-adjust: exact }
    .buy { max-width: none }
    .buy th { color: #000; font-size: 9.5pt; padding: 2pt 6pt 2pt 0 }
    .buy td { border-top: .75pt solid #888; padding: 4pt 6pt 4pt 0 }
    .buy td.have { border: .75pt solid #888; border-bottom: .75pt solid #888 }
    .buy .not td { background: none; color: #000 }
    .buy tr { break-inside: avoid }
    .shop .sum { font-size: 12pt; break-inside: avoid }
}
@page shop { size: letter; margin: .5in }

/* The calendar: a month grid, and on a phone a list of the days that have something */
.months { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: 1rem }
.months h2 { margin: 0 auto 0 0; font-size: 1.5rem }
.cal, .week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .35rem; list-style: none; margin: 0; padding: 0 }
.week { color: var(--muted); margin-bottom: .3rem }
.week > * { padding: 0 .5rem }
.cal > li { border: 1.5px solid var(--line); border-radius: .65rem; padding: .35rem; min-height: 6.4rem; min-width: 0 }
.cal > .blank { border: 0 }
.cal > .today { border-color: var(--mid); background: #f5f8f3 }
.cal .day { color: var(--muted); padding: 0 .2rem; margin-bottom: .25rem; line-height: 1.3 }
.cal .today .day { color: var(--mid); font-weight: 700 }
.ev { display: block; border: 1.5px solid transparent; border-radius: .5rem; padding: .25rem .45rem .3rem; margin-top: .3rem; line-height: 1.22; font-size: .95rem; text-decoration: none; overflow-wrap: anywhere; transition: background-color .15s }
.ev b { display: block }
.ev small { display: block; font-size: .87rem }
.ev.Booked { background: var(--mid); color: #fff }
.ev.Booked:hover { background: #285c44; color: #fff }
.ev.Sent { background: #fdf0c4; color: #5f4100 }
.ev.Sent:hover { background: #fae49c; color: #5f4100 }
.ev.Draft { background: var(--soft); color: #33463b }
.ev.Draft:hover { background: #d8e5d4; color: #33463b }
.ev.Inquiry { border: 1.5px dashed #6a7d6f; color: #33463b }
.ev.Inquiry:hover { background: #f5f8f3; color: #33463b }
@media (min-width: 768px) and (max-width: 1149.98px) { .cal > li { padding: .2rem } .ev { padding-inline: .3rem; font-size: .87rem } .ev small { font-size: .82rem } }
@media (min-width: 768px) { .cal .far { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap } }
@media (max-width: 767.98px) {
    .week, .cal > li:not(:has(.ev)) { display: none }
    .cal { display: block }
    .cal > li { border-width: 0 0 1.5px; border-radius: 0; padding: .7rem 0; min-height: 0 }
    .cal > .today { background: none }
    .cal .day { font-weight: 700; color: var(--ink); padding: 0 }
    .ev { padding: .5rem .7rem; font-size: 1rem }
    .months h2 { flex: 1 0 100% }
}

/* A quote being written */
.in main:has(> .build) { padding: 0 }
.build { display: grid; grid-template-columns: minmax(0, 1fr) }
.build .work { padding: 2rem 2.2rem 2.5rem; min-width: 0 }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem }
.facts label { background: var(--soft); border-radius: .7rem; padding: .5rem .8rem .35rem; font-size: .92rem; color: #4d5f55; display: flex; flex-direction: column }
.facts .wide { grid-column: span 2 }
.facts .form-control { border: 0; background: none; padding: 0; min-height: 1.9rem; margin-top: auto; font-size: 1.15rem; font-weight: 700; color: var(--ink); border-radius: .3rem }
.facts label:focus-within { outline: 3px solid #d99a00; outline-offset: 2px }
.facts .form-control:focus { box-shadow: none; outline: 0 }
.facts .form-control::placeholder { font-weight: 400; color: #4d5f55 }
.facts label:has(.text-danger) { background: #fbe1dc }
.note { font: 400 1rem var(--text); letter-spacing: 0; color: var(--muted); margin-left: .5rem }
.note.over { background: #fdf0c4; color: #6f4a00; border-radius: .35rem; padding: .05rem .5rem }
.note.miss { background: #fbe1dc; color: #7c1f10; border-radius: .35rem; padding: .05rem .5rem }
.ask { border: 1.5px solid var(--line); border-radius: .7rem; margin-top: .8rem }
.ask summary { padding: .6rem .9rem; font-weight: 700; color: var(--mid); cursor: pointer }
.ask ul { margin: 0; padding: 0 1rem .8rem 2.1rem }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: .5rem }
.tile { display: flex; align-items: center; gap: .6rem; border: 1.5px solid var(--line); border-radius: .65rem; padding: .55rem .7rem; min-height: 3.5rem; line-height: 1.2; color: #2d3d34; cursor: pointer; overflow-wrap: anywhere; transition: background-color .15s, border-color .15s }
.tile.many { flex-direction: column; align-items: stretch; cursor: auto }
.tile.many label { display: flex; align-items: center; gap: .6rem; cursor: pointer }
.tiles:has(.thumb) { grid-template-columns: repeat(auto-fill, minmax(10.8rem, 1fr)) }
.tile:has(.desc), .tile:has(.thumb) { flex-wrap: wrap; align-content: center }
.tile:has(.desc) > span, .tile:has(.thumb) > span { flex: 1 1 5.5rem; min-width: 0 }
.tile .thumb { width: 2.9rem; height: 2.175rem }
.tile .desc { flex: 1 0 100%; margin: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-weight: 400; line-height: 1.25 }
.tile:hover { border-color: var(--mid); background: #f5f8f3 }
.tile small { display: block; font-size: .87rem; opacity: .85; margin-top: .1rem }
.tile input[type=checkbox] { appearance: none; flex: none; width: 1.3rem; height: 1.3rem; border: 1.5px solid #6a7d6f; border-radius: .4rem; background: #fff center / 80% no-repeat; margin: 0; cursor: pointer }
.tile input[type=checkbox]:checked { border-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.3 3.3L13 5' fill='none' stroke='%232f6b4f' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") }
.tile:has(input:checked), .qty:has(input:not(:placeholder-shown)) { background: var(--mid); border-color: var(--mid); color: #fff; font-weight: 700 }
.tile:has(input:checked):hover, .qty:has(input:not(:placeholder-shown)):hover { background: #285c44 }
.qty .text-danger { color: #fff !important }
@media (max-width: 575.98px) { .tiles:has(.qty) { grid-template-columns: minmax(0, 1fr) } }
.qty:has(.text-danger) { background: #a82a16 !important; border-color: #a82a16; color: #fff }
.tile:has(:focus-visible) { outline: 3px solid #d99a00; outline-offset: 2px }
@supports selector(:has(a)) { .tile input:focus-visible { outline: 0 } }
.tile.many:has(:focus-visible) { outline: 0 }
.tile.many input:focus-visible { outline: 3px solid #d99a00; outline-offset: 2px }
.tile input[type=number] { width: 4.4rem; flex: none; min-height: 2.4rem; border: 1.5px solid #b9c7ba; border-radius: .4rem; padding: 0 .4rem; background: #fff; color: var(--ink) }
@media (forced-colors: active) { .form-control:focus, .form-select:focus { outline: 2px solid Highlight } .tile input[type=checkbox] { appearance: auto } }
.pers { display: grid; grid-template-columns: minmax(0, 1fr) 8rem; gap: .5rem; margin-bottom: .5rem }
.price { background: var(--soft); padding: 1.6rem 1.5rem 0; display: flex; flex-direction: column; gap: 1rem }
.receipt { filter: drop-shadow(0 8px 14px #173a2c22) }
.receipt > div { background: #fff; padding: 1.3rem 1.3rem 1.9rem; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), 95% 100%, 90% calc(100% - 10px), 85% 100%, 80% calc(100% - 10px), 75% 100%, 70% calc(100% - 10px), 65% 100%, 60% calc(100% - 10px), 55% 100%, 50% calc(100% - 10px), 45% 100%, 40% calc(100% - 10px), 35% 100%, 30% calc(100% - 10px), 25% 100%, 20% calc(100% - 10px), 15% 100%, 10% calc(100% - 10px), 5% 100%, 0% calc(100% - 10px)) }
.receipt .top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .3rem }
.receipt .top .money { display: none; font: 700 1.6rem/1 var(--head); letter-spacing: -.03em }
.receipt h2 { margin: 0; font-size: 1.15rem }
.perguest { background: var(--soft); border-radius: .6rem; padding: .6rem .8rem; margin: .5rem 0 }
.perguest div, .perguest li { display: flex; justify-content: space-between; align-items: baseline; gap: .8rem; line-height: 1.3; overflow-wrap: anywhere }
.perguest ul { list-style: none; margin: .15rem 0 0; padding: 0; color: #4d5f55; font-size: .92rem }
.perguest li { padding-top: .15rem }
.lines { width: 100%; border-collapse: collapse }
.lines td { padding: .5rem 0; border-bottom: 1px dashed #c3d0c3; line-height: 1.25; vertical-align: top; overflow-wrap: anywhere }
.lines td + td, .lines th + th { padding-left: .8rem }
.lines small { display: block; color: var(--muted); font-size: .88rem }
.total, .after { display: flex; justify-content: space-between; align-items: baseline; gap: .8rem }
.total { padding-top: .8rem; font-weight: 700 }
.total .money { font: 700 2.1rem/1 var(--head); letter-spacing: -.03em }
.after { padding-top: .35rem; color: var(--muted) }
.us { color: #33463b; line-height: 1.4 }
.us b { display: block }
.acts { display: grid; gap: .55rem; margin: auto -1.5rem 0; padding: .9rem 1.5rem 1.3rem; position: sticky; bottom: 0; background: var(--soft) }
.acts .btn { padding: .8rem }
.revs { display: grid; gap: .2rem }
.booked { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; margin-top: .4rem }
.problems { background: #fbe1dc; color: #7c1f10; border-radius: .7rem; padding: .7rem 1rem; margin-bottom: 1rem }
.warnings { background: #fdf0c4; color: #5f4100; border-radius: .7rem; padding: .7rem 1rem; margin-bottom: 1rem }
.bar { position: fixed; inset: auto 0 0 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; background: var(--deep); color: var(--pale); padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom)) }
.bar a { margin-right: auto; color: var(--pale); text-decoration: none; font-size: .9rem }
.bar a b { display: block; font: 700 1.5rem/1.1 var(--head); letter-spacing: -.02em; color: #fff }
.bar .btn-save { color: #fff; border-color: #ffffff80 }
@media (min-width: 992px) { .bar { left: 13.25rem } }
@media (min-width: 1150px) {
    .build { grid-template-columns: minmax(0, 1fr) 21.5rem }
    .price { position: sticky; top: 0; height: 100vh; overflow: auto }
    .bar { display: none }
}
@media (min-width: 1150px) and (max-height: 900px) { .receipt .top .money { display: block } .acts { grid-template-columns: 1fr 1fr } .acts .btn { padding: .7rem .3rem } }
@media (max-width: 1149.98px) { html { scroll-padding-bottom: 6rem } .price { padding-bottom: 7rem } .acts { display: none } }
@media (max-width: 991.98px) {
    .build .work { padding: 0 1rem 1.8rem }
    .build .head { background: var(--deep); margin: 0 -1rem 1rem; padding: .9rem 1rem 1rem }
    .build .head h1 { color: #fff }
    .build .head .sub { color: var(--pale); margin-bottom: 0 }
    .facts { grid-template-columns: 1fr 1fr }
    .tiles { grid-template-columns: repeat(auto-fill, minmax(9.2rem, 1fr)) }
}

/* The printed quote */
.sheet { margin: 0; background: #dfe7dd; color: var(--ink); font: 400 11.5pt/1.45 var(--text) }
.sheet * { box-sizing: border-box }
.sheet .no-print { max-width: 7.5in; margin: .8rem auto; padding: 0 1rem }
.sheet a { color: var(--mid) }
.sheet a.no-print { padding: 0 }
.paper { max-width: 7.5in; margin: 0 auto 2rem; background: #fff }
.paper .hd { background: var(--deep); color: #fff; padding: 26pt 32pt 22pt; position: relative; overflow: hidden; -webkit-print-color-adjust: exact; print-color-adjust: exact }
.paper .hd h1 { font: 700 25pt/1 var(--head); letter-spacing: -.03em; margin: 0 }
.paper .hd p { color: var(--pale); margin: 8pt 0 0; max-width: 72%; overflow-wrap: anywhere }
.paper .hd img { position: absolute; right: -30px; top: -34px; width: 290px }
.paper .bd { padding: 16pt 32pt 24pt }
.paper .gg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10pt 24pt; margin-bottom: 14pt; overflow-wrap: anywhere }
.paper .gg > div { break-inside: avoid }
.paper .gg > :only-child { grid-column: 1 / -1 }
.paper .menu { margin-bottom: 20pt; overflow-wrap: anywhere }
.paper .menu + .gg { margin-top: 20pt }
.paper .keep { break-inside: avoid; margin-top: 14pt }
.paper .keep:first-child { margin-top: 0 }
.paper .menu h2 { margin-bottom: 8pt }
.paper:has(.menu) h2 { font-size: 14.5pt; line-height: 1.2 }
.paper .pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14pt 16pt }
.paper .pair.one { grid-template-columns: minmax(0, 1fr) }
.paper .food { break-inside: avoid }
.paper .food img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 9pt; -webkit-print-color-adjust: exact; print-color-adjust: exact }
.paper h3 { font: 700 13.5pt/1.2 var(--head); letter-spacing: -.01em; margin: 7pt 0 0 }
.paper .food p { color: var(--muted); font-size: 10.5pt; line-height: 1.4; margin: 2pt 0 0; white-space: pre-line }
.paper .food.text { border: 1pt solid var(--line); border-radius: 9pt; padding: 8pt 11pt 9pt }
.paper .food.text h3 { margin-top: 0 }
.paper h2 { font: 700 12.5pt var(--head); letter-spacing: -.01em; color: var(--mid); margin: 0 }
.paper .opening { font-size: 12.5pt; line-height: 1.45; margin: 0 0 14pt; white-space: pre-line; overflow-wrap: anywhere }
.paper .perguest { background: none; border: 1pt solid var(--line); border-radius: 9pt; padding: 8pt 11pt 9pt; margin: 0 0 8pt; break-inside: avoid }
.paper .perguest b { font-size: 12.5pt }
.paper .perguest ul { font-size: 10.5pt; color: var(--muted) }
.paper .lines td { border-bottom-style: solid; border-color: var(--line); padding: 5pt 0 }
.paper .lines tr { break-inside: avoid }
.paper .lines small { display: inline-block; font-size: 10pt; margin-left: 5pt }
.paper .total, .paper .after { break-inside: avoid; break-before: avoid }
.paper .total .money { font-size: 23pt }
.paper .end { break-inside: avoid; break-before: avoid; color: var(--muted); margin: 16pt 0 0 }
.paper .end p { margin: 2pt 0 }
/* With photos the group's name stands left of its dishes: the rows are lower, so fewer of them are pushed to the next page. */
@media (min-width: 576px), print {
    .paper .keep, .paper:has(.menu) .gg > div { display: grid; grid-template-columns: 88pt minmax(0, 1fr); column-gap: 12pt }
    .paper .menu h2 { margin: 3pt 0 0 }
    .paper .pair { grid-column: 2 }
    .paper:has(.menu) .gg { grid-template-columns: minmax(0, 1fr) }
    .paper .one .food:not(.text) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16pt; align-items: center }
    .paper .one h3 { margin-top: 0 }
}
@media screen and (max-width: 575.98px) { .paper .gg, .paper .pair { grid-template-columns: minmax(0, 1fr) } .paper .hd, .paper .bd { padding-inline: 1.1rem } .paper .hd img { display: none } }
@media print { .sheet { background: #fff } .paper { max-width: none; margin: 0 } }
@page { margin: .5in }
@media (prefers-reduced-motion: reduce) { * { transition: none !important } }

/* The shop's orders: a day on the calendar, the day sheet, and the sync state */
.ev.Shop { background: var(--soft); color: #33463b; border-color: #b9cdb6 }
.ev.Shop:hover { background: #d8e5d4; color: #33463b }
.daysheet { max-width: 60rem }
.daysheet .n { text-align: right; white-space: nowrap }
.shopsync { display: grid; grid-template-columns: max-content 1fr; gap: .2rem 1rem }
.shopsync dd { margin: 0 }
@media print { .shop .daysheet td, .shop .daysheet th { border-top: .75pt solid #888; padding: 3pt 6pt 3pt 0 } .shop .daysheet tr { break-inside: avoid } }
.board { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; align-items: start }
.board .col h2 { font-size: 1.05rem }
.card-lead { border: 1px solid #ccc; border-radius: .4rem; padding: .5rem .6rem; margin-bottom: .5rem; background: #fff }
.flag { display: inline-block; margin-top: .25rem; padding: 0 .4rem; border-radius: .25rem; font-size: .85rem; font-weight: 700 }
.flag-wait { background: #fde8e8; color: #8a1c1c }
.flag-follow { background: #fff3cd; color: #664d03 }
.timeline { list-style: none; padding: 0 }
.timeline li { border-top: 1px solid #ddd; padding: .4rem 0 }
.mailtext { white-space: pre-wrap; margin-top: .25rem; color: #333 }
