:root {
  --paper: #f3efe5;
  --paper-bright: #fffdf8;
  --paper-deep: #e8e0d0;
  --ink: #1d1d19;
  --ink-soft: #37362f;
  --muted: #696557;
  --muted-light: #8a8473;
  --rule: #c9c0ae;
  --rule-dark: #918a7a;
  --accent: #a6412f;
  --accent-dark: #7e2d20;
  --green: #1e4b3c;
  --green-light: #d9e7de;
  --danger: #a32626;
  --sans: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --page: 1180px;
  --shadow: 0 24px 70px rgba(40, 34, 24, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.68), transparent 34%),
    linear-gradient(90deg, rgba(78, 62, 37, 0.018) 1px, transparent 1px),
    var(--paper);
  background-size: auto, 5px 5px, auto;
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(166, 65, 47, 0.34);
  outline-offset: 3px;
}

.page-width {
  width: min(calc(100% - 48px), var(--page));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 300;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  border-radius: 3px;
  background: var(--paper-bright);
  color: var(--ink);
  padding: 10px 14px;
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.boot-state {
  display: grid;
  min-height: 100vh;
  place-items: center;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.25rem;
}

.utility-strip {
  background: var(--ink);
  color: #f7f1e6;
}

.utility-inner {
  display: flex;
  min-height: 39px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.live-copy {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #bdb8ab;
}

.live-copy strong {
  color: #fffaf0;
  font-size: 0.7rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #eb6750;
  box-shadow: 0 0 0 4px rgba(235, 103, 80, 0.13);
}

.utility-action {
  min-height: 32px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
  background: transparent;
  color: #f7f1e6;
  padding: 0 2px;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
}

.utility-action:hover {
  border-color: #fff;
}

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

.project-switch {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #bdb8ab;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.project-switch select {
  max-width: 230px;
  min-height: 29px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 2px;
  background: #292923;
  color: #fffaf0;
  padding: 3px 25px 3px 8px;
  font-size: 0.7rem;
  text-transform: none;
}

.masthead {
  padding-top: 23px;
}

.edition-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--rule-dark);
  padding-bottom: 10px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.edition-line span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.edition-line span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.masthead-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 310px);
  align-items: center;
  gap: 28px;
  min-height: 150px;
  border-bottom: 5px double var(--ink);
}

.masthead-title h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4.9vw, 3.85rem);
  font-weight: 700;
  letter-spacing: -0.075em;
  line-height: 0.8;
  text-align: left;
}

.project-identity {
  justify-self: end;
  max-width: 310px;
  border-left: 1px solid var(--rule);
  padding-left: 20px;
}

.project-identity strong,
.project-identity span {
  display: block;
}

.project-identity strong {
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.15;
}

.project-identity span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.project-identity .inline-edit {
  margin-top: 9px;
}

.section-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 4vw, 48px);
  min-height: 48px;
  border-bottom: 1px solid var(--rule);
}

.section-nav a {
  color: var(--ink-soft);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
}

.section-nav a:hover {
  color: var(--accent);
}

.editor-bar {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(30, 75, 60, 0.97);
  color: #f5f3e9;
  box-shadow: 0 8px 24px rgba(29, 29, 25, 0.16);
  backdrop-filter: blur(14px);
}

.editor-bar-inner {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.editor-state span,
.editor-state strong {
  display: block;
}

.editor-state span {
  color: #bcd0c5;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.editor-state strong {
  margin-top: 3px;
  font-family: var(--serif);
  font-size: 1rem;
}

.editor-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 2px;
  padding: 0 15px;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 750;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  border-color: var(--ink);
  background: var(--ink);
  color: #fffaf1;
}

.button-primary:hover {
  background: #34342e;
}

.button-quiet {
  border-color: var(--rule);
  background: transparent;
  color: var(--ink);
}

.button-quiet:hover {
  border-color: var(--ink);
  background: var(--paper);
}

.button-paper {
  border-color: #f8f1e4;
  background: #f8f1e4;
  color: var(--green);
}

.button-paper:hover {
  background: #fff;
}

.button-outline-light {
  border-color: rgba(255, 255, 255, 0.45);
  background: transparent;
  color: #fff;
}

.button-outline-light:hover {
  border-color: #fff;
}

