/* ==========================================================================
   Fund & Partner checkout, social links, News / Adverts pages
   Loaded after styles.css. Uses the site's colour and type tokens (light and
   dark themes); the values after each comma are fallbacks.
   ========================================================================== */
/* --------------------------------------------------------------------------
   Navigation: "Fund us" call to action
   -------------------------------------------------------------------------- */
.nav-menu a.nav-fund {
  background: linear-gradient(135deg, var(--gold, #f59e0b), #f97316);
  color: #1c1003 !important;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.28);
}

.nav-menu a.nav-fund:hover,
.nav-menu a.nav-fund:focus-visible {
  color: #1c1003 !important;
  filter: brightness(1.06);
}

/* --------------------------------------------------------------------------
   Fund & Partner checkout
   -------------------------------------------------------------------------- */
.fund-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.fund-form {
  display: grid;
  gap: 18px;
}

.fund-step {
  margin: 0;
  padding: 24px;
  border: 1px solid var(--line, #d7e8ef);
  border-radius: 22px;
  background: var(--surface, #ffffff);
  box-shadow: var(--shadow-sm, 0 12px 32px rgba(7, 40, 68, 0.06));
  min-width: 0;
}

.fund-step legend {
  float: left;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  padding: 0;
  font-size: var(--fs-h4, 1.125rem);
  font-weight: 800;
  color: var(--ink, #082033);
}

.fund-step legend + * {
  clear: both;
}

.step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-fill, #0878be);
  color: #ffffff;
  font-size: var(--fs-small, 0.875rem);
  font-weight: 800;
}

.fund-step-note {
  clear: both;
  margin: -6px 0 14px;
  color: var(--muted, #557083);
  font-size: var(--fs-small, 0.875rem);
}

/* Choice cards (what to fund, how to pay) share one look */
.fund-options,
.pay-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pay-methods {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fund-option-wide {
  grid-column: 1 / -1;
}

.fund-option,
.pay-method {
  position: relative;
  display: block;
  cursor: pointer;
}

.fund-option input,
.pay-method input,
.amount-chip input,
.segmented input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.fund-option-body,
.pay-method-body {
  height: 100%;
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 16px;
  border: 1.5px solid var(--line, #d7e8ef);
  border-radius: 16px;
  background: var(--surface, #ffffff);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.fund-option:hover .fund-option-body,
.pay-method:hover .pay-method-body {
  border-color: var(--blue, #0878be);
  transform: translateY(-2px);
}

.fund-option.is-selected .fund-option-body,
.pay-method.is-selected .pay-method-body,
.fund-option input:checked + .fund-option-body,
.pay-method input:checked + .pay-method-body {
  border-color: var(--blue, #0878be);
  background: var(--blue-soft, #eaf8ff);
  box-shadow: 0 0 0 3px var(--focus, rgba(8, 120, 190, 0.25));
}

.fund-option input:focus-visible + .fund-option-body,
.pay-method input:focus-visible + .pay-method-body,
.amount-chip input:focus-visible + span,
.segmented input:focus-visible + span {
  outline: 3px solid var(--focus, rgba(8, 120, 190, 0.55));
  outline-offset: 2px;
}

.fund-option-body strong,
.pay-method-body strong {
  color: var(--ink, #082033);
  font-size: var(--fs-ui, 1rem);
  line-height: 1.3;
}

.fund-option-body small,
.pay-method-body small {
  color: var(--muted, #557083);
  font-size: var(--fs-small, 0.875rem);
  line-height: 1.45;
}

.fund-option-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--blue-soft, #eaf8ff);
  color: var(--blue, #0878be);
  margin-bottom: 4px;
}

.fund-option.is-selected .fund-option-icon,
.fund-option input:checked + .fund-option-body .fund-option-icon {
  background: var(--brand-fill, #0878be);
  color: #ffffff;
}

.fund-option-icon svg {
  width: 22px;
  height: 22px;
}

.soon-tag {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--pill-soon-bg, #fff7e6);
  color: var(--pill-soon-fg, #a16207);
  font-size: 0.75rem;
  font-weight: 700;
  vertical-align: middle;
}

.pay-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.pay-badges span {
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid var(--line, #d7e8ef);
  background: var(--off, #f7fbfd);
  color: var(--text, #17364a);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.pay-badges .badge-mtn {
  background: #ffcc00;
  border-color: #e6b800;
  color: #1a1a1a;
}

.pay-badges .badge-airtel {
  background: #e40000;
  border-color: #c50000;
  color: #ffffff;
}

.pay-badges .badge-paypal {
  background: #003087;
  border-color: #002569;
  color: #ffffff;
}

.method-note {
  margin: 12px 0 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--pill-soon-bg, #fff7e6);
  color: var(--pill-soon-fg, #a16207);
  font-size: var(--fs-small, 0.875rem);
  font-weight: 600;
}

/* Currency switch */
.segmented {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: var(--off, #f7fbfd);
  border: 1px solid var(--line, #d7e8ef);
  margin-bottom: 14px;
}

.segmented label {
  position: relative;
  cursor: pointer;
}

.segmented span {
  display: block;
  padding: 7px 18px;
  border-radius: 999px;
  font-weight: 800;
  font-size: var(--fs-small, 0.875rem);
  color: var(--muted, #557083);
  transition: background 0.18s ease, color 0.18s ease;
}

.segmented input:checked + span {
  background: var(--brand-fill, #0878be);
  color: #ffffff;
}

.segmented label.is-disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

/* Amount chips */
.amount-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.amount-chip {
  position: relative;
  cursor: pointer;
}

.amount-chip span {
  display: block;
  padding: 14px 8px;
  border: 1.5px solid var(--line, #d7e8ef);
  border-radius: 14px;
  background: var(--surface, #ffffff);
  text-align: center;
  font-weight: 800;
  color: var(--ink, #082033);
  font-variant-numeric: tabular-nums;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.amount-chip:hover span {
  border-color: var(--blue, #0878be);
  transform: translateY(-1px);
}

.amount-chip input:checked + span {
  border-color: var(--brand-fill, #0878be);
  background: var(--brand-fill, #0878be);
  color: #ffffff;
}

.amount-custom {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  font-size: var(--fs-small, 0.875rem);
  font-weight: 700;
  color: var(--muted, #557083);
}

.amount-input {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--line, #d7e8ef);
  border-radius: 14px;
  overflow: hidden;
  background: var(--off, #f7fbfd);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.amount-input:focus-within {
  border-color: var(--blue, #0878be);
  box-shadow: 0 0 0 4px var(--focus, rgba(8, 120, 190, 0.14));
}

.amount-prefix {
  display: grid;
  place-items: center;
  padding: 0 14px;
  background: var(--blue-soft, #eaf8ff);
  color: var(--blue, #0878be);
  font-weight: 800;
}

.amount-input input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 13px 14px;
  font: inherit;
  font-weight: 700;
  color: var(--ink, #082033);
  background: transparent;
}

.amount-input input:focus {
  outline: none;
}

/* Bank details */
.bank-panel {
  margin-top: 16px;
  padding: 18px;
  border-radius: 16px;
  border: 1px dashed var(--blue, #0878be);
  background: var(--blue-soft, #eaf8ff);
}

.bank-panel-intro {
  margin: 0 0 12px;
  font-size: var(--fs-small, 0.875rem);
  color: var(--text, #17364a);
}

.bank-details {
  margin: 0;
  display: grid;
  gap: 8px;
}

.bank-details > div {
  display: grid;
  grid-template-columns: 9.5em minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.bank-details dt {
  font-size: var(--fs-small, 0.875rem);
  color: var(--muted, #557083);
}

.bank-details dd {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 8px 8px 12px;
  border-radius: 10px;
  background: var(--surface, #ffffff);
  font-weight: 700;
  color: var(--ink, #082033);
  word-break: break-word;
}

.copy-btn {
  flex-shrink: 0;
  border: 1px solid var(--line, #d7e8ef);
  background: var(--off, #f7fbfd);
  color: var(--blue, #0878be);
  border-radius: 8px;
  padding: 5px 10px;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 800;
  cursor: pointer;
}

.copy-btn.is-copied {
  background: var(--pill-live-bg, #e8f9ef);
  color: var(--pill-live-fg, #15803d);
  border-color: transparent;
}

/* Your details */
.fund-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}

.fund-fields label {
  display: block;
  font-weight: 700;
  font-size: var(--fs-small, 0.875rem);
  color: var(--ink, #082033);
}

.fund-fields input {
  display: block;
  width: 100%;
  margin-top: 6px;
  border: 1.5px solid var(--line, #d7e8ef);
  border-radius: 12px;
  padding: 12px 13px;
  font: inherit;
  font-weight: 500;
  color: var(--ink, #082033);
  background: var(--off, #f7fbfd);
}

.fund-fields input::placeholder {
  color: var(--placeholder, #7d93a3);
}

.fund-fields input:focus {
  outline: none;
  border-color: var(--blue, #0878be);
  background: var(--surface, #ffffff);
  box-shadow: 0 0 0 4px var(--focus, rgba(8, 120, 190, 0.14));
}

.fund-fields input[aria-invalid="true"] {
  border-color: #dc2626;
}

.fund-fields .optional {
  font-weight: 500;
  color: var(--muted, #557083);
}

/* Summary panel: stays in view beside the form on wide screens */
.fund-summary {
  position: sticky;
  top: 96px;
  padding: 26px;
  border-radius: 24px;
  color: #e7f4fb;
  background:
    radial-gradient(circle at 85% 0%, rgba(34, 197, 94, 0.2), transparent 45%),
    linear-gradient(160deg, #06283f 0%, #073b5c 60%, #0a4d7a 100%);
  box-shadow: var(--shadow, 0 22px 55px rgba(7, 40, 68, 0.12));
}

.fund-summary h3 {
  color: #ffffff;
}

.summary-list {
  margin: 18px 0 20px;
  display: grid;
  gap: 2px;
}

.summary-list > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.summary-list dt {
  color: #a9cde3;
  font-size: var(--fs-small, 0.875rem);
}

.summary-list dd {
  margin: 0;
  text-align: right;
  font-weight: 700;
  color: #ffffff;
}

.summary-list .summary-amount {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.summary-list code {
  font-family: inherit;
  font-size: 0.95em;
  letter-spacing: 0.04em;
  color: #fde68a;
}

.fund-pay {
  width: 100%;
  padding: 16px 18px;
  font-size: var(--fs-ui, 1rem);
  color: #1c1003;
}

.fund-pay:disabled {
  opacity: 0.6;
  cursor: progress;
}

.fund-status {
  min-height: 1.4em;
  margin: 12px 0 0;
  font-size: var(--fs-small, 0.875rem);
  font-weight: 600;
  color: #d5edf9;
}

.fund-status.is-error {
  color: #fecaca;
}

.fund-status.is-success {
  color: #bbf7d0;
}

.fund-trust {
  list-style: none;
  margin: 18px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  gap: 12px;
}

.fund-trust li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  font-size: var(--fs-small, 0.875rem);
  color: #bcd9ea;
  line-height: 1.5;
}

.fund-trust svg {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: #7dd3fc;
}

.fund-noscript {
  margin-top: 18px;
  font-weight: 700;
}

/* Below the checkout: organisations and the call request */
.partner-more {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 24px;
  margin-top: 32px;
  align-items: start;
}

.partner-org {
  padding: 28px;
  border-radius: 22px;
  border: 1px solid var(--line, #d7e8ef);
  background: var(--surface, #ffffff);
  box-shadow: var(--shadow-sm, 0 12px 32px rgba(7, 40, 68, 0.06));
}

.partner-org p:not(.eyebrow) {
  color: var(--muted, #557083);
}

.org-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 22px;
  padding: 0;
}

.org-chips li {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--blue-soft, #eaf8ff);
  color: var(--blue, #0878be);
  font-size: var(--fs-small, 0.875rem);
  font-weight: 700;
}

@media (max-width: 1100px) {
  .pay-methods {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 980px) {
  .fund-grid,
  .partner-more {
    grid-template-columns: minmax(0, 1fr);
  }

  .fund-summary {
    position: static;
  }
}

@media (max-width: 640px) {
  .fund-step {
    padding: 18px;
  }

  .fund-options,
  .fund-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .amount-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bank-details > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root:not([data-motion="full"]) {
  .fund-option-body,
  .pay-method-body,
  .amount-chip span {
    transition: none;
  }

  .fund-option:hover .fund-option-body,
  .pay-method:hover .pay-method-body,
  .amount-chip:hover span {
    transform: none;
  }
  }
}

/* --------------------------------------------------------------------------
   Social links and sharing
   -------------------------------------------------------------------------- */
.social-block {
  margin-top: 26px;
}

.social-title {
  margin: 0 0 10px;
  font-weight: 800;
  font-size: var(--fs-small, 0.875rem);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ffffff;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-link {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  transition: background 0.18s ease, transform 0.18s ease;
}

.social-link:hover,
.social-link:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.footer-social {
  width: 100%;
}

.share-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 36px 0 0;
  padding: 18px 0;
  border-top: 1px solid var(--line, #d7e8ef);
  border-bottom: 1px solid var(--line, #d7e8ef);
}

.share-label {
  margin-right: 6px;
  font-weight: 800;
  color: var(--ink, #082033);
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line, #d7e8ef);
  background: var(--surface, #ffffff);
  color: var(--text, #17364a);
  font: inherit;
  font-size: var(--fs-small, 0.875rem);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.share-btn:hover,
.share-btn:focus-visible {
  border-color: var(--blue, #0878be);
  color: var(--blue, #0878be);
}

.share-btn svg {
  width: 16px;
  height: 16px;
}

/* --------------------------------------------------------------------------
   Links from the homepage news block
   -------------------------------------------------------------------------- */
.news-all {
  margin-top: 18px;
  font-weight: 700;
}

.news-all a {
  color: var(--blue, #0878be);
}

/* --------------------------------------------------------------------------
   News, article and adverts pages
   -------------------------------------------------------------------------- */
.page-hero {
  padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 5vw, 64px);
  color: #ffffff;
  background:
    radial-gradient(circle at 85% 10%, rgba(34, 197, 94, 0.18), transparent 40%),
    linear-gradient(160deg, #06283f 0%, #073b5c 55%, #0a4d7a 100%);
}

.page-hero h1 {
  color: #ffffff;
  max-width: 18ch;
}

.page-hero .lead {
  color: #d5edf9;
  max-width: 60ch;
}

.page-hero .eyebrow {
  color: #7dd3fc;
}

.breadcrumb {
  margin: 0 0 18px;
  font-size: var(--fs-small, 0.875rem);
  color: #a9cde3;
}

.breadcrumb a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

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

.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--line, #d7e8ef);
  background: var(--surface, #ffffff);
  box-shadow: var(--shadow-sm, 0 12px 32px rgba(7, 40, 68, 0.06));
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow, 0 22px 55px rgba(7, 40, 68, 0.12));
}

.post-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.post-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 22px 24px 24px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0 0 10px;
  font-size: var(--fs-small, 0.875rem);
  color: var(--muted, #557083);
}

.post-tag {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--blue-soft, #eaf8ff);
  color: var(--blue, #0878be);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.post-card h2 {
  font-size: var(--fs-h3, 1.5rem);
  line-height: 1.2;
}

.post-card h2 a {
  color: inherit;
  text-decoration: none;
}

.post-card h2 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.post-card {
  position: relative;
}

.post-card p {
  color: var(--muted, #557083);
}

.post-card .read-more {
  margin-top: auto;
  padding-top: 16px;
  font-weight: 800;
  color: var(--blue, #0878be);
}

/* Article */
.article-hero-img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 24px;
  margin-top: -40px;
  position: relative;
  box-shadow: var(--shadow, 0 22px 55px rgba(7, 40, 68, 0.12));
}

.page-hero-article {
  padding-bottom: clamp(70px, 8vw, 110px);
}

.article-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
}

.article-body {
  width: min(100%, 72ch);
  padding: 40px 0 10px;
  font-size: var(--fs-body, 1.0625rem);
}

.article-body h2 {
  font-size: var(--fs-h3, 1.5rem);
  margin: 40px 0 0;
}

.article-body h3 {
  font-size: var(--fs-h4, 1.125rem);
  margin: 28px 0 0;
}

.article-body p,
.article-body li {
  color: var(--text, #17364a);
  line-height: 1.75;
}

.article-body ul {
  padding-left: 1.2em;
}

.article-body figure {
  margin: 30px 0;
}

.article-body figure img,
.article-body video {
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.article-body figcaption {
  margin-top: 10px;
  font-size: var(--fs-small, 0.875rem);
  color: var(--muted, #557083);
}

.fact-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: var(--fs-small, 0.875rem);
}

.fact-table th,
.fact-table td {
  padding: 10px 12px;
  border: 1px solid var(--line, #d7e8ef);
  text-align: left;
}

.fact-table thead th {
  background: var(--off, #f7fbfd);
  color: var(--ink, #082033);
}

.fact-table td {
  font-variant-numeric: tabular-nums;
}

.article-cta {
  margin: 40px 0 0;
  padding: 26px;
  border-radius: 22px;
  color: #e7f4fb;
  background: linear-gradient(160deg, #06283f 0%, #0a4d7a 100%);
}

.article-cta h2 {
  margin: 0;
  color: #ffffff;
  font-size: var(--fs-h3, 1.5rem);
}

.article-cta p {
  color: #d5edf9;
}

.article-cta .btn {
  margin-top: 16px;
  color: #1c1003;
}

.more-posts {
  width: min(100%, 72ch);
  margin: 44px 0 0;
}

.more-posts h2 {
  font-size: var(--fs-h3, 1.5rem);
  margin-bottom: 14px;
}

.more-posts ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.more-posts a {
  display: block;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid var(--line, #d7e8ef);
  background: var(--surface, #ffffff);
  color: var(--ink, #082033);
  font-weight: 700;
  text-decoration: none;
}

.more-posts a:hover {
  border-color: var(--blue, #0878be);
  color: var(--blue, #0878be);
}

/* Adverts and notices */
.notice-group + .notice-group {
  margin-top: 48px;
}

.notice-group > h2 {
  margin-bottom: 18px;
}

.notice-card {
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--line, #d7e8ef);
  background: var(--surface, #ffffff);
  box-shadow: var(--shadow-sm, 0 12px 32px rgba(7, 40, 68, 0.06));
}

.notice-card + .notice-card {
  margin-top: 14px;
}

.notice-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.notice-card h3 {
  font-size: var(--fs-h4, 1.125rem);
}

.notice-card p,
.notice-card li {
  color: var(--muted, #557083);
}

.notice-card ul {
  margin: 12px 0 0;
  padding-left: 1.2em;
}

.status-closed,
.status-open {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.status-closed {
  background: var(--off, #f7fbfd);
  color: var(--muted, #557083);
  border: 1px solid var(--line, #d7e8ef);
}

.status-open {
  background: var(--pill-live-bg, #e8f9ef);
  color: var(--pill-live-fg, #15803d);
}

.empty-state {
  padding: 26px;
  border-radius: 20px;
  border: 1px dashed var(--line, #d7e8ef);
  color: var(--muted, #557083);
  background: var(--surface-muted, #f2f9fc);
}

@media (max-width: 980px) {
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .post-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .article-hero-img {
    margin-top: -28px;
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root:not([data-motion="full"]) {
  .post-card,
  .social-link {
    transition: none;
  }

  .post-card:hover,
  .social-link:hover {
    transform: none;
  }
  }
}

/* --------------------------------------------------------------------------
   Cookie banner and settings panel (assets/js/cookies.js)
   -------------------------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  max-width: 980px;
  margin-inline: auto;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(4, 20, 34, 0.25);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-banner.is-visible {
  opacity: 1;
  transform: none;
}

.cookie-banner-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cookie-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
}

.cookie-icon svg {
  width: 24px;
  height: 24px;
}

.cookie-text {
  flex: 1;
  min-width: 0;
}

.cookie-text strong {
  color: var(--ink);
}

.cookie-text p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: var(--fs-small);
}

.cookie-actions,
.cookie-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 16px;
}

.cookie-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 10, 18, 0.6);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.cookie-dialog {
  position: relative;
  width: min(620px, 100%);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 26px;
  border-radius: 18px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.cookie-dialog:focus {
  outline: none;
}

.cookie-modal.is-open .cookie-backdrop,
.cookie-modal.is-open .cookie-dialog {
  opacity: 1;
  transform: none;
}

.cookie-open,
.cookie-open body {
  overflow: hidden;
}

.cookie-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cookie-dialog-head h2 {
  font-size: var(--fs-h3);
}

.cookie-close {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.cookie-intro,
.cookie-note {
  color: var(--muted);
  font-size: var(--fs-small);
}

.cookie-cat {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-muted);
}

.cookie-cat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.cookie-cat h3 {
  font-size: var(--fs-h4);
}

.cookie-cat p {
  margin-top: 4px;
  color: var(--muted);
  font-size: var(--fs-small);
}

.cookie-cat details {
  margin-top: 10px;
  font-size: var(--fs-small);
}

.cookie-cat summary {
  color: var(--blue);
  font-weight: 700;
  cursor: pointer;
}

.cookie-cat ul {
  margin: 8px 0 0;
  padding-left: 1.1em;
  color: var(--text);
}

.cookie-cat code {
  font-family: inherit;
  font-weight: 700;
}

.cookie-dialog-actions {
  justify-content: flex-end;
  margin-top: 18px;
}

/* Toggle switch */
.switch {
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.switch-track {
  position: relative;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: var(--line);
  transition: background-color 0.2s ease;
}

.switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.switch input:checked + .switch-track {
  background: var(--brand-fill);
}

.switch input:checked + .switch-track::after {
  transform: translateX(20px);
}

.switch input:focus-visible + .switch-track {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.switch input:disabled + .switch-track {
  opacity: 0.6;
  cursor: not-allowed;
}

.switch-label {
  color: var(--muted);
  font-size: var(--fs-tiny);
  font-weight: 700;
}

.switch-label:empty {
  display: none;
}

@media (max-width: 760px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-icon {
    display: none;
  }

  .cookie-actions .btn,
  .cookie-dialog-actions .btn {
    flex: 1 1 auto;
  }
}

@media print {
  .cookie-banner,
  .cookie-modal {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   News tools, article contents, adverts status, FAQ
   -------------------------------------------------------------------------- */
.news-tools {
  display: grid;
  gap: 16px;
  margin-bottom: var(--gap, 24px);
}

.news-search {
  width: 100%;
  max-width: 460px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: var(--fs-ui);
}

.news-search:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--focus);
}

.news-count,
.news-empty {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-small);
}

.post-card[hidden] {
  display: none;
}

.toc {
  margin: 24px 0;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
}

.toc-title {
  margin: 0 0 8px;
  color: var(--ink);
  font-weight: 800;
}

.toc ol {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 1.2em;
}

.toc a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
}

.status-open {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--pill-live-bg);
  color: var(--pill-live-fg);
  font-size: var(--fs-tiny);
  font-weight: 800;
}

.notice-card img {
  width: 100%;
  max-width: 420px;
  margin-top: 16px;
  border-radius: var(--radius-sm);
}

.notice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 12px;
  max-width: 860px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  color: var(--ink);
  font-size: var(--fs-heading-3);
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  color: var(--blue);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-answer {
  padding: 0 22px 20px;
}

.faq-answer p {
  margin: 0;
  color: var(--muted);
}

.faq-answer p + p {
  margin-top: 10px;
}

.faq-answer a {
  color: var(--blue);
  font-weight: 700;
}

.faq-tools {
  margin-bottom: 16px;
}

.field-note {
  color: var(--muted);
  font-size: var(--fs-small);
}

.news-item h4 a {
  color: inherit;
  text-decoration: none;
}

.news-item h4 a:hover {
  color: var(--blue);
  text-decoration: underline;
}
