/* Bureau: an Arabic-first business and politics daily. Density is the style:
   ruled lists, 72px thumbnails, one lead with a deck, a numbers strip under the
   masthead. Teal marks the brand (kickers, active nav, the lead rule); 2px ink
   rules open major sections; hairlines separate rows. Logical properties only. */
.theme-bureau {
  --paper: #fff;
  --ink: #141a1f;
  --muted: #3a4852;
  --accent: #008b75;
  --teal-ink: #0b5f52;
  --wash: #f2f5f6;
  --line: #dfe5e7;
  --sans: 'Noto Sans Arabic', Arial, sans-serif;
  --serif: 'Noto Sans Arabic', Arial, sans-serif;
  --display: var(--sans);
  --shell-width: 1440px;
  --shell-gutter: 28px;
  background: var(--paper);
  color: var(--ink);
  font: 400 15px/1.9 var(--sans);
}
.theme-bureau a:hover { color: var(--teal-ink); text-decoration: underline; text-underline-offset: 4px; }
.theme-bureau a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.theme-bureau .story-card h2 a:visited { color: var(--teal-ink); }
.theme-bureau main { padding-top: 18px; }
.theme-bureau .ad-slot { margin: 20px auto; }

/* Masthead: one compact row, a teal index edge before the name. */
.theme-bureau .masthead { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 32px; padding-block: 12px 6px; border-bottom: 1px solid var(--ink); }
.theme-bureau .brand-row { display: flex; align-items: baseline; gap: 16px; padding: 0; border: 0; }
.theme-bureau .wordmark { display: flex; align-items: center; gap: 12px; font: 800 28px/1.5 var(--sans); letter-spacing: 0; white-space: nowrap; }
.theme-bureau .wordmark::before { content: ''; flex: 0 0 6px; width: 6px; height: 30px; background: var(--accent); }
.theme-bureau .header-links { display: flex; gap: 14px; font-size: 11px; color: var(--muted); }
.theme-bureau .main-nav { flex: 1; border: 0; padding: 0; gap: 0 22px; font-size: 14px; font-weight: 600; }
.theme-bureau .main-nav > a, .theme-bureau .nav-sections summary { min-height: 40px; }
.theme-bureau .main-nav a[aria-current] { color: var(--accent); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 10px; }
.theme-bureau .nav-directory { border-top: 2px solid var(--ink); box-shadow: none; }

/* Numbers strip: local time, weather and reference rates as one ticker row on wash.
   The city name (the section's accessible name) is its only label; the provider
   attributions stay, small and slate. The strip does not exist without services. */
.theme-bureau .service-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; background: var(--wash); border-block-end: 1px solid var(--line); padding: 7px 16px; font-size: 12px; line-height: 1.6; font-variant-numeric: tabular-nums; }
.theme-bureau .service-strip::before { content: attr(aria-label); font-weight: 700; font-size: 13px; color: var(--ink); }
.theme-bureau .service-strip > div { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; border-inline-start: 1px solid var(--line); padding-inline-start: 20px; }
.theme-bureau .service-kicker { display: none; }
.theme-bureau .service-strip strong { font-size: 14px; line-height: 1.6; letter-spacing: 0; font-weight: 700; }
.theme-bureau .service-strip small { font-size: 11px; color: var(--muted); }
.theme-bureau .service-rates { margin-inline-start: 0; }
.theme-bureau .service-quotes { gap: 2px 16px; }
.theme-bureau .service-quotes span { font-size: 13px; font-weight: 700; }
.theme-bureau .service-quotes b { font-size: 11px; font-weight: 600; color: var(--muted); margin-inline-end: 4px; }

/* Section furniture: 2px ink rule above a title, hairlines between rows. */
.theme-bureau .section-title { font: 700 18px/1.5 var(--sans); letter-spacing: 0; text-transform: none; border: 0; border-top: 2px solid var(--ink); padding: 8px 0 0; margin: 0 0 12px; }
.theme-bureau .bureau-label { font: 700 14px/1.5 var(--sans); border-top: 2px solid var(--ink); padding-top: 8px; margin: 0 0 2px; }
.theme-bureau .category-intro { font-size: 14px; color: var(--muted); }

