/*
 * HINT DEPT 1134 public route system.
 * Admin templates do not load this file.
 */

body.hd-site-body:not(.hd-page-home) > main.main-content-area {
    color: var(--hd-ink);
    background: var(--hd-white);
}

.hd-public-page,
body.hd-site-body:not(.hd-page-home) .ml-theme-page,
body.hd-site-body:not(.hd-page-home) .ml-legal-page {
    width: 100%;
    min-height: 60svh;
    background: var(--hd-white) !important;
    color: var(--hd-ink) !important;
}

body.hd-site-body:not(.hd-page-home) > main.main-content-area > :where(section, .hd-public-page, .ml-theme-page, .ml-legal-page) {
    animation: hd-page-enter 680ms var(--hd-ease-out) both;
}

body.hd-site-body:not(.hd-page-home) :where(.container, .ml-theme-shell) {
    width: min(100%, var(--hd-page-max));
    max-width: var(--hd-page-max) !important;
    margin-inline: auto;
}

body.hd-site-body:not(.hd-page-home) :where(.rounded, .rounded-sm, .rounded-md, .rounded-lg, .rounded-xl, .rounded-2xl, .rounded-3xl, [class*="rounded-["]) {
    border-radius: 0 !important;
}

body.hd-site-body:not(.hd-page-home) :where(.shadow, .shadow-sm, .shadow-md, .shadow-lg, .shadow-xl, .shadow-2xl, [class*="shadow-["]) {
    box-shadow: none !important;
}

body.hd-site-body:not(.hd-page-home) :where(.bg-gradient-to-br, .bg-gradient-to-b, .bg-gradient-to-r) {
    background-image: none !important;
}

body.hd-site-body:not(.hd-page-home) :where(.ml-theme-panel, .ml-theme-panel-soft) {
    border: 1px solid var(--hd-line) !important;
    border-radius: 0 !important;
    background: var(--hd-white) !important;
    box-shadow: none !important;
}

body.hd-site-body:not(.hd-page-home) > main.main-content-area :where(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
    min-height: 3.25rem;
    border: 0.0625rem solid var(--hd-line) !important;
    border-radius: 0 !important;
    background: var(--hd-white) !important;
    color: var(--hd-ink) !important;
    padding: 0.8rem 0.95rem;
    box-shadow: none !important;
    transition: border-color var(--hd-speed-fast) ease;
}

body.hd-site-body:not(.hd-page-home) > main.main-content-area :where(input, select, textarea):focus {
    border-color: var(--hd-ink) !important;
    outline: 0;
    box-shadow: none !important;
}

body.hd-site-body:not(.hd-page-home) > main.main-content-area :where(input, textarea)::placeholder {
    color: #777;
    opacity: 1;
}

