:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #687084;
  --line: #dfe3ea;
  --surface: #ffffff;
  --soft: #f6f8fb;
  --accent: #1a6c7a;
  --accent-dark: #10515d;
  --danger: #a93131;
}

* {
  box-sizing: border-box;
}

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

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

.admin-header,
.site-admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 92px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0;
}

.brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.admin-header nav,
.site-admin-header nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-header a,
.site-admin-header a {
  color: var(--ink);
  text-decoration: none;
}

.admin-view-nav button {
  min-height: 36px;
  padding: 7px 12px;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
}

.admin-view-nav button[aria-pressed="true"] {
  color: var(--accent-dark);
  background: #eef5f6;
  border-color: #c7dadd;
}

.admin-layout {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 24px;
}

.editor-panel,
.posts-panel,
.media-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

.bulk-actions p {
  margin: 0 auto 0 0;
  color: var(--muted);
  font-size: 13px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.editor-panel {
  padding: 28px;
}

.posts-panel,
.media-panel {
  padding: 24px;
}

.admin-workspace[hidden] {
  display: none;
}

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

.editor-panel > .panel-title {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.editor-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.editor-header-actions #save-state {
  max-width: 280px;
  margin-right: 6px;
  text-align: right;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  font-size: 32px;
}

h2 {
  font-size: 22px;
}

.post-form {
  display: block;
}

.editor-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}

.editor-main-column {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.title-field input {
  min-height: 64px;
  padding: 12px 2px;
  color: #111827;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #cfd5df;
  border-radius: 0;
  font-size: 34px;
  font-weight: 500;
  line-height: 1.2;
}

.title-field input:focus {
  border-color: var(--accent);
  box-shadow: none;
}

.excerpt-field textarea {
  min-height: 92px;
  background: #fbfcfe;
}

.editor-inspector {
  position: sticky;
  top: 18px;
  display: grid;
  overflow: hidden;
  background: #fbfcfe;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.inspector-section {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.inspector-section:last-child {
  border-bottom: 0;
}

.inspector-section h2 {
  font-size: 15px;
  font-weight: 700;
}

.inspector-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.featured-image-preview {
  display: grid;
  place-items: center;
  min-height: 150px;
  overflow: hidden;
  color: var(--muted);
  background: #edf2f7;
  border: 1px dashed #c7d0dc;
  border-radius: 6px;
  font-size: 12px;
}

.featured-image-preview img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
}

label span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cfd5df;
  border-radius: 6px;
  outline: none;
}

textarea {
  line-height: 1.55;
  resize: vertical;
}

.media-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.blog-editor {
  overflow: hidden;
  background: #fff;
  border: 1px solid #cfd5df;
  border-radius: 8px;
}

.blog-editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: #fbfcfe;
  border-bottom: 1px solid var(--line);
}

.blog-editor-header span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.blog-editor-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.editor-mode-tabs {
  display: inline-flex;
  padding: 3px;
  background: #eef3f6;
  border: 1px solid #d9e3e8;
  border-radius: 7px;
}

.editor-mode-tabs button {
  min-height: 32px;
  padding: 6px 11px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  font-size: 13px;
}

.editor-mode-tabs button[aria-pressed="true"] {
  color: var(--accent-dark);
  background: #fff;
  box-shadow: 0 1px 2px rgba(23, 32, 51, 0.08);
}

.editor-toolbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  padding: 10px 12px;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
}

.editor-toolbar select {
  width: auto;
  min-width: 132px;
  min-height: 34px;
  padding: 5px 30px 5px 10px;
  font-size: 13px;
}

.editor-toolbar button {
  min-height: 34px;
  padding: 6px 10px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #d8dee8;
  border-radius: 5px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.2;
}

