/* Editorial / Atelier — magazine public theme
   Palette: paper #faf8f5 · ink #1c1917 · stone #78716c
   Type: Literata (serif) + Source Sans 3 (sans) */

body[data-aura-theme-wrapped="editorial-en"],
body[data-aura-theme-pack="editorial-en"],
[data-aura-cms-root] {
    --ed-ink: #1c1917;
    --ed-paper: #faf8f5;
    --ed-paper-2: #f3efe8;
    --ed-cream: #ede8df;
    --ed-line: #1c1917;
    --ed-line-soft: rgba(28, 25, 23, 0.14);
    --ed-muted: #78716c;
    --ed-on-dark: #f5f5f4;
    --ed-serif: "Literata", "Noto Serif", "Times New Roman", serif;
    --ed-sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
    --acms-bg: #faf8f5;
    --acms-surface: #faf8f5;
    --acms-surface-2: #f3efe8;
    --acms-border: rgba(28, 25, 23, 0.18);
    --acms-border-soft: rgba(28, 25, 23, 0.1);
    --acms-text: #1c1917;
    --acms-text-secondary: #44403c;
    --acms-muted: #78716c;
    --acms-accent: #1c1917;
    --acms-accent-hover: #44403c;
    --acms-radius: 0;
    --acms-radius-sm: 0;
    --acms-shadow: none;
    --acms-font: var(--ed-sans);
    color: var(--ed-ink);
    background: var(--ed-paper);
    font-family: var(--ed-sans);
    font-optical-sizing: auto;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    margin: 0;
}

body[data-aura-theme-wrapped="editorial-en"] {
    margin: 0;
}

body[data-aura-theme-wrapped="editorial-en"]::after {
    content: "";
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 80;
    opacity: 0.045;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

/* —— type —— */
[data-aura-cms-root] h1,
[data-aura-cms-root] h2,
[data-aura-cms-root] h3,
[data-aura-cms-root] .acms-title,
[data-aura-cms-root] .acms-article__title,
[data-aura-cms-root] .acms-post-card__title,
[data-aura-cms-root] .acms-product-info__title,
[data-aura-cms-root] .acms-product-card__name,
[data-aura-cms-root] .acms-theme-hero__title,
[data-aura-cms-root] .acms-theme-footer__brand,
[data-aura-cms-root] .acms-theme-logo {
    font-family: var(--ed-serif);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ed-ink);
}

[data-aura-cms-root] .acms-title {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 600;
    line-height: 1.12;
}

[data-aura-cms-root] .acms-subtitle {
    max-width: 42rem;
    font-size: 1.05rem;
    color: var(--ed-muted);
    font-weight: 400;
}

[data-aura-cms-root] .acms-page {
    padding: 2.5rem 0 4.5rem;
    background: transparent;
}

[data-aura-cms-root] .acms-container {
    max-width: 1120px;
}

[data-aura-cms-root] .acms-header {
    align-items: flex-end;
    margin-bottom: 2.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--ed-ink);
}

[data-aura-cms-root] .acms-btn {
    border-radius: 0;
    font-family: var(--ed-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.85rem 1.25rem;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

[data-aura-cms-root] .acms-btn--primary {
    background: var(--ed-ink);
    border-color: var(--ed-ink);
    color: var(--ed-on-dark);
}

[data-aura-cms-root] .acms-btn--primary:hover {
    background: #44403c;
    border-color: #44403c;
    transform: translateY(-1px);
}

[data-aura-cms-root] .acms-btn--ghost {
    background: transparent;
    border-color: var(--ed-ink);
    color: var(--ed-ink);
}

[data-aura-cms-root] .acms-btn--ghost:hover {
    background: var(--ed-ink);
    color: var(--ed-on-dark);
}

[data-aura-cms-root] .acms-btn--danger {
    background: transparent;
    color: var(--ed-ink);
    border-color: var(--ed-ink);
}

[data-aura-cms-root] .acms-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ed-ink);
}

[data-aura-cms-root] .acms-empty,
[data-aura-cms-root] .acms-loading {
    background: transparent;
    border: 1px dashed var(--ed-line-soft);
    border-radius: 0;
    color: var(--ed-muted);
    font-family: var(--ed-serif);
    font-style: italic;
}

[data-aura-cms-root] .acms-tag {
    border-radius: 0;
    border: 1px solid var(--ed-ink);
    background: transparent;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* —— header / masthead —— */
body[data-aura-theme-wrapped="editorial-en"] .acms-pack-editorial-en.acms-theme-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--ed-paper);
    border-bottom: 1px solid var(--ed-ink);
    transition: box-shadow 0.35s ease;
}

body[data-aura-theme-wrapped="editorial-en"].is-ed-scrolled .acms-pack-editorial-en.acms-theme-header {
    box-shadow: 0 12px 30px rgba(28, 25, 23, 0.06);
}

body[data-aura-theme-wrapped="editorial-en"] .ed-masthead__top {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    min-height: 4.25rem;
}

body[data-aura-theme-wrapped="editorial-en"] .ed-masthead__issue {
    margin: 0;
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ed-muted);
}

body[data-aura-theme-wrapped="editorial-en"] .acms-theme-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    justify-self: center;
    font-family: var(--ed-serif);
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ed-ink);
    text-decoration: none;
}

body[data-aura-theme-wrapped="editorial-en"] .acms-theme-logo__img {
    display: block;
    width: 40px;
    height: 40px;
    object-fit: cover;
    border: 1px solid var(--ed-ink);
    background: var(--ed-paper);
    flex-shrink: 0;
}

body[data-aura-theme-wrapped="editorial-en"] .ed-masthead__tools {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

body[data-aura-theme-wrapped="editorial-en"] .ed-account-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ed-ink);
    text-decoration: none;
    padding: 0.55rem 0.7rem;
    border: 1px solid transparent;
    white-space: nowrap;
    line-height: 1;
}

