/*
Theme Name: The Westlake Report
Theme URI: https://www.westlake.co.uk/
Author: Nick Appleby
Author URI: https://www.westlake.co.uk/
Description: A bright, clean newspaper / trade-journal theme for The Westlake Report - independent reporting on UK telecoms, VoIP, cellular, IoT, M2M, hardware and networks. Built for SEO and LLM discoverability with semantic HTML5, JSON-LD structured data (NewsArticle, Organization, WebSite, BreadcrumbList), Open Graph and Twitter Card output. Optimised for posts built as a single Custom HTML block (H2 heading plus SVG, tables and rich HTML).
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: westlake-report
Tags: news, blog, newspaper, magazine, editorial, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* =====================================================================
   The Westlake Report - design tokens
   Palette: bright paper, press ink, one deep signal-blue accent.
   Type:    Newsreader (editorial serif) + Inter (utility grotesque).
   ===================================================================== */
:root {
  --wr-paper:      #ffffff;
  --wr-band:       #f5f7f9;
  --wr-band-2:     #eef1f4;
  --wr-ink:        #15181d;
  --wr-ink-soft:   #3a4049;
  --wr-meta:       #626a76;
  --wr-hairline:   #d8dde3;
  --wr-hairline-2: #c4cbd3;
  --wr-accent:     #123a8c;   /* deep signal blue */
  --wr-accent-ink: #0d2c6b;
  --wr-flag:       #b3121f;   /* dateline / breaking red, used sparingly */

  --wr-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --wr-sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wr-maxw:   1180px;
  --wr-readw:  720px;
  --wr-gutter: clamp(16px, 4vw, 40px);
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--wr-paper);
  color: var(--wr-ink);
  font-family: var(--wr-sans);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--wr-accent); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 2px; }
figure { margin: 0; }

/* ---------- accessibility ---------- */
.wr-skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--wr-ink); color: #fff; padding: 12px 18px;
  font-family: var(--wr-sans); font-weight: 600; border-radius: 0 0 4px 0;
}
.wr-skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--wr-accent); outline-offset: 2px; }
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute;
}

/* ---------- layout helpers ---------- */
.wr-wrap { max-width: var(--wr-maxw); margin-inline: auto; padding-inline: var(--wr-gutter); }
.wr-rule { border: 0; border-top: 1px solid var(--wr-hairline); margin: 0; }
.wr-rule--thick { border-top: 3px solid var(--wr-ink); }

/* eyebrow / kicker (utility sans, tracked caps) */
.wr-kicker {
  font-family: var(--wr-sans);
  font-size: .72rem; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--wr-accent);
  display: inline-flex; align-items: center; gap: .5em; margin: 0;
}
.wr-kicker--flag { color: var(--wr-flag); }

/* signal-bars glyph - the house mark, ties newspaper format to the telecoms beat */
.wr-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: .8em; }
.wr-bars i { width: 3px; background: currentColor; display: block; }
.wr-bars i:nth-child(1){ height: 35%; }
.wr-bars i:nth-child(2){ height: 62%; }
.wr-bars i:nth-child(3){ height: 100%; }

/* =====================================================================
   MASTHEAD
   ===================================================================== */
