/* news_tgn_0013 — PACKAGE DESK (ProPublica-inspired)
   Paper + ink + institutional ink-blue underline.
   Investigation package box + visual row + archives list.
   Replaces Axios Briefing Desk (no timebars / 1 Big Thing / Also Today). */
:root {
  --n13-paper: #fafafa;
  --n13-soft: #f0f0f0;
  --n13-ink: #121212;
  --n13-muted: #5c5c5c;
  --n13-accent: #0b3d91;
  --n13-deep: #082d6b;
  --n13-panel: #ffffff;
  --n13-line: rgba(18, 18, 18, 0.14);
  --n13-font-display: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --n13-font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --n13-max: 1100px;
  --navbar-h: 88px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--n13-font-body);
  color: var(--n13-ink);
  background: var(--n13-paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

@media (max-width: 767px) {
  body {
    padding-bottom: 64px;
  }
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

ol,
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.n13-container,
.container {
  width: min(100% - 2rem, var(--n13-max));
  margin-inline: auto;
}

.n13-ad-slot {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 72px;
  margin: 1rem 0;
  width: 100%;
}

.n13-ad-slot .container,
.n13-ad-slot .ad-container,
.container .n13-ad-slot .container,
.container .n13-ad-slot .ad-container {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

/* —— Package Mast: institutional left brand + blue underline —— */
.n13-mast {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--n13-panel);
  color: var(--n13-ink);
  border-bottom: 1px solid var(--n13-line);
}

.n13-mast.is-scrolled {
  box-shadow: 0 4px 14px rgba(18, 18, 18, 0.06);
}

.n13-mast__inner {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.95rem 0 0.85rem;
}

.n13-mast__brandrow {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}

.n13-mast__brand-wrap {
  display: flex;
  min-width: 0;
}

.n13-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--n13-font-display);
  font-weight: 700;
  font-size: clamp(1.45rem, 3vw, 1.95rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--n13-ink);
  max-width: min(58vw, 20rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-bottom: 0.35rem;
  border-bottom: 3px solid var(--n13-accent);
  align-self: flex-start;
}
.n13-nav-logo {
  height: 28px;
  width: auto;
  max-width: 120px;
  max-height: 28px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
  object-position: left center;
}
.n13-nav-logo[hidden] {
  display: none;
}
.n13-nav-brand-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.n13-mast__tag {
  display: none;
}

.n13-mast__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  padding-bottom: 0.15rem;
}

.n13-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.15rem;
  flex-wrap: nowrap;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  width: max-content;
}

.n13-menu a {
  position: relative;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--n13-muted);
  padding: 0.25rem 0;
}

.n13-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--n13-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.n13-menu a:hover {
  color: var(--n13-accent);
}

.n13-menu a:hover::after,
.n13-menu a.is-active::after {
  transform: scaleX(1);
}

.n13-menu a.is-active {
  color: var(--n13-accent);
}

