/* HOME UX RULES MOVED FROM THE OLD GLOBAL OVERRIDE FILE */

.home-hero { padding:74px 0 68px; }

.home-hero-showcase { grid-template-rows:minmax(430px,auto) auto; }

.home-hero-book-info { position:static !important; width:min(100%,620px) !important; margin:0 auto !important; padding:22px 26px !important; text-align:center !important; transform:none !important; }

.home-hero-book-info strong { display:block; margin:5px 0 7px; }

.home-hero-book-info p { max-width:560px; }

.home-hero-book-info a { display:inline-flex; align-items:center; gap:8px; }

@media (max-width:1180px) {
    .home-hero-grid { grid-template-columns:1fr 440px; gap:42px; }
}

@media (max-width:900px) {
    .home-hero-grid { grid-template-columns:1fr !important; }
    .home-hero-grid { gap:32px; }
    .home-hero-copy { text-align:center; }
    .home-hero-actions,
.home-hero-features { justify-content:center; }
    .home-hero-showcase { max-width:680px; margin-inline:auto; }
}

@media (max-width:640px) {
    .home-section { padding:54px 0; }
    .home-hero { padding:48px 0 44px; }
    .home-hero-copy h1 { font-size:clamp(2.5rem,13vw,4.4rem); }
    .home-hero-copy p { font-size:.95rem; }
    .home-hero-features { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; text-align:center; }
    .home-hero-feature { min-width:0; padding:10px 5px; }
    .home-hero-feature strong,
.home-hero-feature span { font-size:.67rem; }
    .home-hero-visual { min-height:310px !important; }
    .home-hero-showcase { grid-template-rows:minmax(310px,auto) auto; }
    .home-hero-book-info { padding:18px 14px !important; }
    .home-section-heading { align-items:flex-start; flex-direction:column; }
}

/* PAGE STYLES */

/* =========================================================
   HOME PAGE
   ========================================================= */

.home-page {
    overflow: hidden;
}

/* =========================================================
   HERO
   ========================================================= */

.home-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--color-border);
    background:
        radial-gradient(circle at 84% 24%, rgba(37, 223, 227, 0.12), transparent 30%),
        linear-gradient(125deg, #edf4f4 0%, #f8fbfb 48%, #ffffff 100%);
}

.home-hero::before {
    position: absolute;
    top: -160px;
    left: -180px;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(8, 127, 134, 0.12);
    border-radius: 50%;
    content: "";
}

.home-hero-grid {
    position: relative;
    display: grid;
    min-height: 570px;
    align-items: center;
    grid-template-columns: minmax(0, 1.03fr) minmax(420px, 0.97fr);
    gap: clamp(45px, 6vw, 90px);
    padding-top: 48px;
    padding-bottom: 48px;
}

.home-hero-copy {
    position: relative;
    z-index: 2;
}

.home-hero-copy h1 {
    max-width: 720px;
    margin: 17px 0 23px;
    color: var(--color-dark);
    font-size: clamp(48px, 5.6vw, 76px);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.07;
}

.home-hero-copy > p {
    max-width: 620px;
    margin: 0;
    color: var(--color-muted);
    font-size: 18px;
    line-height: 1.75;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 31px;
}

.home-hero-features {
    display: grid;
    max-width: 680px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 48px;
    border-top: 1px solid rgba(8, 127, 134, 0.18);
}

.home-hero-feature {
    min-width: 0;
    padding: 19px 19px 0 0;
}

.home-hero-feature + .home-hero-feature {
    padding-left: 19px;
    border-left: 1px solid rgba(8, 127, 134, 0.18);
}

.home-hero-feature strong,
.home-hero-feature span {
    display: block;
}

.home-hero-feature strong {
    margin-bottom: 3px;
    color: var(--color-dark);
    font-size: 13px;
}

.home-hero-feature span {
    color: var(--color-muted);
    font-size: 11px;
    line-height: 1.5;
}

.home-hero-showcase {
    display: grid;
    min-width: 0;
    align-content: center;
    justify-items: center;
    gap: 24px;
}

.home-hero-visual {
    position: relative;
    display: grid;
    width: 100%;
    min-height: 390px;
    place-items: center;
}

.home-hero-decoration {
    position: absolute;
    width: min(460px, 92%);
    aspect-ratio: 1;
    border: 1px solid rgba(8, 127, 134, 0.2);
    border-radius: 50%;
}

.home-hero-decoration::before,
.home-hero-decoration::after {
    position: absolute;
    border-radius: 50%;
    content: "";
}

.home-hero-decoration::before {
    inset: 40px;
    border: 1px solid rgba(8, 127, 134, 0.12);
}

.home-hero-decoration::after {
    inset: 92px;
    background: rgba(255, 255, 255, 0.45);
}

.home-hero-books {
    position: relative;
    z-index: 2;
    min-width: 0;
    align-items: center;
    justify-content: center;
}

