@font-face {
  font-family: "FrameWatch Editorial";
  src: url("../fonts/editorial-regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "FrameWatch Editorial";
  src: url("../fonts/editorial-bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}
:root {
  --red: #aa233b;
  --ink: #171717;
  --paper: #f4f3f0;
  --line: #d8d6d2;
  --muted: #686460;
  --serif: "FrameWatch Editorial", "Times New Roman", serif;
}
body {
  background: #fff;
  color: var(--ink);
}
h1,
h2,
h3,
.article-head h1,
.page-title h1 {
  font-family: var(--serif);
  letter-spacing: -0.025em;
}
h1,
.article-head h1,
.page-title h1 {
  font-weight: 400;
  line-height: 1.08;
}
h2,
h3 {
  line-height: 1.15;
}
.topline {
  background: #f5f4f2;
  color: #3c3937;
  padding: 7px 0;
}
.topline span {
  color: #77716d;
}
.masthead {
  height: 155px;
  justify-content: center;
  position: relative;
}
.masthead > a {
  display: block;
}
.masthead .logo {
  width: 460px;
  height: 132px;
  object-fit: contain;
  object-position: center;
}
.header-note {
  display: none;
}
.text-logo {
  font: 48px var(--serif);
}
.text-logo small {
  color: var(--red);
}
.nav {
  border-top: 0;
  border-bottom: 1px solid #ccc;
  background: #f7f6f4;
}
.nav-inner {
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px 24px;
  min-height: 53px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.nav-inner > a {
  font: 19px/1.2 var(--serif);
  font-weight: 700;
  text-transform: none;
}
.nav-account {
  margin-left: 10px;
  font:
    13px Arial,
    sans-serif;
}
.adminbar {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 20px;
  padding-top: 12px;
  padding-bottom: 12px;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
}
.page-title {
  padding-top: 38px;
  padding-bottom: 25px;
}
.page-title h1 {
  font-size: clamp(34px, 4.2vw, 56px);
  margin: 10px 0 14px;
}
.page-title p {
  max-width: 850px;
  color: #665d56;
  font: 20px/1.5 var(--serif);
}
.workspace h1 {
  font-size: clamp(31px, 3.3vw, 45px);
}
.workspace .nav-inner > a {
  font:
    14px Arial,
    sans-serif;
  font-weight: 600;
}
.workspace h2 {
  font-size: 26px;
}
.filters {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  background: #f5f4f1;
  padding: 20px;
}
.filters > label {
  flex: 1 1 145px;
  min-width: 0;
}
.filters input,
.filters select {
  width: 100%;
}
.media-picker {
  flex: 1 1 220px;
  background: #fff;
  padding: 10px 12px;
  border: 1px solid var(--line);
}
.media-picker summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}
.media-picker .checkroles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  max-height: 280px;
  overflow: auto;
  padding: 12px 0;
}
.media-picker label {
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.media-picker input[type="checkbox"] {
  width: auto;
}
fieldset {
  border: 0;
  padding: 0;
  min-width: 0;
}
.form-panel {
  max-width: 100%;
}
.form-panel details {
  margin: 15px 0;
}
.form-panel summary,
.history summary {
  cursor: pointer;
  font-weight: 600;
}
.form-panel textarea {
  line-height: 1.6;
}
.branding-preview {
  max-width: 300px;
  max-height: 150px;
  object-fit: contain;
  display: block;
  margin: 12px 0;
}
.task-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.task-card h2 {
  font-size: 25px;
}
.task-card .actions {
  margin-bottom: 0;
}
.notice.warning {
  border-left: 4px solid #d18b22;
  background: #fff6e8;
}
.history {
  margin: 30px 0;
  padding: 20px;
  background: #f8f7f4;
}
.history > details {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.history h4 {
  margin-bottom: 8px;
}
.text-diff {
  line-height: 1.9;
  overflow-wrap: anywhere;
}
ins,
.diff-after {
  background: #e2f4e6;
  color: #185e30;
  text-decoration: none;
}
del,
.diff-before {
  background: #ffe1df;
  color: #9b2525;
}
.diff-before,
.diff-after {
  padding: 14px;
  margin: 10px 0;
  white-space: normal;
}
.ai-preview .prose {
  max-height: 500px;
  overflow: auto;
}
.home-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 36px;
  align-items: start;
}
.home-reading {
  background: #f0efeb;
  padding: 24px;
}
.home-reading > h2 {
  font:
    700 16px Arial,
    sans-serif;
  letter-spacing: 0.04em;
  border-bottom: 3px solid #222;
  padding-bottom: 16px;
  margin-top: 0;
}
.reading-item {
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}
.reading-item h3 {
  font: 700 21px/1.2 var(--serif);
  margin: 9px 0;
}
.reading-item p {
  color: #67615b;
  font-size: 14px;
  line-height: 1.6;
}
.fw-home-intro h1 {
  font-weight: 400;
}
.fw-home-hero {
  gap: 28px;
  grid-template-columns: 1fr 1fr;
}
.fw-home-hero h1 {
  font-size: clamp(36px, 4.3vw, 58px);
}
.static-content {
  max-width: 820px;
}
footer {
  background: #f5f4f1;
  color: #222;
  border-top: 1px solid var(--line);
}
.footer-grid {
  grid-template-columns: 1fr 0.7fr 1.4fr;
  align-items: start;
  gap: 35px;
}
.footer-logo {
  font: 32px var(--serif);
}
.partner-logos {
  display: flex;
  gap: 22px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.partner-logos img {
  display: block;
  max-width: 145px;
  width: auto;
  height: 65px;
  object-fit: contain;
}
.partner-logos > img[alt^="Ministria"] {
  height: 95px;
  max-width: 100px;
}
.copyright {
  color: #6a6660;
  border-top: 1px solid var(--line);
  padding-top: 15px;
  padding-bottom: 15px;
}
.publication-photo {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  margin: 0 0 30px;
}
@media (max-width: 1000px) {
  .home-columns {
    grid-template-columns: 1fr;
  }
  .home-reading {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
  }
  .home-reading > h2 {
    grid-column: 1/-1;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .partner-logos {
    grid-column: 1/-1;
  }
}
@media (max-width: 700px) {
  .wrap {
    padding-left: 20px;
    padding-right: 20px;
  }
  .masthead {
    height: 118px;
  }
  .masthead .logo {
    width: min(340px, 85vw);
    height: 100px;
  }
  .menu-toggle {
    position: absolute;
    right: 10px;
    bottom: 0;
    background: #fff;
    color: #222;
    padding: 3px 8px;
    font-size: 12px;
  }
  .nav-inner {
    justify-content: flex-start;
  }
  .task-grid,
  .footer-grid,
  .fw-home-hero,
  .home-reading {
    grid-template-columns: 1fr;
  }
  .filters {
    padding: 14px;
  }
  .filters > label,
  .media-picker {
    flex-basis: 100%;
  }
  .page-title {
    padding-top: 25px;
  }
  .footer-grid {
    gap: 22px;
  }
  .actions {
    flex-wrap: wrap;
  }
  table {
    font-size: 13px;
  }
}
@media print {
  .topline,
  .masthead,
  .nav,
  .adminbar,
  footer,
  .actions,
  .filters,
  form,
  .history,
  script {
    display: none !important;
  }
  .wrap {
    max-width: none;
    padding: 0;
  }
  body {
    color: #000;
    font-size: 11px;
  }
  .panel {
    break-inside: avoid;
    box-shadow: none;
  }
  .table-scroll {
    overflow: visible;
  }
  table {
    width: 100%;
    font-size: 9px;
  }
  th,
  td {
    padding: 6px;
    overflow-wrap: anywhere;
  }
  h1 {
    font-size: 28px !important;
  }
  details {
    display: block;
  }
  .bar i {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  @page {
    size: A4;
    margin: 15mm;
  }
}

.masthead .logo-default {
  object-fit: cover;
  object-position: center 32%;
}
.partner-logos a {
  background: transparent;
  padding: 8px 12px;
  border-radius: 2px;
}

/* Public data filters: two balanced rows instead of a compressed search box. */
.filters:has(> .media-picker) {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) minmax(220px, 2fr) minmax(150px, 1fr);
  align-items: end;
}
.filters:has(> .media-picker) > label,
.filters:has(> .media-picker) > .media-picker {
  min-width: 0;
  margin-bottom: 0;
}
.filters:has(> .media-picker) input,
.filters:has(> .media-picker) select {
  box-sizing: border-box;
  min-width: 0;
}
.filters:has(> .media-picker) > button { min-height: 44px; }
.static-content + .actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 40px;
}
.static-content + .actions .button {
  box-sizing: border-box;
  min-height: 44px;
  text-decoration: none;
  line-height: 22px;
  text-align: center;
}
@media (max-width: 800px) {
  .filters:has(> .media-picker) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .filters:has(> .media-picker) { grid-template-columns: minmax(0, 1fr); }
  .static-content + .actions .button { width: 100%; }
}
