/* Editorial journal, using the site's existing navy, gold and serif palette. */
.blog-page {
  background: #f7f6f2;
  scroll-margin-top: 120px;
}
.blog-hero {
  padding: 54px 0 110px;
  min-height: 0;
}
.blog-hero h1 {
  font-size: clamp(38px, 4.3vw, 61px);
  max-width: 900px;
}
.blog-hero p {
  margin-bottom: 0;
  font-size: 14px;
  color: #c6d1dc;
}
.blog-hero::after {
  bottom: -120px;
  right: 4vw;
}
.blog-content {
  position: relative;
  margin-top: -52px;
  padding-bottom: 90px;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}
.blog-card {
  position: relative;
  min-width: 0;
  background: #fff;
  border: 1px solid #e3e3de;
  display: flex;
  flex-direction: column;
}
.blog-card > .blog-cover {
  height: 290px;
}
.blog-cover {
  position: relative;
  overflow: hidden;
  background: var(--navy2);
  min-width: 0;
}
.blog-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-cover-mark {
  display: none;
}
.blog-cover--empty {
  background:
    radial-gradient(ellipse at 20% 15%, #28486a, transparent 65%), var(--navy);
}
.blog-cover--empty .blog-cover-mark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold2);
  font:
    100px Georgia,
    serif;
  letter-spacing: -0.1em;
  opacity: 0.65;
}
.blog-cover-mark > span {
  font-size: 0.65em;
}
.blog-card > .blog-card-body {
  padding: 30px 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: #93703a;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.6;
}
.blog-meta > span:first-child > span {
  margin: 0 7px;
  opacity: 0.5;
}
.blog-meta > span:last-child {
  letter-spacing: 0.02em;
  font-weight: 400;
}
.blog-card h2 {
  font:
    500 clamp(26px, 2.4vw, 34px)/1.25 "Playfair Display",
    Georgia,
    serif;
  letter-spacing: -0.025em;
  margin: 22px 0 16px;
  overflow-wrap: anywhere;
}
.blog-card p {
  white-space: normal;
  color: #637080;
  line-height: 1.85;
  font-size: 14px;
  margin: 0 0 30px;
  overflow-wrap: anywhere;
}
.blog-card-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}
.blog-read {
  display: inline-flex;
  align-items: center;
  gap: 27px;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--gold);
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  padding: 0 0 9px;
}
.blog-read > span {
  font-size: 20px;
  color: #a17a34;
}
.blog-read::after {
  content: "";
  position: absolute;
  inset: 0;
}
.blog-card:focus-within {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}
.blog-read:focus-visible {
  outline: none;
}
.blog-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  background: var(--navy);
  border-color: #33455a;
  box-shadow: 0 18px 36px #0c224010;
}
.blog-card--featured > .blog-cover {
  height: auto;
  min-height: 455px;
}
.blog-card--featured > .blog-card-body {
  padding: 42px;
  border-top: 2px solid var(--gold);
}
.blog-card--featured .blog-meta {
  color: var(--gold2);
}
.blog-card--featured h2 {
  color: #fff;
  font-size: clamp(30px, 3.1vw, 43px);
  margin-top: 28px;
}
.blog-card--featured p {
  color: #c0ccda;
}
.blog-card--featured .blog-read {
  color: #fff;
}
.blog-card--featured .blog-read > span {
  color: var(--gold2);
}
.blog-reading-time {
  font-size: 11px;
  color: #a6b5c6;
}
.blog-archive-heading {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  border-bottom: 1px solid #dedfd9;
  margin: 24px 0 0;
  padding-bottom: 20px;
}
.blog-archive-heading h2 {
  font:
    500 28px "Playfair Display",
    Georgia,
    serif;
  margin: 0;
  color: var(--navy);
}
.blog-archive-heading > span {
  font-size: 12px;
  color: var(--muted);
}
.blog-empty {
  grid-column: 1 / -1;
  padding: 50px;
  background: #fff;
  border-top: 2px solid var(--gold);
}
.blog-empty h2 {
  font:
    500 34px "Playfair Display",
    Georgia,
    serif;
}
.blog-empty p {
  color: var(--muted);
  line-height: 1.8;
}
.blog-empty .primary-link {
  margin-top: 16px;
}