body.hd-site-body:not(.hd-page-home) > main.main-content-area :where(label, .ml-theme-label) {
    color: var(--hd-charcoal) !important;
    font-size: var(--hd-text-xs) !important;
    font-weight: 600 !important;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

body.hd-site-body:not(.hd-page-home) > main.main-content-area :where(button[type="submit"], .ml-theme-btn-primary, .ml-account-primary-button) {
    min-height: 3.25rem;
    border: 1px solid var(--hd-ink) !important;
    border-radius: 0 !important;
    background: var(--hd-ink) !important;
    color: var(--hd-white) !important;
    font-size: var(--hd-text-xs) !important;
    font-weight: 600 !important;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    transition: background var(--hd-speed-fast) ease, color var(--hd-speed-fast) ease;
}

body.hd-site-body:not(.hd-page-home) > main.main-content-area :where(button[type="submit"], .ml-theme-btn-primary, .ml-account-primary-button):hover {
    background: var(--hd-white) !important;
    color: var(--hd-ink) !important;
}

.ml-product-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    color: var(--hd-grey);
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ml-product-breadcrumb a { text-decoration: none; }

/* Collection */
.ml-shop-hero {
    width: 100%;
    padding: clamp(3.5rem, 8vw, 8rem) var(--hd-gutter) clamp(2.5rem, 5vw, 5rem) !important;
    border-bottom: 1px solid var(--hd-line);
    background: var(--hd-white);
}

.ml-shop-hero__panel {
    display: grid;
    align-items: end;
    gap: clamp(2rem, 5vw, 6rem);
    margin-top: clamp(2rem, 4vw, 4rem);
}

.ml-shop-hero__copy { max-width: 62rem; }

.ml-shop-hero__eyebrow {
    margin: 0 0 1rem;
    color: var(--hd-grey);
    font-size: var(--hd-text-xs);
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.ml-shop-hero__title {
    max-width: 12ch;
    font-family: var(--hd-font-editorial) !important;
    font-size: clamp(3.25rem, 9vw, 9rem) !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    line-height: 0.84 !important;
    text-transform: none !important;
}

.ml-shop-hero__intro {
    max-width: 43rem;
    margin: clamp(1.5rem, 3vw, 2.5rem) 0 0;
    color: var(--hd-charcoal);
    font-size: var(--hd-text-md);
    line-height: 1.65;
}

.ml-shop-hero__meta {
    display: grid;
    width: min(100%, 16rem);
    gap: 0.35rem;
    border-top: 1px solid var(--hd-ink);
    padding-top: 1rem;
}

.ml-shop-hero__meta-label,
.ml-shop-hero__meta-note {
    color: var(--hd-grey);
    font-size: 0.625rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ml-shop-hero__meta strong {
    font-family: var(--hd-font-editorial);
    font-size: 3rem;
    font-weight: 400;
    line-height: 1;
}

.ml-shop-hero__nav {
    display: flex;
    gap: 0;
    margin-top: clamp(2.5rem, 5vw, 5rem);
    overflow-x: auto;
    border-top: 1px solid var(--hd-line);
    border-bottom: 1px solid var(--hd-line);
    scrollbar-width: none;
}

.ml-shop-hero__nav::-webkit-scrollbar { display: none; }

.ml-category-chip,
.ml-search-category-chip {
    display: inline-flex;
    min-height: 3rem;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.55rem;
    border: 0 !important;
    border-right: 1px solid var(--hd-line) !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--hd-ink) !important;
    padding: 0.75rem 1.25rem;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-decoration: none;
    text-transform: uppercase;
}

.ml-category-chip.is-active,
.ml-category-chip:hover,
.ml-search-category-chip:hover {
    background: var(--hd-ink) !important;
    color: var(--hd-white) !important;
}

.ml-category-chip-count { color: inherit; opacity: 0.55; }

.ml-collection-toolbar {
    position: sticky;
    top: var(--hd-header-total);
    z-index: 30;
    width: 100%;
    border-bottom: 1px solid var(--hd-line);
    background: rgba(255, 255, 255, 0.96);
    padding: 0 var(--hd-gutter) !important;
    backdrop-filter: blur(0.6rem);
}

.ml-collection-toolbar__inner { position: relative; }
.ml-collection-toolbar__bar {
    display: flex;
    min-height: 4rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.ml-collection-toolbar__sort { display: flex; align-items: center; gap: 0.75rem; }
.ml-collection-toolbar__label,
.ml-collection-toolbar__count {
    color: var(--hd-grey);
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.ml-collection-toolbar__select {
    width: auto !important;
    min-height: 2.5rem !important;
    border: 0 !important;
    background: transparent !important;
    padding: 0 1.5rem 0 0 !important;
    font-size: 0.75rem;
}

.ml-collection-filter-toggle {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    gap: 0.7rem;
    border: 0;
    background: transparent;
    color: var(--hd-ink);
    padding: 0;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
}
.ml-collection-filter-toggle svg { width: 1rem; }
.ml-collection-filter-panel {
    display: none;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    border-top: 1px solid var(--hd-line);
    padding: 1rem 0;
}
.ml-collection-filter-panel.is-open { display: flex; }
.ml-collection-filter-panel .ml-collection-toolbar__count { margin-right: 1.25rem; }

.ml-featured-products {
    width: 100%;
    padding: clamp(2.5rem, 5vw, 5rem) var(--hd-gutter) clamp(5rem, 10vw, 10rem) !important;
}

.ml-product-grid,
.ml-search-results-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(2.5rem, 5vw, 6rem) clamp(0.65rem, 2vw, 2rem) !important;
    align-items: start;
}

.product-item,
.ml-product-card {
    position: relative;
    width: 100% !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    cursor: default !important;
}

.ml-product-media,
.product-image-container {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--hd-paper) !important;
}

.ml-product-media img,
.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity var(--hd-speed) ease, transform 800ms var(--hd-ease-out) !important;
}

.ml-product-card:hover .main-image { opacity: 0 !important; }
.ml-product-card:hover .hover-image { opacity: 1 !important; transform: scale(1.015); }

.ml-product-card-kicker {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 3;
    margin: 0;
    background: var(--hd-white);
    padding: 0.45rem 0.6rem;
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.quick-add-btn,
.ml-product-card-add {
    position: absolute !important;
    right: 0.75rem !important;
    bottom: 0.75rem !important;
    left: auto !important;
    display: grid !important;
    width: 2.75rem !important;
    height: 2.75rem !important;
    min-height: 0 !important;
    place-items: center;
    border: 1px solid var(--hd-ink) !important;
    border-radius: 0 !important;
    background: var(--hd-white) !important;
    color: var(--hd-ink) !important;
    padding: 0 !important;
    opacity: 1 !important;
    transform: none !important;
    cursor: pointer;
}
.quick-add-btn:hover { background: var(--hd-ink) !important; color: var(--hd-white) !important; }
.quick-add-btn svg { width: 1.15rem; height: 1.15rem; }

.ml-product-meta { padding-top: 0.9rem !important; text-align: left; }
.ml-product-name { margin: 0; font-size: 0.8125rem; font-weight: 400; letter-spacing: 0.01em; }
.ml-product-name a { text-decoration: none; }
.ml-product-price { margin: 0.35rem 0 0; color: var(--hd-charcoal); font-size: 0.8125rem; }
.ml-product-price-old { margin-right: 0.4rem; color: var(--hd-grey); text-decoration: line-through; }
.ml-product-card-price-note { margin: 0.3rem 0 0; color: var(--hd-grey); font-size: 0.6875rem; }
.ml-product-card-dots { display: none !important; }
.ml-product-card-swatches { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.65rem; }
.ml-product-badge { border-radius: 0 !important; font-size: 0.55rem !important; letter-spacing: 0.1em; text-transform: uppercase; }

/* Search */
.hd-search-page,
.hd-page-search .ml-theme-page {
    padding: clamp(3.5rem, 8vw, 8rem) var(--hd-gutter) clamp(6rem, 10vw, 10rem);
}
.hd-search-page > .container:first-child,
.hd-page-search .ml-theme-page > .container:first-child { max-width: 82rem !important; }
.ml-search-title,
.hd-page-search h1:first-of-type {
    margin: clamp(2rem, 5vw, 5rem) 0 1.5rem;
    font-family: var(--hd-font-editorial) !important;
    font-size: clamp(3.5rem, 9vw, 8.5rem) !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    line-height: 0.86 !important;
    text-transform: none !important;
}
.ml-search-refine-form {
    position: relative;
    display: flex;
    max-width: 82rem;
    margin: 2.5rem 0 clamp(3rem, 6vw, 6rem);
    border-bottom: 1px solid var(--hd-ink);
}
.ml-search-page-input {
    min-height: 4.75rem !important;
    border: 0 !important;
    padding: 0.75rem 4rem 0.75rem 0 !important;
    font-family: var(--hd-font-editorial) !important;
    font-size: clamp(1.5rem, 3vw, 2.75rem) !important;
}
.ml-search-submit-btn {
    position: absolute;
    top: 0;
    right: 0;
    width: 3.5rem !important;
    min-height: 100% !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--hd-ink) !important;
}
.ml-search-filter-card { margin-bottom: 3rem; border: 0 !important; background: transparent !important; padding: 0 !important; }
.hd-page-search .ml-search-results-grid { margin-top: 3rem; }

/* Story */
.hd-story-page { overflow: hidden; }
.ml-story-hero {
    padding: clamp(4rem, 10vw, 10rem) var(--hd-gutter) clamp(5rem, 10vw, 10rem);
    border-bottom: 1px solid var(--hd-line);
}
.ml-story-hero-copy { width: min(100%, 82rem); margin-inline: auto; }
.ml-story-hero-title {
    max-width: 11ch;
    margin-top: 1.5rem !important;
    font-size: clamp(3.5rem, 10vw, 10rem) !important;
    letter-spacing: 0 !important;
    line-height: 0.84 !important;
}
.ml-story-hero-subtitle { max-width: 42rem; margin: 2rem 0 0; font-size: var(--hd-text-lg); line-height: 1.4; }
.ml-story-hero-lead { max-width: 50rem; margin: 2.5rem 0 0; color: var(--hd-charcoal); font-size: var(--hd-text-md); line-height: 1.8; }
.ml-story-hero-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 3rem; border-top: 1px solid var(--hd-line); }
.ml-story-hero-meta-pill { border-bottom: 1px solid var(--hd-line); padding: 1rem 0; font-size: var(--hd-text-sm); }
.ml-story-hero-meta-pill strong { display: block; margin-bottom: 0.25rem; color: var(--hd-grey); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; }
.ml-story-hero-quote { max-width: 52rem; margin: clamp(3rem, 6vw, 6rem) 0 0; font-family: var(--hd-font-editorial); font-size: clamp(2rem, 4vw, 3.8rem); letter-spacing: 0; line-height: 1.08; }
.ml-story-hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.5rem; }
.ml-story-action { display: inline-flex; min-height: 3.25rem; align-items: center; justify-content: center; border: 1px solid var(--hd-ink); padding: 0.8rem 1.5rem; font-size: var(--hd-text-xs); font-weight: 600; letter-spacing: 0.15em; text-decoration: none; text-transform: uppercase; }
.ml-story-action--primary { background: var(--hd-ink); color: var(--hd-white) !important; }
.ml-story-editorial-flow { width: min(100%, 82rem); margin-inline: auto; padding: clamp(4rem, 9vw, 9rem) var(--hd-gutter); }
.ml-story-row { display: grid; gap: 2rem; border-top: 1px solid var(--hd-line); padding: clamp(2.5rem, 5vw, 5rem) 0; }
.ml-story-row-marker { color: var(--hd-grey); font-size: 0.625rem; letter-spacing: 0.15em; }
.ml-story-row-copy { max-width: 48rem; }
.ml-story-row-title { margin: 0.75rem 0 1.5rem; font-size: clamp(2.5rem, 5vw, 5rem); }
.ml-story-row-paragraph { color: var(--hd-charcoal); font-size: var(--hd-text-md); line-height: 1.8; }
.ml-story-row-list { padding-left: 1.2rem; color: var(--hd-charcoal); line-height: 1.8; }

