/* ==========================================================================
   THE NEW PHYSICIAN, FRONT DOOR LAYER (site.css)
   Additive stylesheet for the redesigned root pages.
   Loads AFTER theme-core.css and does not modify its tokens.
   Legacy pages (home-classic.html, /advisory/*, etc.) do not load this file.
   ========================================================================== */

body.np-page {
  padding-top: 80px;
  background-color: var(--bg-dark);
}

/* ---------- Header (new pages) ---------- */
.np-header .header-inner {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.np-header .logo { letter-spacing: 1px; }

.np-brandmark {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.np-brandmark img { height: 36px; width: 36px; object-fit: contain; }
.np-brandmark .wordmark {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 1.5px;
  color: var(--text-white);
  text-transform: uppercase;
  line-height: 1.2;
}
.np-brandmark .wordmark small {
  display: block;
  font-weight: 400;
  font-size: 0.62rem;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  text-transform: none;
}

.np-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.np-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.25s ease;
}
.np-nav a:hover { color: var(--text-white); }
.np-nav a.active { color: var(--accent-gold); }

.np-cta {
  border: 1px solid rgba(212, 175, 55, 0.55);
  color: var(--accent-gold) !important;
  padding: 8px 18px;
  border-radius: 99px;
  font-weight: 700 !important;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.np-cta:hover {
  background: var(--accent-gold);
  color: #000 !important;
}

/* Mobile menu */
.np-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-main);
  font-size: 1.2rem;
  line-height: 1;
  padding: 8px 12px;
  cursor: pointer;
}
.np-mobile-nav {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.97);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 6% 20px;
  z-index: 999;
}
.np-mobile-nav a {
  display: block;
  padding: 12px 4px;
  color: var(--text-main);
  text-decoration: none;
  font-size: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.np-mobile-nav a:last-child { border-bottom: none; }
.np-mobile-nav a.np-cta-mobile {
  margin-top: 10px;
  text-align: center;
  border: 1px solid rgba(212, 175, 55, 0.55);
  border-radius: 99px;
  color: var(--accent-gold);
  font-weight: 700;
}
.np-mobile-nav.open { display: block; }

@media (max-width: 980px) {
  .np-nav { display: none; }
  .np-menu-btn { display: block; }
}

/* ---------- Layout primitives ---------- */
.np-wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; }
.np-wrap-narrow { max-width: 780px; margin: 0 auto; padding: 0 1.5rem; }

.np-section { padding: 4.5rem 0; }
.np-section + .np-section { border-top: 1px solid var(--border-color); }

.np-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 0.9rem;
}