.wr-dateline {
  background: var(--wr-ink);
  color: #fff;
  font-family: var(--wr-sans);
  font-size: .72rem;
  letter-spacing: .06em;
}
.wr-dateline .wr-wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding-block: 7px; flex-wrap: wrap;
}
.wr-dateline__date { text-transform: uppercase; font-weight: 600; opacity: .92; }
.wr-dateline__beat { color: #cfd6e2; }
.wr-dateline__beat strong { color: #fff; font-weight: 600; }

.wr-masthead { border-bottom: 3px solid var(--wr-ink); background: var(--wr-paper); }
.wr-masthead__inner {
  display: flex; align-items: center; justify-content: center;
  gap: 20px; padding-block: clamp(18px, 3vw, 30px); text-align: center;
  flex-direction: column;
}
.wr-masthead__logo img { max-height: 76px; width: auto; }
.wr-masthead__wordmark {
  font-family: var(--wr-serif);
  font-weight: 600; font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1; letter-spacing: -.01em; color: var(--wr-ink); margin: 0;
}
.wr-masthead__wordmark a { color: inherit; }
.wr-masthead__wordmark a:hover { text-decoration: none; }
.wr-masthead__tagline {
  font-family: var(--wr-sans); font-size: .78rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--wr-meta);
  margin: 8px 0 0;
}

/* primary nav (sections) */
.wr-nav { border-bottom: 1px solid var(--wr-hairline); background: var(--wr-paper); position: sticky; top: 0; z-index: 40; }
.wr-nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wr-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.wr-nav li { position: relative; }
.wr-nav a {
  display: block; padding: 13px 15px;
  font-family: var(--wr-sans); font-size: .8rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; color: var(--wr-ink);
}
.wr-nav a:hover, .wr-nav .current-menu-item > a { color: var(--wr-accent); text-decoration: none; }
.wr-nav .current-menu-item > a { box-shadow: inset 0 -3px 0 var(--wr-accent); }
.wr-nav__extra { display: flex; align-items: center; gap: 6px; }
.wr-nav__sub { display: flex; }
.wr-nav__sub ul { position: absolute; top: 100%; left: 0; background: var(--wr-paper);
  border: 1px solid var(--wr-hairline); min-width: 210px; flex-direction: column; display: none; z-index: 50; }
.wr-nav li:hover > .sub-menu, .wr-nav li:focus-within > .sub-menu { display: flex; flex-direction: column; }
.wr-nav .sub-menu { position: absolute; top: 100%; left: 0; background: var(--wr-paper);
  border: 1px solid var(--wr-hairline); min-width: 210px; display: none; list-style: none; padding: 0; }
.wr-nav .sub-menu a { text-transform: none; letter-spacing: 0; font-size: .82rem; }

.wr-search-toggle, .wr-menu-toggle {
  background: none; border: 0; cursor: pointer; padding: 10px; color: var(--wr-ink);
  display: inline-flex; align-items: center; font-family: var(--wr-sans); font-weight: 600; font-size: .8rem;
}
.wr-menu-toggle { display: none; }
.wr-search-panel { display: none; border-bottom: 1px solid var(--wr-hairline); background: var(--wr-band); }
.wr-search-panel.is-open { display: block; }
.wr-search-panel .wr-wrap { padding-block: 14px; }

/* search form */
.wr-searchform { display: flex; gap: 0; max-width: 560px; }
.wr-searchform input[type="search"] {
  flex: 1; border: 1px solid var(--wr-hairline-2); border-right: 0; padding: 11px 14px;
  font-family: var(--wr-sans); font-size: 1rem; background: #fff;
}
.wr-searchform button {
  border: 0; background: var(--wr-ink); color: #fff; padding: 0 20px; cursor: pointer;
  font-family: var(--wr-sans); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .8rem;
}
.wr-searchform button:hover { background: var(--wr-accent); }

/* =====================================================================
   FRONT PAGE - the newspaper grid
   ===================================================================== */
.wr-front { padding-block: clamp(24px, 4vw, 44px); }

.wr-lead { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(24px, 4vw, 44px); align-items: start; }
.wr-lead__media { order: 2; }
.wr-lead__media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border: 1px solid var(--wr-hairline); }
.wr-lead__body { order: 1; }
.wr-lead__title {
  font-family: var(--wr-serif); font-weight: 600; line-height: 1.04;
  font-size: clamp(2rem, 5vw, 3.3rem); letter-spacing: -.015em; margin: 10px 0 12px;
}
.wr-lead__title a { color: var(--wr-ink); }
.wr-lead__title a:hover { color: var(--wr-accent); text-decoration: none; }
.wr-lead__standfirst { font-family: var(--wr-serif); font-size: 1.25rem; line-height: 1.5; color: var(--wr-ink-soft); margin: 0 0 14px; }

/* secondary story row */
.wr-secondary {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 34px);
  margin-top: clamp(26px, 4vw, 40px); padding-top: 26px; border-top: 1px solid var(--wr-hairline);
}
.wr-card__media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border: 1px solid var(--wr-hairline); margin-bottom: 12px; }
.wr-card__title {
  font-family: var(--wr-serif); font-weight: 600; line-height: 1.12;
  font-size: clamp(1.15rem, 2vw, 1.5rem); margin: 8px 0 8px; letter-spacing: -.01em;
}
.wr-card__title a { color: var(--wr-ink); }
.wr-card__title a:hover { color: var(--wr-accent); text-decoration: none; }
.wr-card__excerpt { font-size: .96rem; color: var(--wr-ink-soft); margin: 0; }

/* two-column split: more headlines + rail */
.wr-split { display: grid; grid-template-columns: 1fr 320px; gap: clamp(28px, 4vw, 48px);
  margin-top: clamp(30px, 4vw, 46px); padding-top: 30px; border-top: 3px solid var(--wr-ink); }

.wr-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 16px; }
.wr-section-head h2 {
  font-family: var(--wr-sans); font-size: .82rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--wr-ink); margin: 0; display: inline-flex; align-items: center; gap: .55em;
}
.wr-section-head a { font-family: var(--wr-sans); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }

/* headline list */
.wr-list { list-style: none; margin: 0; padding: 0; }
.wr-list > li { padding: 16px 0; border-top: 1px solid var(--wr-hairline); display: grid; grid-template-columns: 88px 1fr; gap: 16px; }
.wr-list > li:first-child { border-top: 0; padding-top: 0; }
.wr-list__thumb img { width: 88px; height: 66px; object-fit: cover; border: 1px solid var(--wr-hairline); }
.wr-list__title { font-family: var(--wr-serif); font-size: 1.12rem; font-weight: 600; line-height: 1.2; margin: 4px 0 6px; }
.wr-list__title a { color: var(--wr-ink); }
.wr-list__title a:hover { color: var(--wr-accent); text-decoration: none; }