/* Journal */
.hd-journal-page { padding-bottom: clamp(6rem, 10vw, 10rem); }
.ml-style-journal-hero { padding: clamp(4rem, 9vw, 9rem) var(--hd-gutter) !important; border-bottom: 1px solid var(--hd-line); }
.ml-style-journal-hero__panel { display: grid; gap: 3rem; align-items: end; }
.ml-style-journal-title { max-width: 11ch; margin: 1rem 0 1.5rem; font-size: clamp(3.5rem, 9vw, 9rem) !important; line-height: 0.85 !important; }
.ml-style-journal-copy { max-width: 45rem; color: var(--hd-charcoal); font-size: var(--hd-text-md); line-height: 1.7; }
.ml-style-journal-proof { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--hd-ink); }
.ml-style-journal-proof article { padding: 1.25rem 0; border-bottom: 1px solid var(--hd-line); }
.ml-style-journal-proof strong { display: block; font-family: var(--hd-font-editorial); font-size: 2.5rem; font-weight: 400; }
.ml-style-journal-proof span { color: var(--hd-grey); font-size: 0.625rem; letter-spacing: 0.1em; text-transform: uppercase; }
.hd-journal-page > section:nth-of-type(2) { padding: clamp(4rem, 8vw, 8rem) var(--hd-gutter) 0 !important; }
.ml-style-journal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(0.75rem, 2vw, 2rem); }
.ml-style-journal-card { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--hd-paper); }
.ml-style-journal-card img { width: 100%; height: 100%; object-fit: cover; transform: rotate(var(--ml-photo-rotation, 0deg)); transition: transform 900ms var(--hd-ease-out); }
.ml-style-journal-card:hover img { transform: rotate(var(--ml-photo-rotation, 0deg)) scale(1.025); }
.ml-style-journal-card__overlay { position: absolute; inset: auto 0 0; display: flex; align-items: end; justify-content: space-between; gap: 1rem; background: linear-gradient(transparent, rgba(0,0,0,.68)); color: var(--hd-white); padding: 4rem 1rem 1rem; }
.ml-style-journal-card__overlay span { font-size: 0.55rem; letter-spacing: 0.13em; }
.ml-style-journal-card__overlay strong { font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; }
.ml-style-journal-empty { border-top: 1px solid var(--hd-line); border-bottom: 1px solid var(--hd-line); padding: clamp(3rem, 6vw, 6rem) 0; }

