/* SG Systems Weekly Brief — long-read layer on top of app/shared/base.css.
 *
 * A brief is read, not scanned: one narrow column, generous rhythm between
 * stories, and a blur panel behind every story so the field never sits under
 * running text.
 */

.n-wrap { max-width: 50rem; }

h1.n-title { font-size: clamp(2rem, 5.6vw, 3.6rem); margin-top: 0.6rem; }

.n-period {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  letter-spacing: 0.04em;
  margin-top: 0.8rem;
}

.n-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  margin-top: 1.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

.n-intro { font-size: 1.12em; color: var(--fg); opacity: 0.86; margin-top: 1.6rem; }

/* ------------------------------------------------------------------ toc */

.n-toc { margin: 2.4rem 0 1rem; }
.n-toc ol { list-style: none; margin-top: 0.8rem; border-top: 1px solid var(--line); }
.n-toc li { border-bottom: 1px solid var(--line); }

.n-toc a {
  display: flex;
  gap: 1.2rem;
  align-items: baseline;
  padding: 0.85rem 0;
  color: var(--fg);
  text-decoration: none;
  transition: opacity 0.2s;
}

.n-toc a:hover { opacity: 0.7; }

.n-toc a span {
  flex: 0 0 10rem;
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--dim);
}

/* --------------------------------------------------------------- stories */

.n-story, .n-perspective {
  position: relative;
  margin-top: clamp(3rem, 9vh, 5rem);
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: 4.5rem;
}

.n-story::before, .n-perspective::before, .n-toc::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -1rem -1.6rem;
  pointer-events: none;
  background: rgba(5, 5, 5, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  -webkit-mask-image: linear-gradient(#000 85%, transparent);
  mask-image: linear-gradient(#000 85%, transparent);
}

.n-toc { position: relative; }

.n-tag {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1rem;
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--faint);
}

.n-tag span:last-child { color: var(--dim); }

.n-headline {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(1.4rem, 3.4vw, 2.2rem);
  line-height: 1;
  letter-spacing: -0.005em;
  margin: 0.8rem 0 0.4rem;
}

.n-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--dim);
  font-weight: 500;
  margin: 2rem 0 0.7rem;
}

.n-story p, .n-perspective > p:not(.sg-index) {
  max-width: 44rem;
  margin: 0 0 1em;
  color: rgba(255, 255, 255, 0.86);
}

.n-source {
  font-size: 0.85em;
  color: var(--dim) !important;
}

.n-source a, .n-inline {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--faint);
  transition: border-color 0.2s;
}

.n-source a:hover, .n-inline:hover { border-color: var(--fg); }
.n-source span { margin-left: 0.6em; color: var(--faint); }
.n-source span::before { content: "· "; }

.n-watch {
  margin-top: 1.8rem;
  padding: 0.2rem 0 0.2rem 1.2rem;
  border-left: 2px solid var(--fg);
}

.n-watch .n-label { margin-top: 0.4rem; }
.n-watch p { color: var(--fg); font-weight: 500; }

.n-perspective h2 { margin: 0.8rem 0 1.4rem; }

/* ------------------------------------------------------------ index/pager */

.n-list { display: grid; gap: clamp(1.6rem, 4vw, 2.6rem); margin-top: 2.5rem; }

.n-card h3 { font-size: clamp(1.2rem, 2.4vw, 1.7rem); }
.n-card h3 a { color: var(--fg); text-decoration: none; }
.n-card > p:not(.sg-card-meta):not(.sg-card-foot) { max-width: 44rem; }

.n-pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
}

@media (max-width: 720px) {
  .n-toc a { flex-direction: column; gap: 0.3rem; }
  .n-toc a span { flex: none; }
}

@media print {
  #sg-field, .sg-bar, .n-pager, .sg-btn { display: none !important; }
  body { background: #fff; color: #000; }
  .sg-main * { color: #000 !important; text-shadow: none !important; -webkit-text-stroke: 0 !important; }
  .n-watch { border-left-color: #000; }
  .n-story::before, .n-perspective::before, .n-toc::before { display: none; }
}
