:root {
  --navy: #20354d;
  --paper: #f8f7f2;
  --ink: #283039;
  --muted: #646e78;
  --line: #dedfd9;
  --gold: #a38a56;
  --white: #fff;
  --serif: Georgia,"Times New Roman",serif;
  --sans: "Segoe UI",Arial,sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.65 var(--sans);
}

a {
  color: var(--navy);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button,input,textarea,select {
  font: inherit;
}

button,a,input,textarea,select {
  outline-offset: 3px;
}

button {
  cursor: pointer;
}

button:disabled {
  opacity: .55;
  cursor: wait;
}

h1,h2,h3,p {
  margin: 0;
}

h1,h2,h3 {
  line-height: 1.25;
  color: var(--navy);
}

h1,h2 {
  font-family: var(--serif);
  font-weight: 500;
}

h1 {
  font-size: clamp(34px,4.8vw,58px);
  letter-spacing: -1.3px;
  overflow-wrap: anywhere;
}

h2 {
  font-size: 29px;
}

h3 {
  font-size: 18px;
}

.wrap {
  width: min(1100px,calc(100% - 64px));
  margin: auto;
}

.mast {
  border-top: 5px solid var(--navy);
  background: #fff;
}

.mast-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 86px;
  border-bottom: 1px solid var(--gold);
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none !important;
}

.brand svg,.brand img {
  width: 47px;
  height: 47px;
  object-fit: contain;
  color: var(--navy);
}

.brand b {
  display: block;
  font: 600 32px/1.15 var(--serif);
  letter-spacing: -1px;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .8px;
}

.mast nav {
  display: flex;
  gap: 26px;
  font-size: 14px;
  flex-wrap: wrap;
}

.hero {
  padding: 54px 0 46px;
  max-width: 840px;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 1.8px;
  font-weight: 650;
  color: #886f3d;
  display: block;
  margin-bottom: 12px;
}

.hero p {
  margin: 19px 0 27px;
  max-width: 660px;
  color: var(--muted);
  font-size: 17px;
}

.search {
  display: flex;
  max-width: 690px;
  gap: 0;
}

.search input {
  flex: 1;
  min-width: 0;
  border: 1px solid #c9ccc7;
  padding: 13px 15px;
  background: #fff;
  border-radius: 3px 0 0 3px;
}

.search button,.primary {
  background: var(--navy);
  color: white;
  border: 1px solid var(--navy);
  padding: 12px 20px;
  border-radius: 3px;
  display: inline-block;
  font-weight: 600;
}

.search button {
  border-radius: 0 3px 3px 0;
}

.public-grid {
  display: grid;
  grid-template-columns: 210px minmax(0,1fr);
  gap: 36px;
  border-top: 1px solid var(--line);
  padding: 36px 0 48px;
  scroll-margin: 20px;
}

.category h2 {
  font: 600 15px var(--sans);
  margin: 0 0 15px;
}

.category a {
  display: block;
  padding: 8px 12px;
  border-left: 2px solid transparent;
  font-size: 14px;
  color: var(--muted);
}

.category a.selected {
  color: var(--navy);
  border-color: var(--navy);
  font-weight: 650;
  background: #20354d09;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
}

.section-head .eyebrow {
  margin-bottom: 5px;
}

.muted,small {
  color: var(--muted);
}

.resources {
  list-style: none;
  padding: 0;
  margin: 0;
}

