/* news_tgn_0008 — FOLIO SPLIT（对开栏） */
:root {
  --n8-paper: #f2f4f7;
  --n8-ink: #0c1222;
  --n8-muted: #5c6678;
  --n8-accent: #1f5c8a;
  --n8-panel: #ffffff;
  --n8-band: #e6ebf1;
  --n8-line: rgba(12, 18, 34, 0.14);
  --n8-font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --n8-font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --n8-mast-h: 68px;
  --n8-max: 1180px;
  --navbar-h: 68px;
  /* Shared tokens used by pagination / cookie-consent */
  --color-primary: #0c1222;
  --color-primary-light: #1f5c8a;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--n8-font-body);
  color: var(--n8-ink);
  background:
    linear-gradient(180deg, var(--n8-band) 0, transparent 180px),
    var(--n8-paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 0;
}

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

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

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

.n8-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;
}

button,
input {
  font: inherit;
}

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

/* —— Ad —— */
.n8-ad-slot {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 72px;
  margin: 1.25rem 0;
  width: 100%;
}

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

.n8-ad-slot .banner-ad,
.n8-ad-slot .ad-content,
.n8-ad-slot iframe,
.n8-ad-slot ins {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* —— Folio Mast —— */
.n8-mast {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--n8-mast-h);
  background: var(--n8-panel);
  border-top: 3px solid var(--n8-ink);
  border-bottom: 1px solid var(--n8-ink);
  box-shadow: 0 1px 0 var(--n8-line);
}

.n8-mast.is-scrolled {
  box-shadow: 0 8px 20px rgba(12, 18, 34, 0.08);
}

.n8-mast__inner {
  min-height: var(--n8-mast-h);
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.n8-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--n8-font-display);
  font-weight: 650;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  flex-shrink: 0;
  max-width: 42vw;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.n8-nav-logo {
  height: 28px;
  width: auto;
  max-width: 120px;
  max-height: 28px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
  object-position: left center;
}
.n8-nav-logo[hidden] {
  display: none;
}
.n8-nav-brand-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.n8-menu a {
  position: relative;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: none;
  color: var(--n8-muted);
  padding: 0.25rem 0;
}

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

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

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

.n8-menu a.is-active {
  color: var(--n8-ink);
}

.n8-nav-menus {
  display: none;
  position: relative;
  align-items: center;
  justify-content: flex-start;
  flex: 1 1 auto;
  gap: 1.15rem;
  min-width: 0;
  height: 100%;
}
@media (min-width: 768px) {
  .n8-nav-menus {
    display: flex;
  }
  .n8-nav-menus.n8-nav-menus--pending {
    visibility: hidden;
  }
}
.n8-menu.is-measuring {
  overflow: visible;
}
.n8-menu > li.is-overflow {
  display: none !important;
}
.n8-menu > li {
  flex: 0 0 auto;
  white-space: nowrap;
}
.n8-nav-more {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  height: 100%;
}
.n8-nav-more[hidden] {
  display: none !important;
}
.n8-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(--n8-muted);
  white-space: nowrap;
  cursor: pointer;
}
.n8-nav-more-btn i {
  font-size: 0.65rem;
  transition: transform 0.2s ease;
}
.n8-nav-more.is-open .n8-nav-more-btn,
.n8-nav-more-btn:hover,
.n8-nav-more-btn:focus-visible {
  color: var(--n8-accent);
}
.n8-nav-more.has-active .n8-nav-more-btn {
  color: var(--n8-ink);
}
.n8-nav-more.is-open .n8-nav-more-btn i {
  transform: rotate(180deg);
}
.n8-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(--n8-line);
  background: var(--n8-panel);
  box-shadow: 0 12px 28px rgba(12, 18, 34, 0.14);
}
.n8-nav-more-panel[hidden] {
  display: none !important;
}
.n8-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(--n8-muted);
  white-space: normal;
  overflow-wrap: anywhere;
  text-decoration: none;
}
.n8-nav-more-panel .nav-menu-item:hover,
.n8-nav-more-panel .nav-menu-item:focus-visible {
  background: rgba(12, 18, 34, 0.06);
  color: var(--n8-accent);
}
.n8-nav-more-panel .nav-menu-item.is-active {
  color: var(--n8-ink);
  background: rgba(12, 18, 34, 0.08);
}

