/* SEAMOSS EXPORT - Premium Design System */

:root {
    --transition-snappy: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-smooth: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    --shadow-soft: 0 8px 32px rgba(7, 19, 16, 0.08);
    --shadow-hover: 0 16px 48px rgba(7, 19, 16, 0.12);
    /* Matches stacked header (.site-header__bar logo + wrapped nav); overridden on wide screens */
    --site-header-height: clamp(11rem, 36vw, 14rem);
}

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

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--brand-text);
    background: var(--brand-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main {
    flex-grow: 1;
}

h1, h2, h3, h4, h5, h6 {
    /* 
      Choose one of the fonts below by uncommenting it, 
      and comment out the others. They are all loaded in base.html.
    */
    
    /* 1. Modern Luxury Sans-Serif */
    font-family: 'Outfit', sans-serif;
    /* font-family: 'Montserrat', sans-serif; */
    
    /* 2. High-Fashion Serif */
    /* font-family: 'Playfair Display', serif; */
    
    /* 3. The Roman Classic */
    /* font-family: 'Cinzel', serif; */

    /* 4. The Original (Newspaper-style) */
    /* font-family: 'Cormorant Garamond', serif; */
    font-weight: 600;
    line-height: 1.1;
    color: var(--brand-text);
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1.25rem;
    font-weight: 300;
}

/* Layout */
.container {
    width: min(1200px, 90%);
    margin: 0 auto;
}

/* Header & Glassmorphism */
.site-header {
    background: #fff;
    border-bottom: 1px solid rgba(64, 106, 175, 0.14);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background var(--transition-smooth);
}

/* Full-width bar: logo is NOT inside `.container` so it can read larger on the row */
.site-header__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2.5rem;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
    padding: 0.55rem 0;
    padding-left: max(1.25rem, 5vw);
    padding-right: max(1.25rem, 5vw);
}

.site-header__nav {
    flex: 1 1 auto;
    min-width: 0;
}

/* Brand mark: path comes from `core.constants.BRAND["logo"]` */
.logo {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    text-decoration: none;
    color: var(--brand-text);
    flex-shrink: 0;
    transition: opacity var(--transition-snappy);
}

.logo:hover,
.logo:focus-visible {
    opacity: 0.88;
}

.logo:focus-visible {
    outline: 2px solid var(--brand-secondary);
    outline-offset: 4px;
    border-radius: 4px;
}

.logo__img {
    display: block;
    width: auto;
    object-fit: contain;
    object-position: left center;
}

@media (min-width: 769px) {
    :root {
        --site-header-height: calc(clamp(2.7rem, 3.9vw, 3.55rem) + 1.1rem + 1px);
    }
}

/* Navbar mark: allow a taller asset than the old container + nav-wrap layout */
.site-header__logo .logo__img {
    height: clamp(2.7rem, 3.9vw, 3.55rem);
    max-width: min(20rem, 45vw);
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem 2rem;
}

.main-nav a {
    color: var(--brand-text);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color var(--transition-snappy);
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: var(--brand-secondary);
    transition: width var(--transition-snappy);
}

.main-nav a:hover {
    color: var(--brand-secondary);
}

.main-nav a:hover::after {
    width: 100%;
}

.main-nav .nav-logout {
    display: inline-flex;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    vertical-align: middle;
}

/* Universal Button Styles */
.nav-pill,
.bold-button,
.btn-primary,
.btn-secondary,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 4px;
    border: 1px solid transparent;
    transition: all var(--transition-snappy);
    text-align: center;
    line-height: 1.2;
}

/* Sizing Variants */
.nav-pill,
.bold-button {
    font-size: 0.9rem;
    padding: 0.6rem 1.4rem;
}

.btn-primary,
.btn-secondary,
.btn-outline {
    font-size: 0.95rem;
    padding: 0.8rem 2rem;
}

/* Color Variants */
.bold-button {
    border-color: var(--brand-primary);
    color: var(--brand-text);
    background: transparent;
}

.bold-button:hover {
    background: var(--brand-primary);
    color: var(--brand-light) !important;
}

.bold-button::after {
    display: none;
}

.btn-primary {
    background: var(--brand-primary);
    color: #fff;
    border-color: var(--brand-primary);
    box-shadow: 0 4px 14px rgba(66, 122, 181, 0.3);
}

.btn-primary:hover {
    background: var(--brand-secondary);
    border-color: var(--brand-secondary);
    box-shadow: 0 6px 20px rgba(64, 106, 175, 0.38);
    color: #fff;
}

.btn-secondary {
    border-color: var(--brand-primary);
    color: var(--brand-text);
    background: transparent;
}

.btn-secondary:hover {
    background: var(--brand-primary);
    color: var(--brand-light);
}

.btn-outline {
    border-color: var(--brand-primary);
    color: var(--brand-text);
    background: rgba(255, 232, 190, 0.35);
}

.btn-outline:hover {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #fff;
}

/* Sections */
.section {
    padding: 6rem 0;
    background: #fff;
}

.section-alt {
    background: var(--brand-light);
}

.home-journey__lead {
    font-size: 1.1rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.home-journey__video.yt-embed {
    margin-top: 2.75rem;
    margin-bottom: 0;
    max-width: min(52rem, 100%);
    margin-left: auto;
    margin-right: auto;
}

.home-journey__below {
    font-size: 1.1rem;
    max-width: 42rem;
    margin: 3rem auto 0;
    text-align: center;
    color: var(--brand-text);
    line-height: 1.65;
}

.hero .btn-outline {
    border-color: rgba(255, 255, 255, 0.78);
    color: #fff;
    background: rgba(8, 20, 38, 0.18);
}

.hero .btn-outline:hover {
    background: var(--brand-light);
    border-color: var(--brand-light);
    color: var(--brand-text);
}

/* Hero */
.hero {
    position: relative;
    padding: clamp(4.5rem, 12vh, 6.5rem) 0 clamp(3.5rem, 8vh, 5.5rem);
    background-color: var(--brand-primary);
    background-image: url('../images/hero.png');
    background-size: cover;
    background-position: center;
    color: white;
    box-sizing: border-box;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    height: calc(100vh - var(--site-header-height));
    min-height: calc(100vh - var(--site-header-height));
    max-height: calc(100vh - var(--site-header-height));
    height: calc(100dvh - var(--site-header-height));
    min-height: calc(100dvh - var(--site-header-height));
    max-height: calc(100dvh - var(--site-header-height));
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow-x: clip;
    overflow-y: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(15, 41, 34, 0.8) 0%, rgba(15, 37, 41, 0.6) 20%, rgba(15, 41, 34, 0.3) 100%);
    z-index: 1;
}

.hero h1 {
    font-size: clamp(2.25rem, 4.2vw, 3.5rem);
    color: white;
    margin-bottom: 1.15rem;
    letter-spacing: -0.01em;
}

.hero p {
    font-size: 1.25rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-bottom: 1.65rem;
}

.hero-social {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-social__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 0;
    transition: transform 0.15s ease, opacity 0.2s ease;
}

.hero-social__link:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.hero-social__link:focus-visible {
    outline: 2px solid rgba(212, 175, 55, 0.9);
    outline-offset: 3px;
}

.hero-social__link:active {
    transform: translateY(0) scale(0.95);
}

