/* PUBLICATIONS, BLOG & READER DISCUSSION
   Change these variables to adjust the new pages without altering the homepage. */
.editorial-page { --ed-radius: 12px; --ed-reading-width: 790px; --ed-card-gap: 26px; --ed-section-space: 48px; }
.editorial-page [hidden] { display: none !important; }
.ed-eyebrow { font-size: .875rem; line-height: 1.6; font-weight: 650; letter-spacing: .055em; color: var(--blue); text-transform: uppercase; margin: 0 0 18px; }
.ed-index-hero { padding: 25px 0 55px; background: var(--navy-950); color: white; }
.ed-index-hero .summary-breadcrumb { margin-bottom: 38px; }
.ed-index-hero .ed-eyebrow { color: #91c5e3; }
.ed-index-hero h1 { font-size: clamp(2.6rem,5vw,4.4rem); line-height: 1.1; font-weight: 550; letter-spacing: -.045em; margin: 0 0 22px; }
.ed-index-hero h1 span { color: #65b5e1; }
.ed-index-hero .container > p:last-child { max-width: 720px; color: #c2d2de; font-size: 1.25rem; line-height: 1.65; margin: 0; }
.ed-index-body { padding-block: 35px 75px; }
.ed-section-links { display: flex; gap: 28px; border-bottom: 1px solid var(--line); margin-bottom: 35px; }
.ed-section-links a { padding: 14px 0; font-size: 1rem; color: var(--muted); }
.ed-section-links a[aria-current="page"] { border-bottom: 3px solid var(--blue); color: var(--blue); font-weight: 600; }
.ed-list-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--ed-card-gap); }
.ed-list-card { display: flex; flex-direction: column; padding: 32px; border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: var(--ed-radius); }
.ed-card-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--blue); font-size: .875rem; margin-bottom: 24px; }
.ed-list-card h2 { font-size: clamp(1.6rem,2.3vw,2rem); line-height: 1.25; font-weight: 550; letter-spacing: -.025em; margin: 0 0 22px; }
.ed-list-card p { color: var(--muted); font-size: 1rem; line-height: 1.8; margin: 0 0 30px; }
.ed-read-link { display: flex; justify-content: space-between; gap: 15px; margin-top: auto; color: var(--blue); font-size: .875rem; line-height: 1.6; font-weight: 650; }
.ed-read-link:hover, .ed-list-card h2 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.ed-detail { padding-block: 30px 70px; }
.ed-breadcrumb { display: flex; flex-wrap: wrap; gap: 15px; font-size: .875rem; color: var(--muted); margin-bottom: 42px; }
.ed-breadcrumb a:hover { color: var(--blue); text-decoration: underline; }
.ed-article-header { max-width: 1020px; padding-bottom: 35px; border-bottom: 1px solid var(--line); margin-bottom: 36px; }
.ed-article-header h1 { font-size: clamp(2.1rem,4vw,3.8rem); font-weight: 550; line-height: 1.12; letter-spacing: -.035em; margin: 0 0 25px; }
.ed-byline { max-width: 850px; font-size: 1rem; line-height: 1.75; color: var(--muted); margin: 0 0 18px; }
.ed-publication-detail { font-size: .875rem; line-height: 1.8; color: var(--muted); max-width: 800px; }
.ed-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 23px; }
.ed-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 46px; padding: 11px 20px; border: 1px solid var(--blue); background: var(--blue); color: white; border-radius: 6px; font: inherit; font-size: .875rem; font-weight: 600; cursor: pointer; line-height: 1.5; }
.ed-button:hover:not(:disabled) { background: var(--navy-800); color: white; }
.ed-secondary { color: var(--blue); background: white; }
.ed-button:disabled { opacity: .6; cursor: wait; }
.ed-reading { max-width: var(--ed-reading-width); }
.ed-note { background: var(--blue-light); border-left: 3px solid var(--blue); padding: 20px 24px; font-size: .875rem; color: var(--navy-800); line-height: 1.8; margin-bottom: 32px; }
.ed-prose h2, .discussion h2 { font-size: 1.9rem; line-height: 1.3; letter-spacing: -.025em; font-weight: 550; margin: 0 0 22px; }
.ed-prose p { color: var(--muted); font-size: 1.0625rem; line-height: 1.95; margin: 0 0 24px; }
.ed-prose .ed-source { font-size: .875rem; padding-top: 16px; border-top: 1px solid var(--line); }
.ed-source a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.ed-back { display: inline-flex; color: var(--blue); font-size: .875rem; font-weight: 600; margin-top: 35px; }
.discussion { border-top: 1px solid var(--line); margin-top: var(--ed-section-space); padding-top: var(--ed-section-space); }
.discussion > p { font-size: 1rem; color: var(--muted); line-height: 1.7; }
.discussion .discussion-status { font-size: .875rem; padding: 16px 20px; background: var(--paper); border-radius: 6px; color: var(--navy-800); }
.discussion fieldset { min-width: 0; border: 0; padding: 0; margin: 25px 0 0; }
.discussion legend { display: block; font-size: 1.125rem; font-weight: 600; margin-bottom: 16px; }
.reaction-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.reaction-buttons button { min-height: 46px; padding: 10px 15px; border-radius: 24px; border: 1px solid #b8cbd9; color: var(--blue); background: white; font: inherit; font-size: .875rem; cursor: pointer; }
.reaction-buttons button span { padding-left: 10px; font-weight: 650; }
.reaction-buttons button[aria-pressed="true"] { color: white; background: var(--blue); border-color: var(--blue); }
.reaction-buttons button:disabled { opacity: .55; cursor: default; }
.discussion label, .admin-login label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: 8px; }
.discussion input, .discussion textarea, .admin-login input, .admin-toolbar select { display: block; width: 100%; font: inherit; font-size: 1rem; color: var(--text); border: 1px solid #adc3d2; border-radius: 6px; padding: 12px 14px; background: white; margin-bottom: 20px; }
.discussion input { max-width: 440px; }
.discussion textarea { resize: vertical; min-height: 140px; }
.discussion .ed-small, .ed-small { font-size: .875rem; line-height: 1.8; color: var(--muted); }
.discussion h3 { font-size: 1.375rem; margin: 38px 0 20px; font-weight: 550; }
.discussion h3 span { color: var(--muted); }
.ed-empty { background: var(--paper); color: var(--muted); padding: 22px; font-size: .875rem; line-height: 1.8; border-radius: 6px; }
.reader-comment { padding: 22px 0; border-top: 1px solid var(--line); }
.reader-comment-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 15px; align-items: center; }
.reader-comment h4 { font-size: 1rem; margin: 0; font-weight: 650; overflow-wrap: anywhere; }
.reader-comment time { font-size: .8125rem; color: var(--muted); }
.reader-comment > p, .review-body { font-size: 1rem; line-height: 1.8; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.editorial-page :focus-visible { outline: 3px solid #1180ba; outline-offset: 4px; }
.admin-page { background: var(--paper); }
.admin-main { max-width: 1000px; padding-block: 45px 75px; }
.admin-main > .ed-eyebrow { margin-top: 35px; }
.admin-main > h1 { font-size: 2.5rem; font-weight: 550; letter-spacing: -.03em; }
.admin-main > p { font-size: 1rem; line-height: 1.8; }
.admin-login { max-width: 460px; padding: 28px; margin-top: 30px; background: white; border: 1px solid var(--line); border-radius: var(--ed-radius); }
.admin-toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 30px 0; }
.admin-toolbar select { width: auto; margin: 0; }
.review-card { padding: 28px; background: white; border: 1px solid var(--line); border-radius: var(--ed-radius); margin-bottom: 20px; }
.review-card > a { color: var(--blue); font-size: .875rem; }
.review-card h2 { font-size: 1.375rem; overflow-wrap: anywhere; }
@media (max-width: 700px) {
 .ed-list-grid { grid-template-columns: 1fr; }
 .ed-list-card { padding: 25px; }
 .ed-index-hero { padding-bottom: 38px; }
 .ed-article-header h1 { font-size: 2.25rem; }
 .ed-note { padding: 18px 20px; }
 .ed-detail { padding-top: 25px; }
 .ed-breadcrumb { margin-bottom: 30px; }
}

/* Complete research papers and related reading. */
.paper-reader, .ed-related { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.paper-reader h2, .ed-related h2 { font-size: 1.9rem; font-weight: 550; line-height: 1.3; margin: 0 0 20px; }
.paper-tools { display: flex; flex-wrap: wrap; align-items: end; gap: 18px; padding: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; margin-bottom: 24px; }
.paper-tools label { display: grid; gap: 8px; font-size: .875rem; }
.paper-tools select { max-width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid #adc3d2; background: white; color: var(--text); border-radius: 5px; }
.paper-tools a { padding: 12px 0; color: var(--blue); font-size: .875rem; }
.paper-page { margin: 0 0 36px; }
.paper-page h3 { font-size: 1rem; font-weight: 600; margin: 0 0 12px; color: var(--muted); }
.paper-page-scroll { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 5px; background: white; }
.paper-page-scroll img { display: block; width: 100%; height: auto; }
.paper-enlarged .paper-page-scroll img { width: 1200px; max-width: none; }
.paper-text { padding: 14px 0; border-bottom: 1px solid var(--line); }
.paper-text summary { cursor: pointer; color: var(--blue); min-height: 44px; padding: 10px 0; }
.paper-text p { font-size: 1rem; line-height: 1.85; overflow-wrap: anywhere; }
.ed-related-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.ed-related-card { display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: var(--ed-radius); }
.ed-related-card h3 { margin: 0 0 16px; font-size: 1.4rem; font-weight: 550; line-height: 1.35; }
.ed-related-card > p:not(.ed-card-meta) { color: var(--muted); font-size: .9375rem; line-height: 1.8; margin-bottom: 24px; }
.ed-related-card h3 a:hover { color: var(--blue); text-decoration: underline; }
@media (max-width: 600px) { .ed-related-grid { grid-template-columns: 1fr; } }

/* CMS content uses fixed templates; editors cannot change page layout. */
.ed-cover, .ed-content-image img { display:block; width:100%; height:auto; border-radius:var(--ed-radius); margin-bottom:24px; }
.ed-related-card .ed-cover { aspect-ratio:16 / 9; object-fit:cover; }
.ed-content-image { margin:28px 0; }
.ed-content-image figcaption { font-size:.875rem; color:var(--muted); line-height:1.7; }
.ed-prose { overflow-wrap:anywhere; }
.ed-prose h2, .ed-prose h3 { margin-top:32px; }
.ed-prose li { font-size:1.0625rem; line-height:1.9; color:var(--muted); margin-bottom:8px; }
.ed-prose a { color:var(--blue); text-decoration:underline; }
.ed-prose blockquote { margin:25px 0; padding:10px 25px; border-left:3px solid var(--blue); }