.resource {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.resource-icon {
  flex: 0 0 45px;
  height: 45px;
  background: #ebe9e0;
  border: 1px solid #e0ded4;
  border-radius: 4px;
  display: grid;
  place-items: center;
  font: 25px var(--serif);
  color: var(--navy);
}

.resource-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.resource-copy {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.resource-title {
  font: 600 22px/1.25 var(--serif);
}

.resource-copy p {
  font-size: 14px;
  color: #4d5964;
  margin: 4px 0;
}

.resource-copy small {
  font-size: 12px;
}

.visit {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.pagination {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.reading,.about {
  padding: 36px 0;
  border-top: 1px solid var(--line);
}

.reading-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 28px;
  margin-top: 20px;
}

.reading-grid article {
  border-left: 2px solid var(--gold);
  padding-left: 16px;
}

.reading-grid h3 {
  font-family: var(--serif);
  margin-bottom: 9px;
}

.reading-grid p,.about p {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.about p {
  max-width: 760px;
  margin-top: 14px;
}

.footer {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0 40px;
  color: var(--muted);
  font-size: 12px;
}

.detail {
  padding: 55px 0;
  max-width: 850px;
  min-height: 60vh;
}

.detail .back {
  display: block;
  margin-bottom: 35px;
}

.detail h1 {
  font-size: clamp(32px,5vw,55px);
  overflow-wrap: anywhere;
}

.detail p {
  margin: 18px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.article-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 18px/1.8 var(--serif);
  margin-top: 30px;
}

.widget {
  padding: 14px;
  background: #fff;
}

.widget h2 {
  font-size: 23px;
  margin-bottom: 12px;
}

.widget li {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}

.widget.grid ul {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(130px,1fr));
  gap: 12px;
}

.widget.grid li {
  padding: 12px;
  border: 1px solid var(--line);
}

.widget p {
  font-size: 12px;
  color: var(--muted);
}

.empty {
  padding: 25px;
  color: var(--muted);
  text-align: center;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}

/* Private workspace */
.admin {
  background: #f5f6f7;
  font-size: 14px;
  --paper: #f5f6f7;
  --navy: #20354d;
  --line: #e0e4e8;
}

.admin h1,.admin h2,.admin h3 {
  font-family: var(--sans);
  letter-spacing: -.4px;
  font-weight: 650;
}

.admin h1 {
  font-size: 27px;
}

.admin h2 {
  font-size: 18px;
}

.admin h3 {
  font-size: 15px;
}

.initial,.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.login-shell {
  padding: 24px;
  background: #e9edf0;
}

.login-card {
  width: min(100%,420px);
  background: #fff;
  border: 1px solid var(--line);
  padding: 36px;
  border-top: 4px solid var(--navy);
  border-radius: 5px;
}

.login-card h1 {
  margin: 14px 0 5px;
}

.login-card .muted {
  margin-bottom: 25px;
}

.login-card .primary {
  width: 100%;
  margin-top: 12px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 238px minmax(0,1fr);
  min-height: 100vh;
}

.sidebar {
  background: #20354d;
  color: #d4dfe9;
  padding: 25px 15px;
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: auto;
}

.side-brand {
  font: 600 30px/1.2 var(--serif);
  color: #fff;
  padding: 0 12px 25px;
}

.side-brand small {
  display: block;
  font: 10px var(--sans);
  letter-spacing: 1.4px;
  color: #afc0d0;
  margin-top: 4px;
}

.side-group {
  color: #97adbf;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.1px;
  margin: 18px 12px 7px;
}

.side-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: #d6e0e9;
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 13px;
}

.side-link svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.side-link.active,.side-link:hover {
  background: #ffffff12;
  color: #fff;
}

.side-end {
  margin-top: auto;
  padding-top: 25px;
}

.workspace {
  min-width: 0;
  padding: 28px clamp(20px,3vw,42px) 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.topbar p {
  color: var(--muted);
  margin-top: 5px;
}

.actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: white;
  color: var(--navy);
  border: 1px solid #cfd6dd;
  padding: 8px 12px;
  border-radius: 5px;
  line-height: 1.4;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
}

.btn:hover {
  background: #eff3f6;
  text-decoration: none;
}

.btn.primary {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}

.btn.danger {
  color: #a44040;
}

.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 18px;
  min-width: 0;
}

.panel h2 {
  margin-bottom: 12px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.metric {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 17px;
}

.metric span {
  color: var(--muted);
  font-size: 12px;
}

.metric b {
  display: block;
  font-size: 30px;
  color: var(--navy);
  line-height: 1.35;
  margin-top: 7px;
}

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

.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 15px;
}

.toolbar form {
  display: flex;
  gap: 6px;
  min-width: 0;
}

.toolbar input {
  min-width: 0;
  max-width: 230px;
}

.table-scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}

th {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  background: #f3f5f7;
  font-weight: 650;
}

