/* ============================================================
   /press/ — the public press kit.
   Loaded only on page-press.php via nnpress_enqueue().

   Runs the BLOG device tokens (Royal #2D7FF0, mist #EAF1FD, ink
   #101727), not the lander kit in ai-ads-landing.css, which uses
   its own #4b6cf7 primary. This page is a brand-identity artifact:
   it has to be the brand, not a lander variant of it.

   Everything is namespaced .nn-press so it cannot collide with the
   theme or with .nn-landing. Single light theme on purpose, because
   namynot.com is a light site and a press page that flips with the
   reader's OS is a page nobody can screenshot consistently.
   ============================================================ */

.edgtf-content .nn-press { margin: 0; padding: 0; }

.nn-press {
  --p-royal: #2D7FF0;
  --p-royal-deep: #1B62C6;
  --p-mist: #EAF1FD;
  --p-ink: #101727;
  --p-ink-soft: #3A4457;
  --p-gray: #6B7280;
  --p-line: #E1E7EF;
  --p-line-strong: #CBD5E3;
  --p-surface: #FFFFFF;
  --p-surface-2: #F4F7FB;
  --p-ground: #FBFCFE;
  --p-shadow: 0 1px 2px rgba(16,23,39,.05), 0 8px 24px -12px rgba(16,23,39,.14);

  background: var(--p-ground);
  color: var(--p-ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
.nn-press *, .nn-press *::before, .nn-press *::after { box-sizing: border-box; }

.nn-press__wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px 96px; }

/* ---------- masthead ---------- */
.nn-press__masthead {
  border-bottom: 1px solid var(--p-line);
  padding: 72px 0 40px;
  display: grid;
  gap: 22px;
}
.nn-press__kicker {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--p-royal);
  display: flex;
  align-items: center;
  gap: 10px;
}
.nn-press__kicker::before {
  content: "";
  width: 22px; height: 3px;
  background: var(--p-royal);
  border-radius: 2px;
  flex: none;
}
.nn-press h1.nn-press__h1 {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.08;
  font-size: clamp(2.6rem, 6vw, 4.1rem);
  margin: 0;
  color: var(--p-ink);
  text-wrap: balance;
}
.nn-press .nn-bp { color: var(--p-royal); }
.nn-press__standfirst {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--p-ink-soft);
  max-width: 62ch;
  margin: 0;
}

/* ---------- layout ---------- */
.nn-press__cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 312px;
  gap: 56px;
  align-items: start;
  padding-top: 48px;
}
.nn-press__main { display: grid; gap: 60px; min-width: 0; }
.nn-press__rail { position: sticky; top: 24px; display: grid; gap: 18px; }

@media (max-width: 940px) {
  .nn-press__cols { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .nn-press__rail { position: static; }
}

.nn-press__sec { display: grid; gap: 20px; scroll-margin-top: 96px; }
.nn-press h2.nn-press__h2 {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 800;
  letter-spacing: -.02em;
  font-size: 1.62rem;
  line-height: 1.2;
  margin: 0;
  color: var(--p-ink);
  text-wrap: balance;
}
.nn-press h2.nn-press__eyebrow,
.nn-press h3.nn-press__eyebrow {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--p-gray);
  margin: 0;
  line-height: 1.4;
}
.nn-press p { margin: 0; max-width: 66ch; color: var(--p-ink-soft); }
.nn-press strong { color: var(--p-ink); font-weight: 600; }
.nn-press a { color: var(--p-royal); text-decoration-thickness: 1px; text-underline-offset: 2px; }
.nn-press a:focus-visible,
.nn-press button:focus-visible { outline: 2px solid var(--p-royal); outline-offset: 3px; border-radius: 4px; }
.nn-press__rule { height: 1px; background: var(--p-line); border: 0; margin: 0; }
.nn-press__note { color: var(--p-gray); font-size: .88em; }

/* ---------- brand devices ---------- */
.nn-press .nn-hl {
  background: var(--p-mist);
  font-weight: 600;
  color: var(--p-ink);
  padding: .08em .28em;
  border-radius: 3px;
  /* a two-word term split across a line break leaves an orphaned wash */
  white-space: nowrap;
}
.nn-press p.nn-callout {
  background: var(--p-mist);
  border-left: 3px solid var(--p-royal);
  padding: 20px 24px;
  border-radius: 0 8px 8px 0;
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.12rem;
  line-height: 1.45;
  color: var(--p-ink);
  max-width: none;
}