/* Cards: no borders, shadows or radius; one type scale. */
.theme-bureau .story-card { background: transparent; border-radius: 0; box-shadow: none; }
.theme-bureau .story-card h2 { font: 700 16px/1.6 var(--sans); letter-spacing: 0; }
.theme-bureau .story-kicker { font: 700 12px/1.5 var(--sans); color: var(--accent); margin-bottom: 4px; }
.theme-bureau .story-image { aspect-ratio: 16 / 10; border-radius: 0; margin-bottom: 10px; background: var(--wash); }
.theme-bureau .story-image img { transition: none; }
.theme-bureau .story-image:hover img { filter: none; }
.theme-bureau .story-description { font-size: 14px; line-height: 1.8; color: var(--muted); margin-top: 6px; }

/* Thumb rows: 72px square picture, headline, hairline below. Text-only rows keep
   the grid and start the headline on a thin teal rule instead of a picture. */
.theme-bureau .thumb { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--line); margin: 0; }
.theme-bureau .thumb .story-image { aspect-ratio: 1; margin: 0; }
.theme-bureau .thumb h2 { font-size: 16px; line-height: 1.6; }
.theme-bureau .thumb .story-kicker { display: none; }
.theme-bureau .thumb.text-only .story-copy { border-inline-start: 2px solid var(--accent); padding-inline-start: 10px; }

/* Front: wire (3) | lead (6) | second lead and three thumbs (3). */
.bureau-front { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; align-items: start; }
.bureau-front > * { min-width: 0; }
.bureau-wire { grid-column: 1 / span 3; grid-row: 1; border-inline-end: 1px solid var(--line); padding-inline-end: 16px; }
.bureau-lead { grid-column: 4 / span 6; grid-row: 1; border-top: 2px solid var(--accent); padding-top: 12px; }
.bureau-second { grid-column: 10 / span 3; grid-row: 1; border-top: 2px solid var(--ink); padding-top: 12px; border-inline-start: 1px solid var(--line); padding-inline-start: 16px; }
.bureau-front:not(:has(.bureau-wire)) .bureau-lead { grid-column: 1 / span 9; }
.bureau-front:not(:has(.bureau-second)) .bureau-lead { grid-column-end: -1; }

.theme-bureau .bureau-lead .lead { display: flex; flex-direction: column; }
.theme-bureau .bureau-lead .lead .story-image { order: 2; margin: 14px 0 0; }
.theme-bureau .bureau-lead .lead h2 { font-size: 34px; line-height: 1.5; margin: 0 0 8px; }
.theme-bureau .bureau-lead .lead .story-description { font-size: 16px; line-height: 1.8; margin: 0; -webkit-line-clamp: 3; }

.theme-bureau .bureau-wire-list .wire { padding: 9px 0; border-bottom: 1px solid var(--line); }
.theme-bureau .wire h2 { font-size: 16px; line-height: 1.6; }
.theme-bureau .wire .story-copy { position: relative; padding-inline-start: 14px; }
.theme-bureau .wire .story-copy::before { content: ''; position: absolute; inset-inline-start: 0; top: 0.75em; width: 6px; height: 6px; background: var(--accent); }
.theme-bureau .wire .story-kicker, .theme-bureau .wire .story-description { display: none; }

.theme-bureau .bureau-second .standard { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.theme-bureau .bureau-second .standard h2 { font-size: 18px; line-height: 1.55; }
.theme-bureau .bureau-second .standard .story-description { display: none; }
.theme-bureau .bureau-second .standard.text-only .story-copy { border-top: 2px solid var(--accent); padding-top: 10px; }
.theme-bureau .bureau-second .thumb:last-child { border-bottom: 0; }

/* Below the first screen: one two-column region. The main column stacks every
   topic section (photo card 1/3 beside thumb rows 2/3), the centred home_mid and
   the leftovers list; the aside holds only the sticky side banner, so it never
   adds whitespace to the flow. */
.bureau-below { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; margin-top: 28px; }
.bureau-below:not(:has(.ad-container-home_side)) { grid-template-columns: minmax(0, 1fr); }
.bureau-below:not(:has(.ad-container-home_side)) > .bureau-aside { display: none; }
.bureau-below > * { min-width: 0; }
.bureau-aside { position: sticky; top: 16px; }
.theme-bureau .bureau-aside .ad-slot { margin: 0 auto; }
.bureau-main { display: grid; gap: 28px; align-content: start; }
.bureau-topic { min-width: 0; }
.bureau-topic-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 20px; align-items: start; }
.bureau-topic-body > * { min-width: 0; }
.bureau-rows { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 20px; align-content: start; }
.bureau-rows:has(> :nth-child(5)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.theme-bureau .bureau-topic .standard { margin: 0; }
.theme-bureau .bureau-topic .standard h2 { font-size: 18px; line-height: 1.55; }
.theme-bureau .bureau-topic .standard .story-kicker, .theme-bureau .bureau-topic .standard .story-description { display: none; }
.theme-bureau .bureau-topic .standard.text-only .story-copy { border-top: 2px solid var(--accent); padding-top: 10px; }
.theme-bureau .bureau-rows .thumb:first-child { padding-top: 0; }
.theme-bureau .bureau-main .ad-slot { margin: 0 auto; }

/* Leftovers: the same 72px thumb rows, three to a line in the main column. */
.bureau-rest-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 20px; }