.editor-toolbar button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.editor-toolbar button[aria-pressed="true"] {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.toolbar-divider {
  width: 1px;
  height: 24px;
  margin: 0 2px;
  background: #dce3ea;
}

.editor-canvas {
  background: #f6f8fb;
  padding: 18px;
}

.rich-editor,
.editor-source {
  width: 100%;
  min-height: 520px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px);
  color: #1c2537;
  background: #fff;
  border: 1px solid #dfe3ea;
  border-radius: 7px;
  outline: none;
  box-shadow: 0 8px 24px rgba(23, 32, 51, 0.06);
}

.rich-editor {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.8;
}

.rich-editor:focus,
.editor-source:focus {
  border-color: var(--accent);
  box-shadow: 0 18px 52px rgba(23, 32, 51, 0.08), 0 0 0 3px rgba(26, 108, 122, 0.14);
}

.rich-editor:empty::before {
  content: attr(data-placeholder);
  color: #96a0b2;
}

.rich-editor h2,
.rich-editor h3,
.rich-editor p,
.rich-editor pre,
.rich-editor blockquote,
.rich-editor ul,
.rich-editor ol,
.rich-editor figure {
  margin-top: 0;
}

.rich-editor h2 {
  margin-bottom: 0.65em;
  color: #111827;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 30px;
  line-height: 1.25;
  font-weight: 600;
}

.rich-editor h3 {
  margin-bottom: 0.7em;
  color: #172033;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 23px;
  line-height: 1.3;
  font-weight: 600;
}

.rich-editor p,
.rich-editor pre,
.rich-editor blockquote,
.rich-editor ul,
.rich-editor ol,
.rich-editor figure {
  margin-bottom: 1.25em;
}

.rich-editor ul,
.rich-editor ol {
  padding-left: 1.35em;
}

.rich-editor li + li {
  margin-top: 0.35em;
}

.rich-editor pre {
  white-space: pre-wrap;
  padding: 18px 22px;
  overflow-x: auto;
  color: #3f4a5f;
  background: #f1f5f8;
  border-radius: 7px;
  font: 15px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.rich-editor blockquote {
  margin-left: 0;
  padding: 4px 0 4px 18px;
  border-left: 4px solid var(--accent);
  color: #3f4a5f;
  font-size: 19px;
}

.rich-editor figure {
  margin-left: 0;
  margin-right: 0;
}

.rich-editor figure img,
.rich-editor > img {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  border-radius: 7px;
}

.rich-editor figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-family: Montserrat, Arial, sans-serif;
  font-size: 12px;
  text-align: center;
}

.editor-preview {
  pointer-events: none;
}

.editor-empty-preview {
  color: var(--muted);
  font-family: Montserrat, Arial, sans-serif;
}

.editor-source {
  display: block;
  resize: vertical;
  color: #263044;
  font: 14px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.gallery-manager {
  display: grid;
  gap: 14px;
  padding: 16px;
  background: #fbfcfe;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.gallery-heading,
.media-library-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.gallery-heading span,
.media-library-heading span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.gallery-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
  color: #fff;
  background: var(--accent);
  border-radius: 6px;
  cursor: pointer;
}

.upload-button input {
  display: none;
}

.gallery-strip {
  display: grid;
  grid-auto-columns: 152px;
  grid-auto-flow: column;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  overscroll-behavior-x: contain;
}

.media-library {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}

.media-tools {
  display: grid;
  grid-template-columns: minmax(260px, 520px) 1fr;
  align-items: end;
  gap: 18px;
  margin-bottom: 20px;
}

.media-tools .library-summary {
  margin: 0 0 12px;
  text-align: right;
}

.media-load-more {
  display: flex;
  justify-content: center;
  padding-top: 20px;
}

.media-tile {
  overflow: hidden;
  min-width: 0;
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.media-tile img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #edf2f7;
  cursor: zoom-in;
}

.media-tile figcaption {
  display: grid;
  gap: 6px;
  padding: 8px;
}

.media-name {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tile-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.tile-actions button {
  min-height: 32px;
  padding: 5px 8px;
  color: var(--accent);
  background: #fff;
  border: 1px solid #bdd3d8;
  border-radius: 5px;
  cursor: pointer;
  font-size: 12px;
  line-height: 1.2;
}

.tile-actions button[data-action="remove"],
.tile-actions button[data-action="delete-upload"] {
  color: var(--danger);
  border-color: #e6c4c4;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26, 108, 122, 0.14);
}

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

.primary-button,
.ghost-button,
.text-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 6px;
  border: 1px solid transparent;
  padding: 9px 14px;
  cursor: pointer;
  text-decoration: none;
}

.primary-button {
  color: #fff;
  background: var(--accent);
}

.primary-button:hover {
  background: var(--accent-dark);
}

.ghost-button,
.text-button {
  color: var(--accent);
  background: #fff;
  border-color: #bdd3d8;
}

.danger-button {
  color: var(--danger);
  background: #fff;
  border-color: #e6c4c4;
}

#save-state {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.posts-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.compact-field {
  margin-bottom: 14px;
}

