:root {
    --ink: #302520;
    --muted: #75675f;
    --paper: #f7f4ee;
    --surface: #fffefa;
    --line: #e7dfd4;
    --cocoa: #69483c;
    --cocoa-dark: #4c332b;
    --berry: #9b4f59;
    --berry-dark: #783942;
    --sage: #e8eee8;
    --success: #315f48;
    --danger: #963e38;
    --shadow: 0 16px 42px rgba(65, 43, 32, 0.07);
}

html {
    background: var(--paper);
    font-size: 62.5%;
}

body {
    min-width: 320px;
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1.5rem;
    line-height: 1.65;
}

a {
    color: var(--cocoa);
    text-decoration-color: rgba(105, 72, 60, 0.35);
    text-underline-offset: 0.2em;
    transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

a:hover,
a:focus {
    color: var(--berry-dark);
}

:focus-visible {
    outline: 3px solid rgba(155, 79, 89, 0.4);
    outline-offset: 3px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
    letter-spacing: -0.025em;
}

h3 {
    margin-bottom: 2.4rem;
    font-size: clamp(2.6rem, 4vw, 3.4rem);
}

.site-header {
    position: relative;
    z-index: 1;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 254, 250, 0.94);
}

.top-nav {
    display: flex;
    width: min(118rem, calc(100% - 5.6rem));
    min-height: 8.4rem;
    align-items: center;
    justify-content: space-between;
    gap: 3.2rem;
    margin: 0 auto;
    padding: 1.2rem 0;
}

.brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 1.2rem;
    color: var(--ink);
    text-decoration: none;
}

.brand:hover,
.brand:focus {
    color: var(--ink);
}

.brand-monogram {
    display: grid;
    width: 4.5rem;
    height: 4.5rem;
    place-items: center;
    border: 1px solid #b79b7d;
    border-radius: 50%;
    color: var(--cocoa-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.5rem;
    line-height: 1;
}

.brand-name {
    display: flex;
    flex-direction: column;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1.15;
}

.brand-name span {
    color: var(--muted);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.19em;
    text-transform: uppercase;
}

.primary-nav,
.top-nav-links {
    display: flex;
    align-items: center;
    gap: clamp(1.4rem, 2.3vw, 2.8rem);
}

.primary-nav a,
.top-nav-links a {
    color: var(--muted);
    font-size: 1.35rem;
    font-weight: 600;
    text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a:focus {
    color: var(--berry-dark);
}

.top-nav-links a {
    padding: 0.9rem 1.6rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--cocoa-dark);
}

.top-nav-links a:hover,
.top-nav-links a:focus {
    border-color: var(--cocoa);
    background: var(--cocoa);
    color: #fffefa;
}

.main {
    min-height: calc(100vh - 8.5rem);
    padding: clamp(3.2rem, 6vw, 6.4rem) 0 8rem;
}

.container {
    width: min(118rem, calc(100% - 5.6rem));
    max-width: none;
    margin: 0 auto;
    padding: 0;
}

.content {
    overflow: hidden;
    padding: clamp(2.2rem, 4vw, 4rem);
    border: 1px solid rgba(231, 223, 212, 0.8);
    border-radius: 1.2rem;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.content form {
    margin: 0;
}

.row {
    align-items: flex-start;
    gap: 2.4rem;
}

.side-nav {
    padding: 2rem;
    border: 1px solid var(--line);
    border-radius: 1.2rem;
    background: var(--surface);
}

.side-nav .heading {
    margin-bottom: 1rem;
    font-size: 2rem;
}

.side-nav-item {
    display: block;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    text-decoration: none;
}

.side-nav-item:last-child {
    border-bottom: 0;
}

.button,
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
    min-height: 4.2rem;
    padding: 0.8rem 1.8rem;
    border: 1px solid var(--cocoa);
    border-radius: 0.7rem;
    background: var(--cocoa);
    color: #fffefa;
    font-size: 1.35rem;
    font-weight: 650;
    letter-spacing: 0.01em;
    line-height: 1.5;
    text-transform: none;
}

.button:hover,
.button:focus,
button:hover,
button:focus,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
    border-color: var(--cocoa-dark);
    background: var(--cocoa-dark);
    color: #fffefa;
}

.float-right {
    margin-left: 1.2rem;
}

input[type="color"],
input[type="date"],
input[type="datetime-local"],
input[type="email"],
input[type="month"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="text"],
input[type="url"],
input[type="week"],
select,
textarea {
    min-height: 4.4rem;
    border: 1px solid #d9cfc2;
    border-radius: 0.6rem;
    background-color: var(--surface);
    color: var(--ink);
    font-size: 1.5rem;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--cocoa);
}