.n8-mast__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

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

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

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

.n1-nav-user-profile {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 10rem;
  min-width: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--n8-ink);
  padding: 0.2rem 0.65rem 0.2rem 0.2rem;
  border-radius: 2rem;
  border: 1px solid var(--n8-line);
  background: var(--n8-paper);
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.n1-nav-user-profile:hover {
  border-color: var(--n8-accent);
  background: rgba(31, 92, 138, 0.08);
}

.n1-nav-user-profile:hover .n1-nav-user-name {
  color: var(--n8-accent);
}

.n1-nav-user-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--n8-ink);
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.n1-nav-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--n8-accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  border: 1.5px solid rgba(31, 92, 138, 0.35);
  flex-shrink: 0;
  overflow: hidden;
}

.n1-nav-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.n1-nav-logout {
  border: 1px solid var(--n8-line);
  border-radius: 0.5rem;
  background: var(--n8-paper);
  color: var(--n8-muted);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  line-height: 1;
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.n1-nav-logout:hover {
  color: #fff;
  background: var(--n8-accent);
  border-color: var(--n8-accent);
}

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

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

/* Mobile bottom nav */
.mobile-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: var(--n8-panel);
  border-top: 1px solid var(--n8-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: 600;
  color: var(--n8-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(--n8-accent);
}

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

/* Search overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(12, 18, 34, 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;
  min-width: 44px;
  min-height: 44px;
}

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

.search-input-wrapper {
  display: flex;
  background: var(--n8-panel);
  border: 2px solid var(--n8-ink);
}

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

.search-submit {
  border: 0;
  background: var(--n8-ink);
  color: #fff;
  padding: 0 1.1rem;
  cursor: pointer;
  min-width: 48px;
}

.search-submit:hover {
  background: var(--n8-accent);
}

/* —— Shared section chrome —— */
.n8-section-kicker {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid var(--n8-ink);
}

.n8-section-kicker h2,
.n8-section-kicker__title {
  margin: 0;
  font-family: var(--n8-font-display);
  font-size: 1.4rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.n8-view-all {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--n8-accent);
  white-space: nowrap;
}

.n8-view-all:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.n8-link-title:hover {
  background-size: 100% 2px;
}

.n8-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 0.85rem;
  font-size: 0.8125rem;
  color: var(--n8-muted);
}

.n8-meta .cat {
  color: var(--n8-accent);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

@keyframes n8-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes n8-slide {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .n8-open__lead,
  .n8-feature.is-pending,
  .n8-feature.is-in {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* —— Open Folio ($index==0) —— */
.n8-open {
  padding: 1.75rem 0 2.25rem;
  background: var(--n8-panel);
  border-bottom: 1px solid var(--n8-line);
}

.n8-open__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 960px) {
  .n8-open__grid {
    grid-template-columns: minmax(0, 7fr) minmax(240px, 3fr);
    gap: 2.5rem;
    align-items: start;
  }
}

.n8-open__lead {
  animation: n8-rise 0.5s ease-out forwards;
}

.n8-open__eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--n8-accent);
  margin-bottom: 0.65rem;
}

.n8-open__title {
  margin: 0 0 0.85rem;
  font-family: var(--n8-font-display);
  font-size: clamp(1.85rem, 4.2vw, 2.85rem);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.n8-open__deck {
  margin: 0;
  color: var(--n8-muted);
  font-size: 1.05rem;
  max-width: 40rem;
}

.n8-open__media {
  margin-top: 1.25rem;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--n8-band);
}

.n8-open__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.n8-aside {
  border-top: 2px solid var(--n8-ink);
  padding-top: 0.85rem;
}

.n8-aside__label {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--n8-muted);
}

.n8-brief {
  display: block;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--n8-line);
}

.n8-brief:last-child {
  border-bottom: 0;
}

