.reader-body { min-width: 0; max-width: 100%; overflow-x: hidden; background: #f2f4f8; }
.reader-shell { min-height: 100vh; display: grid; grid-template-columns: 276px minmax(0, 1fr); }
.reader-sidebar { position: sticky; top: 0; z-index: 20; height: 100vh; display: flex; flex-direction: column; overflow-y: auto; padding: 22px 16px 18px; background: var(--navy-2); color: #fff; }
.reader-product-mark { color: #fff; text-decoration: none; }
.reader-product-mark .reader-social-logo { width: 190px; height: auto; }
.reader-sidebar-label { margin: 12px 9px 9px; color: #8c99c1; font-size: .78rem; line-height: 1; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.reader-sidebar-label.archive-label { margin-top: 26px; }
.reader-publications { display: grid; gap: 4px; }
.reader-publication { width: 100%; display: grid; grid-template-columns: 8px 1fr; align-items: center; gap: 11px; padding: 10px; border: 0; border-radius: 8px; background: transparent; color: #aeb9dc; text-align: left; text-decoration: none; }
.reader-publication:hover { background: rgba(255,255,255,.055); color: #fff; }
.reader-publication.active { background: rgba(78,111,255,.2); color: #fff; }
.reader-publication span:nth-child(2) { display: grid; }
.reader-publication strong { font-size: 1rem; line-height: 1.35; }
.reader-publication small { margin-top: 2px; color: #94a0c5; font-size: .875rem; line-height: 1.35; }
.reader-editions { display: grid; gap: 5px; }
.reader-editions a { display: grid; gap: 4px; padding: 10px; border: 1px solid transparent; border-radius: 8px; color: #c2cae3; text-decoration: none; }
.reader-editions a:hover { background: rgba(255,255,255,.05); }
.reader-editions a.active { border-color: rgba(48,207,210,.35); background: rgba(48,207,210,.075); }
.reader-editions span { color: #8996bd; font-size: .75rem; line-height: 1.3; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.reader-editions a.active span { color: var(--cyan); }
.reader-editions strong { font-size: .875rem; line-height: 1.4; }
.reader-sidebar-actions { display: grid; gap: 8px; margin-top: auto; padding: 23px 8px 2px; }
.sidebar-subscribe { min-height: 48px; padding: 0 18px; border: 2px solid #6666ff; border-radius: 10px; background: #6666ff; color: #fff; font-size: 16px; line-height: 1; font-weight: 700; }
.archive-return { display: flex; justify-content: space-between; padding: 10px 3px 2px; color: #c2cbea; font-size: .875rem; font-weight: 600; text-decoration: none; }
.reader-sidebar-actions small { color: #8a97bd; font-size: .75rem; line-height: 1.4; }

.reader-page { min-width: 0; }
.reader-topbar { position: sticky; top: 0; z-index: 15; height: 72px; display: flex; align-items: center; justify-content: flex-end; padding: 0 34px; border-bottom: 1px solid #e3e7ef; background: rgba(255,255,255,.94); backdrop-filter: blur(15px); }
.reader-topbar-links { display: flex; align-items: center; gap: 25px; }
.reader-topbar-links a { color: #526078; font-size: .875rem; font-weight: 600; text-decoration: none; }
.topbar-preferences { min-width: 150px; height: 48px; padding: 0 22px; border: 2px solid #6666ff; border-radius: 10px; background: #6666ff; color: #fff; font-size: 16px; line-height: 1; font-weight: 700; }
.mobile-menu-button, .mobile-brand { display: none; }
.preview-notice { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 20px; background: #fff8d8; color: #665319; border-bottom: 1px solid #eadca5; font-size: .875rem; line-height: 1.5; }
.preview-notice[hidden] { display: none; }
.preview-notice span { padding: 4px 8px; border-radius: 10px; background: #f0d15f; color: #544108; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }

.reader-main { width: min(1160px, calc(100% - 56px)); margin: 0 auto; padding: 64px 0 38px; }
.reader-intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 35px; margin: 0 0 26px; }
.reader-kicker { color: var(--blue); font-size: .78rem; line-height: 1; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.reader-kicker span { display: inline-grid; place-items: center; min-width: 24px; height: 19px; margin-left: 7px; border-radius: 10px; background: var(--pale-blue); }
.reader-intro h1 { max-width: 820px; margin: 14px 0 0; color: var(--navy); font-size: clamp(2.6rem, 5.6vw, 5.6rem); font-weight: 700; line-height: .95; letter-spacing: -.065em; }
.reader-intro p { max-width: 720px; margin: 20px 0 0; color: #59667e; font-size: clamp(1.05rem, 1.8vw, 1.25rem); line-height: 1.55; }
.intro-actions { display: flex; gap: 8px; padding-bottom: 4px; }
.intro-actions button { min-width: 150px; height: 48px; padding: 0 22px; border-radius: 10px; font-size: 16px; line-height: 1; font-weight: 700; }
.share-button { border: 2px solid rgba(4,18,63,.28); background: #fff; color: var(--navy); }
.subscribe-button { border: 2px solid #6666ff; background: #6666ff; color: #fff; }

.edition-pagination { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.top-pagination { margin-bottom: 20px; }
.bottom-pagination { margin: 22px 0 52px; }
.pagination-link { min-height: 66px; display: grid; align-content: center; gap: 4px; padding: 12px 15px; border: 1px solid #dfe4ee; border-radius: 9px; background: #fff; color: var(--navy); text-decoration: none; }
.pagination-link[hidden] { display: none; }
.pagination-link.next { grid-column: 2; text-align: right; }
.pagination-link span { color: var(--blue); font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.pagination-link strong { font-size: .875rem; line-height: 1.4; }

.reader-content-grid { display: grid; grid-template-columns: 640px minmax(320px, 1fr); align-items: start; gap: 32px; }
.reader-newsletter { box-shadow: 0 20px 55px rgba(4,18,63,.13); }
.reader-newsletter .footer-links button { padding: 0; border: 0; background: none; color: var(--cyan); font-size: inherit; text-decoration: underline; }
.reader-rail { position: sticky; top: 82px; display: grid; gap: 14px; }
.rail-card { overflow: hidden; padding: 20px; border: 1px solid #e0e5ee; border-radius: 10px; background: #fff; }
.rail-overline { color: var(--blue); font-size: .76rem; line-height: 1; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.about-card { background: var(--navy); color: #fff; border-color: var(--navy); }
.about-card .rail-overline { color: var(--cyan); }
.about-card h2 { margin: 12px 0 0; font-size: 1.75rem; line-height: 1.12; letter-spacing: -.035em; }
.about-card p { margin: 15px 0 0; color: #c5cee8; font-size: 1rem; line-height: 1.55; }
.about-card button { width: 100%; min-height: 48px; margin-top: 20px; border: 2px solid #6666ff; border-radius: 10px; background: #6666ff; color: #fff; font-size: 16px; line-height: 1; font-weight: 700; }
.rail-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rail-heading > strong { color: #738097; font-size: .75rem; line-height: 1.3; }
.rail-editions { display: grid; margin: 13px -20px -20px; }
.rail-editions a { display: grid; gap: 4px; padding: 13px 20px; border-top: 1px solid #edf0f5; color: var(--navy); text-decoration: none; }
.rail-editions a.active { background: #f1f3ff; }
.rail-editions span { color: #738097; font-size: .75rem; font-weight: 700; }
.rail-editions strong { font-size: .875rem; line-height: 1.4; }
.sources-card { padding-bottom: 0; }
#reader-sources { display: grid; margin: 13px -20px 0; }
#reader-sources a { display: grid; grid-template-columns: 24px 1fr auto; gap: 9px; align-items: start; padding: 13px 16px; border-top: 1px solid #edf0f5; color: var(--navy); text-decoration: none; }
#reader-sources a > span { color: var(--blue); font-size: .75rem; font-weight: 800; }
#reader-sources a div { display: grid; gap: 4px; }
#reader-sources strong { font-size: .875rem; line-height: 1.35; }
#reader-sources small { color: #66738a; font-size: .75rem; line-height: 1.45; }
#reader-sources i { color: var(--blue); font-size: .95rem; font-style: normal; }

.reader-subscribe-callout { display: flex; align-items: center; justify-content: space-between; gap: 35px; margin-bottom: 24px; padding: 35px 38px; border-radius: 12px; background: var(--cyan); color: var(--navy); }
.reader-subscribe-callout span { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.reader-subscribe-callout h2 { max-width: 680px; margin: 10px 0 0; font-size: 2rem; line-height: 1.15; letter-spacing: -.035em; }
.reader-subscribe-callout button { min-width: 150px; height: 48px; padding: 0 22px; border: 2px solid var(--navy); border-radius: 10px; background: var(--navy); color: #fff; font-size: 16px; line-height: 1; font-weight: 700; white-space: nowrap; }
.reader-site-footer { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 22px 4px; color: #7a8499; }
.reader-site-footer > div:first-child { display: grid; gap: 3px; }
.reader-site-footer strong { color: var(--navy); font-size: 1rem; }
.reader-site-footer span { font-size: .875rem; }
.reader-site-footer > div:last-child { display: flex; gap: 18px; }
.reader-site-footer a { color: #5b6880; font-size: .875rem; font-weight: 600; text-decoration: none; }

.preferences-dialog { width: min(600px, calc(100% - 30px)); max-height: calc(100vh - 32px); padding: 0; overflow: auto; border: 0; border-radius: 13px; box-shadow: 0 25px 90px rgba(2,11,43,.35); }
.preferences-dialog::backdrop { background: rgba(3,11,39,.66); backdrop-filter: blur(5px); }
.preferences-dialog form { padding: 27px; }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.dialog-head span { color: var(--blue); font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.dialog-head h2 { margin: 6px 0 0; color: var(--navy); font-size: 28px; line-height: 32px; letter-spacing: -1px; }
.dialog-close { width: 32px; height: 32px; border: 1px solid #dde2eb; border-radius: 50%; background: #fff; color: #6e7890; font-size: 20px; line-height: 1; }
.dialog-intro { margin: 16px 0 20px; color: #5f6c84; font-size: 1rem; line-height: 1.55; }
.email-field { display: grid; gap: 7px; color: #5d6981; font-size: .875rem; font-weight: 700; text-transform: uppercase; }
.email-field input { height: 48px; padding: 0 14px; border: 1px solid #d8deea; border-radius: 10px; outline: none; color: var(--navy); font-size: 16px; text-transform: none; }
.email-field input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(78,111,255,.12); }
.preferences-dialog fieldset { display: grid; gap: 7px; margin: 20px 0 0; padding: 0; border: 0; }
.preferences-dialog legend { margin-bottom: 8px; color: #5d6981; font-size: .875rem; font-weight: 700; text-transform: uppercase; }
.subscription-option { display: grid; grid-template-columns: 8px 1fr auto; align-items: center; gap: 12px; padding: 13px; border: 1px solid #e0e5ee; border-radius: 8px; cursor: pointer; }
.subscription-option:hover { border-color: #c8d1e3; }
.subscription-option > span:nth-child(2) { display: grid; gap: 2px; }
.subscription-option strong { color: var(--navy); font-size: 1rem; line-height: 1.35; }
.subscription-option small { color: #68748b; font-size: .875rem; line-height: 1.4; }
.subscription-option input { position: absolute; opacity: 0; pointer-events: none; }
.subscription-option i { width: 35px; height: 20px; position: relative; border-radius: 12px; background: #dfe4ec; transition: background .18s ease; }
.subscription-option i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(4,18,63,.2); transition: transform .18s ease; }
.subscription-option input:checked + i { background: var(--blue); }
.subscription-option input:checked + i::after { transform: translateX(15px); }
.dialog-message { min-height: 22px; padding-top: 10px; color: #a73535; font-size: .875rem; }
.dialog-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; }
.dialog-actions button { min-width: 150px; height: 48px; padding: 0 22px; border-radius: 10px; font-size: 16px; line-height: 1; font-weight: 700; }
.unsubscribe-all { border: 2px solid rgba(4,18,63,.28); background: #fff; color: var(--navy); }
.save-preferences { border: 2px solid #6666ff; background: #6666ff; color: #fff; }
.reader-toast { position: fixed; z-index: 60; right: 22px; bottom: 22px; max-width: 380px; padding: 14px 18px; border-radius: 10px; background: var(--navy); color: #fff; box-shadow: 0 10px 35px rgba(4,18,63,.25); font-size: .95rem; line-height: 1.5; opacity: 0; transform: translateY(12px); pointer-events: none; transition: .2s ease; }
.reader-toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 1080px) {
  .reader-content-grid { grid-template-columns: minmax(0, 640px); justify-content: center; }
  .reader-rail { position: static; grid-template-columns: repeat(2, 1fr); width: 640px; }
  .sources-card { grid-column: 1 / -1; }
  #reader-sources { grid-template-columns: repeat(2, 1fr); }
  #reader-sources a:nth-child(2) { border-left: 1px solid #edf0f5; }
}

@media (max-width: 820px) {
  .reader-shell { display: block; }
  .reader-sidebar { position: fixed; left: 0; transform: translateX(-102%); width: 280px; box-shadow: 18px 0 55px rgba(3,11,39,.3); transition: transform .2s ease; }
  .reader-sidebar.open { transform: translateX(0); }
  .reader-topbar { justify-content: space-between; gap: 12px; height: 72px; padding: 0 24px; border-color: rgba(255,255,255,.13); background: var(--navy); }
  .mobile-brand { width: 220px; height: 40px; position: relative; display: flex; flex: 0 0 auto; align-items: center; color: #fff; text-decoration: none; }
  .mobile-brand-word, .mobile-brand-mark { position: absolute; left: 0; top: 50%; display: block; height: auto; transition: opacity .18s ease, transform .18s ease; }
  .mobile-brand-word { width: 210px; opacity: 1; transform: translateY(-50%) scale(1); }
  .mobile-brand-mark { width: 45px; opacity: 0; transform: translateY(calc(-50% - 16px)); }
  .reader-topbar.is-compact .mobile-brand-word { opacity: 0; transform: translateY(-50%) scale(.92); }
  .reader-topbar.is-compact .mobile-brand-mark { opacity: 1; transform: translateY(-50%); }
  .mobile-menu-button { width: 46px; height: 46px; display: grid; place-content: center; gap: 5px; padding: 0; border: 0; background: transparent; }
  .mobile-menu-button span { width: 28px; height: 3px; display: block; border-radius: 3px; background: #fff; }
  .reader-topbar-links { display: none; }
  .reader-main { width: min(640px, calc(100% - 30px)); padding-top: 40px; }
  .reader-intro { grid-template-columns: 1fr; align-items: start; }
  .reader-intro h1 { font-size: clamp(40px, 10vw, 62px); }
  .intro-actions { padding: 0; }
  .reader-rail { width: 100%; }
}

@media (max-width: 680px) {
  .preview-notice { align-items: flex-start; justify-content: flex-start; }
  .reader-main { width: 100%; padding-top: 34px; }
  .reader-intro, .edition-pagination, .reader-rail, .reader-subscribe-callout, .reader-site-footer { margin-left: 16px; margin-right: 16px; }
  .reader-intro h1 { letter-spacing: -2px; }
  .intro-actions { width: 100%; }
  .intro-actions button { flex: 1; }
  .top-pagination { grid-template-columns: 1fr; }
  .top-pagination .pagination-link.next { grid-column: 1; }
  .reader-content-grid { display: block; }
  .reader-newsletter { width: 100%; max-width: none; flex-basis: auto; box-shadow: 0 15px 45px rgba(4,18,63,.11); }
  .reader-newsletter, .reader-newsletter section, .reader-newsletter footer, .reader-newsletter div { min-width: 0; }
  .reader-newsletter .edition-strap { padding: 11px 20px; }
  .reader-newsletter .edition-strap > div:last-child { text-align: right; }
  .reader-newsletter .newsletter-brand { gap: 12px; padding: 22px 20px; }
  .reader-newsletter .newsletter-brand img { width: min(41vw, 152px); max-width: 152px; flex: 0 1 152px; }
  .reader-newsletter .brand-promise { min-width: 0; flex: 1 1 auto; grid-template-columns: auto minmax(0, 1fr); gap: 8px; padding-left: 10px; border-left-width: 4px; }
  .reader-newsletter .brand-promise strong { font-size: clamp(21px, 6.7vw, 26px); line-height: 25px; }
  .reader-newsletter .brand-promise span { font-size: 8px; line-height: 12px; letter-spacing: .65px; }
  .reader-newsletter .newsletter-hero { padding: 40px 20px 43px; }
  .reader-newsletter .newsletter-hero h2 { font-size: 47px; line-height: 46px; letter-spacing: -2px; }
  .reader-newsletter .hero-kicker { font-size: 18px; line-height: 24px; }
  .reader-newsletter .newsletter-section { padding: 36px 20px; }
  .reader-newsletter .history-section h3 { font-size: 31px; line-height: 34px; }
  .reader-newsletter .stat-grid { grid-template-columns: 1fr; gap: 12px; }
  .reader-newsletter .stat-number, .reader-newsletter .scale-stat strong, .reader-newsletter .cause-stat strong { overflow-wrap: anywhere; }
  .reader-newsletter .decoded-section { grid-template-columns: 1fr; gap: 23px; padding: 35px 20px; }
  .reader-newsletter .scale-section { grid-template-columns: 1fr; gap: 21px; padding: 35px 20px; }
  .reader-newsletter .scale-source { grid-column: 1; width: auto; }
  .reader-newsletter .cause-section { padding: 38px 20px 40px; }
  .reader-newsletter .cause-section > h3 { font-size: 38px; line-height: 39px; }
  .reader-newsletter .cause-grid { grid-template-columns: 1fr; gap: 18px; }
  .reader-newsletter .reply-section { grid-template-columns: 1fr; padding: 35px 20px; }
  .reader-newsletter .reply-section .newsletter-button { width: 100%; text-align: center; }
  .reader-newsletter .newsletter-footer { padding: 28px 20px 32px; }
  .reader-rail { width: auto; max-width: calc(100% - 32px); grid-template-columns: 1fr; margin-top: 18px; }
  .sources-card { grid-column: 1; }
  #reader-sources { grid-template-columns: 1fr; }
  #reader-sources a:nth-child(2) { border-left: 0; }
  #reader-sources a div { min-width: 0; }
  #reader-sources strong, #reader-sources small, .pagination-link strong { overflow-wrap: anywhere; }
  .bottom-pagination { grid-template-columns: 1fr; margin-top: 20px; }
  .bottom-pagination .pagination-link.next { grid-column: 1; text-align: left; }
  .reader-subscribe-callout { align-items: flex-start; flex-direction: column; padding: 28px 24px; }
  .reader-subscribe-callout h2 { font-size: 25px; line-height: 29px; }
  .reader-subscribe-callout button { width: 100%; }
  .reader-site-footer { align-items: flex-start; flex-direction: column; }
  .reader-site-footer > div:last-child { flex-wrap: wrap; }
  .subscription-option { grid-template-columns: 8px 1fr; }
  .subscription-option i { grid-column: 2; }
  .dialog-actions { flex-direction: column-reverse; }
  .dialog-actions button { width: 100%; }
}
