@font-face {
    font-display: swap;
    font-family: Quicksand;
    font-style: normal;
    font-weight: 300 700;
    src: url("../fonts/quicksand-latin.f5533ba6e403.woff2") format('woff2')
}

:root {
    --huntu-teal: #008a8c;
    --huntu-cyan: #02b9c1;
    --huntu-blue: #2c74b5;
    --huntu-green: #61ce70;
    --huntu-lime: #c7dd61;
    --huntu-yellow: #fbc376;
    --huntu-coral: #ff7e4d;
    --ink: #404040;
    --muted: #7a7a7a;
    --paper: #fff;
    --page: #f3fbfa;
    --line: #d8ebe8;
    --shadow: 0 12px 28px rgba(0, 138, 140, .12)
}

* {
    box-sizing: border-box
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font: 16px/1.5 Quicksand, Arial, sans-serif
}

a {
    color: var(--huntu-blue);
    font-weight: 650;
    text-decoration: none
}

a:hover {
    text-decoration: underline
}

.site-header {
    align-items: flex-start;
    background: var(--huntu-blue);
    display: flex;
    height: 200px;
    justify-content: space-between;
    margin: auto;
    max-width: 1100px;
    width: 100%;
    padding: 1.4rem 1rem;
    position: relative;
    z-index: 1
}

.header-actions {
    align-items: center;
    display: flex;
    gap: 1rem;
    position: absolute;
    right: 1.4rem;
    top: 1.4rem
}

.header-actions nav a, .logout-link {
    color: #fff;

    font-weight: 400
}

.brand {
    display: block;
    left: 1.4rem;
    position: absolute;
    top: 1.4rem
}

.brand:hover {
    text-decoration: none
}

.brand img {
    display: block;
    height: auto;
    width: clamp(145px, 25vw, 250px)
}

.site-title {
    color: #fff;
    font-size: clamp(2.7rem, 6vw, 4.4rem);
    font-weight: 400;
    left: 0;
    line-height: 1.1;
    margin: 0;
    position: absolute;
    text-align: center;
    top: 100px;
    width: 100%
}

.site-wave {
    height: 80px;
    line-height: 0;
    margin: auto;
    max-width: 1100px;
    overflow: hidden;
    width: 100%
}

.header-actions nav {
    position: static
}

.logout-form {
    margin: 0
}

.logout-link {
    background: transparent;
    border: 0;
    cursor: pointer;
    font: inherit;
    padding: 0
}

.logout-link:hover {
    text-decoration: underline
}

.site-wave img {
    height: 100%;
    object-fit: cover;
    width: 100%
}

.container {
    flex: 1;
    margin: auto 0 auto 0;
    align-self: center;
    width: 100%;
    max-width: 1100px;
    padding: 2.5rem 1rem 5rem
}

.today-hero {
    margin-bottom: 1.5rem
}

.eyebrow, .summary-label {
    color: var(--huntu-teal);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .1em;
    margin: 0 0 .35rem;
    text-transform: uppercase
}

.today-hero h1, h1 {
    color: var(--huntu-teal);
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.1;
    margin: .25rem 0
}

.day-navigation {
    display: flex;
    gap: .75rem;
    justify-content: space-between;
    margin-bottom: 1.5rem
}

.button-link, .primary-action {
    border: 2px solid var(--huntu-cyan);
    border-radius: 999px;
    display: inline-block;
    padding: .65rem 1rem
}

.button-link:hover {
    background: #e2f7f6;
    text-decoration: none
}

.primary-action {
    background: var(--huntu-teal);
    border-color: var(--huntu-teal);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 750;
    text-align: center
}

.primary-action:hover {
    background: var(--huntu-blue);
    border-color: var(--huntu-blue);
    text-decoration: none
}

.day-actions {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 1rem
}

.day-actions .primary-action {
    margin-left: auto
}

.compact {
    font-size: .9rem;
    padding: .5rem .9rem
}

.summary-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns:2fr 1fr;
    margin-bottom: 1rem
}

.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 1.25rem;
    box-shadow: var(--shadow);
    padding: 1.5rem
}

.summary-card h2 {
    color: var(--huntu-blue);
    font-size: clamp(1.5rem, 4vw, 2.4rem);
    margin: .5rem 0 0
}

