/* The web app, styled after the iOS app and the Echo Show skill: a white page, red capital headings, plain rows
   with hairline dividers, and the apps' icons. Sized first for HomeView's Safari, 448×364 points, used with wet
   hands: 15-19 pt text and 44 pt targets. Wider screens get a centred column. */

/* The website's wordmark face, Jost, for the name at the top of the menu and on the sign in page. Served from here
   rather than Google Fonts, so no page sends its readers to Google; its licence is beside it (fonts/jost/OFL.txt).
   Latin only and the one weight, as Google serves it. */
@font-face {
    font-family: "Jost";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("/static/fonts/jost/jost-500-latin.woff2") format("woff2");
}

:root {
    --red: #e2061c;
    --red-wash: #fdecee;
    --blue: #3a85d8;
    --ink: #1c1b1a;
    --secondary: #6b6560;
    --muted: #8f8984;
    --ground: #ffffff;
    --raised: #f2f2f7; /* the iOS app's grey fills and hairlines: systemGray6 and systemGray5 */
    --menu: #f9f9f9; /* the iOS app's menu, SwiftUI's .bar background, measured */
    --line: #e5e5ea;
    --star: #fcbe11;
    --star-empty: #dcd8d4;
    --shadow: 0 6px 24px rgba(28, 27, 26, 0.14);
    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --red: #ff4b45;
        --red-wash: #3b1e1d;
        --blue: #62a8f2;
        --ink: #f2efec;
        --secondary: #b5aea8;
        --muted: #938c86;
        --ground: #151413;
        --raised: #2c2c2e; /* systemGray5 and systemGray4, dark */
        --menu: #1c1c1e;
        --line: #3a3a3c;
        --star-empty: #4a4643;
        --shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
    }
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--ground);
    color: var(--ink);
    font: 17px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
    -webkit-text-size-adjust: 100%;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 24px; line-height: 1.15; margin: 0; letter-spacing: -0.3px; text-wrap: balance; }