label,
legend {
    color: var(--ink);
    font-size: 1.35rem;
    font-weight: 650;
}

fieldset {
    margin-bottom: 2.4rem;
    padding: 0;
    border: 0;
}

legend {
    margin-bottom: 1.8rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.3rem;
    font-weight: 500;
}

table {
    width: 100%;
    border-spacing: 0;
    border-collapse: separate;
    font-size: 1.4rem;
}

th,
td {
    padding: 1.2rem 1.4rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

th {
    background: #f5f0e8;
    color: var(--cocoa-dark);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.045em;
}

th:first-child {
    border-top-left-radius: 0.5rem;
}

th:last-child {
    border-top-right-radius: 0.5rem;
}

tbody tr:hover {
    background: #fbf8f2;
}

.actions {
    white-space: nowrap;
}

.actions a {
    padding: 0 0.45rem;
    color: var(--cocoa);
    font-size: 1.25rem;
    font-weight: 650;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    border-radius: 0.6rem;
    -webkit-overflow-scrolling: touch;
}

.message {
    margin-bottom: 2rem;
    padding: 1.2rem 1.6rem;
    border: 1px solid #cbd8cc;
    border-radius: 0.7rem;
    background: var(--sage);
    color: var(--success);
    cursor: default;
}

.message.success {
    border-color: #cbd8cc;
    background: var(--sage);
    color: var(--success);
}

.message.error,
.message.warning {
    border-color: #e4c8c1;
    background: #fbefec;
    color: var(--danger);
}

.related {
    margin-top: 3.2rem;
}

.related h4 {
    margin-bottom: 1.4rem;
    font-size: 2.2rem;
}

.view.content .vertical-table th {
    width: 28%;
    background: transparent;
    letter-spacing: 0;
    text-transform: none;
}

.paginator {
    margin-top: 2rem;
    color: var(--muted);
}

.welcome {
    max-width: 78rem;
    margin: 2rem auto;
    padding: clamp(3rem, 7vw, 7rem);
}

.welcome-kicker {
    margin-bottom: 1.2rem;
    color: var(--berry);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.welcome h1 {
    max-width: 60rem;
    margin-bottom: 1.8rem;
    font-size: clamp(3.4rem, 6vw, 5.6rem);
    line-height: 1.08;
}

.welcome > p:not(.welcome-kicker) {
    max-width: 58rem;
    margin-bottom: 2.8rem;
    color: var(--muted);
    font-size: 1.7rem;
}

.error-container {
    display: flex;
    width: min(80rem, calc(100% - 4rem));
    min-height: 100vh;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.6rem;
    margin: 0 auto;
}

.error-container .message {
    width: 100%;
}

.home-dashboard {
    display: flex;
    flex-direction: column;
    gap: 2.4rem;
}

.workshop-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(28rem, 0.65fr);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 1.2rem;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.workshop-copy {
    padding: clamp(2.8rem, 6vw, 6rem);
}

.workshop-copy h1 {
    max-width: 68rem;
    margin: 0 0 1.8rem;
    font-size: clamp(3.8rem, 6.5vw, 6.4rem);
    line-height: 1.02;
}

.workshop-copy > p:not(.detail-eyebrow) {
    max-width: 58rem;
    margin: 0;
    color: var(--muted);
    font-size: 1.7rem;
}

.home-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.8rem;
    margin-top: 2.8rem;
}

.home-actions .button {
    margin: 0;
    text-decoration: none;
}

.home-secondary-link,
.home-section-link {
    color: var(--cocoa);
    font-size: 1.3rem;
    font-weight: 700;
    text-decoration: none;
}

.home-secondary-link::after,
.home-section-link::after {
    content: "\2192";
    margin-left: 0.7rem;
}

.workshop-summary {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.2rem;
    padding: clamp(2.4rem, 4vw, 4rem);
    background: var(--cocoa-dark);
    color: #fffefa;
}

.workshop-summary .detail-eyebrow {
    color: #dfbba5;
}

.home-summary-stat {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1.2rem;
    padding: 1.4rem 0;
    border-bottom: 1px solid rgba(255, 254, 250, 0.2);
}

.home-summary-stat strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 3.8rem;
    font-weight: 500;
    line-height: 1;
}

.home-summary-stat span,
.workshop-summary > p:last-child {
    color: rgba(255, 254, 250, 0.76);
    font-size: 1.3rem;
}

.workshop-summary > p:last-child {
    margin: 0.8rem 0 0;
}