.button-text-light {
  min-height: 38px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.38);
  background: transparent;
  color: #f3eee3;
  padding: 0 3px;
}

.journal-main {
  padding-block: 46px 92px;
}

.edition-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.75fr);
  gap: clamp(36px, 6vw, 76px);
  align-items: start;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 48px;
}

.edition-hero.without-lead {
  grid-template-columns: minmax(280px, 360px);
  justify-content: end;
}

.lead-story {
  min-width: 0;
  padding-top: 3px;
}

.lead-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.story-label-row,
.news-meta {
  display: flex;
  align-items: center;
  gap: 11px;
}

.story-label {
  color: var(--accent);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.lead-flag {
  border-left: 1px solid var(--rule);
  color: var(--muted);
  padding-left: 11px;
  font-size: 0.68rem;
  font-weight: 650;
}

.lead-story h2 {
  max-width: 820px;
  margin: 18px 0 0;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4.65vw, 4.15rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.94;
}

.lead-summary {
  max-width: 720px;
  margin: 23px 0 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.35;
}

.lead-body {
  max-width: 690px;
  margin-top: 22px;
  border-top: 1px solid var(--rule);
  padding-top: 18px;
}

.lead-body p,
.news-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.75;
}

.publication-copy {
  position: relative;
}

.publication-copy.is-collapsed {
  display: none;
}

.expand-toggle {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  margin-top: 13px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.7);
  color: var(--ink-soft);
  padding: 0 11px 0 8px;
  cursor: pointer;
  font-size: 0.69rem;
  font-weight: 800;
}

.expand-toggle span {
  display: inline-grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border: 1px solid var(--rule-dark);
  border-radius: 50%;
  font-size: 0.82rem;
  line-height: 1;
}

.expand-toggle:hover {
  background: var(--paper-bright);
  color: var(--accent-dark);
  border-color: var(--accent-dark);
}

.story-footer {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 23px;
  color: var(--muted-light);
  font-size: 0.7rem;
}

.story-footer span + span,
.story-footer time + span {
  border-left: 1px solid var(--rule);
  padding-left: 13px;
}

.inline-edit {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(166, 65, 47, 0.28);
  border-radius: 999px;
  background: rgba(166, 65, 47, 0.055);
  color: var(--accent-dark);
  padding: 0 9px;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 800;
}

.inline-edit:hover {
  border-color: rgba(166, 65, 47, 0.55);
  background: rgba(166, 65, 47, 0.1);
}

.story-footer .inline-edit {
  margin-left: auto;
}

.phase-brief {
  position: relative;
  overflow: hidden;
  align-self: start;
  min-height: 0;
  height: fit-content;
  background: var(--ink);
  color: #f7f0e4;
  padding: 27px 26px;
}

.phase-brief::after {
  content: "";
  position: absolute;
  right: -58px;
  bottom: -72px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(255, 255, 255, 0.025), 0 0 0 68px rgba(255, 255, 255, 0.018);
  pointer-events: none;
}

.phase-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #b7b1a6;
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.phase-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #cce6d8;
}

.phase-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8dd6ac;
}

.phase-brief h2 {
  position: relative;
  z-index: 1;
  margin: 24px 0 10px;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.phase-brief > p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #bbb6ab;
  font-size: 0.79rem;
  line-height: 1.65;
}

.phase-progress-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 23px;
  color: #a7a195;
  font-size: 0.66rem;
}

.phase-progress-copy strong {
  color: #fff;
  font-size: 0.75rem;
}

.phase-progress {
  height: 3px;
  margin-top: 9px;
  background: rgba(255, 255, 255, 0.15);
}

.phase-progress span {
  display: block;
  height: 100%;
  background: #f2c181;
}

.phase-brief > .inline-edit {
  position: relative;
  z-index: 1;
  margin-top: 22px;
  border-color: #d8b384;
  color: #f2c181;
}

.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(54px, 8vw, 106px);
  padding-top: 57px;
}

.news-column,
.agenda-column {
  min-width: 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 14px;
}

.section-heading.compact {
  align-items: center;
}

