/* AI PressDesk Docs - MS app aligned light theme */
:root{
  color-scheme: light;
  --bg:#f3f6fa;
  --panel:#ffffff;
  --panel2:#f7f9fc;
  --text:#172b4d;
  --heading:#111827;
  --muted:#5b6475;
  --border:#d8e1ec;
  --field:#ffffff;
  --accent:#ffa500;
  --accentText:#162920;
  --blue:#006dff;
  --red:#d71920;
  --black:#000000;
  --radius:14px;
  --radius-lg:16px;
  --shadow:0 10px 30px rgba(16,24,40,.08);
  --shadow-soft:0 1px 2px rgba(0,0,0,.08);
  --font:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
}

*{box-sizing:border-box}
html,body{min-height:100%}
html{background:var(--bg);color-scheme:light}
body{
  margin:0;
  font-family:var(--font);
  background:var(--bg);
  color:var(--text);
  font-size:16px;
  line-height:1.55;
}

img{max-width:100%;height:auto}
a{color:#174a8b;text-decoration:none;font-weight:800}
a:hover{text-decoration:underline}

.np-doc-wrap{
  width:100%;
  max-width:1280px;
  margin:0 auto;
  padding:18px 20px 34px;
}

/* Header */
.np-doc-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:14px 16px;
  margin:0 0 18px;
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  background:var(--panel);
  color:var(--text);
  box-shadow:var(--shadow);
}

.np-doc-brand,
.np-doc-logo{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:260px;
  flex:1 1 auto;
  color:var(--text);
  text-decoration:none;
}

.np-doc-brand:hover,
.np-doc-logo:hover,
.np-doc-brand:hover *,
.np-doc-logo:hover *{
  text-decoration:none;
}

.np-doc-icon,
.np-doc-brand > img,
.np-doc-logo > img{
  display:block;
  width:44px;
  height:44px;
  max-width:44px;
  max-height:44px;
  object-fit:contain;
  flex:0 0 44px;
}

.np-doc-brand-text{
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-width:0;
  line-height:1;
}

.np-doc-brand-text strong{
  display:block;
  margin:0;
  font-size:30px;
  line-height:1;
  font-weight:900;
  letter-spacing:-.6px;
  white-space:nowrap;
  color:var(--heading);
  text-decoration:none;
}

.np-doc-ai{color:var(--blue)}
.np-doc-press{color:var(--red)}
.np-doc-desk{color:var(--black)}

.np-doc-brand-text em{
  display:block;
  margin-top:6px;
  font-size:14px;
  line-height:1.2;
  font-style:normal;
  font-weight:700;
  color:#2f343b;
  white-space:nowrap;
  text-decoration:none;
}

.np-doc-nav{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
  flex:0 0 auto;
  margin-left:auto;
}

.np-doc-nav a,
.np-doc-btn,
.btn-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:0 16px;
  border:1px solid var(--border);
  border-radius:12px;
  background:#ffffff;
  color:#121826;
  text-decoration:none;
  font-size:14px;
  font-weight:800;
  box-shadow:var(--shadow-soft);
}

.np-doc-nav a:hover,
.np-doc-btn:hover,
.btn-link:hover{
  background:#f3f6fa;
  color:#121826;
  text-decoration:none;
  transform:translateY(-1px);
}

.np-doc-btn.primary,
.btn-link.primary{
  background:var(--accent);
  color:var(--accentText);
  border-color:rgba(0,0,0,.12);
}

/* Hero and content cards */
.hero,
.np-doc-hero,
.card,
.np-card,
.notice,
.np-related,
.np-guide-index a,
.contact-box{
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:var(--panel);
  color:var(--text);
  box-shadow:var(--shadow);
}