/* rail / aside */
.wr-rail__box { border: 1px solid var(--wr-hairline); padding: 20px; margin-bottom: 24px; background: var(--wr-band); }
.wr-rail__box h2 { font-family: var(--wr-sans); font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 12px; }
.wr-sections-list { list-style: none; margin: 0; padding: 0; }
.wr-sections-list li { border-top: 1px solid var(--wr-hairline); }
.wr-sections-list li:first-child { border-top: 0; }
.wr-sections-list a { display: flex; justify-content: space-between; align-items: center; padding: 10px 0;
  font-family: var(--wr-sans); font-weight: 600; font-size: .92rem; color: var(--wr-ink); }
.wr-sections-list a:hover { color: var(--wr-accent); text-decoration: none; }
.wr-sections-list .wr-count { font-size: .78rem; color: var(--wr-meta); font-weight: 500; }

/* meta line (byline / date / section) */
.wr-meta {
  font-family: var(--wr-sans); font-size: .74rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--wr-meta); margin: 0; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center;
}
.wr-meta a { color: var(--wr-meta); }
.wr-meta a:hover { color: var(--wr-accent); }
.wr-meta .wr-cat { color: var(--wr-accent); }
.wr-meta .wr-dot { color: var(--wr-hairline-2); }

/* =====================================================================
   SINGLE POST / PAGE - editorial reading column
   ===================================================================== */
.wr-article { padding-block: clamp(24px, 4vw, 44px); }
.wr-article__head { max-width: var(--wr-readw); margin-inline: auto; text-align: left; }
.wr-breadcrumbs { font-family: var(--wr-sans); font-size: .74rem; letter-spacing: .04em; color: var(--wr-meta); margin: 0 0 14px; }
.wr-breadcrumbs a { color: var(--wr-meta); }
.wr-breadcrumbs a:hover { color: var(--wr-accent); }
.wr-breadcrumbs .sep { padding: 0 6px; color: var(--wr-hairline-2); }

.entry-title {
  font-family: var(--wr-serif); font-weight: 600; line-height: 1.06;
  font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -.015em; margin: 8px 0 14px; color: var(--wr-ink);
}
.wr-standfirst { font-family: var(--wr-serif); font-size: 1.3rem; line-height: 1.5; color: var(--wr-ink-soft); max-width: var(--wr-readw); margin: 0 auto 18px; }