h2 { font-size: 18px; margin: 0; }
p { margin: 0 0 12px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.icon { width: 1em; height: 1em; fill: currentColor; flex: none; }
.visually-hidden {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.muted { color: var(--muted); }
.empty { color: var(--muted); padding: 16px 0; }

/* The sections behind a round menu button at the top left, as on the iPhone, so the page has the whole screen.
   Each page's first row (.top-row) leaves room for the button. A wide screen shows them in a sidebar instead. */
.app-menu > summary { list-style: none; }
.app-menu > summary::-webkit-details-marker { display: none; }
.menu-button {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 4;
    width: 44px;
    height: 44px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ground);
    color: var(--red);
    box-shadow: var(--shadow);
    cursor: pointer;
}
.menu-button .icon { font-size: 26px; }
.drawer-backdrop { position: fixed; inset: 0; z-index: 5; background: rgba(0, 0, 0, 0.3); }
.drawer, .app-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px;
    overflow-y: auto;
    background: var(--menu);
}
.drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 6;
    width: min(280px, 85vw);
    box-shadow: var(--shadow);
}
.app-sidebar { display: none; }
/* The name as the website sets it, here and on the sign in page: Jost, medium */
.nav-brand, .login h1 { font-family: "Jost", "Futura", "Century Gothic", system-ui, sans-serif; font-weight: 500; letter-spacing: 0.01em; }
.nav-brand { padding: 2px 14px 8px; font-size: 22px; color: var(--red); }
.nav-brand:hover { text-decoration: none; }
.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 22px;
    color: var(--ink);
    font-size: 18px;
}
.nav-item .icon { font-size: 22px; }
.nav-item:hover { text-decoration: none; background: var(--line); }
.nav-item[aria-current="page"] { background: var(--red); color: #fff; font-weight: 600; }
.nav-account { margin-top: auto; padding: 8px 14px 0; }
.nav-account form { margin: 0; }
.nav-signed-in { display: block; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.nav-account .link-button { padding: 4px 0; }

.app-main { max-width: 960px; margin: 0 auto; padding: 16px; }
.app-main.with-menu { padding-top: 8px; }
.top-row { display: flex; align-items: center; min-height: 44px; margin-bottom: 8px; }
.with-menu .top-row { padding-left: 52px; }
.top-row > * { margin-top: 0; margin-bottom: 0; }

.link-button {
    background: none;
    border: 0;
    padding: 12px 4px;
    color: var(--blue);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

/* Section headings, as both apps head aisles, meal types and recipe sections: red capitals with a grey count */
.section-heading {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 24px 0 4px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--red);
}
.section-heading:first-child { margin-top: 4px; }
.section-heading .count { color: var(--muted); font-weight: 500; letter-spacing: 0; text-transform: none; font-size: 15px; }

/* Plain rows with hairline dividers */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rows > li { border-bottom: 1px solid var(--line); }
.row, .rows > li > a {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 56px;
    padding: 10px 0;
    color: var(--ink);
}
.rows > li > a:hover { text-decoration: none; background: var(--raised); }
.row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.row-title { font-size: 17px; }
.row-title .note { color: var(--muted); }
.row-detail { font-size: 15px; color: var(--secondary); }
.row-note { font-size: 15px; color: var(--muted); font-style: italic; }
.row-note .alert { color: var(--red); }
.row-note span + span { margin-left: 12px; }
.chevron { color: var(--muted); font-size: 14px; }

/* Photos, and the fork and knife the Echo Show puts where a recipe has none */
.thumb {
    flex: none;
    width: 64px;
    height: 64px;
    border-radius: 10px;
    object-fit: cover;
    background: var(--raised);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
}
.thumb .icon { font-size: 26px; opacity: 0.6; }
.thumb.small { width: 44px; height: 44px; border-radius: 8px; }
.thumb.small .icon { font-size: 18px; }

/* Star ratings */
.stars { display: inline-flex; gap: 2px; color: var(--star); font-size: 15px; }
.stars .off { color: var(--star-empty); }

/* Recipe rows, as the apps' recipe lists: photo, name, stars, then categories in grey italics */
.recipe-rows .row-title { font-size: 18px; }

/* Recipe tiles on Home */
.tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.tile a { color: var(--ink); display: block; }
.tile a:hover { text-decoration: none; }
.tile .thumb { width: 100%; height: auto; aspect-ratio: 1; max-width: 100%; border-radius: 12px; margin-bottom: 6px; }
.tile .thumb .icon { font-size: 34px; }
.tile-name {
    font-size: 15px;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Today's meals on Home: the pinned tiles' size, three across on HomeView so the pins show too, with the meal type
   over each. Both square, as the apps save thumbnails, so none of the photo is cut off. */
.meal-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.meal-card a, .meal-card > div { color: var(--ink); display: block; }
.meal-card a:hover { text-decoration: none; }
.meal-card-photo { position: relative; display: block; margin-bottom: 6px; }
.meal-card .thumb { width: 100%; height: auto; aspect-ratio: 1; max-width: 100%; border-radius: 12px; }
.meal-card .thumb .icon { font-size: 34px; }
.meal-card-type {
    position: absolute;
    left: 6px;
    bottom: 6px;
    max-width: calc(100% - 12px);
    padding: 2px 6px;
    border-radius: 7px;
    background: var(--ground);
    color: var(--type, var(--red));
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
}
@media (prefers-color-scheme: dark) {
    .meal-card-type { color: color-mix(in srgb, var(--type, var(--red)) 60%, white); }
}

.home-pinned { margin-top: 20px; }

/* Titles that open a menu of the other choices, as the apps' red titles with a chevron do, in a capsule like the meal
   planner's day */
.title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 8px; }
.title-row .count { color: var(--muted); font-size: 15px; }
.page-title { font-size: 24px; font-weight: 700; color: var(--red); letter-spacing: -0.3px; min-height: 44px; display: inline-flex; align-items: center; }
.title-menu { position: relative; min-width: 0; }
.title-menu summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    min-height: 52px;
    padding: 0 18px;
    border-radius: 26px;
    background: var(--raised);
    list-style: none;
    cursor: pointer;
    color: var(--red);
    font-size: 18px;
    font-weight: 700;
}
.title-menu summary:hover { background: var(--line); }
.title-menu summary::-webkit-details-marker { display: none; }
.title-menu summary > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.title-menu summary .icon { flex: none; font-size: 14px; }
.menu-list {
    position: absolute;
    z-index: 3;
    left: 0;
    top: 100%;
    /* As wide as its longest name, which a title's own width would otherwise squeeze */
    width: max-content;
    min-width: 220px;
    max-width: min(320px, calc(100vw - 32px));
    /* Down to just above the screen's foot, which on HomeView is 364 points */
    max-height: min(560px, calc(100vh - 76px));
    max-height: min(560px, calc(100dvh - 76px));
    overflow-y: auto;
    margin: 4px 0 0;
    padding: 6px;
    list-style: none;
    background: var(--ground);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
}
.menu-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 10px;
    color: var(--ink);
    font-size: 17px;
}
.menu-list a:hover { text-decoration: none; background: var(--raised); }
.menu-list a[aria-current="page"] { color: var(--red); font-weight: 600; }
.menu-list a[aria-current="page"]::after { content: "✓"; margin-left: auto; color: var(--blue); }