.section-kicker {
  margin: 0 0 5px;
  color: var(--accent);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.section-heading > span {
  color: var(--muted);
  font-size: 0.7rem;
}

.news-column > .section-heading {
  border-bottom: 0;
  padding-bottom: 12px;
}

.news-column > .section-heading > span {
  border-radius: 999px;
  background: var(--paper-deep);
  padding: 5px 9px;
}

.news-feed {
  display: grid;
  gap: 12px;
}

.day-divider {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  margin: 18px 0 1px;
  border: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.day-divider::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.news-item {
  border: 0;
  border-left: 3px solid rgba(166, 65, 47, 0.24);
  background: rgba(255, 253, 248, 0.52);
  padding: 20px 18px 18px;
}

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

.news-meta time {
  color: var(--muted-light);
  font-size: 0.68rem;
}

.news-item h3 {
  max-width: 760px;
  margin: 12px 0 0;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.55vw, 1.3rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.news-summary {
  max-width: 720px;
  margin: 13px 0 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 0.9rem;
  line-height: 1.5;
}

.news-body {
  max-width: 690px;
  margin-top: 15px;
}

.publication-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 720px;
  margin-top: 18px;
}

.publication-media figure {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--rule);
  background: var(--paper-bright);
}

.publication-media img,
.publication-media video {
  display: block;
  width: 100%;
  max-height: 390px;
  background: #171713;
  object-fit: contain;
}

.publication-media figcaption {
  overflow: hidden;
  padding: 8px 10px;
  color: var(--muted);
  font-size: 0.64rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-link {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  border: 1px solid var(--rule);
  background: var(--paper-bright);
  color: var(--ink);
  padding: 9px 12px;
  text-decoration: none;
}

.attachment-link > span {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  background: var(--paper-deep);
  color: var(--accent);
}

.attachment-link strong {
  overflow: hidden;
  font-family: var(--serif);
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-link small {
  color: var(--muted-light);
  font-size: 0.6rem;
}

.news-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 17px;
  color: var(--muted-light);
  font-size: 0.68rem;
}

.news-footer.editor-only {
  justify-content: flex-end;
}

.load-more {
  width: 100%;
  min-height: 51px;
  margin-top: 26px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.load-more:hover {
  background: var(--ink);
  color: #fff;
}

.empty-state,
.agenda-empty {
  display: grid;
  gap: 7px;
  border-bottom: 1px solid var(--rule);
  padding: 30px 0;
  color: var(--muted);
  font-size: 0.79rem;
}

.empty-state strong,
.agenda-empty strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.22rem;
}

.agenda-sticky {
  position: sticky;
  top: 88px;
}

.agenda-list {
  display: grid;
}

.agenda-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  border-bottom: 1px solid var(--rule);
  padding: 22px 0;
}

.agenda-date {
  min-height: 55px;
  border-right: 1px solid var(--rule);
  padding-right: 14px;
  text-align: center;
}

.agenda-date strong,
.agenda-date span {
  display: block;
}

.agenda-date strong {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 0.9;
}

.agenda-date span {
  margin-top: 5px;
  color: var(--accent);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
}

.agenda-time {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted-light);
  font-size: 0.66rem;
  font-weight: 650;
}

.agenda-time span {
  border-left: 1px solid var(--rule);
  padding-left: 8px;
}

.agenda-copy h3 {
  margin: 7px 0 0;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.1;
}

.agenda-copy p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.55;
}

.agenda-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.agenda-links a {
  color: var(--green);
  font-size: 0.68rem;
  font-weight: 800;
  text-decoration: none;
}

.agenda-links a:hover {
  text-decoration: underline;
}

.journal-footer {
  border-top: 1px solid var(--ink);
  background: var(--paper-deep);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 30px;
  min-height: 120px;
  padding-block: 22px;
}

.footer-inner > div strong,
.footer-inner > div span {
  display: block;
}

.footer-inner > div strong {
  font-family: var(--serif);
  font-size: 1.7rem;
  letter-spacing: -0.04em;
}

.footer-inner > div span,
.footer-inner p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.68rem;
}

.footer-admin {
  min-height: 40px;
  border: 0;
  border-bottom: 1px solid var(--muted);
  background: transparent;
  color: var(--ink-soft);
  padding: 0 2px;
  cursor: pointer;
  font-size: 0.69rem;
  font-weight: 750;
}

.modal-open {
  overflow: hidden;
}

.modal-backdrop {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: auto;
  background: rgba(22, 22, 18, 0.72);
  padding: 24px;
  backdrop-filter: blur(7px);
  animation: fade-in 160ms ease both;
}

