/* ==========================================================================
   Weekly Mardan Post — Stylesheet
   Design tokens grounded in the paper's own letterhead:
   Wire Magenta (masthead "Mardan"), Ink Navy ("Post" + structure),
   Signal Cyan (megaphone icon), warm Paper background (newsprint).
   ========================================================================== */

:root {
  --ink: #1b2456;
  --ink-black: #17171c;
  --wire: #8e1d6e;
  --wire-light: #b23f96;
  --signal: #178da6;
  --signal-light: #3fb8d4;
  --paper: #f6f5f0;
  --surface: #ffffff;
  --rule: #dedbd1;
  --rule-strong: #c9c5b8;
  --muted: #6b6b76;
  --breaking-ink: #1b2456;

  --font-display: 'Newsreader', Georgia, serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 3px;
  --radius-md: 5px;
  --container: 1240px;
  --shadow-float: 0 8px 24px rgba(27, 36, 86, 0.14);
}

.dark-mode {
  --ink: #eceaf5;
  --ink-black: #f2f1f7;
  --wire: #d972b8;
  --signal: #59c9e3;
  --paper: #14151d;
  --surface: #1d1e29;
  --rule: #34364a;
  --rule-strong: #454763;
  --muted: #a3a2b3;
}

/* ---- Reset ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-black);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s ease, color .25s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 1rem; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.page-section { padding: 36px 0 64px; }

h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 600; line-height: 1.22; margin: 0 0 .5em; color: var(--ink); }
p { margin: 0 0 1em; max-width: 74ch; }

/* ---- Buttons & small controls ---------------------------------------- */
.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .95rem; border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--wire); color: #fff; }
.btn-primary:hover { background: var(--ink); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-block { width: 100%; justify-content: center; }
.icon-btn {
  background: none; border: none; color: var(--ink); font-size: 1.05rem;
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
}
.icon-btn:hover { background: rgba(27,36,86,.08); }
.dark-mode .icon-btn:hover { background: rgba(255,255,255,.08); }

.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: .72rem; font-weight: 600; background: var(--ink); color: #fff;
}
.category-badge { background: var(--wire); }
.category-badge.small { padding: 2px 9px; font-size: .68rem; }
.badge-breaking { position: absolute; top: 10px; left: 10px; background: var(--breaking-ink); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header { background: var(--surface); position: sticky; top: 0; z-index: 200; transition: box-shadow .2s; }
.site-header.scrolled { box-shadow: var(--shadow-float); }

.top-bar { background: var(--ink); color: rgba(255,255,255,.85); font-size: .8rem; }
.dark-mode .top-bar { background: #0d0e14; }
.top-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 7px 20px; flex-wrap: wrap; }
.top-bar-date { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.top-bar-contact { display: flex; gap: 18px; }
.top-bar-contact a { display: flex; align-items: center; gap: 6px; }
.top-bar-contact a:hover, .top-bar-date, .top-bar-actions a:hover { color: #fff; }
.top-bar-actions { display: flex; align-items: center; gap: 14px; }
.social-links { display: flex; gap: 10px; }
.social-links a { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.12); font-size: .78rem; }
.social-links a:hover { background: var(--signal); }
.top-bar .icon-btn { color: rgba(255,255,255,.85); width: 30px; height: 30px; }
.top-bar .icon-btn:hover { background: rgba(255,255,255,.14); color: #fff; }
.top-bar-admin { display: flex; align-items: center; gap: 6px; }

.masthead { border-bottom: 1px solid var(--rule); padding: 22px 0; }
.masthead-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.masthead-left, .masthead-right { display: flex; flex-direction: column; gap: 6px; font-family: var(--font-display); font-style: italic; color: var(--ink); font-size: .95rem; }
.masthead-right { align-items: flex-end; text-align: right; }
.kicker { font-size: 1.15rem; }
.chief-editor-tag { font-style: normal; font-family: var(--font-body); font-size: .72rem; color: var(--muted); line-height: 1.4; }
.chief-editor-tag strong { color: var(--ink); font-weight: 600; }
.location-pin { font-style: normal; font-family: var(--font-body); font-size: .82rem; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.masthead-center { text-align: center; }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-icon { color: var(--signal); font-size: 2rem; transform: rotate(-8deg); }
.logo-text { font-family: var(--font-body); font-weight: 900; font-size: 2.7rem; letter-spacing: -.02em; line-height: 1; }
.logo-mardan { color: var(--wire); }
.logo-post { color: var(--ink); }
.masthead-tagline { font-family: var(--font-display); font-style: italic; color: var(--muted); font-size: .85rem; margin: 6px 0 0; }
.footer-logo .logo-text { font-size: 1.8rem; }
.footer-logo .logo-icon { font-size: 1.4rem; }

.lang-toggle { display: inline-flex; border: 1px solid var(--rule-strong); border-radius: var(--radius-sm); overflow: hidden; }
.lang-btn { background: none; border: none; padding: 5px 12px; font-size: .78rem; color: var(--muted); font-family: var(--font-body); }
.lang-btn.active { background: var(--ink); color: #fff; }

.main-nav { border-bottom: 1px solid var(--rule); }
.main-nav-inner { display: flex; align-items: center; gap: 24px; padding: 0; position: relative; }
.nav-links { display: flex; flex-wrap: wrap; }
.nav-links li a { display: block; padding: 15px 16px; font-weight: 600; font-size: .92rem; color: var(--ink); border-bottom: 2px solid transparent; }
.nav-links li a:hover { color: var(--wire); border-bottom-color: var(--wire); }
.nav-search { margin-left: auto; position: relative; display: flex; align-items: center; }
.search-box { display: none; position: absolute; right: 0; top: 46px; width: 320px; background: var(--surface); border: 1px solid var(--rule-strong); border-radius: var(--radius-md); box-shadow: var(--shadow-float); padding: 10px; z-index: 50; }
.search-box.open { display: block; }
.search-box input { width: 100%; padding: 10px 12px; border: 1px solid var(--rule); border-radius: var(--radius-sm); background: var(--paper); color: var(--ink-black); }
.search-suggestions { margin-top: 6px; max-height: 320px; overflow-y: auto; }
.search-suggestions.open { border-top: 1px solid var(--rule); padding-top: 6px; }
.search-suggestions a { display: flex; flex-direction: column; padding: 8px 6px; border-radius: var(--radius-sm); gap: 2px; }
.search-suggestions a:hover { background: var(--paper); }
.search-suggestions a strong { font-weight: 600; font-size: .88rem; }
.search-suggestions a span { font-size: .74rem; color: var(--wire); }
.search-suggestions .no-results { padding: 10px 6px; color: var(--muted); font-size: .85rem; }

.hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 38px; height: 38px; background: none; border: none; }
.hamburger span { display: block; height: 2px; width: 22px; background: var(--ink); transition: transform .2s, opacity .2s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.breaking-ticker { background: var(--breaking-ink); color: #fff; }
.ticker-inner { display: flex; align-items: center; padding: 0; }
.ticker-label { flex-shrink: 0; background: var(--wire); padding: 8px 16px; font-weight: 700; font-size: .8rem; display: flex; align-items: center; gap: 6px; }
.ticker-viewport { overflow: hidden; flex: 1; padding: 8px 0; }
.ticker-track { display: flex; width: max-content; animation: ticker-scroll 38s linear infinite; }
.ticker-viewport:hover .ticker-track { animation-play-state: paused; }
.ticker-item { padding: 0 32px; font-size: .85rem; white-space: nowrap; border-right: 1px solid rgba(255,255,255,.25); }
.ticker-item:hover { color: var(--signal-light); }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.reading-progress-bar { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--wire); z-index: 999; transition: width .1s linear; }

/* ==========================================================================
   Layout: content + sidebar
   ========================================================================== */
.content-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; margin-top: 8px; }
.sidebar { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 26px; }

.section-header { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin-bottom: 20px; }
.section-header h2 { margin: 0; font-size: 1.5rem; }
.view-all { font-size: .82rem; font-weight: 600; color: var(--wire); }
.view-all:hover { text-decoration: underline; }
.category-section { margin-bottom: 44px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; margin-bottom: 48px; }
.hero-main {
  min-height: 440px; border-radius: var(--radius-md); background-size: cover; background-position: center;
  position: relative; display: flex; align-items: flex-end; overflow: hidden;
}
.hero-main::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15,17,35,.92) 0%, rgba(15,17,35,.45) 55%, rgba(15,17,35,.05) 100%); }
.hero-link { position: relative; z-index: 1; padding: 32px; color: #fff; display: block; }
.hero-title { color: #fff; font-size: 2.1rem; margin: 10px 0; max-width: 18ch; }
.hero-excerpt { color: rgba(255,255,255,.82); max-width: 55ch; }
.hero-meta { display: flex; gap: 16px; font-size: .8rem; color: rgba(255,255,255,.75); }
.hero-meta span { display: flex; align-items: center; gap: 5px; }
.hero-side { display: flex; flex-direction: column; gap: 16px; }
.hero-side-card a { display: flex; gap: 14px; }
.hero-side-card img { width: 110px; height: 84px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.hero-side-card h3 { font-size: 1rem; margin: 6px 0 4px; line-height: 1.3; }
.hero-side-card:not(:last-child) { border-bottom: 1px solid var(--rule); padding-bottom: 16px; }
.meta-time { font-size: .74rem; color: var(--muted); }

/* ==========================================================================
   Article grid / cards
   ========================================================================== */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.article-card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-md); overflow: hidden; transition: border-color .2s, transform .2s; }
.article-card:hover { border-color: var(--wire); transform: translateY(-3px); }
.card-image { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.article-card:hover .card-image img { transform: scale(1.06); }
.card-body { padding: 16px; }
.card-body h3 { font-size: 1.05rem; margin: 8px 0 6px; line-height: 1.3; }
.card-excerpt { font-size: .86rem; color: var(--muted); margin-bottom: 10px; }
.card-meta { display: flex; gap: 14px; font-size: .74rem; color: var(--muted); border-top: 1px solid var(--rule); padding-top: 10px; }
.card-meta span { display: flex; align-items: center; gap: 5px; }

/* ==========================================================================
   Sidebar widgets
   ========================================================================== */
.widget { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-md); padding: 20px; }
.widget-title { display: flex; align-items: center; gap: 8px; font-size: 1.02rem; border-bottom: 1px solid var(--rule); padding-bottom: 12px; margin-bottom: 14px; }
.widget-title i { color: var(--signal); }
.trending-list li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.trending-list li:last-child { border-bottom: none; }
.trending-rank { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--rule-strong); flex-shrink: 0; width: 26px; }
.trending-list a { font-size: .88rem; font-weight: 500; line-height: 1.35; }
.trending-list a:hover { color: var(--wire); }
.widget-newsletter { background: var(--ink); color: #fff; }
.widget-newsletter .widget-title { color: #fff; border-color: rgba(255,255,255,.2); }
.widget-newsletter p { color: rgba(255,255,255,.75); font-size: .86rem; }
.category-list li { display: flex; }
.category-list a { display: flex; justify-content: space-between; width: 100%; padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: .9rem; font-weight: 500; }
.category-list li:last-child a { border-bottom: none; }
.category-list a:hover { color: var(--wire); }
.category-list a span { color: var(--muted); font-size: .8rem; }
.social-grid { display: flex; flex-direction: column; gap: 8px; }
.social-btn { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); font-size: .85rem; font-weight: 600; background: var(--paper); }
.social-btn.fb:hover { background: #1877f2; color: #fff; }
.social-btn.tw:hover { background: #000; color: #fff; }
.social-btn.wa:hover { background: #25d366; color: #fff; }

/* ==========================================================================
   Forms (newsletter / comment / contact)
   ========================================================================== */
.newsletter-form { display: flex; gap: 10px; }
.newsletter-form input { flex: 1; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--rule-strong); background: var(--surface); color: var(--ink-black); min-width: 0; }
.newsletter-form button { background: var(--wire); color: #fff; border: none; padding: 0 20px; border-radius: var(--radius-sm); font-weight: 600; white-space: nowrap; }
.newsletter-form button:hover { background: var(--signal); }
.newsletter-form.vertical { flex-direction: column; }
.widget-newsletter input { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.25); color: #fff; }
.widget-newsletter input::placeholder { color: rgba(255,255,255,.5); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
input[type="text"], input[type="email"], select, textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--rule-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink-black); margin-bottom: 12px;
}
textarea { resize: vertical; }
label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: 6px; color: var(--ink); }
.checkbox-label { display: flex; align-items: center; gap: 8px; font-weight: 500; margin: 10px 0; }
.checkbox-label input { width: auto; margin: 0; }

.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: .9rem; }
.alert-success { background: rgba(23,141,166,.12); color: var(--signal); border: 1px solid var(--signal); }
.alert-error { background: rgba(142,29,110,.1); color: var(--wire); border: 1px solid var(--wire); }
.alert ul { margin: 0; padding-left: 18px; list-style: disc; }

/* ==========================================================================
   Article detail page
   ========================================================================== */
.breadcrumb { font-size: .82rem; color: var(--muted); margin-bottom: 20px; }
.breadcrumb a:hover { color: var(--wire); }
.article-title { font-size: 2.1rem; max-width: 24ch; }
.article-meta { display: flex; flex-wrap: wrap; gap: 18px; font-size: .82rem; color: var(--muted); border-bottom: 1px solid var(--rule); padding-bottom: 18px; margin-bottom: 18px; }
.article-meta span { display: flex; align-items: center; gap: 6px; }
.share-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; font-size: .85rem; color: var(--muted); }
.share-btn { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--paper); border: 1px solid var(--rule); color: var(--ink); }
.share-btn.fb:hover { background: #1877f2; color: #fff; border-color: #1877f2; }
.share-btn.tw:hover { background: #000; color: #fff; border-color: #000; }
.share-btn.wa:hover { background: #25d366; color: #fff; border-color: #25d366; }
.share-btn.copy:hover { background: var(--signal); color: #fff; border-color: var(--signal); }
.article-image { margin: 0 0 24px; }
.article-image img { width: 100%; border-radius: var(--radius-md); }
.article-body { font-family: var(--font-display); font-size: 1.12rem; line-height: 1.8; color: var(--ink-black); max-width: 68ch; }
.article-body p { margin: 0 0 1.3em; }
.article-body a { color: var(--wire); text-decoration: underline; }
.article-body blockquote { border-left: 3px solid var(--wire); margin: 1.5em 0; padding: .3em 0 .3em 1.3em; font-style: italic; color: var(--ink); }
.article-body img { border-radius: var(--radius-sm); margin: 1em 0; }
.article-footer { margin: 30px 0; }
.like-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 999px; border: 1px solid var(--rule-strong); background: var(--surface); font-weight: 600; font-size: .88rem; }
.like-btn:hover, .like-btn.liked { border-color: var(--wire); color: var(--wire); }
.like-btn i { transition: transform .15s; }
.like-btn.liked i { color: var(--wire); }
.author-box { display: flex; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-md); padding: 18px; margin-bottom: 34px; }
.author-avatar { font-size: 2.6rem; color: var(--rule-strong); line-height: 1; }
.author-box h4 { margin: 0 0 3px; font-size: 1rem; }
.author-box p { margin: 0; font-size: .85rem; color: var(--muted); }
.related-articles { margin-bottom: 40px; }
.related-articles h3 { border-bottom: 2px solid var(--ink); padding-bottom: 10px; }
.related-articles .article-grid { grid-template-columns: repeat(3, 1fr); }

.comments-section h3 { display: flex; align-items: center; gap: 10px; }
.comment-form { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-md); padding: 20px; margin: 16px 0 28px; }
.comment-note { font-size: .76rem; color: var(--muted); margin: 0; }
.comment-list { display: flex; flex-direction: column; gap: 18px; }
.comment-item { display: flex; gap: 14px; }
.comment-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--wire); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.comment-body h5 { margin: 0 0 4px; font-size: .92rem; display: flex; align-items: baseline; gap: 8px; }
.comment-body h5 span { font-weight: 400; color: var(--muted); font-size: .74rem; }
.comment-body p { margin: 0; font-size: .9rem; color: var(--ink-black); }
.no-comments { color: var(--muted); font-style: italic; }