/* A level of categories: back up to the level above, then the category's own row, then its subcategories, each
   with subcategories of its own opened by the chevron beside it, as the iOS app's categories screen */
.category-level { list-style: none; margin: 0; padding: 0; }
.category-level .has-children { display: flex; align-items: center; }
.category-level .has-children > a:first-child { flex: 1; min-width: 0; }
.menu-list .category-open { flex: none; justify-content: center; width: 44px; padding: 0; color: var(--muted); }
.category-open .icon { font-size: 14px; }
.menu-list .category-back { color: var(--blue); font-weight: 600; }
.category-back .icon { font-size: 14px; }
.category-level a > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* The cookbook at the head of the category menu, as the iOS app titles its categories, and the cookbooks in a
   second menu over the first. That one sits on the cookbook's row where the browser can anchor it, else centred. */
.menu-switcher-row { border-bottom: 1px solid var(--line); margin-bottom: 6px; padding-bottom: 6px; }
.menu-switcher {
    anchor-name: --menu-switcher;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    background: none;
    cursor: pointer;
    color: var(--secondary);
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
}
.menu-switcher:hover { background: var(--raised); }
.menu-switcher .icon { font-size: 15px; }
.menu-switcher .icon:last-child { font-size: 12px; margin-left: auto; }
.menu-switcher-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-popup {
    min-width: 220px;
    max-width: min(320px, calc(100vw - 32px));
    max-height: 60vh;
    overflow-y: auto;
    padding: 6px;
    background: var(--ground);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
}
.menu-popup::backdrop { background: rgba(0, 0, 0, 0.12); }
.menu-popup ul { list-style: none; margin: 0; padding: 0; }
.menu-popup-title {
    margin: 0;
    padding: 8px 12px 4px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
@supports (anchor-name: --a) {
    .menu-popup {
        inset: auto;
        margin: 0;
        top: anchor(--menu-switcher top);
        left: anchor(--menu-switcher left);
        min-width: max(220px, anchor-size(--menu-switcher width));
    }
}

/* Search, as a grey pill */
.search-row { gap: 4px; margin-bottom: 12px; }
.recipes-head[data-mode="browse"] .search-row, .recipes-head[data-mode="search"] .browse-row { display: none; }
.browse-row { margin-bottom: 12px; }
.search-button {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 52px;
    height: 52px;
    margin-left: auto;
    border-radius: 26px;
    background: var(--raised);
    color: var(--red);
    font-size: 20px;
}
.search-button:hover { background: var(--line); }
.search { position: relative; flex: 1; min-width: 0; }
.search-cancel { flex: none; display: flex; align-items: center; min-height: 44px; padding: 0 10px; font-weight: 600; }
.search-cancel:hover { text-decoration: none; }
.search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 17px; pointer-events: none; }
.search input {
    width: 100%;
    height: 44px;
    padding: 0 14px 0 40px;
    border-radius: 22px;
    border: 0;
    background: var(--raised);
    color: var(--ink);
    font: inherit;
}