.admin-tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.admin-tools .compact-field {
  margin-bottom: 0;
}

.quick-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.quick-filters button {
  min-height: 34px;
  padding: 6px 10px;
  color: var(--accent);
  background: #fff;
  border: 1px solid #bdd3d8;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
}

.quick-filters button[aria-pressed="true"] {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.admin-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.admin-actions .ghost-button {
  min-height: 36px;
  padding: 7px 10px;
  font-size: 12px;
}

.library-summary {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.post-row {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.post-row-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

.post-select {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-height: 22px;
}

.post-select input {
  width: 18px;
  min-height: 18px;
  padding: 0;
}

.post-select span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.post-row h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
}

.source-link {
  color: var(--accent);
  font-size: 12px;
  text-decoration: none;
}

.source-link:hover {
  text-decoration: underline;
}

.post-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef5f6;
  color: var(--accent-dark);
}

.row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.image-selector {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 12, 20, 0.62);
}

.image-selector[hidden] {
  display: none;
}

.image-selector-panel {
  display: grid;
  grid-template-rows: auto auto minmax(180px, 1fr) auto;
  width: min(920px, 100%);
  max-height: min(780px, calc(100vh - 48px));
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 90px rgba(8, 12, 20, 0.34);
}

.image-selector-header,
.image-selector-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
}

.image-selector-header {
  border-bottom: 1px solid var(--line);
}

.image-selector-header h2 {
  font-size: 24px;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  color: var(--muted);
  background: #fff;
  border: 1px solid #d8dee8;
  border-radius: 6px;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.image-selector-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  padding: 16px 20px;
  background: #fbfcfe;
  border-bottom: 1px solid var(--line);
}

.image-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  overflow: auto;
  padding: 20px;
  background: #f6f8fb;
}

.image-choice {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 8px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.image-choice:hover,
.image-choice[aria-pressed="true"] {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26, 108, 122, 0.12);
}

.image-choice img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #edf2f7;
  border-radius: 5px;
}

