/* NTM Microsoft 365 Beginner Guide - shared styles. Large type, high contrast, simple layout. */
:root {
  --bg: #f4f6fa;
  --card: #ffffff;
  --ink: #16202e;
  --muted: #4b5668;
  --brand: #0a5fd6;
  --brand-dark: #084aa8;
  --brand-soft: #e3eefc;
  --accent: #0b7a4b;
  --accent-soft: #e2f5ec;
  --warn: #9a5b00;
  --warn-soft: #fff3dc;
  --line: #d8dee8;
  --kbd-bg: #eef1f6;
  --radius: 14px;
  --maxw: 900px;
}
* { box-sizing: border-box; }
html { font-size: 18px; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
img, video, iframe { max-width: 100%; }

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.site-header .inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.05rem; }
.logo .ntm-logo { height: 44px; width: auto; display: block; }
.logo .logo-text { border-left: 2px solid var(--line); padding-left: 14px; color: var(--muted); font-weight: 600; }

/* Brand row on the home page: NTM logo + Microsoft logo */
.brand-row { display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; margin: 4px 0 22px; }
.brand-ntm { height: 72px; width: auto; }
.brand-plus { font-size: 1.6rem; color: var(--muted); font-weight: 300; }
.brand-ms { display: inline-flex; align-items: center; gap: 10px; }
.brand-ms-word { font-family: "Segoe UI", system-ui, sans-serif; font-weight: 600; font-size: 1.7rem; color: #737373; letter-spacing: -0.3px; }
.footer-logo { height: 40px; width: auto; margin-bottom: 8px; }
footer p { margin: 0 0 6px; }
.top-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.top-nav a { text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: 0.95rem; color: var(--muted); }
.top-nav a:hover, .top-nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-dark); }

/* Layout */
main { max-width: var(--maxw); margin: 0 auto; padding: 28px 16px 64px; }
.hero { text-align: center; padding: 20px 0 8px; }
.hero h1 { font-size: 2.2rem; line-height: 1.2; margin: 0 0 12px; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 680px; margin: 0 auto; }
.eyebrow { display: inline-block; background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; font-size: 0.85rem; padding: 4px 12px; border-radius: 999px; letter-spacing: 0.3px; text-transform: uppercase; margin-bottom: 12px; }

h2 { font-size: 1.6rem; margin: 40px 0 12px; line-height: 1.25; }
h3 { font-size: 1.2rem; margin: 28px 0 8px; }
p { margin: 0 0 14px; }
ul, ol { padding-left: 1.4em; }
li { margin-bottom: 6px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-top: 28px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 8px;
  transition: transform .12s ease, box-shadow .12s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(16, 32, 64, 0.08); color: var(--ink); }
.card .num { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--brand); font-size: 1.1rem; }
.card h3 { margin: 6px 0 0; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.card .go { margin-top: auto; font-weight: 700; color: var(--brand); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 20px 0; counter-reset: step; }
.steps > li {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 20px 20px 76px; margin-bottom: 14px; position: relative; counter-increment: step;
}
.steps > li::before {
  content: counter(step);
  position: absolute; left: 20px; top: 20px;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 800; font-size: 1.15rem;
  display: grid; place-items: center;
}
.steps > li h3 { margin: 0 0 8px; font-size: 1.15rem; }
.steps > li p:last-child { margin-bottom: 0; }

kbd {
  display: inline-block; font-family: inherit; font-size: 0.95em; font-weight: 700;
  background: var(--kbd-bg); border: 1px solid #c9d1de; border-bottom-width: 3px;
  border-radius: 6px; padding: 1px 9px; color: var(--ink); white-space: nowrap;
}
.btn-name { display: inline-block; font-weight: 700; background: var(--brand-soft); color: var(--brand-dark); border-radius: 6px; padding: 1px 9px; white-space: nowrap; }

/* Callouts */
.note, .tip, .warn {
  border-radius: 12px; padding: 14px 16px 14px 52px; margin: 16px 0; position: relative; font-size: 0.98rem;
}
.note::before, .tip::before, .warn::before {
  position: absolute; left: 16px; top: 12px; font-size: 1.3rem;
}
.note { background: var(--brand-soft); } .note::before { content: "ℹ️"; }
.tip { background: var(--accent-soft); } .tip::before { content: "✅"; }
.warn { background: var(--warn-soft); } .warn::before { content: "⚠️"; }
.note strong:first-child, .tip strong:first-child, .warn strong:first-child { display: block; margin-bottom: 2px; }

/* Video */
.video {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 24px 0;
}
.video .label { font-weight: 700; color: var(--accent); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 6px; }
.video h3 { margin: 0 0 6px; }
.video p { color: var(--muted); font-size: 0.95rem; }
.video .frame { position: relative; padding-top: 56.25%; border-radius: 10px; overflow: hidden; background: #000; margin-top: 10px; }
.video .frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video .alt { font-size: 0.9rem; margin: 10px 0 0; }

/* Help banner */
.help-banner {
  background: linear-gradient(135deg, #0a5fd6, #0b7a4b); color: #fff; border-radius: var(--radius);
  padding: 26px 24px; margin-top: 48px; text-align: center;
}
.help-banner h2 { color: #fff; margin: 0 0 8px; font-size: 1.5rem; }
.help-banner p { margin: 0 0 14px; font-size: 1.05rem; opacity: 0.95; }
.help-banner .phone { font-size: 1.6rem; font-weight: 800; letter-spacing: 0.5px; color: #fff; text-decoration: none; display: inline-block; margin: 4px 0 10px; }
.help-banner .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.help-banner .actions a { background: #fff; color: var(--brand-dark); font-weight: 700; text-decoration: none; padding: 10px 18px; border-radius: 10px; }

/* Prev/next */
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.pager a { text-decoration: none; font-weight: 700; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; color: var(--brand-dark); }

/* Glossary */
dl.glossary dt { font-weight: 700; margin-top: 14px; }
dl.glossary dd { margin: 2px 0 0; color: var(--muted); }

footer { text-align: center; color: var(--muted); font-size: 0.9rem; padding: 24px 16px 40px; border-top: 1px solid var(--line); }
footer a { color: var(--muted); }

@media (max-width: 600px) {
  html { font-size: 17px; }
  .logo .ntm-logo { height: 36px; }
  .logo .logo-text { display: none; }
  .brand-ntm { height: 56px; }
  .brand-ms-word { font-size: 1.4rem; }
  .hero h1 { font-size: 1.75rem; }
  .steps > li { padding: 64px 16px 18px 16px; }
  .steps > li::before { left: 16px; top: 16px; }
}
@media print { .site-header, .help-banner .actions, .pager { display: none; } }