/* ==========================================================================
   Category / search / about / contact pages
   ========================================================================== */
.page-header { margin-bottom: 30px; border-bottom: 1px solid var(--rule); padding-bottom: 18px; }
.page-header h1 { font-size: 2rem; margin-bottom: 6px; }
.empty-state { color: var(--muted); padding: 40px 0; text-align: center; }

.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 30px; }
.page-link { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--rule); border-radius: var(--radius-sm); font-size: .85rem; font-weight: 600; }
.page-link:hover { border-color: var(--wire); color: var(--wire); }
.page-link.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.page-dots { display: inline-flex; align-items: center; padding: 0 4px; color: var(--muted); }

.about-content .lead { font-family: var(--font-display); font-size: 1.25rem; font-style: italic; color: var(--ink); }
.editor-card { display: flex; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-md); padding: 20px; margin: 24px 0; }
.editor-card h3 { margin: 0 0 2px; }
.editor-card p { margin: 0; color: var(--muted); }
.office-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 16px; }
.office-card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-md); padding: 20px; }
.office-card h4 { display: flex; align-items: center; gap: 8px; font-size: 1rem; }
.office-card h4 i { color: var(--wire); }

.contact-form { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-md); padding: 24px; }
.footer-phone { display: inline-flex; align-items: center; gap: 6px; color: var(--signal); font-weight: 600; font-size: .88rem; margin-top: 4px; }
.footer-phone:hover { text-decoration: underline; }