.modal {
  width: min(100%, 600px);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid var(--ink);
  background: var(--paper-bright);
  box-shadow: var(--shadow);
  animation: modal-in 190ms ease both;
}

.modal-wide {
  width: min(100%, 860px);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--rule);
  padding: 24px 26px 20px;
}

.modal-header h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.modal-header p {
  max-width: 580px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.icon-button {
  display: grid;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.7rem;
  line-height: 1;
}

.icon-button:hover {
  border-color: var(--ink);
}

.modal-content {
  padding: 25px 26px 28px;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  border-top: 1px solid var(--rule);
  background: #f7f3eb;
  padding: 16px 26px;
}

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

.form-field {
  display: grid;
  align-content: start;
  gap: 7px;
}

.form-field.full,
.form-error.full,
.demo-fill {
  grid-column: 1 / -1;
}

.form-field label {
  color: var(--ink-soft);
  font-size: 0.71rem;
  font-weight: 800;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--rule-dark);
  border-radius: 0;
  background: #fffefb;
  color: var(--ink);
  padding: 12px 13px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.form-field input,
.form-field select {
  min-height: 46px;
}

.form-field textarea {
  resize: vertical;
  line-height: 1.6;
}

.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover {
  border-color: var(--ink);
}

.form-field small {
  color: var(--muted-light);
  font-size: 0.64rem;
  line-height: 1.45;
}

.check-control {
  display: flex;
  min-height: 76px;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--rule);
  background: var(--paper);
  padding: 13px;
  cursor: pointer;
}

.check-control input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.check-control strong,
.check-control small {
  display: block;
}

.check-control.compact {
  min-height: 46px;
  padding-block: 8px;
}

.form-field.is-disabled {
  opacity: 0.5;
}

.form-field input:disabled {
  cursor: not-allowed;
}

.check-control strong {
  font-size: 0.75rem;
}

.check-control small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.64rem;
  line-height: 1.4;
}

.demo-fill {
  justify-self: start;
  min-height: 36px;
  border: 0;
  border-bottom: 1px solid var(--muted);
  background: transparent;
  color: var(--muted);
  padding: 0 1px;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 750;
}

.form-error {
  min-height: 18px;
  color: var(--danger);
  font-size: 0.72rem;
  font-weight: 700;
}

.existing-attachments {
  display: grid;
  gap: 8px;
  border: 1px solid var(--rule);
  background: var(--paper);
  padding: 13px;
}

.existing-attachments > strong {
  font-size: 0.72rem;
}

.existing-attachments > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--rule);
  padding-top: 8px;
  color: var(--muted);
  font-size: 0.68rem;
}

.existing-attachments button {
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--danger);
  cursor: pointer;
  font-size: 0.65rem;
  font-weight: 700;
}

.membership-grid {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--rule);
  background: var(--paper);
  padding: 13px;
}

.membership-grid legend {
  padding: 0 6px;
  color: var(--ink-soft);
  font-size: 0.71rem;
  font-weight: 800;
}

.membership-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--rule);
  padding: 9px 0;
}

.membership-row:first-of-type {
  border-top: 0;
}

.membership-row label {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  font-size: 0.71rem;
  font-weight: 700;
}

.membership-row label span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.membership-row select {
  min-height: 36px;
  border: 1px solid var(--rule-dark);
  background: #fffefb;
  padding: 4px 8px;
  font-size: 0.68rem;
}

.manager-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 31px;
}

.manager-action {
  display: grid;
  min-height: 128px;
  align-content: start;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  padding: 16px;
  cursor: pointer;
  text-align: left;
}

.manager-action:hover {
  border-color: var(--ink);
  background: #fff;
}

.manager-action > span {
  color: var(--accent);
  font-family: var(--serif);
  font-size: 1.5rem;
}

.manager-action strong {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: 1.06rem;
}

.manager-action small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.63rem;
  line-height: 1.45;
}

.manager-section + .manager-section {
  margin-top: 34px;
}

.manager-section > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 10px;
}

.manager-section h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.55rem;
}

.manager-section header p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.66rem;
}

.manager-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--rule);
  padding: 17px 0;
}

.manager-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.63rem;
}

.status-pill {
  border: 1px solid var(--rule);
  padding: 2px 6px;
  color: var(--green);
  font-weight: 800;
}