.hero-social__icon {
    width: 2.35rem;
    height: 2.35rem;
    flex-shrink: 0;
    display: block;
    object-fit: contain;
    transition: transform 0.18s ease, filter 0.18s ease;
    will-change: transform;
}

.hero-social__link:hover .hero-social__icon {
    transform: scale(1.12);
    filter: brightness(1.08);
}

.hero-social__link:active .hero-social__icon {
    transform: scale(0.92);
    filter: brightness(0.95);
}

.hero .hero__inner {
    position: relative;
    z-index: 2;
    flex: 1 1 auto;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 50vw) minmax(0, 50vw);
    grid-template-rows: minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
}

.hero__copy {
    max-width: min(38rem, 100%);
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 0 clamp(1.25rem, 5vw, 4rem);
    min-height: 0;
    max-height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

.hero-whl {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    min-width: 0;
    min-height: 0;
    max-height: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 0 clamp(1.25rem, 5vw, 4rem);
    overflow: hidden;
}

.hero-whl__sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hero-whl--calculator-teaser .hero-whl__card-link {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
    box-sizing: border-box;
    padding: clamp(1rem, 4vw, 1.35rem);
    border: 2px dashed rgba(255, 255, 255, 0.42);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-decoration: none;
    color: inherit;
    transition:
        border-color var(--transition-smooth),
        background var(--transition-smooth),
        box-shadow var(--transition-smooth),
        transform var(--transition-snappy);
}

.hero-whl--calculator-teaser .hero-whl__card-link:hover {
    border-color: rgba(255, 255, 255, 0.62);
    background: rgba(255, 255, 255, 0.075);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.hero-whl--calculator-teaser .hero-whl__card-link:focus-visible {
    outline: 2px solid var(--brand-accent);
    outline-offset: 4px;
}

.hero-whl__card-kicker {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.88);
}

.hero-whl__card-title {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.15rem, 2.8vw, 1.42rem);
    font-weight: 700;
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.98);
}

.hero-whl__card-meta {
    margin: -0.1rem 0 0;
    max-width: 17rem;
    font-size: 0.82rem;
    line-height: 1.42;
    text-align: center;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.72);
}

.hero-whl__card-cta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.15rem;
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(247, 221, 125, 0.95);
    color: var(--brand-text);
    transition: transform var(--transition-snappy), filter var(--transition-snappy);
}

.hero-whl--calculator-teaser .hero-whl__card-link:hover .hero-whl__card-cta {
    transform: translateY(-1px);
    filter: brightness(1.06);
}

.hero-whl__stage {
    position: relative;
    z-index: 1;
    flex: 1 1 0%;
    min-height: 0;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-whl__stage--card {
    max-width: min(270px, 100%);
}

.hero-whl__pouch {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.2));
}

/* Grid & Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.card,
.form-card {
    background: white;
    border: 1px solid rgba(15, 41, 34, 0.04);
    border-radius: 8px;
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.card h3 {
    font-size: 1.75rem;
}

.card p {
    color: var(--brand-muted);
}

/* Typography refinements */
h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 3rem;
    text-align: center;
}

.section-alt h2, .section h2 {
    position: relative;
    padding-bottom: 1.5rem;
}

.section-alt h2::after, .section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--brand-secondary);
}

/* Authentication Pages */
.section-auth {
    background: var(--brand-light);
    padding: 6rem 0;
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
}

.auth-card {
    max-width: 28rem;
    margin: 0 auto;
    background: #fff;
    border: none;
    border-radius: 8px;
    padding: 3rem;
    box-shadow: var(--shadow-hover);
}

.auth-card h1 {
    font-size: 2.5rem;
    color: var(--brand-text);
    text-align: center;
    margin-bottom: 0.5rem;
}

.auth-kicker {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--brand-secondary);
    text-align: center;
}

.auth-lead {
    margin: 0 0 2rem;
    color: var(--brand-muted);
    font-size: 1rem;
    text-align: center;
}

/* Forms */
.form-row {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--brand-text);
}

input,
select,
textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 4px;
    border: 1px solid rgba(15, 41, 34, 0.15);
    background: #fff;
    color: var(--brand-text);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all var(--transition-snappy);
}

.password-toggle-wrap {
    position: relative;
    display: block;
    width: 100%;
}

.password-toggle-wrap input[type="password"],
.password-toggle-wrap input[type="text"] {
    padding-right: 2.7rem;
}

.password-toggle-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-muted);
    cursor: pointer;
    padding: 0;
}

.password-toggle-btn:hover {
    color: var(--brand-text);
}

.password-toggle-btn svg {
    width: 1.1rem;
    height: 1.1rem;
    fill: currentColor;
}

.password-toggle-btn .icon-eye-closed {
    display: none;
}

.password-toggle-btn.is-visible .icon-eye-open {
    display: none;
}

.password-toggle-btn.is-visible .icon-eye-closed {
    display: block;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--brand-secondary);
    box-shadow: 0 0 0 3px rgba(64, 106, 175, 0.2);
    background: #fff;
}

.auth-actions {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-end;
}

.auth-actions .btn-primary {
    width: auto;
}

.auth-actions--center {
    align-items: center;
}

/* Contact Form Grid */
.section-contact {
    padding: 3rem 0;
    min-height: calc(100vh - 160px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-right {
    display: flex;
    flex-direction: column;
}

.message-row {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.message-row textarea {
    flex-grow: 1;
}

.radio-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.radio-group li {
    margin-bottom: 0.5rem;
}

.radio-group label {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    color: var(--brand-text);
}

.radio-group input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid var(--brand-muted);
    border-radius: 50%;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-snappy);
    position: relative;
    background: transparent;
}

.radio-group input[type="radio"]::after {
    content: '';
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--brand-secondary);
    transform: scale(0);
    transition: transform var(--transition-snappy);
}

.radio-group input[type="radio"]:checked {
    border-color: var(--brand-secondary);
    background: rgba(64, 106, 175, 0.1);
}

.radio-group input[type="radio"]:checked::after {
    transform: scale(1);
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Tables */
.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.table th,
.table td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid rgba(15, 41, 34, 0.05);
}

