:root {
  --navy: #10243f;
  --ink: #1b2735;
  --muted: #6d7783;
  --warm: #f8f6f1;
  --line: #dfe3e7;
  --gold: #b39555;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

.content-shell {
  max-width: 1180px;
  margin: auto;
  padding: 70px 28px;
}

.content-hero {
  padding: 30px 0 55px;
  border-bottom: 1px solid var(--line);
  max-width: 900px;
}

.content-hero.compact {
  padding-bottom: 30px;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: .18em;
  font-weight: 700;
  color: var(--gold);
}

h1, h2 {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--navy);
  font-weight: 500;
}

.content-hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  margin: 10px 0 18px;
}

.content-hero p:not(.eyebrow) {
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
}

.article-list-editorial {
  padding: 28px 0 0;
}

.article-row {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 24px 0 28px;
  border-top: 1px solid var(--line);
}

.article-row:first-child {
  border-top: 3px solid var(--navy);
}

.article-thumb {
  display: block;
  width: 320px;
  height: 180px;
  aspect-ratio: 16 / 9;
  background: var(--warm);
  overflow: hidden;
  border-radius: 7px;
  text-decoration: none;
  flex-shrink: 0;
}

.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.article-row-content {
  min-width: 0;
  align-self: center;
  padding: 0;
}

.article-row-content h2 {
  font-size: 30px;
  line-height: 1.16;
  margin: 8px 0 12px;
}

.article-row-content h2 a {
  text-decoration: none;
  color: var(--navy);
}

.article-row-content > p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 14px;
  max-width: 760px;
}

.article-row-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 14px;
}

.news-controls {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 250px 130px auto;
  gap: 14px;
  align-items: center;
  padding: 30px 0 28px;
  border-bottom: 1px solid var(--line);
}

.news-search {
  position: relative;
}

.news-search input {
  width: 100%;
  padding: 15px 16px 15px 44px;
  border: 1px solid var(--line);
  font: inherit;
  background: #fff;
}

.news-search-icon {
  position: absolute;
  left: 15px;
  top: 9px;
  font-size: 26px;
  color: var(--muted);
}

.news-controls select,
.news-controls button {
  font: inherit;
  padding: 15px 16px;
  border: 1px solid var(--line);
  background: #fff;
}

.news-controls button {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.news-sort {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.news-sort select {
  min-width: 145px;
  color: var(--ink);
}

.article-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 24px 0 45px;
}

.page-btn {
  min-width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  font: inherit;
}

.page-btn.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.page-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.news-empty {
  padding: 50px 0;
  text-align: center;
}

.article-card h2 {
  font-size: 27px;
  line-height: 1.2;
  margin: 12px 0;
}

.article-card p {
  line-height: 1.7;
  color: var(--muted);
}

.article-card a {
  color: inherit;
}

.article-meta,
.article-byline {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
}

.read-link,
.back-link {
  font-weight: 700;
  text-decoration: none;
  color: var(--navy);
}

.newsletter {
  margin-top: 30px;
  padding: 36px;
  background: var(--warm);
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
}

.newsletter h2 {
  margin: 8px 0;
}

.newsletter form {
  display: flex;
  gap: 8px;
  min-width: 380px;
}

.newsletter input,
.newsletter button,
.cms-toolbar input,
.cms-toolbar select,
.cms-toolbar button,
label input,
label textarea,
label select {
  font: inherit;
  border: 1px solid var(--line);
  padding: 12px;
  background: #fff;
}

.newsletter button,
.cms-toolbar button,
form > button {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
  cursor: pointer;
}

.form-message {
  font-size: 13px;
  color: var(--muted);
}

.article-page {
  max-width: 850px;
  margin: auto;
}

.article-page h1 {
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.08;
  margin: 15px 0;
}

.lead {
  font-size: 21px;
  line-height: 1.7;
  color: var(--muted);
}

.article-body {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px;
  line-height: 1.85;
  margin: 40px 0;
}
.article-body p { margin: 0 0 1.15em; }
.article-body h2, .article-body h3 {
  color: var(--navy);
  line-height: 1.25;
  margin: 1.5em 0 .6em;
}
.article-body h2 { font-size: 30px; }
.article-body h3 { font-size: 24px; }
.article-body ul, .article-body ol { margin: 1em 0 1.2em; padding-left: 1.6em; }
.article-body li { margin: .35em 0; }
.article-body blockquote {
  margin: 1.4em 0;
  padding: .8em 1.1em;
  border-left: 3px solid var(--gold);
  background: var(--warm);
  color: var(--muted);
}
.article-body a { color: var(--navy); text-decoration: underline; }
.article-body strong, .article-body b { font-weight: 700; }
.article-body em, .article-body i { font-style: italic; }
.article-body u { text-decoration: underline; }


.article-body > p { margin: 0 0 1.15em; }
.article-body > p:last-child { margin-bottom: 0; }
.rich-body > p { margin: 0 0 1em; }
.rich-body > p:last-child { margin-bottom: 0; }

.article-image img {
  max-width: 100%;
  display: block;
  margin-top: 30px;
}

.cms-toolbar {
  display: flex;
  gap: 10px;
  margin: 28px 0;
}

.cms-toolbar input {
  flex: 1;
}

.cms-list {
  border-top: 1px solid var(--line);
}

.cms-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.cms-row span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 5px;
}