td,th {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

td small {
  display: block;
  max-width: 260px;
  white-space: normal;
  overflow-wrap: anywhere;
}

td:first-child {
  white-space: normal;
  min-width: 130px;
  max-width: 280px;
  overflow-wrap: anywhere;
}

.chip {
  font-size: 11px;
  display: inline-block;
  background: #edf0f3;
  color: #4d6273;
  padding: 3px 7px;
  border-radius: 4px;
}

.chip.good {
  background: #e6f1e8;
  color: #276140;
}

.chip.bad {
  background: #f8e8e8;
  color: #a44040;
}

.chip.warn {
  background: #f7efd9;
  color: #806021;
}

.field {
  display: grid;
  gap: 5px;
  margin-bottom: 14px;
}

.field label {
  font-size: 13px;
  font-weight: 600;
  color: #374656;
}

.field input,.field textarea,.field select,.toolbar input {
  width: 100%;
  border: 1px solid #ccd4db;
  padding: 9px 11px;
  border-radius: 4px;
  background: #fff;
  color: #283039;
  min-width: 0;
}

.field input[type=color] {
  height: 42px;
  padding: 4px;
}

.field textarea {
  min-height: 100px;
  resize: vertical;
}

.field input[type=checkbox] {
  width: auto;
}

.check {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 10px 0;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 15px;
}

.form-grid .full {
  grid-column: 1/-1;
}

dialog {
  border: 1px solid var(--line);
  border-radius: 7px;
  max-width: min(650px,calc(100% - 26px));
  width: 100%;
  padding: 0;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 12px 45px #20354d26;
}

dialog::backdrop {
  background: #14253666;
}

.dialog-head {
  padding: 19px 23px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dialog-body {
  padding: 22px;
}

.dialog-foot {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  border-top: 1px solid var(--line);
  padding: 15px 22px;
}

.notice {
  padding: 10px 12px;
  background: #f9e9e7;
  border: 1px solid #ecd0cd;
  color: #9f3d38;
  border-radius: 4px;
  margin: 10px 0;
  overflow-wrap: anywhere;
}

.notice:empty {
  display: none;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  background: #20354d;
  color: white;
  border-radius: 5px;
  padding: 12px 18px;
  z-index: 10;
  max-width: min(450px,90vw);
}

.loader {
  width: 28px;
  height: 28px;
  border: 3px solid #20354d25;
  border-top-color: #20354d;
  border-radius: 50%;
  display: inline-block;
  animation: spin .8s linear infinite;
}

.loading {
  padding: 55px;
  text-align: center;
}

.bar-chart {
  height: 150px;
  display: flex;
  align-items: end;
  gap: 5px;
  border-bottom: 1px solid var(--line);
  margin-top: 20px;
}

.bar-chart span {
  flex: 1;
  min-width: 3px;
  background: #567b9d;
  border-radius: 3px 3px 0 0;
}

.rank {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 9px 0;
  gap: 12px;
}

.mobile-menu {
  display: none;
}

.embed-code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f0f3f5;
  padding: 12px;
  border-radius: 4px;
  font: 12px monospace;
}

.multi-note {
  font-size: 12px;
  color: var(--muted);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }
  .loader {
    animation-duration: 2s;
  }
}

@media (max-width:800px) {
  .wrap {
    width: calc(100% - 36px);
  }
  .mast-inner {
    min-height: 80px;
    flex-wrap: wrap;
    padding: 15px 0;
    gap: 12px;
  }
  .mast nav {
    gap: 16px;
  }
  .hero {
    padding: 45px 0 35px;
  }
  .public-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 25px;
  }
  .category {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }
  .category h2 {
    width: 100%;
    margin-bottom: 5px;
  }
  .category a {
    border: 1px solid var(--line);
    border-radius: 3px;
    padding: 5px 9px;
    font-size: 12px;
  }
  .reading-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .footer {
    flex-direction: column;
    gap: 5px;
  }
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 238px;
    z-index: 5;
    transform: translateX(-100%);
    transition: transform .2s;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 0 0 0 100vmax #152b4655;
  }
  .mobile-menu {
    display: inline-flex;
  }
  .workspace {
    padding: 18px;
  }
  .metrics {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .topbar {
    align-items: start;
  }
  .topbar h1 {
    font-size: 23px;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .search button {
    padding: 10px 12px;
    font-size: 13px;
  }
  .resource {
    gap: 10px;
    align-items: start;
  }
  .resource-title {
    font-size: 19px;
  }
  .resource-icon {
    flex-basis: 35px;
    height: 35px;
  }
  .visit {
    font-size: 12px;
  }
  .resource-copy small {
    font-size: 11px;
  }
  .section-head h2 {
    font-size: 24px;
  }
  .panel {
    padding: 13px;
  }
  .login-card {
    padding: 24px;
  }
  .topbar .actions {
    justify-content: flex-end;
  }
}

@media (max-width:400px) {
  .search {
    flex-wrap: wrap;
    gap: 6px;
  }
  .search input,.search button {
    border-radius: 3px;
  }
  .search input {
    flex-basis: 100%;
  }
  .brand b {
    font-size: 28px;
  }
}

/* Editorial accessibility and reference metadata */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 20;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: 3px;
}

.skip-link:focus {
  top: 10px;
}

:focus-visible {
  outline: 2px solid #a38a56;
  outline-offset: 3px;
}