.plate-card {
    display: flex;
    flex-direction: column;
    justify-content: center
}

.big-number {
    color: var(--huntu-teal);
    font-size: 3rem;
    line-height: 1
}

.ingredient-card {
    margin-bottom: 1.5rem
}

.section-heading h2 {
    color: var(--huntu-teal);
    margin: .1rem 0 1rem
}

.ingredient-grid {
    display: grid;
    gap: .75rem;
    grid-template-columns: 1fr
}

.ingredient-item {
    align-items: center;
    background: #f2fbfa;
    border: 1px solid #b9e5e2;
    border-radius: .9rem;
    display: grid;
    gap: .75rem;
    grid-template-columns: auto 1fr auto minmax(200px, 1.5fr);
    padding: .9rem
}

.ingredient-item h3, .ingredient-item p {
    margin: 0
}

.ingredient-item p {
    color: var(--muted);
    font-size: .9rem
}

.ingredient-instructions {
    color: var(--muted);
    font-size: .9rem;
    white-space: pre-line
}

.component-badge {
    align-items: center;
    background: var(--huntu-lime);
    border-radius: 50%;
    color: var(--ink);
    display: flex;
    font-weight: 800;
    height: 2rem;
    justify-content: center;
    width: 2rem
}

.preparation {
    white-space: pre-line
}

.page-heading {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1.5rem
}

.page-heading p {
    margin: .25rem 0
}

.page-heading h1 {
    color: var(--huntu-teal)
}

.table-scroll {
    overflow-x: auto
}

.site-footer {
    align-items: center;
    color: var(--muted);
    display: flex;
    font-size: .8rem;
    gap: 1rem;
    justify-content: space-between;
    margin: auto;
    max-width: 1100px;
    padding: .75rem 1rem 1.25rem;
    width: 100%
}

.matrix-card:not(.plate-group-card) .table-scroll {
    max-height: 70vh;
    overflow: auto
}

.matrix-card:not(.plate-group-card) thead th {
    background: var(--paper);
    position: sticky;
    top: 0;
    z-index: 2
}

.matrix-card:not(.plate-group-card) th:first-child,
.matrix-card:not(.plate-group-card) td:first-child {
    background: var(--paper);
    left: 0;
    position: sticky;
    z-index: 1
}

.matrix-card:not(.plate-group-card) thead th:first-child {
    z-index: 3
}

.plate-matrix, table {
    border-collapse: collapse;
    min-width: 700px;
    width: 100%
}

th, td {
    border-bottom: 1px solid var(--line);
    padding: .8rem;
    text-align: left;
    vertical-align: top
}

th {
    color: var(--huntu-teal);
    font-size: .8rem;
    text-transform: uppercase
}

td small {
    color: var(--muted);
    display: block
}

.meal-code {
    background: #e9f5bd;
    border-radius: .35rem;
    padding: .2rem .35rem
}

.plate-groups {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr
}

.plate-group-card {
    min-width: 0
}

.plate-group-card .plate-matrix {
    table-layout: fixed
}

.plate-group-card .plate-matrix th:nth-child(1),
.plate-group-card .plate-matrix td:nth-child(1) {
    width: 5rem
}

.plate-group-card .plate-matrix th:nth-child(2),
.plate-group-card .plate-matrix td:nth-child(2) {
    width: 18rem
}

.plate-group-card .plate-matrix th:nth-child(3),
.plate-group-card .plate-matrix td:nth-child(3) {
    width: 5rem
}

.plate-group-card h2 {
    color: var(--huntu-teal);
    margin: 0 0 1rem
}

.shopping-list-table {
    table-layout: fixed;
    width: 100%;
    min-width: 700px;
}

.shopping-list-table th:nth-child(1),
.shopping-list-table td:nth-child(1) {
    width: 38%;
    word-break: break-word;
}

.shopping-list-table th:nth-child(2),
.shopping-list-table td:nth-child(2) {
    width: 14%;
    white-space: nowrap;
}

.shopping-list-table th:nth-child(3),
.shopping-list-table td:nth-child(3) {
    width: 10%;
    text-align: center;
}

.shopping-list-table th:nth-child(4),
.shopping-list-table td:nth-child(4) {
    width: 38%;
}