.home-dashboard-body {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(28rem, 0.65fr);
    align-items: start;
    gap: 2rem;
}

.home-lists-panel {
    min-width: 0;
    padding: clamp(2rem, 3vw, 3rem);
    border: 1px solid var(--line);
    border-radius: 1.1rem;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.home-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.6rem;
    margin-bottom: 2rem;
}

.home-section-heading h2,
.home-shortcut-card h2 {
    margin: 0;
    font-size: 2.8rem;
    line-height: 1.15;
}

.home-section-heading .detail-eyebrow,
.home-shortcut-card .detail-eyebrow {
    margin-bottom: 0.5rem;
}

.home-section-heading .home-section-link {
    flex: 0 0 auto;
}

.home-list-items {
    border-top: 1px solid var(--line);
}

.home-list-item {
    padding: 1.8rem 0;
    border-bottom: 1px solid var(--line);
}

.home-list-item:last-child {
    border-bottom: 0;
}

.home-list-heading,
.home-list-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
}

.home-list-heading p,
.home-list-heading span {
    margin: 0;
    color: var(--muted);
    font-size: 1.15rem;
}

.home-list-heading p {
    color: var(--berry-dark);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.home-list-item h3 {
    margin: 0.6rem 0 1rem;
    font-size: 2.2rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.home-list-item h3 a {
    color: var(--ink);
    text-decoration: none;
}

.home-list-item h3 a:hover,
.home-list-item h3 a:focus {
    color: var(--berry-dark);
}

.home-list-footer > span {
    color: var(--muted);
    font-size: 1.2rem;
}

.home-list-footer > div {
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem;
}

.home-list-footer a {
    color: var(--cocoa);
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
}

.home-shortcuts {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.home-shortcut-card p:not(.detail-eyebrow) {
    margin: 1rem 0 1.8rem;
    color: var(--muted);
    font-size: 1.3rem;
}

.home-shortcut-secondary {
    background: #f2eee6;
    box-shadow: none;
}

.home-empty-state {
    padding: 2.4rem;
    border-radius: 0.8rem;
    background: #f8f5ef;
}

.home-empty-state h3 {
    margin: 0 0 0.6rem;
    font-size: 2.1rem;
}

.home-empty-state p {
    margin-bottom: 1.6rem;
    color: var(--muted);
    font-size: 1.35rem;
}

.home-empty-state .button {
    margin: 0;
    text-decoration: none;
}

.home-paginator {
    padding-top: 1.6rem;
    border-top: 1px solid var(--line);
}

.dish-detail {
    display: flex;
    flex-direction: column;
    gap: 2.4rem;
}

.dish-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2.4rem;
}

.dish-title h1 {
    margin: 0 0 1rem;
    font-size: clamp(3.4rem, 6vw, 5rem);
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.dish-type-link {
    display: inline-flex;
    padding: 0.45rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--cocoa-dark);
    font-size: 1.2rem;
    font-weight: 650;
    text-decoration: none;
}

.dish-type-link:hover,
.dish-type-link:focus {
    border-color: var(--cocoa);
    background: #f5f0e8;
    color: var(--cocoa-dark);
}

.dish-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dish-stats .detail-stat:first-child {
    border-right: 1px solid var(--line);
}

.dish-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(28rem, 0.7fr);
    align-items: start;
    gap: 2rem;
}

.dish-recipes-panel,
.dish-people-panel {
    min-width: 0;
}

.dish-recipe-list {
    border-top: 1px solid var(--line);
}

.dish-recipe-item {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    padding: 1.8rem 0;
    border-bottom: 1px solid var(--line);
}

.dish-recipe-item:last-child {
    border-bottom: 0;
}

.dish-recipe-copy {
    min-width: 0;
    flex: 1;
}

.dish-recipe-copy h3 {
    margin: 0 0 0.4rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.dish-recipe-copy h3 a {
    color: var(--ink);
    text-decoration: none;
}

.dish-recipe-copy h3 a:hover,
.dish-recipe-copy h3 a:focus {
    color: var(--berry-dark);
}

.dish-recipe-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 1.25rem;
    white-space: pre-line;
}

.dish-recipe-yield {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: flex-end;
}

.dish-recipe-yield strong {
    color: var(--cocoa-dark);
    font-size: 1.6rem;
    font-variant-numeric: tabular-nums;
}

.dish-recipe-yield span {
    color: var(--muted);
    font-size: 1.1rem;
    text-align: right;
}

.dish-people-link {
    display: inline-block;
    margin-top: 1.6rem;
}

.dish-timestamps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: -0.8rem 0 0;
    color: var(--muted);
    font-size: 1.2rem;
}

