/* SCiDEV Digital Rights — site styles.
 * Part 1 is the design prototype (digitalrightsplatformscidev.html) CSS, kept 1:1 so markup class names stay the contract.
 * Part 2 adds what WordPress needs: editor content, language switcher, pagination, forms, 404. */

/* ===== Part 1: prototype ===== */
:root {
  --paper: #f5f4f0;
  --white: #fcfbf8;
  --ink: #19234d;
  --body: #272b34;
  --muted: #676a72;
  --rule: #d9d9d2;
  --blue: #6a9fd1;
  --green: #90cfaa;
  --peach: #f6b48c;
  --yellow: #fbeaa0;
  --pink: #ed7db2;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: clamp(20px, 4vw, 64px);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  border: 0;
  background: none;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid #426cb0;
  outline-offset: 4px;
}
button:disabled {
  cursor: default;
}
svg {
  display: block;
}
h1,
h2,
h3,
p {
  margin: 0;
}
[hidden] {
  display: none !important;
}
.skip {
  position: fixed;
  top: -100px;
  left: 20px;
  background: var(--ink);
  color: white;
  z-index: 100;
  padding: 15px;
}
.skip:focus {
  top: 10px;
}
.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;
}
.wrap {
  max-width: 1600px;
  padding: 0 var(--pad);
  margin: auto;
}
.site-header {
  height: 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border-bottom: 1px solid var(--rule);
}
.brand {
  display: flex;
  align-items: center;
  gap: 25px;
  text-decoration: none;
}
.brand img {
  width: 116px;
  height: auto;
  display: block;
}
.brand-title {
  border-left: 1px solid #bfc2ca;
  padding-left: 25px;
}
.brand-title strong {
  display: block;
  font-size: 18px;
  letter-spacing: -0.35px;
  line-height: 1.3;
}
.brand-title span {
  display: block;
  font-size: 12px;
  letter-spacing: 0.9px;
  font-weight: 400;
  margin-top: 5px;
  color: var(--muted);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 30px;
}
.language-note {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.6px;
  white-space: nowrap;
}
.menu-toggle {
  width: 44px;
  height: 44px;
  padding: 7px 0 7px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
}
.menu-toggle span {
  height: 2px;
  width: 32px;
  background: var(--ink);
  display: block;
  transition: width 0.25s;
}
.menu-toggle:hover span:nth-child(2) {
  width: 22px;
}
.top-nav {
  position: relative;
  border-bottom: 1px solid var(--rule);
}
.section-menu {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  padding: 0;
  gap: 9px;
}
.nav-section {
  display: block;
  text-align: left;
  position: relative;
  min-height: 79px;
  padding: 17px 7px 15px 15px;
}
.nav-section:before {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  background: var(--section);
  left: 0;
  top: 22px;
  border-radius: 50%;
}
.nav-section:after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-section[aria-expanded="true"]:after,
.nav-section:hover:after {
  transform: scaleX(1);
}
.nav-section strong {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.05px;
}
.nav-section .en {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.4;
}
.nav-section.journalists {
  padding-left: 15px;
}
.nav-section.journalists strong {
  background: var(--yellow);
  box-shadow:
    5px 0 var(--yellow),
    -5px 0 var(--yellow);
  display: inline;
  line-height: 1.6;
}
.nav-section .caret {
  font-size: 11px;
  margin-left: 3px;
  opacity: 0.6;
}
.submenu {
  position: absolute;
  z-index: 20;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--rule);
  padding: 24px;
  box-shadow: 0 18px 25px #18234d0b;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: stretch;
}
.submenu button {
  padding: 12px 16px;
  text-align: left;
  border: 1px solid var(--rule);
  transition: background 0.2s;
  flex: 1;
  min-width: 170px;
}
.submenu button:hover {
  background: #eaeae4;
}
.submenu button:first-child {
  background: var(--ink);
  color: #fff;
}
.submenu strong {
  font-size: 13px;
  font-weight: 600;
  display: block;
}
.submenu span {
  font-size: 11px;
  display: block;
  color: var(--muted);
  margin-top: 5px;
}
.submenu button:first-child span {
  color: #d3d7e6;
}
.tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  margin: 22px 0 15px;
}
.search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #e9e9e3;
  width: 32%;
  height: 41px;
  padding: 0 13px;
}
.search-wrap svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}
.search-wrap input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: none;
  outline: none;
  font-size: 12px;
  padding: 10px 0;
}
.search-wrap:focus-within {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.index-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  min-height: 20px;
  font-size: 9px;
  line-height: 1.6;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
}
.index-bar .current-view {
  display: flex;
  align-items: center;
  gap: 10px;
}
.index-bar .current-view:before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--ink);
  flex-shrink: 0;
}
.reset-filter {
  font-size: 10px;
  border-bottom: 1px solid var(--rule);
  padding: 2px 0;
  text-transform: none;
  letter-spacing: 0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 20px;
  align-items: stretch;
  position: relative;
}
.card {
  display: block;
  position: relative;
  text-align: left;
  border: 1px solid var(--rule);
  padding: 0;
  min-width: 0;
  background: var(--paper);
  overflow: hidden;
  color: var(--ink);
  transition: border-color 0.25s;
}
.cover {
  height: 133px;
  position: relative;
  overflow: hidden;
  background: #d7d8d2;
}
.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.005);
  transition:
    transform 0.7s var(--ease),
    filter 0.6s;
  filter: saturate(0.6);
}
.content {
  padding: 18px 20px 15px;
  display: flex;
  flex-direction: column;
  min-height: 266px;
}
.category {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 8px;
  line-height: 1.5;
  letter-spacing: 0.85px;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 600;
}
.category:before {
  content: "";
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  background: var(--section);
  border-radius: 50%;
}
.category .en {
  color: #676b77;
  font-size: 8px;
  letter-spacing: 0.25px;
  font-weight: 400;
}
.category-divider {
  color: #a4a8b3;
}
.card h2 {
  font-size: 22px;
  letter-spacing: -0.6px;
  line-height: 1.13;
  font-weight: 700;
  max-width: 99%;
}
.card-title-en {
  display: block;
  font-size: 15px;
  line-height: 1.27;
  font-weight: 400;
  letter-spacing: -0.15px;
  margin-top: 6px;
  color: #525c76;
}
.description {
  font-size: 11.5px;
  line-height: 1.5;
  margin-top: 12px;
  color: #41464f;
  max-width: 97%;
}
.description .en {
  display: block;
  color: #70747b;
  margin-top: 3px;
  font-size: 10.5px;
  line-height: 1.5;
}
.card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 17px;
}
.metadata {
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.6;
}
.open-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
}
.open-label {
  font-size: 8px;
  letter-spacing: 0.7px;
  opacity: 0;
  transform: translateX(-7px);
  transition:
    opacity 0.3s,
    transform 0.4s var(--ease);
}
.arrow {
  width: 26px;
  height: 24px;
  transition: transform 0.4s var(--ease);
  flex-shrink: 0;
}
.card:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--section);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.card:hover,
.card:focus-visible {
  border-color: #8f96a8;
}
.card:hover .cover img,
.card:focus-visible .cover img {
  transform: scale(1.06);
  filter: saturate(1);
}
.card:hover .open-label,
.card:focus-visible .open-label {
  opacity: 1;
  transform: translateX(0);
}
.card:hover .arrow,
.card:focus-visible .arrow {
  transform: translateX(3px);
}
.card:hover:after,
.card:focus-visible:after {
  transform: scaleX(1);
}
.card.journalists {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.card.journalists .cover {
  background: var(--ink);
}
.card.journalists .cover img {
  opacity: 0.78;
  filter: grayscale(1);
}
.card.journalists .cover:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #19234d55, transparent);
}
.card.journalists .category {
  color: var(--yellow);
}
.card.journalists .category .en {
  color: #fbeaa0;
}
.card.journalists .category-divider {
  color: #aba06d;
}
.card.journalists .description {
  color: #edeef4;
}
.card.journalists .description .en {
  color: #b8bfd2;
}
.card.journalists .card-title-en {
  color: #d7dcee;
}
.card.journalists .arrow {
  color: var(--yellow);
}
.card.journalists .metadata {
  color: #d5d9e6;
}
.journal-marker {
  position: absolute;
  bottom: 12px;
  left: 18px;
  z-index: 2;
  background: var(--yellow);
  color: var(--ink);
  padding: 6px 9px;
  letter-spacing: 1px;
  font-size: 8px;
  font-weight: bold;
}
.empty {
  padding: 60px 0;
  font-size: 17px;
  line-height: 1.7;
}
.empty span {
  display: block;
  font-size: 13px;
  color: var(--muted);
}
footer {
  margin-top: 36px;
}
.footer-top {
  border-top: 1px solid var(--rule);
  padding: 17px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 10px;
  color: var(--muted);
}
.footer-top .footer-name {
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}
.motion-toggle {
  font-size: 10px;
  padding: 8px 0;
  white-space: nowrap;
}
.motion-toggle:before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--ink);
}
.motion-toggle[data-motion="off"]:before {
  background: transparent;
  border: 1px solid var(--ink);
}
.funding {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 190px 1fr 1fr;
  gap: 35px;
  padding: 26px 0 27px;
  line-height: 1.7;
  font-size: 12px;
  color: #505562;
}
.funding-name {
  color: var(--ink);
  font-size: 14px;
  letter-spacing: 0.7px;
  font-weight: 600;
}
.funding-kicker {
  font-size: 9px;
  letter-spacing: 1.3px;
  font-weight: 400;
  margin-top: 5px;
  color: var(--muted);
}
.funding p strong {
  color: var(--ink);
  font-weight: 600;
}
.lang-label {
  display: block;
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 6px;
}
.prototype {
  padding: 13px 0 24px;
  font-size: 9px;
  color: #787c84;
  line-height: 1.6;
}
.prototype span + span:before {
  content: " · ";
  padding: 0 5px;
}
.backdrop {
  position: fixed;
  inset: 0;
  background: #111a3b44;
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}
.backdrop.active {
  opacity: 1;
  pointer-events: auto;
}
.drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  width: min(485px, 94vw);
  background: var(--ink);
  color: #fff;
  z-index: 45;
  transform: translateX(103%);
  transition: transform 0.5s var(--ease);
  visibility: hidden;
  padding: 26px 30px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.drawer.active {
  transform: translateX(0);
  visibility: visible;
}
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ffffff30;
  padding-bottom: 20px;
  gap: 15px;
}
.drawer-kicker {
  font-size: 10px;
  letter-spacing: 1.8px;
}
.close-menu {
  width: 44px;
  height: 44px;
  padding: 8px;
  color: #fff;
}
.drawer-home {
  padding: 20px 0;
  font-size: 13px;
  text-align: left;
  border-bottom: 1px solid #ffffff22;
  width: 100%;
  line-height: 1.6;
}
.drawer-home span {
  display: block;
  font-size: 11px;
  color: #b5bdd3;
}
.drawer details {
  border-bottom: 1px solid #ffffff22;
}
.drawer summary {
  cursor: pointer;
  padding: 17px 0;
  list-style: none;
  display: flex;
  gap: 12px;
  align-items: center;
}
.drawer summary::-webkit-details-marker {
  display: none;
}
.drawer summary:before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--section);
  flex-shrink: 0;
}
.drawer summary:after {
  content: "+";
  font-size: 22px;
  margin-left: auto;
  color: #b5bdd3;
}
.drawer details[open] summary:after {
  content: "−";
}
.drawer summary strong {
  font-weight: 500;
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.2px;
}
.drawer summary .en {
  font-size: 12px;
  color: #b9c0d4;
  display: block;
  font-weight: 400;
  letter-spacing: 0;
  margin-top: 4px;
}
.drawer details.journalists summary {
  color: var(--yellow);
}
.drawer details.journalists .en {
  color: var(--yellow);
}
.drawer-subnav {
  padding: 0 0 16px 19px;
  display: grid;
  gap: 5px;
}
.drawer-subnav button {
  text-align: left;
  padding: 8px 10px;
  border-left: 1px solid #ffffff25;
  font-size: 12px;
  line-height: 1.5;
  transition: background 0.2s;
}
.drawer-subnav button:hover {
  background: #ffffff12;
}
.drawer-subnav .en {
  display: block;
  color: #afb8d0;
  font-size: 10px;
}
.drawer-bottom {
  font-size: 10px;
  line-height: 1.8;
  color: #b6bfd5;
  margin-top: 28px;
  border-top: 1px solid #ffffff22;
  padding-top: 20px;
}
.resource-dialog {
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  max-width: 670px;
  width: calc(100% - 36px);
  max-height: 90vh;
  padding: 32px;
  overflow: auto;
}
.resource-dialog::backdrop {
  background: #121a3d80;
}
.dialog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.dialog-top .category {
  margin: 0;
}
.dialog-top button {
  font-size: 26px;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.resource-dialog h2 {
  font-size: 31px;
  line-height: 1.16;
  letter-spacing: -0.7px;
  margin: 25px 0 9px;
}
.dialog-title-en {
  font-size: 22px;
  color: #5c657c;
  line-height: 1.3;
}
.dialog-desc {
  margin-top: 24px;
  font-size: 15px;
  line-height: 1.6;
}
.dialog-desc .en {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}
.prototype-note {
  font-size: 11px;
  line-height: 1.7;
  border-top: 1px solid var(--rule);
  padding-top: 20px;
  margin-top: 28px;
  color: var(--muted);
}
.prototype-note span {
  display: block;
  margin-top: 5px;
}
.reduce-motion *,
.reduce-motion *:before,
.reduce-motion *:after {
  scroll-behavior: auto !important;
  animation: none !important;
  transition: none !important;
}
@media (min-width: 1500px) {
  .cover {
    height: 151px;
  }
  .card h2 {
    font-size: 24px;
  }
  .content {
    min-height: 276px;
  }
  .nav-section strong {
    font-size: 12px;
  }
}
@media (max-width: 1100px) {
  .section-menu {
    grid-template-columns: repeat(6, 190px);
    overflow-x: auto;
    gap: 12px;
    scrollbar-width: thin;
  }
  .nav-section {
    min-height: 75px;
  }
  .category {
    flex-wrap: wrap;
    gap: 4px;
    font-size: 7px;
  }
  .category .en {
    font-size: 7px;
  }
  .content {
    padding: 16px;
    min-height: 286px;
  }
  .card h2 {
    font-size: 21px;
  }
  .card-title-en {
    font-size: 14px;
  }
  .search-wrap {
    width: 35%;
  }
  .funding {
    grid-template-columns: 145px 1fr 1fr;
    gap: 22px;
  }
}
@media (max-width: 760px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
  .site-header {
    height: 94px;
  }
  .brand img {
    width: 88px;
  }
  .brand {
    gap: 15px;
  }
  .brand-title {
    padding-left: 15px;
  }
  .brand-title strong {
    font-size: 15px;
  }
  .brand-title span {
    font-size: 10px;
  }
  .header-actions {
    gap: 15px;
  }
  .language-note {
    font-size: 9px;
  }
  .tools {
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 18px;
  }
  .search-wrap {
    width: 100%;
  }
  .cover {
    height: 130px;
  }
  .content {
    min-height: 286px;
  }
  .funding {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .funding-heading {
    grid-column: 1/-1;
  }
  .funding-kicker {
    display: inline;
    margin-left: 15px;
  }
  .footer-top {
    flex-wrap: wrap;
    gap: 10px;
  }
  .index-bar {
    font-size: 8px;
    letter-spacing: 0.7px;
  }
}
@media (max-width: 500px) {
  .grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .cover {
    height: 157px;
  }
  .content {
    min-height: 252px;
    padding: 19px 20px 16px;
  }
  .card h2 {
    font-size: 24px;
  }
  .card-title-en {
    font-size: 17px;
  }
  .description {
    font-size: 12px;
  }
  .description .en {
    font-size: 11px;
  }
  .category {
    font-size: 8px;
    gap: 6px;
  }
  .category .en {
    font-size: 8px;
  }
  .brand-title strong {
    font-size: 13px;
  }
  .brand-title span {
    font-size: 10px;
  }
  .brand img {
    width: 76px;
  }
  .brand {
    gap: 12px;
  }
  .brand-title {
    padding-left: 12px;
  }
  .header-actions {
    gap: 12px;
  }
  .menu-toggle {
    width: 34px;
    padding-left: 0;
  }
  .language-note {
    display: none;
  }
  .funding {
    grid-template-columns: 1fr;
    font-size: 12px;
  }
  .funding-heading {
    grid-column: auto;
  }
  .funding-kicker {
    display: block;
    margin: 5px 0 0;
  }
  .resource-dialog {
    padding: 23px;
  }
  .resource-dialog h2 {
    font-size: 27px;
  }
  .dialog-title-en {
    font-size: 20px;
  }
  .drawer {
    padding: 20px 24px;
  }
  .submenu {
    padding: 15px;
    gap: 10px;
  }
  .submenu button {
    min-width: 130px;
    padding: 12px;
  }
  .submenu strong {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
/* Revision: Albanian navigation, a bilingual journalists' section, two-level navigation. */
.brand-title span {
  letter-spacing: 0.3px;
  font-size: 11px;
}
.header-actions {
  gap: 16px;
}
.header-context {
  font-size: 10px;
  letter-spacing: 1.2px;
  color: var(--muted);
  text-transform: uppercase;
}
.nav-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 15px 13px 15px 14px;
  min-height: 82px;
}
.nav-section:before {
  top: calc(50% - 3px);
  width: 5px;
  height: 5px;
}
.nav-section strong {
  font-size: 12px;
  line-height: 1.45;
}
.nav-section .en {
  font-size: 10.5px;
  margin-top: 3px;
}
.nav-section .caret {
  display: inline-block;
  transition: transform 0.2s;
}
.nav-section[aria-expanded="true"] .caret {
  transform: rotate(180deg);
}
.nav-section[aria-current] {
  background: #19234d05;
}
.nav-section[aria-current]:after {
  transform: scaleX(1);
}
.nav-section.journalists strong {
  display: inline;
  align-self: flex-start;
  font-size: 12px;
}
.submenu {
  padding: 27px 29px;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 36px;
  border-top: 2px solid var(--ink);
  box-shadow: 0 20px 28px #19234d10;
}
.submenu-intro {
  border-right: 1px solid var(--rule);
  padding-right: 26px;
}
.submenu-kicker,
.submenu-heading {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  color: var(--muted);
  margin-bottom: 12px;
}
.submenu h2 {
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -0.4px;
}
.submenu h2 .en {
  font-size: 15px;
  line-height: 1.5;
  margin-top: 4px;
  font-weight: 400;
  color: #636b7b;
}
.submenu-intro p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.65;
  margin: 12px 0 20px;
}
.submenu button {
  flex: none;
  min-width: 0;
  border: 0;
  box-shadow: none;
  display: flex;
  background: transparent !important;
  color: var(--ink) !important;
}
.submenu .all-resources {
  padding: 10px 0;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--rule);
  width: 100%;
  align-items: center;
  text-align: left;
  font-size: 12px;
  line-height: 1.4;
}
.submenu .all-resources > span {
  font-size: 12px;
  color: var(--ink) !important;
  margin: 0;
}
.submenu .all-resources .en {
  font-size: 10px;
  margin-top: 4px;
  color: var(--muted) !important;
}
.submenu .all-resources .arrow {
  width: 23px;
}
.topic-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 25px;
}
.submenu .topic-item {
  width: 100%;
  border-bottom: 1px solid var(--rule);
  padding: 12px 0;
  min-height: 56px;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  transition:
    padding 0.2s,
    color 0.2s;
}
.submenu .topic-item:hover {
  padding-left: 6px;
}
.topic-item strong {
  font-size: 12px;
  line-height: 1.45;
  font-weight: 500;
}
.topic-item .en {
  font-size: 10px;
  color: var(--muted) !important;
  margin-top: 4px;
}
.topic-count {
  font-size: 10px !important;
  font-variant-numeric: tabular-nums;
  color: var(--muted) !important;
  letter-spacing: 1px;
  flex-shrink: 0;
  margin: 0 !important;
}
.topic-item[aria-current="true"] {
  font-weight: 600;
  border-bottom-color: var(--ink);
}
.tools {
  margin-top: 24px;
}
.search-wrap {
  height: 42px;
}
.search-wrap input {
  font-size: 12px;
}
.index-bar {
  font-size: 9px;
  letter-spacing: 0.8px;
  margin-top: 19px;
  margin-bottom: 18px;
}
.index-bar .current-view {
  flex-wrap: wrap;
}
.breadcrumb-separator {
  color: #989ca9;
  margin: 0 7px;
}
.active-path {
  color: var(--ink);
}
.topic-context {
  margin: -3px 0 22px;
  border-bottom: 1px solid var(--rule);
}
.context-heading {
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 7px;
}
.topic-tabs {
  display: flex;
  align-items: stretch;
  gap: 0 22px;
  flex-wrap: wrap;
}
.topic-tab {
  padding: 10px 0 12px;
  border-bottom: 2px solid transparent;
  text-align: left;
  font-size: 11px;
  line-height: 1.4;
  white-space: normal;
}
.topic-tab .en {
  display: block;
  font-size: 9px;
  margin-top: 3px;
  color: var(--muted);
}
.topic-tab[aria-pressed="true"] {
  border-bottom-color: var(--ink);
  font-weight: bold;
}
.topic-tab:hover {
  color: #3c5c99;
}
.cover {
  height: 148px;
}
.content {
  min-height: 255px;
  padding: 20px 21px 17px;
}
.card h2 {
  font-size: 24px;
  line-height: 1.13;
  letter-spacing: -0.6px;
}
.category {
  font-size: 8.5px;
  letter-spacing: 0.75px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 5px 7px;
}
.category .en {
  font-size: 8px;
  letter-spacing: 0.2px;
}
.card-title-en {
  font-size: 16px;
  line-height: 1.3;
  margin-top: 8px;
}
.description {
  font-size: 12px;
  line-height: 1.6;
  margin-top: 14px;
}
.description .en {
  font-size: 11px;
  line-height: 1.6;
  margin-top: 7px;
}
.card-footer {
  padding-top: 23px;
}
.metadata {
  font-size: 9px;
  letter-spacing: 0.85px;
}
.language-tag {
  display: inline-block;
  font-size: 8px;
  border: 1px solid #d8dcd9;
  padding: 2px 5px;
  margin-left: 8px;
  letter-spacing: 0.4px;
  white-space: nowrap;
}
.journalists .language-tag {
  border-color: #ffffff3d;
  color: var(--yellow);
}
.journalists .category {
  line-height: 1.6;
}
.journalists .card-title-en {
  color: #e0e5f3;
}
.journalists .description .en {
  color: #ccd3e5;
}
.journal-marker {
  font-size: 9px;
}
.card .cover img {
  object-position: center;
}
.open-label {
  font-size: 9px;
}
.empty {
  font-size: 17px;
}
.empty small {
  font-size: 12px;
  display: block;
  color: var(--muted);
  margin-top: 7px;
}
.footer-name span {
  font-size: 11px;
}
.funding {
  grid-template-columns: 170px 1fr 1fr;
  font-size: 11px;
  gap: 28px;
}
.prototype span + span:before {
  content: none;
}
.prototype {
  font-size: 10px;
}
.drawer-kicker {
  font-size: 11px;
}
.drawer summary strong {
  font-size: 18px;
}
.drawer-subnav {
  gap: 1px;
}
.drawer-subnav button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 10px;
  min-height: 42px;
}
.drawer-subnav button .topic-count {
  color: #b9c2d9 !important;
  font-size: 10px !important;
}
.drawer-subnav button[aria-current="true"] {
  border-left: 2px solid var(--yellow);
  background: #ffffff0d;
}
.drawer-topic-heading {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #a9b5d0;
  padding: 7px 10px 10px;
}
.drawer-home {
  font-size: 13px;
}
.drawer-bottom {
  font-size: 11px;
}
.drawer .en {
  font-size: 11px;
}
.drawer details summary:focus-visible {
  outline-color: var(--yellow);
}
.resource-dialog {
  max-width: 780px;
  padding: 30px 34px;
}
.dialog-title-en {
  font-size: 22px;
}
.dialog-copy {
  margin-top: 25px;
  display: grid;
  gap: 24px;
}
.dialog-copy.bilingual {
  grid-template-columns: 1fr 1fr;
}
.dialog-copy.bilingual > div + div {
  border-left: 1px solid var(--rule);
  padding-left: 24px;
}
.copy-label {
  font-size: 9px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--muted);
}
.dialog-copy p {
  font-size: 14px;
  line-height: 1.75;
  color: #454d5e;
}
.dialog-topics {
  margin-top: 25px;
  border-top: 1px solid var(--rule);
  padding-top: 20px;
}
.dialog-topics h3 {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 10px;
}
.dialog-topics-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.dialog-topics-list button {
  border: 1px solid var(--rule);
  padding: 8px 11px;
  font-size: 11px;
}
.dialog-topics-list .en {
  display: block;
  font-size: 10px;
  margin-top: 4px;
  color: var(--muted);
}
.dialog-topics-list button:hover {
  border-color: var(--ink);
}
.prototype-note {
  font-size: 11px;
}
.noscript-note {
  padding: 20px;
  background: #fbeaa0;
  color: var(--ink);
  font-size: 14px;
}
@media (min-width: 1500px) {
  .cover {
    height: 155px;
  }
  .content {
    min-height: 263px;
  }
  .card h2 {
    font-size: 25px;
  }
  .nav-section strong,
  .nav-section.journalists strong {
    font-size: 13px;
  }
  .nav-section .en {
    font-size: 11px;
  }
}
@media (max-width: 1100px) {
  .section-menu {
    grid-template-columns: repeat(6, 190px);
  }
  .card h2 {
    font-size: 21px;
  }
  .content {
    padding: 17px;
    min-height: 283px;
  }
  .description {
    font-size: 11.5px;
  }
  .category {
    font-size: 8px;
  }
  .category .en {
    font-size: 7.5px;
  }
  .cover {
    height: 140px;
  }
  .submenu {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 26px;
  }
  .topic-list {
    gap: 0 18px;
  }
  .submenu h2 {
    font-size: 20px;
  }
  .header-context {
    font-size: 9px;
  }
}
@media (max-width: 760px) {
  .header-context {
    display: none;
  }
  .brand-title span {
    font-size: 9px;
  }
  .submenu {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 22px;
    max-height: 70vh;
    max-height: 70dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .submenu-intro {
    border-right: 0;
    padding: 0;
    border-bottom: 1px solid var(--rule);
  }
  .submenu-intro p {
    margin: 9px 0 12px;
  }
  .submenu .all-resources {
    border-top: 0;
    padding-bottom: 16px;
  }
  .submenu-kicker {
    display: none;
  }
  .topic-list {
    gap: 0 20px;
  }
  .submenu h2 {
    font-size: 20px;
  }
  .submenu-heading {
    margin-bottom: 5px;
  }
  .topic-item strong {
    font-size: 12px;
  }
  .content {
    min-height: 273px;
  }
  .funding {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }
  .funding-heading {
    grid-column: 1/-1;
  }
  .index-bar {
    margin-top: 17px;
    align-items: flex-start;
  }
  .index-bar .current-view {
    max-width: 80%;
  }
  .topic-tabs {
    gap: 0 18px;
  }
  .topic-tab {
    font-size: 10px;
  }
  .dialog-copy.bilingual {
    grid-template-columns: 1fr;
  }
  .dialog-copy.bilingual > div + div {
    border-left: 0;
    border-top: 1px solid var(--rule);
    padding-left: 0;
    padding-top: 18px;
  }
}
@media (max-width: 500px) {
  .brand img {
    width: 81px;
  }
  .brand-title strong {
    font-size: 14px;
  }
  .brand-title span {
    font-size: 9px;
    letter-spacing: 0;
  }
  .site-header {
    height: 92px;
  }
  .nav-section {
    min-height: 77px;
  }
  .nav-section strong {
    font-size: 12px;
  }
  .section-menu {
    grid-template-columns: repeat(6, 190px);
    gap: 8px;
  }
  .tools {
    margin-top: 20px;
  }
  .index-bar {
    font-size: 8px;
    line-height: 1.7;
    gap: 10px;
  }
  .index-bar .current-view {
    gap: 6px;
  }
  .cover {
    height: 162px;
  }
  .content {
    padding: 21px;
    min-height: 232px;
  }
  .card h2 {
    font-size: 25px;
  }
  .card-title-en {
    font-size: 17px;
  }
  .description {
    font-size: 12px;
  }
  .description .en {
    font-size: 11.5px;
  }
  .card-footer {
    padding-top: 23px;
  }
  .category {
    font-size: 8px;
    letter-spacing: 0.55px;
  }
  .category .en {
    font-size: 7.5px;
  }
  .journalists .content {
    min-height: 277px;
  }
  .topic-list {
    grid-template-columns: 1fr;
  }
  .submenu {
    padding: 21px;
    max-height: 66dvh;
  }
  .submenu .topic-item {
    min-height: 48px;
    padding: 10px 0;
  }
  .submenu .all-resources {
    padding-bottom: 13px;
  }
  .submenu-intro p {
    font-size: 11px;
    margin: 8px 0;
  }
  .submenu h2 {
    font-size: 18px;
  }
  .submenu h2 .en {
    font-size: 13px;
  }
  .topic-context {
    margin-bottom: 19px;
  }
  .topic-tabs {
    overflow: auto;
    flex-wrap: nowrap;
    gap: 18px;
  }
  .topic-tab {
    white-space: nowrap;
    flex-shrink: 0;
    max-width: none;
  }
  .funding {
    grid-template-columns: 1fr;
    font-size: 12px;
  }
  .funding-heading {
    grid-column: auto;
  }
  .drawer {
    padding: 22px;
  }
  .drawer summary strong {
    font-size: 17px;
  }
  .resource-dialog {
    padding: 22px;
  }
  .resource-dialog h2 {
    font-size: 27px;
  }
  .dialog-title-en {
    font-size: 20px;
  }
  .footer-top {
    font-size: 11px;
  }
  .prototype {
    font-size: 9px;
  }
}
/* Override inherited colours from the original first-item treatment. */
.submenu .topic-item > span:first-child {
  color: var(--ink) !important;
  margin: 0;
}
.submenu .topic-item strong {
  color: var(--ink);
}
.submenu .topic-item .en {
  color: var(--muted) !important;
}

/* Consolidated navigation and proper page views. */
.brand-title strong {
  max-width: 560px;
  font-size: 18px;
}
.brand-title span {
  font-size: 12px;
  letter-spacing: 0.3px;
}
.nav-home {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav-home strong {
  font-size: 12px;
}
.nav-section[aria-current="page"]:after,
.nav-group:has(.nav-section[aria-current="page"]):after {
  transform: scaleX(1);
}
.route-heading {
  padding: 26px 0 22px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 20px;
}
.route-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 20px;
}
.route-breadcrumb a {
  text-decoration: none;
  border-bottom: 1px solid #c8ccd1;
}
.route-breadcrumb a:hover {
  color: var(--ink);
  border-color: var(--ink);
}
.route-heading h1 {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.16;
  letter-spacing: -0.8px;
  max-width: 960px;
}
.route-heading h1 .en {
  display: block;
  font-size: 0.62em;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
  margin-top: 10px;
}
.route-heading p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 14px;
  max-width: 780px;
}
.topic-tab,
.topic-item,
.all-resources,
.drawer-subnav a {
  text-decoration: none;
  cursor: pointer;
}
.submenu a.topic-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  gap: 18px;
  border-bottom: 1px solid var(--rule);
  min-width: 0;
}
.submenu a.topic-item:hover {
  border-bottom-color: var(--ink);
}
.submenu a.topic-item > span:first-child {
  color: var(--ink);
}
.submenu a.all-resources {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--rule);
  padding: 16px 0;
  font-size: 12px;
  gap: 14px;
}
.drawer-subnav a {
  padding: 10px 10px;
  font-size: 12px;
  border-left: 1px solid #ffffff30;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.drawer-subnav a:hover,
.drawer-subnav a[aria-current="page"] {
  background: #ffffff12;
}
.drawer-subnav a .en {
  display: block;
  color: #c0c8df;
  font-size: 10px;
  margin-top: 4px;
}
.topic-tab {
  padding: 12px 0;
  display: block;
  border-bottom: 2px solid transparent;
  line-height: 1.6;
}
.topic-tab[aria-current="page"] {
  border-bottom-color: var(--ink);
  color: var(--ink);
}
.topic-tab .en {
  display: block;
  font-size: 10px;
  color: var(--muted);
}
.article-page {
  max-width: 980px;
  margin: 32px auto 60px;
}
.article-header {
  max-width: 850px;
}
.article-header .category {
  font-size: 10px;
}
.article-header h1 {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -1px;
  margin: 22px 0 12px;
}
.article-title-en {
  font-size: clamp(20px, 2.7vw, 30px);
  line-height: 1.25;
  color: #56617a;
  font-weight: 400;
  margin-bottom: 15px;
}
.article-header .metadata {
  margin: 22px 0;
  color: var(--muted);
  font-size: 10px;
}
.article-image {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  border: 1px solid var(--rule);
  margin: 25px 0;
}
.article-copy {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--body);
}
.article-copy.bilingual {
  grid-template-columns: 1fr 1fr;
}
.article-copy.bilingual > div + div {
  border-left: 1px solid var(--rule);
  padding-left: 30px;
}
.article-topics {
  margin-top: 36px;
  border-top: 1px solid var(--rule);
  padding-top: 22px;
}
.article-topics h2 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}
.article-topics nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.article-topics a {
  padding: 12px 14px;
  border: 1px solid var(--rule);
  text-decoration: none;
  font-size: 12px;
  line-height: 1.5;
}
.article-topics a:hover {
  border-color: var(--ink);
}
.article-topics a .en {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}
@media (max-width: 760px) {
  .brand-title strong {
    font-size: 15px;
    max-width: 380px;
  }
  .brand-title span {
    font-size: 11px;
  }
  .route-heading {
    padding-top: 22px;
  }
  .article-copy.bilingual {
    grid-template-columns: 1fr;
  }
  .article-copy.bilingual > div + div {
    border-left: 0;
    border-top: 1px solid var(--rule);
    padding: 24px 0 0;
  }
  .article-image {
    height: 210px;
  }
  .route-breadcrumb {
    font-size: 10px;
  }
}
@media (max-width: 500px) {
  .brand {
    gap: 10px;
  }
  .brand img {
    width: 64px;
  }
  .brand-title {
    padding-left: 10px;
  }
  .brand-title strong {
    font-size: 12px;
    line-height: 1.3;
    max-width: 205px;
  }
  .brand-title span {
    font-size: 10px;
  }
  .header-actions {
    gap: 5px;
  }
  .site-header {
    gap: 8px;
  }
  .article-page {
    margin-top: 24px;
  }
  .article-image {
    height: 178px;
  }
  .article-copy {
    font-size: 14px;
  }
}