.blog-dialog {
  width: min(900px, calc(100vw - 32px));
  max-height: 90vh;
  max-height: 90dvh;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 30px 90px #08192d55;
  overscroll-behavior: contain;
}
html:has(.blog-dialog[open]) {
  overflow: hidden;
}
.blog-dialog-toolbar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.blog-dialog-toolbar .dialog-close {
  width: 40px;
  height: 40px;
}
#blog-detail > .blog-cover {
  height: clamp(200px, 35vw, 390px);
}
#blog-detail > .blog-cover--empty {
  display: none;
}
.blog-detail-body {
  max-width: 760px;
  margin: auto;
  padding: 40px 40px 30px;
}
.blog-detail-body h2 {
  font:
    500 clamp(29px, 4vw, 44px)/1.2 "Playfair Display",
    Georgia,
    serif;
  color: var(--navy);
  letter-spacing: -0.025em;
  margin: 22px 0 32px;
  overflow-wrap: anywhere;
}
.blog-prose p {
  font-size: 16px;
  line-height: 1.95;
  color: #526173;
  margin: 0 0 24px;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.blog-prose p:first-child {
  font-size: 18px;
  color: #243c55;
}
.blog-detail-end {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 32px;
}
.blog-detail-end > span {
  color: #a17a34;
  font:
    28px Georgia,
    serif;
}
.blog-detail-end button {
  background: none;
  border: 0;
  border-bottom: 1px solid var(--gold);
  color: var(--navy);
  cursor: pointer;
}

.content-image-field {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.content-image-field > label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #445366;
}
.content-image-field > label span {
  font-weight: 400;
  color: var(--muted);
}
.content-image-field input[type="file"] {
  width: 100%;
  max-width: 100%;
  padding: 12px;
  border: 1px dashed #bdc8cf;
  background: #f7f8f7;
  font-size: 13px;
}
.content-image-field .image-url-field {
  margin-top: 18px;
}
.content-image-field .image-url-field > label {
  font-size: 12px;
  font-weight: 700;
  color: #445366;
}
.content-image-field .image-url-controls input {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid #d7dfe2;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
}
.content-image-field .image-url-controls input:focus {
  outline: 0;
  border-color: var(--gold);
}
.content-image-field input::file-selector-button {
  border: 1px solid #d7dfe2;
  background: #fff;
  color: var(--navy);
  font: inherit;
  padding: 7px 12px;
  margin-right: 12px;
  cursor: pointer;
}
#content-image-help {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
}
.content-image-preview {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px;
  border: 1px solid var(--line);
}
.content-image-preview img {
  width: 110px;
  height: 78px;
  object-fit: cover;
}
.content-image-preview > div {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 12px;
  font-size: 12px;
}
.content-image-preview button {
  padding: 0;
  border: 0;
  border-bottom: 1px solid #bb6e6e;
  background: none;
  font-size: 12px;
  color: #a63d3d;
}
#content-status {
  font-size: 12px;
  color: #a63d3d;
  line-height: 1.7;
}
#content-save:disabled {
  opacity: 0.55;
  cursor: progress;
}
#admin-posts-list .content-row > .admin-blog-cover {
  flex: 0 0 105px;
}
.admin-blog-cover > .blog-cover {
  height: 85px;
}
.admin-blog-cover .blog-cover-mark {
  font-size: 33px;
}
#admin-posts-list .content-row > div:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.admin-blog-number {
  display: inline-block;
  margin-bottom: 6px;
  color: #93703a;
  font-size: 10px;
}

