/* =========================================================
   MAGSUBS RESPONSIVE DESIGN
   Palette: deep navy + warm orange, with soft neutral panels.
   Edit the variables below to adjust the site's colours.
   ========================================================= */

:root {
    --navy: #10264a;
    --navy-deep: #0b1c37;
    --orange: #f36b16;
    --orange-dark: #d95708;
    --ink: #18243a;
    --muted: #657187;
    --line: #e3e8ef;
    --paper: #ffffff;
    --soft: #f4f7fb;
    --blue-soft: #eaf1fb;
    --radius: 18px;
    --shadow: 0 12px 34px rgba(16, 38, 74, .09);
    --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
}
img { max-width: 100%; }
a { color: inherit; }
a:hover { color: var(--orange-dark); }
button, input { font: inherit; }
.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
.skip-link, .visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link:focus { width: auto; height: auto; clip: auto; padding: 12px; margin: 8px; background: white; z-index: 1000; }

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}
.header-inner { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; }
.brand-name { color: var(--navy); font-size: 37px; font-weight: 850; letter-spacing: -2.3px; }
.brand-name span, .footer-brand span { color: var(--orange); }
.brand-tagline { margin-top: 6px; color: var(--muted); font-size: 11px; font-weight: 650; letter-spacing: .01em; }
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a { text-decoration: none; color: var(--navy); font-size: 14px; font-weight: 700; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--orange-dark); }