/* Contact and content pages */
.ml-contact-page,
.ml-legal-page,
.hd-page-content > main.main-content-area > section.ml-theme-page,
.hd-page-content > main.main-content-area > .ml-theme-page {
    padding: clamp(4rem, 9vw, 9rem) var(--hd-gutter) clamp(6rem, 10vw, 10rem) !important;
}
.ml-contact-page > .container,
.ml-legal-page > .container { max-width: var(--hd-content-max) !important; }
.ml-contact-page h1,
.ml-legal-page h1,
.hd-page-content main h1:first-of-type {
    max-width: 12ch;
    font-size: clamp(3.2rem, 8vw, 8rem) !important;
    letter-spacing: 0 !important;
    line-height: 0.86 !important;
}
.ml-contact-grid { display: grid; gap: clamp(3rem, 7vw, 8rem); margin-top: clamp(3rem, 7vw, 7rem); }
.ml-contact-form { display: grid; gap: 1.2rem; }
.ml-contact-social-link { border-radius: 0 !important; background: transparent !important; color: var(--hd-ink) !important; }
.ml-contact-info-icon { color: var(--hd-ink) !important; background: var(--hd-paper) !important; }
.ml-contact-alert { border-radius: 0 !important; }
.ml-legal-page .container { max-width: 64rem !important; }
.ml-legal-page :where(h2, h3) { margin-top: clamp(2.5rem, 5vw, 5rem); }
.ml-legal-page h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
.ml-legal-page :where(p, li) { color: var(--hd-charcoal); line-height: 1.8; }