@media (prefers-reduced-motion: no-preference) {
  .blog-cover img {
    transition: transform 650ms var(--motion-ease);
  }
  .blog-read > span {
    transition: transform 300ms var(--motion-ease);
  }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .blog-card:hover .blog-cover img {
    transform: scale(1.035);
  }
  .blog-card:hover .blog-read > span {
    transform: translate(2px, -2px);
  }
}
@media (max-width: 1000px) {
  .blog-card--featured {
    grid-template-columns: 1fr 1fr;
  }
  .blog-card--featured > .blog-card-body {
    padding: 30px;
  }
  .blog-card--featured > .blog-cover {
    min-height: 430px;
  }
  .blog-card > .blog-cover {
    height: 240px;
  }
  .blog-card--featured > .blog-cover {
    height: auto;
  }
  .blog-card > .blog-card-body {
    padding: 26px;
  }
}
@media (max-width: 700px) {
  .blog-hero {
    padding: 42px 0 80px;
  }
  .blog-hero h1 {
    font-size: clamp(34px, 8vw, 46px);
  }
  .blog-hero p {
    font-size: 13px;
  }
  .blog-content {
    margin-top: -36px;
    padding-bottom: 55px;
  }
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .blog-card--featured {
    display: flex;
  }
  .blog-card > .blog-cover,
  .blog-card--featured > .blog-cover {
    height: 235px;
    min-height: 0;
  }
  .blog-card--featured > .blog-card-body {
    padding: 27px 24px;
  }
  .blog-card--featured h2 {
    font-size: 32px;
    margin-top: 22px;
  }
  .blog-card p {
    font-size: 14px;
  }
  .blog-meta {
    font-size: 9px;
  }
  .blog-archive-heading {
    margin-top: 18px;
    padding-bottom: 18px;
  }
  .blog-archive-heading h2 {
    font-size: 25px;
  }
  .blog-empty {
    padding: 30px 24px;
  }
  .blog-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 24px);
  }
  .blog-dialog-toolbar {
    padding: 9px 16px;
  }
  .blog-detail-body {
    padding: 28px 23px;
  }
  .blog-prose p {
    font-size: 15px;
    line-height: 1.85;
  }
  .blog-prose p:first-child {
    font-size: 17px;
  }
  #admin-posts-list .content-row {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 16px;
  }
  #admin-posts-list .admin-blog-cover > .blog-cover {
    height: 70px;
  }
  #admin-posts-list .content-row > .admin-actions {
    grid-column: 1 / -1;
  }
}
.blog-image-zoom { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 5px; background: transparent; cursor: zoom-in; }
.blog-image-zoom:focus-visible { outline: 3px solid #a66d16; outline-offset: 4px; }
.blog-image-zoom-hint { position: absolute; right: 10px; bottom: 10px; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #ffffff88; border-radius: 50%; color: #fff; background: #142d47c9; font: 24px/1 "DM Sans", sans-serif; }
.blog-lightbox { width: min(1200px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px); padding: 16px; border: 1px solid #ffffff33; border-radius: 10px; color: #fff; background: #102235; overflow-y: auto; }
.blog-lightbox::backdrop { background: #061221e8; }
.blog-lightbox-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; font: 500 13px "DM Sans", sans-serif; }
.blog-lightbox button { min-width: 44px; min-height: 44px; border: 1px solid #ffffff55; border-radius: 5px; padding: 6px 12px; color: #fff; background: #ffffff0c; font: 500 14px "DM Sans", sans-serif; cursor: pointer; }
.blog-lightbox button:focus-visible { outline: 2px solid #e7be7a; outline-offset: 3px; }
.blog-lightbox-stage { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 10px; margin: 12px 0; }
.blog-lightbox-stage > img { grid-column: 2; display: block; width: 100%; max-height: calc(100dvh - 210px); min-height: 100px; object-fit: contain; }
.blog-lightbox-stage [data-step="-1"] { grid-column: 1; grid-row: 1; }
.blog-lightbox-stage [data-step="1"] { grid-column: 3; grid-row: 1; }
.blog-lightbox-stage > img { grid-row: 1; }
.blog-lightbox[data-single=true] .blog-lightbox-stage { grid-template-columns: minmax(0, 1fr); }
.blog-lightbox[data-single=true] .blog-lightbox-stage > img { grid-column: 1; }
.blog-lightbox-stage [data-step] { font-size: 32px; padding: 0; }
.blog-lightbox [data-caption] { margin: 8px 54px 0; min-height: 20px; overflow-wrap: anywhere; font: 400 14px/1.5 "DM Sans", sans-serif; text-align: center; }
.blog-lightbox [hidden] { display: none; }
@media (max-width: 600px) {
  .blog-lightbox { padding: 10px; }
  .blog-lightbox-stage { gap: 5px; }
  .blog-lightbox [data-caption] { margin-inline: 0; }
}
.blog-prose.rich-prose figure[data-blog-image] figcaption { font-size: 15px; line-height: 1.6; }