.recipe-list-detail {
    display: flex;
    flex-direction: column;
    gap: 2.4rem;
}

.detail-back {
    align-self: flex-start;
    color: var(--muted);
    font-size: 1.3rem;
    font-weight: 600;
    text-decoration: none;
}

.detail-back::before {
    content: "\2190";
    margin-right: 0.7rem;
}

.detail-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2.4rem;
}

.detail-title h1 {
    margin: 0;
    font-size: clamp(3.4rem, 6vw, 5rem);
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.detail-eyebrow {
    margin: 0 0 0.6rem;
    color: var(--berry);
    font-size: 1.15rem;
    font-weight: 750;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem;
}

.detail-actions .button {
    margin: 0;
    text-decoration: none;
}

.button-secondary {
    border-color: var(--line);
    background: var(--surface);
    color: var(--cocoa-dark);
}

.button-secondary:hover,
.button-secondary:focus {
    border-color: var(--cocoa);
    background: #f5f0e8;
    color: var(--cocoa-dark);
}

.button-danger {
    border-color: transparent;
    background: transparent;
    color: var(--danger);
}

.button-danger:hover,
.button-danger:focus {
    border-color: #e4c8c1;
    background: #fbefec;
    color: var(--danger);
}

.detail-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 1.1rem;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.detail-stat {
    display: flex;
    min-height: 10.5rem;
    flex-direction: column;
    justify-content: center;
    gap: 0.4rem;
    padding: 1.8rem 2.4rem;
    border-right: 1px solid var(--line);
}

.detail-stat:last-child {
    border-right: 0;
}

.detail-stat-value {
    color: var(--cocoa-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 3rem;
    line-height: 1.1;
}

.detail-stat-label {
    color: var(--muted);
    font-size: 1.25rem;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(30rem, 0.9fr);
    align-items: start;
    gap: 2rem;
}

.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.detail-panel {
    min-width: 0;
    padding: clamp(2rem, 3vw, 2.8rem);
    border: 1px solid var(--line);
    border-radius: 1.1rem;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.detail-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.4rem;
    margin-bottom: 1.8rem;
}

.detail-panel-heading h2 {
    margin: 0;
    font-size: 2.6rem;
    line-height: 1.2;
}

.detail-panel-heading .detail-eyebrow {
    margin-bottom: 0.4rem;
}

.detail-count {
    display: grid;
    min-width: 3.4rem;
    height: 3.4rem;
    place-items: center;
    padding: 0 0.8rem;
    border-radius: 999px;
    background: #f3eee6;
    color: var(--cocoa-dark);
    font-size: 1.3rem;
    font-weight: 700;
}

.detail-list,
.box-list {
    border-top: 1px solid var(--line);
}

.detail-list-item,
.box-list-item {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    padding: 1.7rem 0;
    border-bottom: 1px solid var(--line);
}

.detail-list-item:last-child,
.box-list-item:last-child {
    border-bottom: 0;
}

.detail-list-copy,
.box-list-copy {
    min-width: 0;
    flex: 1;
}

.detail-list-copy h3 {
    margin: 0 0 0.3rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.detail-list-copy h3 a {
    color: var(--ink);
    text-decoration: none;
}

.detail-list-copy h3 a:hover,
.detail-list-copy h3 a:focus {
    color: var(--berry-dark);
}

.detail-list-copy p,
.box-list-copy span {
    margin: 0;
    color: var(--muted);
    font-size: 1.25rem;
}

.detail-list-meta,
.box-list-quantity {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: flex-end;
}

.detail-list-meta strong,
.box-list-quantity strong {
    color: var(--cocoa-dark);
    font-size: 1.5rem;
    font-variant-numeric: tabular-nums;
}

.detail-list-meta span,
.box-list-quantity span {
    color: var(--muted);
    font-size: 1.15rem;
}

.detail-item-link,
.box-list-actions a {
    flex: 0 0 auto;
    color: var(--cocoa);
    font-size: 1.2rem;
    font-weight: 650;
    text-decoration: none;
}

.participant-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.participant-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    padding: 1.3rem 0;
    border-top: 1px solid var(--line);
}

.participant-item > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.participant-item strong {
    overflow: hidden;
    color: var(--ink);
    font-size: 1.4rem;
    text-overflow: ellipsis;
}

.participant-item strong a {
    color: var(--ink);
    text-decoration: none;
}

.participant-item strong a:hover,
.participant-item strong a:focus {
    color: var(--berry-dark);
}

.participant-item > div span,
.participant-boxes {
    color: var(--muted);
    font-size: 1.15rem;
    overflow-wrap: anywhere;
}

.participant-boxes {
    flex: 0 0 auto;
    text-align: right;
}

.box-list-item {
    flex-wrap: wrap;
}

.box-list-copy strong {
    display: block;
    color: var(--ink);
    font-size: 1.4rem;
}

.box-list-actions {
    display: flex;
    flex: 0 0 100%;
    gap: 1.4rem;
    padding-left: 0;
}

.box-list-actions a:last-child {
    color: var(--danger);
}

.detail-empty {
    margin: 0;
    padding: 1.8rem;
    border-radius: 0.7rem;
    background: #f8f5ef;
    color: var(--muted);
    font-size: 1.35rem;
}

.pagination {
    gap: 0.3rem;
}

.pagination a {
    border-radius: 0.5rem;
    color: var(--cocoa);
    font-size: 1.35rem;
}

.pagination li.active a,
.pagination a:hover {
    background: #f0e8dc;
    text-decoration: none;
}

@media (max-width: 900px) {
    .top-nav {
        flex-wrap: wrap;
        gap: 1.4rem 2rem;
    }

    .primary-nav {
        order: 3;
        width: 100%;
        justify-content: space-between;
        gap: 1.2rem;
        padding-top: 0.7rem;
        border-top: 1px solid var(--line);
    }

    .workshop-hero,
    .home-dashboard-body {
        grid-template-columns: minmax(0, 1fr);
    }

    .workshop-summary {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: center;
    }

    .workshop-summary > .detail-eyebrow,
    .workshop-summary > p:last-child {
        grid-column: 1 / -1;
    }

    .home-shortcuts {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dish-content-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .detail-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .detail-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .detail-sidebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }
}

@media (max-width: 640px) {
    .top-nav,
    .container {
        width: calc(100% - 3.2rem);
    }

    .top-nav {
        min-height: 0;
        padding: 1.4rem 0;
    }

    .brand-monogram {
        width: 4rem;
        height: 4rem;
    }

    .brand-name {
        font-size: 1.6rem;
    }

    .primary-nav {
        justify-content: flex-start;
        overflow-x: auto;
        padding: 1.2rem 0 0.4rem;
        white-space: nowrap;
    }

    .primary-nav a {
        font-size: 1.25rem;
    }

    .top-nav-links a {
        padding: 0.7rem 1.1rem;
    }

    .main {
        padding-top: 2.4rem;
    }

    .home-dashboard {
        gap: 1.8rem;
    }

    .workshop-copy {
        padding: 2.6rem 2rem;
    }

    .workshop-copy h1 {
        font-size: clamp(3.4rem, 12vw, 4.8rem);
    }

    .home-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 1.4rem;
    }

    .workshop-summary {
        padding: 2rem;
    }

    .home-lists-panel {
        padding: 2rem 1.6rem;
    }

    .home-shortcuts {
        grid-template-columns: minmax(0, 1fr);
    }

    .dish-detail {
        gap: 1.8rem;
    }

    .dish-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .dish-header .detail-actions {
        width: 100%;
    }

    .dish-header .detail-actions .button {
        flex: 1 1 auto;
        text-align: center;
    }

    .dish-recipe-item {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .dish-recipe-copy {
        flex-basis: calc(100% - 9rem);
    }

    .dish-recipe-yield {
        margin-left: auto;
    }

    .dish-recipe-item .detail-item-link {
        margin-left: auto;
    }

    .home-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-list-heading,
    .home-list-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-list-footer > div {
        width: 100%;
        justify-content: space-between;
    }

    .recipe-list-detail {
        gap: 1.8rem;
    }

    .detail-actions {
        width: 100%;
    }

    .detail-actions .button {
        flex: 1 1 auto;
        text-align: center;
    }

    .detail-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-stat {
        min-height: 8.5rem;
        padding: 1.5rem;
        border-bottom: 1px solid var(--line);
    }

    .detail-stat:nth-child(2) {
        border-right: 0;
    }

    .detail-stat:nth-last-child(-n + 2) {
        border-bottom: 0;
    }

    .detail-sidebar {
        grid-template-columns: minmax(0, 1fr);
    }

    .detail-list-item {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .detail-list-copy {
        flex-basis: calc(100% - 8rem);
    }

    .detail-list-meta {
        margin-left: auto;
    }

    .detail-item-link {
        margin-left: auto;
    }

    .content {
        padding: 2rem 1.6rem;
        border-radius: 0.9rem;
    }

    .row {
        gap: 1.4rem;
    }

    .row .column[class*="column-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .side-nav {
        margin-bottom: 0.4rem;
        padding: 1.4rem;
    }

    .side-nav-item {
        display: inline-block;
        margin-right: 1.2rem;
        border: 0;
    }

    th,
    td {
        padding: 1rem;
    }

    .view.content .vertical-table th {
        width: 40%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

.shopping-page {
    display: flex;
    flex-direction: column;
    gap: 2.4rem;
}

.shopping-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2.4rem;
}

.shopping-title h1 {
    margin: 0;
    font-size: clamp(3.4rem, 6vw, 5rem);
    line-height: 1.1;
}

.shopping-subtitle {
    margin: 0.8rem 0 0;
    color: var(--muted);
    font-size: 1.6rem;
}

.grocery-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(30rem, 0.85fr);
    align-items: start;
    gap: 2rem;
}

.grocery-panel {
    min-width: 0;
}

.shopping-list,
.ingredient-breakdown {
    margin: 0;
    padding: 0;
    list-style: none;
}

.shopping-item,
.ingredient-breakdown li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--line);
}

.shopping-ingredient,
.ingredient-breakdown li span {
    color: var(--ink);
    font-size: 1.5rem;
}

.shopping-amount,
.ingredient-breakdown li strong {
    flex: 0 0 auto;
    color: var(--cocoa-dark);
    font-size: 1.5rem;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.production-list {
    border-top: 1px solid var(--line);
}

.production-item {
    padding: 1.6rem 0;
    border-bottom: 1px solid var(--line);
}

.production-item:last-child {
    border-bottom: 0;
}

.production-item-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.2rem;
}

.production-item-heading h3 {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.production-item-heading > span {
    flex: 0 0 auto;
    padding: 0.25rem 0.8rem;
    border-radius: 999px;
    background: #f3eee6;
    color: var(--cocoa-dark);
    font-size: 1.2rem;
    font-weight: 700;
}

.production-item dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.2rem 0 0;
}

.production-item dl div {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.production-item dt {
    color: var(--muted);
    font-size: 1.15rem;
}

.production-item dd {
    margin: 0;
    color: var(--ink);
    font-size: 1.35rem;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
}

.grocery-breakdowns {
    padding-top: 2.4rem;
}

.recipe-breakdowns {
    border-top: 1px solid var(--line);
}

.recipe-breakdown {
    border-bottom: 1px solid var(--line);
}

.recipe-breakdown summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.6rem;
    padding: 1.7rem 0;
    cursor: pointer;
    list-style: none;
}

.recipe-breakdown summary::-webkit-details-marker {
    display: none;
}

.recipe-breakdown summary::after {
    flex: 0 0 auto;
    color: var(--cocoa);
    content: "+";
    font-size: 2rem;
    line-height: 1;
}

.recipe-breakdown[open] summary::after {
    content: "−";
}

.breakdown-name {
    color: var(--ink);
    font-size: 1.5rem;
    font-weight: 700;
}

.breakdown-yield {
    margin-left: auto;
    color: var(--muted);
    font-size: 1.25rem;
    text-align: right;
}

.breakdown-yield span {
    color: var(--cocoa-dark);
    font-weight: 650;
}

.ingredient-breakdown {
    margin: 0 0 1.4rem;
    padding: 0 1.6rem;
    border-radius: 0.7rem;
    background: #faf8f3;
}

.ingredient-breakdown li {
    padding: 1.1rem 0;
}

@media (max-width: 900px) {
    .grocery-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .shopping-header {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .shopping-page {
        gap: 1.8rem;
    }

    .shopping-actions {
        width: 100%;
    }

    .shopping-actions .button {
        flex: 1 1 auto;
        text-align: center;
    }

    .shopping-item,
    .ingredient-breakdown li {
        gap: 1rem;
    }

    .shopping-ingredient,
    .ingredient-breakdown li span,
    .shopping-amount,
    .ingredient-breakdown li strong {
        font-size: 1.35rem;
    }

    .recipe-breakdown summary {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .breakdown-yield {
        order: 2;
        flex-basis: calc(100% - 2.4rem);
        margin-left: 0;
        text-align: left;
    }
}

@media print {
    @page {
        margin: 1.5cm;
    }

    body {
        background: #fff;
        color: #000;
    }

    .site-header,
    .detail-back,
    .shopping-actions {
        display: none !important;
    }

    .main {
        min-height: 0;
        padding: 0;
    }

    .container {
        width: 100%;
    }

    .shopping-page {
        gap: 1.2rem;
    }

    .detail-stats,
    .detail-panel {
        border-color: #bbb;
        box-shadow: none;
    }

    .grocery-layout {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
        gap: 1.2rem;
    }

    .recipe-breakdown:not([open]) > :not(summary) {
        display: block !important;
    }

    .recipe-breakdown,
    .production-item,
    .shopping-item {
        break-inside: avoid;
    }

    .recipe-breakdown summary::after {
        display: none;
    }
}

.recipe-detail {
    display: flex;
    flex-direction: column;
    gap: 2.4rem;
}

.recipe-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2.4rem;
}

.recipe-title h1 {
    margin: 0 0 1rem;
    font-size: clamp(3.4rem, 6vw, 5rem);
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.recipe-dish-label {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 0;
    color: var(--muted);
    font-size: 1.25rem;
}

.recipe-dish-label a {
    padding: 0.4rem 1rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--cocoa-dark);
    font-weight: 650;
    text-decoration: none;
}

.recipe-dish-label a:hover,
.recipe-dish-label a:focus {
    border-color: var(--cocoa);
    background: #f5f0e8;
}

.recipe-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.recipe-stats .detail-stat:nth-child(2) {
    border-right: 1px solid var(--line);
}

.recipe-stats .detail-stat:last-child {
    border-right: 0;
}

.recipe-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(28rem, 0.75fr);
    align-items: start;
    gap: 2rem;
}

.recipe-main-column {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2rem;
}

.recipe-ingredient-list {
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--line);
    list-style: none;
}