.table th {
    background: rgba(15, 41, 34, 0.03);
    font-weight: 600;
    color: var(--brand-text);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

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

/* Utilities */
.narrow {
    width: min(700px, 92%);
}

.flash {
    margin: 2rem auto;
    max-width: 800px;
    background: rgba(64, 106, 175, 0.08);
    border-left: 4px solid var(--brand-secondary);
    padding: 1rem 1.5rem;
    color: var(--brand-text);
    font-weight: 500;
    border-radius: 0 4px 4px 0;
}

.toast-stack {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 500;
    display: grid;
    gap: 0.65rem;
    width: min(26rem, calc(100vw - 2rem));
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    border-radius: 8px;
    border: 1px solid rgba(15, 41, 34, 0.1);
    padding: 0.8rem 0.9rem;
    box-shadow: 0 8px 28px rgba(7, 19, 16, 0.07), 0 1px 0 rgba(255, 255, 255, 0.6) inset;
    background: #fdfcfa;
    color: var(--brand-text);
    animation: toastEnter 0.18s ease-out;
}

.toast__body {
    flex: 1;
    font-size: 0.92rem;
    line-height: 1.45;
    font-weight: 500;
}

.toast__close {
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
}

.toast__close:hover {
    opacity: 1;
}

.toast--success {
    background: #f2f8f5;
    color: #1a3228;
    border-color: rgba(82, 140, 110, 0.28);
    border-left: 4px solid #4d8f70;
}

.toast--warning {
    background: #fcf8f1;
    color: #3b3020;
    border-color: rgba(190, 155, 95, 0.32);
    border-left: 4px solid #b8954a;
}

.toast--error,
.toast--danger {
    background: #faf5f4;
    color: #3a2422;
    border-color: rgba(176, 110, 102, 0.3);
    border-left: 4px solid #a86b63;
}

.toast--info {
    background: #f3f7f7;
    color: #1e2c29;
    border-color: rgba(88, 124, 116, 0.28);
    border-left: 4px solid #5c8579;
}

.toast.is-hiding {
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

@keyframes toastEnter {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.muted {
    color: var(--brand-muted);
}

.error {
    color: #b03a2e;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

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

.dashboard-row--tight {
    align-items: center;
}

.dashboard-actions {
    margin-top: 1.2rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.8rem;
}

.form-help {
    margin-top: 0.35rem;
    margin-bottom: 0;
    font-size: 0.88rem;
}

.table-actions {
    display: inline-flex;
    gap: 0.8rem;
}

.danger-card {
    margin-top: 1.5rem;
    border: 1px solid rgba(176, 58, 46, 0.25);
    background: #fff;
}

.danger-btn {
    border-color: #b03a2e;
    color: #b03a2e;
}

.danger-btn:hover {
    background: #b03a2e;
    color: #fff !important;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(7, 19, 16, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 300;
    padding: 1.2rem;
}

.modal-backdrop.is-open {
    display: flex;
}

.modal-card {
    width: min(34rem, 100%);
    background: #fff;
    border-radius: 10px;
    padding: 1.4rem;
    box-shadow: var(--shadow-hover);
}

.modal-card h3 {
    margin-bottom: 0.75rem;
}

.modal-card p {
    margin-bottom: 1rem;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.8rem;
}

.modal-card-wide {
    width: min(44rem, 100%);
}

.calculator-page .calculator-subtitle {
    text-align: left;
    margin-bottom: 0.5rem;
    padding-bottom: 0;
    font-size: 1.25rem;
}

.calculator-page__header-row.dashboard-row--tight {
    align-items: center;
}

.calculator-page__header-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.calculator-page__title {
    margin: 0 0 0.35rem;
}

.calculator-page__lead {
    margin: 0;
}

.calculator-page__header-actions {
    flex-shrink: 0;
}

@media (max-width: 720px) {
    .calculator-page__header-row.dashboard-row--tight {
        flex-direction: column;
        align-items: stretch;
    }

    .calculator-page__header-actions .btn-secondary {
        width: 100%;
        box-sizing: border-box;
    }
}

.calculator-page .calc-history-pane__hint {
    margin: 0 0 1rem;
    font-size: 0.9rem;
}

.calc-history-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.85rem;
}

.calc-history-card {
    border: 1px solid rgba(15, 41, 34, 0.12);
    border-radius: var(--radius-sm, 8px);
    padding: 0.95rem 1rem;
    background: #fff;
    box-sizing: border-box;
}

.calc-history-card__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.calc-history-card__id-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.75rem;
    min-width: 0;
}

.calc-history-card__when {
    font-size: 0.88rem;
}

.calc-history-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    justify-content: flex-end;
}

.calc-history-card__action.btn-secondary,
a.calc-history-card__action.btn-secondary {
    font-size: 0.82rem;
    padding: 0.4rem 0.72rem;
    text-decoration: none;
    display: inline-block;
    box-sizing: border-box;
}

.calc-history-card__action--danger.btn-secondary {
    border-color: rgba(176, 58, 46, 0.45);
    color: #b03a2e;
}

.calc-history-card__action--danger.btn-secondary:hover {
    background: rgba(176, 58, 46, 0.08);
    color: #8e2f24;
}

.calc-history-card__assigned {
    font-size: 0.84rem;
    margin-top: 0.35rem;
}

.calc-history-card__stats {
    margin-top: 0.45rem;
    font-size: 0.9rem;
}

.calc-history-card__preview {
    margin-top: 0.5rem;
    font-size: 0.82rem;
    line-height: 1.42;
}

.calc-history-status {
    margin-top: 0.75rem;
    font-size: 0.82rem;
    min-height: 1.25em;
}

.calc-history-empty {
    margin-top: 0.65rem;
}

.calculator-page .calculator-subtitle::after {
    display: none;
}

.calculator-page .calculator-hint {
    margin: 0 0 1rem;
    font-size: 0.9rem;
}

.calculator-page .calculator-block {
    margin-bottom: 1.25rem;
}

.calc-public-summary-pre {
    margin: 1rem 0 0;
    padding: 1rem 1.1rem;
    max-height: min(50vh, 26rem);
    overflow: auto;
    font-family: 'Inter', ui-monospace, monospace;
    font-size: 0.8125rem;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
    background: rgba(64, 106, 175, 0.07);
    border: 1px solid rgba(64, 106, 175, 0.18);
    border-radius: 6px;
    color: var(--brand-text);
}

.calculator-page .calc-constants-card {
    padding-top: 1.75rem;
}

.calculator-page .calc-section-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    margin: 0 0 0.5rem;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: inherit;
    border-radius: 6px;
}

.calculator-page .calc-section-toggle:hover .calc-section-toggle__icon {
    color: var(--brand-text);
}

.calculator-page .calc-section-toggle:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 3px;
}

.calculator-page .calc-section-toggle__text {
    min-width: 0;
}

.calculator-page .calc-section-toggle__title.calculator-subtitle {
    display: block;
    margin-bottom: 0;
    padding-bottom: 0;
}

.calculator-page .calc-section-toggle__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(15, 41, 34, 0.45);
    transition: transform 0.2s ease, color 0.2s ease;
}

.calculator-page .calc-icon-gear {
    display: block;
}

.calculator-page .calc-constants-card.is-collapsed .calc-section-toggle__icon {
    transform: rotate(-72deg);
    color: var(--brand-text);
}

.calculator-page .calc-constants-hint {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    line-height: 1.45;
}

.calculator-page .calc-constants-card.is-collapsed {
    padding-bottom: 1.65rem;
}

.calc-constants-layout {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.calc-constants-row {
    display: grid;
    gap: 1rem;
}

.calc-constants-row--top,
.calc-constants-row--middle {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.calc-constants-row--moss {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.calc-constants-group-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--brand-text);
    margin: 0 0 0.5rem;
    line-height: 1.35;
    max-width: 52rem;
}

.calc-constants-group {
    border: 1px solid rgba(15, 41, 34, 0.12);
    border-radius: 8px;
    background: rgba(251, 249, 244, 0.6);
    padding: 0.85rem 0.85rem 0.9rem;
}

.calc-constants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(5.25rem, 6.75rem));
    gap: 0.55rem 0.65rem;
    align-items: end;
    justify-content: start;
}

.calc-const-cell {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
    width: 100%;
    max-width: 6.75rem;
}