.ml-size-guide-shell { width: min(100%, var(--hd-content-max)); margin-inline: auto; padding: clamp(4rem, 9vw, 9rem) var(--hd-gutter); }
.ml-size-guide-hero h1 { font-size: clamp(3.5rem, 9vw, 8rem); }
.ml-size-guide-nav { display: flex; flex-wrap: wrap; gap: 0; margin: 2.5rem 0; border-top: 1px solid var(--hd-line); border-bottom: 1px solid var(--hd-line); }
.ml-size-guide-nav a { padding: 1rem 1.25rem; border-right: 1px solid var(--hd-line); font-size: var(--hd-text-xs); letter-spacing: 0.12em; text-decoration: none; text-transform: uppercase; }
.ml-size-guide-grid { display: grid; gap: 2rem; }
.ml-size-guide-section,
.ml-size-guide-measure { border: 1px solid var(--hd-line); padding: clamp(1.25rem, 3vw, 2.5rem); }
.ml-size-table-wrap { overflow-x: auto; }
.ml-size-table { width: 100%; border-collapse: collapse; }
.ml-size-table :where(th, td) { border-bottom: 1px solid var(--hd-line); padding: 0.9rem; text-align: left; }

/* Authentication, account, wishlist */
.hd-auth-page,
.hd-account-page,
.hd-wishlist-page,
.hd-page-auth > main.main-content-area > section,
.hd-page-checkout > main.main-content-area > section,
.hd-page-cart > main.main-content-area > section {
    padding: clamp(4rem, 8vw, 8rem) var(--hd-gutter) clamp(6rem, 10vw, 10rem) !important;
}
.hd-auth-page > .container,
.hd-wishlist-page > .container { max-width: 72rem !important; }
.hd-auth-page h1,
.hd-wishlist-page h1,
.hd-account-page .ml-account-editorial-title { font-size: clamp(3rem, 7vw, 7rem) !important; }
.ml-auth-panel,
.ml-account-join-form-panel { max-width: 38rem; margin-inline: auto; padding: clamp(1.5rem, 4vw, 3rem) !important; }
.ml-account-join-intro { padding: clamp(3rem, 7vw, 7rem) var(--hd-gutter); border-bottom: 1px solid var(--hd-line); }
.ml-account-editorial-hero { padding: clamp(4rem, 8vw, 8rem) var(--hd-gutter) 3rem; }
.ml-account-editorial-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--hd-line); border-bottom: 1px solid var(--hd-line); }
.ml-account-stat-card { padding: 1.5rem var(--hd-gutter); border-right: 1px solid var(--hd-line); }
.ml-account-stat-label { color: var(--hd-grey); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; }
.ml-account-stat-value { display: block; margin-top: 0.5rem; font-family: var(--hd-font-editorial); font-size: clamp(1.75rem, 4vw, 3rem); }
.ml-account-editorial-layout { display: grid; gap: clamp(2rem, 5vw, 6rem); padding: clamp(3rem, 6vw, 6rem) var(--hd-gutter) clamp(6rem, 10vw, 10rem); }
.ml-account-nav { display: grid; border-top: 1px solid var(--hd-line); }
.ml-account-nav-link { border-bottom: 1px solid var(--hd-line); padding: 1rem 0; font-size: var(--hd-text-xs); font-weight: 600; letter-spacing: 0.12em; text-decoration: none; text-transform: uppercase; }
.ml-account-nav-link:hover { padding-left: 0.5rem; }
.ml-account-content { min-width: 0; }
.ml-account-panel,
.ml-account-feature-card,
.ml-account-help-panel { border: 1px solid var(--hd-line) !important; border-radius: 0 !important; background: var(--hd-white) !important; padding: clamp(1.5rem, 3vw, 2.5rem) !important; box-shadow: none !important; }
.ml-account-dashboard-panels,
.ml-account-profile-grid { display: grid; gap: 1rem; }
.ml-account-empty-state { border: 1px solid var(--hd-line); padding: clamp(2rem, 5vw, 5rem); text-align: center; }
.ml-wishlist-card { border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; }