body[data-aura-theme-wrapped="editorial-en"] .ed-account-link:hover,
body[data-aura-theme-wrapped="editorial-en"] .ed-account-link:focus-visible {
    border-color: var(--ed-ink);
}

body[data-aura-theme-wrapped="editorial-en"] .acms-theme-header__inner {
    display: contents;
}

body[data-aura-theme-wrapped="editorial-en"] .acms-theme-header .acms-theme-nav--desktop {
    position: static;
    right: auto;
    height: auto;
    display: block;
    width: 100%;
}

body[data-aura-theme-wrapped="editorial-en"] .acms-theme-header .acms-theme-nav--desktop .acms-theme-nav__list {
    justify-content: center;
    gap: 0 1.75rem;
    padding: 0.55rem 1.25rem 0.85rem;
}

body[data-aura-theme-wrapped="editorial-en"] .acms-theme-nav__link {
    position: relative;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ed-ink);
}

body[data-aura-theme-wrapped="editorial-en"] .acms-theme-nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0.1rem;
    width: 100%;
    height: 1px;
    background: var(--ed-ink);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.28s ease;
}

body[data-aura-theme-wrapped="editorial-en"] .acms-theme-nav__link:hover::after,
body[data-aura-theme-wrapped="editorial-en"] .acms-theme-nav__link:focus-visible::after {
    transform: scaleX(1);
}

body[data-aura-theme-wrapped="editorial-en"] .acms-theme-nav-toggle {
    display: none;
    border: 1px solid var(--ed-ink);
    width: 42px;
    height: 42px;
    flex-shrink: 0;
}

@media (max-width: 991px) {
    body[data-aura-theme-wrapped="editorial-en"] .ed-masthead__issue {
        display: none;
    }
    body[data-aura-theme-wrapped="editorial-en"] .ed-masthead__top {
        grid-template-columns: 1fr auto;
        min-height: 3.6rem;
    }
    body[data-aura-theme-wrapped="editorial-en"] .acms-theme-logo {
        justify-self: start;
        letter-spacing: 0.12em;
        font-size: 1.15rem;
    }
    body[data-aura-theme-wrapped="editorial-en"] .acms-theme-logo__img {
        width: 34px;
        height: 34px;
    }
    body[data-aura-theme-wrapped="editorial-en"] .acms-theme-nav-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }
    body[data-aura-theme-wrapped="editorial-en"] .acms-theme-header .acms-theme-nav--desktop {
        display: none !important;
    }
    body[data-aura-theme-wrapped="editorial-en"].acms-theme-nav-open {
        overflow: hidden;
    }
    body[data-aura-theme-wrapped="editorial-en"].acms-theme-nav-open .acms-pack-editorial-en.acms-theme-header {
        z-index: 50;
    }
    body[data-aura-theme-wrapped="editorial-en"] .acms-theme-nav-backdrop {
        position: fixed;
        inset: 0;
        z-index: 500;
    }
    body[data-aura-theme-wrapped="editorial-en"] .acms-theme-nav--drawer {
        display: flex !important;
        flex-direction: column;
        position: fixed !important;
        top: 0;
        right: 0;
        left: auto;
        bottom: 0;
        width: min(22rem, 88vw);
        height: 100dvh;
        max-height: 100dvh;
        z-index: 520;
        background: var(--ed-paper) !important;
        border-left: 1px solid var(--ed-ink);
        box-shadow: -16px 0 40px rgba(28, 25, 23, 0.16);
        transform: translateX(100%);
        transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
        padding: 0;
        font-family: var(--ed-serif);
    }
    body[data-aura-theme-wrapped="editorial-en"].acms-theme-nav-open .acms-theme-nav--drawer {
        transform: translateX(0);
    }
    body[data-aura-theme-wrapped="editorial-en"] .acms-theme-nav-drawer__head {
        border-bottom: 1px solid var(--ed-ink);
        padding: 1rem 1.25rem;
    }
    body[data-aura-theme-wrapped="editorial-en"] .acms-theme-nav-drawer__title {
        font-family: var(--ed-sans);
        font-size: 0.72rem;
        letter-spacing: 0.16em;
        text-transform: uppercase;
    }
    body[data-aura-theme-wrapped="editorial-en"] .acms-theme-nav-close {
        border: 1px solid var(--ed-ink);
        border-radius: 0;
        width: 40px;
        height: 40px;
    }
    body[data-aura-theme-wrapped="editorial-en"] .acms-theme-nav__link--stack {
        font-size: 1.45rem;
        letter-spacing: 0;
        text-transform: none;
        padding: 0.95rem 1.25rem;
        border-bottom: 1px solid var(--ed-line-soft);
    }
    body[data-aura-theme-wrapped="editorial-en"] .acms-theme-nav__link--stack::after {
        display: none;
    }
    body[data-aura-theme-wrapped="editorial-en"] .acms-theme-nav__link--account {
        font-weight: 600;
    }
    body[data-aura-theme-wrapped="editorial-en"] .ed-account-link {
        font-size: 0.65rem;
        letter-spacing: 0.12em;
        padding: 0.5rem 0.55rem;
    }
    .ed-hero {
        padding: 2.5rem 0 2rem;
    }
    .ed-band {
        padding: 2.25rem 0;
    }
    .ed-notes,
    .ed-shop-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* —— footer —— */
body[data-aura-theme-wrapped="editorial-en"] .acms-pack-editorial-en.acms-theme-footer {
    background: var(--ed-ink);
    color: var(--ed-on-dark);
    padding: 3.5rem 0 1.5rem;
    margin-top: 0;
}