.status-pill.draft {
  color: var(--accent);
}

.manager-item h4 {
  margin: 6px 0 0;
  font-family: var(--serif);
  font-size: 1.04rem;
  font-weight: 600;
}

.manager-item time,
.manager-item small {
  display: block;
  margin-top: 4px;
  color: var(--muted-light);
  font-size: 0.63rem;
}

.manager-item-actions {
  display: flex;
  gap: 7px;
}

.manager-item-actions button {
  display: inline-flex;
  min-height: 37px;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink-soft);
  padding: 0 10px;
  cursor: pointer;
  font-size: 0.65rem;
  font-weight: 750;
}

.manager-item-actions button:hover {
  border-color: var(--ink);
}

.manager-item-actions .danger-link {
  color: var(--danger);
}

.manager-empty {
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
  padding: 24px 0;
  font-size: 0.75rem;
}

.toast-root {
  position: fixed;
  z-index: 260;
  right: 20px;
  bottom: 20px;
  display: grid;
  gap: 8px;
}

.toast {
  width: min(360px, calc(100vw - 40px));
  border-left: 4px solid #d39b64;
  background: var(--ink);
  color: #fffaf1;
  box-shadow: var(--shadow);
  padding: 14px 16px;
  font-size: 0.75rem;
  line-height: 1.45;
  animation: toast-in 200ms ease both;
}

.toast-error {
  border-left-color: var(--danger);
}

.auth-page {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(420px, 1fr);
  min-height: 100vh;
  background: var(--paper);
}

.auth-brand {
  position: relative;
  display: flex;
  min-height: 100vh;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: var(--ink);
  color: #fffaf0;
  padding: clamp(40px, 7vw, 100px);
}

.auth-brand::after {
  content: "";
  position: absolute;
  right: -100px;
  bottom: -100px;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 56px rgba(255, 255, 255, 0.025), 0 0 0 112px rgba(255, 255, 255, 0.018);
}

.auth-brand > span {
  color: #c5bfb4;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.auth-brand > strong {
  margin-top: 22px;
  font-family: var(--serif);
  font-size: clamp(4rem, 9vw, 8rem);
  letter-spacing: -0.08em;
  line-height: 0.8;
}

.auth-brand > p {
  max-width: 420px;
  margin: 28px 0 0;
  color: #bdb8ad;
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.45;
}

.auth-card {
  width: min(100% - 56px, 560px);
  align-self: center;
  justify-self: center;
  padding: 46px 0;
}

.auth-card h1,
.access-empty h1 {
  margin: 7px 0 0;
  font-family: var(--serif);
  font-size: clamp(2.35rem, 4.2vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.auth-card > p:not(.section-kicker),
.access-empty > p:not(.section-kicker) {
  max-width: 520px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.65;
}

.auth-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 14px;
  margin-top: 31px;
}

.auth-submit {
  grid-column: 1 / -1;
  width: 100%;
}

.access-empty {
  display: flex;
  min-height: calc(100vh - 39px);
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
}

.access-empty .button {
  margin-top: 25px;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1000px) {
  .masthead-title {
    grid-template-columns: 1fr auto;
    gap: 22px;
  }

  .masthead-title h1 {
    text-align: left;
  }

  .edition-hero {
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
    gap: 34px;
  }

  .news-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 52px;
  }

  .editor-bar-inner {
    align-items: flex-start;
    padding-block: 11px;
  }

  .editor-actions {
    justify-content: flex-end;
    flex-wrap: wrap;
  }
}