.image-choice-name {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-choice-source {
  color: var(--muted);
  font-size: 12px;
}

.image-selector-actions {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
}

.image-selector-actions .primary-button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.posts-page {
  background: #fff;
  min-height: calc(100vh - 92px);
}

.cms-post-shell {
  margin: 0;
  color: #3a3a3a;
  background: #f5f5f5;
  font-family: Montserrat, Arial, sans-serif;
}

.cms-post-header {
  display: grid;
  justify-items: center;
  gap: 30px;
  min-height: 350px;
  padding: 22px 24px 42px;
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
}

.cms-post-brand {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  color: #666;
  text-decoration: none;
}

.cms-post-brand img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.cms-post-header nav {
  display: flex;
  gap: 36px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.cms-post-header nav a {
  color: #555;
  font-size: 17px;
  text-decoration: none;
}

.single-post-page {
  min-height: calc(100vh - 350px);
  padding: 72px 24px 84px;
}

.single-post-article {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: clamp(44px, 7vw, 118px);
  background: #fff;
}

.single-post-article h1 {
  margin: 0 0 10px;
  color: #000f2b;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.4;
}

.single-post-meta {
  margin-bottom: 38px;
  color: #1a6c7a;
  font-size: 15px;
  line-height: 1.45;
}

.single-post-meta a {
  color: #1a6c7a;
  text-decoration: none;
}

.single-post-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 28px 0 0;
}

.single-post-gallery figure {
  margin: 0;
}

.single-post-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.single-post-content {
  color: #777;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.8;
}

.single-post-content p {
  margin: 0 0 1.6em;
}

.single-post-content h2,
.single-post-content h3 {
  color: #000f2b;
  font-family: Montserrat, Arial, sans-serif;
  line-height: 1.3;
}

.single-post-content h2 {
  margin-top: 1.8em;
  font-size: 28px;
}

.single-post-content h3 {
  margin-top: 1.6em;
  font-size: 25px;
}

.single-post-content img {
  display: block;
  max-width: 100%;
}

.single-post-content figure {
  margin: 28px 0;
}

.single-post-content figcaption {
  margin-top: 8px;
  color: #777;
  font-size: 13px;
  text-align: center;
}

.single-post-content blockquote {
  margin-left: 0;
  padding: 1.2em;
  color: #000;
}

.cms-public-shell .ast-mobile-menu-buttons {
  display: none;
}

.cms-public-shell .main-header-bar {
  padding: 1em 0;
  border-bottom: 1px solid #e5e5e5;
}

.cms-public-shell .ast-site-identity {
  padding: 0;
}

.cms-public-shell .site-logo-img {
  padding-right: 1em;
}

.cms-public-shell .custom-logo-link img {
  width: 80px;
  max-width: 80px;
  height: auto;
}

.cms-public-shell .site-description {
  display: block;
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

.cms-public-shell .main-header-menu .menu-link {
  color: #3a3a3a;
}

.cms-public-shell .main-header-menu .current-menu-item > .menu-link,
.cms-public-shell .main-header-menu .current_page_item > .menu-link {
  color: #1a6c7a;
}

.cms-public-shell .main-header-menu .menu-link:hover,
.cms-public-shell .main-header-menu .menu-link:focus {
  color: #1a6c7a;
}

.cms-public-shell .single-post-gallery {
  margin-top: 28px;
}

.cms-public-footer {
  padding: 48px 0;
  color: #f7f7f7;
  background: #1b1d24;
}

.cms-public-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
}

.cms-public-footer p {
  margin: 10px 0 0;
}

.cms-public-footer a {
  color: #f7f7f7;
}

.cms-public-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  justify-content: flex-end;
  gap: 12px 24px;
}

.page-content-card {
  display: grid;
  gap: 36px;
  margin: 48px 0 72px;
  padding: clamp(24px, 5vw, 56px);
  background: #fff;
  border: 1px solid #e2e8ea;
  border-radius: 8px;
  box-shadow: 0 16px 46px rgba(23, 32, 51, 0.06);
}

.testimonies-hero {
  display: grid;
  gap: 12px;
  padding: 0 0 8px;
}

.testimonies-hero h1 {
  max-width: 840px;
  margin: 0;
  color: #000f2b;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.2;
}

.testimonies-hero p {
  max-width: 760px;
  margin: 0;
  color: #5f6670;
  font-size: 16px;
  line-height: 1.8;
}

.testimonies-eyebrow,
.testimony-card__eyebrow {
  margin: 0;
  color: #1a6c7a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.testimonies-featured,
.testimonies-list {
  display: grid;
  gap: 24px;
}

.testimonies-featured h2,
.testimonies-section-header h2 {
  margin: 6px 0 0;
  color: #000f2b;
  font-size: 30px;
}

.testimony-feature,
.testimony-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  padding: 28px;
  background: #fff;
  border: 1px solid #e2e8ea;
}

.testimony-feature {
  padding: clamp(28px, 5vw, 46px);
}

.testimony-card__mark {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  background: #1a6c7a;
}

.testimony-feature .testimony-card__mark {
  width: 78px;
  height: 78px;
  font-size: 20px;
}