/* Participation, civic actors and Albanian-first navigation. */

.section-menu {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 25px;
  padding: 9px 0 22px;
}
.footer-links a {
  font-size: 12px;
  line-height: 1.6;
  padding: 10px 0;
  text-underline-offset: 4px;
}

.route-heading .en,
.submenu-intro p .en {
  display: block;
  color: var(--muted);
  margin-top: 8px;
}
.route-breadcrumb .en {
  display: block;
}
.context-heading .en {
  display: inline;
  margin-left: 12px;
  letter-spacing: 0.3px;
}
.empty .en {
  display: block;
  font-size: 13px;
  margin-top: 8px;
  color: var(--muted);
}
.index-bar #resultCount .en {
  display: block;
}
.article-copy p + p {
  margin-top: 15px;
}
.article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.article-actions a {
  padding: 13px 16px;
  border: 1px solid var(--rule);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.6;
}
.article-actions a:hover {
  border-color: var(--ink);
}
.article-topics h2 .en {
  display: block;
  font-size: 10px;
  font-weight: 400;
  margin-top: 7px;
}
.info-page {
  max-width: 850px;
  margin: 35px auto 60px;
}
.info-page h1 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.8px;
  margin-bottom: 26px;
}
.info-copy {
  font-size: 16px;
  line-height: 1.8;
  color: var(--body);
}
.info-copy p + p {
  margin-top: 18px;
}
.info-copy ul,
.info-copy ol {
  padding-left: 24px;
  margin: 18px 0;
}
.info-copy li + li {
  margin-top: 9px;
}
.draft-note {
  border-left: 3px solid var(--peach);
  padding: 14px 18px;
  background: #f6ece4;
  font-size: 13px;
  line-height: 1.7;
  margin: 24px 0;
}
.quiz-panel {
  border-top: 1px solid var(--rule);
  margin-top: 28px;
  padding-top: 22px;
}
.quiz-panel h2 {
  font-size: 24px;
  line-height: 1.3;
  margin-bottom: 12px;
}
.quiz-panel > p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}
.quiz-panel fieldset {
  border: 1px solid var(--rule);
  margin: 22px 0;
  padding: 18px;
}
.quiz-panel legend {
  font-size: 15px;
  font-weight: 600;
  padding: 0 6px;
  line-height: 1.6;
}
.quiz-option {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 8px;
  font-size: 14px;
  line-height: 1.55;
  cursor: pointer;
}
.quiz-option:hover {
  background: #e9e9e3;
}
.quiz-option input {
  margin-top: 4px;
  accent-color: var(--ink);
}
.quiz-submit,
.quiz-reset {
  background: var(--ink);
  color: white;
  padding: 14px 20px;
  font-size: 14px;
  line-height: 1.5;
}
.quiz-reset {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  margin-left: 10px;
}
.quiz-result {
  margin-top: 22px;
  font-size: 16px;
  line-height: 1.7;
}
.quiz-feedback {
  margin-top: 14px;
  padding: 15px;
  background: #e5eee6;
  font-size: 14px;
  line-height: 1.7;
}
.nav-section strong {
  overflow-wrap: break-word;
}
.drawer .topic-count {
  color: #c0c8df !important;
}
.menu-toggle {
  min-width: 44px;
  min-height: 44px;
}
@media (max-width: 1100px) and (min-width: 761px) {
  .section-menu {
    grid-template-columns: repeat(6, 175px);
  }
}
@media (max-width: 760px) {
  .info-copy {
    font-size: 15px;
  }
}
@media (max-width: 500px) {
  .footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 18px;
  }
  .footer-links a {
    font-size: 11px;
  }
  .index-bar {
    letter-spacing: 0.2px;
  }
  .quiz-reset {
    margin: 12px 0 0;
  }
  .quiz-panel fieldset {
    padding: 14px 10px;
  }
}