/* Category pages: the shared three-grid as dense thumb rows. */
.theme-bureau .topic-page .three-grid { gap: 0 20px; grid-auto-flow: row; align-items: start; }
.theme-bureau .topic-page .three-grid > .story-card:not(.text-only) { grid-row: auto; }
.theme-bureau .more-section { padding-top: 20px; }
.theme-bureau .more-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 20px; }
.theme-bureau .more-grid .thumb { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; }
.theme-bureau .more-grid h2 { font-size: 16px; }
.theme-bureau .ad-continuation { gap: 20px; }
.theme-bureau .ad-continuation .ad-slot { margin: 0 auto; }
.theme-bureau .pagination { border-top: 1px solid var(--line); padding: 16px 0; font-size: 13px; }

/* Article: the same scale, a 70ch measure, related stories as thumb rows. */
.theme-bureau .article-layout { gap: 40px; }
.theme-bureau .back-link { font-size: 12px; margin-bottom: 14px; }
.theme-bureau .article-heading { max-width: none; }
.theme-bureau .article-heading h1 { font: 700 34px/1.5 var(--sans); letter-spacing: 0; margin: 4px 0 12px; max-width: 70ch; }
.theme-bureau .article-deck { font: 400 18px/1.8 var(--sans); color: var(--muted); max-width: 70ch; }
.theme-bureau .article-byline { border-top: 1px solid var(--line); margin: 18px 0 0; padding: 10px 0; font-size: 12px; }
.theme-bureau .article-heading .source-note { font: 400 13px/1.8 var(--sans); border-inline-start: 2px solid var(--accent); padding-inline-start: 14px; margin-top: 14px; }
.theme-bureau .article-figure { margin: 18px 0 20px; }
.theme-bureau .article-figure img { object-position: start; }
.theme-bureau .article-figure figcaption { font-size: 11px; color: var(--muted); padding-top: 6px; }
.theme-bureau .article-body { font: 400 17px/1.95 var(--sans); max-width: 70ch; margin: 20px 0; }
.theme-bureau .article-body p { margin-bottom: 16px; }
.theme-bureau .article-related { border-inline-start: 1px solid var(--line); padding-inline-start: 20px; }
.theme-bureau .article-related .section-title { font-size: 14px; margin-bottom: 2px; }
.theme-bureau .article-related .compact { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; align-items: start; margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); }
.theme-bureau .article-related .compact .story-image { aspect-ratio: 1; margin: 0; }
.theme-bureau .article-related .compact h2 { font-size: 15px; line-height: 1.6; }
.theme-bureau .article-related .compact .story-kicker { display: none; }
.theme-bureau .article-related .compact.text-only .story-copy { border-inline-start: 2px solid var(--accent); padding-inline-start: 10px; }
.theme-bureau .article-related .ad-slot { margin: 0 auto 20px; }

/* Footer: the same rule language as the sections. */
.theme-bureau .site-footer { border-top: 2px solid var(--ink); background: transparent; margin-top: 40px; padding: 22px 0 18px; gap: 18px 48px; grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.4fr); font-size: 12px; }
.theme-bureau .footer-brand { display: flex; align-items: center; gap: 10px; font: 800 22px/1.5 var(--sans); letter-spacing: 0; }
.theme-bureau .footer-brand::before { content: ''; flex: 0 0 5px; width: 5px; height: 24px; background: var(--accent); }
.theme-bureau .site-footer .footer-identity p { margin-top: 8px; color: var(--muted); }
.theme-bureau .footer-topics { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 20px; font-weight: 600; }
.theme-bureau .footer-links { padding-top: 14px; gap: 10px 22px; }