.n13-nav-menus {
  display: none;
  position: relative;
  align-items: center;
  justify-content: flex-start;
  flex: 1 1 auto;
  gap: 1.15rem;
  min-width: 0;
  height: auto;
  width: 100%;
  padding: 0.55rem 0 0;
  border-top: 1px solid var(--n13-line);
}
@media (min-width: 900px) {
  .n13-nav-menus {
    display: flex;
  }
  .n13-nav-menus.n13-nav-menus--pending {
    visibility: hidden;
  }
}
.n13-menu.is-measuring {
  overflow: visible;
}
.n13-menu > li.is-overflow {
  display: none !important;
}
.n13-menu > li {
  flex: 0 0 auto;
  white-space: nowrap;
}
.n13-nav-more {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  height: 100%;
}
.n13-nav-more[hidden] {
  display: none !important;
}
.n13-nav-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0;
  border: 0;
  background: transparent;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: none;
  color: var(--n13-muted);
  white-space: nowrap;
  cursor: pointer;
}
.n13-nav-more-btn i {
  font-size: 0.65rem;
  transition: transform 0.2s ease;
}
.n13-nav-more.is-open .n13-nav-more-btn,
.n13-nav-more-btn:hover,
.n13-nav-more-btn:focus-visible {
  color: var(--n13-accent);
}
.n13-nav-more.has-active .n13-nav-more-btn {
  color: var(--n13-ink);
}
.n13-nav-more.is-open .n13-nav-more-btn i {
  transform: rotate(180deg);
}
.n13-nav-more-panel {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  z-index: 70;
  min-width: 12rem;
  max-width: min(18rem, 70vw);
  max-height: min(60vh, 22rem);
  overflow-y: auto;
  padding: 0.4rem;
  border-radius: 0.5rem;
  border: 1px solid var(--n13-line);
  background: var(--n13-panel);
  box-shadow: 0 12px 28px rgba(12, 18, 34, 0.14);
}
.n13-nav-more-panel[hidden] {
  display: none !important;
}
.n13-nav-more-panel .nav-menu-item {
  display: block;
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--n13-muted);
  white-space: normal;
  overflow-wrap: anywhere;
  text-decoration: none;
}
.n13-nav-more-panel .nav-menu-item:hover,
.n13-nav-more-panel .nav-menu-item:focus-visible {
  background: rgba(18, 18, 18, 0.06);
  color: var(--n13-accent);
}
.n13-nav-more-panel .nav-menu-item.is-active {
  color: var(--n13-ink);
  background: rgba(18, 18, 18, 0.08);
}

.n1-nav-signin {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--n13-ink);
  border: 1px solid var(--n13-line);
  background: transparent;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}

.n1-nav-signin:hover {
  border-color: var(--n13-accent);
  color: var(--n13-accent);
}

.n1-nav-user {
  display: none;
  align-items: center;
  gap: 0.35rem;
}

.n1-nav-user-profile {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--n13-ink);
}

.n1-nav-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--n13-accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
}

.n1-nav-user-divider {
  width: 1px;
  height: 18px;
  background: var(--n13-line);
}

.n1-nav-logout {
  border: 0;
  background: transparent;
  color: var(--n13-muted);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem;
}

.n1-nav-logout:hover {
  color: var(--n13-accent);
}

.n13-icon-btn,
.search-trigger {
  width: 40px;
  height: 40px;
  border: 1px solid var(--n13-line);
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--n13-ink);
}

.n13-icon-btn:hover,
.search-trigger:hover {
  border-color: var(--n13-accent);
  color: var(--n13-accent);
}

.mobile-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: var(--n13-panel);
  border-top: 1px solid var(--n13-line);
  padding: 0.25rem 0 calc(0.25rem + env(safe-area-inset-bottom));
}

.mobile-nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.mobile-nav-menu.is-logged-in {
  grid-template-columns: repeat(6, 1fr);
}

.mobile-nav-user-pair {
  display: contents;
}

.mobile-nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-height: 52px;
  font-size: 0.65rem;
  font-weight: 650;
  color: var(--n13-muted);
  background: transparent;
  border: 0;
  width: 100%;
  cursor: pointer;
}

.mobile-nav-link i {
  font-size: 1rem;
}

.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: var(--n13-accent);
}