.brand span,.brand small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.brand svg,.brand img {
  flex-shrink: 0;
}

.directory,.reading-grid article,.section-head>div {
  min-width: 0;
}

.resource-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.resource-meta span+span {
  border-left: 1px solid var(--line);
  padding-left: 10px;
}

.ownership {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.about h3 {
  font-family: var(--serif);
  margin-top: 24px;
  font-size: 20px;
}

.detail-meta {
  display: grid;
  grid-template-columns: max-content minmax(0,1fr);
  gap: 8px 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  margin: 20px 0 28px;
  font-size: 14px;
}

.detail-meta dt {
  font-weight: 600;
  color: var(--navy);
}

.detail-meta dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.seo-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0 0 20px;
  font-size: 13px;
}

.seo-links a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

#settings-form .multi-note {
  margin: 0 0 16px;
}

#settings-form {
  max-width: 960px;
}

.admin .panel {
  overflow-wrap: anywhere;
}

.admin .table-scroll {
  max-width: 100%;
  overscroll-behavior-inline: contain;
}

.admin .table-scroll tbody tr:hover {
  background: #f8fafb;
}

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

.admin .dialog-head,.admin .dialog-foot {
  position: sticky;
  z-index: 1;
  background: #fff;
}

.admin .dialog-head {
  top: 0;
}

.admin .dialog-foot {
  bottom: 0;
}

.admin .side-link:focus-visible {
  outline-color: #dfc995;
}

@media (max-width:800px) {
  .sidebar:not(.open) {
    visibility: hidden;
  }
  .sidebar.open {
    visibility: visible;
  }
  .resource {
    display: grid;
    grid-template-columns: 35px minmax(0,1fr);
  }
  .resource-icon {
    grid-row: 1 / 3;
  }
  .visit {
    grid-column: 2;
    margin: 0;
    justify-self: start;
    padding: 4px 0;
  }
  .section-head {
    align-items: start;
  }
  .section-head>.muted {
    white-space: nowrap;
    font-size: 12px;
    padding-top: 5px;
  }
  .admin .toolbar form {
    flex: 1 1 180px;
  }
  .admin .toolbar input {
    max-width: none;
  }
  .admin .topbar {
    flex-wrap: wrap;
  }
  .admin .topbar .actions {
    justify-content: flex-start;
  }
  .admin .dialog-head,.admin .dialog-body,.admin .dialog-foot {
    padding: 14px;
  }
}

@media (max-width:420px) {
  .detail-meta {
    grid-template-columns: 1fr;
    gap: 3px;
  }
  .detail-meta dd {
    margin-bottom: 9px;
  }
  .metric {
    padding: 12px;
  }
  .metric b {
    font-size: 24px;
  }
}