h1.np-display, h2.np-display, h3.np-display {
  font-family: var(--font-serif);
  color: var(--text-white);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.3px;
}
h1.np-display { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2.np-display { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3.np-display { font-size: 1.25rem; }

.np-lede {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-main);
  font-weight: 300;
  max-width: 46em;
  line-height: 1.75;
}

.np-muted { color: var(--text-muted); }

/* ---------- Buttons ---------- */
.np-btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  font-family: var(--font-sans);
}
.np-btn-gold {
  background: var(--accent-gold);
  color: #000;
  border: 1px solid var(--accent-gold);
}
.np-btn-gold:hover { background: #fff; border-color: #fff; }
.np-btn-ghost {
  background: transparent;
  color: var(--text-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.np-btn-ghost:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}
.np-btn-quiet {
  color: var(--accent-gold);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.np-btn-quiet:hover { text-decoration: underline; }

/* ---------- Cards ---------- */
.np-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 2rem;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.np-card:hover { border-color: rgba(212, 175, 55, 0.4); }

.np-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
/* Wider-left split (form + aside); collapses to one column on mobile. */
@media (min-width: 901px) {
  .np-discuss-cols { grid-template-columns: 3fr 2fr; }
}
.np-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.np-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 900px) {
  .np-grid-2, .np-grid-3, .np-grid-4 { grid-template-columns: 1fr; }
  .np-grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .np-grid-4 { grid-template-columns: 1fr; }
}

.np-area-card h3 {
  font-family: var(--font-serif);
  color: var(--text-white);
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
}
.np-area-card p { font-size: 0.92rem; color: var(--text-muted); margin-bottom: 1.4rem; }
.np-area-card .np-btn { padding: 10px 22px; font-size: 0.75rem; }

/* Numbered frameworks (Systems Diagnostic, Business Triage) */
.np-framework {
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 14px;
  background: rgba(22, 26, 33, 0.6);
  overflow: hidden;
}
.np-framework header.np-framework-head {
  position: static;
  height: auto;
  display: block;
  background: rgba(212, 175, 55, 0.07);
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  padding: 1.2rem 1.8rem;
  backdrop-filter: none;
}
.np-framework ol { list-style: none; }
.np-framework li {
  display: flex;
  gap: 1.2rem;
  align-items: baseline;
  padding: 1.05rem 1.8rem;
  border-bottom: 1px solid var(--border-color);
}
.np-framework li:last-child { border-bottom: none; }
.np-framework .num {
  font-family: var(--font-serif);
  color: var(--accent-gold);
  font-size: 1.3rem;
  font-weight: 700;
  min-width: 2ch;
}
.np-framework .step-title {
  color: var(--text-white);
  font-weight: 600;
}
.np-framework .step-note {
  color: var(--text-muted);
  font-size: 0.88rem;
  display: block;
}

/* Paper cards (match legacy .ssrn-item look) */
.np-paper {
  padding: 1rem;
  background: rgba(10, 10, 10, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 8px;
}
.np-paper a.title {
  color: var(--text-main);
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  display: block;
}
.np-paper a.title:hover { color: var(--accent-gold); }
.np-paper .meta { font-size: 0.75rem; color: var(--accent-gold); margin: 4px 0; }
.np-paper p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

/* Book strip */
.np-bookstrip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .np-bookstrip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .np-bookstrip { grid-template-columns: 1fr; } }
.np-bookcover {
  position: relative;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  aspect-ratio: 2 / 3;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.np-bookcover:hover { transform: translateY(-4px); border-color: rgba(212, 175, 55, 0.5); }
.np-bookcover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.np-bookcover .status {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(212, 175, 55, 0.5);
  color: var(--accent-gold);
}
.np-bookcover .status.published { background: var(--accent-gold); color: #000; border-color: var(--accent-gold); }
.np-booktitle { margin-top: 0.7rem; text-align: center; }
.np-booktitle .t { color: var(--text-white); font-weight: 600; font-size: 0.95rem; }
.np-booktitle .s { color: var(--text-muted); font-size: 0.75rem; }

/* Project tiles */
.np-project {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 1.6rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
}
a.np-project { color: var(--accent-gold); text-decoration: none; transition: border-color 0.25s ease, transform 0.25s ease; }
a.np-project:hover { border-color: var(--accent-gold); transform: translateY(-2px); }
a.np-project:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 3px; }
a.np-project:hover .plink { text-decoration: underline; }
.np-project .plogo {
  display: flex;
  align-items: center;
}
.np-project .plogo img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--border-color);
}
.np-project .pname { color: var(--text-white); font-weight: 700; letter-spacing: 0.5px; }
.np-project .prole {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-gold);
}
.np-project p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }
.np-project .plink { color: var(--accent-gold); font-size: 0.8rem; text-decoration: none; font-weight: 600; }

/* Discipline questions */
.np-questions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 2.5rem;
  margin: 2rem 0;
}
@media (max-width: 700px) { .np-questions { grid-template-columns: 1fr; } }
.np-questions .q {
  font-family: var(--font-serif);
  color: var(--text-white);
  font-size: 1.1rem;
  border-left: 2px solid rgba(212, 175, 55, 0.5);
  padding-left: 1rem;
}

/* Notices / disclaimers */
.np-notice {
  border: 1px solid var(--border-color);
  border-left: 3px solid rgba(212, 175, 55, 0.6);
  background: rgba(22, 26, 33, 0.5);
  border-radius: 8px;
  padding: 1.1rem 1.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.np-notice strong { color: var(--text-main); }

/* Forms */
.np-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 6px;
}
.np-form .optional { color: var(--text-muted); font-weight: 400; text-transform: none; letter-spacing: 0; }
.np-form input[type="text"],
.np-form input[type="email"],
.np-form input[type="tel"],
.np-form select,
.np-form textarea {
  width: 100%;
  background: rgba(10, 10, 10, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-white);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 12px 14px;
  margin-bottom: 1.3rem;
}
.np-form input:focus, .np-form select:focus, .np-form textarea:focus {
  outline: none;
  border-color: rgba(212, 175, 55, 0.6);
}
.np-form select { appearance: none; }
.np-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; }
@media (max-width: 700px) { .np-field-row { grid-template-columns: 1fr; } }

/* Footer (new pages) */
.np-footer {
  border-top: 1px solid var(--border-color);
  margin-top: 6rem;
  padding: 3.5rem 0 2.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.np-footer .cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  text-align: left;
}
@media (max-width: 860px) { .np-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .np-footer .cols { grid-template-columns: 1fr; } }
.np-footer h4 {
  color: var(--text-white);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.np-footer ul { list-style: none; }
.np-footer li { margin-bottom: 0.5rem; }
.np-footer a { color: var(--text-muted); text-decoration: none; transition: color 0.2s ease; }
.np-footer a:hover { color: var(--accent-gold); }
.np-footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem 1.15rem; margin: 0 0 1.25rem; }
.np-footer .legal {
  border-top: 1px solid var(--border-color);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--text-muted);
  text-align: left;
}