body[data-aura-theme-wrapped="editorial-en"] .acms-pack-editorial-en .acms-theme-footer__heading,
body[data-aura-theme-wrapped="editorial-en"] .acms-pack-editorial-en .acms-theme-footer__brand,
body[data-aura-theme-wrapped="editorial-en"] .acms-pack-editorial-en .acms-theme-footer__link,
body[data-aura-theme-wrapped="editorial-en"] .acms-pack-editorial-en .acms-theme-footer__copy,
body[data-aura-theme-wrapped="editorial-en"] .acms-pack-editorial-en .acms-theme-footer__lead,
body[data-aura-theme-wrapped="editorial-en"] .acms-pack-editorial-en .acms-theme-footer__org-desc,
body[data-aura-theme-wrapped="editorial-en"] .acms-pack-editorial-en .acms-theme-footer__contact-item,
body[data-aura-theme-wrapped="editorial-en"] .acms-pack-editorial-en .acms-theme-footer__contact-item a {
    color: var(--ed-on-dark);
}

body[data-aura-theme-wrapped="editorial-en"] .acms-theme-footer__brand-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 0.75rem;
}

body[data-aura-theme-wrapped="editorial-en"] .acms-theme-footer__logo {
    display: block;
    width: 44px;
    height: 44px;
    object-fit: cover;
    border: 1px solid rgba(245, 245, 244, 0.35);
    background: var(--ed-paper);
    flex-shrink: 0;
}

body[data-aura-theme-wrapped="editorial-en"] .acms-theme-footer__brand {
    font-size: 1.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin: 0;
}

body[data-aura-theme-wrapped="editorial-en"] .acms-theme-footer__lead {
    font-family: var(--ed-serif);
    font-style: italic;
    font-size: 1.15rem;
    max-width: 22rem;
}

body[data-aura-theme-wrapped="editorial-en"] .acms-theme-footer__heading {
    font-family: var(--ed-sans);
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 600;
}

body[data-aura-theme-wrapped="editorial-en"] .ed-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.25rem;
}

body[data-aura-theme-wrapped="editorial-en"] .ed-social a,
body[data-aura-theme-wrapped="editorial-en"] .acms-theme-footer__social-link {
    display: inline-flex;
    width: 38px;
    height: 38px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(245, 245, 244, 0.45);
    border-radius: 0;
    background: transparent;
    color: var(--ed-on-dark);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

body[data-aura-theme-wrapped="editorial-en"] .ed-social a:hover,
body[data-aura-theme-wrapped="editorial-en"] .acms-theme-footer__social-link:hover {
    background: var(--ed-on-dark);
    border-color: var(--ed-on-dark);
    color: var(--ed-ink);
}

body[data-aura-theme-wrapped="editorial-en"] .ed-social a svg,
body[data-aura-theme-wrapped="editorial-en"] .acms-theme-footer__social-link svg {
    width: 16px;
    height: 16px;
    display: block;
    color: inherit;
}

body[data-aura-theme-wrapped="editorial-en"] .acms-theme-nav--drawer {
    background: var(--ed-paper) !important;
    font-family: var(--ed-serif);
}

body[data-aura-theme-wrapped="editorial-en"] .acms-theme-nav__link--stack {
    font-size: 1.35rem;
    letter-spacing: 0;
    text-transform: none;
}

body[data-aura-theme-wrapped="editorial-en"] .acms-cart-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--ed-muted);
}

body[data-aura-theme-wrapped="editorial-en"] .acms-cart-empty svg {
    display: block;
    margin: 0 auto 1rem;
}

body[data-aura-theme-wrapped="editorial-en"] .acms-theme-footer__bottom {
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(245, 245, 244, 0.18);
}

/* —— motion ——
 * Default: fade-in via .is-in (EdFx).
 * Must NOT rely on prefers-reduced-motion alone for visibility —
 * async-injected cards (blog/shop lists) would stay invisible on machines
 * without OS "reduce motion". CSS failsafe forces visible after 1.2s.
 */
[data-ed-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-ed-reveal].is-in {
    opacity: 1;
    transform: none;
}

/* Machine-agnostic failsafe: never leave content invisible forever */
[data-ed-reveal]:not(.is-in) {
    animation: ed-reveal-fallback 0.01s linear 1.2s forwards;
}

@keyframes ed-reveal-fallback {
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes ed-rule {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@keyframes ed-fade {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}

.ed-kicker {
    margin: 0 0 0.85rem;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ed-muted);
    font-weight: 500;
}

.ed-rule {
    height: 1px;
    background: var(--ed-ink);
    transform-origin: left;
    animation: ed-rule 0.9s ease both;
}

.ed-icon {
    display: inline-block;
    width: 1.05em;
    height: 1.05em;
    vertical-align: -0.15em;
    flex-shrink: 0;
}

.ed-back svg {
    width: 16px;
    height: 16px;
}

/* —— home —— */
.ed-home {
    background: var(--ed-paper);
}

.ed-hero {
    position: relative;
    padding: 4.5rem 0 3.25rem;
    overflow: hidden;
}

.ed-hero__grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.25rem;
    align-items: end;
}

.ed-hero__photo {
    margin: 2rem 0 0;
    overflow: hidden;
    border: 1px solid var(--ed-ink);
    background: var(--ed-cream);
}

.ed-hero__photo img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 480px;
    object-fit: cover;
    animation: ed-ken 22s ease-in-out infinite alternate;
}

@keyframes ed-ken {
    from { transform: scale(1.02); }
    to { transform: scale(1.09) translateY(-1.5%); }
}

.ed-hero h1 {
    margin: 0;
    font-family: var(--ed-serif);
    font-size: clamp(2.6rem, 7vw, 5.4rem);
    font-weight: 600;
    line-height: 0.96;
    letter-spacing: -0.035em;
    animation: ed-fade 1s ease both;
}

.ed-hero__lead {
    margin: 1.4rem 0 0;
    max-width: 28rem;
    font-size: 1.15rem;
    color: var(--ed-muted);
}

