:root {
    --heritage-yellow: #E5A21A;
    --charcoal: #222222;
    --warm-white: #F7F5EF;
    --farm-green: #425A34;
    --wine-burgundy: #722F37;

    --card-bg: #ffffff;
    --soft-gray: #eeeeee;
    --text-muted: #666666;
    --border-radius: 8px;
    --shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: var(--warm-white);
    color: var(--charcoal);
}

header {
    background: var(--charcoal);
    color: white;
    padding: 18px 30px;
    border-bottom: 4px solid var(--heritage-yellow);
}

.brand {
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand img {
    width: 105px;
    height: 105px;
    object-fit: contain;
    flex-shrink: 0;
}

.brand-text h1 {
    margin: 0;
    font-size: 1.8rem;
}

.brand-text .subtitle {
    margin-top: 4px;
    color: #d0d0d0;
    font-size: 0.95rem;
}

main {
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 20px;
}

.section-title {
    margin-bottom: 18px;
}

.section-title h2 {
    margin-bottom: 4px;
}

.section-title .system-label {
    color: #777;
    font-size: 0.9rem;
}

.batch {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--wine-burgundy);
}

.batch h2 {
    margin-top: 0;
    margin-bottom: 6px;
}

.batch-meta {
    color: #555;
}

.public-status {
    margin-top: 12px;
    padding: 10px 12px;
    background: #f7f7f7;
    border-radius: 6px;
    border-left: 4px solid var(--heritage-yellow);
    font-size: 0.95rem;
}

.public-status strong {
    display: block;
    margin-bottom: 3px;
}

.internal-label {
    margin-top: 18px;
    margin-bottom: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.measurements {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 0;
}

.measurement {
    background: var(--soft-gray);
    padding: 12px 18px;
    border-radius: 6px;
    min-width: 120px;
}

.history-panel {
    padding-top: 18px;
}
.history-panel summary {
    cursor: pointer;
    font-weight: 600;
    padding: 4px 0;
}

.chart-section {
    margin-top: 1rem;
}

.label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.value {
    font-size: 1.4rem;
    font-weight: bold;
}

.accent {
    color: var(--heritage-yellow);
}

.module-winery .section-title h2 {
    color: var(--wine-burgundy);
}

@media (max-width: 600px) {
    header {
        padding: 14px 18px;
    }

    .brand {
        gap: 12px;
    }

    .brand img {
        width: 72px;
        height: 72px;
    }

    .brand-text h1 {
        font-size: 1.45rem;
    }

    main {
        margin: 20px auto;
        padding: 0 14px;
    }

    .measurement {
        flex: 1 1 100%;
    }
}

/*
 * Winery manual-entry controls
 */

.entry-panel {
    margin-top: 18px;
    padding-top: 4px;
}

.entry-panel summary {
    cursor: pointer;
    font-weight: 600;
    padding: 4px 0;
}

.entry-grid {
    display: grid;
    gap: 16px;
    margin-top: 14px;
}

.winery-entry-form {
    background: #f7f7f7;
    border: 1px solid #dddddd;
    border-radius: 6px;
    padding: 16px;
}

.winery-entry-form h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1rem;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: end;
}

.form-row label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 150px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.form-row .wide-field {
    flex: 1 1 280px;
}

.form-row input {
    font: inherit;
    color: var(--charcoal);
    background: white;
    border: 1px solid #cccccc;
    border-radius: 5px;
    padding: 9px 10px;
}

.winery-entry-form button {
    margin-top: 14px;
    padding: 9px 14px;
    border: 0;
    border-radius: 5px;
    background: var(--wine-burgundy);
    color: white;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.winery-entry-form button:hover {
    opacity: 0.9;
}

.form-status {
    min-height: 1.2em;
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--farm-green);
}

.form-status.error {
    color: var(--wine-burgundy);
}


@media (max-width: 600px) {

    .form-row {
        display: block;
    }

    .form-row label {
        margin-bottom: 12px;
    }

    .form-row input {
        width: 100%;
    }
}

.batch-details {
    margin-top: 8px;
    margin-bottom: 14px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.batch-details strong {
    font-weight: 600;
}

.recipe-panel {
    margin-top: 14px;
}

.recipe-content {
    margin-top: 14px;
}

.recipe-header {
    margin-bottom: 20px;
}

.recipe-header h3 {
    margin-bottom: 8px;
}

.recipe-notes {
    margin-top: 10px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.recipe-table-wrap {
    overflow-x: auto;
}

.recipe-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 22px;
}

.recipe-table th,
.recipe-table td {
    text-align: left;
    vertical-align: top;
    padding: 8px 10px;
    border-bottom: 1px solid #d8d4ca;
}

.recipe-table th {
    font-weight: 600;
}

.recipe-step {
    padding: 12px 0;
    border-bottom: 1px solid #d8d4ca;
}

.recipe-step-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.recipe-step-instructions {
    line-height: 1.5;
}

.recipe-loading {
    padding: 10px 0;
    font-style: italic;
}
/*
 * George public home
 */

.module-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.module-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    padding: 18px;
}