.home-hero-book {
    position: relative;
    display: block;
    width: clamp(150px, 14vw, 205px);
    flex: 0 0 auto;
    opacity: 0.78;
    filter: grayscale(0.12) drop-shadow(0 20px 18px rgba(38, 55, 70, 0.2));
    transform-origin: center bottom;
    transition: transform 0.45s ease, opacity 0.35s ease, filter 0.45s ease;
}

.home-hero-book img {
    width: 100%;
    max-height: 315px;
    object-fit: contain;
}

.home-hero-book:nth-child(1) {
    transform: rotate(-7deg) translateX(43px);
}

.home-hero-book:nth-child(2) {
    z-index: 3;
    transform: translateY(-18px);
}

.home-hero-book:nth-child(3) {
    transform: rotate(7deg) translateX(-43px);
}

.home-hero-book.is-active {
    z-index: 5;
    opacity: 1;
    filter: grayscale(0) drop-shadow(0 29px 25px rgba(38, 55, 70, 0.29));
}

.home-hero-book:nth-child(1).is-active {
    transform: rotate(-7deg) translateX(43px) scale(1.07);
}

.home-hero-book:nth-child(2).is-active {
    transform: translateY(-18px) scale(1.07);
}

.home-hero-book:nth-child(3).is-active {
    transform: rotate(7deg) translateX(-43px) scale(1.07);
}

.home-hero-book-info {
    position: relative;
    z-index: 4;
    width: min(430px, 100%);
    padding: 19px 22px;
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-primary-dark);
    border-radius: 0 16px 16px 0;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 15px 35px rgba(38, 55, 70, 0.11);
    text-align: center;
}

.home-hero-book-info > span,
.home-hero-book-info strong,
.home-hero-book-info a {
    display: block;
}