.hero { overflow: hidden; background: linear-gradient(112deg, #edf3fc 0%, #f8faff 58%, #fff3e9 100%); }
.hero-inner { min-height: 390px; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px; padding-block: 58px; }
.hero-copy { max-width: 660px; position: relative; z-index: 2; }
.eyebrow { margin: 0 0 9px; color: var(--orange-dark); font-size: 12px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { color: var(--navy); font-size: clamp(38px, 5vw, 58px); line-height: 1.06; letter-spacing: -.045em; margin-bottom: 18px; }
h2 { color: var(--navy); font-size: clamp(25px, 3vw, 34px); line-height: 1.2; letter-spacing: -.03em; margin-bottom: 12px; }
h3 { color: var(--navy); }
.hero-intro { max-width: 560px; color: #43516a; font-size: 19px; margin-bottom: 24px; }
.search-form { display: flex; width: min(100%, 570px); padding: 6px; background: white; border: 1px solid #e3e8f0; border-radius: 999px; box-shadow: 0 10px 26px rgba(16,38,74,.1); }
.search-form input { min-width: 0; flex: 1; padding: 12px 18px; border: 0; outline: 0; background: transparent; color: var(--ink); }
.search-form button, .button {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    border: 0; border-radius: 999px; background: var(--orange); color: white;
    padding: 13px 23px; font-weight: 800; text-decoration: none; cursor: pointer;
    transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.search-form button:hover, .button:hover { color: white; background: var(--orange-dark); transform: translateY(-1px); box-shadow: 0 7px 16px rgba(217,87,8,.2); }
.search-hint { color: var(--muted); font-size: 12px; margin: 9px 0 0 12px; }
.hero-art { position: relative; min-height: 270px; border-radius: 24px; overflow: hidden; box-shadow: 0 22px 48px rgba(16,38,74,.16); }
.hero-art img { display: block; width: 100%; height: 100%; min-height: 270px; object-fit: cover; object-position: center; }






.trust-strip { border-bottom: 1px solid var(--line); background: white; }
.trust-items { display: flex; justify-content: center; gap: clamp(22px, 6vw, 80px); padding-block: 18px; color: #46536a; font-size: 13px; font-weight: 700; }
.trust-items > div { display: flex; align-items: center; gap: 9px; }
.trust-icon { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #e7f5ed; color: #16824b; font-weight: 900; }

.section { padding-block: 68px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.section-heading h2 { margin-bottom: 0; }
.text-link { color: var(--orange-dark); font-size: 14px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.magazine-card-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.magazine-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 5px 18px rgba(16,38,74,.045); }
.card-cover-placeholder { height: 168px; display: grid; place-items: center; background: linear-gradient(145deg, #eaf0f8, #d5e0ef); color: #59718f; }
.card-cover-placeholder img { width: 100%; height: 100%; object-fit: contain; padding: 10px; background: #eef2f7; }
.card-cover-placeholder span { display: grid; place-items: center; width: 76px; height: 100px; border: 2px solid rgba(255,255,255,.85); background: linear-gradient(145deg, #16365e, #477da2); color: white; font-family: Georgia, serif; font-size: 48px; box-shadow: 0 8px 18px rgba(16,38,74,.18); }
.magazine-card-content { padding: 15px; }
.magazine-card h3 { font-size: 15px; line-height: 1.3; min-height: 39px; margin-bottom: 7px; }
.magazine-card h3 a { text-decoration: none; }
.card-price { color: var(--muted); font-size: 13px; margin-bottom: 13px; }
.card-price strong { color: var(--navy); font-size: 16px; }
.button-small { width: 100%; padding: 10px 12px; font-size: 12px; }

.directory-section { background: var(--soft); }
.section-intro { color: var(--muted); margin: 10px 0 0; }
.alphabet { display: flex; flex-wrap: wrap; gap: 7px; margin: 24px 0 30px; }
.alphabet a, .alphabet span { display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid #dce3ed; border-radius: 8px; background: white; color: var(--navy); font-size: 12px; font-weight: 800; text-decoration: none; }
.alphabet a:hover { border-color: var(--orange); color: var(--orange-dark); }
.alphabet .is-disabled { color: #b7c0cd; background: #f8f9fb; }
.directory-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; align-items: start; }
.directory-group { min-width: 0; }
.directory-group h3 { margin: 0 0 8px; padding-bottom: 7px; border-bottom: 2px solid #dfe6ef; font-size: 21px; }
.directory-item { display: flex; align-items: center; gap: 10px; min-height: 43px; padding: 8px 3px; border-bottom: 1px solid #e5eaf1; color: #34435b; font-size: 13px; text-decoration: none; }
.directory-item > span:first-child { flex: 1; }
.directory-price { color: var(--muted); font-size: 11px; white-space: nowrap; }
.directory-arrow { color: var(--orange); font-weight: 900; }
.no-results { margin-top: 20px; padding: 20px; border-radius: 12px; background: white; color: var(--muted); }

.about-panel { max-width: 850px; margin-inline: auto; padding: 34px 40px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(120deg, #f5f8fd, #fff); }
.about-panel p:last-child { color: #536078; margin-bottom: 0; }

.site-footer { background: var(--navy-deep); color: #dbe4f1; padding: 38px 0 30px; }
.footer-inner { text-align: center; }
.footer-brand { display: inline-block; color: white; font-size: 30px; font-weight: 850; letter-spacing: -1.5px; text-decoration: none; }
.footer-inner p { margin: 2px 0 18px; color: #b8c6d9; font-size: 12px; }
.footer-inner nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-bottom: 22px; }
.footer-inner nav a { color: #dbe4f1; font-size: 12px; text-decoration: none; }
.footer-inner small { color: #9eafc5; font-size: 11px; }

/* Individual magazine page */
.magazine-page { padding-bottom: 70px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 10px; padding: 21px 0; color: var(--muted); font-size: 12px; }
.breadcrumbs a { color: var(--navy); text-decoration: none; font-weight: 700; }
.product-hero { display: grid; grid-template-columns: minmax(230px, 330px) 1fr; align-items: center; gap: clamp(30px, 6vw, 76px); padding: 28px 0 50px; }
.product-cover-wrap { display: flex; justify-content: center; align-items: flex-start; }
.product-cover { display: block; width: min(100%, 300px); max-height: 430px; object-fit: contain; border-radius: 5px; box-shadow: 0 18px 34px rgba(16,38,74,.2); }
.product-cover-fallback { display: grid; place-items: center; width: 250px; height: 350px; padding: 25px; background: linear-gradient(145deg, #17375f, #527b9b); color: white; font-size: 25px; font-weight: 800; text-align: center; box-shadow: var(--shadow); }
.product-summary h1 { font-size: clamp(34px, 4vw, 48px); }
.product-description { color: #4d5a70; font-size: 17px; }
.best-price-panel { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 3px 18px; margin-top: 24px; padding: 20px 23px; border: 1px solid #f5d5c3; border-radius: 16px; background: linear-gradient(110deg, #fff2e9, #fff9f5); }
.best-price-label { grid-column: 1 / -1; color: #a84a16; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.best-price { color: #d94d13; font-size: clamp(34px, 4vw, 46px); line-height: 1.15; font-weight: 850; letter-spacing: -.04em; }
.best-price-note { grid-column: 1 / -1; color: #76594b; font-size: 11px; }
.button-large { grid-column: 2; grid-row: 2; min-width: 185px; padding: 15px 20px; }
.notice-panel { padding: 18px 20px; border: 1px solid #f0d8a9; border-radius: 12px; background: #fff9e9; color: #76591e; }
.offers-section { padding-top: 30px; border-top: 1px solid var(--line); }
.offer-list { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; }
.offer-row { display: grid; grid-template-columns: 1.1fr .8fr 1fr auto; align-items: center; gap: 18px; min-height: 86px; padding: 14px 20px; border-bottom: 1px solid var(--line); background: white; }
.offer-row:last-child { border-bottom: 0; }
.offer-row-best { background: #fffaf6; }
.offer-retailer img { display: block; max-width: 130px; max-height: 38px; object-fit: contain; }
.retailer-name { color: var(--navy); font-weight: 800; }
.offer-price strong { display: block; color: var(--navy); font-size: 21px; }
.offer-price small { color: var(--muted); font-size: 11px; }
.mobile-field-label { display: none; }
.best-badge { display: inline-block; padding: 6px 10px; border-radius: 999px; background: #ffe4d5; color: #b7470b; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.offer-button { min-width: 145px; padding: 12px 17px; font-size: 13px; }
.price-disclaimer { margin: 14px 2px 0; color: var(--muted); font-size: 12px; }
.details-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 20px; padding-block: 48px; }
.content-panel { padding: 26px; border: 1px solid var(--line); border-radius: 15px; background: white; box-shadow: 0 5px 18px rgba(16,38,74,.035); }
.content-panel p { color: #536078; }
.content-panel h2 { font-size: 23px; }
.category-line { margin-top: 18px; font-size: 13px; }
.highlight-panel { background: var(--blue-soft); border-color: #dce7f6; }
.check-list { display: grid; gap: 12px; margin: 18px 0 0; padding: 0; list-style: none; color: #34435b; font-size: 14px; }
.check-list li { position: relative; padding-left: 26px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: #16824b; font-weight: 900; }
.faq-section { max-width: 850px; padding-top: 12px; }
.faq-section details { margin-top: 10px; padding: 17px 19px; border: 1px solid var(--line); border-radius: 11px; background: white; }
.faq-section summary { color: var(--navy); font-weight: 800; cursor: pointer; }
.faq-section details p { margin: 12px 0 0; color: #536078; font-size: 14px; }
.back-link { margin: 15px 0 0; }
.back-link a { color: var(--orange-dark); font-weight: 800; text-decoration: none; }
.not-found { padding-block: 100px; }

/* Tablet */
@media (max-width: 900px) {
    .magazine-card-grid { grid-template-columns: repeat(3, 1fr); }
    .directory-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-inner { grid-template-columns: 1fr .65fr; }


    .product-hero { grid-template-columns: 240px 1fr; gap: 34px; }
    .offer-row { grid-template-columns: 1fr .7fr 1fr auto; gap: 12px; padding-inline: 14px; }
    .offer-button { min-width: 125px; }
}

/* Mobile */
@media (max-width: 640px) {
    .container { width: min(100% - 32px, var(--container)); }
    .header-inner { min-height: 72px; gap: 12px; }
    .brand-name { font-size: 30px; }
    .brand-tagline { font-size: 9px; }
    .main-nav { gap: 13px; }
    .main-nav a { font-size: 11px; }
    .main-nav a:nth-child(3) { display: none; }

    .hero-inner { display: block; min-height: 0; padding-block: 45px 38px; }
    h1 { font-size: 39px; }
    .hero-intro { font-size: 16px; }
    .hero-art { display: none; }
    .search-form { border-radius: 14px; }
    .search-form input { padding-inline: 10px; font-size: 14px; }
    .search-form button { padding: 11px 16px; border-radius: 10px; }
    .trust-items { justify-content: flex-start; gap: 13px; overflow-x: auto; padding-block: 14px; }
    .trust-items > div { flex: 0 0 auto; font-size: 11px; }

    .section { padding-block: 48px; }
    .section-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
    .magazine-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .card-cover-placeholder { height: 135px; }
    .magazine-card-content { padding: 12px; }
    .magazine-card h3 { font-size: 13px; min-height: 34px; }
    .directory-list { grid-template-columns: 1fr; gap: 22px; }
    .alphabet { gap: 5px; }
    .alphabet a, .alphabet span { width: 31px; height: 32px; }
    .directory-item { font-size: 13px; }
    .about-panel { padding: 25px 22px; }

    .breadcrumbs { padding: 16px 0; gap: 7px; font-size: 11px; }
    .product-hero { grid-template-columns: 112px minmax(0, 1fr); gap: 18px; align-items: start; padding: 14px 0 34px; }
    .product-cover { width: 112px; max-height: 170px; }
    .product-cover-fallback { width: 112px; height: 160px; padding: 10px; font-size: 14px; }
    .product-summary .eyebrow { font-size: 9px; }
    .product-summary h1 { font-size: 26px; line-height: 1.08; margin-bottom: 10px; }
    .product-description { grid-column: 1 / -1; font-size: 13px; line-height: 1.5; }
    .best-price-panel { grid-column: 1 / -1; grid-template-columns: 1fr; gap: 5px; margin-top: 14px; padding: 15px; }
    .best-price-label, .best-price-note { grid-column: auto; }
    .best-price { font-size: 35px; }
    .button-large { grid-column: auto; grid-row: auto; width: 100%; margin-top: 7px; }
    .product-summary { display: contents; }
    .product-summary > .eyebrow, .product-summary > h1 { grid-column: 2; }
    .product-summary > .product-description, .product-summary > .best-price-panel { grid-column: 1 / -1; }
    .product-cover-wrap { grid-column: 1; grid-row: 1 / span 2; }

    .offers-section { padding-top: 28px; }
    .offer-list { border: 0; overflow: visible; display: grid; gap: 11px; }
    .offer-row { grid-template-columns: 1fr auto; gap: 9px 12px; padding: 15px; border: 1px solid var(--line); border-radius: 13px; }
    .offer-retailer { grid-column: 1; }
    .offer-retailer img { max-width: 112px; max-height: 30px; }
    .offer-price { grid-column: 1; }
    .offer-price strong { font-size: 23px; }
    .mobile-field-label { display: block; color: var(--muted); font-size: 10px; }
    .offer-badge { grid-column: 2; grid-row: 1; justify-self: end; }
    .offer-button { grid-column: 2; grid-row: 2; min-width: 112px; padding: 11px 13px; font-size: 12px; }
    .details-grid { grid-template-columns: 1fr; gap: 13px; padding-block: 35px; }
    .content-panel { padding: 21px; }
    .faq-section { padding-top: 4px; }
    .faq-section details { padding: 15px; }
    .site-footer { padding-block: 30px; }
}