.testimony-feature h2,
.testimony-card h2 {
  margin: 8px 0 12px;
  color: #000f2b;
  font-size: 24px;
  line-height: 1.25;
}

.testimony-feature h2 {
  font-size: clamp(28px, 4vw, 40px);
}

.testimony-feature h2 a,
.testimony-card h2 a {
  color: inherit;
  text-decoration: none;
}

.testimony-feature p,
.testimony-card p {
  margin: 0;
  color: #66717a;
  line-height: 1.75;
}

.testimony-card__link {
  display: inline-flex;
  margin-top: 18px;
  color: #1a6c7a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.testimonies-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.devotions-hero {
  display: grid;
  gap: 12px;
  padding: 0 0 8px;
}

.devotions-hero h1 {
  max-width: 840px;
  margin: 0;
  color: #000f2b;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.2;
}

.devotions-hero p {
  max-width: 760px;
  margin: 0;
  color: #5f6670;
  font-size: 16px;
  line-height: 1.8;
}

.devotions-eyebrow {
  margin: 0;
  color: #1a6c7a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.latest-devotion,
.previous-devotions {
  display: grid;
  gap: 24px;
}

.devotions-section-header h2 {
  margin: 6px 0 0;
  color: #000f2b;
  font-size: 30px;
}

.devotion-date {
  margin: 8px 0 0;
  color: #66717a;
  font-size: 13px;
}

.latest-devotion__image {
  display: block;
  overflow: hidden;
  width: min(760px, 100%);
  margin: 0 auto;
  background: #eef3f6;
  border: 1px solid #e2e8ea;
}

.latest-devotion__image img {
  display: block;
  width: 100%;
  height: auto;
}

.latest-devotion__empty {
  padding: 48px 24px;
  color: #66717a;
  text-align: center;
  background: #fff;
  border: 1px dashed #cfd5df;
}

.latest-devotion__summary {
  max-width: 760px;
  margin: 0 auto;
  color: #66717a;
  line-height: 1.75;
}

.devotion-read-link {
  justify-self: center;
  color: #1a6c7a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.devotion-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.devotion-card {
  display: grid;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e2e8ea;
}

.devotion-card__image {
  display: block;
  background: #eef3f6;
}

.devotion-card__image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.devotion-card__body {
  display: grid;
  gap: 10px;
  padding: 20px;
}

.devotion-card h3 {
  margin: 0;
  color: #000f2b;
  font-size: 20px;
  line-height: 1.3;
}

.devotion-card h3 a {
  color: inherit;
  text-decoration: none;
}

.devotion-card p {
  margin: 0;
  color: #66717a;
  line-height: 1.65;
}

.login-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background: var(--soft);
}

.login-panel {
  width: min(460px, 100%);
  padding: 34px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.login-panel img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  margin-bottom: 18px;
}

.login-panel h1 {
  margin-bottom: 12px;
}

.login-panel p {
  color: var(--muted);
  line-height: 1.6;
}

.auth-message {
  padding: 12px;
  color: var(--danger) !important;
  background: #fff6f6;
  border: 1px solid #f0cdcd;
  border-radius: 6px;
}

.primary-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 12px;
  padding: 10px 16px;
  color: #fff;
  background: var(--accent);
  border-radius: 6px;
  text-decoration: none;
}

.posts-hero {
  padding: clamp(42px, 8vw, 92px) 24px 28px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.posts-hero h1 {
  color: #000f2b;
  font-size: clamp(38px, 6vw, 64px);
}

.category-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.category-tabs button {
  min-height: 38px;
  padding: 8px 14px;
  color: var(--accent);
  background: #fff;
  border: 1px solid #bdd3d8;
  border-radius: 999px;
  cursor: pointer;
}

.category-tabs button[aria-pressed="true"] {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.public-posts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 34px 24px 72px;
}

.public-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.public-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #e8eef2;
}

.post-carousel {
  position: relative;
  overflow: hidden;
  background: #e8eef2;
}