.hero,
.np-doc-hero{
  padding:30px;
  margin:18px 0;
  background:linear-gradient(180deg,#ffffff,#f7f9fc);
}

.kicker,
.np-kicker{
  display:inline-flex;
  margin-bottom:14px;
  padding:7px 11px;
  border-radius:12px;
  color:#9a4b00;
  background:rgba(255,165,0,.13);
  border:1px solid rgba(255,165,0,.28);
  font-size:12px;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
}

h1,
.hero h1,
.np-doc-hero h1{
  margin:0;
  max-width:1000px;
  font-size:clamp(32px,4.5vw,52px);
  line-height:1.06;
  letter-spacing:-1.1px;
  color:var(--heading);
}

.hero p,
.np-hero-sub,
.lead{
  max-width:920px;
  margin:16px 0 0;
  color:var(--muted);
  font-size:18px;
  line-height:1.7;
}

.card,
.np-card{
  padding:24px;
  margin:16px 0;
}

h2,
.card h2,
.np-card h2{
  margin:18px 0 10px;
  color:var(--heading);
  font-size:25px;
  line-height:1.2;
}
.card h2:first-child,
.np-card h2:first-child{margin-top:0}

h3{color:var(--heading)}
p,li{color:var(--muted);font-size:16px;line-height:1.76}
ul,ol{padding-left:24px}

.grid,
.np-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
  margin:18px 0;
}
.grid .card{margin:0}

.np-guide-index{
  margin:20px 0 34px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
}
.np-guide-index a{
  display:block;
  min-height:132px;
  padding:18px;
  color:#121826;
  text-decoration:none;
}
.np-guide-index a:hover{
  background:#f7f9fc;
  text-decoration:none;
  transform:translateY(-1px);
}
.np-guide-index strong{
  display:block;
  margin-bottom:8px;
  font-size:17px;
  color:var(--heading);
}
.np-guide-index span{
  display:block;
  color:var(--muted);
  font-size:14px;
  line-height:1.58;
}

.np-badges{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:22px;
}
.np-badge{
  display:inline-flex;
  padding:9px 13px;
  border:1px solid var(--border);
  border-radius:12px;
  background:#ffffff;
  color:#2f343b;
  font-size:13px;
  font-weight:800;
}

.notice{
  padding:18px;
  margin:16px 0;
  background:#fff7e8;
  border-color:rgba(255,165,0,.35);
  color:#5b3b00;
}

.docs-link,
.actions,
.store-row,
.footer-nav{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

.np-footer{
  margin:28px 0 0;
  padding:22px 0 0;
  border-top:1px solid var(--border);
  color:var(--muted);
  font-size:13px;
  line-height:1.6;
  text-align:center;
}
.np-footer-actions{
  display:flex;
  justify-content:center;
  gap:8px;
  flex-wrap:wrap;
}
.np-footer p{font-size:13px;margin:12px 0 0}

.contact-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.contact-box{padding:18px}
.contact-box h2{margin-top:0}
.np-muted{color:var(--muted)}

@media(max-width:900px){
  .np-doc-header{
    align-items:flex-start;
    flex-direction:column;
  }
  .np-doc-nav{
    justify-content:flex-start;
    margin-left:0;
  }
  .grid,
  .np-grid,
  .np-guide-index,
  .contact-grid{
    grid-template-columns:1fr 1fr;
  }
  .np-doc-wrap{padding:14px}
}

@media(max-width:620px){
  .np-doc-brand-text strong{font-size:24px}
  .np-doc-brand-text em{font-size:12px}
  .np-doc-icon,
  .np-doc-logo > img,
  .np-doc-brand > img{
    width:38px;
    height:38px;
    max-width:38px;
    max-height:38px;
    flex-basis:38px;
  }
  .hero,
  .np-doc-hero,
  .card,
  .np-card{padding:20px}
  .grid,
  .np-grid,
  .np-guide-index,
  .contact-grid{
    grid-template-columns:1fr;
  }
  .np-doc-nav a,
  .np-doc-btn,
  .btn-link{
    font-size:12px;
    min-height:36px;
    padding:0 12px;
  }
}