.recipe-ingredient-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.6rem;
    padding: 1.4rem 0;
    border-bottom: 1px solid var(--line);
}

.recipe-ingredient-list li:last-child {
    border-bottom: 0;
}

.recipe-ingredient-list li span {
    color: var(--ink);
    font-size: 1.45rem;
}

.recipe-ingredient-list li strong {
    flex: 0 0 auto;
    color: var(--cocoa-dark);
    font-size: 1.45rem;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.recipe-method-text p {
    margin: 0 0 1.2rem;
    color: var(--ink);
    font-size: 1.5rem;
    line-height: 1.75;
    white-space: pre-line;
}

.recipe-method-text p:last-child {
    margin-bottom: 0;
}

.recipe-list-usage {
    border-top: 1px solid var(--line);
}

.recipe-list-usage-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    padding: 1.4rem 0;
    border-bottom: 1px solid var(--line);
}

.recipe-list-usage-item:last-child {
    border-bottom: 0;
}

.recipe-list-usage-item > div {
    min-width: 0;
}

.recipe-list-usage-item h3 {
    margin: 0 0 0.4rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.recipe-list-usage-item h3 a {
    color: var(--ink);
    text-decoration: none;
}

.recipe-list-usage-item h3 a:hover,
.recipe-list-usage-item h3 a:focus {
    color: var(--berry-dark);
}

.recipe-list-usage-item span {
    color: var(--muted);
    font-size: 1.15rem;
}

@media (max-width: 900px) {
    .recipe-content-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .recipe-header {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .recipe-detail {
        gap: 1.8rem;
    }

    .recipe-header .detail-actions {
        width: 100%;
    }

    .recipe-header .detail-actions .button {
        flex: 1 1 auto;
        text-align: center;
    }

    .recipe-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .recipe-stats .detail-stat:nth-child(2) {
        border-right: 0;
    }

    .recipe-stats .detail-stat:last-child {
        grid-column: 1 / -1;
        border-top: 1px solid var(--line);
    }

    .recipe-ingredient-list li {
        gap: 1rem;
    }

    .recipe-ingredient-list li span,
    .recipe-ingredient-list li strong {
        font-size: 1.35rem;
    }
}

.ingredient-detail {
    display: flex;
    flex-direction: column;
    gap: 2.4rem;
}

.ingredient-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2.4rem;
}

.ingredient-title h1 {
    margin: 0 0 0.8rem;
    font-size: clamp(3.4rem, 6vw, 5rem);
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.ingredient-context,
.ingredient-dish-context {
    margin: 0;
    color: var(--muted);
    font-size: 1.35rem;
}

.ingredient-context a,
.ingredient-dish-context a {
    color: var(--cocoa-dark);
    font-weight: 700;
    text-decoration: none;
}

.ingredient-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ingredient-stats .detail-stat:first-child {
    border-right: 1px solid var(--line);
}

.ingredient-stats .detail-stat:last-child {
    border-right: 0;
}

.ingredient-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(28rem, 0.8fr);
    align-items: start;
    gap: 2rem;
}

.ingredient-content-grid > .detail-panel {
    min-width: 0;
}

.ingredient-content-grid .detail-panel-heading h2 {
    font-size: 2.3rem;
    overflow-wrap: anywhere;
}

.ingredient-content-grid .detail-panel-heading h2 a {
    color: var(--ink);
    text-decoration: none;
}

.ingredient-recipe-description {
    margin-top: 1.6rem;
    color: var(--muted);
    font-size: 1.4rem;
    line-height: 1.7;
}

.ingredient-recipe-description p {
    margin: 0 0 1rem;
    white-space: pre-line;
}

.ingredient-recipe-description p:last-child {
    margin-bottom: 0;
}

.ingredient-base-details {
    margin: 0 0 1.8rem;
    border-top: 1px solid var(--line);
}

.ingredient-base-details div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1.2rem;
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--line);
}