/* Cart recovery */
.hd-recovery-page {
    min-height: 70svh;
    padding: clamp(4rem, 9vw, 9rem) var(--hd-gutter);
    background: var(--hd-white);
}
.hd-recovery-shell { width: min(100%, 76rem); margin-inline: auto; }
.hd-recovery-panel { border-block: 1px solid var(--hd-line); background: var(--hd-white); }
.hd-recovery-panel--message { padding: clamp(3rem, 8vw, 8rem) var(--hd-gutter); text-align: center; }
.hd-recovery-mark {
    display: flex;
    width: 3.5rem;
    height: 3.5rem;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    border: 1px solid var(--hd-ink);
    color: var(--hd-ink);
}
.hd-recovery-eyebrow {
    color: var(--hd-grey);
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}
.hd-recovery-panel h1 {
    max-width: 12ch;
    margin: 1rem auto 1.5rem;
    font-family: var(--hd-font-editorial);
    font-size: clamp(3.25rem, 8vw, 7.5rem);
    font-weight: 400;
    letter-spacing: 0;
    line-height: 0.88;
}
.hd-recovery-copy { max-width: 38rem; margin: 0 auto 2.5rem; color: var(--hd-charcoal); line-height: 1.7; }
.hd-recovery-header { padding: clamp(3rem, 7vw, 7rem) var(--hd-gutter); text-align: center; }
.hd-recovery-header > p:last-child { margin-top: 1rem; color: var(--hd-charcoal); }
.hd-recovery-discount {
    border-top: 1px solid var(--hd-line);
    border-bottom: 1px solid var(--hd-line);
    padding: 1.25rem var(--hd-gutter);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.hd-recovery-discount code { border: 1px solid var(--hd-ink); padding: 0.45rem 0.65rem; background: var(--hd-white); color: var(--hd-ink); }
.hd-recovery-content { padding: clamp(2rem, 5vw, 5rem) 0; }
.hd-recovery-content > h2 {
    margin-bottom: 2rem;
    font-family: var(--hd-font-editorial);
    font-size: clamp(2.25rem, 4vw, 4.5rem);
    font-weight: 400;
    letter-spacing: 0;
}
.hd-recovery-content > h2 span { font-family: var(--hd-font-sans); font-size: 0.75rem; letter-spacing: 0.08em; }
.hd-recovery-items { border-top: 1px solid var(--hd-line); }
.hd-recovery-item {
    display: grid;
    grid-template-columns: clamp(5rem, 10vw, 8rem) minmax(0, 1fr) auto;
    gap: clamp(1rem, 3vw, 2rem);
    align-items: center;
    border-bottom: 1px solid var(--hd-line);
    padding-block: 1.25rem;
}
.hd-recovery-item__image { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--hd-paper); }
.hd-recovery-item__copy h3 { font-size: 0.875rem; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; }
.hd-recovery-item__copy p,
.hd-recovery-item__price p:last-child { margin-top: 0.35rem; color: var(--hd-grey); font-size: 0.6875rem; }
.hd-recovery-item__price { text-align: right; }
.hd-recovery-item__price p:first-child { font-size: 0.875rem; font-weight: 500; }
.hd-recovery-summary { margin: 2.5rem 0; border-block: 1px solid var(--hd-line); padding-block: 1.5rem; }
.hd-recovery-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.hd-recovery-actions .hd-button { width: 100%; }

@media (max-width: 39.99rem) {
    .hd-recovery-item { grid-template-columns: 5rem minmax(0, 1fr); }
    .hd-recovery-item__price { grid-column: 2; text-align: left; }
    .hd-recovery-actions { grid-template-columns: 1fr; }
}