.post-carousel img {
  display: none;
  cursor: zoom-in;
}

.post-carousel img.is-active {
  display: block;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  padding: 0;
  color: #fff;
  background: rgba(23, 32, 51, 0.72);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.carousel-button[data-direction="prev"] {
  left: 10px;
}

.carousel-button[data-direction="next"] {
  right: 10px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(8, 12, 20, 0.86);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(1100px, 96vw);
  max-height: 86vh;
  object-fit: contain;
  background: #111827;
  border-radius: 6px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

.lightbox button {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  cursor: pointer;
}

.public-card-body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.public-card h2 {
  font-size: 20px;
  line-height: 1.3;
}

.public-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed #cfd5df;
  border-radius: 8px;
}

@media (max-width: 980px) {
  .public-posts {
    grid-template-columns: 1fr;
  }

  .editor-compose {
    grid-template-columns: 1fr;
  }

  .editor-inspector {
    position: static;
  }

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

@media (max-width: 921px) {
  .cms-public-shell .ast-flex.main-header-container {
    align-items: center;
    justify-content: space-between;
  }

  .cms-public-shell .ast-mobile-menu-buttons {
    display: block;
  }

  .cms-public-shell .ast-main-header-bar-alignment {
    display: none;
    width: 100%;
  }

  .cms-public-shell.is-menu-open .ast-main-header-bar-alignment {
    display: block;
  }

  .cms-public-shell.is-menu-open .main-header-bar-navigation {
    display: block;
  }

  .cms-public-shell .main-header-menu {
    display: grid;
    width: 100%;
    padding: 12px 0 0;
  }

  .cms-public-shell .main-header-menu .menu-link {
    display: block;
    padding: 12px 0;
  }

  .cms-public-shell .main-header-menu .menu-item {
    border-top: 1px solid #e5e5e5;
  }
}

@media (max-width: 640px) {
  .admin-header,
  .site-admin-header {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .editor-panel,
  .posts-panel,
  .media-panel {
    padding: 18px;
  }

  .editor-panel > .panel-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .editor-header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .editor-header-actions #save-state {
    order: 3;
    width: 100%;
    max-width: none;
    text-align: left;
  }

  .title-field input {
    min-height: 56px;
    font-size: 27px;
  }

  .media-picker {
    grid-template-columns: 1fr;
  }

  .admin-tools {
    grid-template-columns: 1fr;
  }

  .media-tools {
    grid-template-columns: 1fr;
  }

  .media-tools .library-summary {
    text-align: left;
  }

  .image-selector {
    padding: 12px;
  }

  .image-selector-panel {
    max-height: calc(100vh - 24px);
  }

  .image-selector-header,
  .image-selector-actions {
    padding: 14px;
  }

  .image-selector-tools {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .image-selector-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 14px;
  }

  .cms-post-header {
    min-height: 240px;
    gap: 22px;
    padding: 20px 16px 30px;
  }

  .cms-post-brand {
    gap: 12px;
  }

  .cms-post-brand img {
    width: 64px;
    height: 64px;
  }

  .cms-post-header nav {
    gap: 18px;
  }

  .single-post-page {
    padding: 24px 10px 48px;
  }

  .single-post-article {
    padding: 24px 18px;
  }

  .single-post-article h1 {
    font-size: 26px;
  }

  .single-post-gallery {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .cms-public-footer {
    padding: 34px 18px;
  }

  .cms-public-footer__inner {
    display: grid;
    gap: 22px;
  }

  .cms-public-footer nav {
    justify-content: flex-start;
  }

  .testimonies-hero {
    padding-top: 42px;
  }

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

  .testimony-feature,
  .testimony-card {
    grid-template-columns: 1fr;
    padding: 24px 18px;
  }

  .testimony-card__mark,
  .testimony-feature .testimony-card__mark {
    width: 54px;
    height: 54px;
    font-size: 14px;
  }

  .admin-layout {
    padding: 14px;
  }
}