/* Journalists’ Corner without yellow highlighting. */
.nav-section.journalists strong {
  background: transparent;
  box-shadow: none;
}
.card.journalists .category,
.card.journalists .category .en,
.card.journalists .arrow {
  color: #fff;
}
.card.journalists .category-divider {
  color: #bfc2ca;
}
.journal-marker {
  background: transparent;
  color: #fff;
  border: 1px solid #ffffff70;
}
.drawer details.journalists summary,
.drawer details.journalists .en {
  color: #fff;
}

/* ===== Part 2: WordPress additions ===== */

/* Layout shell: theme.json sets the global block gap to 0, so template-level blocks keep the
   prototype's own margins. Editor content gets its spacing from the rules below. */
#content:focus { outline: none; }
/* Focus indicators need 3:1 against their background (WCAG 1.4.11): the prototype's light blue search ring
   is 2.6:1 on paper, and the default #426cb0 ring is 2.4:1 on the navy drawer. */
.search-wrap:focus-within { outline-color: #426cb0; }
.drawer :focus-visible { outline-color: var(--yellow); }
/* The motion toggle (body.reduce-motion) should also stop smooth scrolling, like prefers-reduced-motion does. */
html:has(body.reduce-motion) { scroll-behavior: auto; }
/* Long words / URLs (Albanian compounds, pasted links) must wrap instead of widening the page at 320–390px. */
h1, h2, h3, h4, p, li, dd, blockquote, figcaption, .card .content, .route-heading, .article-header, .breadcrumb, .route-breadcrumb { overflow-wrap: break-word; }
.article-copy, .info-copy, .card h2, .article-header h1, .route-heading h1, .info-page h1, .not-found h1 { overflow-wrap: anywhere; }
.article-copy td, .article-copy th, .info-copy td, .info-copy th { overflow-wrap: break-word; } /* `anywhere` would split short words in narrow columns */
.article-copy .wp-block-table, .info-copy .wp-block-table { overflow-x: auto; }
.article-copy > *, .article-page > *, .info-page > * { min-width: 0; }
/* Skip link: also clipped while unfocused. `top:-100px` alone leaks into view in full-page captures
   (fixed elements are laid out relative to the scroll offset) and at some zoom levels. */
.skip:not(:focus) { clip-path: inset(50%); }
.skip:focus { outline: 2px solid var(--ink); outline-offset: 2px; }
/* Core's `:root :where(.is-layout-flow) > :first-child / :last-child` (0,2,0) zeroes the prototype page margins. */
#content > .article-page { margin: 32px auto 60px; }
#content > .info-page { margin: 35px auto 60px; }
@media (max-width: 500px) { #content > .article-page { margin-top: 24px; } }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { clip: auto; width: auto; height: auto; }
img { max-width: 100%; height: auto; }
.card .cover img, .article-image { height: 100%; }
.article-image { height: 260px; }

/* Language switcher (header) */
.language-switcher { display: flex; align-items: center; gap: 2px; font-size: 10px; font-weight: 600; letter-spacing: 1.6px; white-space: nowrap; }
.language-switcher a { text-decoration: none; padding: 12px 7px; min-height: 44px; display: inline-flex; align-items: center; color: var(--muted); border-bottom: 2px solid transparent; }
.language-switcher a:hover { color: var(--ink); }
.language-switcher a[aria-current="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.language-switcher a + a:before { content: ""; }
.drawer .language-switcher a { color: #b5bdd3; }
.drawer .language-switcher a[aria-current="true"] { color: #fff; border-bottom-color: #fff; }

/* Rich content written by editors (materials and pages) */
.article-copy > div > * + *,
.article-copy > * + *:not(div),
.info-copy.info-copy > * + * { margin-top: 18px; }
.info-copy.info-copy > * { margin-bottom: 0; }
.article-copy h2, .info-copy h2 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.25; letter-spacing: -0.4px; margin-top: 36px; color: var(--ink); }
.article-copy h3, .info-copy h3 { font-size: 19px; line-height: 1.35; margin-top: 28px; color: var(--ink); }
.article-copy h4, .info-copy h4 { font-size: 16px; line-height: 1.4; margin-top: 24px; color: var(--ink); }
.article-copy h2 + *, .article-copy h3 + *, .info-copy h2 + *, .info-copy h3 + * { margin-top: 10px; }
.article-copy ul, .article-copy ol { padding-left: 24px; }
.article-copy li + li { margin-top: 8px; }
.article-copy a, .info-copy a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.article-copy a:hover, .info-copy a:hover { color: #3c5c99; }
.article-copy strong, .info-copy strong { color: var(--ink); }
.article-copy blockquote, .info-copy blockquote { margin: 28px 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--ink); font-size: 1.08em; color: var(--ink); }
.article-copy blockquote cite, .info-copy blockquote cite { display: block; margin-top: 10px; font-size: 12px; font-style: normal; letter-spacing: 0.6px; text-transform: uppercase; color: var(--muted); }
.wp-block-pullquote { border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); padding: 26px 0; margin: 32px 0; text-align: left; }
.wp-block-pullquote blockquote { border: 0; padding: 0; margin: 0; font-size: clamp(20px, 2.4vw, 26px); line-height: 1.35; }
.article-copy figure, .info-copy figure { margin: 26px 0; }
.article-copy figcaption, .info-copy figcaption, .wp-element-caption { font-size: 12px; line-height: 1.6; color: var(--muted); margin-top: 8px; }
.article-copy .wp-block-image img, .info-copy .wp-block-image img { border: 1px solid var(--rule); }
.article-copy table, .info-copy table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.6; }
.article-copy th, .article-copy td, .info-copy th, .info-copy td { border-bottom: 1px solid var(--rule); padding: 10px 12px 10px 0; text-align: left; vertical-align: top; }
.article-copy th, .info-copy th { font-size: 11px; letter-spacing: 0.8px; text-transform: uppercase; color: var(--muted); border-bottom-color: var(--ink); }
.wp-block-separator { border: 0; border-top: 1px solid var(--rule); margin: 32px 0; }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.wp-block-button__link { display: inline-block; text-decoration: none; background: var(--ink); color: #fff; padding: 14px 20px; font-size: 14px; line-height: 1.5; border-radius: 0; }
.wp-block-button__link:hover { background: #2a3870; color: #fff; }
/* `.article-copy a` (0,1,1) would otherwise paint the filled button's label ink-on-ink. */
.article-copy .wp-block-button__link, .info-copy .wp-block-button__link, .article-copy .wp-block-button__link:hover, .info-copy .wp-block-button__link:hover { color: #fff; text-decoration: none; }
.article-copy .is-style-outline .wp-block-button__link, .info-copy .is-style-outline .wp-block-button__link { color: var(--ink); }
.article-copy .is-style-outline .wp-block-button__link:hover, .info-copy .is-style-outline .wp-block-button__link:hover { color: #fff; }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--ink); color: #fff; }
.wp-block-file { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--rule); font-size: 14px; }
.wp-block-file a:not(.wp-block-file__button) { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.wp-block-file__button { background: var(--ink); color: #fff !important; text-decoration: none; padding: 8px 14px; font-size: 12px; letter-spacing: 0.6px; }
.wp-block-details { border: 1px solid var(--rule); padding: 0 16px; }
.wp-block-details summary { cursor: pointer; padding: 14px 0; font-weight: 600; }
.wp-block-details[open] { padding-bottom: 16px; }
.wp-block-embed iframe, .wp-block-video video { width: 100%; }
.wp-block-embed.is-type-video .wp-block-embed__wrapper { position: relative; aspect-ratio: 16 / 9; }
.wp-block-embed.is-type-video iframe { position: absolute; inset: 0; height: 100%; }
.wp-block-columns { display: flex; flex-wrap: wrap; gap: 28px; }
.wp-block-column { flex: 1 1 0; min-width: 0; }
@media (max-width: 760px) { .wp-block-columns { flex-direction: column; } }
.wp-block-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.has-text-align-center { text-align: center; }
.has-text-align-right { text-align: right; }

/* Block styles registered by the platform */
.is-style-note { border-left: 3px solid var(--peach); padding: 14px 18px; background: #f6ece4; font-size: 14px; line-height: 1.7; }
.is-style-card { border: 1px solid var(--rule); background: var(--white); padding: 22px 24px; }
.is-style-card > * + * { margin-top: 12px; }

/* Palette helpers used by the editor */
.has-ink-color { color: var(--ink) !important; } .has-muted-color { color: var(--muted) !important; }
.has-paper-background-color { background-color: var(--paper) !important; }
.has-white-background-color { background-color: var(--white) !important; }
.has-yellow-background-color { background-color: var(--yellow) !important; }
.has-peach-background-color { background-color: #f6ece4 !important; }
.has-green-background-color { background-color: #e5eee6 !important; }
.has-blue-background-color { background-color: #e3ecf6 !important; }
.has-pink-background-color { background-color: #f8e3ed !important; }
.has-ink-background-color { background-color: var(--ink) !important; color: #fff; }
.has-background:not(.wp-block-button__link) { padding: 20px 24px; }

/* Pagination under material grids */
.scidev-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 30px 0 10px; font-size: 12px; }
.scidev-pagination a, .scidev-pagination span { min-width: 40px; min-height: 40px; padding: 10px 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--rule); text-decoration: none; }
.scidev-pagination a:hover { border-color: var(--ink); }
.scidev-pagination [aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Blog metadata */
.article-meta { font-size: 11px; letter-spacing: 0.6px; color: var(--muted); margin-top: -10px; }

/* Contact form */
.scidev-contact-form { display: grid; gap: 18px; margin-top: 28px; max-width: 640px; }
.scidev-contact-form label { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.4px; margin-bottom: 6px; color: var(--ink); }
.scidev-contact-form input[type="text"], .scidev-contact-form input[type="email"], .scidev-contact-form textarea { width: 100%; border: 1px solid #c9cac3; background: var(--white); padding: 12px 13px; font-size: 15px; line-height: 1.5; border-radius: 0; }
.scidev-contact-form textarea { min-height: 170px; resize: vertical; }
.scidev-contact-form input:focus-visible, .scidev-contact-form textarea:focus-visible { outline: 2px solid #426cb0; outline-offset: 2px; }
.scidev-contact-form .consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.6; font-weight: 400; }
.scidev-contact-form .consent input { margin-top: 2px; accent-color: var(--ink); width: 20px; height: 20px; flex: 0 0 auto; }
.scidev-contact-form button[type="submit"] { justify-self: start; background: var(--ink); color: #fff; padding: 14px 22px; font-size: 14px; }
.scidev-contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-notice { padding: 14px 18px; font-size: 14px; line-height: 1.6; border-left: 3px solid var(--green); background: #e5eee6; }
.form-notice.is-error { border-left-color: var(--pink); background: #f8e3ed; }
.field-error { color: #a3264f; font-size: 12px; margin-top: 6px; }

/* 404 */
.not-found h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.2; letter-spacing: -0.8px; margin-bottom: 18px; }
.not-found p { font-size: 16px; line-height: 1.8; color: var(--body); }
.not-found a.button-link { display: inline-block; margin-top: 24px; padding: 13px 16px; border: 1px solid var(--ink); text-decoration: none; font-size: 13px; }

@media (max-width: 760px) {
	.article-image { height: 210px; }
}
@media (max-width: 500px) {
	.article-image { height: 178px; }
	.language-switcher a { padding: 12px 5px; }
}
/* The prototype's late unconditional `.section-menu` column rule squeezed six sections into a phone screen.
   On narrow screens the section menu scrolls horizontally instead (the prototype's own intended media rules). */
@media (max-width: 760px) {
	.section-menu { grid-template-columns: repeat(6, 190px); overflow-x: auto; scrollbar-width: thin; }
}
@media (max-width: 500px) {
	.section-menu { grid-template-columns: repeat(6, 170px); gap: 8px; }
}
@media print {
	.top-nav, .drawer, .backdrop, .menu-toggle, .language-switcher, .tools, .motion-toggle, .skip { display: none !important; }
	body { background: #fff; }
}