.ed-hero__aside {
    border-left: 1px solid var(--ed-ink);
    padding: 0.2rem 0 0.2rem 1.75rem;
}

.ed-hero__quote {
    margin: 0;
    font-family: var(--ed-serif);
    font-size: clamp(1.2rem, 2.2vw, 1.55rem);
    font-style: italic;
    line-height: 1.45;
}

.ed-hero__meta {
    margin: 1.25rem 0 0;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ed-muted);
}

.ed-band {
    padding: 3.25rem 0;
    border-top: 1px solid var(--ed-ink);
}

.ed-band--cream {
    background: var(--ed-paper-2);
}

.ed-band__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.ed-band__head h2 {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.ed-notes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.ed-note h3 {
    margin: 0 0 0.6rem;
    font-size: 1.35rem;
}

.ed-note p {
    margin: 0;
    color: var(--ed-muted);
}

.ed-note svg {
    width: 28px;
    height: 28px;
    margin-bottom: 0.85rem;
}

.ed-home-feature {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
    align-items: center;
}

.ed-home-feature__media {
    min-height: 280px;
    background:
        linear-gradient(135deg, #ede8df 0%, #d6d3d1 52%, #faf8f5 100%);
    border: 1px solid var(--ed-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.ed-home-feature__media svg {
    width: 46%;
    height: auto;
    opacity: 0.85;
}
.ed-home-feature__media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
}

.ed-home-feature h3 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    line-height: 1.15;
}

.ed-home-feature h3 a {
    color: inherit;
    text-decoration: none;
}

.ed-home-feature h3 a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.ed-story-list,
.ed-svc-list {
    display: flex;
    flex-direction: column;
}

.ed-story,
.ed-svc-card,
.ed-product-row {
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr);
    column-gap: 1rem;
    row-gap: 0.35rem;
    align-items: start;
    padding: 1.35rem 0;
    border-bottom: 1px solid var(--ed-line-soft);
    text-decoration: none;
    color: inherit;
    transition: background 0.25s ease, padding 0.25s ease;
}

.ed-story > div,
.ed-svc-card > div,
.ed-product-row > div {
    grid-column: 2;
    min-width: 0;
    overflow-wrap: anywhere;
}

.ed-story__thumb,
.ed-story__num,
.ed-product-row__num,
.ed-svc-card__num {
    grid-column: 1;
    justify-self: start;
}

.ed-story__thumb {
    display: block;
    width: 4.5rem;
    height: 4.5rem;
    max-width: 100%;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid var(--ed-ink);
    background: var(--ed-cream);
    box-sizing: border-box;
}

.ed-story__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.28);
    transition: filter 0.4s ease, transform 0.65s ease;
}

.ed-story:hover .ed-story__thumb img,
.ed-product-row:hover .ed-story__thumb img,
.ed-svc-card:hover .ed-story__thumb img {
    filter: none;
    transform: scale(1.07);
}

.ed-story:hover,
.ed-svc-card:hover,
.ed-product-row:hover {
    background: rgba(28, 25, 23, 0.03);
}

.ed-story__num,
.ed-svc-card__num,
.ed-product-row__num {
    font-family: var(--ed-serif);
    font-size: 1.35rem;
    color: var(--ed-muted);
}

.ed-story h3,
.ed-svc-card h3,
.ed-product-row h3 {
    margin: 0 0 0.35rem;
    font-size: 1.45rem;
}

.ed-story p,
.ed-svc-card p,
.ed-product-row p {
    margin: 0;
    color: var(--ed-muted);
}

.ed-shop-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.ed-cta {
    display: grid;
    grid-template-columns: 0.7fr 1.15fr auto;
    gap: 1.75rem;
    align-items: center;
}

.ed-cta__photo {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--ed-ink);
    background: var(--ed-cream);
    min-height: 160px;
}

.ed-cta__photo img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 160px;
    object-fit: cover;
}

.ed-cta h2 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.ed-ai {
    margin-top: 1.5rem;
}

@media (max-width: 860px) {
    .ed-hero__grid,
    .ed-home-feature,
    .ed-notes,
    .ed-shop-grid,
    .ed-cta,
    .ed-auth-layout {
        grid-template-columns: 1fr;
    }
    .ed-hero__aside {
        border-left: 0;
        border-top: 1px solid var(--ed-ink);
        padding: 1.25rem 0 0;
    }
}

/* —— blog —— */
body[data-aura-cms-page="blog-index"] #post-list.acms-post-grid,
body[data-aura-cms-page="blog-category"] #post-list.acms-post-grid,
body[data-aura-cms-page="blog-tag"] #post-list.acms-post-grid,
body[data-aura-cms-page="blog-index"] .acms-post-grid,
body[data-aura-cms-page="blog-category"] .acms-post-grid,
body[data-aura-cms-page="blog-tag"] .acms-post-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

body[data-aura-cms-page="blog-index"] .acms-post-card,
body[data-aura-cms-page="blog-category"] .acms-post-card,
body[data-aura-cms-page="blog-tag"] .acms-post-card,
body[data-aura-cms-page="blog-index"][data-aura-cms-root] .acms-post-card,
body[data-aura-cms-page="blog-category"][data-aura-cms-root] .acms-post-card,
body[data-aura-cms-page="blog-tag"][data-aura-cms-root] .acms-post-card {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.75rem 0;
    margin: 0;
    border: 0;
    border-bottom: 1px solid var(--ed-line-soft);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: hidden;
    transform: none;
}

body[data-aura-cms-page="blog-index"] .acms-post-card:hover,
body[data-aura-cms-page="blog-category"] .acms-post-card:hover,
body[data-aura-cms-page="blog-tag"] .acms-post-card:hover {
    transform: none;
    box-shadow: none;
}

body[data-aura-cms-page="blog-index"] .acms-post-card:first-child {
    flex-direction: column;
    padding-bottom: 2.5rem;
}