.cms-row button {
  padding: 9px 14px;
}

.admin-content form {
  max-width: 900px;
  display: grid;
  gap: 16px;
}

.admin-content label {
  display: grid;
  gap: 7px;
  font-weight: 700;
  font-size: 13px;
}

.admin-content textarea {
  resize: vertical;
}

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.admin-content hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}

/* ---------- Responsive ---------- */

/* Tablet: shrink thumbnail a bit more */
@media (max-width: 1200px) and (min-width: 801px) {
  .article-row {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 22px;
  }

  .article-thumb {
    width: 260px;
    height: 146px;
  }

  .article-row-content h2 {
    font-size: 26px;
  }

  .article-row-content > p {
    font-size: 16px;
  }
}

/* Mobile: stack, full-width thumb */
@media (max-width: 800px) {
  .article-row {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px 0 24px;
  }

  .article-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .article-row-content h2 {
    font-size: 24px;
  }

  .article-row-content > p {
    font-size: 16px;
  }

  .news-controls {
    grid-template-columns: 1fr;
  }

  .news-sort {
    justify-content: space-between;
  }

  .news-sort select {
    flex: 1;
  }

  .newsletter {
    display: block;
  }

  .newsletter form {
    min-width: 0;
    margin-top: 20px;
    flex-wrap: wrap;
  }

  .newsletter input {
    flex: 1;
    min-width: 0;
  }

  .two {
    grid-template-columns: 1fr;
  }

  .cms-toolbar {
    flex-wrap: wrap;
  }

  .cms-toolbar input {
    flex-basis: 100%;
  }
}
/* ---------- Rich article editor ---------- */
.rich-editor { border: 1px solid var(--line); background: #fff; }
.rich-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:5px; padding:9px; border-bottom:1px solid var(--line); background:var(--warm); }
.rich-toolbar button { min-height:34px; padding:6px 10px; border:1px solid #d5d9de; background:#fff; color:var(--ink); font:inherit; font-size:12px; cursor:pointer; border-radius:3px; }
.rich-toolbar button:hover { border-color:var(--navy); color:var(--navy); }
.toolbar-divider { width:1px; height:24px; background:var(--line); margin:0 3px; }
.rich-body { min-height:360px; padding:18px 20px; outline:none; font-family:Georgia, 'Times New Roman', serif; font-size:18px; line-height:1.8; font-weight:400; }
.rich-body:empty::before { content:attr(data-placeholder); color:#9aa2aa; pointer-events:none; }
.rich-body h2,.rich-body h3 { color:var(--navy); font-family:Georgia, 'Times New Roman', serif; line-height:1.25; margin:1.3em 0 .55em; }
.rich-body h2 { font-size:28px; } .rich-body h3 { font-size:23px; } .rich-body p { margin:0 0 1em; }
.rich-body ul,.rich-body ol { padding-left:1.5em; }
.rich-body blockquote { margin:1.2em 0; padding:.8em 1.1em; border-left:3px solid var(--gold); background:var(--warm); color:var(--muted); }
.rich-body a { color:var(--navy); text-decoration:underline; }