/* Cart and checkout */
.ml-theme-cart { width: min(100%, var(--hd-content-max)); margin-inline: auto; }
.ml-theme-cart h1,
.hd-page-checkout .ml-theme-title { font-size: clamp(3.3rem, 8vw, 7rem) !important; }
.ml-theme-cart [data-cart-item] { border: 0 !important; border-bottom: 1px solid var(--hd-line) !important; border-radius: 0 !important; padding-block: 1.5rem !important; box-shadow: none !important; }
.ml-theme-cart [data-cart-item] > div:first-child { background: var(--hd-paper) !important; }
#cart-totals-container .ml-theme-panel { position: sticky; top: calc(var(--hd-header-total) + 1rem); border: 1px solid var(--hd-ink) !important; padding: clamp(1.5rem, 3vw, 2.5rem) !important; }
.hd-page-checkout .ml-theme-page { width: min(100%, var(--hd-content-max)); margin-inline: auto; }
.hd-page-checkout .ml-theme-shell { max-width: var(--hd-content-max) !important; }
.hd-page-checkout #checkout-form { display: grid; gap: 0; }
.hd-page-checkout #checkout-form > h2 { margin-top: 2.75rem; padding-top: 2.75rem; border-top: 1px solid var(--hd-line); font-size: clamp(2rem, 4vw, 3.25rem) !important; }
.hd-page-checkout #checkout-form > h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.hd-page-checkout :where(.rounded-full, .rounded-lg, .rounded-md, .rounded-xl, .rounded-2xl, [class*="rounded-["]) { border-radius: 0 !important; }

/* Order and utility routes */
.hd-order-page,
.hd-message-page,
.ml-error-page { width: min(100%, var(--hd-content-max)); margin-inline: auto; padding: clamp(4rem, 9vw, 9rem) var(--hd-gutter) clamp(6rem, 10vw, 10rem); }
.hd-order-page h1,
.hd-message-page h1,
.ml-error-page h1 { font-size: clamp(3rem, 8vw, 7rem) !important; }
.hd-track-page .track-hero { border-radius: 0 !important; background: var(--hd-ink) !important; }
.hd-track-page :where(.rounded-full, .rounded-lg, .rounded-xl, .rounded-2xl) { border-radius: 0 !important; }
.ml-error-panel { display: grid; min-height: 60svh; align-content: center; justify-items: start; }
.ml-error-copy { max-width: 42rem; }
.ml-error-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

@keyframes hd-page-enter {
    from { opacity: 0; transform: translateY(0.75rem); }
    to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 48rem) {
    .ml-shop-hero__panel { grid-template-columns: minmax(0, 1fr) auto; }
    .ml-product-grid,
    .ml-search-results-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ml-story-hero-meta { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .ml-story-hero-meta-pill { padding-right: 1.25rem; }
    .ml-story-row { grid-template-columns: 7rem minmax(0, 1fr); }
    .ml-style-journal-hero__panel { grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.42fr); }
    .ml-style-journal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ml-contact-grid { grid-template-columns: minmax(0, 0.8fr) minmax(24rem, 1.2fr); }
    .ml-size-guide-grid { grid-template-columns: minmax(0, 1.4fr) minmax(18rem, 0.6fr); }
    .ml-account-profile-grid,
    .ml-account-dashboard-panels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 64rem) {
    .ml-product-grid,
    .ml-search-results-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .ml-style-journal-grid article:nth-child(6n + 1) { grid-column: span 2; grid-row: span 2; }
    .ml-account-editorial-layout { grid-template-columns: minmax(14rem, 0.28fr) minmax(0, 1fr); }
}

