/*
Theme Name: Alachpress
Description: An Arabic editorial theme for علاش بريس.
Version: 0.25.0
Requires at least: 6.6
Requires PHP: 8.3
Text Domain: alachpress
License: GPL-2.0-or-later
*/
@font-face {
  font-family: Beiruti;
  font-style: normal;
  font-weight: 200 900;
  /* Keep the first rendered font stable when a slow connection misses the font deadline. */
  font-display: optional;
  src: url("assets/fonts/beiruti-variable.woff2") format("woff2");
}
:root {
  --brand: #175cd3;
  --brand-hover: #1248a6;
  --brand-deep: #0b2a63;
  --brand-light: #edf4ff;
  --sky: #36b5f2;
  --ink: #162844;
  --muted: #526580;
  --red: #c93446;
  --paper: #f5f8fd;
  --line: #dce5f2;
  --white: #fff;
  --sans: Beiruti, Tahoma, Arial, sans-serif;
  --serif: "Noto Naskh Arabic", "Geeza Pro", "Traditional Arabic", serif;
  --reading-size: 22px;
  --section-gap: 48px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
html.history-restoring { scroll-behavior: auto; }
body { margin: 0; background: var(--white); color: var(--ink); font: 19px/1.75 var(--sans); -webkit-font-smoothing: antialiased; }
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; text-decoration: none; text-underline-offset: 5px; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }
button, a, input, summary, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .6; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
::selection { background: var(--ap-tint, #cce2ff); color: var(--brand-deep); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.5; }
h1, h2, h3, h4, h5, h6 { overflow-wrap: anywhere; }
svg { width: 21px; height: 21px; flex: none; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.container { width: min(1280px, calc(100% - 64px)); margin-inline: auto; }
:where(main.container) { padding-block-end: var(--section-gap); }
main.container > .section:last-child { padding-block-end: 0; }
.skip-link { position: fixed; top: -100px; inset-inline-start: 20px; z-index: 100; background: var(--ap-inverse, #0b2a63); color: white; padding: 12px 24px; border-radius: 6px; }
.skip-link:focus { top: 12px; }
.latin { font-family: Arial, sans-serif; font-size: 11px; letter-spacing: 3px; direction: ltr; display: block; }
.utility { background: var(--ap-inverse, #0b2a63); color: #e3eeff; font-size: 14px; }
.utility-inner, .section-heading, .tools, .byline, .article-tools, .footer-bottom, .live-label, .story-meta, .heading-links { display: flex; align-items: center; gap: 16px; }
.utility-inner { justify-content: space-between; min-height: 38px; }
.utility-links { display: flex; gap: 24px; }
.utility .live-label { color: #e3eeff; font-size: 14px; }
.utility .live-dot { background: var(--sky); }
.site-masthead { background: linear-gradient(110deg, var(--ap-surface, #fff) 40%, var(--ap-tint, #f3f7ff)); }
.masthead-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 24px; min-height: 118px; }
.brand { text-align: center; display: inline-block; line-height: 1; text-decoration: none !important; width: 240px; max-width: 100%; }
.brand-picture, .brand-image { display: block; width: 100%; }
.brand-image { height: auto; aspect-ratio: 8 / 3; }
.masthead-note { font-size: 17px; color: var(--muted); max-width: 230px; }
.masthead-note strong { display: block; font-weight: 650; color: var(--brand-deep); font-size: 21px; }
.masthead-inner > .tools { justify-self: end; }
.icon-button { border: 1px solid var(--line); background: var(--ap-surface, white); border-radius: 12px; width: 46px; height: 46px; flex: none; padding: 0; display: inline-flex; align-items: center; justify-content: center; color: var(--brand-deep); text-decoration: none !important; position: relative; transition: background-color .18s, border-color .18s; }
.icon-button:hover { background: var(--brand-light); border-color: var(--brand); }
.icon-button[data-saved="true"] { color: var(--brand); background: var(--brand-light); }
.icon-button[data-saved="true"] svg { fill: currentColor; stroke: white; }
.small-button { min-height: 46px; padding: 8px 18px; border: 1px solid var(--line); background: var(--ap-surface, white); display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-size: 18px; font-weight: 600; text-decoration: none !important; border-radius: 9px; transition: background-color .18s, border-color .18s; }
.small-button:hover { background: var(--brand-light); border-color: var(--brand); color: var(--brand); }
.small-button.primary { background: var(--ap-action, #175cd3); color: white; border-color: var(--brand); }
.small-button.primary:hover { background: var(--ap-action-hover, #1248a6); }
/* A full-height link inside each flex item fixes the original menu baseline. */
.main-nav { background: linear-gradient(100deg, #17489b, var(--ap-action, #175cd3)); position: sticky; top: 0; z-index: 40; box-shadow: 0 4px 16px #0b2a6317; color: white; }
.wp-block-template-part:has(> .main-nav) { display: contents; }
.nav-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 22px; min-height: 68px; }
.main-nav .nav-links { list-style: none; display: flex; align-items: stretch; justify-content: flex-start; gap: 4px; padding: 0; margin: 0; min-width: 0; min-height: 64px; white-space: nowrap; }
.main-nav > .nav-inner > .nav-links { overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: none; }
.main-nav > .nav-inner > .nav-links::-webkit-scrollbar { display: none; }
.main-nav .nav-links > li { display: flex; align-items: stretch; flex: 0 0 auto; padding: 0; margin: 0; }
.main-nav .nav-links > li > a { display: flex; align-items: center; justify-content: center; min-height: 64px; padding: 0 17px; font: 600 20px/1.35 var(--sans); position: relative; color: white; text-decoration: none; border-radius: 0; transition: background-color .18s; }
.main-nav .nav-links > li > a:hover { background: #ffffff14; }
.main-nav .nav-links a[aria-current="page"] { background: #ffffff1c; }
.main-nav .nav-links a[aria-current="page"]::after { content: ""; position: absolute; height: 4px; border-radius: 4px 4px 0 0; background: #8dd8ff; inset-inline: 16px; bottom: 0; }
.main-nav :focus-visible { outline-color: white; outline-offset: -5px; }
.live-label { font-size: 16px; color: var(--brand); white-space: nowrap; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ap-action, #175cd3); display: inline-block; flex: none; }
.nav-inner > .live-label { color: white; border-inline-start: 1px solid var(--ap-line, #ffffff40); padding-inline-start: 22px; min-height: 32px; font-weight: 600; font-size: 18px; }
.nav-inner > .live-label .live-dot { background: var(--ap-tint, #8dd8ff); }
.mobile-menu { display: none; position: relative; }
.mobile-menu summary { list-style: none; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 1px solid var(--ap-line, #ffffff40); border-radius: 9px; cursor: pointer; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu[open] summary { background: var(--ap-surface, #ffffff1c); }
.mobile-menu-panel { position: absolute; top: calc(100% + 8px); inset-inline-start: 0; background: var(--ap-surface, white); color: var(--ink); border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: 0 0 14px 14px; padding: 16px; width: min(360px, calc(100vw - 40px)); max-height: calc(100vh - 220px); max-height: var(--menu-height, calc(100svh - 220px)); overflow-y: auto; overscroll-behavior-y: contain; scroll-padding-block: 12px; box-shadow: 0 18px 45px #0b2a6324; }
.mobile-menu-panel .nav-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; min-height: 0; white-space: normal; }
.mobile-menu-panel .nav-links > li { min-width: 0; }
.mobile-menu-panel .nav-links > li > a { justify-content: flex-start; color: var(--ink); padding: 10px 12px; min-height: 48px; font-size: 19px; border-radius: 7px; width: 100%; overflow-wrap: anywhere; }
.mobile-menu-panel .nav-links > li > a:hover, .mobile-menu-panel .nav-links a[aria-current="page"] { color: var(--brand); background: var(--brand-light); }
.mobile-menu-panel .nav-links a::after { display: none; }
.mobile-menu-panel :focus-visible { outline-color: var(--brand); outline-offset: -2px; }
.mobile-menu-panel form { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; }
.mobile-menu-panel label { display: block; font-size: 18px; }
.mobile-menu-panel input { width: 100%; min-height: 46px; margin-block: 8px 12px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); }
.mobile-menu-panel > .small-button { display: flex; margin-block-start: 16px; }
.mobile-menu-panel { padding-block-end: max(16px, env(safe-area-inset-bottom)); }
.mobile-menu-news { display: flex; min-height: 44px; margin-block-end: 12px; }
.topic-bar { display: flex; gap: 12px; align-items: center; padding-block: 18px; color: var(--muted); font-size: 16px; overflow-x: auto; white-space: nowrap; scrollbar-width: thin; }
.topic-bar strong { color: var(--brand-deep); font-weight: 600; }
.topic-bar a { display: inline-flex; align-items: center; min-height: 44px; padding: 3px 13px; border: 1px solid var(--ap-line, #d3e3fd); border-radius: 30px; color: var(--brand); background: var(--brand-light); }
.topic-bar a:hover { background: var(--ap-tint, #deebff); text-decoration: none; }
/* Creative dimensions include an independent 18px label reservation. */
.ad-slot { position: relative; height: 110px; min-height: 110px; padding-top: 18px; border: 1px dashed var(--ap-line, #c9d5e6); background: var(--paper); display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 4px; color: var(--muted); overflow: hidden; margin-block: 16px 30px; text-align: center; }
.ad-slot.tall { height: 270px; min-height: 270px; }
.ad-slot.rail { height: 620px; min-height: 620px; margin: 0; width: 100%; }
.ad-slot > a { height: 100%; width: 100%; display: flex; align-items: center; justify-content: center; }
.ad-slot .ad-label { font-size: 12px; position: absolute; top: 2px; inset-inline: 0; z-index: 1; background: var(--paper); line-height: 1.2; }
.ad-slot strong { font-size: 16px; font-weight: 500; }
.ad-slot .ad-size { font-family: Arial, sans-serif; font-size: 10px; letter-spacing: 1px; }
.ad-creative { max-width: 100%; max-height: 100%; object-fit: contain; }
.edition-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 4px 20px; border-bottom: 2px solid var(--brand-deep); margin-bottom: 28px; }
.edition-heading h1 { font-size: 30px; font-weight: 700; color: var(--brand-deep); }
.edition-heading p { font-size: 18px; color: var(--muted); margin-top: 2px; }
.edition-heading .edition-number { font-size: 16px; color: var(--brand); padding: 5px 12px; background: var(--brand-light); border-radius: 6px; }
.lead-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .85fr) minmax(280px, .9fr); gap: 28px; align-items: start; }
.lead-grid > *, .story-grid > *, .article-layout > * { min-width: 0; }
.image-wrap { overflow: hidden; position: relative; display: block; background: var(--paper); aspect-ratio: 16/10; border-radius: 12px; }
.image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
a.image-wrap:hover img { transform: scale(1.025); }
.category-label { display: inline-flex; align-items: center; color: var(--brand); background: var(--brand-light); padding: 3px 10px; border-radius: 5px; font-size: 16px; font-weight: 600; line-height: 1.55; margin-block: 17px 10px; }
.lead-main h2 { font-size: clamp(30px, 2.5vw, 38px); font-weight: 700; line-height: 1.5; margin-bottom: 12px; text-wrap: pretty; }
.lead-main h2 a:hover, .story-card :is(h2, h3) a:hover { color: var(--brand); text-decoration: none; }
.story-excerpt { color: var(--muted); font-family: var(--serif); font-size: 21px; line-height: 1.85; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-block: 12px 17px; }
.story-meta { font-size: 15px; color: var(--muted); gap: 10px; flex-wrap: wrap; line-height: 1.5; }
.story-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: #8999b0; }
.secondary-column { display: grid; gap: 28px; align-content: start; border-inline-start: 1px solid var(--line); padding-inline-start: 26px; }
.story-card { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.story-card :is(h2, h3) { font-size: 23px; font-weight: 600; line-height: 1.65; text-wrap: pretty; }
.story-card .category-label { margin-block: 14px 8px; }
.story-card .story-meta { margin-top: 12px; }
.news-rail { border: 1px solid var(--ap-line, #d6e4fa); border-radius: 14px; background: var(--ap-tint, #f3f7ff); box-shadow: 0 8px 24px #1a4c9b08; overflow: hidden; }
.rail-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; padding: 17px 20px; background: var(--ap-tint, #e7f0ff); border-bottom: 1px solid var(--ap-line, #d6e4fa); }
.rail-heading h2 { font-size: 25px; font-weight: 700; color: var(--brand-deep); }
.rail-heading span { font: 500 15px/1.5 var(--sans); color: var(--brand-hover); }
.timeline-list { list-style: none; margin: 0; padding: 0; }
.timeline-list li { position: relative; border-bottom: 1px solid var(--ap-line, #dce7f8); padding: 15px 20px; }
.timeline-list time { display: inline-flex; align-items: center; gap: 7px; font: 500 15px/1.5 var(--sans); color: var(--brand); direction: ltr; unicode-bidi: isolate; }
.timeline-list time::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ap-action, #175cd3); }
.timeline-list a { display: block; margin-top: 7px; font: 500 20px/1.75 var(--sans); color: var(--ink); text-align: start; overflow-wrap: break-word; text-wrap: pretty; }
.timeline-list a:hover { color: var(--brand); }
.rail-more { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 10px 16px; font-size: 18px; font-weight: 600; color: var(--brand); background: var(--ap-tint, #e7f0ff); }
.section { padding-block: 42px 18px; }
.section-heading { justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.section-heading h2 { font-size: 30px; font-weight: 700; display: flex; align-items: center; gap: 12px; color: var(--brand-deep); }
.section-heading h2::before { content: ""; width: 5px; height: 26px; border-radius: 4px; background: var(--ap-action, #175cd3); }
.heading-links { color: var(--muted); font-size: 17px; gap: 20px; }
.text-link { font-size: 18px; color: var(--brand); display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.text-link svg { width: 18px; height: 18px; }
.story-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; }
.section-note { font-size: 17px; color: var(--muted); max-width: 600px; }
.region-band { background: radial-gradient(ellipse at 10% 10%, var(--ap-tint, #d5e8ff) 0, transparent 65%), linear-gradient(115deg, var(--ap-tint, #edf5ff), var(--ap-tint, #e6efff)); border-block: 1px solid var(--ap-line, #d7e6fc); padding-block: 40px; margin-top: 30px; }
.region-header { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 26px; }
.region-header h2 { font-size: 34px; line-height: 1.4; color: var(--brand-deep); }
.region-header p { font-size: 19px; color: var(--muted); margin-top: 8px; }
.region-header select { padding: 9px 16px; background: var(--ap-surface, white); border: 1px solid var(--line); min-width: 200px; max-width: 100%; border-radius: 9px; color: var(--ink); }
.region-links { display: flex; gap: 12px; flex-wrap: wrap; }
.region-links a { border: 1px solid var(--ap-line, #c1d6f6); background: var(--ap-surface, white); padding: 10px 23px; font-size: 20px; font-weight: 600; color: var(--brand-hover); border-radius: 9px; box-shadow: 0 3px 8px #175cd309; }
.region-links a:hover { border-color: var(--brand); background: var(--ap-action, #175cd3); color: white; text-decoration: none; }
.video-section { margin-block: 40px; background: radial-gradient(ellipse at 0 0, #194d9c 0, transparent 65%), #091f47; color: white; padding-block: 40px; }
.video-section .section-heading { border-color: #ffffff30; }
.video-section .section-heading h2 { color: white; }
.video-section .section-heading h2::before { background: #8dd8ff; }
.video-section .text-link, .video-section .section-note { color: #c7dcff; }
.video-section .category-label { color: #d3e9ff; background: #ffffff12; }
.video-section .story-meta { color: #bfd2f0; }
.video-section .story-card { border-color: #ffffff24; }
.video-section .story-card a:hover { color: #a7dcff; }
.play-badge { position: absolute; bottom: 15px; inset-inline-start: 15px; width: 46px; height: 46px; z-index: 2; pointer-events: none; }
.play-badge svg { width: 100%; height: 100%; }
.play-badge::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 2px solid var(--red);
  border-top-color: transparent;
  border-radius: 50%;
  opacity: 0;
  visibility: hidden;
}
@media (hover: hover) and (pointer: fine) {
  :is(.story-card, .lead-main):hover .play-badge::after { opacity: 1; visibility: visible; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  :is(.story-card, .lead-main):hover .play-badge::after { animation: ap-play-ring-spin 1.1s linear infinite; }
}
@keyframes ap-play-ring-spin { to { transform: rotate(1turn); } }
.newsletter { margin-block: 38px 48px; padding: 32px 36px; border: 1px solid var(--ap-line, #cfe0fa); border-inline-start: 4px solid var(--brand); border-radius: 12px; display: flex; align-items: center; justify-content: space-between; gap: 28px; background: linear-gradient(110deg, var(--ap-surface, white), var(--ap-tint, #edf4ff)); }
.newsletter h2 { font-size: 29px; margin-bottom: 8px; color: var(--brand-deep); }
.newsletter p { font-size: 19px; color: var(--muted); }
.site-footer { border-top: 4px solid var(--brand); background: var(--ap-inverse, #0b2a63); color: #e3edff; padding-top: 40px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 60px; padding-bottom: 36px; }
.footer-brand .brand { width: 208px; text-align: start; }
.footer-brand p { font-size: 18px; color: #c4d4ef; max-width: 340px; margin-top: 20px; }
.footer-links h3 { font-size: 22px; margin-bottom: 18px; color: white; }
.footer-links div { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-size: 18px; color: #cbdcfa; }
.footer-links a:hover { color: white; }
.footer-bottom { justify-content: space-between; border-top: 1px solid #ffffff28; padding-block: 22px; font-size: 15px; color: #c4d4ef; }
.breadcrumb { display: flex; gap: 10px; flex-wrap: wrap; font-size: 17px; color: var(--muted); margin-block: 24px; }
.breadcrumb a { color: var(--brand); }
.article-heading { max-width: 980px; margin-inline: auto; text-align: center; padding-block: 10px 32px; }
.article-heading .category-label { margin-top: 0; }
.article-heading h1 { font-size: clamp(32px, 3.3vw, 46px); line-height: 1.6; font-weight: 700; max-width: 960px; margin: auto; text-wrap: pretty; }
.article-standfirst { font-family: var(--serif); font-size: 25px; color: var(--muted); max-width: 760px; margin: 22px auto 26px; line-height: 1.85; }
.byline { justify-content: center; flex-wrap: wrap; font-size: 17px; color: var(--muted); }
.byline strong { color: var(--ink); font-size: 18px; font-weight: 600; }
.article-tools { justify-content: center; border-block: 1px solid var(--line); padding-block: 16px; margin-bottom: 34px; }
.article-tools .font-tools { display: flex; align-items: center; gap: 7px; border-inline-start: 1px solid var(--line); padding-inline-start: 20px; }
.font-tools button { width: 44px; height: 44px; flex: none; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); font-family: Arial, sans-serif; font-size: 15px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 760px) 300px; justify-content: space-between; gap: 60px; }
.article-layout + .section { padding-block: var(--section-gap) 0; }
.article-image { width: 100%; aspect-ratio: 16/10; object-fit: cover; background: var(--paper); border-radius: 12px; }
.article-figure figcaption { font-size: 16px; color: var(--muted); padding-block: 12px; border-bottom: 1px solid var(--line); }
.article-text { font-family: var(--serif); font-size: var(--reading-size); line-height: 2.05; margin-top: 28px; overflow-wrap: anywhere; }
.article-text p { margin-block: 0 23px; }
.article-text h2 { font-family: var(--sans); font-size: 29px; line-height: 1.7; margin-block: 33px 15px; }
.article-text h3 { font-family: var(--sans); font-size: 25px; margin-block: 27px 13px; }
.article-text a { color: var(--brand); text-decoration: underline; }
.article-text ul, .article-text ol { padding-inline-start: 28px; margin-block: 20px; }
.article-text blockquote { margin: 26px 0; padding: 18px 26px; border-inline-start: 4px solid var(--brand); border-radius: 0 8px 8px 0; background: var(--brand-light); }
.article-text img { max-height: 650px; object-fit: contain; margin-block: 15px; }
.article-text iframe, .article-text video { max-width: 100%; }
.article-text .wp-caption { max-width: 100%; }
.article-text .wp-caption-text { font-size: 16px; color: var(--muted); }
.takeaways { padding: 24px 28px; margin-block: 28px; background: var(--brand-light); border-inline-start: 4px solid var(--brand); border-radius: 8px; font-family: var(--sans); }
.takeaways h2 { font-size: 24px; margin-bottom: 10px; color: var(--brand-deep); }
.takeaways p { font-size: 20px; line-height: 1.85; }
.sticky-rail { position: sticky; top: 90px; }
.article-sidebar .story-card { margin-top: 30px; }
.article-tags { display: flex; gap: 8px; flex-wrap: wrap; padding-block: 24px; border-top: 1px solid var(--line); }
.article-tags a { font-size: 17px; padding: 5px 13px; color: var(--brand); background: var(--brand-light); border: 1px solid var(--ap-line, #d3e3fd); border-radius: 5px; }
.discussion { padding-block: 30px; border-top: 1px solid var(--line); }
.discussion h2 { font-size: 30px; margin-bottom: 10px; color: var(--brand-deep); }
.discussion p { font-size: 18px; color: var(--muted); }
.discussion textarea { width: 100%; min-height: 150px; padding: 16px; border: 1px solid var(--line); border-radius: 9px; margin-block: 20px 12px; resize: vertical; background: var(--paper); color: var(--ink); }
.comment-form input:not([type="submit"]):not([type="checkbox"]) { width: 100%; min-height: 46px; padding: 10px; border: 1px solid var(--line); border-radius: 7px; }
.comment-form p { margin-bottom: 15px; }
.comment-form .submit { background: var(--ap-action, #175cd3); color: white; padding: 11px 23px; border: 0; border-radius: 8px; min-height: 46px; }
.discussion-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.comment-total { flex: none; padding: 5px 14px; border-radius: 24px; background: var(--brand-light); color: var(--brand-deep); font-size: 17px; }
.comment-list, .comment-list .children { list-style: none; padding: 0; margin: 0; }
.comment-list .children { margin-inline-start: clamp(12px, 3vw, 30px); padding-inline-start: 15px; border-inline-start: 2px solid var(--line); }
.comment-body { padding: 24px 0; border-bottom: 1px solid var(--line); }
.comment-byline { display: flex; align-items: center; gap: 12px; }
.comment-avatar { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--brand-light); color: var(--brand); font-size: 24px; font-weight: 650; }
.comment-byline strong { display: block; font-size: 20px; overflow-wrap: anywhere; }
.comment-byline time { display: block; font-size: 15px; color: var(--muted); }
.comment-content { margin-block: 14px 18px; overflow-wrap: anywhere; }
.discussion .comment-content p { margin-bottom: 10px; color: var(--ink); font-size: 20px; line-height: 1.9; }
.comment-actions, .comment-votes { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.comment-actions { justify-content: space-between; }
.comment-vote { align-items: center; gap: 7px; min-height: 44px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--muted); font-size: 17px; }
.comment-vote svg { width: 19px; height: 19px; }
.comment-vote[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-light); color: var(--brand); }
.comment-vote[data-comment-vote="-1"][aria-pressed="true"] { border-color: var(--red); background: var(--ap-danger-bg, #fff1f3); color: var(--ap-danger, #ad2336); }
.comment-vote:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.comment-reply-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--brand); font-size: 18px; }
.comment-reply-link svg { width: 17px; height: 17px; }
.comments-empty, .comment-notice { padding: 18px 20px; margin-block: 18px; background: var(--paper); border-radius: 10px; }
.comment-notice { border-inline-start: 3px solid var(--brand); }
.comment-respond { margin-top: 30px; padding: clamp(16px, 3vw, 28px); background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.comment-reply-title { font-size: 27px; color: var(--brand-deep); margin-bottom: 12px; }
.comment-reply-title small { display: inline-block; margin-inline-start: 12px; font-size: 16px; }
.comment-form label { display: block; font-weight: 600; margin-bottom: 7px; }
.comment-form :is(input[type="text"], input[type="email"], textarea) { background: var(--ap-surface, white); }
.discussion .comment-form textarea { margin-block: 0 5px; }
.comment-form small { font-size: 16px; color: var(--muted); }
.discussion .comment-status { margin-top: 14px; color: var(--brand-deep); font-size: 18px; }
.comment-status:empty { display: none; }
.reply-context:not([hidden]) { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; padding: 12px 18px; background: var(--brand-light); color: var(--brand-deep); border-radius: 9px; }
.reply-context button { min-height: 44px; border: 0; background: transparent; color: var(--brand); }
.comment-vote-dialog [data-vote-challenge], .comment-form [data-comment-challenge] { min-height: 65px; margin-block: 18px; }
.comment-secondary-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.comment-report-button { align-items: center; gap: 6px; min-height: 44px; padding: 6px 9px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 17px; }
.comment-report-button svg { width: 18px; height: 18px; }
.comment-report-button:hover:not(:disabled) { color: var(--ap-danger, #ad2336); background: var(--ap-danger-bg, #fff1f3); }
.comment-report-button[data-reported="true"] { color: var(--brand); }
.dialog.comment-report-dialog { width: min(680px, calc(100% - 24px)); max-height: 90dvh; padding: clamp(18px, 3vw, 30px); }
.comment-report-dialog .dialog-heading { margin-bottom: 14px; }
.comment-report-dialog .dialog-heading h2 { font-size: 29px; }
.comment-report-dialog .report-intro { margin-bottom: 18px; font-size: 19px; color: var(--muted); }
.report-comment-preview { margin: 0 0 24px; padding: 14px 18px; border-inline-start: 3px solid var(--brand); border-radius: 8px; background: var(--paper); }
.report-comment-preview strong { display: block; font-size: 18px; margin-bottom: 4px; }
.report-comment-preview p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; font-size: 17px; }
.report-reasons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; min-width: 0; padding: 0; border: 0; margin: 0 0 22px; }
.report-reasons legend { padding: 0; margin-bottom: 12px; font-size: 22px; font-weight: 650; color: var(--brand-deep); }
.report-reason { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--ap-surface, white); font-size: 18px; cursor: pointer; }
.report-reason:hover, .report-reason:has(input:checked) { border-color: var(--brand); background: var(--brand-light); color: var(--brand-deep); }
.report-reason:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }
.report-reason input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--brand); }
.report-details-label { display: block; font-size: 20px; font-weight: 600; color: var(--brand-deep); }
.report-details-label span { font-weight: 400; font-size: 17px; color: var(--muted); }
.discussion .comment-report-dialog textarea { min-height: 100px; margin-block: 8px; background: var(--ap-surface, white); }
.report-details-meta { display: flex; justify-content: space-between; gap: 14px; font-size: 16px; color: var(--muted); }
.report-details-meta small { font-size: inherit; }
#report-details-count { flex: none; white-space: nowrap; }
[data-report-challenge] { min-height: 65px; margin-top: 18px; }
.report-dialog-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.report-dialog-actions .primary { flex: 1; justify-content: center; }
.report-confirmation:not([hidden]) { display: grid; justify-items: center; gap: 16px; padding-block: 26px 14px; text-align: center; }
.report-confirmation h3 { font-size: 29px; color: var(--brand-deep); }
.report-confirmation-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--brand-light); color: var(--brand); }
.report-confirmation-icon svg { width: 32px; height: 32px; stroke-width: 2; }
@media (prefers-reduced-motion: no-preference) {
  .comment-report-dialog[open] { animation: ap-report-enter .18s ease-out; }
  @keyframes ap-report-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
}
@media (max-width: 540px) {
  .discussion-heading { flex-direction: column; gap: 12px; }
  .comment-list .children { margin-inline-start: 6px; padding-inline-start: 8px; }
  .comment-vote { padding-inline: 9px; font-size: 16px; }
  .report-reasons { grid-template-columns: minmax(0, 1fr); }
  .report-dialog-actions { flex-direction: column; }
  .report-dialog-actions .small-button { justify-content: center; }
}
.reading-progress { position: fixed; top: 0; inset-inline: 0; height: 3px; background: var(--sky); transform: scaleX(var(--reading-progress, 0)); transform-origin: right; z-index: 50; }
.dialog { width: min(640px, calc(100% - 32px)); max-height: 80vh; max-height: 80dvh; overflow-y: auto; overscroll-behavior-y: contain; scroll-padding-block: 16px; padding: 28px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: var(--ap-surface, white); }
.dialog::backdrop { background: #081e48bd; backdrop-filter: blur(3px); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; gap: 16px; }
.dialog h2 { font-size: 30px; color: var(--brand-deep); }
.dialog input[type="search"] { width: 100%; min-height: 50px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); color: var(--ink); }
.dialog-list { list-style: none; padding: 0; margin: 20px 0 0; }
.dialog-list li { padding-block: 16px; border-bottom: 1px solid var(--line); }
.dialog-list a { font-size: 22px; font-weight: 550; line-height: 1.7; }
.dialog-list small { display: block; color: var(--muted); font-size: 16px; margin-top: 7px; }
.dialog-list button { font-size: 17px; min-height: 44px; padding: 8px 0; margin-top: 8px; border: 0; color: var(--ap-danger, #a92538); background: transparent; }
.empty-state { color: var(--muted); font-size: 19px; padding-block: 28px; }
.preview-note { background: var(--ap-action, #175cd3); color: white; text-align: center; padding: 7px 16px; font-size: 15px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.js-only { display: none; }
.has-js .js-only { display: inline-flex; }
.archive-heading { padding-block: 28px 34px; }
.archive-heading h1 { font-size: 40px; color: var(--brand-deep); }
.archive-heading p { color: var(--muted); font-size: 20px; margin-top: 8px; }
/* Keep location, title and introduction together; avoid stacking archive padding with breadcrumb margins. */
.category-heading, .news-heading { max-width: 900px; padding-block: 24px 28px; }
.category-heading > .breadcrumb, .news-heading > .breadcrumb { margin-block: 0 12px; font-size: 16px; line-height: 1.5; }
.category-heading h1, .news-heading h1 { line-height: 1.4; }
.category-intro, .news-intro { max-width: 72ch; }
.category-archive-tools, .news-archive-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: 16px; }
.category-archive-tools .text-link, .news-archive-tools .text-link, .tag-hero .text-link { min-height: 44px; }
.category-directory { margin-block: var(--section-gap) 0; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.pagination + .category-directory { margin-block-start: 0; }
.category-directory summary { cursor: pointer; color: var(--brand-deep); font-weight: 650; min-height: 44px; padding-block: 6px; }
.category-directory ul { display: flex; flex-wrap: wrap; gap: 10px 24px; list-style: none; padding: 18px 0 0; margin: 0; }
.category-directory li a { display: inline-flex; align-items: center; min-height: 44px; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding-block: var(--section-gap); }
.pagination:last-child { padding-block-end: 0; }
.navigation.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; min-width: 0; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border: 1px solid var(--line); padding: 7px 15px; border-radius: 7px; }
.page-numbers.current { background: var(--ap-action, #175cd3); color: white; }
body.admin-bar .main-nav, body.admin-bar .reading-progress { top: 32px; }
@media (max-width: 1180px) {
  .lead-grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
  .news-rail { grid-column: 1 / -1; }
  .timeline-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline-list li:nth-child(odd) { border-inline-end: 1px solid var(--ap-line, #dce7f8); }
  .article-layout { gap: 30px; grid-template-columns: minmax(0, 1fr) 280px; }
}
@media (max-width: 1100px) {
  .nav-inner { grid-template-columns: 46px minmax(0, 1fr); gap: 14px; }
  .nav-inner > .live-label { display: none; }
  .mobile-menu { display: block; }
  .main-nav .nav-links > li > a { padding-inline: 15px; }
  .story-grid { gap: 22px; }
}
@media (max-width: 900px) {
  .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 24px; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { display: none; }
}
@media (max-width: 800px) {
  .container { width: calc(100% - 40px); }
  .utility-links { display: none; }
  .masthead-inner { min-height: 104px; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; }
  .masthead-note { display: none; }
  .masthead-inner > .brand { justify-self: start; min-width: 0; text-align: start; }
  .masthead-inner > .brand { width: 200px; }
  .masthead-inner > .tools { gap: 8px; }
  .main-nav .nav-links > li > a { font-size: 19px; }
  .secondary-column { padding-inline-start: 22px; }
  .lead-main h2 { font-size: 32px; }
  .footer-top { gap: 30px; grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand p { max-width: 520px; }
  .newsletter { padding: 26px; }
  .region-header { align-items: flex-start; flex-direction: column; gap: 20px; }
  .region-header h2 { font-size: 31px; }
}
@media (max-width: 782px) {
  body.admin-bar .main-nav, body.admin-bar .reading-progress { top: 46px; }
}
@media (max-width: 760px) { :root { --section-gap: 32px; } }
@media (max-width: 600px) {
  .utility-inner { min-height: 34px; gap: 10px; font-size: 13px; }
  .utility .live-label { font-size: 13px; gap: 7px; }
  .masthead-inner { min-height: 80px; }
  .masthead-inner > .brand { width: 176px; }
  .icon-button { width: 44px; height: 44px; border-radius: 10px; }
  .nav-inner { min-height: 62px; gap: 10px; }
  .main-nav .nav-links { min-height: 60px; }
  .main-nav .nav-links > li > a { min-height: 60px; padding-inline: 14px; }
  .topic-bar { padding-block: 14px; font-size: 16px; gap: 10px; }
  .topic-bar a { padding-inline: 12px; }
  .ad-slot { height: 120px; min-height: 120px; margin-block: 10px 24px; }
  .ad-slot.tall { height: 270px; min-height: 270px; }
  .edition-heading { padding-bottom: 17px; margin-bottom: 22px; }
  .edition-heading h1 { font-size: 27px; }
  .edition-heading p { font-size: 17px; }
  .edition-number { display: none; }
  .lead-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .lead-main h2 { font-size: 33px; line-height: 1.55; }
  .story-excerpt { font-size: 21px; }
  .secondary-column { padding: 0; border: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .story-card :is(h2, h3) { font-size: 21px; line-height: 1.65; }
  .story-card .category-label { font-size: 15px; }
  .story-meta { font-size: 14px; gap: 7px; }
  .timeline-list { grid-template-columns: minmax(0, 1fr); }
  .timeline-list li:nth-child(odd) { border-inline-end: 0; }
  .timeline-list a { font-size: 20px; line-height: 1.75; }
  .rail-heading { padding-inline: 18px; }
  .rail-heading h2 { font-size: 25px; }
  .section { padding-top: 34px; }
  .section-heading { margin-bottom: 22px; gap: 10px 18px; }
  .section-heading h2 { font-size: 27px; }
  .story-grid { gap: 28px 18px; }
  .region-band, .video-section { padding-block: 30px; }
  .region-header h2 { font-size: 30px; }
  .region-header p { font-size: 18px; }
  .region-links { gap: 10px; }
  .region-links a { padding: 8px 17px; font-size: 19px; }
  .newsletter { flex-direction: column; align-items: flex-start; padding: 24px; margin-bottom: 34px; gap: 20px; }
  .newsletter h2 { font-size: 28px; }
  .newsletter p { font-size: 18px; }
  .footer-top { gap: 28px 20px; }
  .footer-links h3 { font-size: 21px; }
  .footer-links div { grid-template-columns: 1fr; font-size: 18px; }
  .footer-bottom { display: block; font-size: 14px; }
  .footer-bottom span { display: block; margin-top: 8px; }
  .article-heading h1 { font-size: 33px; line-height: 1.65; }
  .article-standfirst { font-size: 23px; margin-block: 18px 22px; }
  .article-tools { flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-bottom: 26px; }
  .article-tools .small-button { font-size: 17px; padding: 8px 12px; }
  .article-tools .font-tools { padding-inline-start: 10px; gap: 5px; }
  .article-text { font-size: var(--reading-size); line-height: 2; }
  .article-text h2 { font-size: 28px; }
  .byline { gap: 8px; font-size: 16px; }
  .byline strong { font-size: 17px; }
  .breadcrumb { font-size: 16px; gap: 8px; margin-block: 18px; }
  .category-heading, .news-heading { padding-block: 18px 24px; }
  .category-heading > .breadcrumb, .news-heading > .breadcrumb { margin-block-end: 8px; font-size: 15px; }
  .takeaways { padding: 20px; }
  .dialog { padding: 22px; }
  .dialog h2 { font-size: 27px; }
  .archive-heading h1 { font-size: 34px; }
  .ad-size { display: none; }
  body.admin-bar .main-nav, body.admin-bar .reading-progress { top: 0; }
}
@media (max-width: 360px) {
  .container { width: calc(100% - 32px); }
  .masthead-inner > .brand { width: 152px; }
  .masthead-inner > .tools { gap: 6px; }
  .utility-inner > .live-label { display: none; }
  .story-card :is(h2, h3) { font-size: 20px; }
}
@media (max-width: 380px) {
  .story-grid, .secondary-column { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .image-wrap img { transform: none !important; }
  .play-badge::after { transform: none; transition: none; }
}

/* Summaries may truncate; opened stories and page headings remain complete. */
.lead-main h2, .story-card :is(h2, h3),
.timeline-list a, .dialog-list li > a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: anywhere;
}
.video-player { position: relative; isolation: isolate; width: 100%; aspect-ratio: 16/9; min-height: 200px; overflow: hidden; border-radius: 12px; background: #07152c; color: #fff; }
.video-player[data-video-context="card"] { aspect-ratio: 16/10; min-height: 0; }
.video-player > :is(.video-poster, video, iframe) { display: block; position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-player .video-poster { object-fit: cover; z-index: 0; }
.video-player > :is(video, iframe) { z-index: 1; }
.video-play-overlay { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; padding: 12px; border: 0; background: linear-gradient(transparent 25%, #07152c85); color: #fff; align-items: center; justify-content: center; flex-direction: column; gap: 6px; }
.video-play-overlay:hover { background: #07152c50; }
.video-play-overlay:focus-visible { outline: 3px solid #8dd8ff; outline-offset: -5px; }
.video-play-icon { width: 68px; height: 68px; flex: none; filter: drop-shadow(0 2px 6px #0006); }
.video-play-overlay span { font-size: 19px; font-weight: 650; text-shadow: 0 1px 4px #000; }
.video-player.is-playing { min-height: 200px; }
.video-fallback { position: absolute; inset: auto 12px 12px; z-index: 2; padding: 8px; background: var(--ap-inverse, #0b2a63); color: #fff; text-align: center; }
.video-source-link { display: inline-block; margin-block: 12px 20px; color: var(--brand); text-decoration: underline; }
.video-unavailable { padding: 14px 18px; margin-bottom: 22px; border-inline-start: 3px solid var(--brand); background: var(--paper); }
.dialog.video-dialog { width: min(960px, calc(100% - 24px)); padding: 18px; }
.video-dialog .dialog-heading { gap: 12px; margin-bottom: 14px; }
.video-dialog .dialog-heading h2 { font-size: 24px; }
.video-dialog .icon-button { flex: none; font-size: 30px; }
.video-dialog .video-source-link { margin-bottom: 0; }

/* Compact consent notice: reading and keyboard navigation remain available. */
.cookie-notice[hidden], [data-cookie-reset][hidden] { display: none !important; }
.cookie-notice {
  position: fixed; inset-inline: 16px; bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 60; max-width: 780px; margin-inline: auto; display: flex; align-items: center; gap: 20px;
  padding: 16px 20px; background: var(--ap-surface, #fff); color: var(--ap-heading, #162844); border: 1px solid var(--ap-line, #d8e4f6);
  border-inline-start: 4px solid #175cd3; border-radius: 12px; box-shadow: 0 8px 40px #0b2a6326;
  max-height: 40svh; overflow-y: auto; font-size: 18px; line-height: 1.5;
}
.cookie-notice p { margin: 0; }
.cookie-notice a { color: var(--ap-link, #175cd3); text-decoration: underline; text-underline-offset: 3px; }
.cookie-notice .small-button { flex-shrink: 0; min-height: 44px; min-width: 84px; justify-content: center; }
.cookie-settings { border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; min-height: 44px; padding: 8px 0; text-decoration: underline; text-underline-offset: 4px; }
.cookie-notice :focus-visible, .cookie-settings:focus-visible { outline: 3px solid var(--ap-focus, #36b5f2); outline-offset: 4px; }
@media (max-width: 540px) {
  .cookie-notice { inset-inline: 10px; bottom: max(10px, env(safe-area-inset-bottom)); padding: 12px; gap: 12px; font-size: 16px; }
  .cookie-notice .small-button { min-width: 68px; padding-inline: 12px; }
}

/* Institutional pages: readable copy and visible policy navigation. */
.site-footer .footer-top { grid-template-columns: 1.4fr .8fr 1fr 1.1fr; gap: 32px; }
.information-page { padding-bottom: 72px; }
.information-heading { margin: 16px 0 40px; padding: clamp(24px, 5vw, 48px); border: 1px solid var(--ap-line, #d8e4f6); border-radius: 16px; background: linear-gradient(120deg, var(--ap-tint, #f6faff), var(--ap-tint, #edf4ff)); }
.information-eyebrow { display: block; color: var(--brand); font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.information-heading h1 { margin: 0 0 16px; font-size: clamp(32px, 4vw, 48px); line-height: 1.4; color: var(--brand-deep); }
.information-heading > p { max-width: 780px; font-size: 23px; line-height: 1.7; margin: 0 0 18px; }
.information-updated { color: var(--muted); font-size: 17px; }
.information-layout { display: grid; grid-template-columns: minmax(0, 780px) minmax(220px, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.information-content { min-width: 0; font-size: 22px; line-height: 1.9; overflow-wrap: anywhere; }
.information-content > h2 { margin: 36px 0 14px; font-size: 29px; line-height: 1.5; color: var(--brand-deep); }
.information-content > h2:first-child { margin-top: 0; }
.information-content p { margin: 0 0 20px; }
.information-content > ul { padding-inline-start: 26px; margin: 0 0 24px; }
.information-content li { margin-bottom: 10px; padding-inline-start: 4px; }
.information-content li::marker { color: var(--brand); }
.information-content a:not(.small-button) { color: var(--brand); text-decoration: underline; text-underline-offset: 4px; }
.information-rail { position: sticky; top: 92px; border: 1px solid var(--line); border-radius: 12px; padding: 20px; background: var(--paper); }
.information-rail h2 { font-size: 23px; margin: 0 0 12px; color: var(--brand-deep); }
.information-rail a { display: block; padding: 9px 12px; border-radius: 7px; font-size: 19px; line-height: 1.5; margin-bottom: 3px; }
.information-rail a:hover, .information-rail a[aria-current="page"] { color: var(--brand); background: var(--ap-tint, #e8f0fd); }
.information-rail a[aria-current="page"] { font-weight: 700; border-inline-start: 3px solid var(--brand); }
.information-cta { padding: 24px; margin-top: 40px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.information-cta h2 { margin: 0 0 8px; font-size: 26px; }
.information-cta p { font-size: 20px; }
.contact-panel, .publisher-details { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.contact-panel h2, .publisher-details h2 { font-size: 29px; line-height: 1.5; margin: 0 0 18px; }
.contact-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-panel label { display: block; font-size: 20px; font-weight: 600; margin: 14px 0 7px; }
.contact-panel label > span:not(:only-child) { font-weight: 400; }
.contact-panel input:not([type="checkbox"]), .contact-panel select, .contact-panel textarea { display: block; width: 100%; min-height: 48px; padding: 10px 13px; border: 1px solid var(--ap-line, #b7c9e3); border-radius: 8px; background: var(--ap-surface, #fff); color: var(--ink); font: inherit; font-size: 20px; line-height: 1.6; }
.contact-panel textarea { resize: vertical; min-height: 170px; }
.contact-panel :is(input, select, textarea):focus-visible { outline: 3px solid var(--ap-focus, #b7dbff); border-color: var(--brand); outline-offset: 2px; }
.contact-panel .contact-hint { font-size: 17px; color: var(--muted); margin-top: 6px; }
.contact-panel .contact-consent { display: flex; align-items: start; gap: 12px; font-size: 18px; line-height: 1.7; margin: 18px 0; }
.contact-consent input { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 5px; accent-color: var(--brand); }
.contact-result:not(:empty), .contact-panel .form-notice { border-radius: 8px; padding: 14px 18px; background: var(--ap-tint, #edf4ff); color: var(--brand-deep); font-size: 19px; }
.contact-result[data-error="true"] { background: var(--ap-danger-bg, #fff1f2); color: var(--ap-danger, #912338); }
.contact-panel button { margin-top: 12px; }
.contact-panel button:disabled { opacity: .6; cursor: not-allowed; }
.publisher-details dl { margin: 0; }
.publisher-details dl > div { margin-bottom: 18px; }
.publisher-details dt { color: var(--muted); font-size: 18px; }
.publisher-details dd { margin: 0; white-space: pre-line; }
@media (max-width: 900px) {
  .site-footer .footer-top { grid-template-columns: 1fr 1fr; }
  .information-layout { grid-template-columns: minmax(0, 1fr); }
  .information-rail { position: static; }
  .information-rail nav { display: flex; flex-wrap: wrap; gap: 4px; }
  .information-rail h2 { width: 100%; }
  .information-content { font-size: 21px; }
}
@media (max-width: 540px) {
  .site-footer .footer-top { grid-template-columns: 1fr; }
  .information-heading { padding: 24px 20px; margin-bottom: 28px; }
  .information-heading > p { font-size: 21px; }
  .contact-fields { grid-template-columns: 1fr; gap: 0; }
  .information-cta { padding: 20px; }
}

/* Reading estimate belongs to the opened article's metadata. */
.reading-time { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; background: var(--brand-light); color: var(--brand-deep); font-size: 17px; line-height: 1.5; }
.reading-time > svg { flex: 0 0 18px; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Public bylines use local portraits and keep names recognizable as links. */
.author-avatar { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 4px solid var(--ap-line, white); box-shadow: 0 0 0 1px #cdddf4; }
.author-avatar-initials { display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--ap-action, #175cd3), var(--ap-inverse, #0b2a63)); color: white; font-size: 40px; font-weight: 600; }
.author-avatar-small { width: 36px; height: 36px; border-width: 2px; font-size: 17px; }
.author-byline { display: inline-flex; align-items: center; gap: 9px; border-radius: 6px; }
.byline .author-byline strong { color: var(--brand); text-decoration: underline; text-decoration-color: #175cd34d; text-underline-offset: 4px; }
.author-byline:hover strong { text-decoration-color: currentColor; }
.author-byline:focus-visible { outline: 3px solid var(--sky); outline-offset: 5px; }
.author-recipient { padding: 20px; margin-bottom: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; font-size: 19px; }
.author-recipient p { margin-bottom: 12px; }

.morocco-mobile-links { display: flex; flex-wrap: wrap; gap: 12px 24px; padding-block: 12px; border-block-start: 1px solid var(--line); font-size: 17px; font-weight: 700; }