.shopping-list-table .shopping-item-remark {
    width: 100%;
    box-sizing: border-box;
}

.shopping-list-table .shopping-item-checkbox {
    cursor: pointer;
    height: 1.25rem;
    width: 1.25rem;
}

.empty-state {
    text-align: center
}

.management-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns:repeat(auto-fit, minmax(190px, 1fr))
}

.management-categories-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: start;
}

.manage-category-card {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.manage-category-card h2 {
    color: var(--huntu-teal);
    font-size: 1.35rem;
    font-weight: 750;
    margin: 0 0 1rem;
    padding-bottom: 0.65rem;
    border-bottom: 2px solid var(--huntu-lime);
}

.manage-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.manage-links li {
    margin: 0;
}

.manage-links a {
    display: flex;
    align-items: center;
    color: var(--ink);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 0.6rem;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
    font-weight: 600;
}

.manage-links a:hover,
.manage-links a:focus {
    background: #e2f7f6;
    color: var(--huntu-blue);
    text-decoration: none;
    transform: translateX(4px);
}

.manage-card {
    display: flex;
    flex-direction: column;
    gap: .4rem
}

.manage-card strong {
    color: var(--huntu-blue);
    font-size: 1.8rem
}

.form-card {
    max-width: 650px
}

.form-card.narrow {
    margin: auto;
    max-width: 450px
}

.day-edit-form {
    margin: auto
}

.form-card label {
    display: block;
    font-weight: 700;
    margin-bottom: .25rem
}

.form-card input, .form-card select, .form-card textarea {
    border: 1px solid #a9d9d5;
    border-radius: .65rem;
    font: inherit;
    padding: .7rem;
    width: 100%
}

.form-card input:focus, .form-card select:focus, .form-card textarea:focus {
    border-color: var(--huntu-teal);
    outline: 3px solid #b9e5e2
}

.form-card textarea {
    min-height: 8rem
}

.day-edit-form fieldset {
    border: 0;
    margin: 1.5rem 0 0;
    padding: 0
}

.day-edit-form legend {
    color: var(--huntu-blue);
    font-size: 1.2rem;
    font-weight: 750;
    margin-bottom: .75rem
}

.day-edit-form .checkbox-label {
    align-items: center;
    display: flex;
    font-weight: 400;
    gap: .5rem;
    margin-bottom: .5rem
}

.day-edit-form .checkbox-label input {
    width: auto
}

.form-actions {
    align-items: center;
    display: flex;
    gap: .75rem;
    margin-top: 1rem
}

.errorlist {
    color: #c4512e;
    list-style: none;
    padding: 0
}

.wizard-steps {
    display: flex;
    gap: .5rem;
    margin-bottom: 1.5rem
}

.wizard-steps span {
    align-items: center;
    background: #d9eeee;
    border-radius: 50%;
    display: flex;
    height: 2rem;
    justify-content: center;
    width: 2rem
}

.wizard-steps .current {
    background: var(--huntu-teal);
    color: #fff
}

.error-card {
    border-color: #f0a181;
    color: #b54428;
    margin-bottom: 1rem
}

@media (max-width: 650px) {
    .container {
        padding-top: 2rem
    }

    .summary-grid {
        grid-template-columns:1fr
    }

    .plate-groups {
        grid-template-columns: 1fr
    }

    .site-header {
        height: 320px;
        padding: 1rem
    }

    .header-actions {
        right: 1rem;
        top: 1rem
    }

    .brand {
        left: 1rem;
        top: 1rem
    }

    .header-actions nav a, .logout-link {
        font-size: 1rem
    }

    .brand img {
        width: 155px
    }

    .site-title {
        font-size: clamp(2.3rem, 10vw, 3.2rem);
        top: 140px
    }

    .day-navigation {
        font-size: .9rem
    }

    .page-heading {
        flex-direction: column
    }

    .page-heading .button-link {
        order: -1
    }

    .card {
        padding: 1rem
    }

    .ingredient-item {
        grid-template-columns:auto 1fr
    }

    .ingredient-item strong {
        grid-column: 2
    }

    .ingredient-instructions {
        grid-column: 1 / -1
    }

    .site-wave {
        height: 62px
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: .25rem
    }
}