.module-hero {
    display: flex;
    align-items: center;
    gap: 18px;
}

.module-hero img {
    width: 110px;
    height: 110px;
    object-fit: contain;
    flex-shrink: 0;
}

.speech-bubble {
    position: relative;
    background: #f3f1ea;
    border-radius: 14px;
    padding: 14px 16px;
    flex: 1;
}

.speech-bubble::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 36px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid #f3f1ea;
}

.speech-bubble h2 {
    margin-top: 0;
    margin-bottom: 8px;
}

.speech-bubble p {
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.45;
}

.module-card-content {
    margin-top: 16px;
}

.home-status-item {
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #dedbd2;
}

.home-status-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.home-status-item strong {
    display: block;
    margin-bottom: 4px;
}

.home-progress {
    margin-top: 6px;
    color: var(--farm-green);
    font-size: 0.9rem;
}

.module-link {
    display: inline-block;
    margin-top: 4px;
    padding: 9px 13px;
    border-radius: 5px;
    background: var(--farm-green);
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.module-link:hover {
    opacity: 0.9;
}

.module-coming-soon {
    opacity: 0.92;
}

.coming-soon-label {
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 600px) {
    .module-hero {
        align-items: flex-start;
    }

    .module-hero img {
        width: 88px;
        height: 88px;
    }

    .speech-bubble {
        padding: 12px 14px;
    }

    .speech-bubble::before {
        top: 24px;
    }
}


/*
 * George public winery
 */

.public-back-link {
    margin-top: -6px;
    margin-bottom: 18px;
}

.public-back-link a {
    color: var(--farm-green);
    text-decoration: none;
    font-weight: 600;
}

.public-wine-card {
    padding: 20px;
}

.public-wine-heading {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    align-items: flex-start;
}

.public-state {
    background: var(--wine-burgundy);
    color: white;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.public-subheading {
    margin-top: 18px;
    margin-bottom: 10px;
    font-weight: 700;
}

.public-progress-block {
    margin-top: 18px;
}

.public-progress-text {
    color: var(--farm-green);
    font-size: 0.9rem;
    margin-bottom: 7px;
}

.progress-track {
    height: 10px;
    background: #dedbd2;
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--farm-green);
    border-radius: 999px;
}

.public-detail-panel {
    margin-top: 18px;
    border-top: 1px solid #d8d4ca;
    padding-top: 14px;
}

.public-detail-panel summary {
    cursor: pointer;
    font-weight: 700;
    padding: 4px 0;
}

.public-detail-content {
    margin-top: 14px;
}

.public-small-note {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.4;
}

.public-recipe-step {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid #d8d4ca;
}

.public-step-marker {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e4e1d8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.public-recipe-step.step-complete .public-step-marker {
    background: var(--farm-green);
    color: white;
}

.public-recipe-step.step-complete .recipe-step-title {
    color: var(--farm-green);
}

.public-event {
    padding: 10px 0;
    border-bottom: 1px solid #d8d4ca;
}

.public-event:last-child {
    border-bottom: 0;
}

@media (max-width: 600px) {
    .public-wine-heading {
        display: block;
    }

    .public-state {
        display: inline-block;
        margin-top: 10px;
    }
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.farm-logo-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    padding-right: 28px;
}

.farm-logo-header img {
    width: 170px;
    height: 170px;
    object-fit: contain;
    display: block;
}

@media (max-width: 700px) {
    .farm-logo-header img {
        width: 90px;
        height: 90px;
    }

    .farm-logo-header {
        padding-right: 8px;
    }
}

.site-nav {
    display: flex;
    gap: 18px;
    padding: 10px 28px;
    background: #f6f2e8;
    border-bottom: 1px solid #d8d1c2;
}

.site-nav a {
    color: #2f2f2f;
    text-decoration: none;
    font-weight: 600;
}

.site-nav a:hover {
    text-decoration: underline;
}

.about-page {
    max-width: 900px;
    margin: 36px auto;
    padding: 0 24px 40px;
}

.about-page h2 {
    margin-bottom: 18px;
}

.about-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 28px 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    line-height: 1.65;
}

.about-card p {
    margin: 0 0 18px;
}

.about-card p:last-child {
    margin-bottom: 0;
}