body[data-aura-cms-page="blog-index"] .acms-post-card:first-child .acms-post-card__title {
    font-size: clamp(2rem, 4.5vw, 3.1rem);
}

body[data-aura-cms-page="blog-index"] .acms-post-card:first-child .acms-post-card__media {
    flex: none;
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 220px;
    aspect-ratio: 16 / 7;
}

body[data-aura-cms-page="blog-index"] .acms-post-card__media,
body[data-aura-cms-page="blog-category"] .acms-post-card__media,
body[data-aura-cms-page="blog-tag"] .acms-post-card__media,
body[data-aura-cms-page="blog-index"][data-aura-cms-root] .acms-post-card__media,
body[data-aura-cms-page="blog-category"][data-aura-cms-root] .acms-post-card__media,
body[data-aura-cms-page="blog-tag"][data-aura-cms-root] .acms-post-card__media {
    display: block;
    flex: 0 0 200px;
    flex-shrink: 0;
    width: 200px;
    max-width: 200px;
    min-width: 0;
    height: 140px;
    min-height: 0;
    aspect-ratio: unset;
    align-self: flex-start;
    background: var(--ed-cream);
    border: 1px solid var(--ed-ink);
    overflow: hidden;
    box-sizing: border-box;
}

body[data-aura-cms-page="blog-index"] .acms-post-card__media .ed-placeholder,
body[data-aura-cms-page="blog-category"] .acms-post-card__media .ed-placeholder,
body[data-aura-cms-page="blog-tag"] .acms-post-card__media .ed-placeholder {
    width: 100%;
    height: 100%;
    min-height: 0;
}

body[data-aura-cms-page="blog-index"] .acms-post-card__media img,
body[data-aura-cms-page="blog-category"] .acms-post-card__media img,
body[data-aura-cms-page="blog-tag"] .acms-post-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

body[data-aura-cms-page="blog-index"] .acms-post-card:hover .acms-post-card__media img {
    transform: scale(1.04);
}

body[data-aura-cms-page="blog-index"] .acms-post-card__title a,
body[data-aura-cms-page="blog-category"] .acms-post-card__title a,
body[data-aura-cms-page="blog-tag"] .acms-post-card__title a {
    text-decoration: none;
    color: inherit;
}

body[data-aura-cms-page="blog-index"] .acms-post-card__title {
    font-size: 1.55rem;
    margin: 0 0 0.4rem;
}

body[data-aura-cms-page="blog-index"] .acms-post-card__body,
body[data-aura-cms-page="blog-category"] .acms-post-card__body,
body[data-aura-cms-page="blog-tag"] .acms-post-card__body {
    flex: 1 1 auto;
    padding: 0;
    min-width: 0;
}

body[data-aura-cms-page="blog-detail"] .acms-container,
body[data-aura-theme-wrapped="editorial-en"][data-aura-cms-page="blog-detail"] .acms-theme-main .acms-container {
    max-width: 800px;
    width: 100%;
}

body[data-aura-cms-page="blog-detail"] .acms-article,
body[data-aura-cms-page="blog-detail"] #article.acms-article {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    box-sizing: border-box;
}

body[data-aura-cms-page="blog-detail"] .acms-article__title {
    font-size: clamp(2.1rem, 5vw, 3.3rem);
    line-height: 1.12;
    margin: 0 0 1rem;
}

body[data-aura-cms-page="blog-detail"] .acms-article__lead {
    font-family: var(--ed-serif);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--ed-muted);
}

body[data-aura-cms-page="blog-detail"] .acms-article__content {
    font-family: var(--ed-serif);
    font-size: 1.125rem;
    line-height: 1.8;
}

body[data-aura-cms-page="blog-detail"] .acms-article__content p:first-of-type::first-letter {
    float: left;
    font-size: 4.2rem;
    line-height: 0.8;
    padding: 0.12em 0.12em 0 0;
    font-weight: 600;
}

body[data-aura-cms-page="blog-detail"] .acms-article__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1.25rem;
    font-size: 0.82rem;
    color: var(--ed-muted);
    margin-bottom: 1.5rem;
}

body[data-aura-cms-page="blog-detail"] .acms-article__meta svg {
    width: 14px;
    height: 14px;
    margin-right: 0.3rem;
}

body[data-aura-cms-page="blog-detail"] .acms-article__cover,
body[data-aura-cms-page="blog-detail"] .ed-inline-figure img,
body[data-aura-cms-entity="services"] .acms-article__image,
body[data-aura-cms-page^="custom-"] .acms-article__image {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
    border: 1px solid var(--ed-ink);
    margin-bottom: 1.75rem;
}

.ed-inline-figure {
    margin: 1.75rem 0;
    border: 1px solid var(--ed-ink);
    overflow: hidden;
}

.ed-inline-figure img {
    width: 100%;
    display: block;
}

.ed-page-figure {
    margin: 0 0 2.25rem;
    overflow: hidden;
    border: 1px solid var(--ed-ink);
    background: var(--ed-cream);
}

.ed-page-figure img {
    display: block;
    width: 100%;
    height: 280px;
    max-height: 420px;
    object-fit: cover;
}

/* —— shop —— */
body[data-aura-cms-page="shop-index"] .acms-product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.5rem;
}

body[data-aura-cms-page="shop-index"] .acms-product-card {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

body[data-aura-cms-page="shop-index"] .acms-product-card__media {
    aspect-ratio: 4 / 5;
    background: var(--ed-cream);
    border: 1px solid var(--ed-ink);
    margin-bottom: 0.9rem;
    overflow: hidden;
}

body[data-aura-cms-page="shop-index"] .acms-product-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

body[data-aura-cms-page="shop-index"] .acms-product-card:hover .acms-product-card__media img {
    transform: scale(1.05);
}

body[data-aura-cms-page="shop-index"] .acms-product-card__name {
    font-size: 1.4rem;
    margin: 0 0 0.25rem;
}

body[data-aura-cms-page="shop-index"] .acms-product-card__name a {
    color: inherit;
    text-decoration: none;
}

body[data-aura-cms-page="shop-index"] .acms-product-card__sku {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ed-muted);
}