.calc-const-cell label {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--brand-muted);
    margin: 0;
    line-height: 1.2;
}

.calc-const-cell input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    font-size: 0.82rem;
    padding: 0.45rem 0.45rem;
}

.calc-input-suffix-wrap {
    position: relative;
    width: 100%;
}

.calc-input-suffix-wrap input {
    padding-right: 2.65rem !important;
}

.calc-input-suffix {
    pointer-events: none;
    position: absolute;
    right: 0.45rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.68rem;
    font-weight: 500;
    color: rgba(15, 41, 34, 0.45);
    white-space: nowrap;
}

.calc-constants-grid.calc-constants-grid--moss-prices {
    grid-template-columns: repeat(auto-fill, minmax(5.85rem, 7.35rem));
}

.calc-const-cell--suffix {
    max-width: 7.35rem;
}

@media (max-width: 420px) {
    .calc-constants-grid {
        grid-template-columns: repeat(auto-fill, minmax(4.75rem, 1fr));
    }

    .calc-const-cell {
        max-width: none;
    }
}

@media (max-width: 1024px) {
    .calc-constants-row--moss {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .calc-constants-row--top,
    .calc-constants-row--middle,
    .calc-constants-row--moss {
        grid-template-columns: 1fr;
    }
}

/* Sea moss bundle modal */
.calc-sm-modal-card {
    padding: 1.35rem 1.45rem;
    border: 1px solid rgba(15, 41, 34, 0.07);
    background: linear-gradient(180deg, #fffefc 0%, #fafaf7 100%);
    box-shadow: 0 20px 50px rgba(7, 19, 16, 0.12), 0 1px 0 rgba(255, 255, 255, 0.85) inset;
}

.calc-sm-modal-card h3 {
    font-size: clamp(1.15rem, 2.8vw, 1.35rem);
    letter-spacing: -0.02em;
    margin: 0 0 0.35rem;
    font-weight: 600;
}

.calc-sm-modal-card .calc-sm-modal-lead {
    margin: 0 0 1rem;
    font-size: 0.813rem;
    line-height: 1.42;
}

.calc-sm-services-field__legend {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.35rem 0.85rem;
    margin: 0 0 0.45rem;
    padding: 0 0.1rem;
}

.calc-sm-services-field__title {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(15, 41, 34, 0.5);
}

.calc-sm-services-field__hint {
    font-size: 0.688rem;
    color: rgba(15, 41, 34, 0.4);
}

.calc-sm-services-checklist {
    margin: 0 0 0.95rem;
    max-height: min(38vh, 14.5rem);
    overflow-x: hidden;
    overflow-y: auto;
}

.calc-sm-services-panel {
    border: 1px solid rgba(15, 41, 34, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 1px 3px rgba(7, 19, 16, 0.04);
}

.calc-sm-services-panel--empty {
    padding: 0.85rem 0.95rem;
    border-style: dashed;
    border-color: rgba(15, 41, 34, 0.12);
    background: rgba(251, 249, 244, 0.5);
}

.calc-sm-services-empty {
    margin: 0;
    font-size: 0.813rem;
    line-height: 1.4;
}

.calc-sm-pick {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    margin: 0;
    padding: 0.32rem 0.62rem;
    cursor: pointer;
    border-bottom: 1px solid rgba(15, 41, 34, 0.06);
    transition: background 0.14s ease;
}

.calc-sm-pick:last-child {
    border-bottom: 0;
}

.calc-sm-pick:hover {
    background: rgba(15, 41, 34, 0.03);
}

.calc-sm-pick:has(.ui-switch-input:focus-visible) {
    background: rgba(15, 41, 34, 0.04);
    outline: 2px solid var(--brand-primary);
    outline-offset: -2px;
}

.calc-sm-pick__info {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    min-width: 0;
    flex: 1;
}

.calc-sm-pick__name {
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.25;
    color: var(--brand-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calc-sm-pick__price {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(15, 41, 34, 0.45);
}

/* Global UI switch: native checkbox + visual rail (reuse anywhere) */
.ui-switch-track {
    position: relative;
    width: 2.625rem;
    height: 1.4375rem;
    flex-shrink: 0;
}

.ui-switch-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.ui-switch-ui {
    pointer-events: none;
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(180deg, #d8e0dc 0%, #c6cfca 100%);
    box-shadow: inset 0 1px 2px rgba(7, 19, 16, 0.12);
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.ui-switch-ui::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 3px;
    z-index: 0;
    width: 1.0625rem;
    height: 1.0625rem;
    margin-top: -0.53125rem;
    border-radius: 50%;
    background: linear-gradient(180deg, #fff 0%, #f1f4f3 100%);
    box-shadow: 0 1px 3px rgba(7, 19, 16, 0.2);
    transition: left 0.22s cubic-bezier(0.33, 1, 0.68, 1);
}

.ui-switch-input:checked + .ui-switch-ui {
    background: var(--brand-primary);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.ui-switch-input:checked + .ui-switch-ui::after {
    left: calc(2.625rem - 3px - 1.0625rem);
}

.ui-switch-input:focus-visible + .ui-switch-ui {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
}

.calc-white-label-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    padding: 0.45rem 0;
}

.calc-white-label-toggle__copy {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.calc-white-label-toggle .calc-white-label-toggle__label {
    display: block;
    margin: 0;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--brand-text);
    cursor: pointer;
}

.calc-white-label-toggle__hint {
    font-size: 0.75rem;
    line-height: 1.35;
}

.calc-sm-modal-actions {
    margin-top: 0.35rem;
    padding-top: 0.15rem;
}

@media (max-width: 480px) {
    .calc-sm-pick__name {
        white-space: normal;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        line-clamp: 2;
        -webkit-line-clamp: 2;
    }

    .calc-sm-services-field__legend {
        flex-direction: column;
        align-items: flex-start;
    }
}

.calc-custom-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1rem 1.25rem;
}

.calc-custom-field {
    min-width: 0;
}

.calc-custom-field--name {
    flex: 1 1 10rem;
}

.calc-custom-field--name input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.calc-custom-field--cost {
    flex: 0 1 7rem;
}

.calc-custom-field--cost input {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .calc-custom-field--name {
        flex: 1 1 0;
        min-width: 12rem;
    }

    .calc-custom-field--cost {
        flex: 0 0 7.5rem;
    }
}

.calc-custom-add {
    flex-shrink: 0;
}

.calc-inline-field label {
    display: block;
    margin-bottom: 0.35rem;
}

/* Public calculator — product splitter + option tiles + Three.js pouch */
.calc-product-layout {
    display: grid;
    gap: 1.5rem 2rem;
    align-items: stretch;
}

@media (min-width: 920px) {
    .calc-product-layout {
        grid-template-columns: minmax(260px, 1fr) minmax(280px, 1fr);
    }
}

.calc-product-viewer {
    position: relative;
    border-radius: 16px;
    border: 1px solid rgba(64, 106, 175, 0.2);
    background: linear-gradient(165deg, rgba(237, 242, 251, 0.98) 0%, rgba(255, 255, 255, 0.55) 100%);
    width: 100%;
    flex: 1 1 auto;
    min-height: 240px;
    height: 100%;
    overflow: hidden;
    box-shadow: 0 10px 32px rgba(64, 106, 175, 0.08);
}

@media (max-width: 919px) {
    .calc-product-layout__viewer {
        min-height: min(85vw, 420px);
    }

    .calc-product-viewer {
        min-height: min(85vw, 420px);
    }
}

.calc-product-layout__viewer {
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-self: stretch;
}

.calc-product-webgl-canvas {
    display: block;
    width: 100%;
    height: 100%;
    cursor: grab;
}

.calc-product-webgl-canvas:active {
    cursor: grabbing;
}

.calc-product-viewer__sticker-file {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

.calc-product-viewer__sticker-fallback-preview {
    position: absolute;
    left: 50%;
    top: 42%;
    transform: translate(-50%, -50%);
    z-index: 3;
    max-width: 34%;
    max-height: 24%;
    width: auto;
    height: auto;
    object-fit: contain;
    pointer-events: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(64, 106, 175, 0.15);
    box-shadow: 0 8px 24px rgba(15, 41, 34, 0.12);
}

.calc-product-viewer__sticker-upload {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.22s ease;
}

@media (hover: hover) {
    .calc-product-viewer:hover .calc-product-viewer__sticker-upload {
        opacity: 1;
    }
}

.calc-product-viewer:focus-within .calc-product-viewer__sticker-upload {
    opacity: 1;
}

@media (hover: none) {
    .calc-product-viewer__sticker-upload {
        opacity: 1;
    }
}

.calc-product-viewer__sticker-upload-btn {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.48rem 0.95rem;
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--brand-text);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(64, 106, 175, 0.3);
    box-shadow: 0 4px 18px rgba(64, 106, 175, 0.14);
    cursor: pointer;
    transition: transform var(--transition-snappy), box-shadow var(--transition-snappy), border-color var(--transition-snappy);
}

.calc-product-viewer__sticker-upload-btn:hover {
    border-color: rgba(64, 106, 175, 0.48);
    box-shadow: 0 6px 22px rgba(64, 106, 175, 0.18);
}

.calc-product-viewer__sticker-upload-btn:focus-visible {
    outline: 2px solid rgba(247, 221, 125, 0.95);
    outline-offset: 2px;
}

.calc-product-viewer__sticker-upload-icon {
    flex-shrink: 0;
    color: var(--brand-secondary);
}

.calc-product-viewer__rotate-hint {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(1rem, 16%, 3.75rem);
    pointer-events: none;
    opacity: 0.88;
    transition: opacity 0.28s ease;
}

.calc-product-viewer__rotate-hint-el {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(64, 106, 175, 0.78);
}

.calc-product-viewer__rotate-hint-el .calc-product-viewer__rotate-svg {
    width: clamp(1.45rem, 4.5vw, 2rem);
    height: auto;
    display: block;
    aspect-ratio: 1 / 1;
    filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.92));
}

.calc-product-viewer__rotate-svg--mirror {
    transform: scaleX(-1);
    transform-origin: center;
}

.calc-product-viewer--rotate-hint-hover-only:not(:hover):not(:focus-within) .calc-product-viewer__rotate-hint {
    opacity: 0;
}

.calc-product-viewer--rotate-hint-hover-only:hover .calc-product-viewer__rotate-hint,
.calc-product-viewer--rotate-hint-hover-only:focus-within .calc-product-viewer__rotate-hint {
    opacity: 0.88;
}

.calc-product-viewer__hint {
    position: absolute;
    bottom: 0.6rem;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    font-size: 0.74rem;
    pointer-events: none;
    opacity: 0.9;
    transition: opacity 0.28s ease;
    z-index: 2;
}

.calc-product-viewer--rotate-hint-hover-only:not(:hover):not(:focus-within) .calc-product-viewer__hint {
    opacity: 0;
}

.calculator-page .calc-product-sync-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.calc-product-layout__config {
    position: relative;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.calculator-page .calc-product-add-actions {
    margin-top: auto;
    padding-top: 1.25rem;
    width: 100%;
    justify-content: stretch;
}

.calculator-page .calc-product-add-actions .btn-primary {
    width: 100%;
}

.calc-opt-panel {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.calc-opt-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    justify-content: space-between;
}

.calc-opt-row__legend {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand-secondary);
}

.calc-opt-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.calc-opt-group--package-types,
.calc-opt-group--package-sizes {
    align-items: stretch;
}

.calc-opt-package-divider {
    align-self: stretch;
    flex: 0 0 1px;
    width: 1px;
    min-height: 2.75rem;
    margin: 0 clamp(0.45rem, 2vw, 0.85rem);
    background: rgba(64, 106, 175, 0.22);
}

.calc-opt-card--pp-sack .calc-opt-card__label {
    font-size: 0.68rem;
    line-height: 1.22;
}

.calc-opt-card--pkg-size .calc-opt-card__thumb img {
    object-fit: contain;
    object-position: center;
    padding: 0.12rem;
}

.calc-opt-special--toggle.is-bulk-pack-locked {
    opacity: 0.52;
}

.calc-opt-special--toggle.is-bulk-pack-locked .calc-opt-toggle-box {
    pointer-events: none;
}

.calc-opt-card {
    appearance: none;
    border: 1px solid rgba(64, 106, 175, 0.22);
    border-radius: 14px;
    padding: 0.55rem 0.65rem 0.5rem;
    background: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    text-align: center;
    transition: border-color var(--transition-snappy), box-shadow var(--transition-snappy),
        transform var(--transition-snappy);
    min-width: 5rem;
    max-width: 6.5rem;
}

.calc-opt-card:hover {
    border-color: rgba(64, 106, 175, 0.45);
    box-shadow: 0 6px 16px rgba(64, 106, 175, 0.1);
}

.calc-opt-card.is-selected {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 2px rgba(66, 122, 181, 0.25);
}

.calc-opt-card:focus-visible {
    outline: 2px solid rgba(247, 221, 125, 0.95);
    outline-offset: 2px;
}

.calc-opt-card__thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.65rem;
    height: 3.65rem;
    margin: 0 auto 0.35rem;
    border-radius: 10px;
    background: transparent;
    overflow: hidden;
}

.calc-opt-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.calc-opt-card--package-material .calc-opt-card__thumb img,
.calc-opt-card--sea-type .calc-opt-card__thumb img {
    object-fit: contain;
    object-position: center;
    padding: 0.15rem;
}

.calc-opt-card__label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--brand-text);
}

.calc-opt-row--controls {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1rem 1.5rem;
}

.calculator-page .calc-opt-row--controls {
    gap: 1rem clamp(1.35rem, 4vw, 2.25rem);
}

.calc-opt-special {
    flex: 1 1 10rem;
    min-width: 8.5rem;
}

.calc-opt-special.calc-opt-special--weight {
    flex: 0 0 auto;
    min-width: 0;
    width: fit-content;
    max-width: 100%;
}

.calc-opt-special.calc-opt-special--toggle {
    flex: 0 1 auto;
    width: fit-content;
    max-width: 100%;
    min-width: min(100%, 15rem);
}

.calc-opt-special__legend {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand-secondary);
    margin-bottom: 0.42rem;
}