.n8-brief__title {
  margin: 0.25rem 0 0;
  font-family: var(--n8-font-display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.n8-brief .n8-meta {
  margin-top: 0;
}

/* —— Feature Run ($index==1) —— */
.n8-features {
  padding: 2.5rem 0;
  background: var(--n8-band);
}

.n8-feature {
  display: grid;
  gap: 1.25rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--n8-line);
}

/* Only off-screen features start hidden — keeps Speed Index from stalling */
.n8-feature.is-pending {
  opacity: 0;
  transform: translateX(-10px);
}

.n8-feature.is-in {
  animation: n8-slide 0.45s ease-out both;
}

.n8-feature:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.n8-feature:first-of-type {
  padding-top: 0;
}

.n8-feature__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--n8-panel);
}

.n8-feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.n8-feature:hover .n8-feature__media img {
  transform: scale(1.03);
}

.n8-feature__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.n8-feature__title {
  margin: 0.35rem 0 0.65rem;
  font-family: var(--n8-font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.n8-feature__summary {
  margin: 0;
  color: var(--n8-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 860px) {
  .n8-feature {
    grid-template-columns: 1.05fr 1fr;
    gap: 2rem;
    align-items: center;
  }

  .n8-feature--flip {
    grid-template-columns: 1fr 1.05fr;
  }

  .n8-feature--flip .n8-feature__media {
    order: 2;
  }

  .n8-feature--flip .n8-feature__copy {
    order: 1;
  }
}

/* —— Column Run ($index>=2) —— */
.n8-columns {
  padding: 2.5rem 0 1rem;
  content-visibility: auto;
  contain-intrinsic-size: 800px;
}

.n8-columns + .n8-columns {
  border-top: 8px solid var(--n8-band);
}

.n8-col-list {
  display: grid;
  gap: 0;
}

.n8-col-row {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 1.1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--n8-line);
  align-items: start;
}

.n8-col-row__media {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--n8-band);
}

.n8-col-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.n8-col-row__title {
  margin: 0.2rem 0 0.4rem;
  font-family: var(--n8-font-display);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.n8-col-row__summary {
  margin: 0;
  color: var(--n8-muted);
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 560px) {
  .n8-col-row {
    grid-template-columns: 88px 1fr;
    gap: 0.85rem;
  }
}

/* —— Newsletter —— */
.n8-news {
  margin-top: 1rem;
  padding: 2rem 0;
  background: var(--n8-ink);
  color: #e8ecf2;
}

.n8-news__inner {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .n8-news__inner {
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 2rem;
  }
}

.n8-news__title {
  margin: 0 0 0.35rem;
  font-family: var(--n8-font-display);
  font-size: 1.55rem;
  font-weight: 650;
}

.n8-news__text {
  margin: 0;
  color: rgba(232, 236, 242, 0.78);
  max-width: 28rem;
}

.n8-news__form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: stretch;
}

.n8-news__form input[type="email"] {
  min-width: min(100%, 240px);
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  padding: 0.75rem 0.9rem;
  min-height: 48px;
}

.n8-news__form input::placeholder {
  color: rgba(232, 236, 242, 0.55);
}

.n8-news__form button {
  border: 0;
  background: var(--n8-accent);
  color: #fff;
  font-weight: 700;
  padding: 0.75rem 1.2rem;
  cursor: pointer;
  min-height: 48px;
}

.n8-news__form button:hover {
  filter: brightness(1.08);
}

.n8-news .newsletter-status {
  width: 100%;
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
}

/* —— Footer —— */
.n8-footer {
  padding: 2.5rem 0 2rem;
  background: var(--n8-panel);
  border-top: 2px solid var(--n8-ink);
}

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

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

.n8-footer__brand {
  display: inline-block;
  margin-bottom: 0.65rem;
  font-family: var(--n8-font-display);
  font-size: 1.35rem;
  font-weight: 650;
}

.n8-footer p {
  color: var(--n8-muted);
  font-size: 0.95rem;
}

.n8-footer__social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

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

.n8-footer__social a:hover {
  border-color: var(--n8-accent);
  color: var(--n8-accent);
}

.n8-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 1rem;
}

.n8-footer__links a {
  font-size: 0.875rem;
  color: var(--n8-muted);
}

