/* Editorial pages: all rules are isolated from the existing site navigation. */
.editorial {
  --ed-ink: #13283b;
  --ed-muted: #536577;
  --ed-navy: #091e31;
  --ed-blue: #155c8b;
  --ed-orange: #ff9418;
  --ed-line: #d9e2ea;
  --ed-paper: #fff;
  --ed-ground: #f3f6f9;
  display: block;
  margin: 0;
  padding: 0;
  background: var(--ed-ground);
  color: var(--ed-ink);
  font: inherit;
  line-height: 1.65;
  overflow-wrap: break-word;
}
.editorial *, .editorial *::before, .editorial *::after { box-sizing: border-box; }
.editorial [hidden] { display: none !important; }
.editorial a { color: var(--ed-blue); text-underline-offset: .2em; }
.editorial a:hover { text-decoration-thickness: 2px; }
.editorial :focus-visible { outline: 3px solid #bc5e00; outline-offset: 4px; }
.editorial button, .editorial input, .editorial textarea, .editorial select { font: inherit; }
.editorial button { cursor: pointer; }
.editorial button:disabled { cursor: not-allowed; opacity: .6; }
.editorial .ed-wrap { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.editorial .ed-hero, .editorial .ed-article-head {
  padding-block: clamp(36px, 5vw, 72px);
  background: radial-gradient(ellipse at 88% 0, #18415c 0, transparent 58%), var(--ed-navy);
  border-bottom: 3px solid var(--ed-orange);
  color: #fff;
}
.editorial .ed-kicker {
  margin: 0 0 14px;
  color: #ffb958;
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.editorial .ed-title {
  max-width: 20ch;
  margin: 0 0 22px;
  color: inherit;
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.12;
  text-wrap: balance;
}
.editorial .ed-article-head .ed-title { max-width: 27ch; font-size: clamp(2rem, 3.6vw, 3.15rem); }
.editorial .ed-intro {
  max-width: 68ch;
  margin: 0;
  color: #d9e5ee;
  font-size: clamp(1.03rem, 1.5vw, 1.2rem);
  line-height: 1.75;
}
.editorial .ed-intro p { margin: 0 0 1em; color: inherit; }
.editorial .ed-intro p:last-child { margin-bottom: 0; }
.editorial .ed-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4em .7em;
  margin: 0 0 24px;
  color: #c4d3df;
  font-size: .85rem;
  line-height: 1.6;
}
.editorial .ed-breadcrumbs a { color: #e5edf4; }
.editorial .ed-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .4em .7em; margin: 0; padding: 0; list-style: none; }
.editorial .ed-breadcrumbs li + li::before { content: "/"; padding-right: .7em; color: #829caf; }
.editorial .ed-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  margin-top: 25px;
  color: #d0dde7;
  font-size: .88rem;
}
.editorial .ed-meta a { color: #fff; }
.editorial .ed-hero :focus-visible, .editorial .ed-article-head :focus-visible { outline-color: #ffba60; }
.editorial .ed-toolbar { display: flex; flex-direction: column; gap: 24px; padding-block: 36px 20px; }
.editorial .ed-search { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; max-width: 680px; margin: 0; }
.editorial .ed-search label { flex: 0 0 100%; color: var(--ed-ink); font-size: .92rem; font-weight: 700; }
.editorial .ed-search input[type="search"] {
  flex: 1 1 250px;
  width: auto;
  min-width: 0;
  min-height: 48px;
  padding: 11px 15px;
  border: 1px solid #aebfcd;
  border-radius: 9px;
  background: #fff;
  color: var(--ed-ink);
  box-shadow: 0 1px 2px #10283b05;
}
.editorial .ed-search input::placeholder { color: #637487; opacity: 1; }
.editorial .ed-search button, .editorial .ed-actions button, .editorial .ed-actions .button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid var(--ed-navy);
  border-radius: 9px;
  background: var(--ed-navy);
  color: #fff;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}
.editorial .ed-search button:hover, .editorial .ed-actions button:hover, .editorial .ed-actions .button:hover { background: #164568; }
.editorial .ed-filters { display: flex; flex-wrap: wrap; gap: 9px; }
.editorial .ed-filters button {
  min-height: 42px;
  padding: 8px 15px;
  border: 1px solid #bbcbd7;
  border-radius: 999px;
  background: #fff;
  color: #294357;
  font-size: .87rem;
  font-weight: 650;
  line-height: 1.5;
}
.editorial .ed-filters button:hover { border-color: #3b718f; background: #eaf1f6; }
.editorial .ed-filters button.is-active, .editorial .ed-filters button[aria-pressed="true"] { border-color: var(--ed-navy); background: var(--ed-navy); color: #fff; }
.editorial .ed-status { margin: 0 0 21px; color: var(--ed-muted); font-size: .9rem; }
.editorial .ed-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-bottom: 52px; }
.editorial .ed-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  padding: 27px;
  border: 1px solid var(--ed-line);
  border-top: 3px solid #b6c9d6;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 20px #142e4205;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.editorial .ed-card:hover { border-color: #7c9eb4; border-top-color: var(--ed-orange); box-shadow: 0 9px 24px #142e420c; }
.editorial .ed-card-category { align-self: flex-start; margin: 0 0 17px; color: #5e450d; font-size: .75rem; font-weight: 800; line-height: 1.5; letter-spacing: .07em; text-transform: uppercase; }
.editorial .ed-card-title { margin: 0 0 14px; color: var(--ed-ink); font-size: 1.3rem; font-weight: 750; line-height: 1.35; letter-spacing: -.015em; text-wrap: balance; }
.editorial .ed-card-title a { color: inherit; text-decoration: none; }
.editorial .ed-card-title a:hover { text-decoration: underline; text-decoration-color: var(--ed-orange); }
.editorial .ed-card-summary { margin: 0 0 24px; color: var(--ed-muted); font-size: .96rem; line-height: 1.7; }
.editorial .ed-card-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: auto 0 18px; color: #617485; font-size: .8rem; line-height: 1.5; }
.editorial .ed-related > .ed-kicker { color: #805000; }
.editorial .ed-read-link { align-self: flex-start; font-size: .92rem; font-weight: 750; }
.editorial .ed-hero .ed-read-link { color: #ffcc85; }
.editorial.ed-hub .ed-title { max-width: 27ch; }
.editorial.ed-admin h1 { color: var(--ed-ink); }
.editorial.ed-admin > .ed-wrap > .ed-kicker { color: #805000; }
.editorial .ed-card.is-featured { grid-column: span 2; padding: 32px; border-color: #163e58; border-top-color: var(--ed-orange); background: linear-gradient(120deg, #0d2a42, #174861); color: #fff; }
.editorial .ed-card.is-featured .ed-card-title { max-width: 27ch; color: #fff; font-size: clamp(1.45rem, 2.2vw, 1.9rem); }
.editorial .ed-card.is-featured .ed-card-category { color: #ffbc66; }
.editorial .ed-card.is-featured .ed-card-summary { max-width: 64ch; color: #dce7ef; }
.editorial .ed-card.is-featured .ed-card-meta { color: #b9d0df; }
.editorial .ed-card.is-featured .ed-read-link { color: #fff; }
.editorial .ed-card.is-featured :focus-visible { outline-color: #ffbc66; }
.editorial .ed-empty { margin: 0 0 48px; padding: 34px; border: 1px dashed #aabbc9; border-radius: 12px; background: #fff; color: var(--ed-muted); }
.editorial .ed-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; align-items: start; gap: 48px; padding-block: 48px 60px; }
.editorial .ed-prose { width: 100%; max-width: 70ch; min-width: 0; color: #203548; font-size: 1.0625rem; line-height: 1.78; }
.editorial .ed-prose > :first-child { margin-top: 0; }
.editorial .ed-prose > :last-child { margin-bottom: 0; }
.editorial .ed-prose h2, .editorial .ed-prose h3, .editorial .ed-prose h4 { color: var(--ed-ink); font-weight: 750; letter-spacing: -.02em; line-height: 1.3; scroll-margin-top: 160px; text-wrap: balance; }
.editorial .ed-prose h2 { margin: 2.1em 0 .8em; font-size: clamp(1.45rem, 2.4vw, 1.85rem); }
.editorial .ed-prose h3 { margin: 1.7em 0 .65em; font-size: 1.25rem; }
.editorial .ed-prose h4 { margin: 1.4em 0 .6em; font-size: 1.08rem; }
.editorial .ed-prose p { margin: 0 0 1.2em; color: inherit; line-height: inherit; }
.editorial .ed-prose ul, .editorial .ed-prose ol { margin: 0 0 1.3em; padding-left: 1.5em; }
.editorial .ed-prose li { margin-bottom: .55em; padding-left: .18em; }
.editorial .ed-prose li::marker { color: #3e718e; font-weight: 700; }
.editorial .ed-prose li > ul, .editorial .ed-prose li > ol { margin-top: .55em; margin-bottom: .6em; }
.editorial .ed-prose a { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; }
.editorial .ed-prose strong { color: #13283b; font-weight: 750; }
.editorial .ed-prose blockquote { margin: 1.7em 0; padding: 18px 23px; border-left: 4px solid var(--ed-orange); border-radius: 0 9px 9px 0; background: #fff3de; color: #453917; }
.editorial .ed-prose blockquote p:last-child { margin-bottom: 0; }
.editorial .ed-prose code { padding: .1em .3em; border-radius: 4px; background: #e4ecf2; color: #254258; font-family: ui-monospace, Consolas, monospace; font-size: .88em; overflow-wrap: anywhere; }
.editorial .ed-prose pre { max-width: 100%; padding: 20px; overflow-x: auto; border-radius: 9px; background: #e4ecf2; }
.editorial .ed-prose pre code { padding: 0; }
.editorial .ed-prose img { display: block; max-width: 100%; height: auto; margin-block: 24px; border-radius: 10px; }
.editorial .ed-prose table { display: block; max-width: 100%; margin-block: 24px; overflow-x: auto; border-collapse: collapse; font-size: .93rem; }
.editorial .ed-prose th, .editorial .ed-prose td { padding: 12px 15px; border: 1px solid #ccd9e3; text-align: left; vertical-align: top; }
.editorial .ed-prose th { background: #e5edf3; font-weight: 750; }
.editorial .ed-prose hr { margin-block: 32px; border: 0; border-top: 1px solid var(--ed-line); }
.editorial .ed-sidebar { position: sticky; top: 150px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.editorial .ed-toc, .editorial .ed-note, .editorial .ed-service { margin: 0; padding: 23px; border: 1px solid var(--ed-line); border-radius: 12px; background: #fff; color: var(--ed-muted); font-size: .9rem; line-height: 1.65; }
.editorial .ed-toc > strong, .editorial .ed-note > strong, .editorial .ed-service > strong { display: block; margin: 0 0 13px; color: var(--ed-ink); font-size: .96rem; }
.editorial .ed-toc ol { display: grid; gap: 10px; margin: 0; padding-left: 0; list-style: none; }
.editorial .ed-toc li { padding-left: .2em; }
.editorial .ed-toc li::marker { color: #7890a1; }
.editorial .ed-toc a { color: #365c75; text-decoration: none; }
.editorial .ed-toc a:hover { text-decoration: underline; }
.editorial .ed-note { border-left: 3px solid #ce7b19; background: #fff8ed; color: #614c2c; }
.editorial .ed-note p, .editorial .ed-service p { margin: 0 0 13px; color: inherit; }
.editorial .ed-note p:last-child, .editorial .ed-service p:last-child { margin-bottom: 0; }
.editorial .ed-service h2, .editorial .ed-service h3, .editorial .ed-note h2, .editorial .ed-note h3 { margin: 0 0 12px; color: var(--ed-ink); font-size: 1.08rem; line-height: 1.35; }
.editorial .ed-service a { display: inline-block; font-weight: 750; }
.editorial .ed-related { padding-block: 32px 8px; border-top: 1px solid var(--ed-line); }
.editorial .ed-related > h2, .editorial .ed-related .ed-wrap > h2 { margin: 0 0 24px; color: var(--ed-ink); font-size: 1.7rem; font-weight: 750; letter-spacing: -.02em; }
.editorial .ed-related .ed-card { padding: 23px; }
.editorial .ed-related .ed-card-title { font-size: 1.2rem; }
.editorial .ed-source-list { padding: 22px 25px 22px 42px; border-top: 1px solid var(--ed-line); background: #eaf0f5; font-size: .9rem; overflow-wrap: anywhere; }
.editorial .ed-source-list li { margin-bottom: 10px; }
.editorial .ed-footer-cta { padding: 34px; border: 1px solid #c5d7e4; border-left: 4px solid var(--ed-orange); border-radius: 12px; background: #e6eef5; color: var(--ed-ink); }
.editorial .ed-footer-cta h2 { margin: 0 0 12px; color: inherit; font-size: 1.5rem; line-height: 1.3; }
.editorial .ed-footer-cta p { max-width: 70ch; margin: 0 0 18px; color: #415d73; }
.editorial .ed-footer-cta a { display: inline-block; font-weight: 750; }
.editorial.ed-hub > .ed-wrap:last-child, .editorial.ed-article > .ed-wrap:last-child { padding-bottom: 52px; }

/* The editorial controls use the same typography and clear, native form fields. */
.editorial.ed-admin { padding-block: 32px 60px; }
.editorial .ed-admin-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; gap: 28px; margin-top: 28px; }
.editorial .ed-editor, .editorial .ed-editor-side { min-width: 0; padding: 28px; border: 1px solid var(--ed-line); border-radius: 12px; background: #fff; }
.editorial .ed-editor-side { position: sticky; top: 145px; }
.editorial.ed-admin label { display: block; margin: 20px 0 7px; color: var(--ed-ink); font-size: .93rem; font-weight: 700; }
.editorial.ed-admin label:first-child { margin-top: 0; }
.editorial.ed-admin input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), .editorial.ed-admin textarea, .editorial.ed-admin select {
  display: block;
  width: 100%;
  min-height: 46px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid #a9bdcd;
  border-radius: 7px;
  background: #fff;
  color: #142e43;
  line-height: 1.5;
}
.editorial.ed-admin input[type="checkbox"], .editorial.ed-admin input[type="radio"] { width: 18px; height: 18px; margin-right: 7px; accent-color: #155c8b; vertical-align: middle; }
.editorial.ed-admin textarea { min-height: 140px; resize: vertical; }
.editorial.ed-admin textarea[name="body"], .editorial.ed-admin textarea[name="content"], .editorial.ed-admin textarea[name="markdown"] { min-height: 520px; font-family: ui-monospace, Consolas, monospace; font-size: .94rem; line-height: 1.65; tab-size: 2; }
.editorial.ed-admin input[readonly], .editorial.ed-admin textarea[readonly] { background: #eef3f7; color: #546c7e; }
.editorial.ed-admin small { display: block; margin-block: 6px 15px; color: var(--ed-muted); font-size: .82rem; line-height: 1.6; }
.editorial.ed-admin fieldset { min-width: 0; margin: 20px 0; padding: 18px; border: 1px solid var(--ed-line); border-radius: 8px; }
.editorial.ed-admin legend { padding-inline: 7px; color: var(--ed-ink); font-weight: 700; }
.editorial .ed-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-block: 22px 0; }
.editorial .ed-actions a { font-size: .93rem; }
.editorial .ed-actions button[value="draft"], .editorial .ed-actions button[name="preview"], .editorial .ed-actions button[value="preview"] { border-color: #a9bdcd; background: #f0f5f8; color: #29475e; }
.editorial .ed-actions button[value="draft"]:hover, .editorial .ed-actions button[name="preview"]:hover, .editorial .ed-actions button[value="preview"]:hover { background: #dfeaf2; }
.editorial .ed-alert { margin-block: 20px; padding: 17px 21px; border: 1px solid #a3c9b2; border-left: 4px solid #277145; border-radius: 8px; background: #edf8f1; color: #205235; }
.editorial .ed-alert.is-error { border-color: #dab0aa; border-left-color: #ad392c; background: #fff0ed; color: #843026; }
.editorial .ed-alert p:last-child { margin-bottom: 0; }
.editorial .ed-revisions { margin-top: 25px; padding-top: 22px; border-top: 1px solid var(--ed-line); font-size: .85rem; }
.editorial .ed-revisions ul, .editorial .ed-revisions ol { display: grid; gap: 12px; margin: 14px 0 0; padding-left: 20px; }
.editorial .ed-revisions button { min-height: 36px; padding: 6px 10px; border: 1px solid #b8cbd8; border-radius: 6px; background: #f3f7fa; color: #2b526d; font-size: .8rem; }
.editorial .ed-preview { margin-top: 30px; padding: clamp(20px, 4vw, 40px); border: 1px solid var(--ed-line); border-top: 3px solid #3b7b9f; border-radius: 12px; background: #fff; }
.editorial .ed-preview .ed-prose { margin-inline: auto; }

@media (max-width: 1100px) {
  .editorial .ed-grid { gap: 18px; }
  .editorial .ed-card { padding: 23px; }
  .editorial .ed-layout { grid-template-columns: minmax(0, 1fr) 250px; gap: 30px; }
  .editorial .ed-toc, .editorial .ed-note, .editorial .ed-service { padding: 19px; }
  .editorial .ed-admin-grid { grid-template-columns: minmax(0, 1fr) 285px; gap: 20px; }
}
@media (max-width: 899px) {
  .editorial .ed-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editorial .ed-card.is-featured { grid-column: span 2; }
  .editorial .ed-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 28px 44px; }
  .editorial .ed-sidebar { position: static; order: -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .editorial .ed-toc { grid-column: 1 / -1; }
  .editorial .ed-toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 30px; }
  .editorial .ed-prose { max-width: 70ch; margin-inline: auto; }
  .editorial .ed-admin-grid { grid-template-columns: minmax(0, 1fr); }
  .editorial .ed-editor-side { position: static; }
}
@media (max-width: 599px) {
  .editorial .ed-wrap { width: calc(100% - 32px); }
  .editorial .ed-hero, .editorial .ed-article-head { padding-block: 28px 34px; }
  .editorial .ed-title { margin-bottom: 18px; font-size: 2.05rem; }
  .editorial .ed-article-head .ed-title { font-size: 1.95rem; line-height: 1.16; }
  .editorial .ed-kicker { font-size: .73rem; }
  .editorial .ed-intro { font-size: 1rem; }
  .editorial .ed-breadcrumbs { margin-bottom: 20px; font-size: .79rem; }
  .editorial .ed-meta { gap: 7px 17px; font-size: .8rem; }
  .editorial .ed-toolbar { gap: 19px; padding-block: 25px 17px; }
  .editorial .ed-search { gap: 8px; }
  .editorial .ed-search input[type="search"] { flex-basis: 180px; }
  .editorial .ed-search button { padding-inline: 14px; }
  .editorial .ed-filters { gap: 8px; }
  .editorial .ed-filters button { padding: 8px 12px; font-size: .82rem; }
  .editorial .ed-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 35px; }
  .editorial .ed-card, .editorial .ed-card.is-featured { grid-column: auto; padding: 24px; }
  .editorial .ed-card.is-featured .ed-card-title { font-size: 1.45rem; }
  .editorial .ed-card-title { font-size: 1.26rem; }
  .editorial .ed-card-category { margin-bottom: 12px; }
  .editorial .ed-card-summary { margin-bottom: 20px; }
  .editorial .ed-sidebar { display: flex; gap: 14px; }
  .editorial .ed-toc ol { grid-template-columns: minmax(0, 1fr); }
  .editorial .ed-prose { font-size: 1rem; line-height: 1.8; }
  .editorial .ed-prose h2, .editorial .ed-prose h3, .editorial .ed-prose h4 { scroll-margin-top: 125px; }
  .editorial .ed-prose h2 { margin-top: 1.8em; font-size: 1.45rem; }
  .editorial .ed-prose blockquote { padding: 16px 18px; }
  .editorial .ed-footer-cta { padding: 24px; }
  .editorial .ed-footer-cta h2 { font-size: 1.35rem; }
  .editorial.ed-hub > .ed-wrap:last-child, .editorial.ed-article > .ed-wrap:last-child { padding-bottom: 36px; }
  .editorial.ed-admin { padding-block: 24px 40px; }
  .editorial .ed-editor, .editorial .ed-editor-side { padding: 20px; }
  .editorial .ed-actions { align-items: stretch; }
  .editorial .ed-actions button { flex: 1 1 140px; }
  .editorial.ed-admin textarea[name="body"], .editorial.ed-admin textarea[name="content"], .editorial.ed-admin textarea[name="markdown"] { min-height: 420px; }
}
@media (prefers-reduced-motion: reduce) {
  .editorial *, .editorial *::before, .editorial *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
@media print {
  .editorial { background: #fff !important; color: #000 !important; font-size: 11pt; }
  .editorial .ed-wrap { width: 100%; max-width: none; }
  .editorial .ed-hero, .editorial .ed-article-head { padding: 0 0 20px; border-bottom: 1px solid #999; background: #fff !important; color: #000 !important; }
  .editorial .ed-kicker, .editorial .ed-title, .editorial .ed-intro, .editorial .ed-meta, .editorial .ed-card-title, .editorial .ed-card-summary { color: #000 !important; }
  .editorial aside, .editorial button, .editorial .ed-toolbar, .editorial .ed-filters, .editorial .ed-status, .editorial .ed-breadcrumbs, .editorial .ed-footer-cta, .editorial .ed-actions, .editorial .ed-related { display: none !important; }
  .editorial .ed-layout, .editorial .ed-grid { display: block; padding-block: 20px; }
  .editorial .ed-prose { max-width: none; font-size: 11pt; line-height: 1.6; }
  .editorial .ed-prose h2, .editorial .ed-prose h3 { break-after: avoid; }
  .editorial .ed-prose p, .editorial .ed-prose li { widows: 3; orphans: 3; }
  .editorial .ed-card, .editorial .ed-card.is-featured { margin-bottom: 20px; padding: 15px; border: 1px solid #aaa; background: #fff !important; color: #000 !important; box-shadow: none; break-inside: avoid; }
  .editorial a { color: #000 !important; }
  .editorial .ed-prose blockquote { border-left-color: #777; background: #fff; }
}