/* Editorial publication: independent two-column content and right sidebar. */
.public .wrap {
  width: min(1240px, calc(100% - 64px));
}
.public .mast {
  border-top-width: 3px;
  border-bottom: 1px solid var(--line);
}
.public .mast-inner {
  min-height: 82px;
  border-bottom: 0;
}
.public .brand b {
  font-size: 30px;
}
.public .mast nav a {
  padding: 10px 0;
  font-weight: 600;
}
.editorial-main {
  padding: 30px 0 48px;
  min-height: 70vh;
}
.editorial-heading {
  margin-bottom: 24px;
  padding: 0 0 20px;
  border-bottom: 1px solid var(--line);
}
.editorial-heading h1 {
  font-size: clamp(29px, 3.4vw, 43px);
  letter-spacing: -.7px;
}
.editorial-heading p {
  margin-top: 7px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.editorial-columns {
  display: grid;
  grid-template-columns: minmax(0, 2.25fr) minmax(250px, 1fr);
  gap: 28px;
  align-items: start;
}
.single-columns {
  grid-template-columns: minmax(0, 2.65fr) minmax(250px, 1fr);
}
.editorial-content, .editorial-sidebar, .side-widget, .post-card, .single-post {
  min-width: 0;
  overflow-wrap: anywhere;
}
.editorial-content, .editorial-sidebar {
  display: grid;
  gap: 24px;
}
.editorial-section {
  scroll-margin-top: 20px;
  min-width: 0;
}
.editorial-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 2px solid var(--navy);
  padding: 0 0 10px;
  margin-bottom: 16px;
}
.editorial-section-head h2, .side-widget h2 {
  font: 600 21px/1.3 var(--serif);
  letter-spacing: -.3px;
}
.editorial-section-head > a, .editorial-section-head > span {
  font-size: 13px;
  flex-shrink: 0;
}
.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.editorial-panel, .post-card, .side-widget {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.post-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.post-label {
  color: var(--navy);
  background: #edf0f2;
  font-size: 11px;
  font-weight: 650;
  padding: 3px 8px;
  display: inline-block;
  border-radius: 2px;
}
.post-card h3 {
  font: 600 23px/1.3 var(--serif);
  letter-spacing: -.25px;
}
.post-card p {
  color: #4c5760;
  font-size: 14px;
  line-height: 1.65;
}
.post-meta {
  color: var(--muted);
  font-size: 12px;
}
.text-link {
  font-size: 13px;
  font-weight: 650;
  margin-top: auto;
}
.side-widget {
  padding: 18px;
}
.side-widget h2 {
  border-bottom: 2px solid var(--navy);
  padding-bottom: 10px;
  margin-bottom: 13px;
}
.editorial-search input {
  padding: 9px 10px;
  font-size: 14px;
  width: 0;
}
.editorial-search button {
  padding: 9px 14px;
  font-size: 14px;
}
.blogroll-list, .recent-list {
  padding: 0;
  margin: 0 0 12px;
  list-style: none;
}
.blogroll-list li, .recent-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.blogroll-list li:first-child, .recent-list li:first-child {
  padding-top: 0;
}
.blogroll-list a, .recent-list a {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}
.blogroll-list small, .recent-list small {
  display: block;
  font-size: 11px;
  margin-top: 3px;
}
.editorial-panel.resources {
  padding: 0 20px;
}
.editorial-panel.resources .resource:last-child {
  border-bottom: 0;
}
.editorial-pagination {
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.editorial-pagination a, .editorial-pagination span {
  border: 1px solid var(--line);
  padding: 6px 12px;
  background: #fff;
  font-size: 13px;
  border-radius: 3px;
}
.editorial-pagination span {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.editorial-empty {
  grid-column: 1 / -1;
  color: var(--muted);
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
}
.editorial-main .about {
  padding: 24px;
}
.editorial-main .about h2 {
  font-size: 24px;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px 10px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 20px;
  overflow-wrap: anywhere;
}
.breadcrumb > * + *::before {
  content: '/';
  color: var(--muted);
  margin-right: 10px;
}
.single-post {
  padding: clamp(22px, 3.1vw, 42px);
}
.single-post h1 {
  font-size: clamp(29px, 3.4vw, 43px);
  line-height: 1.2;
  margin: 12px 0;
  letter-spacing: -.65px;
}
.single-post .article-body {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  font: 17px/1.85 var(--serif);
  white-space: normal;
  margin-top: 20px;
}
.article-body p + p {
  margin-top: 1em;
}
.article-body h2, .article-body h3 {
  font: 600 24px/1.35 var(--serif);
  margin: 1.3em 0 .55em;
}
.article-body h3 {
  font-size: 21px;
}
.single-post .detail-description {
  margin: 16px 0;
  white-space: pre-wrap;
}
.article-neighbors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.article-neighbors a {
  display: block;
  background: #fff;
  padding: 14px;
  border: 1px solid var(--line);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.article-neighbors small {
  display: block;
  margin-bottom: 4px;
  font-weight: 400;
}
@media (max-width: 900px) {
  .public .wrap {
    width: calc(100% - 36px);
  }
  .editorial-columns, .single-columns {
    grid-template-columns: minmax(0, 1fr);
  }
  .editorial-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}
@media (max-width: 580px) {
  .public .wrap {
    width: calc(100% - 28px);
  }
  .public .mast-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 0 8px;
  }
  .public .mast nav {
    width: 100%;
    gap: 18px;
    flex-wrap: wrap;
  }
  .public .brand b {
    font-size: 26px;
  }
  .editorial-main {
    padding-top: 20px;
  }
  .post-grid, .editorial-sidebar, .article-neighbors {
    grid-template-columns: minmax(0, 1fr);
  }
  .article-neighbors > span:empty {
    display: none;
  }
  .post-card, .side-widget, .editorial-main .about {
    padding: 16px;
  }
  .editorial-section-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .editorial-panel.resources {
    padding: 0 12px;
  }
}

/* Keep sidebar widgets consistent at all viewport widths. */
.editorial-sidebar .category {
  display: block;
}
.editorial-sidebar .category a {
  display: block;
  border: 0;
  border-left: 2px solid transparent;
  border-radius: 0;
  padding: 8px 10px;
  font-size: 14px;
}
.editorial-sidebar .category a.selected {
  border-left-color: var(--navy);
}

.post-grid > .post-card:only-child {
  grid-column: 1 / -1;
}