.wr-byline {
  max-width: var(--wr-readw); margin: 18px auto; padding: 14px 0; border-top: 1px solid var(--wr-hairline); border-bottom: 1px solid var(--wr-hairline);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.wr-byline__avatar img { width: 44px; height: 44px; border-radius: 50%; }
.wr-byline__by { font-family: var(--wr-sans); font-size: .95rem; color: var(--wr-ink); }
.wr-byline__by strong { font-weight: 700; }
.wr-byline__by a { color: var(--wr-ink); }
.wr-byline__dot { color: var(--wr-hairline-2); }
.wr-byline__time { font-family: var(--wr-sans); font-size: .82rem; color: var(--wr-meta); text-transform: uppercase; letter-spacing: .04em; }
.wr-readtime { font-family: var(--wr-sans); font-size: .82rem; color: var(--wr-meta); }

.wr-hero { max-width: 960px; margin: 22px auto 6px; }
.wr-hero img { width: 100%; border: 1px solid var(--wr-hairline); }
.wr-hero figcaption { font-family: var(--wr-sans); font-size: .78rem; color: var(--wr-meta); padding-top: 8px; }

/* ---------------------------------------------------------------------
   .entry-content - the heart of it. Nick pastes one Custom HTML block
   containing an H2 heading plus SVG, tables and rich HTML. Everything
   below makes raw pasted HTML read like a designed article.
   --------------------------------------------------------------------- */
.entry-content {
  max-width: var(--wr-readw); margin-inline: auto;
  font-family: var(--wr-serif); font-size: 1.19rem; line-height: 1.72; color: var(--wr-ink);
}
.entry-content > *:first-child { margin-top: 0; }
.entry-content p { margin: 0 0 1.35em; }
.entry-content a { color: var(--wr-accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.entry-content a:hover { text-decoration-thickness: 2px; }

.entry-content h2 {
  font-family: var(--wr-serif); font-weight: 600; line-height: 1.14;
  font-size: clamp(1.55rem, 3vw, 2.05rem); letter-spacing: -.01em;
  margin: 2.2em 0 .6em; padding-top: .3em;
}
.entry-content h2::before {
  content: ""; display: block; width: 46px; height: 3px; background: var(--wr-accent); margin-bottom: .5em;
}
.entry-content h3 { font-family: var(--wr-serif); font-weight: 600; font-size: clamp(1.3rem, 2.2vw, 1.6rem); line-height: 1.2; margin: 1.8em 0 .5em; }
.entry-content h4 { font-family: var(--wr-sans); font-weight: 700; font-size: 1.05rem; letter-spacing: .02em; text-transform: uppercase; color: var(--wr-ink-soft); margin: 1.6em 0 .4em; }

.entry-content ul, .entry-content ol { margin: 0 0 1.35em; padding-left: 1.4em; }
.entry-content li { margin-bottom: .5em; }
.entry-content ul li::marker { color: var(--wr-accent); }

.entry-content blockquote {
  margin: 1.6em 0; padding: .2em 0 .2em 1.1em; border-left: 4px solid var(--wr-accent);
  font-style: italic; font-size: 1.32rem; line-height: 1.45; color: var(--wr-ink);
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content blockquote cite { display: block; font-style: normal; font-family: var(--wr-sans);
  font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; color: var(--wr-meta); margin-top: .6em; }

/* figures / images */
.entry-content figure { margin: 1.8em 0; }
.entry-content img { border: 1px solid var(--wr-hairline); }
.entry-content figcaption { font-family: var(--wr-sans); font-size: .8rem; color: var(--wr-meta); padding-top: 8px; line-height: 1.4; }

/* SVG - centre it, let it breathe, keep it responsive */
.entry-content svg { max-width: 100%; height: auto; display: block; margin: 1.8em auto; }
.entry-content .wr-figure, .entry-content figure > svg { margin-inline: auto; }
.entry-content figure svg { margin: 0 auto; }

/* TABLES - the big one. Striped, ruled, scrollable on mobile. */
.entry-content table {
  width: 100%; border-collapse: collapse; margin: 1.9em 0;
  font-family: var(--wr-sans); font-size: .95rem; line-height: 1.45;
  border: 1px solid var(--wr-hairline);
}
.entry-content thead th {
  background: var(--wr-ink); color: #fff; text-align: left; font-weight: 600;
  letter-spacing: .03em; padding: 11px 14px; font-size: .82rem; text-transform: uppercase;
  border-right: 1px solid rgba(255,255,255,.14); vertical-align: bottom;
}
.entry-content thead th:last-child { border-right: 0; }
.entry-content th, .entry-content td { padding: 11px 14px; border-bottom: 1px solid var(--wr-hairline); border-right: 1px solid var(--wr-hairline); vertical-align: top; }
.entry-content td:last-child, .entry-content th:last-child { border-right: 0; }
.entry-content tbody tr:nth-child(even) { background: var(--wr-band); }
.entry-content tbody tr:hover { background: var(--wr-band-2); }
.entry-content table caption { caption-side: top; text-align: left; font-family: var(--wr-sans);
  font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--wr-meta); padding-bottom: 8px; }
/* wrapper injected by theme.js for horizontal scroll on small screens */
.wr-table-scroll { overflow-x: auto; margin: 1.9em 0; -webkit-overflow-scrolling: touch; }
.wr-table-scroll > table { margin: 0; min-width: 560px; }

/* code */
.entry-content code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: .88em; background: var(--wr-band-2); padding: .12em .4em; border-radius: 3px; }
.entry-content pre { background: #14181f; color: #e7edf5; padding: 18px 20px; overflow-x: auto;
  border-radius: 4px; margin: 1.8em 0; font-size: .9rem; line-height: 1.55; }
.entry-content pre code { background: none; padding: 0; color: inherit; }

/* callout / note pattern he can reuse (class="wr-note") */
.entry-content .wr-note { background: var(--wr-band); border: 1px solid var(--wr-hairline);
  border-left: 4px solid var(--wr-accent); padding: 16px 20px; margin: 1.8em 0; font-family: var(--wr-sans); font-size: 1rem; line-height: 1.55; }

.entry-content hr { border: 0; border-top: 1px solid var(--wr-hairline); margin: 2.4em 0; }

/* first-paragraph drop treatment for a bit of press character (optional, subtle) */
.entry-content.wr-dropcap > p:first-of-type::first-letter {
  font-family: var(--wr-serif); font-weight: 600; float: left; font-size: 3.4em; line-height: .82;
  padding: .04em .08em 0 0; color: var(--wr-ink);
}

/* tags + share */
.wr-post-foot { max-width: var(--wr-readw); margin: 34px auto 0; padding-top: 22px; border-top: 1px solid var(--wr-hairline); }
.wr-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.wr-tags a { font-family: var(--wr-sans); font-size: .78rem; font-weight: 600; letter-spacing: .02em;
  padding: 6px 12px; border: 1px solid var(--wr-hairline-2); color: var(--wr-ink-soft); text-decoration: none; }
.wr-tags a:hover { border-color: var(--wr-accent); color: var(--wr-accent); }

/* author bio card */
.wr-authorcard { max-width: var(--wr-readw); margin: 30px auto 0; display: flex; gap: 18px;
  border: 1px solid var(--wr-hairline); background: var(--wr-band); padding: 22px; }
.wr-authorcard__avatar img { width: 68px; height: 68px; border-radius: 50%; }
.wr-authorcard__name { font-family: var(--wr-serif); font-size: 1.35rem; font-weight: 600; margin: 0 0 4px; }
.wr-authorcard__role { font-family: var(--wr-sans); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--wr-accent); margin: 0 0 8px; }
.wr-authorcard__bio { font-family: var(--wr-sans); font-size: .96rem; line-height: 1.55; color: var(--wr-ink-soft); margin: 0; }

/* related / prev-next */
.wr-related { max-width: var(--wr-maxw); margin: 44px auto 0; padding-top: 30px; border-top: 3px solid var(--wr-ink); }
.wr-related__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 16px; }
.wr-prevnext { max-width: var(--wr-readw); margin: 30px auto 0; display: flex; justify-content: space-between; gap: 16px; }
.wr-prevnext a { font-family: var(--wr-sans); font-size: .92rem; font-weight: 600; }
.wr-prevnext span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--wr-meta); }