.pager { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; }
/* Loading the next page by itself as the list's end nears; the pager comes back if that fails */
.pager.endless { justify-content: center; color: var(--muted); }
.pager.endless > * { display: none; }
.pager.endless::before { content: "Loading…"; }
.pager a { padding: 10px 0; font-weight: 600; }

/* Meal plan: a day's title between chevrons, as the apps' planner */
.day-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 4px;
    margin-bottom: 8px;
    border-radius: 24px;
    background: var(--raised);
}
.day-nav a { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 22px; color: var(--ink); }
.day-nav a:hover { background: var(--line); }
.day-nav .icon { font-size: 18px; }
.day-nav h1 { flex: 1; min-width: 0; text-align: center; font-size: 18px; color: var(--red); }
.day-title {
    max-width: 100%;
    min-height: 44px;
    padding: 0 4px;
    border: 0;
    border-radius: 22px;
    background: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
}
.day-title:hover { background: var(--line); }

/* The month calendar the day opens, centred over the page, with Today below it as in the iOS app. Sized so a
   month of six weeks fits HomeView's 364 point high screen. */
.calendar {
    width: min(320px, calc(100vw - 32px));
    padding: 8px 12px 12px;
    background: var(--ground);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
}
.calendar::backdrop { background: rgba(0, 0, 0, 0.2); }
.calendar-head { display: flex; align-items: center; }
.calendar-head h2 { flex: 1; text-align: center; font-size: 17px; }
.calendar-month { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 20px; color: var(--red); }
.calendar-month:hover { background: var(--raised); }
.calendar-month .icon { font-size: 16px; }
.calendar table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.calendar th { padding: 2px 0 4px; color: var(--muted); font-size: 12px; font-weight: 600; }
.calendar td { padding: 0; text-align: center; }
.calendar td a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 17px;
    color: var(--ink);
    font-size: 17px;
}
.calendar td a:hover { text-decoration: none; background: var(--raised); }
.calendar td a.today { color: var(--red); font-weight: 600; }
.calendar td a[aria-current="date"] { background: var(--red); color: #fff; font-weight: 600; }
.calendar-today {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-top: 8px;
    border-radius: 22px;
    background: var(--raised);
    color: var(--blue);
    font-weight: 600;
}
.calendar-today:hover { text-decoration: none; background: var(--line); }

/* Meal types in the apps' colours for them; the colour comes from the type */
.meal-type { color: var(--type, var(--ink)); }
@media (prefers-color-scheme: dark) {
    .meal-type { color: color-mix(in srgb, var(--type, var(--ink)) 60%, white); }
}

/* Recipe page */
.recipe-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 12px; }
/* A set size, not just a flex basis: a flex item's minimum width is otherwise the image's own, so a
   large photo would push out over the text. The apps save thumbnails at 280×280 px, sharp up to 140 points. */
.recipe-photo { flex: none; width: 120px; height: 120px; border-radius: 14px; object-fit: cover; background: var(--raised); }
.recipe-head-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.recipe-head .stars { font-size: 20px; gap: 4px; }
.recipe-source { font-size: 16px; color: var(--ink); }
.recipe-source a { display: inline-flex; align-items: center; gap: 4px; }
.recipe-source .icon { font-size: 12px; }
.recipe-filed { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: 16px; margin: 0 0 8px; color: var(--ink); }
.recipe-filed .icon { color: var(--red); font-size: 18px; }
.recipe-filed .sep { color: var(--muted); font-size: 12px; }
.recipe-filed em { color: var(--secondary); }
.details { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0 0 16px; padding: 0; }
.details li { display: flex; align-items: center; gap: 6px; font-size: 17px; }
.details .icon { color: var(--red); font-size: 19px; }