.calc-opt-special--toggle .calc-opt-special__legend {
    margin-bottom: 0.42rem;
}

.calc-opt-weight-inner {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
    width: 180px;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0.42rem 0.65rem 0.42rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(64, 106, 175, 0.28);
    background: rgba(255, 255, 255, 0.95);
    vertical-align: top;
}

.calc-opt-weight-input {
    flex: 1 1 auto;
    min-width: 0;
    box-sizing: border-box;
    width: auto;
    max-width: none;
    border: none;
    background: transparent;
    font: inherit;
    font-size: 1.05rem;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    text-align: right;
    color: var(--brand-text);
    padding: 0.2rem 0.2rem 0.2rem 0.35rem;
    line-height: 1.3;
}

.calculator-page .calc-opt-weight-input:focus,
.calculator-page .calc-opt-weight-input:focus-visible {
    outline: none;
    box-shadow: none;
}

/* Chrome / Edge / Safari: keep native steppers readable with spacing from digits + Kg label */
.calculator-page .calc-opt-weight-input::-webkit-inner-spin-button,
.calculator-page .calc-opt-weight-input::-webkit-outer-spin-button {
    height: auto;
    min-height: 1.5rem;
    margin-left: 0.4rem;
    margin-right: 0.1rem;
    opacity: 0.72;
    cursor: pointer;
    filter: saturate(1.05);
}