.home-hero-book-info > span {
    margin-bottom: 4px;
    color: var(--color-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-hero-book-info strong {
    margin-bottom: 7px;
    color: var(--color-dark);
    font-family: var(--font-serif);
    font-size: 17px;
    line-height: 1.4;
}

.home-hero-book-info p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 10px;
    color: var(--color-muted);
    font-size: 12px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-hero-book-info a {
    color: var(--color-primary-dark);
    font-size: 12px;
    font-weight: 800;
}

.home-hero-book-info.is-refreshing {
    animation: featured-book-info-refresh 0.42s ease both;
}

@keyframes featured-book-info-refresh {
    0% { opacity: 1; transform: translateY(0); }
    42% { opacity: 0.25; transform: translateY(4px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   COMMON SECTIONS
   ========================================================= */

.home-section {
    padding: 82px 0;
}

.home-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 35px;
    margin-bottom: 40px;
}

.home-section-heading > div {
    min-width: 0;
}

.home-section-heading h2 {
    margin: 8px 0 11px;
    color: var(--color-dark);
    font-size: clamp(33px, 4vw, 49px);
    letter-spacing: -0.025em;
    line-height: 1.16;
}

.home-section-heading p {
    max-width: 620px;
    margin: 0;
    color: var(--color-muted);
    font-size: 15px;
    line-height: 1.7;
}

.home-section-link {
    display: inline-flex;
    min-height: 42px;
    flex: 0 0 auto;
    align-items: center;
    gap: 9px;
    padding-bottom: 3px;
    border-bottom: 2px solid var(--color-primary);
    color: var(--color-dark);
    font-size: 13px;
    font-weight: 700;
    transition: color 0.2s ease, gap 0.2s ease;
}

.home-section-link:hover {
    gap: 13px;
    color: var(--color-primary-dark);
}

/* =========================================================
   BOOKS + BOOK OF THE WEEK
   ========================================================= */

.home-books-section {
    background: #ffffff;
}

.home-book-week-banner {
    position: relative;
    display: grid;
    min-width: 0;
    align-items: center;
    grid-template-columns: minmax(210px, 0.36fr) minmax(0, 0.64fr);
    gap: clamp(36px, 5.5vw, 76px);
    overflow: hidden;
    margin-bottom: 42px;
    padding: clamp(34px, 4.5vw, 56px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    background:
        radial-gradient(circle at 88% 12%, rgba(37, 223, 227, 0.28), transparent 30%),
        linear-gradient(125deg, #102f32 0%, #075e64 54%, #087f86 100%);
    box-shadow: 0 28px 70px rgba(18, 45, 48, 0.24);
}

.home-book-week-banner::after {
    position: absolute;
    right: 24px;
    bottom: -24px;
    color: rgba(255, 255, 255, 0.055);
    font-family: var(--font-serif);
    font-size: clamp(68px, 8vw, 128px);
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 0.9;
    pointer-events: none;
    white-space: nowrap;
}

.home-book-week-decoration {
    position: absolute;
    top: -115px;
    right: -75px;
    width: 340px;
    height: 340px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 50%;
}

.home-book-week-decoration::before {
    position: absolute;
    inset: 52px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: inherit;
    content: "";
}

.home-book-week-cover,
.home-book-week-content {
    position: relative;
    z-index: 2;
}

.home-book-week-cover {
    display: grid;
    width: min(245px, 100%);
    margin: 0 auto;
    padding: 0;
    aspect-ratio: 0.72;
    place-items: center;
    overflow: hidden;
    border: 0;
    border-radius: 5px 13px 13px 5px;
    background: transparent;
    box-shadow: 20px 28px 48px rgba(3, 25, 28, 0.38);
    transform: rotate(-1.5deg);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-book-week-cover:hover {
    box-shadow: 24px 34px 56px rgba(3, 25, 28, 0.44);
    transform: rotate(0) translateY(-6px) scale(1.015);
}

.home-book-week-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.home-book-week-content {
    max-width: 720px;
}

.home-book-week-heading {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 20px;
}

.home-book-week-heading span {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    padding: 9px 16px;
    border-radius: 999px;
    background: #25dfe3;
    box-shadow: 0 8px 22px rgba(37, 223, 227, 0.24);
    color: #073f43;
    font-size: 14px;
    font-weight: 950;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-book-week-heading small {
    color: #c8e5e7;
    font-size: 12px;
    font-weight: 700;
}

.home-book-week-author {
    color: #8df3f5;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.home-book-week-content h3 {
    margin: 10px 0 16px;
    font-size: clamp(36px, 4.5vw, 58px);
    letter-spacing: -0.035em;
    line-height: 1.05;
}

.home-book-week-content h3 a {
    color: #ffffff;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}

.home-book-week-content p {
    display: -webkit-box;
    max-width: 670px;
    overflow: hidden;
    margin: 0;
    color: #d7eaeb;
    font-size: 15px;
    line-height: 1.8;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.home-book-week-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 24px;
    padding: 0 0 5px;
    border-bottom: 2px solid #25dfe3;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    transition: color 0.2s ease, gap 0.2s ease, border-color 0.2s ease;
}

.home-book-week-link:hover {
    gap: 14px;
    border-color: #ffffff;
    color: #8df3f5;
}

.home-book-grid {
    display: grid;
    gap: 24px 18px;
    align-items: stretch;
}

.home-book-grid--latest {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-book-grid .book-card {
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    border-radius: 14px;
}

.home-book-grid .book-card-cover-wrapper {
    padding: 12px;
}

.home-book-grid .book-meta {
    padding: 14px;
}

.home-book-grid .book-card-promotions {
    margin-top: 7px;
}

.home-book-grid .book-card-promotions a {
    padding: 5px 7px;
}

.home-book-grid .book-meta h3 {
    margin: 8px 0 7px;
    font-size: 15px;
}

.home-book-grid .book-card-description {
    margin-bottom: 12px;
    font-size: 11px;
    line-height: 1.5;
    -webkit-line-clamp: 2;
}

.home-book-grid .book-card-footer {
    gap: 8px;
    padding-top: 11px;
}

.home-book-grid .book-card-price strong {
    font-size: 13px;
}

.home-book-grid .add-to-cart {
    min-width: 92px;
    min-height: 36px;
    padding: 7px 10px;
    font-size: 10px;
}

/* =========================================================
   MAGAZINE + NEWS
   ========================================================= */

.home-editorial-section {
    background: linear-gradient(180deg, var(--color-surface) 0%, #ffffff 100%);
}

.home-editorial-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
}

.home-editorial-panel {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: clamp(26px, 3vw, 38px);
    border: 1px solid var(--color-border);
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(36, 52, 54, 0.09);
}

.home-editorial-panel--magazine {
    border-color: rgba(255, 255, 255, 0.16);
    background: linear-gradient(125deg, #159ca3, #087f86);
    color: #ffffff;
}

.home-editorial-panel--news {
    border-color: rgba(255, 255, 255, 0.12);
    background:
        radial-gradient(circle at 100% 0%, rgba(37, 223, 227, 0.18), transparent 35%),
        linear-gradient(145deg, #263d40, #075e64);
    color: #ffffff;
}

.home-editorial-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 25px;
}

.home-editorial-header > div {
    min-width: 0;
}

.home-editorial-header h2 {
    margin: 7px 0 9px;
    font-size: clamp(29px, 3.2vw, 42px);
    line-height: 1.18;
}

.home-editorial-header p {
    max-width: 470px;
    margin: 0;
    color: var(--color-muted);
    font-size: 13px;
    line-height: 1.65;
}

.home-editorial-all-link {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    padding-bottom: 3px;
    border-bottom: 2px solid var(--color-primary-dark);
    color: var(--color-primary-dark);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.home-editorial-panel--news .eyebrow,
.home-editorial-panel--news .home-editorial-header p {
    color: #c7dcdd;
}

.home-editorial-panel--news .home-editorial-all-link {
    border-color: var(--color-primary);
    color: #ffffff;
}

.home-editorial-rotator {
    display: grid;
    margin-top: auto;
    overflow: hidden;
    border: 1px solid rgba(8, 127, 134, 0.18);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.58);
}

.home-editorial-panel--news .home-editorial-rotator {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
}

.home-editorial-card {
    min-width: 0;
}

.home-editorial-card + .home-editorial-card {
    border-top: 1px solid rgba(8, 127, 134, 0.16);
}

.home-editorial-panel--news .home-editorial-card + .home-editorial-card {
    border-color: rgba(255, 255, 255, 0.14);
}

.home-editorial-card-summary {
    display: grid;
    width: 100%;
    min-width: 0;
    align-items: center;
    grid-template-columns: 32px 82px minmax(0, 1fr) 22px;
    gap: 11px;
    padding: 15px 17px;
    border: 0;
    background: transparent;
    color: var(--color-dark);
    cursor: pointer;
    text-align: left;
    transition: background-color 0.2s ease, padding 0.2s ease;
}

.home-editorial-card-summary:hover,
.home-editorial-card-summary:focus-visible {
    background: rgba(255, 255, 255, 0.58);
}

.home-editorial-card-summary:focus-visible {
    outline: 2px solid var(--color-primary-dark);
    outline-offset: -2px;
}

.home-editorial-card.is-active .home-editorial-card-summary {
    background: rgba(255, 255, 255, 0.82);
}

.home-editorial-panel--news .home-editorial-card-summary {
    color: #ffffff;
}

.home-editorial-panel--news .home-editorial-card-summary:hover,
.home-editorial-panel--news .home-editorial-card-summary:focus-visible,
.home-editorial-panel--news .home-editorial-card.is-active .home-editorial-card-summary {
    background: rgba(255, 255, 255, 0.1);
}

.home-editorial-panel--news .home-editorial-card-summary:focus-visible {
    outline-color: var(--color-primary);
}

.home-editorial-card-number {
    color: var(--color-primary-dark);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.home-editorial-card-summary time {
    color: var(--color-muted);
    font-size: 10px;
    font-weight: 700;
}

.home-editorial-card-title {
    min-width: 0;
    font-family: var(--font-serif);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

.home-editorial-card-arrow {
    color: var(--color-primary-dark);
    font-size: 15px;
    text-align: right;
    transition: transform 0.25s ease;
}

.home-editorial-card.is-active .home-editorial-card-arrow {
    transform: rotate(90deg);
}

.home-editorial-panel--news .home-editorial-card-number,
.home-editorial-panel--news .home-editorial-card-arrow {
    color: var(--color-primary);
}

.home-editorial-panel--news .home-editorial-card-summary time {
    color: #b8d0d1;
}

.home-editorial-card-body {
    display: grid;
    overflow: hidden;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 0.42s ease, opacity 0.3s ease;
}

.home-editorial-card-body > div {
    min-height: 0;
    overflow: hidden;
}

.home-editorial-card.is-active .home-editorial-card-body {
    grid-template-rows: 1fr;
    opacity: 1;
}

.home-editorial-card-link {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(150px, 0.86fr) minmax(0, 1.14fr);
    border-top: 1px solid rgba(8, 127, 134, 0.14);
    background: rgba(255, 255, 255, 0.76);
}

.home-editorial-card-link:focus-visible {
    outline: 2px solid var(--color-primary-dark);
    outline-offset: -2px;
}

.home-editorial-panel--news .home-editorial-card-link {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
}

.home-editorial-panel--news .home-editorial-card-link:focus-visible {
    outline-color: var(--color-primary);
}

.home-editorial-card-image {
    display: grid;
    min-height: 190px;
    overflow: hidden;
    place-items: center;
    padding: 12px;
    background:
        linear-gradient(145deg, rgba(37, 223, 227, 0.2), rgba(8, 127, 134, 0.08)),
        #eefafa;
}

.home-editorial-card-image img {
    width: 100%;
    height: 100%;
}

.home-editorial-card-image span {
    max-width: 170px;
    color: var(--color-primary-dark);
    font-family: var(--font-serif);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.11em;
    line-height: 1.5;
    text-align: center;
}

.home-editorial-panel--news .home-editorial-card-image {
    background:
        linear-gradient(145deg, rgba(37, 223, 227, 0.3), rgba(8, 127, 134, 0.16)),
        #dff8f8;
}

.home-editorial-card-content {
    display: flex;
    min-width: 0;
    justify-content: center;
    flex-direction: column;
    padding: 22px;
}

.home-editorial-card-content p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 15px;
    color: var(--color-muted);
    font-size: 12px;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.home-editorial-card-content strong {
    color: var(--color-primary-dark);
    font-size: 11px;
}

.home-editorial-panel--news .home-editorial-card-content p,
.home-editorial-panel--news .home-editorial-card-content strong {
    color: #d8ebec;
}

.home-editorial-empty {
    display: grid;
    min-height: 260px;
    place-items: center;
    border: 1px dashed rgba(8, 127, 134, 0.28);
    border-radius: 16px;
    color: var(--color-muted);
    text-align: center;
}

.home-editorial-panel--news .home-editorial-empty {
    border-color: rgba(255, 255, 255, 0.2);
    color: #c7dcdd;
}

/* Magazine panel uses the same teal palette as the newsletter. */

.home-editorial-panel--magazine .eyebrow,
.home-editorial-panel--magazine .home-editorial-header p {
    color: #d9feff;
}

.home-editorial-panel--magazine .home-editorial-all-link {
    border-color: #d9feff;
    color: #ffffff;
}

.home-editorial-panel--magazine .home-editorial-rotator {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
}

.home-editorial-panel--magazine .home-editorial-card + .home-editorial-card {
    border-color: rgba(255, 255, 255, 0.15);
}

.home-editorial-panel--magazine .home-editorial-card-summary {
    color: #ffffff;
}

.home-editorial-panel--magazine .home-editorial-card-summary:hover,
.home-editorial-panel--magazine .home-editorial-card-summary:focus-visible,
.home-editorial-panel--magazine .home-editorial-card.is-active .home-editorial-card-summary {
    background: rgba(255, 255, 255, 0.12);
}

.home-editorial-panel--magazine .home-editorial-card-summary:focus-visible {
    outline-color: #d9feff;
}

.home-editorial-panel--magazine .home-editorial-card-number,
.home-editorial-panel--magazine .home-editorial-card-arrow {
    color: #d9feff;
}

.home-editorial-panel--magazine .home-editorial-card-summary time {
    color: #c8e8e9;
}

.home-editorial-panel--magazine .home-editorial-card-link {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
}

.home-editorial-panel--magazine .home-editorial-card-link:focus-visible {
    outline-color: #d9feff;
}

.home-editorial-panel--magazine .home-editorial-card-content p,
.home-editorial-panel--magazine .home-editorial-card-content strong {
    color: #e1f5f6;
}

.home-editorial-panel--magazine .home-editorial-empty {
    border-color: rgba(255, 255, 255, 0.22);
    color: #d9feff;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1050px) {
    .home-hero-grid {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 42px;
        padding-top: 40px;
        padding-bottom: 42px;
    }

    .home-hero-copy {
        max-width: 790px;
        margin: 0 auto;
        text-align: center;
    }

    .home-hero-copy > p {
        margin-right: auto;
        margin-left: auto;
    }

    .home-hero-actions {
        justify-content: center;
    }

    .home-hero-features {
        margin-right: auto;
        margin-left: auto;
    }

    .home-hero-showcase {
        width: min(700px, 100%);
        margin: 0 auto;
    }

    .home-hero-visual {
        min-height: 360px;
    }

    .home-book-week-banner {
        grid-template-columns: minmax(180px, 0.32fr) minmax(0, 0.68fr);
        gap: 38px;
        padding: 34px;
    }

    .home-book-week-cover {
        width: min(205px, 100%);
    }

    .home-editorial-card-link {
        grid-template-columns: 1fr;
    }

    .home-editorial-card-image {
        min-height: 185px;
    }
}

@media (max-width: 820px) {
    .home-section {
        padding: 66px 0;
    }

    .home-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
        margin-bottom: 30px;
    }

    .home-section-link {
        min-height: auto;
    }

    .home-book-week-banner {
        grid-template-columns: minmax(170px, 0.38fr) minmax(0, 0.62fr);
        gap: 28px;
        padding: 30px;
    }

    .home-book-week-cover {
        width: min(190px, 100%);
    }

    .home-book-week-content h3 {
        font-size: clamp(29px, 5.5vw, 42px);
    }

    .home-book-grid--latest {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 18px;
    }

    .home-editorial-grid {
        grid-template-columns: 1fr;
    }

    .home-editorial-card-link {
        grid-template-columns: minmax(145px, 0.82fr) minmax(0, 1.18fr);
    }
}

@media (max-width: 600px) {
    .home-hero-grid {
        gap: 30px;
        padding-top: 28px;
        padding-bottom: 32px;
    }

    .home-hero-copy h1 {
        margin-top: 13px;
        margin-bottom: 18px;
        font-size: clamp(37px, 11vw, 48px);
        letter-spacing: -0.04em;
        line-height: 1.08;
    }

    .home-hero-copy > p {
        font-size: 15px;
        line-height: 1.7;
    }

    .home-hero-actions {
        align-items: stretch;
        flex-direction: column;
        margin-top: 25px;
    }

    .home-hero-actions .btn {
        width: 100%;
    }

    .home-hero-features {
        grid-template-columns: 1fr;
        margin-top: 30px;
    }

    .home-hero-feature {
        padding: 14px 0;
        border-bottom: 1px solid rgba(8, 127, 134, 0.18);
    }

    .home-hero-feature + .home-hero-feature {
        padding-left: 0;
        border-left: 0;
    }

    .home-hero-showcase {
        gap: 18px;
    }

    .home-hero-visual {
        min-height: 250px;
    }

    .home-hero-decoration {
        width: 270px;
    }

    .home-hero-decoration::before {
        inset: 28px;
    }

    .home-hero-decoration::after {
        inset: 65px;
    }

    .home-hero-book {
        width: clamp(92px, 29vw, 125px);
    }

    .home-hero-book img {
        max-height: 205px;
    }

    .home-hero-book:nth-child(1),
    .home-hero-book:nth-child(1).is-active {
        transform: rotate(-6deg) translateX(21px);
    }

    .home-hero-book:nth-child(2),
    .home-hero-book:nth-child(2).is-active {
        transform: translateY(-9px);
    }

    .home-hero-book:nth-child(3),
    .home-hero-book:nth-child(3).is-active {
        transform: rotate(6deg) translateX(-21px);
    }

    .home-hero-book-info {
        width: 100%;
        padding: 16px;
        border-radius: 0 14px 14px 0;
    }

    .home-section {
        padding: 52px 0;
    }

    .home-section-heading {
        margin-bottom: 25px;
    }

    .home-section-heading h2 {
        font-size: 32px;
    }

    .home-section-heading p {
        font-size: 14px;
    }

    .home-book-week-banner {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 28px;
        padding: 26px 20px 28px;
        text-align: center;
    }

    .home-book-week-banner::after {
        display: none;
    }

    .home-book-week-cover {
        width: min(190px, 72%);
    }

    .home-book-week-content {
        max-width: 520px;
        margin: 0 auto;
    }

    .home-book-week-heading {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px 11px;
    }

    .home-book-week-content h3 {
        font-size: 30px;
    }

    .home-book-week-content p {
        margin-right: auto;
        margin-left: auto;
        font-size: 13px;
        line-height: 1.65;
        -webkit-line-clamp: 5;
    }

    .home-book-grid--latest {
        grid-template-columns: minmax(0, 320px);
        justify-content: center;
        gap: 20px;
    }

    .home-book-grid .book-card-footer {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
    }

    .home-book-grid .add-to-cart {
        width: auto;
    }

    .home-editorial-panel {
        padding: 23px 18px;
        border-radius: 17px;
    }

    .home-editorial-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 13px;
        margin-bottom: 20px;
    }

    .home-editorial-header h2 {
        font-size: 31px;
    }

    .home-editorial-card-summary {
        grid-template-columns: 27px minmax(0, 1fr) 20px;
        gap: 9px;
        padding: 14px 13px;
    }

    .home-editorial-card-summary {
        grid-template-rows: auto auto;
    }

    .home-editorial-card-number {
        grid-column: 1;
        grid-row: 1 / 3;
        align-self: center;
    }

    .home-editorial-card-summary time {
        grid-column: 2;
        grid-row: 1;
        margin: 0 0 3px;
    }

    .home-editorial-card-title {
        grid-column: 2;
        grid-row: 2;
        font-size: 14px;
    }

    .home-editorial-card-arrow {
        grid-column: 3;
        grid-row: 1 / 3;
        align-self: center;
    }

    .home-editorial-card-link {
        grid-template-columns: 1fr;
    }

    .home-editorial-card-image {
        min-height: 170px;
        aspect-ratio: 16 / 10;
        padding: 10px;
    }

    .home-editorial-card-image img {
        max-height: 190px;
    }

    .home-editorial-card-content {
        padding: 18px;
    }
}

@media (max-width: 420px) {
    .home-hero-copy h1 {
        font-size: 36px;
    }

    .home-hero-visual {
        min-height: 220px;
    }

    .home-hero-decoration {
        width: 235px;
    }

    .home-hero-book {
        width: 94px;
    }

    .home-book-week-banner {
        padding: 23px 16px 25px;
        border-radius: 17px;
    }

    .home-book-week-cover {
        width: min(175px, 70%);
    }

    .home-book-week-heading {
        flex-direction: column;
    }

    .home-book-week-content h3 {
        font-size: 27px;
    }

    .home-book-grid--latest {
        grid-template-columns: minmax(0, 290px);
        gap: 18px;
    }

    .home-book-grid .book-card-footer {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
    }

    .home-book-grid .add-to-cart {
        width: auto;
        flex-shrink: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero-book,
    .home-hero-book-info,
    .home-editorial-card-body,
    .home-editorial-card-arrow,
    .home-editorial-card-summary,
    .home-section-link,
    .home-book-week-cover,
    .home-book-week-link {
        transition: none;
        animation: none;
    }
}

/* =========================================================
   FEATURED BOOK GROUP ROTATION
   ========================================================= */

.home-hero-visual.has-group-navigation {
    padding-bottom: 48px;
}

.home-hero-books {
    display: grid;
    width: 100%;
    place-items: center;
}

.home-hero-book-group {
    grid-area: 1 / 1;
    display: flex;
    width: 100%;
    min-width: 0;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(28px) scale(0.97);
    transition: opacity 0.38s ease, transform 0.48s ease, visibility 0.48s ease;
}

.home-hero-book-group.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0) scale(1);
}

.home-hero-book-group[data-book-count="1"] .home-hero-book {
    width: clamp(180px, 17vw, 225px);
}

.home-hero-book-group[data-book-count="1"] .home-hero-book:nth-child(1),
.home-hero-book-group[data-book-count="1"] .home-hero-book:nth-child(1):hover {
    transform: translateY(-12px);
}

.home-hero-book-group[data-book-count="1"] .home-hero-book:nth-child(1).is-active,
.home-hero-book-group[data-book-count="1"] .home-hero-book:nth-child(1).is-active:hover {
    transform: translateY(-12px) scale(1.07);
}

.home-hero-book-group[data-book-count="2"] .home-hero-book {
    width: clamp(165px, 15vw, 205px);
}

.home-hero-book-group[data-book-count="2"] .home-hero-book:nth-child(1),
.home-hero-book-group[data-book-count="2"] .home-hero-book:nth-child(1):hover {
    transform: rotate(-6deg) translateX(12px);
}

.home-hero-book-group[data-book-count="2"] .home-hero-book:nth-child(2),
.home-hero-book-group[data-book-count="2"] .home-hero-book:nth-child(2):hover {
    transform: rotate(6deg) translateX(-12px);
}

.home-hero-book-group[data-book-count="2"] .home-hero-book:nth-child(1).is-active,
.home-hero-book-group[data-book-count="2"] .home-hero-book:nth-child(1).is-active:hover {
    transform: rotate(-6deg) translateX(12px) scale(1.07);
}

.home-hero-book-group[data-book-count="2"] .home-hero-book:nth-child(2).is-active,
.home-hero-book-group[data-book-count="2"] .home-hero-book:nth-child(2).is-active:hover {
    transform: rotate(6deg) translateX(-12px) scale(1.07);
}

.home-hero-group-navigation {
    position: absolute;
    bottom: 0;
    left: 50%;
    z-index: 9;
    display: flex;
    max-width: calc(100% - 16px);
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 5px 8px;
    border: 1px solid rgba(62, 95, 123, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 28px rgba(38, 55, 70, 0.12);
    transform: translateX(-50%);
    backdrop-filter: blur(8px);
}

.home-hero-group-arrow,
.home-hero-group-dot {
    border: 0;
    cursor: pointer;
}

.home-hero-group-arrow {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: transparent;
    color: var(--color-primary-dark);
    font-size: 16px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.home-hero-group-arrow:hover,
.home-hero-group-arrow:focus-visible {
    background: var(--color-primary-dark);
    color: #fff;
    transform: scale(1.05);
}

.home-hero-group-dots {
    display: flex;
    max-width: min(180px, 35vw);
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    padding: 4px 2px;
    scrollbar-width: none;
}

.home-hero-group-dots::-webkit-scrollbar {
    display: none;
}

.home-hero-group-dot {
    position: relative;
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    place-items: center;
    padding: 0;
    border-radius: 999px;
    background: transparent;
}

.home-hero-group-dot::before {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: rgba(62, 95, 123, 0.38);
    content: "";
    transition: width 0.25s ease, background 0.25s ease;
}

.home-hero-group-dot.is-active::before {
    width: 22px;
    background: var(--color-primary-dark);
}

.home-hero-group-dot:focus-visible {
    outline: 2px solid var(--color-primary-dark);
    outline-offset: 1px;
}

@media (max-width: 640px) {
    .home-hero-visual.has-group-navigation {
        padding-bottom: 44px;
    }

    .home-hero-book-group[data-book-count="1"] .home-hero-book {
        width: clamp(125px, 38vw, 155px);
    }

    .home-hero-book-group[data-book-count="2"] .home-hero-book {
        width: clamp(105px, 31vw, 135px);
    }

    .home-hero-book-group[data-book-count="2"] .home-hero-book:nth-child(1),
    .home-hero-book-group[data-book-count="2"] .home-hero-book:nth-child(1):hover {
        transform: rotate(-5deg) translateX(7px);
    }

    .home-hero-book-group[data-book-count="2"] .home-hero-book:nth-child(2),
    .home-hero-book-group[data-book-count="2"] .home-hero-book:nth-child(2):hover {
        transform: rotate(5deg) translateX(-7px);
    }

    .home-hero-book-group[data-book-count="2"] .home-hero-book:nth-child(1).is-active,
    .home-hero-book-group[data-book-count="2"] .home-hero-book:nth-child(1).is-active:hover {
        transform: rotate(-5deg) translateX(7px) scale(1.04);
    }

    .home-hero-book-group[data-book-count="2"] .home-hero-book:nth-child(2).is-active,
    .home-hero-book-group[data-book-count="2"] .home-hero-book:nth-child(2).is-active:hover {
        transform: rotate(5deg) translateX(-7px) scale(1.04);
    }

    .home-hero-group-navigation {
        gap: 7px;
        min-height: 36px;
        padding: 4px 7px;
    }

    .home-hero-group-arrow {
        width: 40px;
        height: 40px;
    }

    .home-hero-group-dot {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }
}

@media (max-width: 390px) {
    .home-hero-book-group[data-book-count="1"] .home-hero-book {
        width: 118px;
    }

    .home-hero-book-group[data-book-count="2"] .home-hero-book {
        width: min(29vw, 112px);
    }

    .home-hero-group-dots {
        gap: 5px;
    }

    .home-hero-group-dot.is-active::before {
        width: 17px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero-book-group,
    .home-hero-group-dot,
    .home-hero-group-arrow {
        transition: none;
    }
}

/* Editorial panels: equal desktop height and consistently centered media. */
@media (min-width: 821px) {
    .home-editorial-panel {
        height: 100%;
    }

    .home-editorial-header {
        min-height: 126px;
    }

    .home-editorial-rotator {
        flex: 1 1 auto;
    }

    .home-editorial-card-link {
        min-height: 244px;
    }
}

.home-editorial-card-image {
    min-height: 210px;
    padding: 16px;
}

.home-editorial-card-image img {
    width: auto;
    height: auto;
    max-height: 220px;
    margin: auto;
}

@media (max-width: 820px) {
    .home-editorial-panel {
        height: auto;
    }

    .home-editorial-header {
        min-height: 0;
    }

    .home-editorial-card-link {
        min-height: 0;
    }
}

@media (max-width: 600px) {
    .home-editorial-card-image {
        min-height: 190px;
        padding: 12px;
    }
}

/* =========================================================
   HOME EDITORIAL MEDIA – compact fixed image sizes
   ========================================================= */

.home-editorial-card-link {
    grid-template-columns: 180px minmax(0, 1fr);
    align-items: center;
    min-height: 220px;
}

.home-editorial-card-image,
.home-editorial-panel--news .home-editorial-card-image,
.home-editorial-panel--magazine .home-editorial-card-image {
    display: flex;
    min-height: 0;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    padding: 18px 10px 18px 18px;
    background: transparent;
}

.home-editorial-card-image img {
    display: block;
    width: 154px;
    height: 154px;
    max-width: 100%;
    max-height: none;
    margin: 0;
    object-fit: contain;
    object-position: center;
}

.home-editorial-card-image span {
    display: grid;
    width: 154px;
    height: 154px;
    place-items: center;
    padding: 16px;
}

@media (max-width: 1050px) and (min-width: 821px) {
    .home-editorial-card-link {
        grid-template-columns: 152px minmax(0, 1fr);
    }

    .home-editorial-card-image {
        padding: 16px 8px 16px 14px;
    }

    .home-editorial-card-image img,
    .home-editorial-card-image span {
        width: 132px;
        height: 132px;
    }
}

@media (max-width: 820px) {
    .home-editorial-card-link {
        grid-template-columns: 164px minmax(0, 1fr);
        min-height: 205px;
    }

    .home-editorial-card-image {
        min-height: 0;
        aspect-ratio: auto;
        padding: 16px 8px 16px 16px;
    }

    .home-editorial-card-image img,
    .home-editorial-card-image span {
        width: 140px;
        height: 140px;
    }
}

@media (max-width: 600px) {
    .home-editorial-card-link {
        grid-template-columns: 126px minmax(0, 1fr);
        min-height: 174px;
    }

    .home-editorial-card-image {
        padding: 12px 4px 12px 12px;
    }

    .home-editorial-card-image img,
    .home-editorial-card-image span {
        width: 108px;
        height: 108px;
    }

    .home-editorial-card-content {
        padding: 16px 14px;
    }

    .home-editorial-card-content p {
        -webkit-line-clamp: 3;
    }
}

@media (max-width: 420px) {
    .home-editorial-card-link {
        grid-template-columns: 108px minmax(0, 1fr);
    }

    .home-editorial-card-image {
        padding-left: 9px;
    }

    .home-editorial-card-image img,
    .home-editorial-card-image span {
        width: 92px;
        height: 92px;
    }
}