/* ---------- copy blocks ---------- */
.nn-press__block {
  background: var(--p-surface);
  border: 1px solid var(--p-line);
  border-radius: 10px;
  padding: 22px 24px;
  box-shadow: var(--p-shadow);
  display: grid;
  gap: 12px;
}
.nn-press__block > div { display: grid; gap: 12px; }
.nn-press__blockhead {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.nn-press__block p { max-width: 64ch; }

.nn-press__copy {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--p-royal);
  background: transparent;
  border: 1px solid var(--p-line-strong);
  border-radius: 6px;
  padding: 5px 11px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.nn-press__copy:hover { border-color: var(--p-royal); background: var(--p-mist); }
.nn-press__copy[data-copied="1"] { border-color: var(--p-royal); background: var(--p-royal); color: #fff; }

/* ---------- portrait ---------- */
.nn-press__portrait { margin: 0; display: grid; gap: 10px; max-width: 320px; }
.nn-press__portrait img {
  width: 100%; height: auto; display: block;
  border-radius: 10px;
  border: 1px solid var(--p-line);
  box-shadow: var(--p-shadow);
}
.nn-press__portrait figcaption { color: var(--p-gray); font-size: .84rem; line-height: 1.5; }

/* ---------- tables ---------- */
.nn-press__tablewrap {
  overflow-x: auto;
  border: 1px solid var(--p-line);
  border-radius: 10px;
  background: var(--p-surface);
  box-shadow: var(--p-shadow);
}
.nn-press table.nn-press__table {
  border-collapse: collapse;
  width: 100%;
  font-size: .93rem;
  margin: 0;
  border: 0;
}
.nn-press__table th,
.nn-press__table td {
  text-align: left;
  padding: 13px 18px;
  border-bottom: 1px solid var(--p-line);
  vertical-align: top;
  color: var(--p-ink-soft);
  background: transparent;
}
.nn-press__table tbody tr:last-child th,
.nn-press__table tbody tr:last-child td { border-bottom: 0; }
.nn-press__table tbody th[scope="row"] {
  font-weight: 600;
  white-space: nowrap;
  color: var(--p-ink);
  width: 1%;
}
.nn-press__table thead th {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--p-gray);
  background: var(--p-surface-2);
  border-bottom: 1px solid var(--p-line-strong);
  white-space: nowrap;
}
.nn-press__src {
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
  font-size: .78rem;
  color: var(--p-gray);
}
.nn-press__asof {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--p-gray);
  font-size: .85rem;
}

/* ---------- lists ---------- */
.nn-press ul.nn-press__list {
  margin: 0; padding: 0; list-style: none;
  display: grid; gap: 12px;
}
.nn-press ul.nn-press__list li {
  padding-left: 20px; position: relative; max-width: 66ch;
  color: var(--p-ink-soft); margin: 0;
}
.nn-press ul.nn-press__list li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 7px; height: 7px; border-radius: 2px; background: var(--p-royal);
}
.nn-press ol.nn-press__steps {
  margin: 0; padding: 0; list-style: none;
  display: grid; gap: 16px; counter-reset: nnpstep;
}
.nn-press ol.nn-press__steps li {
  counter-increment: nnpstep; position: relative; padding-left: 42px;
  max-width: 66ch; color: var(--p-ink-soft); margin: 0;
}
.nn-press ol.nn-press__steps li::before {
  content: counter(nnpstep, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 800; font-size: .8rem;
  color: var(--p-royal); letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
}

/* ---------- rail cards ---------- */
.nn-press__card {
  background: var(--p-surface);
  border: 1px solid var(--p-line);
  border-radius: 10px;
  padding: 20px;
  box-shadow: var(--p-shadow);
  display: grid;
  gap: 12px;
}
.nn-press__card--accent { border-color: var(--p-royal); background: var(--p-mist); }
.nn-press__card p { font-size: .9rem; max-width: none; }
.nn-press__cl { display: grid; gap: 2px; }
.nn-press__cllabel {
  font-size: .72rem; color: var(--p-gray); letter-spacing: .06em;
  text-transform: uppercase; font-weight: 600;
}
.nn-press__clval { font-weight: 600; word-break: break-word; font-size: .92rem; color: var(--p-ink); }

.nn-press__toc { display: grid; gap: 9px; }
.nn-press__toc a {
  text-decoration: none; color: var(--p-ink-soft); font-size: .89rem;
  display: flex; gap: 10px; align-items: baseline;
}
.nn-press__toc a:hover { color: var(--p-royal); }
.nn-press__n {
  font-family: ui-monospace, Consolas, monospace; font-size: .72rem;
  color: var(--p-gray); font-variant-numeric: tabular-nums; flex: none;
}

/* ---------- downloads ---------- */
.nn-press a.nn-btn.nn-press__dl {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--p-royal); color: #fff; text-decoration: none;
  font-family: 'Poppins', 'Inter', sans-serif; font-weight: 700; font-size: .86rem;
  padding: 11px 15px; border-radius: 8px; border: 1px solid var(--p-royal);
  transition: filter .15s ease;
}
.nn-press a.nn-btn.nn-press__dl:hover { filter: brightness(1.08); color: #fff; }
.nn-press__fmt {
  font-family: ui-monospace, Consolas, monospace; font-size: .68rem; font-weight: 400;
  opacity: .82; letter-spacing: .04em;
}
.nn-press a.nn-btn.nn-press__dl--quiet {
  background: transparent; color: var(--p-royal); border-color: var(--p-line-strong);
}
.nn-press a.nn-btn.nn-press__dl--quiet:hover {
  border-color: var(--p-royal); filter: none; color: var(--p-royal);
}

@media (prefers-reduced-motion: reduce) {
  .nn-press a.nn-btn.nn-press__dl,
  .nn-press__copy { transition: none; }
}