body[data-aura-cms-page="shop-index"] .acms-price {
    font-family: var(--ed-serif);
    font-size: 1.15rem;
    margin: 0.35rem 0;
}

body[data-aura-cms-page="shop-detail"] .acms-product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

body[data-aura-cms-page="shop-detail"] .acms-gallery__main,
body[data-aura-cms-page="shop-detail"] .acms-gallery__empty {
    border: 1px solid var(--ed-ink);
    background: var(--ed-cream);
    min-height: 360px;
    object-fit: cover;
    width: 100%;
}

body[data-aura-cms-page="shop-detail"] .acms-product-info__title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin: 0 0 0.75rem;
}

body[data-aura-cms-page="shop-detail"] .acms-price--lg {
    font-family: var(--ed-serif);
    font-size: 1.6rem;
    margin: 0.75rem 0 1.25rem;
}

body[data-aura-cms-page="shop-detail"] .acms-qty,
[data-aura-cms-root] input.acms-field,
[data-aura-cms-root] textarea.acms-field,
[data-aura-cms-root] input[type="text"],
[data-aura-cms-root] input[type="email"],
[data-aura-cms-root] input[type="tel"],
[data-aura-cms-root] input[type="password"],
[data-aura-cms-root] input[type="number"],
[data-aura-cms-root] textarea {
    border-radius: 0;
    border: 1px solid var(--ed-ink);
    background: var(--ed-paper);
    font-family: var(--ed-sans);
}

body[data-aura-cms-page="shop-cart"] .acms-cart-layout,
body[data-aura-cms-page="shop-checkout"] .acms-cart-layout {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 2rem;
}

body[data-aura-cms-page="shop-cart"] .acms-cart-line,
body[data-aura-cms-page="shop-checkout"] .acms-cart-line {
    border: 0;
    border-bottom: 1px solid var(--ed-line-soft);
    border-radius: 0;
    background: transparent;
    padding: 1.1rem 0;
}

body[data-aura-cms-page="shop-cart"] .acms-checkout,
body[data-aura-cms-page="shop-checkout"] .acms-checkout {
    border: 1px solid var(--ed-ink);
    background: var(--ed-paper-2);
    border-radius: 0;
    padding: 1.5rem;
}

body[data-aura-cms-page="shop-order-success"] .ed-success {
    max-width: 38rem;
    margin: 0 auto;
    text-align: center;
    padding: 2.5rem 1rem 3rem;
}

body[data-aura-cms-page="shop-order-success"] .ed-success svg {
    width: 56px;
    height: 56px;
    margin-bottom: 1rem;
}

body[data-aura-cms-page="shop-order-success"] .ed-success__actions,
body[data-aura-cms-page="shop-order-success"] .ed-success > p:has(.acms-btn) {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    align-items: stretch;
    margin: 1rem 0 0;
}

body[data-aura-cms-page="shop-order-success"] .ed-success__actions .acms-btn,
body[data-aura-cms-page="shop-order-success"] .ed-success > p .acms-btn {
    margin: 0;
    box-sizing: border-box;
    flex: 1 1 auto;
    min-width: min(100%, 11rem);
}

@media (max-width: 640px) {
    body[data-aura-cms-page="shop-order-success"] .ed-success__actions,
    body[data-aura-cms-page="shop-order-success"] .ed-success > p:has(.acms-btn) {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
    }
    body[data-aura-cms-page="shop-order-success"] .ed-success__actions .acms-btn,
    body[data-aura-cms-page="shop-order-success"] .ed-success > p .acms-btn {
        width: 100%;
        min-width: 0;
        flex: none;
        display: inline-flex;
        justify-content: center;
    }
}

[data-aura-cms-root] .is-hidden,
body[data-aura-theme-wrapped] .is-hidden {
    display: none !important;
}

body[data-aura-cms-page="shop-checkout"] .acms-pay-methods {
    margin: 0.75rem 0 1rem;
    padding: 0.85rem 0 0;
    border-top: 1px solid var(--ed-line-soft);
}

body[data-aura-cms-page="shop-checkout"] .acms-pay-methods__label {
    margin: 0 0 0.55rem;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body[data-aura-cms-page="shop-checkout"] .acms-pay-option {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin: 0.35rem 0;
    font-size: 0.95rem;
}

body[data-aura-cms-page="shop-checkout"] .acms-cart-line {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

body[data-aura-cms-page="shop-checkout"] .acms-cart-line__sum {
    font-weight: 600;
    white-space: nowrap;
}

/* —— contact —— */
body[data-aura-cms-page="contact"] .acms-contact-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3rem;
    align-items: start;
}

body[data-aura-cms-page="contact"] .acms-contact-info {
    border-top: 1px solid var(--ed-ink);
    padding-top: 1.25rem;
}

body[data-aura-cms-page="contact"] .acms-contact-form-wrap {
    padding: 0;
    background: transparent;
    border: 0;
}

body[data-aura-cms-page="contact"] .acms-contact-form {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--ed-ink);
    padding: 1.75rem;
    background: var(--ed-paper-2);
}

body[data-aura-cms-page="contact"] .acms-contact-form .acms-field {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    width: 100%;
    margin: 0 0 1.15rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body[data-aura-cms-page="contact"] .acms-contact-form .acms-field > label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ed-ink);
}