@media (min-width: 768px) {
  .mobile-nav {
    display: none;
  }
}

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(18, 18, 18, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.search-overlay.active {
  display: flex;
}

.search-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

.search-form {
  width: min(100%, 560px);
}

.search-input-wrapper {
  display: flex;
  background: #fff;
  border: 2px solid var(--n13-accent);
}

.search-input {
  flex: 1;
  border: 0;
  padding: 1rem 1.1rem;
  font-size: 1.05rem;
  background: transparent;
  color: var(--n13-ink);
  outline: none;
}

.search-submit {
  border: 0;
  background: var(--n13-accent);
  color: #fff;
  padding: 0 1.1rem;
  cursor: pointer;
}

.search-submit:hover {
  background: var(--n13-deep);
}

/* Shared */
.n13-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.n13-section-head__title {
  margin: 0;
  font-family: var(--n13-font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.n13-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--n13-accent);
}

.n13-view-all {
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  color: var(--n13-accent);
  white-space: nowrap;
  border-bottom: 1px solid transparent;
}

.n13-view-all:hover {
  color: var(--n13-deep);
  border-bottom-color: var(--n13-deep);
}

.n13-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  margin-top: 0.45rem;
  font-size: 0.78rem;
  color: var(--n13-muted);
}

.n13-meta .cat {
  color: var(--n13-accent);
  font-weight: 700;
}

.n13-link-title {
  background-image: linear-gradient(var(--n13-accent), var(--n13-accent));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 2px;
  transition: background-size 0.28s ease;
}

a:hover .n13-link-title,
.n13-link-title:hover {
  background-size: 100% 2px;
}

.n13-eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--n13-accent);
}

.n13-eyebrow--on-blue {
  color: rgba(255, 255, 255, 0.85);
}

@keyframes n13-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.is-pending {
  opacity: 0;
  transform: translateY(12px);
}

.is-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* —— Investigation Package (bordered box) —— */
.n13-package {
  padding: 1.5rem 0 2rem;
}

.n13-package__box {
  background: var(--n13-panel);
  border: 1px solid var(--n13-ink);
  box-shadow: 0 0 0 1px var(--n13-line);
}

.n13-package__box > article,
.n13-support__grid > article,
.n13-visual__row > article {
  display: contents;
}

.n13-lead {
  display: grid;
  gap: 0;
  color: inherit;
}

@media (min-width: 860px) {
  .n13-lead {
    grid-template-columns: 1.15fr 1fr;
    align-items: stretch;
  }
}

.n13-lead__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--n13-soft);
}

@media (min-width: 860px) {
  .n13-lead__media {
    aspect-ratio: auto;
    min-height: 100%;
  }
}

.n13-lead__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.n13-lead__body {
  padding: 1.35rem 1.25rem 1.5rem;
  border-top: 1px solid var(--n13-line);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 860px) {
  .n13-lead__body {
    border-top: 0;
    border-left: 1px solid var(--n13-line);
    padding: 1.75rem 1.65rem;
  }
}

.n13-lead__title {
  margin: 0;
  font-family: var(--n13-font-display);
  font-size: clamp(1.7rem, 3.8vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  animation: n13-rise 0.5s ease both;
}

.n13-lead__dek {
  margin: 0.85rem 0 0;
  font-size: 1.05rem;
  color: var(--n13-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.n13-support {
  border-top: 2px solid var(--n13-ink);
  padding: 1rem 1.15rem 1.15rem;
  background: var(--n13-soft);
}

.n13-support__label {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--n13-accent);
}

.n13-support__grid {
  display: grid;
  gap: 0;
}

@media (min-width: 720px) {
  .n13-support__grid {
    grid-template-columns: 1fr 1fr;
    column-gap: 1.5rem;
  }
}

.n13-support__item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.75rem 0;
  color: inherit;
  border-top: 1px solid var(--n13-line);
}

.n13-support__grid > .n13-support__item:first-child,
.n13-support__grid > .n13-support__item:nth-child(2) {
  border-top: 0;
  padding-top: 0;
}

@media (max-width: 719px) {
  .n13-support__grid > .n13-support__item:nth-child(2) {
    border-top: 1px solid var(--n13-line);
    padding-top: 0.75rem;
  }
}

.n13-support__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e4e4e4;
}

