* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: var(--color-blue);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
img {
  object-fit: cover;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(25px, 2.5vw, 36px);
  letter-spacing: -1.1px;
  margin-bottom: 10px;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 16px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 13px;
  line-height: 1.6;
}
.eyebrow {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--blue);
  margin-bottom: 10px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--blue);
  border: 1px solid transparent;
  color: white;
  min-height: 42px;
  padding: 10px 17px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition: background 0.15s;
}
.button:hover {
  background: var(--color-blue-hover);
  text-decoration: none;
}
.button.secondary {
  background: white;
  border-color: var(--border);
  color: var(--navy);
}
.button.secondary:hover {
  background: #edf3fb;
}
.button.danger {
  background: #fff3f1;
  border-color: #edc9c4;
  color: #922f27;
}
.button.yellow {
  background: var(--yellow);
  color: #17314b;
}
.button.small-button {
  min-height: 34px;
  font-size: 12px;
  padding: 7px 10px;
}
.button.link-button {
  background: none;
  color: var(--blue);
  padding: 4px;
  min-height: 30px;
}
.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.brand {
  font-weight: 800;
  letter-spacing: -0.6px;
  font-size: 19px;
  display: flex;
  gap: 10px;
  align-items: center;
  color: inherit;
}
.brand-symbol {
  color: var(--yellow);
  font-size: 32px;
  line-height: 1;
}
.skip {
  position: fixed;
  left: 16px;
  top: -70px;
  z-index: 100;
  background: var(--color-surface);
  padding: 12px;
}
.skip:focus {
  top: 12px;
}
.initial {
  padding: 20vh 10vw;
  text-align: center;
}
.shell {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: var(--navy);
  color: var(--color-surface);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar .brand {
  font-size: 17px;
  align-items: flex-start;
  line-height: 1.35;
}
.sidebar .subtitle {
  color: #a9bdd4;
  font-size: 12px;
  margin: 10px 0 35px 41px;
}
.nav {
  display: grid;
  gap: 7px;
}
.nav a {
  color: #c9d7e7;
  padding: 12px 15px;
  display: flex;
  gap: 12px;
  border-radius: 8px;
  font-size: 14px;
}
.nav a.active {
  background: #25486d;
  color: var(--color-surface);
}
.nav a:hover {
  background: #1c3b5d;
  text-decoration: none;
}
.nav-icon {
  font-size: 17px;
  width: 20px;
  text-align: center;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 35px;
  font-size: 12px;
  color: #a9bdd4;
  border-top: 1px solid #34506d;
}
.sidebar-bottom a {
  color: #dceaff;
}
.workspace {
  min-width: 0;
}
.topbar {
  height: 76px;
  background: white;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 36px;
  gap: 15px;
}
.topbar .crumb {
  color: var(--muted);
  font-size: 13px;
}
.identity {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.identity-detail {
  display: grid;
  gap: 3px;
}
.role {
  color: var(--muted);
  font-size: 11px;
}
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #e6eff9;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 750;
  flex-shrink: 0;
  overflow: hidden;
}
.avatar img {
  width: 100%;
  height: 100%;
}
.content {
  max-width: 1480px;
  margin: auto;
  padding: 35px 36px 60px;
}
.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 27px;
}
.page-heading p {
  margin-bottom: 0;
  line-height: 1.6;
}
.panel {
  background: var(--color-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 22px;
  box-shadow: 0 3px 14px #16385704;
}
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}
.panel-header h2 {
  margin: 0;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 25px;
}
.stat {
  background: var(--color-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
}
.stat strong {
  display: block;
  font-size: 32px;
  letter-spacing: -1px;
  margin-bottom: 7px;
}
.stat span {
  font-size: 13px;
  color: var(--muted);
}
.welcome {
  background: var(--color-soft);
  border: 1px solid #d1e0f3;
  position: relative;
  overflow: hidden;
}
.welcome:after {
  content: "◇ ◇ ◇";
  position: absolute;
  right: 20px;
  top: 10px;
  color: #b6cee9;
  font-size: 68px;
  letter-spacing: 10px;
  pointer-events: none;
}
.welcome > div {
  position: relative;
  z-index: 1;
  max-width: 650px;
}
.welcome p {
  line-height: 1.7;
}
.filterbar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}
.search {
  flex: 1;
}
.filterbar select {
  width: 180px;
}
.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.profile-card {
  border: 1px solid var(--border);
  background: white;
  border-radius: 11px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  min-width: 0;
}
.profile-card .card-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}
.profile-card .avatar {
  width: 62px;
  height: 62px;
  font-size: 23px;
}
.profile-card h2 {
  font-size: 18px;
  margin: 0;
}
.profile-card p {
  line-height: 1.6;
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  overflow-wrap: anywhere;
}
.profile-card .card-actions {
  border-top: 1px solid #edf1f6;
  padding-top: 14px;
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.badge {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  padding: 5px 9px;
  border-radius: 5px;
  background: #edf2f8;
  color: #53667b;
  white-space: nowrap;
}
.badge.live {
  color: #1d6246;
  background: var(--color-success-soft);
}
.badge.verified {
  background: #e9f1fd;
  color: var(--color-blue);
}
.badge.draft {
  background: #fff4d9;
  color: #765706;
}
.empty {
  text-align: center;
  padding: 55px 25px;
  border: 1px dashed #bfcddd;
  border-radius: 12px;
  background: #f9fbfd;
}
.empty h2 {
  font-size: 21px;
}
.empty p {
  color: var(--muted);
  max-width: 450px;
  margin: 0 auto 20px;
  line-height: 1.7;
}
.edit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: start;
}
.side-preview {
  position: sticky;
  top: 25px;
}
.field {
  display: grid;
  gap: 8px;
  margin-bottom: 19px;
}
.field label,
.field-label {
  font-size: 13px;
  font-weight: 650;
}
.field small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
input,
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  color: var(--color-ink);
  background: var(--color-surface);
  border: 1px solid #bfcddd;
  border-radius: 7px;
  font-size: 14px;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--color-blue);
  outline: 2px solid #d2e4fb;
}
textarea {
  resize: vertical;
  min-height: 115px;
  line-height: 1.6;
}
input[type="file"] {
  font-size: 12px;
  padding: 12px;
  background: #f5f8fc;
}
input[readonly] {
  background: #f4f6f9;
  color: var(--muted);
}
.url-preview {
  font-size: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.link-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) 35px;
  gap: 9px;
  margin-bottom: 10px;
}
.icon-button {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: white;
  color: #7d3742;
  font-size: 20px;
}
.notice {
  border-radius: 8px;
  padding: 14px 16px;
  background: var(--color-yellow-soft);
  border: 1px solid #efe0ad;
  color: #69501b;
  font-size: 12px;
  line-height: 1.7;
}
.notice.blue {
  background: #eef4fc;
  border-color: #d1e1f7;
  color: #31567f;
}
.notice a {
  text-decoration: underline;
}
.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}
.mini-profile {
  padding: 0;
  overflow: hidden;
}
.mini-top {
  height: 70px;
  background: linear-gradient(120deg, #d9e9f9, #eaf2fc);
  border-bottom: 4px solid var(--yellow);
}
.mini-body {
  padding: 0 22px 22px;
}
.mini-body .avatar {
  margin-top: -28px;
  border: 4px solid white;
  width: 75px;
  height: 75px;
  font-size: 26px;
  position: relative;
}
.mini-body h2 {
  margin-top: 16px;
  font-size: 22px;
}
.mini-body p {
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}
.members {
  list-style: none;
  padding: 0;
  margin: 15px 0;
}
.members li {
  padding: 11px 0;
  border-bottom: 1px solid #edf1f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.user-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}
.user-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--muted);
  padding: 15px 12px;
  background: #f4f7fb;
}
.user-table td {
  padding: 17px 12px;
  border-bottom: 1px solid var(--border);
  overflow-wrap: anywhere;
}
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
  gap: 24px;
}
.error {
  padding: 14px 17px;
  background: var(--color-danger-soft);
  border: 1px solid #edc9c4;
  border-radius: 7px;
  color: #8c3028;
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 20px;
}
.error:empty {
  display: none;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  padding: 14px 22px;
  background: var(--color-ink);
  color: white;
  border-radius: 10px;
  box-shadow: 0 5px 30px #122b4b26;
  font-size: 14px;
  z-index: 50;
  max-width: 90vw;
}
#toast:empty {
  display: none;
}
dialog {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 30px;
  max-width: 470px;
  width: calc(100% - 40px);
  color: var(--navy);
}
dialog p {
  line-height: 1.7;
  color: var(--muted);
}
dialog::backdrop {
  background: #10264080;
}
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(440px, 1fr);
}
.login-story {
  background: var(--navy);
  padding: 65px 10%;
  color: var(--color-surface);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.login-story:after {
  content: "◇";
  font-size: 600px;
  position: absolute;
  color: #1c3e66;
  bottom: -180px;
  right: -110px;
  line-height: 1;
  pointer-events: none;
}
.login-story > div,
.login-story > p {
  position: relative;
  z-index: 1;
}
.login-story h1 {
  font-size: clamp(35px, 3.7vw, 54px);
  max-width: 470px;
  line-height: 1.17;
  letter-spacing: -1.8px;
}
.login-story .tagline {
  color: #bed0e4;
  line-height: 1.8;
  max-width: 440px;
  font-size: 16px;
}
.login-story .eyebrow {
  color: var(--yellow);
}
.login-form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  padding: 45px;
}
.login-form {
  width: 100%;
  max-width: 390px;
}
.login-form h2 {
  font-size: 29px;
  letter-spacing: -1px;
}
.login-form .button {
  width: 100%;
  margin-top: 10px;
}
.login-form .field {
  margin-top: 22px;
}
.login-bottom {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 25px;
}
.public-header {
  background: white;
  padding: 23px max(25px, calc((100vw - 1160px) / 2));
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.public-header .brand {
  font-size: 21px;
}
.public-main {
  max-width: 1160px;
  margin: 45px auto 70px;
  padding: 0 25px;
}
.public-hero {
  background: var(--color-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.public-cover {
  height: 105px;
  background: linear-gradient(120deg, #164c88, #2971ad);
  border-bottom: 6px solid var(--yellow);
  position: relative;
}
.public-cover:after {
  content: "◇ ◇ ◇ ◇";
  color: #ffffff18;
  position: absolute;
  right: 25px;
  top: 5px;
  font-size: 70px;
}
.public-bio {
  padding: 0 35px 32px;
}
.public-bio .avatar {
  height: 115px;
  width: 115px;
  font-size: 45px;
  border: 6px solid white;
  margin-top: -48px;
  position: relative;
  border-radius: 17px;
}
.public-bio h1 {
  margin: 19px 0 12px;
}
.public-bio .bio {
  max-width: 730px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.public-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.public-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 25px;
  margin-top: 25px;
}
.pinned {
  background: var(--color-surface);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.pinned .label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
}
.publications-list {
  display: grid;
  gap: 15px;
}
.publication-item {
  padding: 20px;
  border: 1px solid var(--border);
  background: white;
  border-radius: 10px;
}
.publication-item p {
  line-height: 1.7;
  font-size: 14px;
}
.public-footer {
  border-top: 1px solid var(--border);
  max-width: 1110px;
  margin: 30px auto;
  padding: 25px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 1200px) {
  .profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .edit-layout {
    grid-template-columns: minmax(0, 1fr) 285px;
  }
  .content {
    padding: 28px 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .shell {
    grid-template-columns: 215px minmax(0, 1fr);
  }
}
@media (max-width: 950px) {
  .edit-layout,
  .two-col {
    grid-template-columns: 1fr;
  }
  .side-preview {
    position: static;
  }
  .side-preview .mini-profile {
    display: none;
  }
  .sidebar {
    padding: 25px 13px;
  }
  .shell {
    grid-template-columns: 195px minmax(0, 1fr);
  }
  .login-story {
    padding: 45px 35px;
  }
  .login-page {
    grid-template-columns: 1fr 1.1fr;
  }
  .public-columns {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .shell {
    display: block;
  }
  .sidebar {
    height: auto;
    position: static;
    padding: 18px 20px;
  }
  .sidebar .subtitle,
  .sidebar-bottom {
    display: none;
  }
  .sidebar .brand {
    font-size: 17px;
  }
  .nav {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: 18px;
  }
  .nav a {
    padding: 9px 11px;
    font-size: 13px;
  }
  .topbar {
    height: auto;
    min-height: 65px;
    padding: 15px 20px;
  }
  .topbar .crumb {
    display: none;
  }
  .content {
    padding: 25px 18px;
  }
  .profile-grid,
  .stats,
  .field-row {
    grid-template-columns: 1fr;
  }
  .stats {
    gap: 9px;
  }
  .stat {
    padding: 16px;
    display: flex;
    gap: 15px;
    align-items: center;
  }
  .stat strong {
    font-size: 25px;
    margin: 0;
  }
  .page-heading {
    flex-direction: column;
  }
  .filterbar {
    flex-wrap: wrap;
  }
  .filterbar select {
    width: 100%;
  }
  .panel {
    padding: 20px;
  }
  .link-row {
    grid-template-columns: 95px minmax(0, 1fr) 30px;
  }
  .login-page {
    display: block;
  }
  .login-story {
    padding: 30px;
    min-height: 240px;
  }
  .login-story h1 {
    font-size: 30px;
    margin-top: 25px;
  }
  .login-story .tagline,
  .login-story > p {
    display: none;
  }
  .login-form-wrap {
    padding: 35px 25px;
  }
  .public-header {
    padding: 20px;
    align-items: flex-start;
  }
  .public-header .brand {
    font-size: 16px;
  }
  .public-header .actions {
    font-size: 12px;
  }
  .public-main {
    margin-top: 25px;
    padding: 0 18px;
  }
  .public-bio {
    padding: 0 23px 25px;
  }
  .public-footer {
    padding: 20px;
    flex-direction: column;
  }
  .welcome:after {
    display: none;
  }
  .user-table th,
  .user-table td {
    padding: 13px 7px;
    font-size: 12px;
  }
  .form-footer {
    flex-wrap: wrap;
  }
  .identity-detail {
    max-width: 180px;
    overflow-wrap: anywhere;
  }
}
.link-field {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  min-width: 0;
}
.link-field input {
  margin-top: 3px;
}
.publications-list:empty {
  display: none;
}
.public-main .profile-grid + .actions {
  margin-top: 25px;
}
.event-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.event-grid > .empty {
  grid-column: 1/-1;
}
.event-card {
  background: var(--color-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.event-card > a {
  display: block;
}
.event-poster {
  display: block;
  width: 100%;
  height: 175px;
  object-fit: cover;
}
.event-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.event-card h2 {
  font-size: 19px;
  line-height: 1.35;
}
.event-card h2 a {
  color: var(--navy);
}
.event-card .card-actions {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid var(--border);
  padding-top: 15px;
}
.event-date {
  font-size: 12px;
  color: var(--blue);
  font-weight: 650;
  margin: 18px 0 10px;
}
.badge.cancelled,
.notice.cancelled {
  background: #fff0ed;
  color: #942e26;
  border-color: #e4b9b1;
}
.event-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.event-filters .field {
  margin: 0;
}
.filter-submit {
  display: flex;
  gap: 8px;
  align-self: end;
}
.event-detail .page-heading {
  margin-top: 25px;
}
.event-detail .page-heading h1 {
  margin-top: 16px;
}
.event-detail .page-heading p {
  max-width: 850px;
}
.event-detail .public-columns {
  grid-template-columns: minmax(0, 1fr) 350px;
}
.event-figure {
  margin: 0 0 25px;
}
.event-figure img {
  width: 100%;
  max-height: 640px;
  object-fit: contain;
  background: #edf2f7;
  border-radius: 8px;
}
.event-figure figcaption {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}
.event-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.9;
  font-size: 15px;
}
.attachment-row {
  display: flex;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  margin-bottom: 15px;
}
.attachment-row img {
  width: 60px;
  height: 70px;
  border-radius: 5px;
}
.attachment-row span {
  flex: 1;
  overflow-wrap: anywhere;
}
.pagination {
  margin-top: 25px;
}
.edit-layout .event-detail .public-columns {
  grid-template-columns: 1fr;
}
.event-detail .notice {
  margin-bottom: 20px;
}
@media (max-width: 1200px) {
  .event-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .event-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 950px) {
  .event-detail .public-columns {
    grid-template-columns: 1fr;
  }
  .event-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .event-grid {
    grid-template-columns: 1fr;
  }
  .event-filters {
    grid-template-columns: 1fr;
  }
  .event-poster {
    height: 210px;
  }
}
.sidebar {
  overflow-y: auto;
}
.nav a {
  padding: 9px 13px;
}
.sidebar .subtitle {
  margin-bottom: 22px;
}
.source-citation {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.source-citation > div {
  display: grid;
  gap: 5px;
}
.source-mark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-soft);
  color: var(--blue);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.content-image {
  width: 100%;
  height: 170px;
  border-radius: 7px;
}
.content-card h2 {
  font-size: 19px;
  line-height: 1.4;
}
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 35px;
}
.article-layout h1 {
  line-height: 1.2;
  font-size: clamp(29px, 3.3vw, 45px);
  margin-top: 20px;
}
.article-intro {
  font-size: 18px;
  line-height: 1.7;
}
.article-layout .notice {
  margin-bottom: 20px;
}
.content-tabs {
  margin-bottom: 25px;
}
.manage-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.manage-row h2 {
  margin: 12px 0;
}
.reference-row {
  border: 1px solid var(--border);
  padding: 18px;
  border-radius: 8px;
  margin-bottom: 18px;
}
.source-form {
  max-width: 850px;
}
.source-form .actions {
  margin-top: 20px;
}
.moderation-row {
  padding: 20px 0;
  border-top: 1px solid var(--border);
}
.portal-intro {
  padding: 30px;
  background: #e3effc;
  border-radius: 12px;
  border-bottom: 4px solid var(--yellow);
  margin-bottom: 30px;
}
.portal-intro h1 {
  font-size: 38px;
}
.portal-intro p:last-child {
  margin-bottom: 0;
  line-height: 1.7;
}
.portal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(310px, 1fr);
  gap: 28px;
}
.portal-news {
  grid-template-columns: 1fr 1fr;
  margin-bottom: 30px;
}
.portal-sections {
  display: grid;
  gap: 12px;
  align-content: start;
}
.section-access {
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 25px 20px;
  background: #e1edfa;
  border: 1px solid #d1e1f3;
  border-radius: 10px;
  color: var(--navy);
}
.section-access:hover {
  text-decoration: none;
  background: #d2e4f8;
}
.section-access > span {
  font-size: 34px;
  color: var(--blue);
  width: 40px;
  flex-shrink: 0;
}
.section-access div {
  flex: 1;
}
.section-access h2 {
  margin: 0 0 8px;
  font-size: 21px;
}
.section-access p {
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}
.section-access.help-access {
  background: var(--yellow);
  border-color: #e8bd3e;
}
.community-avatar {
  width: 65px;
  height: 65px;
  border-radius: 10px;
}
.portal-layout .panel-header {
  margin-top: 10px;
}
.portal-layout .profile-grid:not(.portal-news) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.public-header nav {
  flex-wrap: wrap;
}
.content-card .source-citation {
  margin-bottom: 4px;
}
.content-card .card-actions {
  margin-top: auto;
}
@media (max-width: 1050px) {
  .portal-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
  .portal-layout .profile-grid:not(.portal-news) {
    grid-template-columns: 1fr;
  }
  .article-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 750px) {
  .portal-layout {
    grid-template-columns: 1fr;
  }
  .portal-sections {
    grid-row: 1;
  }
  .portal-news {
    grid-template-columns: 1fr;
  }
  .portal-intro h1 {
    font-size: 30px;
  }
  .manage-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .public-header {
    flex-wrap: wrap;
  }
  .filterbar #content-lang-filter {
    max-width: 130px;
  }
}

.profile-block {
  border: 1px solid #ccd6e0;
  border-radius: 8px;
  margin: 16px 0;
  padding: 16px;
}
.profile-block legend {
  font-weight: 700;
  padding: 0 6px;
}
.block-text {
  white-space: pre-wrap;
}

/* Shared components and approved block variants. No per-page CSS is stored. */
body {
  line-height: 1.6;
}
.button {
  min-height: 44px;
  border-radius: var(--radius-control);
}
.panel,
.profile-card,
.pinned {
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
input:not([type="checkbox"]):not([type="radio"]),
select {
  min-height: 44px;
}
:focus-visible {
  outline: 3px solid var(--color-blue);
  box-shadow: 0 0 0 5px var(--color-surface);
}
.public-header {
  border-top: 0;
}
.content-block {
  --block-columns: 1;
  padding: var(--space-6);
  overflow-wrap: anywhere;
}
.content-block .block-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-width: 0;
}
.content-block .block-items > * {
  min-width: 0;
}
.content-block .block-items > p {
  margin-bottom: 0;
}
.block-surface-white {
  background: var(--color-surface);
  color: var(--color-ink);
}
.block-surface-soft {
  background: var(--color-soft);
  color: var(--color-ink);
}
.block-surface-blue {
  background: var(--color-navy);
  color: var(--color-surface);
  border-color: var(--color-navy);
}
.block-surface-blue :is(h2, h3, p, .muted, .eyebrow, figcaption, a) {
  color: var(--color-surface);
}
.block-surface-blue .button.secondary {
  background: transparent;
  border-color: #ffffff80;
  color: var(--color-surface);
}
.block-surface-blue :is(.button.secondary, .section-access):hover {
  background: #ffffff18;
  color: var(--color-surface);
}
.block-surface-blue .section-access {
  background: transparent;
  border-color: #ffffff60;
  color: var(--color-surface);
}
.block-surface-blue .publication-item {
  border-color: #ffffff40;
}
.block-surface-blue :focus-visible {
  outline-color: var(--color-yellow);
  box-shadow: 0 0 0 5px var(--color-navy);
}
.block-density-compact {
  padding: var(--space-4);
}
.block-density-compact .block-items {
  gap: var(--space-2);
}
.block-density-compact .publication-item {
  padding: var(--space-3) 0;
}
.block-columns-2 {
  --block-columns: 2;
}
.block-columns-3 {
  --block-columns: 3;
}
.block-layout-grid .block-items {
  display: grid;
  grid-template-columns: repeat(var(--block-columns), minmax(0, 1fr));
  align-items: start;
}
.block-items > .small.muted:last-child {
  grid-column: 1 / -1;
}
.block-items .event-figure {
  margin: 0;
}
.block-items .event-figure img {
  max-width: 100%;
  height: auto;
}
.block-design-controls {
  padding: var(--space-4);
  margin: var(--space-4) 0;
  border-radius: var(--radius-control);
  background: var(--color-canvas);
}
.block-design-controls label,
.page-access-row label {
  display: block;
}
.page-access-row {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-4);
}
.guide {
  max-width: 1180px;
  margin: auto;
  padding: 32px 24px;
}
.guide-header {
  padding: 40px;
  background: var(--color-navy);
  color: var(--color-surface);
  border-radius: var(--radius-card);
  border-left: 6px solid var(--color-yellow);
  margin-bottom: 32px;
}
.guide-header .eyebrow {
  color: var(--color-yellow);
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.guide-swatch {
  height: 64px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
}
.guide-color-blue {
  background: var(--color-blue);
}
.guide-color-navy {
  background: var(--color-navy);
}
.guide-color-yellow {
  background: var(--color-yellow);
}
.guide-color-canvas {
  background: var(--color-canvas);
}
.guide-color-soft {
  background: var(--color-soft);
}
.guide-color-ink {
  background: var(--color-ink);
}
@media (max-width: 1050px) {
  .block-columns-3 {
    --block-columns: 2;
  }
}
@media (max-width: 750px) {
  .content-block {
    --block-columns: 1;
  }
  .guide-grid {
    grid-template-columns: 1fr;
  }
  .guide {
    padding: 20px 16px;
  }
  .guide-header {
    padding: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
input[type="checkbox"],
input[type="radio"] {
  width: 20px;
  height: 20px;
  padding: 0;
  vertical-align: middle;
  accent-color: var(--color-blue);
  margin: 0 8px 0 0;
}
.profile-block > label,
.guide label {
  display: block;
  margin-bottom: var(--space-3);
}
:is(button, a, input, select, textarea):focus-visible {
  outline: 3px solid var(--color-blue);
  box-shadow: 0 0 0 5px var(--color-surface);
}
.block-surface-blue :is(button, a, input, select, textarea):focus-visible {
  outline-color: var(--color-yellow);
  box-shadow: 0 0 0 5px var(--color-navy);
}
@media (pointer: coarse) {
  .button.small-button,
  .button.link-button,
  .icon-button {
    min-height: 44px;
    min-width: 44px;
  }
}

/* Horizontal identity: same symbol and live text across public site and panel. */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--color-brand);
  min-width: 0;
  text-decoration: none;
}
.brand:hover {
  text-decoration: none;
}
.brand-mark {
  display: block;
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}
.brand-copy strong {
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 750;
  letter-spacing: -0.6px;
  line-height: 1.2;
}
.brand-copy small {
  font-size: 13px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: 0;
}
.sidebar .brand,
.login-story .brand,
.guide-header .brand {
  color: white;
}
.sidebar .brand {
  gap: 8px;
}
.sidebar .brand-mark {
  width: 46px;
  height: 46px;
}
.sidebar .brand-copy strong {
  font-size: 17px;
}
.sidebar .brand-copy small {
  font-size: 10px;
}
.public-footer .brand-mark {
  width: 44px;
  height: 44px;
}
.public-footer .brand-copy strong {
  font-size: 18px;
}
.public-footer .brand-copy small {
  font-size: 11px;
}
.guide-header .brand-mark {
  width: 80px;
  height: 80px;
}
.guide-header .brand-copy strong {
  font-size: clamp(25px, 4vw, 40px);
}
@media (max-width: 750px) {
  .public-header .brand-mark {
    width: 46px;
    height: 46px;
  }
  .public-header .brand-copy strong {
    font-size: 20px;
  }
  .public-header .brand-copy small,
  .public-footer .brand-copy small {
    display: none;
  }
  .public-header .brand {
    gap: 8px;
  }
}
@media (max-width: 380px) {
  .public-header .brand-copy strong {
    font-size: 18px;
  }
}

.tweet-card {
  min-width: 0;
  padding-block: 12px;
  border-bottom: 1px solid var(--border, #dce3e5);
}
.tweet-card iframe {
  max-width: 100%;
}

/* Public site configuration */
.site-section-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
}
.site-section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.site-section-row > span:first-child {
  display: grid;
  gap: 4px;
}
.site-section-row small {
  color: var(--color-muted);
}
.site-section-control {
  display: flex;
  align-items: center;
  min-width: 150px;
  justify-content: flex-end;
}
.site-section-control b {
  min-width: 92px;
  font-size: 12px;
  font-weight: 650;
  color: var(--color-muted);
}
.site-section-row input:checked + b {
  color: var(--color-blue);
}
.site-private-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 6px 0 24px;
  font-weight: 650;
}
@media (max-width: 650px) {
  .site-section-row {
    align-items: flex-start;
    gap: 12px;
  }
  .site-section-control {
    min-width: auto;
  }
  .site-section-control b {
    display: none;
  }
}

/* v0.17.6 · bulk inbox */
.inbox-bulk { margin-bottom: 1rem; }
.bulk-check { display: flex; align-items: center; gap: .55rem; font-weight: 700; }
.inbox-row { display: grid; grid-template-columns: auto 1fr; gap: .9rem; }
.inbox-select { padding-top: .2rem; }
.inbox-select input { width: 1.15rem; height: 1.15rem; }
.inbox-content { min-width: 0; }

/* Editorial archive */
.archive-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1rem; }
.archive-card img { display: block; width: 100%; height: 190px; object-fit: contain; background: #eef2f6; border-radius: 8px; }
.archive-card label { display: block; margin: .7rem 0; }
.archive-card input:not([type=checkbox]), .archive-card textarea, .archive-card select { width: 100%; }
.archive-card[hidden] { display: none; }
.archive-picker { margin: 1rem 0; }

/* Compact rights review and authorized publication library. */
.library-toolbar { display:grid;grid-template-columns:minmax(160px,2fr) repeat(3,minmax(110px,1fr)) auto;gap:.75rem;align-items:end;margin:1rem 0; }
.library-toolbar label { display:flex;flex-direction:column;gap:.35rem;min-width:0; }
.library-toolbar input,.library-toolbar select { width:100%; }
.library-pagination { display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap;margin:1rem 0; }
.rights-gallery { display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr));gap:1rem;align-items:start; }
.rights-card { min-width:0;margin:0; }
.rights-card>h2 { font-size:1rem;line-height:1.4;overflow-wrap:anywhere; }
.rights-card>.eyebrow { margin:.75rem 0; }
.rights-thumbnail { width:100%;height:170px;display:block;object-fit:contain;background:#eef2f6;border-radius:8px; }
.rights-credit { overflow-wrap:anywhere; }
.rights-details>summary { cursor:pointer;list-style:none;display:inline-flex; }
.rights-details>summary::-webkit-details-marker { display:none; }
.rights-details[open]>summary { margin-bottom:1rem; }
.rights-card.is-editing { grid-column:1/-1; }
.rights-card.is-editing>.rights-thumbnail { height:220px; }
.rights-details .panel-header { margin-top:.5rem; }
.attachment-thumbnail { width:90px;height:65px;object-fit:contain;border-radius:6px; }
.attachment-row span { min-width:0;overflow-wrap:anywhere; }
.attachment-row small { display:block; }
#pub-library[hidden] { display:none; }
#pub-library h3 { font-size:1rem;overflow-wrap:anywhere; }
@media(max-width:850px) { .library-toolbar { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:480px) { .library-toolbar { grid-template-columns:1fr; } }

.rights-card:not(.is-editing)>h2,.rights-card:not(.is-editing)>.rights-credit { display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden; }