@media (max-width: 1100px) {
  .theme-bureau { --shell-gutter: 20px; }
  .theme-bureau .masthead { gap: 4px 24px; }
  .bureau-lead { grid-column: 1 / span 8; }
  .bureau-second { grid-column: 9 / span 4; }
  .bureau-front:not(:has(.bureau-wire)) .bureau-lead { grid-column: 1 / span 8; }
  .theme-bureau .bureau-front .bureau-wire { grid-column: 1 / -1; grid-row: 2; border: 0; padding: 0; }
  .bureau-wire-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
  .theme-bureau .bureau-lead .lead h2 { font-size: 28px; }
  .bureau-below { grid-template-columns: minmax(0, 1fr); }
  .bureau-aside { position: static; }
  .bureau-rest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .theme-bureau .more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .theme-bureau .topic-page .three-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .theme-bureau .article-layout { gap: 28px; }
  .theme-bureau .site-footer { padding-inline: 0; }
}

@media (max-width: 767px) {
  .theme-bureau { --shell-gutter: 16px; }
  .theme-bureau main { padding-top: 14px; }
  .theme-bureau .masthead { padding-block: 10px 2px; gap: 0 16px; }
  .theme-bureau .wordmark { font-size: 24px; }
  .theme-bureau .wordmark::before { height: 26px; }
  .theme-bureau .header-links { display: none; }
  .theme-bureau .main-nav { font-size: 13px; gap: 0 18px; }
  .theme-bureau .main-nav > a, .theme-bureau .nav-sections summary { min-height: 36px; }
  .theme-bureau .main-nav a[aria-current] { text-underline-offset: 8px; }
  .theme-bureau .nav-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 14px; }
  .theme-bureau .service-strip { gap: 2px 14px; padding: 6px 12px; }
  .theme-bureau .service-strip > div { padding-inline-start: 14px; }
  .theme-bureau .service-rates { width: 100%; border-inline-start: 0; padding-inline-start: 0; border-block-start: 1px solid var(--line); padding-block-start: 4px; margin-top: 2px; }
  .theme-bureau .service-quotes { gap: 2px 12px; }
  .bureau-front { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .theme-bureau .bureau-front .bureau-lead { grid-column: 1 / -1; grid-row: 1; padding-top: 10px; }
  .theme-bureau .bureau-front .bureau-second { grid-column: 1 / -1; grid-row: 2; border: 0; border-top: 2px solid var(--ink); padding: 10px 0 0; }
  .theme-bureau .bureau-front .bureau-wire { grid-column: 1 / -1; grid-row: 3; }
  .bureau-wire-list { grid-template-columns: minmax(0, 1fr); }
  .theme-bureau .bureau-lead .lead h2 { font-size: 24px; line-height: 1.55; }
  .theme-bureau .bureau-lead .lead .story-description { font-size: 15px; -webkit-line-clamp: 3; }
  .theme-bureau .bureau-second .standard h2, .theme-bureau .bureau-topic .standard h2 { font-size: 17px; }
  .bureau-below { margin-top: 22px; }
  .bureau-main { gap: 22px; }
  .theme-bureau .bureau-topic-body, .theme-bureau .bureau-rows { grid-template-columns: minmax(0, 1fr); }
  .theme-bureau .bureau-topic .standard { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
  .theme-bureau .bureau-rows .thumb:first-child { padding-top: 10px; }
  .bureau-rest-grid { grid-template-columns: minmax(0, 1fr); }
  .theme-bureau .topic-page .three-grid, .theme-bureau .more-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .theme-bureau .thumb h2, .theme-bureau .wire h2 { font-size: 15px; }
  .theme-bureau .article-heading h1 { font-size: 24px; line-height: 1.55; }
  .theme-bureau .article-deck { font-size: 16px; }
  .theme-bureau .article-body { font-size: 16px; line-height: 1.9; }
  .theme-bureau .article-related { border: 0; padding: 0; margin-top: 10px; }
  .theme-bureau .site-footer { margin-top: 30px; padding: 18px 0 14px; gap: 16px; }
  .theme-bureau .footer-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