.calculator-page .calc-opt-weight-input:hover::-webkit-inner-spin-button,
.calculator-page .calc-opt-weight-input:hover::-webkit-outer-spin-button {
    opacity: 1;
}

.calc-opt-weight-suffix {
    flex-shrink: 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--brand-muted);
    white-space: nowrap;
}

.calc-opt-toggle-box {
    border: 1px solid rgba(64, 106, 175, 0.22);
    border-radius: 14px;
    padding: 0.55rem 0.72rem;
    background: rgba(255, 255, 255, 0.88);
}

.calc-opt-special--toggle .calc-opt-toggle-box {
    width: fit-content;
    max-width: 100%;
}

.calc-white-label-toggle.calc-white-label-toggle--product-panel {
    width: auto;
    max-width: 100%;
    min-width: min(100%, 12.75rem);
    gap: 0.85rem;
}

.calc-sea-moss-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem 0.9rem;
    margin-bottom: 1rem;
}

.calc-field label {
    display: block;
    margin-bottom: 0.35rem;
}

.calculator-page .calc-field input,
.calculator-page .calc-field select {
    padding: 0.56rem 0.72rem;
    font-size: 0.92rem;
    line-height: 1.2;
}

.calculator-page select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 2.2rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%230f2922' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.72rem center;
    background-size: 0.72rem 0.5rem;
}

.calculator-page select::-ms-expand {
    display: none;
}

.calc-shipping-hint {
    margin: -0.15rem 0 0.65rem;
    font-size: 0.86rem;
}

.calc-shipping-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0.75rem 0.9rem;
    margin-bottom: 1rem;
}

.calc-shipping-insurance-toggle {
    width: 100%;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.35rem 0;
}

.calc-shipping-insurance-toggle .calc-white-label-toggle__copy {
    align-items: flex-start;
    text-align: left;
}

.calc-shipping-field--method,
.calc-shipping-field--zone,
.calc-shipping-field--kg {
    grid-column: span 4;
}

.calc-shipping-field--rate,
.calc-shipping-field--min,
.calc-shipping-field--handling,
.calc-shipping-field--insurance {
    grid-column: span 3;
}

.calc-shipping-field--insurance {
    display: flex;
    align-items: flex-end;
}

.calc-field-span-2 {
    grid-column: span 2;
}

.calc-field-span-full {
    grid-column: 1 / -1;
}

.calc-items-card {
    margin-top: 1rem;
}

.calc-item-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    justify-content: flex-start;
    border-top: 1px solid rgba(15, 41, 34, 0.08);
    padding: 0.8rem 0;
}

@media (min-width: 640px) {
    .calc-item-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 0.8rem;
    }
}

.calc-item-body {
    min-width: 0;
}

@media (min-width: 640px) {
    .calc-item-row--grouped .calc-item-body {
        min-width: 50vw;
    }
}

.calc-item-detail-groups {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin: 0.45rem 0 0;
    max-width: 100%;
}

.calc-item-detail-group {
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
}

.calc-item-detail-group--config,
.calc-item-detail-group--pricing,
.calc-item-detail-group--fixed {
    background: transparent;
    border: none;
    border-radius: 0;
}

.calc-item-detail-group__title {
    font-size: 0.655rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: rgba(15, 41, 34, 0.42);
    margin: 0 0 0.3rem;
}

.calc-item-lines {
    margin: 0.5rem 0 0;
    padding-left: 1.1rem;
    color: var(--brand-muted);
    font-size: 0.88rem;
    line-height: 1.55;
}

.calc-item-detail-group .calc-item-lines {
    margin-top: 0.15rem;
    margin-bottom: 0;
    color: rgba(15, 41, 34, 0.7);
}

.calc-item-lines--bullet {
    list-style: disc;
    padding-left: 1.35rem;
}

.calc-item-lines--bullet > li::marker {
    color: rgba(15, 41, 34, 0.35);
}

.calc-item-config-line__label {
    font-weight: 600;
    color: rgba(15, 41, 34, 0.5);
}

.calc-item-config-line {
    display: list-item;
    margin-bottom: 0.35rem;
    line-height: 1.45;
    font-size: 0.86rem;
}

.calc-item-lines--pricing > li.calc-item-price-line {
    margin-bottom: 0.55rem;
}

.calc-item-lines--pricing > li.calc-item-price-line:last-child {
    margin-bottom: 0;
}

.calc-item-lines--pricing.calc-item-lines--bullet {
    list-style: disc;
    list-style-position: outside;
    padding-left: 1.35rem;
}

.calc-item-lines--pricing.calc-item-lines--bullet > li::marker {
    color: rgba(15, 41, 34, 0.35);
}

.calc-item-price-line {
    display: list-item;
    list-style: disc;
    list-style-position: outside;
}

.calc-item-price-line__label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(15, 41, 34, 0.45);
    margin-bottom: 0.2rem;
}

.calc-item-price-line__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.65rem 1rem;
    flex-wrap: nowrap;
    width: 100%;
    font-size: 0.84rem;
    line-height: 1.45;
}

@media (max-width: 520px) {
    .calc-item-price-line__row {
        flex-wrap: wrap;
    }
}

.calc-item-price-line__formula {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
    color: rgba(15, 41, 34, 0.68);
}

.calc-item-money {
    font-weight: 700;
    color: var(--brand-text);
    letter-spacing: -0.02em;
}

.calc-item-price-line__subtotal {
    flex-shrink: 0;
    text-align: right;
    white-space: nowrap;
}

.calc-item-fixed-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: nowrap;
    width: 100%;
    box-sizing: border-box;
}

.calc-item-fixed-line__label {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
}

.calc-item-fixed-line__amount {
    flex: 0 0 auto;
    text-align: right;
    margin-left: auto;
    white-space: nowrap;
}

.calc-item-lines--fixed-costs {
    width: 100%;
}

.calc-item-lines--fixed-costs > li {
    display: list-item;
    list-style: disc;
    list-style-position: outside;
    margin-bottom: 0.35rem;
}