.n13-support__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.n13-support__title {
  margin: 0;
  font-family: var(--n13-font-display);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.015em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.n13-support__copy .n13-meta {
  margin-top: 0.35rem;
}

/* —— Visual / Support horizontal row —— */
.n13-visual {
  padding: 2rem 0;
  background: var(--n13-soft);
}

.n13-visual__row {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .n13-visual__row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .n13-visual__row {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.35rem;
  }
}

.n13-vcard {
  display: block;
  color: inherit;
  background: var(--n13-panel);
  border-top: 3px solid var(--n13-accent);
  padding-bottom: 0.85rem;
}

.n13-vcard__media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #e4e4e4;
  margin-bottom: 0.7rem;
}

.n13-vcard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.n13-vcard .n13-meta {
  margin: 0 0.85rem 0.35rem;
}

.n13-vcard__title {
  margin: 0 0.85rem;
  font-family: var(--n13-font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.n13-vcard__dek {
  margin: 0.4rem 0.85rem 0;
  font-size: 0.85rem;
  color: var(--n13-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* —— From the archives —— */
.n13-archives {
  padding: 2rem 0;
}

.n13-archives + .n13-archives {
  padding-top: 0.35rem;
}

.n13-archive-list {
  border-top: 2px solid var(--n13-ink);
}

.n13-archive-list > li {
  border-bottom: 1px solid var(--n13-line);
}

.n13-archive-list > li > article {
  display: contents;
}

.n13-archive-item {
  display: grid;
  gap: 0.35rem 1.25rem;
  padding: 1.05rem 0;
  color: inherit;
}

@media (min-width: 720px) {
  .n13-archive-item {
    grid-template-columns: 1fr auto;
    align-items: baseline;
  }

  .n13-archive-item__meta {
    justify-content: flex-end;
    text-align: right;
    margin-top: 0;
    max-width: 12rem;
  }
}

.n13-archive-item__title {
  margin: 0;
  font-family: var(--n13-font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.n13-archive-item__dek {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: var(--n13-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.n13-archive-item--rich {
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .n13-archive-item--rich {
    grid-template-columns: 160px 1fr;
    align-items: start;
  }
}

.n13-archive-item__thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--n13-soft);
}

.n13-archive-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.n13-archive-list--page .n13-archive-item--rich .n13-meta {
  margin-top: 0.5rem;
}

/* Newsletter */
.n13-news {
  padding: 2.5rem 0;
  background: var(--n13-accent);
  color: #fff;
}

.n13-news__inner {
  display: grid;
  gap: 1.25rem;
  align-items: end;
}

@media (min-width: 720px) {
  .n13-news__inner {
    grid-template-columns: 1.15fr 1fr;
    gap: 2rem;
  }
}

.n13-news__title {
  margin: 0 0 0.4rem;
  font-family: var(--n13-font-display);
  font-size: 1.7rem;
  font-weight: 700;
}

.n13-news__text {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  max-width: 28rem;
}

.n13-news__form {
  display: grid;
  gap: 0.65rem;
}

.n13-news__form input {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.12);
  color: #fff;
  padding: 0.85rem 1rem;
  min-height: 48px;
}

.n13-news__form input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.n13-news__form button {
  border: 0;
  background: #fff;
  color: var(--n13-accent);
  font-weight: 700;
  letter-spacing: 0.01em;
  font-size: 0.875rem;
  padding: 0.85rem 1.2rem;
  cursor: pointer;
  min-height: 48px;
}

.n13-news__form button:hover {
  background: var(--n13-soft);
}

.newsletter-status {
  margin: 0;
  min-height: 1.25rem;
  font-size: 0.85rem;
  color: #c5d4ef;
}

/* Pages / article */
.n13-page {
  padding: 1.5rem 0 3rem;
}

.n13-page__title {
  margin: 0 0 0.35rem;
  font-family: var(--n13-font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.n13-page__desc {
  margin: 0 0 1.15rem;
  color: var(--n13-muted);
  max-width: 40rem;
}

.n13-page .n13-kicker {
  margin-bottom: 0.65rem;
}

/* —— Category button + drawer —— */
.n13-cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 40px;
  margin: 0 0 1.35rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--n13-line);
  background: var(--n13-panel);
  color: var(--n13-ink);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
}

.n13-cat-btn i {
  color: var(--n13-accent);
}

.n13-cat-btn:hover {
  border-color: var(--n13-accent);
  color: var(--n13-deep);
}

.n13-cat-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(18, 18, 18, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.n13-cat-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.n13-cat-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1201;
  width: min(100%, 20rem);
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--n13-panel);
  border-left: 1px solid var(--n13-line);
  transform: translateX(100%);
  transition: transform 0.22s ease;
}

.n13-cat-drawer.is-open {
  transform: translateX(0);
}

.n13-cat-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--n13-line);
}

.n13-cat-drawer__head h2 {
  margin: 0;
  font-family: var(--n13-font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

.n13-cat-drawer__close {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--n13-line);
  background: var(--n13-soft);
  color: var(--n13-ink);
  cursor: pointer;
}

.n13-cat-drawer__list {
  flex: 1;
  overflow-y: auto;
  margin: 0;
  padding: 0.5rem 0.85rem 1.25rem;
  list-style: none;
  -webkit-overflow-scrolling: touch;
}

.n13-cat-drawer__link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--n13-line);
  color: var(--n13-ink);
  font-weight: 600;
}

.n13-cat-drawer__link:hover,
.n13-cat-drawer__link.is-active {
  color: var(--n13-deep);
  background: rgba(11, 61, 145, 0.08);
}

.n13-cat-drawer__link.is-active {
  border-left: 3px solid var(--n13-accent);
  padding-left: calc(0.75rem - 3px);
}

body.n13-cat-drawer-open {
  overflow: hidden;
}

.n13-empty {
  padding: 2.5rem 1rem;
  text-align: center;
  border: 1px dashed var(--n13-line);
}

.n13-empty h2 {
  margin: 0 0 0.4rem;
  font-family: var(--n13-font-display);
}

.n13-empty p {
  margin: 0;
  color: var(--n13-muted);
}

.n13-article {
  padding: 1.5rem 0 3rem;
}

.n13-article__cat {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--n13-accent);
  border-bottom: 2px solid var(--n13-accent);
  padding-bottom: 0.2rem;
  margin-bottom: 0.85rem;
}