.ingredient-base-details dt {
    color: var(--muted);
    font-size: 1.25rem;
}

.ingredient-base-details dd {
    margin: 0;
    color: var(--cocoa-dark);
    font-size: 1.35rem;
    font-weight: 650;
    text-align: right;
}

.ingredient-base-details dd a {
    color: inherit;
    text-decoration: none;
}

.ingredient-timestamps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: -0.8rem 0 0;
    color: var(--muted);
    font-size: 1.2rem;
}

@media (max-width: 900px) {
    .ingredient-content-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .ingredient-header {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .ingredient-detail {
        gap: 1.8rem;
    }

    .ingredient-header .detail-actions {
        width: 100%;
    }

    .ingredient-header .detail-actions .button {
        flex: 1 1 auto;
        text-align: center;
    }

    .ingredient-stats {
        grid-template-columns: minmax(0, 1fr);
    }

    .ingredient-stats .detail-stat:first-child {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .ingredient-stats .detail-stat:last-child {
        border-bottom: 0;
    }
}

.ingredient-type-detail {
    display: flex;
    flex-direction: column;
    gap: 2.4rem;
}

.ingredient-type-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2.4rem;
}

.ingredient-type-title h1 {
    margin: 0 0 1rem;
    font-size: clamp(3.4rem, 6vw, 5rem);
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.ingredient-type-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ingredient-type-stats .detail-stat:nth-child(2) {
    border-right: 1px solid var(--line);
}

.ingredient-type-stats .detail-stat:last-child {
    border-right: 0;
}

.ingredient-type-uses {
    min-width: 0;
}

.ingredient-type-uses .detail-panel-heading h2 {
    font-size: 2.5rem;
}

.ingredient-type-use-list {
    border-top: 1px solid var(--line);
}

.ingredient-type-use-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.8rem;
    padding: 1.6rem 0;
    border-bottom: 1px solid var(--line);
}

.ingredient-type-use-item:last-child {
    border-bottom: 0;
}

.ingredient-type-use-copy {
    min-width: 0;
}

.ingredient-type-use-copy h3 {
    margin: 0 0 0.35rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.ingredient-type-use-copy h3 a {
    color: var(--ink);
    text-decoration: none;
}

.ingredient-type-use-copy h3 a:hover,
.ingredient-type-use-copy h3 a:focus {
    color: var(--berry-dark);
}

.ingredient-type-use-copy > span {
    color: var(--muted);
    font-size: 1.2rem;
}

.ingredient-type-use-amount {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.4rem;
}

.ingredient-type-use-amount strong {
    color: var(--cocoa-dark);
    font-size: 1.45rem;
    font-variant-numeric: tabular-nums;
}

.ingredient-type-use-amount a {
    color: var(--cocoa);
    font-size: 1.15rem;
    font-weight: 650;
    text-decoration: none;
}

.ingredient-type-timestamps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 1.6rem 0 0;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 1.15rem;
}

@media (max-width: 900px) {
    .ingredient-type-header {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .ingredient-type-detail {
        gap: 1.8rem;
    }

    .ingredient-type-header .detail-actions {
        width: 100%;
    }

    .ingredient-type-header .detail-actions .button {
        flex: 1 1 auto;
        text-align: center;
    }

    .ingredient-type-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ingredient-type-stats .detail-stat:nth-child(2) {
        border-right: 0;
    }

    .ingredient-type-stats .detail-stat:last-child {
        grid-column: 1 / -1;
        border-top: 1px solid var(--line);
    }

    .ingredient-type-use-item {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.9rem;
    }

    .ingredient-type-use-amount {
        align-items: flex-start;
    }
}