@media (max-width: 520px) {
    .calc-item-fixed-line {
        flex-wrap: wrap;
    }

    .calc-item-fixed-line__amount {
        width: 100%;
        text-align: right;
    }
}

.calc-item-lines--fixed-costs.calc-item-lines--bullet > li::marker {
    color: rgba(15, 41, 34, 0.35);
}

.calc-item-lines--fixed-costs > li:last-child {
    margin-bottom: 0;
}

.calc-item-lines--plain {
    list-style: disc;
}

.calc-item-lines li {
    margin-bottom: 0.25rem;
}

.calc-item-row--grouped .calc-item-right {
    flex-shrink: 0;
    width: 100%;
    padding-left: 0;
    margin-left: 0;
    border-left: none;
    padding-top: 0.65rem;
    margin-top: 0.15rem;
    border-top: 1px solid rgba(15, 41, 34, 0.1);
    text-align: left;
    align-items: flex-start;
}

@media (min-width: 640px) {
    .calc-item-row--grouped .calc-item-right {
        width: auto;
        min-width: 6.25rem;
        padding-left: 1rem;
        margin-left: 0.5rem;
        border-left: 1px solid rgba(15, 41, 34, 0.1);
        padding-top: 0;
        margin-top: 0;
        border-top: none;
        text-align: right;
        align-items: flex-end;
    }
}

.calc-item-sidebar-total-label {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(15, 41, 34, 0.35);
    width: 100%;
    text-align: left;
}

@media (min-width: 640px) {
    .calc-item-sidebar-total-label {
        text-align: right;
    }
}

.calc-item-price {
    font-weight: 600;
    align-self: flex-start;
}

@media (min-width: 640px) {
    .calc-item-price {
        align-self: flex-end;
    }
}

.calc-item-row--grouped .calc-item-price {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--brand-text);
    letter-spacing: -0.015em;
    text-align: left;
    width: auto;
}

@media (min-width: 640px) {
    .calc-item-row--grouped .calc-item-price {
        text-align: right;
        width: 100%;
    }
}

.calc-item-right {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
}

@media (min-width: 640px) {
    .calc-item-right {
        text-align: right;
        align-items: flex-end;
    }
}

/* Public calculator — inquiry modal + account registration info page */
.calc-inquiry-modal-card {
    width: min(28rem, calc(100vw - 2rem));
}

.calc-inquiry-modal-lead {
    margin-top: -0.35rem;
    margin-bottom: 1rem;
    font-size: 0.92rem;
}

.calc-inquiry-field {
    margin-bottom: 1rem;
}

.calc-inquiry-field label {
    display: block;
    font-weight: 600;
    font-size: 0.82rem;
    margin-bottom: 0.35rem;
    color: rgba(15, 41, 34, 0.75);
}

.calculator-page .calc-inquiry-field input[type="email"] {
    width: 100%;
    box-sizing: border-box;
    padding: 0.55rem 0.65rem;
    border: 1px solid rgba(15, 41, 34, 0.14);
    border-radius: var(--radius-sm, 6px);
    font-size: 0.92rem;
}

.calc-inquiry-terms {
    margin-bottom: 1.15rem;
}

.calc-inquiry-terms-label {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.88rem;
    line-height: 1.45;
    cursor: pointer;
    color: var(--brand-text);
}

.calc-inquiry-terms-label input {
    margin-top: 0.2rem;
    flex-shrink: 0;
    width: auto;
}

.calculator-account-reg-page__title {
    margin-bottom: 0.35rem;
}

.calculator-account-reg-page__lead {
    margin-bottom: 1.5rem;
}

.calc-remove-btn {
    font-size: 0.75rem;
    padding: 0.35rem 0.6rem;
}

.calc-total-row {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(15, 41, 34, 0.1);
    margin-top: 0.8rem;
    padding-top: 0.8rem;
}

.calc-output-modal-card .calc-assign-field label {
    display: block;
    font-weight: 600;
    font-size: 0.82rem;
    margin-bottom: 0.35rem;
    color: rgba(15, 41, 34, 0.75);
}

.calc-output-modal-card .calc-assign-field input[list] {
    width: 100%;
    padding: 0.55rem 0.65rem;
    border: 1px solid rgba(15, 41, 34, 0.14);
    border-radius: var(--radius-sm, 6px);
    font-size: 0.92rem;
    box-sizing: border-box;
}

.calc-done-download-rows {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin: 0.85rem 0 1rem;
}

.calc-done-download-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    background: rgba(15, 41, 34, 0.04);
    border: 1px solid rgba(15, 41, 34, 0.08);
    border-radius: var(--radius-sm, 6px);
}

.calc-done-download-row__label {
    font-weight: 600;
    font-size: 0.94rem;
    color: rgba(15, 41, 34, 0.88);
}

.calc-done-download-row__btn {
    flex-shrink: 0;
}

.calc-output-step-done-actions.modal-actions {
    justify-content: flex-end;
}

@media (min-width: 480px) {
    .calc-done-download-row__btn {
        min-width: 8.25rem;
        text-align: center;
        box-sizing: border-box;
    }
}

.checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.checkbox-inline input {
    width: auto;
}

ul.errorlist {
    list-style: none;
    margin: 0.4rem 0 0;
    padding: 0;
}

.category-tags--form ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.category-tags--form li {
    margin: 0;
}

.category-tags--form label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(15, 41, 34, 0.2);
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    background: white;
    color: var(--brand-text);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    margin: 0;
}

.category-tags--form input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.category-tags--form input[type="checkbox"]:checked + * {
    color: white;
}

.category-tags--form label:has(input[type="checkbox"]:checked) {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: white;
}

@media (max-width: 768px) {
    .dashboard-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .calc-sea-moss-grid {
        grid-template-columns: 1fr;
    }

    .calc-shipping-grid {
        grid-template-columns: 1fr;
    }

    .calc-shipping-field--method,
    .calc-shipping-field--zone,
    .calc-shipping-field--kg,
    .calc-shipping-field--rate,
    .calc-shipping-field--min,
    .calc-shipping-field--handling,
    .calc-shipping-field--insurance {
        grid-column: span 1;
    }

    .calc-field-span-2 {
        grid-column: span 1;
    }
}

/* Partners Section */
.partners-section {
    padding: 8rem 0;
    background: #fff;
}

.partners-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-end;
    margin-bottom: 6rem;
}

.partners-eyebrow {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
    color: var(--brand-secondary);
    margin-bottom: 1.5rem;
}

.partners-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 0;
    text-align: left;
    padding-bottom: 0;
}

.partners-title::after {
    display: none;
}

.partners-title em {
    font-style: italic;
    color: var(--brand-secondary);
}

.partners-intro {
    font-size: 1.1rem;
    color: var(--brand-muted);
    line-height: 1.7;
    margin-bottom: 0;
    max-width: 36rem;
}

.pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 4rem 3rem;
}

.pillar-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.pillar-card .blog-card__body {
    padding: 1.4rem 1.3rem 1.5rem;
}

.pillar-card .blog-card__meta {
    justify-content: space-between;
    align-items: center;
}

.pillar-card .pillar-tag {
    margin-left: auto;
}

.pillar {
    display: flex;
    flex-direction: column;
}