.n13-article__title {
  margin: 0 0 0.75rem;
  font-family: var(--n13-font-display);
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: none;
}

.n13-article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  align-items: center;
  color: var(--n13-muted);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.n13-share {
  display: flex;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
}

.n13-share a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--n13-line);
  color: var(--n13-ink);
}

.n13-share a:hover {
  border-color: var(--n13-accent);
  color: var(--n13-accent);
}

.n13-article__cover {
  margin: 0 0 1.65rem;
  background: var(--n13-soft);
  max-width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.n13-article__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.n13-article__body {
  max-width: none;
  width: 100%;
  font-size: 1.05rem;
  line-height: 1.7;
}

.n13-article__body p {
  margin: 0 0 1.1rem;
}

.n13-article__body img {
  margin: 1.25rem 0;
}

.n13-related {
  margin-top: 2.5rem;
  padding-top: 0.25rem;
}

.detail-favorite-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--n13-line);
  background: transparent;
  color: var(--n13-ink);
  padding: 0.35rem 0.7rem;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 650;
  min-height: 36px;
}

.detail-favorite-btn__icon {
  width: 16px;
  height: 16px;
}

.detail-favorite-btn[aria-pressed="true"] {
  border-color: var(--n13-accent);
  color: var(--n13-accent);
}

.detail-favorite-btn__spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid var(--n13-line);
  border-top-color: var(--n13-accent);
  border-radius: 50%;
  animation: n13-spin 0.7s linear infinite;
}

.detail-favorite-btn[aria-busy="true"] .detail-favorite-btn__spinner {
  display: inline-block;
}

