:root {
    color-scheme: light;
    --color-bg: #FFFFFF;
    --color-text-main: #747474;
    --color-text-dark: #000000;
    --color-accent: #533633;
    --color-accent-light: #f5f5f5;
    --color-border: #e0e0e0;

    --font-heading: 'Cormorant Upright', serif;
    --font-body: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text-main);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    font-variant-numeric: lining-nums;
}

.main-header {
    text-align: center;
    padding-top: 60px;
    margin-bottom: 40px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 0;
}

.main-logo {
    max-width: 300px;
    height: auto;
}

.page-title {
    font-family: var(--font-heading);
    font-size: 80px;
    color: var(--color-accent);
    text-align: center;
    margin-bottom: 50px;
    text-transform: uppercase;
    font-weight: 300;
    line-height: 0.8em;
}

.feature-image-container {
    text-align: center;
    margin-bottom: 60px;
}

.feature-image {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

.scroll-indicator {
    text-align: center;
    color: var(--color-accent);
    margin-bottom: 20px;
    /* animation: flash 2s infinite; */
    cursor: default;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.scroll-indicator p {
    font-size: 1.2rem;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.print-button {
    background-color: var(--color-accent);
    color: white;
    border: none;
    padding: 10px 20px;
    font-family: var(--font-body);
    font-size: 1rem;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.print-button:hover {
    background-color: #3d2624;
}

@keyframes flash {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

@media (min-width: 768px) {
    .page-title {
        font-size: 100px;
    }
}

.loading {
    text-align: center;
    color: var(--color-text-main);
}

.category-section {
    margin-bottom: 60px;
    text-align: center;
}

.category-section-speakers {
    margin-bottom: 0;
}

.category-title {
    font-family: var(--font-heading);
    color: var(--color-accent);
    text-transform: uppercase;
    margin: 40px 0 20px;
    font-size: 80px;
    font-weight: 300;
    line-height: 0.8em;
    -ms-word-wrap: break-word;
    word-wrap: break-word;
    border-bottom: 0.5px solid var(--color-accent);
    padding-bottom: 0px;
    display: inline-block;
    text-align: left;
}

@media (min-width: 768px) {
    .category-title {
        font-size: 100px;
        line-height: 0.75em;
    }
}

.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    min-width: 600px;
}

.price-table th,
.price-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.price-table th {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    font-weight: 500;
    font-size: 1.1rem;
    text-transform: uppercase;
    white-space: nowrap;
    background-color: #fafafa;
}

.price-table td {
    color: var(--color-text-main);
}

.price-table tr:last-child td {
    border-bottom: none;
}

.price-table tr:hover {
    background-color: #fafafa;
}

.col-model {
    font-weight: 700;
    color: var(--color-text-dark);
    width: 25%;
}

.col-type {
    width: 15%;
}

.col-price {
    font-variant-numeric: tabular-nums;
    text-align: right !important;
}

.price-table th.col-price {
    text-align: right !important;
}

.contact-section {
    text-align: center;
    margin: 30px 0 40px;
    padding: 0 20px;
    color: var(--color-text-main);
}

.contact-logo {
    max-width: 300px;
    height: auto;
    margin-bottom: 30px;
}

.contact-section p {
    margin-bottom: 0;
    letter-spacing: 0;
}

.contact-section a {
    color: inherit;
    text-decoration: none;
    position: relative;
    display: inline-block;
}

.contact-section a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: currentColor;
    transition: width 0.3s ease;
}

.contact-section a:hover::after {
    width: 100%;
}

.main-footer {
    text-align: center;
    padding: 40px;
    font-size: 0.8rem;
    border-top: 1px solid var(--color-border);
    color: #999;
}

.main-footer a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

.main-footer a:hover {
    text-decoration: underline;
}

@media only screen and (max-width: 768px) {
    .logo-text {
        font-size: 2rem;
    }

    .page-title {
        font-size: 3rem;
        word-wrap: break-word;
    }

    .category-title {
        font-size: 13vw;
        word-wrap: break-word;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
        width: 100vw;
        overflow-x: hidden;
    }

    .table-wrapper {
        width: 100%;
        overflow-x: hidden;
    }

    /* Mobile Table Card View */
    .price-table,
    .price-table tbody,
    .price-table tr,
    .price-table td,
    .price-table th {
        display: block;
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box;
    }

    .price-table thead {
        display: none;
    }

    .price-table tr {
        margin-bottom: 30px;
        border: 1px solid var(--color-border);
        background-color: #fff;
        padding: 0;
    }

    .price-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: right;
        padding: 12px 15px;
        border-bottom: 1px solid #f0f0f0;
        position: relative;
        word-break: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }

    .price-table td:last-child {
        border-bottom: none;
    }

    .price-table td::before {
        content: attr(data-label);
        font-weight: 600;
        text-transform: uppercase;
        margin-right: 15px;
        text-align: left;
        color: var(--color-text-dark);
        font-size: 1.0rem;
        flex: 0 0 auto;
        max-width: 40%;
    }

    .price-table td>span,
    .price-table td {
        /* Ensure content wraps */
        flex: 1 1 auto;
    }

    .col-model,
    .col-type {
        background-color: #fafafa;
    }

    /* Ensure model name stands out on mobile */
    .col-model {
        font-size: 1.1rem !important;
        color: var(--color-accent) !important;
        text-align: left;
        display: block;
        /* Stack model name if needed, or keep flex */
    }
}

/* Print Styles */
@media print {

    /* Hide non-essential elements */
    .scroll-indicator,
    .feature-image-container,
    .main-footer,
    .contact-section a::after,
    /* Hide link underlines if needed */
    button {
        display: none !important;
    }

    /* Reset background and colors for print */
    body {
        background-color: white;
        color: black;
        font-size: 10pt;
        /* Smaller base font size */
    }

    .container {
        width: 100%;
        max-width: none;
        padding: 0;
        margin: 0;
    }

    /* Compact Header */
    .main-header {
        padding-top: 10px;
        margin-bottom: 10px;
        text-align: left;
        /* Save vertical space by aligning left or keep center? Let's keep center but small */
    }

    .main-logo {
        max-width: 150px;
        /* Smaller logo */
    }

    .page-title {
        font-size: 24pt;
        /* Much smaller title */
        margin-bottom: 10px;
        color: black;
        text-align: left;
    }

    /* Compact Sections */
    .category-section {
        margin-bottom: 20px;
        page-break-inside: avoid;
        /* Try to keep category title with table */
        text-align: left;
    }

    .category-title {
        font-size: 16pt;
        /* Smaller category title */
        margin: 15px 0 10px;
        color: black;
        border-bottom: 1px solid black;
        text-align: left;
    }

    /* Compact Table */
    .table-wrapper {
        overflow: visible;
        /* Ensure entire table prints */
    }

    .price-table {
        font-size: 9pt;
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 10px;
    }

    .price-table th,
    .price-table td {
        padding: 4px 8px;
        /* Reduce padding significantly */
        border-bottom: 1px solid #ccc;
        display: table-cell !important;
        /* Force table layout on print even if mobile styles interfere */
    }

    .price-table th {
        background-color: #eee !important;
        /* Force background for visibility if printed */
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        font-size: 9pt;
        color: black;
        display: table-cell !important;
        /* Ensure headers show */
    }

    .price-table tr {
        display: table-row !important;
        border: none;
        margin: 0;
        padding: 0;
    }

    .price-table thead {
        display: table-header-group !important;
        /* Ensure header repeats or shows */
    }

    /* Reset mobile specific content injections */
    .price-table td::before {
        content: none !important;
    }

    .price-table td {
        text-align: left;
        justify-content: flex-start;
    }

    /* Ensure specific columns widths if needed, or let auto layout handle it */
    .col-model {
        width: auto;
        color: black;
        font-size: 9pt !important;
        background-color: transparent !important;
    }

    .col-type {
        width: auto;
        background-color: transparent !important;
    }

    .col-price {
        text-align: right !important;
    }

    /* Contact Section for Footer (Print version) */
    .contact-section {
        margin-top: 20px;
        padding: 0;
        text-align: center;
        font-size: 8pt;
    }

    .contact-logo {
        display: none;
        /* Hide large contact logo to save space */
    }

    /* Hide URLs in hrefs */
    a[href]:after {
        content: none !important;
    }

    /* Surcharge Notes (Speaker) */
    .speaker-notes {
        text-align: left !important;
        font-size: 8pt !important;
        padding: 0 !important;
        margin: 10px 0 !important;
        color: black !important;
    }
}