@media (max-width: 820px) {
  .page-width {
    width: min(calc(100% - 36px), var(--page));
  }

  .masthead-title {
    min-height: 125px;
  }

  .project-identity {
    max-width: 260px;
  }

  .edition-hero {
    grid-template-columns: 1fr;
  }

  .edition-hero.without-lead {
    grid-template-columns: 1fr;
  }

  .phase-brief {
    min-height: auto;
  }

  .news-layout {
    display: flex;
    flex-direction: column;
    gap: 55px;
  }

  .agenda-column {
    order: -1;
  }

  .agenda-sticky {
    position: static;
  }

  .agenda-list {
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
  }

  .editor-state {
    display: none;
  }

  .editor-bar-inner {
    justify-content: flex-start;
  }

  .editor-actions {
    justify-content: flex-start;
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
  }

  .footer-admin {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .manager-actions {
    grid-template-columns: 1fr;
  }

  .manager-action {
    min-height: 96px;
  }

  .auth-page {
    grid-template-columns: 1fr;
  }

  .auth-brand {
    min-height: 260px;
    padding: 42px;
  }

  .auth-brand > strong {
    font-size: 4.5rem;
  }

  .auth-brand > p {
    margin-top: 18px;
  }
}

@media (max-width: 620px) {
  .page-width {
    width: min(calc(100% - 28px), var(--page));
  }

  .utility-inner {
    min-height: 43px;
  }

  .live-copy span:last-child {
    display: none;
  }

  .utility-actions {
    gap: 8px;
  }

  .project-switch > span,
  .utility-actions .utility-action:nth-last-child(2) {
    display: none;
  }

  .project-switch select {
    max-width: 145px;
  }

  .edition-line {
    align-items: flex-start;
    font-size: 0.61rem;
  }

  .edition-line span {
    text-align: right;
  }

  .masthead-title {
    display: block;
    min-height: auto;
    padding: 27px 0 22px;
  }

  .masthead-title h1 {
    font-size: clamp(2.45rem, 12.6vw, 3.35rem);
    text-align: center;
  }

  .project-identity {
    max-width: none;
    margin-top: 24px;
    border-top: 1px solid var(--rule);
    border-left: 0;
    padding-top: 14px;
    padding-left: 0;
    text-align: center;
  }

  .project-identity span {
    max-width: 430px;
    margin: 6px auto 0;
  }

  .section-nav {
    justify-content: flex-start;
    overflow-x: auto;
    gap: 28px;
    padding-inline: 4px;
    scrollbar-width: none;
  }

  .section-nav::-webkit-scrollbar {
    display: none;
  }

  .section-nav a {
    flex: 0 0 auto;
  }

  .editor-bar-inner {
    width: 100%;
    overflow-x: auto;
    padding: 9px 14px;
    scrollbar-width: none;
  }

  .editor-bar-inner::-webkit-scrollbar {
    display: none;
  }

  .editor-actions {
    flex-wrap: nowrap;
  }

  .editor-actions .button {
    flex: 0 0 auto;
  }

  .journal-main {
    padding-block: 34px 68px;
  }

  .edition-hero {
    gap: 34px;
    padding-bottom: 36px;
  }

  .lead-story h2 {
    font-size: clamp(2.2rem, 10.4vw, 3.3rem);
  }

  .lead-summary {
    font-size: 0.95rem;
  }

  .story-footer {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .story-footer .inline-edit {
    margin-left: 0;
  }

  .phase-brief {
    padding: 27px 23px;
  }

  .news-layout {
    padding-top: 42px;
  }

  .agenda-list {
    grid-template-columns: 1fr;
  }

  .news-item h3 {
    font-size: 1.2rem;
  }

  .news-meta {
    align-items: flex-start;
  }

  .footer-inner {
    display: flex;
    min-height: 150px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
  }

  .modal-backdrop {
    align-items: end;
    padding: 0;
  }

  .modal {
    width: 100%;
    max-height: 94vh;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
  }

  .modal-header,
  .modal-content,
  .modal-footer {
    padding-right: 18px;
    padding-left: 18px;
  }

  .modal-footer {
    position: sticky;
    bottom: 0;
  }

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

  .form-field.full,
  .form-error.full,
  .demo-fill,
  .membership-grid.full {
    grid-column: auto;
  }

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

  .membership-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .auth-brand {
    min-height: 215px;
    padding: 32px 24px;
  }

  .auth-brand > strong {
    font-size: 3.8rem;
  }

  .auth-brand > p {
    font-size: 0.95rem;
  }

  .auth-card {
    width: min(100% - 36px, 560px);
    padding: 38px 0 54px;
  }

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

  .auth-submit {
    grid-column: auto;
  }

  .manager-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .manager-item-actions {
    justify-content: flex-start;
  }

  .toast-root {
    right: 14px;
    bottom: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .utility-strip,
  .editor-bar,
  .section-nav,
  .inline-edit,
  .footer-admin {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .page-width {
    width: 100%;
  }

  .journal-main {
    padding-block: 24px;
  }
}