.detail-favorite-btn[aria-busy="true"] .detail-favorite-btn__icon {
  display: none;
}

@keyframes n13-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Legal / static pages */
.n13-legal,
.legal-content {
  width: min(100% - 2rem, 42rem);
  margin: 1.75rem auto 3rem;
  font-size: 1.02rem;
  line-height: 1.7;
}

.n13-legal h1,
.legal-content h1 {
  font-family: var(--n13-font-display);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.n13-legal h2,
.legal-content h2 {
  font-family: var(--n13-font-display);
  font-size: 1.25rem;
  margin: 1.75rem 0 0.65rem;
}

.n13-legal p,
.legal-content p {
  margin: 0 0 1rem;
  color: var(--n13-ink);
}

.n13-legal a,
.legal-content a {
  color: var(--n13-accent);
  text-decoration: underline;
}

/* Footer */
.n13-footer {
  padding: 2.5rem 0 2rem;
  background: var(--n13-ink);
  color: #f5f5f4;
}

.n13-footer__grid {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 720px) {
  .n13-footer__grid {
    grid-template-columns: 1.4fr 1fr;
  }
}

.n13-footer__brand {
  display: inline-block;
  font-family: var(--n13-font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
  color: #fff;
  border-bottom: 2px solid var(--n13-accent);
  padding-bottom: 0.25rem;
}

.n13-footer p {
  color: rgba(245, 245, 244, 0.65);
}

.n13-footer__social {
  display: flex;
  gap: 0.55rem;
  margin-top: 1rem;
}

.n13-footer__social a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(245, 245, 244, 0.7);
}

.n13-footer__social a:hover {
  color: #9bb6e0;
  border-color: #9bb6e0;
}

.n13-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
}

.n13-footer__links a {
  font-size: 0.85rem;
  color: rgba(245, 245, 244, 0.65);
  font-weight: 600;
}

.n13-footer__links a:hover {
  color: #9bb6e0;
}

.n13-footer__copy {
  margin: 1.75rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  color: rgba(245, 245, 244, 0.45);
}

/* Back to top — override common/ads.css teal pill */
.n13-back-to-top.back-to-top {
  right: 1rem !important;
  bottom: 5rem !important;
  z-index: 55 !important;
  width: 44px !important;
  height: 44px !important;
  border: 1px solid var(--n13-line) !important;
  border-radius: 0 !important;
  background: var(--n13-ink) !important;
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(18, 18, 18, 0.22) !important;
  opacity: 0;
  visibility: hidden;
  display: grid !important;
  place-items: center;
  cursor: pointer;
  backdrop-filter: none !important;
  font-size: inherit !important;
  transition: opacity 0.2s ease, visibility 0.2s ease, background 0.2s ease, transform 0.2s ease !important;
}

.n13-back-to-top.back-to-top.show {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.n13-back-to-top.back-to-top:not(.show) {
  transform: none !important;
}

.n13-back-to-top.back-to-top:hover {
  background: var(--n13-accent) !important;
  color: #fff !important;
  transform: none !important;
  box-shadow: 0 8px 20px rgba(11, 61, 145, 0.35) !important;
}

.n13-back-to-top.back-to-top:active {
  transform: none !important;
}

.n13-back-to-top.back-to-top::before {
  display: none !important;
  animation: none !important;
}

@media (min-width: 768px) {
  .n13-back-to-top.back-to-top {
    bottom: 1.5rem !important;
  }
}

body.cookie-banner-visible .n13-back-to-top.back-to-top {
  bottom: calc(0.75rem + var(--cookie-banner-h, 140px)) !important;
  z-index: 10001 !important;
}

@media (min-width: 768px) {
  body.cookie-banner-visible .n13-back-to-top.back-to-top {
    bottom: calc(1rem + var(--cookie-banner-h, 140px)) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .n13-lead__title,
  .is-pending,
  .is-in {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }

  .detail-favorite-btn__spinner {
    animation: none;
  }
}