.n8-footer__links a:hover {
  color: var(--n8-accent);
}

.n8-footer__copy {
  margin: 1.75rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--n8-line);
  font-size: 0.8125rem;
  color: var(--n8-muted);
}

.back-to-top,
.n8-back-to-top {
  position: fixed;
  right: 1rem;
  bottom: calc(4.5rem + env(safe-area-inset-bottom));
  z-index: 40;
  width: 44px;
  height: 44px;
  border: 1px solid var(--n8-line);
  background: var(--n8-panel);
  color: var(--n8-ink);
  display: none;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(12, 18, 34, 0.1);
}

.back-to-top.show,
.n8-back-to-top.show {
  display: grid;
}

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

/* —— Detail —— */
.n8-share {
  display: none;
}

@media (min-width: 1100px) {
  .n8-share {
    position: fixed;
    /* 40px rail + ~1.5rem gutter before the article column */
    left: max(0.75rem, calc((100vw - var(--n8-max)) / 2 - 5.5rem));
    top: calc(var(--navbar-h) + 6rem);
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

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

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

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

.n8-article__cat {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--n8-accent);
  margin-bottom: 0.75rem;
}

.n8-article__title {
  margin: 0 0 1rem;
  font-family: var(--n8-font-display);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: none;
}

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

.n8-article__cover {
  margin-bottom: 1.75rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--n8-band);
  max-width: 100%;
}

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

.n8-article__body {
  max-width: none;
  width: 100%;
  font-size: 1.0625rem;
  line-height: 1.75;
}

.n8-article__body p {
  margin: 0 0 1.15rem;
}

.n8-article__body h2,
.n8-article__body h3 {
  font-family: var(--n8-font-display);
  letter-spacing: -0.02em;
  margin: 1.75rem 0 0.75rem;
}

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

.n8-related {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--n8-ink);
}

.n8-related h2 {
  margin: 0 0 1rem;
  font-family: var(--n8-font-display);
  font-size: 1.35rem;
}

.detail-favorite-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--n8-line);
  background: var(--n8-paper);
  color: var(--n8-ink);
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  min-height: 40px;
  font-size: 0.8125rem;
  font-weight: 600;
}

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

.detail-favorite-btn.is-active {
  border-color: var(--n8-accent);
  color: var(--n8-accent);
}

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

.detail-favorite-btn.is-loading .detail-favorite-btn__spinner {
  display: inline-block;
}

.detail-favorite-btn.is-loading .detail-favorite-btn__icon {
  display: none;
}

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

/* —— Category / page —— */
.n8-page {
  padding: 1.5rem 0 3rem;
}

.n8-page__title {
  margin: 0 0 0.5rem;
  font-family: var(--n8-font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 650;
  letter-spacing: -0.02em;
}

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

.n8-chips {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.n8-chips a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--n8-line);
  background: var(--n8-panel);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--n8-muted);
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.n8-chips a:hover {
  border-color: var(--n8-accent);
  color: var(--n8-accent);
}

.n8-chips a.is-active {
  border-color: var(--n8-ink);
  background: var(--n8-ink);
  color: #fff;
}

.n8-empty {
  padding: 3rem 1rem;
  text-align: center;
  color: var(--n8-muted);
  background: var(--n8-panel);
  border: 1px dashed var(--n8-line);
}

.n8-empty h2 {
  margin: 0 0 0.5rem;
  font-family: var(--n8-font-display);
  color: var(--n8-ink);
}

/* Legal / static */
.n8-legal,
.legal-content {
  width: min(100% - 2rem, 760px);
  margin: 1.5rem auto 3rem;
  padding: 1.5rem;
  background: var(--n8-panel);
  border: 1px solid var(--n8-line);
}

.n8-legal h1,
.legal-content h1 {
  font-family: var(--n8-font-display);
  letter-spacing: -0.02em;
}

/* Profile / login shell */
.n8-auth-page,
.n8-profile-page {
  padding: 1.5rem 0 3rem;
}

/* Preview banner */
.n8-preview-note {
  background: var(--n8-ink);
  color: #fff;
  text-align: center;
  padding: 0.55rem 1rem;
  font-size: 0.8rem;
}