body[data-aura-cms-page="contact"] .acms-contact-form .acms-field > input,
body[data-aura-cms-page="contact"] .acms-contact-form .acms-field > textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0.85rem 1rem;
    min-height: 2.85rem;
    border: 1px solid var(--ed-ink);
    border-radius: 0;
    background: var(--ed-paper);
    color: var(--ed-ink);
    font-family: var(--ed-sans);
    font-size: 1rem;
    line-height: 1.45;
}

body[data-aura-cms-page="contact"] .acms-contact-form .acms-field > textarea {
    min-height: 8.5rem;
    resize: vertical;
}

body[data-aura-cms-page="contact"] .acms-contact-form .acms-field > input:focus,
body[data-aura-cms-page="contact"] .acms-contact-form .acms-field > textarea:focus {
    outline: 1px solid var(--ed-ink);
    outline-offset: 2px;
}

body[data-aura-cms-page="contact"] .acms-contact-info__icon {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
}

body[data-aura-cms-page="contact"] .acms-contact-info__icon svg {
    width: 16px;
    height: 16px;
}

body[data-aura-cms-page="contact"] .acms-contact-social__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-right: 0.85rem;
    color: var(--ed-ink);
    text-decoration: none;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* —— account / status —— */
body[data-aura-cms-page="account-login"] .ed-auth-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
    max-width: 960px;
    margin: 0 auto;
}

body[data-aura-cms-page="account-login"] .ed-auth__photo {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--ed-ink);
    background: var(--ed-cream);
}

body[data-aura-cms-page="account-login"] .ed-auth__photo img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
}

body[data-aura-cms-page="account-login"] .ed-auth,
body[data-aura-cms-page="account-profile"] .ed-auth {
    max-width: 440px;
    margin: 0 auto;
    border: 1px solid var(--ed-ink);
    padding: 2rem 1.5rem;
    background: var(--ed-paper-2);
    box-sizing: border-box;
    overflow: hidden;
}

body[data-aura-cms-page="account-profile"] .ed-account-header,
body[data-aura-cms-page="account-orders"] .ed-account-header,
body[data-aura-cms-page="account-invoices"] .ed-account-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.85rem 1rem;
    min-width: 0;
}

body[data-aura-cms-page="account-profile"] .ed-account-header .acms-title,
body[data-aura-cms-page="account-orders"] .ed-account-header .acms-title,
body[data-aura-cms-page="account-invoices"] .ed-account-header .acms-title {
    margin: 0;
    min-width: 0;
}

body[data-aura-cms-page="account-profile"] .ed-account-nav,
body[data-aura-cms-page="account-orders"] .ed-account-nav,
body[data-aura-cms-page="account-invoices"] .ed-account-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-width: 0;
    max-width: 100%;
}

body[data-aura-cms-page="account-profile"] .ed-account-nav .acms-btn,
body[data-aura-cms-page="account-orders"] .ed-account-nav .acms-btn,
body[data-aura-cms-page="account-invoices"] .ed-account-nav .acms-btn {
    margin: 0;
    flex: 0 1 auto;
}

body[data-aura-cms-page="account-profile"] .acms-checkout-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