/* Ingredients, then directions below them on a narrow screen, so the whole recipe reads at once: it's for reading
   here, and cooking from it goes to Safari's cooking mode. Side by side when wide (below). */
.ingredients p { margin: 0; padding: 6px 0; font-size: 18px; }
/* A little more room under the heading than the ingredients' own spacing gives them */
.text-block { line-height: 1.5; font-size: 18px; margin-top: 10px; }
.text-block p { margin: 0 0 1em; }
.text-block p:last-child { margin-bottom: 0; }

/* Headings and lists written in the recipe's Markdown, as the apps show them (paprika-swift's markdown-styles.css):
   bullets and numbers drawn in a hanging indent, numbers counted on from the first item's */
.md-heading { font-weight: 600; line-height: 1.3; margin: 0.6em 0 0.3em; }
h1.md-heading { font-size: 1.4em; }
h2.md-heading { font-size: 1.3em; }
h3.md-heading { font-size: 1.2em; }
h4.md-heading { font-size: 1.1em; }
h5.md-heading { font-size: 1em; }
h6.md-heading { font-size: 0.9em; }
.ingredients ul, .ingredients ol, .text-block ul, .text-block ol { margin: 1em 0; padding: 0; list-style: none; }
.ingredients ol, .text-block ol { counter-reset: md-item; }
.ingredients li, .text-block li { margin: 1em 0; padding-left: 1.5em; }
.ingredients li { margin: 0; padding-top: 6px; padding-bottom: 6px; font-size: 18px; }
.ingredients li::before, .text-block li::before { display: inline-block; width: 1.5em; margin-left: -1.5em; }
.ingredients ul > li::before, .text-block ul > li::before { content: "\2022"; }
.ingredients ol > li, .text-block ol > li { counter-increment: md-item; }
.ingredients ol > li::before, .text-block ol > li::before { content: counter(md-item) "."; }

/* Photos besides the thumbnail, where [photo:Name] places them in the text */
.image-box { display: block; margin: 8px 0; }
.inline-image { display: block; max-width: 100%; max-height: 200px; border-radius: 12px; }

/* Grocery items have no checkboxes while the list can't be changed here, where boxes that can't be ticked would
   only confuse; checked off items are struck through instead */
.purchased .row-title, .purchased .row-detail { color: var(--muted); }
.purchased .row-title { text-decoration: line-through; }

/* Sign in and the Premium page */
.narrow { max-width: 420px; margin: 0 auto; }
.form-field { display: block; margin-bottom: 12px; }
.form-field span { display: block; font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.form-field input {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--ground);
    color: var(--ink);
    font: inherit;
}
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border: 0;
    border-radius: 22px;
    background: var(--red);
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.button.wide { width: 100%; }
.errors { color: var(--red); margin-bottom: 12px; }
.login h1 { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--red); }
.login .form-field { margin-bottom: 8px; }
.app-icon { flex: none; width: 32px; height: 32px; border-radius: 22.5%; } /* as the website's header shows it */

/* The beta: a quiet tag beside the name, and on the sign in page what it means */
.beta {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 7px;
    background: var(--raised);
    color: var(--muted);
    font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    vertical-align: middle;
}
.beta-notice { margin: 0 0 10px; padding: 10px 12px; border-radius: 12px; background: var(--raised); font-size: 15px; line-height: 1.35; }
.errors ul { margin: 0; padding-left: 18px; }

@media (min-width: 720px) {
    .recipe-photo { width: 140px; height: 140px; }
}

/* A sidebar instead of the menu button once there's room, as on the iPad */
@media (min-width: 1024px) {
    .app-menu { display: none; }
    .app-sidebar { display: flex; position: fixed; top: 0; bottom: 0; left: 0; z-index: 2; width: 220px; border-right: 1px solid var(--line); }
    .app-main.with-menu { margin-left: 220px; padding-top: 16px; }
    .with-menu .top-row { padding-left: 0; }
}

/* Ingredients beside directions when there's room for both */
@media (min-width: 720px) {
    .recipe-columns { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 32px; }
}