.error-404 { text-align: center; padding: 80px 0; }
.error-404 h1 { font-size: 5.5rem; margin-bottom: 0; color: var(--wire); }
.error-404 p { margin: 10px auto 26px; color: var(--muted); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: rgba(255,255,255,.8); margin-top: 60px; }
.dark-mode .site-footer { background: #0d0e14; }
.newsletter-banner { background: var(--wire); padding: 30px 0; }
.newsletter-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; color: #fff; }
.newsletter-inner h3 { color: #fff; margin: 0 0 4px; }
.newsletter-inner p { color: rgba(255,255,255,.85); margin: 0; }
.newsletter-inner form { min-width: 320px; }
.footer-main { padding: 44px 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 28px; }
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer-col p { color: rgba(255,255,255,.65); font-size: .85rem; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul a { font-size: .87rem; color: rgba(255,255,255,.75); }
.footer-col ul a:hover { color: var(--signal-light); }
.footer-about .social-links a { background: rgba(255,255,255,.1); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 16px 0; }
.footer-bottom-inner p { margin: 0; font-size: .78rem; color: rgba(255,255,255,.55); text-align: center; }

.back-to-top {
  position: fixed; bottom: 26px; right: 26px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: #fff; border: none; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-float); opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity .2s, transform .2s; z-index: 150;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--wire); }

.toast-container { position: fixed; bottom: 26px; left: 26px; z-index: 999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--ink); color: #fff; padding: 13px 20px; border-radius: var(--radius-sm);
  font-size: .85rem; box-shadow: var(--shadow-float); opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .25s;
  max-width: 320px;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast-error { background: var(--wire); }
.toast-success { background: var(--signal); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
  .content-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .sidebar .widget { flex: 1 1 300px; }
  .hero-grid { grid-template-columns: 1fr; }
  .article-grid, .related-articles .article-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .office-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .top-bar-contact, .masthead-left .chief-editor-tag { display: none; }
  .masthead-inner { grid-template-columns: auto 1fr auto; }
  .kicker { display: none; }
  .masthead-tagline { display: none; }
  .logo-text { font-size: 1.9rem; }
  .hamburger { display: flex; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); flex-direction: column; border-bottom: 1px solid var(--rule); box-shadow: var(--shadow-float); }
  .nav-links.open { display: flex; }
  .nav-links li a { padding: 14px 20px; border-bottom: 1px solid var(--rule); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .newsletter-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .article-grid, .related-articles .article-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .article-title, .hero-title { font-size: 1.6rem; }
  .masthead-right .location-pin { display: none; }
  .top-bar-inner { justify-content: center; }
  .top-bar-date { display: none; }
}