body[data-aura-cms-page="account-profile"] .acms-checkout-form .acms-field,
body[data-aura-cms-page="account-profile"] .acms-checkout-form .acms-btn {
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

@media (max-width: 640px) {
    body[data-aura-cms-page="account-profile"] .ed-account-header,
    body[data-aura-cms-page="account-orders"] .ed-account-header,
    body[data-aura-cms-page="account-invoices"] .ed-account-header {
        flex-direction: column;
        align-items: stretch;
    }
    body[data-aura-cms-page="account-profile"] .ed-account-nav,
    body[data-aura-cms-page="account-orders"] .ed-account-nav,
    body[data-aura-cms-page="account-invoices"] .ed-account-nav {
        width: 100%;
    }
    body[data-aura-cms-page="account-profile"] .ed-account-nav .acms-btn,
    body[data-aura-cms-page="account-orders"] .ed-account-nav .acms-btn,
    body[data-aura-cms-page="account-invoices"] .ed-account-nav .acms-btn {
        flex: 1 1 calc(50% - 0.5rem);
        justify-content: center;
        text-align: center;
        min-width: 0;
        padding-left: 0.65rem;
        padding-right: 0.65rem;
    }
}

body[data-aura-cms-page="account-login"] .ed-auth {
    max-width: none;
    margin: 0;
    min-width: 0;
}

body[data-aura-cms-page="account-login"] .ed-auth .acms-checkout-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

body[data-aura-cms-page="account-login"] .ed-auth .acms-checkout-form .acms-field,
body[data-aura-cms-page="account-login"] .ed-auth .acms-checkout-form .acms-btn {
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

body[data-aura-cms-page="account-login"] .ed-auth .acms-header {
    min-width: 0;
}

body[data-aura-cms-page="account-login"] .ed-auth .acms-subtitle {
    overflow-wrap: anywhere;
}

body[data-aura-cms-page="account-login"] hr {
    border: 0;
    border-top: 1px solid var(--ed-line-soft);
    margin: 1.75rem 0;
}

@media (max-width: 860px) {
    body[data-aura-cms-page="account-login"] .ed-auth-layout {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        max-width: 28rem;
    }
    body[data-aura-cms-page="account-login"] .ed-auth__photo {
        order: -1;
        max-height: 160px;
    }
    body[data-aura-cms-page="account-login"] .ed-auth__photo img {
        min-height: 160px;
        height: 160px;
    }
    body[data-aura-cms-page="account-login"] .ed-auth {
        padding: 1.35rem 1.1rem;
    }
}

body[data-aura-cms-page="maintenance"] .ed-status,
body[data-aura-cms-page="upgrade"] .ed-status {
    max-width: 36rem;
    margin: 4rem auto;
    text-align: center;
}

body[data-aura-cms-page="maintenance"] .ed-status svg,
body[data-aura-cms-page="upgrade"] .ed-status svg {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
}

body[data-aura-cms-page="maintenance"] .ed-status--photo,
body[data-aura-cms-page="upgrade"] .ed-status--photo {
    position: relative;
    overflow: hidden;
    padding: 3rem 1.5rem;
}

body[data-aura-cms-page="maintenance"] .ed-status--photo::before,
body[data-aura-cms-page="upgrade"] .ed-status--photo::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("image/home-desk.jpg") center / cover no-repeat;
    opacity: 0.16;
    pointer-events: none;
}

body[data-aura-cms-page="maintenance"] .ed-status--photo > *,
body[data-aura-cms-page="upgrade"] .ed-status--photo > * {
    position: relative;
}

/* —— custom entities / services —— */
body[data-aura-cms-page^="custom-"] .acms-post-grid,
body[data-aura-cms-entity="services"] .acms-post-grid {
    display: flex;
    flex-direction: column;
}

body[data-aura-cms-entity="services"] .acms-post-card,
body[data-aura-cms-page^="custom-"] .acms-post-card {
    display: grid;
    grid-template-columns: minmax(0, 160px) 1fr auto;
    gap: 1.25rem;
    align-items: start;
    padding: 1.4rem 0;
    border: 0;
    border-bottom: 1px solid var(--ed-line-soft);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body[data-aura-cms-entity="services"] .acms-post-card__media,
body[data-aura-cms-page^="custom-"] .acms-post-card__media {
    display: block;
    width: 160px;
    height: 112px;
    overflow: hidden;
    border: 1px solid var(--ed-ink);
    background: var(--ed-cream);
}

body[data-aura-cms-entity="services"] .acms-post-card__media img,
body[data-aura-cms-page^="custom-"] .acms-post-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

body[data-aura-cms-page^="custom-"] .acms-article,
body[data-aura-cms-entity="services"] .acms-article {
    max-width: 44rem;
    margin: 0 auto;
}

.ed-placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 0;
    align-items: center;
    justify-content: center;
    background: var(--ed-cream);
    color: var(--ed-ink);
}

.ed-placeholder svg {
    width: 42%;
    max-width: 180px;
    height: auto;
    opacity: 0.8;
}

@media (max-width: 860px) {
    body[data-aura-cms-page="blog-index"] .acms-post-card,
    body[data-aura-cms-page="blog-category"] .acms-post-card,
    body[data-aura-cms-page="blog-tag"] .acms-post-card,
    body[data-aura-cms-page="blog-index"][data-aura-cms-root] .acms-post-card,
    body[data-aura-cms-page="blog-category"][data-aura-cms-root] .acms-post-card,
    body[data-aura-cms-page="blog-tag"][data-aura-cms-root] .acms-post-card {
        display: grid;
        grid-template-columns: minmax(0, 96px) minmax(0, 1fr);
        flex-direction: unset;
        align-items: start;
        gap: 0.9rem;
        overflow: visible;
    }
    body[data-aura-cms-page="blog-index"] .acms-post-card__media,
    body[data-aura-cms-page="blog-category"] .acms-post-card__media,
    body[data-aura-cms-page="blog-tag"] .acms-post-card__media,
    body[data-aura-cms-page="blog-index"] .acms-post-card:first-child .acms-post-card__media,
    body[data-aura-cms-page="blog-index"][data-aura-cms-root] .acms-post-card__media,
    body[data-aura-cms-page="blog-category"][data-aura-cms-root] .acms-post-card__media,
    body[data-aura-cms-page="blog-tag"][data-aura-cms-root] .acms-post-card__media {
        width: 96px;
        max-width: 96px;
        min-width: 0;
        height: 72px;
        flex: none;
        aspect-ratio: unset;
    }
    body[data-aura-cms-page="blog-index"] .acms-post-card:first-child {
        grid-template-columns: 1fr;
    }
    body[data-aura-cms-page="blog-index"] .acms-post-card:first-child .acms-post-card__media {
        width: 100%;
        max-width: none;
        height: 180px;
    }
    body[data-aura-cms-page="blog-index"] .acms-post-card__body,
    body[data-aura-cms-page="blog-category"] .acms-post-card__body,
    body[data-aura-cms-page="blog-tag"] .acms-post-card__body {
        min-width: 0;
        overflow-wrap: anywhere;
    }
    body[data-aura-cms-page="shop-detail"] .acms-product-layout,
    body[data-aura-cms-page="shop-cart"] .acms-cart-layout,
    body[data-aura-cms-page="shop-checkout"] .acms-cart-layout,
    body[data-aura-cms-page="contact"] .acms-contact-layout,
    body[data-aura-cms-entity="services"] .acms-post-card,
    body[data-aura-cms-page^="custom-"] .acms-post-card {
        grid-template-columns: 1fr;
    }
    body[data-aura-cms-entity="services"] .acms-post-card__media,
    body[data-aura-cms-page^="custom-"] .acms-post-card__media {
        width: 100%;
        max-width: none;
        height: 160px;
    }
    body[data-aura-cms-page="blog-index"] .acms-post-card:first-child .acms-post-card__title {
        font-size: 1.85rem;
    }
    body[data-aura-cms-page="contact"] .acms-contact-form {
        padding: 1.15rem;
    }
    body[data-aura-cms-page="shop-index"] .acms-product-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
    .ed-story,
    .ed-svc-card,
    .ed-product-row {
        grid-template-columns: 3.75rem minmax(0, 1fr);
        column-gap: 0.85rem;
    }
    .ed-story__thumb {
        width: 3.75rem;
        height: 3.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    /* Optional softer motion — still always visible; not the only reveal path */
    [data-ed-reveal],
    [data-ed-reveal]:not(.is-in),
    .ed-hero h1,
    .ed-rule,
    body[data-aura-cms-page="shop-index"] .acms-product-card__media img,
    .ed-hero__photo img,
    .ed-story__thumb img {
        animation: none !important;
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}