/* Hero */
.np-hero {
  padding: 5.5rem 0 4.5rem;
  text-align: center;
  background: radial-gradient(circle at 50% 20%, rgba(22, 26, 33, 0.5) 0%, #0a0a0a 75%);
}
.np-hero .shield {
  width: 110px;
  height: 110px;
  object-fit: contain;
  filter: drop-shadow(0 0 28px rgba(212, 175, 55, 0.25));
  margin-bottom: 1.4rem;
}
.np-hero .brandline {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 1.2rem;
}
.np-hero .rolesline {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-main);
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  margin: 0.9rem 0 1.1rem;
}

/* Future approved portrait: /assets/sonny-saggar-portrait.webp.
   Keep the hero idea-first until an approved portrait is supplied. */
.np-hero-portrait { display: none; }

.np-method-strip {
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: rgba(212, 175, 55, 0.025);
}
.np-method-statement {
  color: var(--text-white);
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  line-height: 1.35;
}
.np-method-domains {
  margin-top: 0.6rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  line-height: 1.65;
}

/* ---------- Systems integrity conversion section ---------- */
.np-systems-integrity { background: linear-gradient(180deg, rgba(212, 175, 55, 0.035), transparent 72%); }
.np-conversion-copy { margin-top: 1.5rem; max-width: 46em; }
.np-conversion-copy p { color: var(--text-main); font-size: 1.04rem; line-height: 1.75; margin-top: 1rem; }
.np-conversion-copy .np-conversion-emphasis { color: var(--text-white); font-family: var(--font-serif); font-size: 1.35rem; }
.np-conversion-action { margin-top: 1.8rem; }
.np-why-different { margin-top: 3.3rem; padding: 1.6rem 1.75rem; border-left: 2px solid rgba(212, 175, 55, 0.65); background: rgba(22, 26, 33, 0.35); }
.np-why-different h3, .np-engagement-card h3 { color: var(--text-white); font-family: var(--font-serif); font-size: 1.35rem; line-height: 1.3; }
.np-why-different p { color: var(--text-main); line-height: 1.7; margin-top: 0.8rem; }
.np-why-different blockquote { margin: 1.5rem 0 0; color: var(--accent-gold); font-family: var(--font-serif); font-size: 1.18rem; font-style: italic; line-height: 1.55; }
.np-engagement-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.35rem; margin-top: 1.35rem; }
.np-engagement-card { padding: 1.65rem; border: 1px solid var(--border-color); border-radius: 12px; background: var(--bg-card); }
.np-engagement-card .np-eyebrow { margin-bottom: 0.65rem; }
.np-engagement-card p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.7; margin-top: 0.9rem; }
.np-engagement-card .np-engagement-deliverable { color: var(--text-main); }
.np-engagement-card .np-btn-quiet { display: inline-block; margin-top: 1.35rem; }
.np-engagement-questions { margin-top: 1.1rem; color: var(--text-white); font-family: var(--font-serif); font-size: 1.08rem; line-height: 1.55; }
.np-recognition-grid .np-card { min-height: 0; }
.np-recognition-grid .np-card h2 { color: var(--text-white); font-family: var(--font-serif); font-size: 1.22rem; line-height: 1.3; }
.np-recognition-grid .np-card p { margin-top: 0.7rem; color: var(--text-muted); font-size: 0.92rem; line-height: 1.65; }
.np-recognition-other { grid-column: 1 / -1; }
@media (max-width: 720px) { .np-engagement-grid { grid-template-columns: 1fr; } .np-why-different { padding: 1.3rem; } }

/* Quality baseline: keyboard visibility, narrow screens, and readable overflow. */
.skip-link { position: fixed; z-index: 10001; top: 0.6rem; left: 0.6rem; padding: 0.65rem 0.85rem; transform: translateY(-160%); border-radius: 6px; background: var(--accent-gold); color: #111; font-weight: 800; text-decoration: none; }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--accent-gold); outline-offset: 3px; }
html { overflow-x: hidden; }
img, iframe, video { max-width: 100%; }
iframe { border: 0; }
.np-wrap, .np-wrap-narrow, .np-card, .np-problem-entry, .np-book-card, .np-question { min-width: 0; overflow-wrap: anywhere; }
.np-article-copy { max-width: 72ch; }
.np-article-copy p, .np-article-copy li { overflow-wrap: break-word; }
@media (max-width: 520px) { .np-section { padding-left: 1rem; padding-right: 1rem; } .np-display { overflow-wrap: anywhere; } .np-footer-links { gap: .65rem .85rem; } .np-form input, .np-form select, .np-form textarea { width: 100%; box-sizing: border-box; } }