@media (min-width: 90rem) {
    .ml-product-grid,
    .ml-search-results-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 47.99rem) {
    .ml-shop-hero { padding-top: 3rem !important; }
    .ml-shop-hero__title { font-size: clamp(3rem, 18vw, 5rem) !important; }
    .ml-shop-hero__meta { width: 100%; }
    .ml-collection-toolbar { top: var(--hd-header-total); }
    .ml-collection-toolbar__label { display: none; }
    .ml-collection-filter-panel { max-height: 55dvh; overflow-y: auto; }
    .ml-category-chip { min-height: 2.75rem; padding-inline: 0.9rem; }
    .ml-featured-products { padding-inline: 0.75rem !important; }
    .ml-product-grid,
    .ml-search-results-grid { gap: 2.5rem 0.65rem !important; }
    .quick-add-btn { right: 0.5rem !important; bottom: 0.5rem !important; width: 2.5rem !important; height: 2.5rem !important; }
    .hd-search-page { padding-inline: 1rem; }
    .ml-story-hero-meta { grid-template-columns: 1fr; }
    .ml-story-row { padding-block: 2.5rem; }
    .ml-style-journal-grid { gap: 0.65rem; }
    .ml-style-journal-card__overlay span { display: none; }
    .hd-page-checkout > main.main-content-area > section,
    .hd-page-cart > main.main-content-area > section,
    .hd-auth-page,
    .hd-account-page,
    .hd-wishlist-page { padding-inline: 1rem !important; }
    .ml-account-editorial-stats { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    body.hd-site-body:not(.hd-page-home) > main.main-content-area > :where(section, .hd-public-page, .ml-theme-page, .ml-legal-page) {
        animation: none;
    }
}

/* Waitlist */
.ml-waitlist-shell { max-width: var(--hd-content-max) !important; }
.ml-waitlist-grid { display: grid; gap: 1px; align-items: stretch; background: var(--hd-line); border: 1px solid var(--hd-line); }
.ml-waitlist-story {
    display: flex;
    min-height: 40rem;
    flex-direction: column;
    justify-content: flex-end;
    background: var(--hd-ink);
    color: var(--hd-white);
    padding: clamp(2rem, 5vw, 5rem);
}
.ml-waitlist-kicker { margin: 0; color: rgba(255,255,255,.68); font-size: var(--hd-text-xs); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.ml-waitlist-title { max-width: 8ch; margin: 1rem 0 0; color: var(--hd-white); font-size: clamp(3.25rem, 8vw, 7.5rem); letter-spacing: 0; line-height: .86; }
.ml-waitlist-copy { max-width: 38rem; margin: 2rem 0 0; color: rgba(255,255,255,.78); font-size: var(--hd-text-md); line-height: 1.7; }
.ml-waitlist-points { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; margin-top: 3rem; }
.ml-waitlist-point { border-top: 1px solid rgba(255,255,255,.3); padding-top: 1rem; }
.ml-waitlist-point strong { display: block; color: var(--hd-white); font-size: .625rem; letter-spacing: .14em; text-transform: uppercase; }
.ml-waitlist-point span { display: block; margin-top: .5rem; color: rgba(255,255,255,.68); font-size: var(--hd-text-sm); line-height: 1.6; }
.ml-waitlist-card { display: flex; flex-direction: column; justify-content: center; background: var(--hd-white); padding: clamp(2rem, 5vw, 5rem); }
.ml-waitlist-card-title { margin: 0; font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: .95; }
.ml-waitlist-card-copy { margin: 1.25rem 0 0; color: var(--hd-charcoal); line-height: 1.7; }
.ml-waitlist-form { display: grid; gap: 1rem; margin-top: 2rem; }
.ml-waitlist-label { font-size: .625rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.ml-waitlist-input { width: 100%; }
.ml-waitlist-feedback { min-height: 1.4rem; font-size: var(--hd-text-sm); }
.ml-waitlist-feedback.is-success { color: var(--hd-success); }
.ml-waitlist-feedback.is-error { color: var(--hd-error); }
.ml-waitlist-note { color: var(--hd-grey); font-size: var(--hd-text-sm); line-height: 1.6; }

/* Tracking */
.track-shell { background: var(--hd-paper) !important; }
.track-card { border: 1px solid var(--hd-line) !important; border-radius: 0 !important; background: var(--hd-white) !important; box-shadow: none !important; }
.track-hero { border-radius: 0 !important; background: var(--hd-ink) !important; }
.track-hero,
.track-hero :where(h1,h2,h3,p,span,strong) { color: var(--hd-white) !important; }

/* Order certificate */
.cfy-shell { border-top: 1px solid var(--hd-line); border-bottom: 1px solid var(--hd-line); }
.cfy-panel,
.cfy-hero,
.cfy-info-card { border: 1px solid var(--hd-line); border-radius: 0; background: var(--hd-white); box-shadow: none; }
.cfy-soft-card { border: 1px solid var(--hd-line); border-radius: 0; background: var(--hd-paper); }
.cfy-serif { font-family: var(--hd-font-editorial); }
.cfy-btn { display: inline-flex; min-height: 3.1rem; align-items: center; justify-content: center; border: 1px solid var(--hd-ink); border-radius: 0; padding: .8rem 1.15rem; font-size: var(--hd-text-xs); font-weight: 600; letter-spacing: .12em; text-decoration: none; text-transform: uppercase; }
.cfy-btn--solid { background: var(--hd-ink); color: var(--hd-white) !important; }
.cfy-btn--ghost { background: var(--hd-white); color: var(--hd-ink) !important; }

@media (min-width: 61.25rem) {
    .ml-waitlist-grid { grid-template-columns: minmax(0, 1.1fr) minmax(22rem, .9fr); }
}

@media (max-width: 40rem) {
    .ml-waitlist-points { grid-template-columns: 1fr; }
    .ml-waitlist-story { min-height: 36rem; }
}

@media print {
    .cfy-no-print { display: none !important; }
    .cfy-panel { border-color: var(--hd-line); }
}