.pillar-number {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--brand-text);
    margin-bottom: 0.75rem;
}

.pillar-rule {
    height: 1px;
    width: 100%;
    background-color: rgba(15, 41, 34, 0.1);
    margin-bottom: 2rem;
    position: relative;
}

.pillar:hover .pillar-rule::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: var(--brand-secondary);
    animation: pillarLine 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes pillarLine {
    0% { width: 0; }
    100% { width: 100%; }
}

.pillar-title {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.pillar-title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-snappy);
}

.pillar-title a:hover {
    color: var(--brand-secondary);
}

.pillar-body {
    color: var(--brand-muted);
    font-size: 1rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.pillar-tag {
    align-self: flex-start;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    background: rgba(15, 41, 34, 0.04);
    color: var(--brand-text);
    border: 1px solid rgba(15, 41, 34, 0.08);
    transition: all var(--transition-snappy);
}

.pillar:hover .pillar-tag {
    background: var(--brand-secondary);
    color: #fff;
    border-color: var(--brand-secondary);
}

@media (max-width: 900px) {
    .partners-header {
        grid-template-columns: 1fr;
        gap: 2rem;
        align-items: flex-start;
        margin-bottom: 4rem;
    }
}

/* Footer */
.site-footer {
    padding: 3rem 0;
    background: var(--brand-secondary);
    color: #fff;
    text-align: center;
    border-top: 1px solid rgba(247, 221, 125, 0.45);
}

.site-footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.site-footer__tagline {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 300;
    max-width: 32rem;
    line-height: 1.5;
}

.site-footer__tagline strong {
    color: #fff;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Blog */
.blog-page h1,
.blog-detail h1 {
    text-align: left;
    margin-bottom: 0.75rem;
}

.blog-header {
    margin-bottom: 2rem;
}

.blog-filters {
    display: grid;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.blog-top-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 32rem);
    gap: 1.5rem 2rem;
    align-items: center;
}

.blog-top-row .blog-header {
    margin-bottom: 0;
}

.blog-search {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: min(32rem, 100%);
    margin: 0 auto;
}

.blog-search__icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    color: var(--brand-muted);
    pointer-events: none;
    z-index: 1;
}

.blog-search__icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
    display: block;
}

.blog-search input {
    width: 100%;
    background: #fff;
    padding-left: 2.5rem;
}

.category-tags {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    width: 100%;
}

.tag-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(15, 41, 34, 0.2);
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    background: white;
    color: var(--brand-text);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    user-select: none;
    margin: 0;
    width: auto;
    max-width: 100%;
    white-space: nowrap;
}

.tag-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.tag-option.is-selected {
    background: var(--brand-primary);
    color: white;
    border-color: var(--brand-primary);
}

.tag-option__text {
    display: inline-block;
    margin: 0;
    line-height: 1.2;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
    align-items: stretch;
}

.blog-card {
    padding: 0;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card__image-wrap {
    display: block;
}

.blog-card__image {
    width: 100%;
    aspect-ratio: 1200 / 630;
    object-fit: cover;
    display: block;
}

.blog-card__body {
    padding: 1.25rem 1.2rem 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card__meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    margin-bottom: 0.7rem;
}

.blog-card h3 {
    margin-bottom: 0.8rem;
}

.blog-card h3 a {
    color: var(--brand-text);
    text-decoration: none;
}

.blog-card p {
    margin-bottom: 1.2rem;
}

.blog-card .btn-secondary {
    margin-top: auto;
}

.pagination {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.blog-back {
    margin-bottom: 1rem;
}

.blog-detail__header {
    margin-bottom: 1.5rem;
}

.blog-detail__header .muted {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.blog-detail__image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid rgba(15, 41, 34, 0.08);
}

.blog-content {
    line-height: 1.75;
}

.blog-content h2,
.blog-content h3 {
    text-align: left;
    padding-bottom: 0;
    margin-top: 2rem;
}

.blog-content h2::after,
.blog-content h3::after {
    display: none;
}

.blog-content a {
    color: var(--brand-secondary);
    text-decoration: underline;
}

.blog-content ul,
.blog-content ol {
    margin: 0 0 1.25rem 1.25rem;
}

.yt-embed {
    position: relative;
    width: 100%;
    margin: 1.5rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    background: #000;
}

.yt-embed iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    display: block;
}

@media (max-width: 1050px) {
    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .blog-top-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .blog-top-row .blog-header {
        text-align: left;
    }
}

@media (max-width: 680px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .site-header__bar {
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
        padding-top: 1rem;
        padding-bottom: 1.15rem;
    }
    .site-header__logo {
        align-self: center;
    }
    .site-header__logo .logo__img {
        max-width: min(20rem, 80vw);
    }
    .main-nav {
        justify-content: center;
    }
    .hero {
        padding: clamp(5rem, 14vh, 6.5rem) 0 clamp(3rem, 9vh, 4.5rem);
    }
    .hero .hero__inner {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: minmax(0, auto) minmax(0, 1fr);
        padding: 0 max(1.25rem, 5%);
    }
    .hero__copy {
        padding: 0;
    }
    .hero-whl {
        padding: 0;
        justify-self: center;
        width: min(100%, 22rem);
    }
    h2 {
        font-size: 2rem;
    }
    .section {
        padding: 4rem 0;
    }
}

/* --- Public pricing page --- */
.pricing-page__intro {
    max-width: 42rem;
    margin-bottom: 2rem;
}

.pricing-page__intro h1 {
    margin-bottom: 0.5rem;
}

.pricing-catalog {
    margin-bottom: 2.5rem;
}

.pricing-product-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1rem;
    padding: 0.35rem;
    border-radius: 10px;
    background: rgba(15, 41, 34, 0.05);
    border: 1px solid rgba(15, 41, 34, 0.08);
}

.pricing-product-tab {
    flex: 1 1 auto;
    min-width: min(140px, 100%);
    font: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 0.55rem 0.95rem;
    cursor: pointer;
    color: var(--brand-text);
    background: transparent;
    transition: background var(--transition-snappy), color var(--transition-snappy), border-color var(--transition-snappy);
}

.pricing-product-tab:hover {
    background: rgba(255, 255, 255, 0.7);
}

.pricing-product-tab:focus-visible {
    outline: 2px solid var(--brand-secondary);
    outline-offset: 2px;
}

.pricing-product-tab.is-active {
    background: #fff;
    border-color: rgba(15, 41, 34, 0.12);
    color: var(--brand-text);
    box-shadow: 0 2px 8px rgba(7, 19, 16, 0.06);
}

.pricing-product-panel {
    animation: pricingPanelIn 0.22s ease-out;
}

.pricing-product-panel[hidden] {
    display: none;
}

@keyframes pricingPanelIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pricing-tier-table td:last-child {
    font-weight: 600;
    color: rgba(15, 41, 34, 0.88);
}

.pricing-extras {
    margin-top: 2.75rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(15, 41, 34, 0.1);
    max-width: 48rem;
}

.pricing-extras__title {
    font-size: 1.25rem;
    margin: 0 0 0.35rem;
    color: var(--brand-text);
}

.pricing-extras__lead,
.pricing-extras__footnote {
    font-size: 0.9rem;
    margin: 0 0 1rem;
}

