/* City2Day editorial content. Independent of Web Forms controls and application CSS. */
:root {
    --primary: #1e3c96;
    --secondary: #0f1f5c;
    --accent: #1ea5f0;
    --bg: #f5f8fd;
    --paper: #fff;
    --text: #16213d;
    --text-muted: #52617c;
    --border: #dce6f5;
    --tint: #e8f4fd;
    --font: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
    --radius: 20px;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: clamp(3rem, 6vw, 5rem);
    --shadow: 0 12px 35px rgba(15, 31, 92, .06);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 145px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 1rem/1.9 var(--font); }
img { max-width: 100%; height: auto; }
a { color: var(--primary); text-underline-offset: .24em; }
a:hover { color: var(--secondary); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; border-radius: 3px; }
h1, h2, h3 { font-weight: 800; line-height: 1.55; text-wrap: balance; }
.wrap { width: min(1180px, calc(100% - 2.5rem)); margin-inline: auto; }
.skip-link { position: fixed; top: -6rem; right: 1rem; background: var(--secondary); color: var(--paper); padding: .7rem 1rem; z-index: 30; }
.skip-link:focus { top: 1rem; color: var(--paper); }
.journal-header { position: sticky; top: 0; background: var(--paper); border-bottom: 1px solid var(--border); z-index: 10; }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .7rem 2rem; padding-block: 1rem; }
.brand { flex: 0 0 auto; line-height: 1; }
.brand img { width: 215px; display: block; }
.journal-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.4rem; font-size: .88rem; font-weight: 700; }
.journal-nav a { text-decoration: none; }
.journal-nav [aria-current="page"] { border-bottom: 2px solid var(--primary); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 1.35rem; background: var(--primary); color: var(--paper); border: 1px solid var(--primary); border-radius: 10px; text-decoration: none; font-weight: 700; line-height: 1.6; transition: background .18s, box-shadow .18s; }
.button:hover { color: var(--paper); background: var(--secondary); box-shadow: var(--shadow); }
.journal-nav .button { padding: .6rem 1rem; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .4rem .7rem; font-size: .82rem; color: var(--text-muted); margin: 0 0 1.7rem; }
.breadcrumb a { color: inherit; }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; color: var(--primary); font-size: .85rem; font-weight: 800; margin-bottom: 1rem; }
.eyebrow::before { content: ''; width: 22px; height: 3px; background: var(--accent); }
.library-hero { padding-block: var(--space-lg) 2.6rem; }
.library-hero h1 { font-size: clamp(2.1rem, 4.5vw, 3.6rem); margin: 0 0 1rem; max-width: 860px; }
.lead { font-size: clamp(1.02rem, 1.6vw, 1.15rem); color: var(--text-muted); max-width: 820px; margin: 0; }
.topic-row { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.5rem; padding: 0; list-style: none; }
.topic-row li { border: 1px solid var(--border); border-radius: 99px; background: var(--paper); padding: .3rem .9rem; color: var(--text-muted); font-size: .8rem; }
.section-label { font-size: 1rem; margin-bottom: 1.1rem; }
.featured { display: grid; grid-template-columns: 1.5fr 1fr; background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.featured-copy { padding: clamp(1.6rem, 4vw, 3.3rem); align-self: center; }
.category { display: inline-block; color: var(--primary); background: var(--tint); padding: .28rem .75rem; font-size: .8rem; font-weight: 700; border-radius: 6px; }
.featured h2 { font-size: clamp(1.55rem, 2.6vw, 2.1rem); margin: 1rem 0; }
.featured h2 a { color: var(--text); text-decoration: none; }
.featured h2 a:hover { color: var(--primary); }
.featured p { color: var(--text-muted); margin-bottom: 1.5rem; }
.featured-art { min-height: 350px; background: var(--tint); display: grid; place-items: center; padding: 2rem; }
.featured-art img { width: 215px; height: 325px; object-fit: contain; }
.meta { color: var(--text-muted); display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; font-size: .82rem; }
.feature-meta { margin-top: 1.2rem; }
.article-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; margin-top: 1.4rem; }
.article-card { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; }
.article-card h2 { font-size: 1.25rem; }
.article-card p { color: var(--text-muted); font-size: .9rem; }
.library-note { margin-block: 3rem; padding-block: 1.5rem; display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; border-top: 1px solid var(--border); }
.library-note h2 { font-size: 1.3rem; margin: 0; }
.library-note p { color: var(--text-muted); margin: 0; }
.article-hero { padding-block: 2.2rem 2.8rem; border-bottom: 1px solid var(--border); }
.article-hero h1 { font-size: clamp(1.95rem, 4vw, 3.1rem); max-width: 1000px; margin: 1rem 0; }
.article-hero .meta { margin-top: 1.5rem; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 265px; gap: 3rem; padding-block: 3rem var(--space-lg); align-items: start; }
.article-body { min-width: 0; background: var(--paper); padding: clamp(1.25rem, 3.4vw, 3rem); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); font-size: 1.06rem; line-height: 2.1; }
.article-body h2 { margin: 2.2rem 0 .8rem; font-size: clamp(1.35rem, 2.1vw, 1.65rem); scroll-margin-top: 9rem; }
.article-body h3 { margin: 1.8rem 0 .7rem; font-size: 1.15rem; }
.article-body > :first-child { margin-top: 0; }
.article-body p { margin: 0 0 1.2rem; }
.article-body ul, .article-body ol { padding-inline-start: 1.45rem; margin-bottom: 1.4rem; }
.article-body li { padding-inline-start: .2rem; margin-bottom: .55rem; }
.article-body li::marker { color: var(--primary); font-weight: 700; }
.article-body strong { color: var(--secondary); }
.article-body table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: .9rem; margin-block: 1.5rem; }
.article-body td, .article-body th { border: 1px solid var(--border); text-align: start; padding: .7rem; overflow-wrap: anywhere; vertical-align: top; }
.article-body th { background: var(--tint); }
.toc { position: sticky; top: 115px; font-size: .9rem; }
.toc h2 { font-size: 1rem; margin: 0 0 .9rem; }
.toc ol { margin: 0; padding-inline-start: 1.3rem; }
.toc li { margin-bottom: .6rem; color: var(--text-muted); }
.toc a { color: var(--text-muted); text-decoration: none; }
.toc a:hover { color: var(--primary); text-decoration: underline; }
.sidebar-cta { border-top: 1px solid var(--border); margin-top: 1.6rem; padding-top: 1.3rem; }
.sidebar-cta p { color: var(--text-muted); font-size: .86rem; }
.sidebar-cta .button { font-size: .85rem; }
.sources { border-top: 1px solid var(--border); padding-top: .5rem; margin-top: 2rem; font-size: .9rem; }
.journal-footer { background: var(--secondary); color: var(--paper); padding-block: 2.8rem; }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2rem; }
.footer-brand img { width: 235px; }
.journal-footer p { color: #d5dff4; font-size: .88rem; max-width: 500px; margin: .9rem 0; }
.footer-links { display: flex; flex-wrap: wrap; align-content: start; gap: .7rem 1.2rem; }
.journal-footer a { color: var(--paper); font-size: .86rem; }
.copyright { border-top: 1px solid #33467b; padding-top: 1.1rem; margin-top: 1.5rem; font-size: .8rem; color: #d5dff4; }
@media (max-width: 991px) {
    .header-inner { justify-content: center; gap: 1rem; }
    .journal-nav { justify-content: center; }
    .article-layout { grid-template-columns: 1fr; gap: 1.5rem; }
    .toc { position: static; order: -1; border-bottom: 1px solid var(--border); padding-bottom: 1.3rem; }
    .toc ol { columns: 2; column-gap: 2rem; }
    .toc li { break-inside: avoid; }
    .sidebar-cta { display: none; }
    .article-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .wrap { width: calc(100% - 2rem); }
    .brand img { width: 185px; }
    .header-inner { padding-block: .8rem; gap: .8rem; }
    .journal-nav { gap: .35rem 1rem; font-size: .75rem; }
    .journal-nav .button { padding: .45rem .65rem; }
    .featured { grid-template-columns: 1fr; }
    .featured-art { min-height: 220px; order: -1; padding: 1.2rem; }
    .featured-art img { width: 145px; height: 215px; }
    .article-list, .library-note, .footer-inner { grid-template-columns: 1fr; }
    .library-note { gap: .7rem; }
    .article-hero { padding-top: 1.5rem; }
    .toc ol { columns: 1; }
    .article-layout { padding-top: 1.8rem; }
    .article-body { font-size: 1rem; }
    .article-body table { font-size: .78rem; }
    .article-body td, .article-body th { padding: .4rem; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .button { transition: none; }
}
@media print {
    .journal-header, .journal-footer, .toc, .skip-link, .breadcrumb { display: none; }
    body, .article-body { background: white; color: black; }
    .wrap { width: 100%; }
    .article-layout { display: block; padding: 0; }
    .article-body { border: 0; box-shadow: none; padding: 0; }
    a { color: inherit; }
    h2, h3 { break-after: avoid; }
}