/* =====================================================================
   ARCHIVE / CATEGORY / SEARCH listings
   ===================================================================== */
.wr-archive { padding-block: clamp(24px, 4vw, 44px); }
.wr-archive__head { border-bottom: 3px solid var(--wr-ink); padding-bottom: 16px; margin-bottom: 26px; }
.wr-archive__title { font-family: var(--wr-serif); font-weight: 600; font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 6px 0 0; letter-spacing: -.01em; }
.wr-archive__desc { font-family: var(--wr-sans); color: var(--wr-meta); font-size: 1rem; margin: 10px 0 0; max-width: 720px; }

.wr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 34px); }
.wr-grid article { border-top: 1px solid var(--wr-hairline); padding-top: 18px; }

/* pagination */
.wr-pagination { margin: 40px 0 0; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: center; }
.wr-pagination .page-numbers {
  font-family: var(--wr-sans); font-weight: 600; font-size: .92rem; padding: 9px 14px;
  border: 1px solid var(--wr-hairline-2); color: var(--wr-ink); text-decoration: none;
}
.wr-pagination .page-numbers.current { background: var(--wr-ink); color: #fff; border-color: var(--wr-ink); }
.wr-pagination a.page-numbers:hover { border-color: var(--wr-accent); color: var(--wr-accent); }

/* 404 + no results */
.wr-notice { max-width: var(--wr-readw); margin-inline: auto; text-align: center; padding-block: clamp(40px, 8vw, 90px); }
.wr-notice h1 { font-family: var(--wr-serif); font-weight: 600; font-size: clamp(2rem, 6vw, 3.4rem); margin: 0 0 12px; }
.wr-notice p { color: var(--wr-ink-soft); font-family: var(--wr-sans); }

/* =====================================================================
   FOOTER
   ===================================================================== */
.wr-footer { margin-top: clamp(44px, 6vw, 72px); background: var(--wr-ink); color: #cdd4de; }
.wr-footer a { color: #cdd4de; }
.wr-footer a:hover { color: #fff; }
.wr-footer__top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: clamp(24px, 4vw, 44px); padding-block: clamp(34px, 5vw, 56px); }
.wr-footer__brand .wr-masthead__wordmark { color: #fff; font-size: 1.9rem; }
.wr-footer__brand p { font-family: var(--wr-sans); font-size: .92rem; line-height: 1.6; color: #aab3c0; max-width: 42ch; }
.wr-footer__col h3 { font-family: var(--wr-sans); font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin: 0 0 14px; }
.wr-footer__col ul { list-style: none; margin: 0; padding: 0; }
.wr-footer__col li { margin-bottom: 9px; }
.wr-footer__col a { font-family: var(--wr-sans); font-size: .92rem; }
.wr-footer__bar { border-top: 1px solid rgba(255,255,255,.14); padding-block: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.wr-footer__bar p { margin: 0; font-family: var(--wr-sans); font-size: .8rem; color: #8b95a4; }
.wr-footer__bars { color: #fff; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 980px) {
  .wr-lead { grid-template-columns: 1fr; }
  .wr-lead__media { order: 1; margin-bottom: 4px; }
  .wr-lead__body { order: 2; }
  .wr-secondary { grid-template-columns: repeat(2, 1fr); }
  .wr-split { grid-template-columns: 1fr; }
  .wr-grid, .wr-related__grid { grid-template-columns: repeat(2, 1fr); }
  .wr-footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 17px; }
  .wr-menu-toggle { display: inline-flex; }
  .wr-nav__inner { position: relative; }
  .wr-nav .wr-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--wr-paper);
    border-bottom: 1px solid var(--wr-hairline); flex-direction: column; z-index: 45; box-shadow: 0 12px 24px rgba(0,0,0,.08); }
  .wr-nav .wr-menu.is-open { display: flex; }
  .wr-nav .wr-menu li { border-top: 1px solid var(--wr-hairline); }
  .wr-secondary, .wr-grid, .wr-related__grid { grid-template-columns: 1fr; }
  .wr-list > li { grid-template-columns: 72px 1fr; }
  .wr-list__thumb img { width: 72px; height: 54px; }
  .wr-footer__top { grid-template-columns: 1fr; }
  .entry-content.wr-dropcap > p:first-of-type::first-letter { font-size: 2.8em; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* =====================================================================
   ENQUIRY FORMS + "ENQUIRE ABOUT THIS" DRAWER
   ===================================================================== */
.wr-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.wr-enquiry { font-family: var(--wr-sans); }
.wr-enquiry__title { font-family: var(--wr-serif); font-weight: 600; font-size: 1.5rem; letter-spacing: -.01em; margin: 0 0 6px; }
.wr-enquiry__blurb { color: var(--wr-ink-soft); font-size: .96rem; margin: 0 0 16px; }

.wr-enquiry-form { display: grid; gap: 14px; }
.wr-enquiry__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.wr-field { display: grid; gap: 6px; }
.wr-field > span { font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--wr-meta); }
.wr-field input, .wr-field textarea {
  width: 100%; font-family: var(--wr-sans); font-size: 1rem; color: var(--wr-ink);
  background: #fff; border: 1px solid var(--wr-hairline-2); border-radius: 10px;
  padding: 12px 14px; transition: border-color .15s, box-shadow .15s;
}
.wr-field textarea { resize: vertical; min-height: 84px; }
.wr-field input:focus, .wr-field textarea:focus {
  outline: none; border-color: var(--wr-accent); box-shadow: 0 0 0 3px rgba(18,58,140,.14);
}
.wr-enquiry__ctx { font-size: .84rem; color: var(--wr-meta); margin: 0; }
.wr-enquiry__ctx strong { color: var(--wr-ink); }

.wr-enquiry__submit {
  justify-self: start; cursor: pointer; border: 0; border-radius: 10px;
  background: var(--wr-accent); color: #fff; font-family: var(--wr-sans);
  font-weight: 700; font-size: .95rem; letter-spacing: .01em; padding: 13px 26px;
  transition: background .15s, transform .05s;
}
.wr-enquiry__submit:hover { background: var(--wr-accent-ink); }
.wr-enquiry__submit:active { transform: translateY(1px); }
.wr-enquiry__submit:disabled { opacity: .6; cursor: default; }

.wr-enquiry__status { border-radius: 10px; padding: 12px 14px; font-size: .95rem; margin: 0; }
.wr-enquiry__status.is-success { background: #e8f5ec; border: 1px solid #b7e0c4; color: #14603a; }
.wr-enquiry__status.is-error { background: #fdeced; border: 1px solid #f3c3c7; color: #a01722; }

.wr-enquiry--compact .wr-enquiry-form { gap: 11px; }
.wr-enquiry--compact .wr-field textarea { min-height: 64px; }

/* footer general-enquiry band (light, above the dark footer) */
.wr-footer-enquiry { background: var(--wr-band); border-top: 3px solid var(--wr-ink); }
.wr-footer-enquiry__inner {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 5vw, 64px);
  padding-block: clamp(34px, 5vw, 56px); align-items: start;
}
.wr-footer-enquiry__lead h2 { font-family: var(--wr-serif); font-weight: 600; font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.01em; margin: 10px 0 12px; }
.wr-footer-enquiry__lead p { font-family: var(--wr-sans); color: var(--wr-ink-soft); font-size: 1.02rem; line-height: 1.6; margin: 0; max-width: 44ch; }

/* fixed edge tab */
.wr-enquiry-tab {
  position: fixed; right: 0; top: 42%; z-index: 60; transform: translateY(-50%);
  background: var(--wr-accent); color: #fff; border: 0; cursor: pointer;
  border-radius: 12px 0 0 12px; padding: 16px 12px; box-shadow: -4px 4px 16px rgba(0,0,0,.16);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--wr-sans); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .72rem;
  transition: padding-right .15s, background .15s;
}
.wr-enquiry-tab:hover { background: var(--wr-accent-ink); padding-right: 16px; }
.wr-enquiry-tab span { writing-mode: vertical-rl; }
.wr-enquiry-tab .wr-bars { transform: rotate(0deg); height: 1em; }

/* overlay + drawer */
.wr-enquiry-overlay { position: fixed; inset: 0; background: rgba(13,17,25,.5); z-index: 70; }
.wr-enquiry-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(440px, 92vw); z-index: 80;
  background: #fff; box-shadow: -18px 0 48px rgba(0,0,0,.22);
  transform: translateX(100%); transition: transform .28s cubic-bezier(.4,0,.2,1);
  overflow-y: auto; padding: clamp(22px, 4vw, 34px);
}
.wr-enquiry-drawer.is-open { transform: translateX(0); }
.wr-enquiry-drawer__close {
  position: absolute; top: 12px; right: 14px; background: none; border: 0; cursor: pointer;
  font-size: 2rem; line-height: 1; color: var(--wr-meta); padding: 4px 10px;
}
.wr-enquiry-drawer__close:hover { color: var(--wr-ink); }

@media (prefers-reduced-motion: reduce) { .wr-enquiry-drawer { transition: none; } }

/* =====================================================================
   GLOSSARY
   ===================================================================== */
.wr-glossary__hero { background: var(--wr-band); border-bottom: 1px solid var(--wr-hairline); }
.wr-glossary__hero .wr-wrap { padding-block: clamp(30px, 5vw, 52px); }
.wr-glossary__title { font-family: var(--wr-serif); font-weight: 600; font-size: clamp(2.1rem, 5vw, 3.2rem); letter-spacing: -.02em; margin: 8px 0 12px; }
.wr-glossary__lede { font-family: var(--wr-serif); font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.5; color: var(--wr-ink-soft); max-width: 62ch; margin: 0; }

.wr-glossary__topics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.wr-chip {
  display: inline-flex; align-items: center; gap: 7px; font-family: var(--wr-sans);
  font-size: .82rem; font-weight: 600; color: var(--wr-ink); background: #fff;
  border: 1px solid var(--wr-hairline-2); border-radius: 999px; padding: 7px 14px; text-decoration: none;
}
.wr-chip span { font-size: .72rem; color: #fff; background: var(--wr-accent); border-radius: 999px; padding: 1px 7px; }
.wr-chip:hover { border-color: var(--wr-accent); color: var(--wr-accent); text-decoration: none; }
.wr-chip:hover span { background: var(--wr-accent-ink); }

.wr-glossary__body { padding-block: clamp(20px, 3vw, 32px) clamp(30px, 5vw, 56px); }

/* controls */
.wr-glossary__controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 6px; }
.wr-glossary__searchwrap { position: relative; flex: 1; min-width: 260px; max-width: 560px; }
.wr-glossary__searchicon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--wr-meta); }
.wr-glossary-search {
  width: 100%; font-family: var(--wr-sans); font-size: 1.05rem; color: var(--wr-ink);
  background: #fff; border: 1px solid var(--wr-hairline-2); border-radius: 12px;
  padding: 15px 16px 15px 46px; transition: border-color .15s, box-shadow .15s;
}
.wr-glossary-search:focus { outline: none; border-color: var(--wr-accent); box-shadow: 0 0 0 3px rgba(18,58,140,.14); }
.wr-glossary__count { font-family: var(--wr-sans); font-size: .9rem; color: var(--wr-meta); margin: 0; white-space: nowrap; }
.wr-glossary__count strong { color: var(--wr-ink); }

/* A-Z bar - sticky under the nav */
.wr-azbar {
  position: sticky; top: 62px; z-index: 30; display: flex; flex-wrap: wrap; gap: 4px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(6px);
  padding: 12px 0; margin: 14px 0 8px; border-top: 1px solid var(--wr-hairline); border-bottom: 1px solid var(--wr-hairline);
}
.wr-az {
  font-family: var(--wr-sans); font-weight: 700; font-size: .84rem; color: var(--wr-ink);
  width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; text-decoration: none; transition: background .12s, color .12s;
}
a.wr-az:hover { background: var(--wr-accent); color: #fff; text-decoration: none; }
.wr-az.is-empty { color: var(--wr-hairline-2); pointer-events: none; }
.wr-az.is-dim { opacity: .28; }

.wr-glossary__noresults { font-family: var(--wr-sans); color: var(--wr-meta); padding: 20px 0; }

/* grouped terms */
.wr-glossary__group { padding-top: 18px; }
.wr-glossary__letter {
  font-family: var(--wr-serif); font-weight: 600; font-size: 2rem; color: var(--wr-accent);
  margin: 8px 0 12px; padding-bottom: 8px; border-bottom: 3px solid var(--wr-ink); line-height: 1;
}
.wr-glossary__terms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.wr-glossary__terms--related { margin-top: 14px; }

.wr-term {
  border: 1px solid var(--wr-hairline); border-radius: 14px; padding: 18px 20px; background: #fff;
  display: flex; flex-direction: column; gap: 10px; transition: border-color .15s, box-shadow .15s, transform .1s;
}
.wr-term:hover { border-color: var(--wr-accent); box-shadow: 0 8px 24px rgba(18,58,140,.08); transform: translateY(-2px); }
.wr-term__link { text-decoration: none; display: block; }
.wr-term__link:hover { text-decoration: none; }
.wr-term__name { font-family: var(--wr-serif); font-weight: 600; font-size: 1.28rem; letter-spacing: -.01em; color: var(--wr-ink); margin: 0 0 6px; }
.wr-term:hover .wr-term__name { color: var(--wr-accent); }
.wr-term__def { font-family: var(--wr-sans); font-size: .95rem; line-height: 1.5; color: var(--wr-ink-soft); margin: 0; }
.wr-term__topics { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.wr-term__topics--head { margin: 14px 0 0; }
.wr-term__topic {
  font-family: var(--wr-sans); font-size: .72rem; font-weight: 600; letter-spacing: .03em;
  color: var(--wr-accent); background: rgba(18,58,140,.07); border-radius: 999px; padding: 4px 11px; text-decoration: none;
}
.wr-term__topic:hover { background: var(--wr-accent); color: #fff; text-decoration: none; }

.wr-backlink { font-family: var(--wr-sans); font-weight: 600; font-size: .92rem; }
.wr-article--term .entry-content { margin-top: 6px; }

@media (max-width: 860px) {
  .wr-footer-enquiry__inner { grid-template-columns: 1fr; }
  .wr-glossary__terms { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .wr-enquiry__row { grid-template-columns: 1fr; }
  .wr-azbar { top: 56px; }
  .wr-enquiry-tab { top: auto; bottom: 18px; transform: none; border-radius: 12px; padding: 12px 16px; flex-direction: row; }
  .wr-enquiry-tab span { writing-mode: horizontal-tb; }
}

/* =====================================================================
   PROFESSIONAL HEADER (utility strip + sticky nav bar + CTA)
   Overrides the earlier centred-masthead styling.
   ===================================================================== */
.wr-utility { background: var(--wr-ink); color: #cdd4de; font-family: var(--wr-sans); font-size: .74rem; }
.wr-utility__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 7px; flex-wrap: wrap; }
.wr-utility__tag { display: inline-flex; align-items: center; gap: .5em; letter-spacing: .05em; color: #cfd6e2; }
.wr-utility__right { display: flex; align-items: center; gap: 18px; }
.wr-utility__date { text-transform: uppercase; letter-spacing: .06em; opacity: .9; }
.wr-utility__link { background: none; border: 0; padding: 0; cursor: pointer; color: #cdd4de;
  font-family: var(--wr-sans); font-size: .74rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.wr-utility__link:hover { color: #fff; text-decoration: underline; }
.wr-utility__right .wr-cta-enquire { color: #fff; }

.wr-header { position: sticky; top: 0; z-index: 50; background: var(--wr-paper); border-bottom: 1px solid var(--wr-hairline); }
.wr-header__inner { position: relative; display: flex; align-items: center; gap: 18px; padding-block: 12px; }

.wr-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: 0 0 auto; }
.wr-brand:hover { text-decoration: none; }
.wr-brand__logo { height: 40px; width: auto; display: block; }
.wr-brand__mark { font-family: var(--wr-serif); font-weight: 600; font-size: 1.18rem; color: var(--wr-ink);
  padding-left: 12px; border-left: 1px solid var(--wr-hairline-2); line-height: 1; }
.wr-brand__name { font-family: var(--wr-serif); font-weight: 600; font-size: 1.5rem; color: var(--wr-ink); letter-spacing: -.01em; }

/* nav lives inside the header now - neutralise the old sticky/bordered nav */
.wr-header .wr-nav { position: static; border: 0; background: none; flex: 1 1 auto; }
.wr-header .wr-menu { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; list-style: none; margin: 0 0 0 10px; padding: 0; }
.wr-header .wr-nav a { display: block; padding: 9px 13px; font-family: var(--wr-sans); font-size: .82rem; font-weight: 600;
  letter-spacing: .03em; text-transform: uppercase; color: var(--wr-ink); border-radius: 8px; }
.wr-header .wr-nav a:hover { color: var(--wr-accent); background: var(--wr-band); text-decoration: none; }
.wr-header .wr-nav .current-menu-item > a { color: var(--wr-accent); background: var(--wr-band-2); box-shadow: none; }
.wr-header .wr-nav .sub-menu { top: 100%; }

.wr-header__actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; margin-left: auto; }
.wr-header .wr-search-toggle { background: none; border: 0; cursor: pointer; color: var(--wr-ink); padding: 8px; display: inline-flex; border-radius: 8px; }
.wr-header .wr-search-toggle:hover { background: var(--wr-band); color: var(--wr-accent); }
.wr-cta { background: var(--wr-accent); color: #fff; border: 0; border-radius: 10px; cursor: pointer; white-space: nowrap;
  font-family: var(--wr-sans); font-weight: 700; font-size: .85rem; letter-spacing: .01em; padding: 11px 18px; transition: background .15s; }
.wr-cta:hover { background: var(--wr-accent-ink); }

/* hamburger */
.wr-menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 9px 8px; flex-direction: column; gap: 5px; width: 42px; border-radius: 8px; }
.wr-menu-toggle span { display: block; height: 2px; width: 22px; background: var(--wr-ink); border-radius: 2px; }
.wr-menu-toggle:hover { background: var(--wr-band); }

@media (max-width: 1024px) {
  .wr-menu-toggle { display: flex; }
  .wr-header .wr-nav { flex: 0 0 auto; }
  .wr-header .wr-menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--wr-paper); border-bottom: 1px solid var(--wr-hairline);
    box-shadow: 0 14px 26px rgba(0,0,0,.09); padding: 8px; z-index: 60;
  }
  .wr-header .wr-menu.is-open { display: flex; }
  .wr-header .wr-menu li { border-top: 1px solid var(--wr-hairline); }
  .wr-header .wr-menu li:first-child { border-top: 0; }
  .wr-header .wr-nav a { padding: 13px 14px; }
}
@media (max-width: 620px) {
  .wr-utility__tag { display: none; }
  .wr-brand__mark { display: none; }
  .wr-cta { padding: 10px 14px; font-size: .8rem; }
}
