/* sachinnagpal.in — shared styles. Visual design follows the original site; fonts and icons are self-hosted. */
@font-face { font-family: "Playfair Display"; font-weight: 600; font-display: swap; src: url("/assets/fonts/playfair-display-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-weight: 700; font-display: swap; src: url("/assets/fonts/playfair-display-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 400; font-display: swap; src: url("/assets/fonts/dm-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 500; font-display: swap; src: url("/assets/fonts/dm-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 700; font-display: swap; src: url("/assets/fonts/dm-sans-latin-700-normal.woff2") format("woff2"); }

:root {
  --navy: #0B1D3A;
  --navy-mid: #162d50;
  --gold: #C4973A;
  --gold-text: #8a6420;      /* gold dark enough for text on light backgrounds (AA) */
  --gold-light: #e8c27a;
  --off-white: #F7F5F0;
  --warm-white: #FDFCF9;
  --mid-gray: #5b6270;
  --light-border: #E5E0D5;
  --text-dark: #1a1a2e;
  --text-body: #3D3D4A;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; font-size: 16px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); background: var(--warm-white); color: var(--text-body); line-height: 1.7; overflow-x: hidden; }
a { color: var(--navy); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
ul, ol { list-style: none; }
.icon { width: 1em; height: 1em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.125em; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -100px; background: var(--gold); color: var(--navy); padding: .5rem 1rem; z-index: 200; font-weight: 700; }
.skip-link:focus { top: 8px; }

/* Nav */
nav.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(11, 29, 58, 0.97);
  border-bottom: 1px solid rgba(196, 151, 58, 0.25);
  padding: 0 5%; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  transition: box-shadow .2s;
}
nav.site-nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.25); }
.nav-logo { font-family: var(--serif); color: var(--gold); font-size: 1.2rem; font-weight: 600; letter-spacing: 0.02em; text-decoration: none; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; transition: color 0.2s; }
.nav-links a:hover { color: var(--gold-light); }
.nav-toggle { display: none; background: none; border: 0; color: #fff; padding: .5rem; cursor: pointer; font-size: 1.5rem; line-height: 0; }

/* Hero */
#hero { min-height: 100vh; background: var(--navy); display: flex; align-items: center; position: relative; overflow: hidden; padding: 64px 5% 0; }
.hero-bg-lines { position: absolute; inset: 0; pointer-events: none; background-image: repeating-linear-gradient(90deg, rgba(196,151,58,0.04) 0px, rgba(196,151,58,0.04) 1px, transparent 1px, transparent 80px); }
.hero-circle { position: absolute; right: -80px; top: 50%; transform: translateY(-50%); width: 600px; height: 600px; border-radius: 50%; border: 1px solid rgba(196,151,58,0.12); pointer-events: none; }
.hero-circle2 { position: absolute; right: 60px; top: 50%; transform: translateY(-50%); width: 400px; height: 400px; border-radius: 50%; border: 1px solid rgba(196,151,58,0.08); pointer-events: none; }
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero-tag, .hero-name, .hero-title, .hero-divider, .hero-pitch, .hero-skills, .hero-cta, .hero-stats { opacity: 0; transform: translateY(12px); animation: fadeUp 0.5s forwards; }
.hero-tag { display: inline-block; background: rgba(196,151,58,0.15); border: 1px solid rgba(196,151,58,0.4); color: var(--gold-light); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 16px; border-radius: 2px; margin-bottom: 1.5rem; animation-delay: 0s; }
.hero-name { font-family: var(--serif); font-size: clamp(2.8rem, 6vw, 4.5rem); font-weight: 700; color: #fff; line-height: 1.1; margin-bottom: 0.75rem; animation-delay: .05s; }
.hero-name span { color: var(--gold); }
.hero-title { font-size: 1.05rem; color: rgba(255,255,255,0.72); letter-spacing: 0.04em; margin-bottom: 1.5rem; animation-delay: .1s; }
.hero-divider { width: 48px; height: 2px; background: var(--gold); margin-bottom: 1.5rem; animation-delay: .12s; }
.hero-pitch { font-size: 1.1rem; color: rgba(255,255,255,0.85); max-width: 560px; line-height: 1.8; margin-bottom: 1.5rem; animation-delay: .15s; }
.hero-skills { font-size: 0.82rem; color: rgba(255,255,255,0.7); letter-spacing: 0.06em; margin-bottom: 2rem; animation-delay: .2s; }
.hero-skills span { color: var(--gold-light); }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; animation-delay: .25s; }
.btn-primary, .btn-outline { display: inline-flex; align-items: center; gap: .6rem; padding: 14px 32px; border-radius: 2px; font-size: 0.9rem; letter-spacing: 0.04em; text-decoration: none; text-transform: uppercase; transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s; }
.btn-primary { background: var(--gold); color: var(--navy); font-weight: 500; border: 1px solid var(--gold); }
.btn-primary:hover { background: var(--gold-light); color: var(--navy); transform: translateY(-2px); }
.btn-outline { border: 1px solid rgba(255,255,255,0.35); color: rgba(255,255,255,0.9); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold-light); transform: translateY(-2px); }
.hero-stats { position: absolute; bottom: 4rem; right: 5%; display: flex; gap: 3rem; animation-delay: .3s; z-index: 1; }
.stat-item { text-align: right; display: flex; flex-direction: column-reverse; }
.stat-num { font-family: var(--serif); font-size: 2.2rem; color: var(--gold); font-weight: 600; line-height: 1; }
.stat-label { font-size: 0.72rem; color: rgba(255,255,255,0.7); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 4px; }

/* Sections */
section { padding: 96px 5%; }
.section-label { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-text); font-weight: 500; margin-bottom: 0.5rem; }
.section-title { font-family: var(--serif); font-size: clamp(1.8rem, 3.5vw, 2.6rem); color: var(--navy); font-weight: 700; line-height: 1.2; margin-bottom: 1rem; }
.section-divider { width: 40px; height: 2px; background: var(--gold); margin-bottom: 3rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
#about { background: var(--warm-white); }
.about-text { font-size: 1.05rem; line-height: 1.9; margin-bottom: 1.5rem; }
.about-highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.5rem; }
.highlight-card { border-left: 2px solid var(--gold); padding: 1rem 1.25rem; background: var(--off-white); border-radius: 0 4px 4px 0; }
.highlight-card h3 { color: var(--navy); font-size: 0.9rem; font-weight: 500; margin-bottom: 4px; }
.highlight-card p { font-size: 0.83rem; color: var(--mid-gray); }

/* Experience */
#experience { background: var(--off-white); }
.timeline { position: relative; padding-left: 2rem; }
.timeline::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 0; width: 1px; background: var(--light-border); }
.timeline-item { position: relative; margin-bottom: 3.5rem; }
.timeline-item::before { content: ''; position: absolute; left: -2.5rem; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); border: 2px solid var(--off-white); box-shadow: 0 0 0 3px rgba(196,151,58,0.2); }
.timeline-date { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-text); font-weight: 500; margin-bottom: 0.4rem; }
.timeline-role { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--navy); margin-bottom: 0.2rem; }
.timeline-company { font-size: 0.88rem; color: var(--mid-gray); margin-bottom: 1.2rem; }
.timeline-bullets li { font-size: 0.92rem; line-height: 1.7; padding: 0.35rem 0 0.35rem 1.25rem; position: relative; border-bottom: 1px solid rgba(229,224,213,0.5); }
.timeline-bullets li:last-child { border-bottom: none; }
.timeline-bullets li::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 5px; height: 1.5px; background: var(--gold); }
.clients-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.client-tag { background: rgba(11,29,58,0.06); border: 1px solid rgba(11,29,58,0.12); color: var(--navy); font-size: 0.78rem; font-weight: 500; padding: 5px 12px; border-radius: 2px; letter-spacing: 0.02em; }
.tools-used { margin-top: 0.85rem; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.tools-label { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-text); font-weight: 500; }
.tool-tag { background: rgba(196,151,58,0.1); border: 1px solid rgba(196,151,58,0.3); color: var(--navy); font-size: 0.75rem; font-weight: 500; padding: 3px 10px; border-radius: 2px; }
.edu-title { font-family: var(--serif); color: var(--navy); font-size: 1.3rem; font-weight: 600; margin-bottom: 0.3rem; }
.edu-meta { color: var(--mid-gray); font-size: 0.88rem; margin-bottom: 2rem; }
.profile-card { background: var(--warm-white); border: 1px solid var(--light-border); border-top: 3px solid var(--gold); border-radius: 4px; padding: 1.75rem; margin-top: 1rem; }
.profile-card table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.profile-card th, .profile-card td { text-align: left; padding: 0.5rem 0; border-bottom: 1px solid var(--light-border); }
.profile-card tr:last-child th, .profile-card tr:last-child td { border-bottom: none; }
.profile-card th { color: var(--mid-gray); font-weight: 400; width: 45%; }
.profile-card td { color: var(--text-dark); font-weight: 500; }

/* Achievements */
#achievements { background: var(--navy); }
#achievements .section-title { color: #fff; }
#achievements .section-label { color: var(--gold-light); }
.achievements-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.ach-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(196,151,58,0.2); border-radius: 4px; padding: 1.75rem; transition: transform 0.2s, border-color 0.2s; }
.ach-card:hover { transform: translateY(-4px); border-color: rgba(196,151,58,0.5); }
.ach-icon { width: 40px; height: 40px; border-radius: 50%; background: rgba(196,151,58,0.15); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; color: var(--gold); font-size: 18px; }
.ach-title { font-family: var(--serif); color: #fff; font-size: 1.05rem; font-weight: 600; margin-bottom: 0.6rem; }
.ach-desc { font-size: 0.88rem; color: rgba(255,255,255,0.75); line-height: 1.7; }

/* Skills */
#skills { background: var(--warm-white); }
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }
.skill-group h3 { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-text); font-weight: 500; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--light-border); }
.skill-list li { font-size: 0.9rem; padding: 0.45rem 0; border-bottom: 1px solid rgba(229,224,213,0.6); display: flex; align-items: center; gap: 0.5rem; }
.skill-list li::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.skill-list li:last-child { border-bottom: none; }

/* Projects */
#projects { background: var(--off-white); }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.project-card { background: var(--warm-white); border: 1px solid var(--light-border); border-top: 3px solid var(--gold); border-radius: 4px; padding: 2rem; transition: transform 0.2s, box-shadow 0.2s; }
.project-card:hover { transform: translateY(-5px); box-shadow: 0 12px 40px rgba(11,29,58,0.1); }
.project-tag { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-text); font-weight: 500; margin-bottom: 0.75rem; }
.project-title { font-family: var(--serif); color: var(--navy); font-size: 1.15rem; font-weight: 600; margin-bottom: 0.75rem; }
.project-desc { font-size: 0.9rem; line-height: 1.75; margin-bottom: 1.25rem; }
.project-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.ptag { background: rgba(11,29,58,0.06); color: var(--navy-mid); font-size: 0.75rem; padding: 4px 10px; border-radius: 2px; }
.pai-block { margin-bottom: 1rem; }
.pai-row { display: flex; gap: 0.75rem; margin-bottom: 0.5rem; align-items: flex-start; }
.pai-label { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-text); font-weight: 700; min-width: 56px; padding-top: 2px; }
.pai-text { font-size: 0.9rem; line-height: 1.65; }

/* Contact */
#contact { background: var(--navy); }
#contact .section-title { color: #fff; }
#contact .section-label { color: var(--gold-light); }
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.contact-pitch { font-size: 1.05rem; color: rgba(255,255,255,0.8); line-height: 1.85; margin-bottom: 1rem; }
.privacy-note { font-size: 0.82rem; color: rgba(255,255,255,0.65); }
.contact-items { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item { display: flex; align-items: center; gap: 1.25rem; background: rgba(255,255,255,0.05); border: 1px solid rgba(196,151,58,0.2); border-radius: 4px; padding: 1.25rem 1.5rem; text-decoration: none; transition: border-color 0.2s, transform 0.2s; overflow-wrap: anywhere; }
.contact-item:hover { border-color: rgba(196,151,58,0.5); transform: translateX(4px); }
.contact-icon { width: 42px; height: 42px; border-radius: 50%; background: rgba(196,151,58,0.15); color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.contact-info strong { display: block; color: #fff; font-size: 0.9rem; font-weight: 500; margin-bottom: 2px; }
.contact-info span { color: rgba(255,255,255,0.7); font-size: 0.83rem; }

footer { background: #060f1e; text-align: center; padding: 2rem 5% 5.5rem; border-top: 1px solid rgba(196,151,58,0.15); }
footer p { font-size: 0.82rem; color: rgba(255,255,255,0.65); }
footer span { color: var(--gold); }
footer a { color: var(--gold-light); }

.float-resume { position: fixed; bottom: 2rem; right: 2rem; z-index: 99; background: var(--gold); color: var(--navy); padding: 12px 22px; border-radius: 50px; font-weight: 700; font-size: 0.82rem; letter-spacing: 0.04em; text-decoration: none; text-transform: uppercase; box-shadow: 0 4px 20px rgba(196,151,58,0.45); display: flex; align-items: center; gap: 8px; transition: background 0.2s, transform 0.2s, box-shadow 0.2s; }
.float-resume:hover { background: var(--gold-light); color: var(--navy); transform: translateY(-3px); box-shadow: 0 8px 28px rgba(196,151,58,0.5); }

/* Scroll reveal: only hidden once site.js has run, so content is visible without JavaScript. */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.visible { opacity: 1; transform: none; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-tag, .hero-name, .hero-title, .hero-divider, .hero-pitch, .hero-skills, .hero-cta, .hero-stats { animation: none; opacity: 1; transform: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 1280px) { .nav-links { gap: 1.25rem; } .nav-links a { font-size: .8rem; letter-spacing: .04em; } }
@media (max-width: 1100px) {
  #hero { min-height: auto; padding: 120px 5% 5rem; display: block; }
  .hero-stats { position: static; margin-top: 3rem; justify-content: flex-start; gap: 2rem; flex-wrap: wrap; }
  .stat-item { text-align: left; }
}
@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .nav-links { display: none; flex-direction: column; gap: 1rem; position: absolute; top: 64px; left: 0; right: 0; background: var(--navy); padding: 1.5rem 5%; border-top: 1px solid rgba(196,151,58,0.2); }
  .nav-links.open { display: flex; }
}
@media (max-width: 768px) {
  nav.site-nav { padding: 0 16px; }
  #hero { padding: 104px 16px 4rem; }
  .hero-circle, .hero-circle2 { display: none; }
  .two-col, .contact-wrap { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-highlights { grid-template-columns: 1fr; }
  section { padding: 64px 16px; }
  .timeline { padding-left: 1.5rem; }
  .timeline-item::before { left: -2rem; }
  .projects-grid, .achievements-grid { grid-template-columns: 1fr; }
  .float-resume { bottom: 1.2rem; right: 1.2rem; padding: 10px 16px; font-size: 0.78rem; }
  .pai-row { flex-direction: column; gap: 0.25rem; }
  .pai-label { min-width: auto; }
  .btn-primary, .btn-outline { padding: 12px 20px; }
}

/* Inner pages (tools, templates, blog) */
.page-hero { background: var(--navy); position: relative; overflow: hidden; padding: 128px 5% 64px; }
.page-hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: repeating-linear-gradient(90deg, rgba(196,151,58,0.04) 0px, rgba(196,151,58,0.04) 1px, transparent 1px, transparent 80px); }
.page-hero-inner { position: relative; max-width: 1120px; margin: 0 auto; }
.page-hero-inner > * { max-width: 820px; }
.page-hero:has(+ .article) .page-hero-inner { max-width: 760px; }
.page-hero h1 { font-family: var(--serif); color: #fff; font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.15; margin-bottom: 1rem; }
.page-hero .page-lead { color: rgba(255,255,255,0.82); font-size: 1.05rem; max-width: 680px; }
.page-hero .meta { color: rgba(255,255,255,0.7); font-size: .85rem; margin-top: .75rem; }
.page-hero .hero-tag { animation: none; opacity: 1; transform: none; }
.tool-section { background: var(--off-white); padding: 48px 5% 80px; }
.tool-section > * { max-width: 1120px; margin-left: auto; margin-right: auto; }
.privacy-box { background: #fff; border: 1px solid var(--light-border); border-left: 4px solid var(--gold); border-radius: 4px; padding: 1.25rem 1.5rem; margin-bottom: 1.5rem; }
.privacy-box h2 { font-family: var(--serif); color: var(--navy); font-size: 1.15rem; margin-bottom: .35rem; }
.privacy-box p { font-size: .92rem; }
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
.tool-card { background: #fff; border: 1px solid var(--light-border); border-top: 3px solid var(--gold); border-radius: 4px; padding: 1.5rem; margin-bottom: 1.5rem; min-width: 0; }
.tool-grid .tool-card { margin-bottom: 0; }
.tool-card.over { outline: 3px dashed var(--gold); outline-offset: -6px; background: #fffaf0; }
.tool-card h2 { font-family: var(--serif); color: var(--navy); font-size: 1.2rem; margin-bottom: .5rem; }
.tool-card h3 { color: var(--navy); font-size: 1rem; margin: 1rem 0 .4rem; }
.hint { font-size: .85rem; color: var(--mid-gray); margin-bottom: .75rem; }
.hint a { color: var(--navy); }
.file-btn { display: inline-block; position: relative; background: var(--navy); color: #fff; padding: 10px 20px; border-radius: 2px; font-size: .88rem; font-weight: 500; cursor: pointer; }
.file-btn:hover { background: var(--navy-mid); }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.file-btn:focus-within { outline: 3px solid var(--gold); outline-offset: 3px; }
.file-name { font-size: .85rem; color: var(--mid-gray); margin: .6rem 0 1rem; overflow-wrap: anywhere; }
.field { display: flex; flex-direction: column; gap: .3rem; font-size: .82rem; font-weight: 500; color: var(--text-dark); margin-bottom: .75rem; }
.field input, .field select, .map-field select, .calc-form input, .calc-form select { font: inherit; font-size: .9rem; font-weight: 400; padding: 8px 10px; border: 1px solid #b9b2a3; border-radius: 3px; background: #fff; color: var(--text-dark); min-width: 0; width: 100%; }
.map-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .75rem; }
.map-field { display: flex; flex-direction: column; gap: .25rem; font-size: .8rem; font-weight: 500; color: var(--text-dark); min-width: 0; }
.options-row { display: grid; grid-template-columns: 180px 180px 1fr; gap: 1rem; align-items: end; }
.check { display: flex; gap: .5rem; align-items: flex-start; font-size: .88rem; margin-bottom: .75rem; }
.check input { margin-top: .3rem; width: 1rem; height: 1rem; accent-color: var(--navy); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .5rem; }
.actions .btn-primary, .results-head .btn-primary { cursor: pointer; font: inherit; font-size: .88rem; font-weight: 500; padding: 12px 24px; }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-plain { font: inherit; font-size: .88rem; background: #fff; border: 1px solid var(--navy); color: var(--navy); padding: 11px 20px; border-radius: 2px; cursor: pointer; }
.btn-plain:hover { background: var(--off-white); }
.tool-status { margin-top: 1rem; font-size: .92rem; padding: .75rem 1rem; border-radius: 3px; background: var(--off-white); border-left: 3px solid var(--navy-mid); }
.tool-status[data-kind="error"] { background: #fdecec; border-color: #b42318; color: #7a1a12; }
.tool-status[data-kind="ok"] { background: #edf7ee; border-color: #2e7d32; color: #1e5121; }
.results-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--light-border); border-radius: 3px; }
.table-wrap.tall { max-height: 520px; overflow-y: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.data-table th, .data-table td { text-align: left; padding: .55rem .75rem; border-bottom: 1px solid var(--light-border); vertical-align: top; }
.data-table thead th { background: var(--navy); color: #fff; font-weight: 500; position: sticky; top: 0; white-space: nowrap; }
.data-table tbody th { font-weight: 500; color: var(--text-dark); }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-table tbody tr:nth-child(even) { background: #fcfbf8; }
.data-table tr[data-status="Matched"] .st, .data-table tr[data-status="Matched"] th { color: #1e5121; }
.data-table tr[data-status^="In "] .st, .data-table tr[data-status^="In "] th, .data-table tr[data-status^="Cannot"] .st, .data-table tr[data-status^="Cannot"] th { color: #9a1c12; }
.data-table tr[data-status*="differences"] .st, .data-table tr[data-status^="Probable"] .st, .data-table tr[data-status^="Duplicate"] .st { color: #7a4f05; }
.how ol { padding-left: 1.25rem; list-style: decimal; display: grid; gap: .5rem; font-size: .92rem; margin-bottom: 1rem; }
.disclaimer { font-size: .85rem; color: #5a4012; background: #fbf4e4; border: 1px solid #ecd9ad; border-radius: 3px; padding: .9rem 1.1rem; }

/* Calculators (lease, analyzer) */
.calc-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; }
.calc-form label { display: flex; flex-direction: column; gap: .3rem; font-size: .82rem; font-weight: 500; color: var(--text-dark); }
.calc-form .help { font-weight: 400; color: var(--mid-gray); font-size: .76rem; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.kpi { background: var(--off-white); border-left: 3px solid var(--gold); padding: .8rem 1rem; }
.kpi dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--mid-gray); }
.kpi dd { font-family: var(--serif); font-size: 1.35rem; color: var(--navy); font-weight: 600; }

/* Card listings (tools, templates, blog, videos) */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.link-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--light-border); border-top: 3px solid var(--gold); border-radius: 4px; padding: 1.5rem; text-decoration: none; color: var(--text-body); transition: transform .2s, box-shadow .2s; }
a.link-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(11,29,58,0.1); color: var(--text-body); }
.link-card .kind { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-text); font-weight: 700; margin-bottom: .5rem; }
.link-card h2, .link-card h3 { font-family: var(--serif); color: var(--navy); font-size: 1.15rem; margin-bottom: .5rem; }
.link-card p { font-size: .9rem; margin-bottom: .75rem; }
.link-card .more { margin-top: auto; font-size: .85rem; font-weight: 700; color: var(--navy); }
.link-card .status-pill { align-self: flex-start; font-size: .72rem; background: var(--off-white); border: 1px solid var(--light-border); padding: 2px 10px; border-radius: 999px; margin-bottom: .75rem; color: var(--mid-gray); }
.cluster { margin-bottom: 3rem; }
.cluster > h2 { font-family: var(--serif); color: var(--navy); font-size: 1.5rem; margin-bottom: .4rem; }
.cluster > p { color: var(--mid-gray); margin-bottom: 1.25rem; max-width: 720px; }

/* Articles */
.article { background: var(--warm-white); padding: 48px 5% 80px; }
.article-body { max-width: 760px; margin: 0 auto; font-size: 1.02rem; line-height: 1.8; }
.article-body h2 { font-family: var(--serif); color: var(--navy); font-size: 1.55rem; margin: 2.25rem 0 .75rem; line-height: 1.25; }
.article-body h3 { color: var(--navy); font-size: 1.1rem; margin: 1.5rem 0 .5rem; }
.article-body p, .article-body ul, .article-body ol, .article-body table { margin-bottom: 1.1rem; }
.article-body ul { list-style: disc; padding-left: 1.4rem; }
.article-body ol { list-style: decimal; padding-left: 1.4rem; }
.article-body li { margin-bottom: .35rem; }
.article-body a { color: var(--navy); font-weight: 500; }
.article-body code { background: var(--off-white); border: 1px solid var(--light-border); border-radius: 3px; padding: 0 .3rem; font-size: .9em; overflow-wrap: anywhere; }
.article-body pre { background: var(--navy); color: #f3efe6; padding: 1rem 1.25rem; border-radius: 4px; overflow-x: auto; margin-bottom: 1.25rem; font-size: .88rem; line-height: 1.6; }
.article-body pre code { background: none; border: 0; padding: 0; color: inherit; }
.article-body table { width: 100%; border-collapse: collapse; font-size: .9rem; display: block; overflow-x: auto; }
.article-body th, .article-body td { border: 1px solid var(--light-border); padding: .5rem .7rem; text-align: left; }
.article-body th { background: var(--off-white); color: var(--navy); }
.article-body .callout { background: #fff; border-left: 4px solid var(--gold); padding: 1rem 1.25rem; margin: 1.5rem 0; }
.article-body .disclaimer { margin-top: 2.5rem; }
.article-body blockquote { margin: 0 0 1.5rem; padding: 1rem 1.25rem; background: #fbf4e4; border-left: 4px solid var(--gold); border-radius: 0 4px 4px 0; font-size: .95rem; }
.article-body blockquote p:last-child { margin: 0; }
.article-body .table-wrap { overflow-x: auto; margin: 0 0 1.25rem; border: 0; }
.article-body .table-wrap table { display: table; margin: 0; }
.article-body hr { border: 0; border-top: 1px solid var(--light-border); margin: 2rem 0; }
.article-body mark.verify { background: #fde8c8; color: #7a3e00; padding: 0 .25em; border-radius: 3px; font-weight: 700; font-size: .92em; }
.article-body .coming-soon-label { color: var(--mid-gray); font-size: .88em; }
.article-body { min-width: 0; }
.article-body a { overflow-wrap: anywhere; }
.article-body pre { max-width: 100%; overflow-x: auto; }
.article-body pre code { white-space: pre; overflow-wrap: normal; }
.article-body .table-wrap { max-width: 100%; }
.article-body table:not(.table-wrap table) { display: block; max-width: 100%; overflow-x: auto; }
@media (max-width: 560px) { .article-body th, .article-body td { min-width: 7rem; } }
.inquiry .consent a { color: var(--gold-light); }
.series-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2.5rem 0; border-top: 1px solid var(--light-border); padding-top: 1.5rem; }
.series-nav a { display: block; text-decoration: none; font-weight: 500; color: var(--navy); }
.series-nav a span { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold-text); font-weight: 700; }
.series-nav .next { text-align: right; }
@media (max-width: 560px) { .series-nav { grid-template-columns: 1fr; } .series-nav .next { text-align: left; } }
.article-cta { max-width: 760px; margin: 2.5rem auto 0; background: var(--navy); color: rgba(255,255,255,.85); border-radius: 4px; padding: 1.75rem; }
.article-cta h2 { font-family: var(--serif); color: #fff; font-size: 1.3rem; margin-bottom: .5rem; }
.article-cta a { color: var(--gold-light); font-weight: 700; }

/* Inquiry form */
.inquiry { display: grid; gap: 1rem; background: rgba(255,255,255,0.05); border: 1px solid rgba(196,151,58,0.2); border-radius: 4px; padding: 1.5rem; }
.inquiry { margin-top: 1.5rem; }
.inquiry fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 1rem; }
.inquiry fieldset:disabled { opacity: .55; }
.inquiry .ach-title { margin-bottom: 0; }
.contact-wrap { align-items: start; }
.privacy-note a { color: var(--gold-light); }
.inquiry label { display: flex; flex-direction: column; gap: .35rem; color: #fff; font-size: .85rem; font-weight: 500; }
.inquiry input, .inquiry textarea, .inquiry select { font: inherit; font-size: .92rem; padding: 10px 12px; border-radius: 3px; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.95); color: var(--text-dark); }
.inquiry textarea { min-height: 120px; resize: vertical; }
.inquiry .consent { flex-direction: row; align-items: flex-start; gap: .6rem; font-weight: 400; color: rgba(255,255,255,.85); }
.inquiry .consent input { margin-top: .25rem; width: 1rem; height: 1rem; }
.inquiry .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.inquiry button { justify-self: start; cursor: pointer; font: inherit; font-weight: 500; }
.inquiry .form-note { font-size: .8rem; color: rgba(255,255,255,.7); }
.inquiry .form-note a { color: var(--gold-light); }
.cta-band { background: var(--navy-mid); color: rgba(255,255,255,.85); padding: 56px 5%; text-align: center; }
.cta-band h2 { font-family: var(--serif); color: #fff; font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: .5rem; }
.cta-band p { max-width: 640px; margin: 0 auto 1.5rem; }

@media (max-width: 860px) {
  .tool-grid { grid-template-columns: 1fr; }
  .options-row { grid-template-columns: 1fr 1fr; }
  .options-row .check { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .options-row { grid-template-columns: 1fr; }
  .page-hero { padding: 104px 16px 48px; }
  .tool-section, .article { padding-left: 16px; padding-right: 16px; }
  .tool-card { padding: 1.1rem; }
  .card-grid { grid-template-columns: 1fr; }
}

/* Simple 404 */
.not-found { min-height: 100vh; display: grid; place-content: center; text-align: center; padding: 3rem 16px; background: var(--navy); color: rgba(255,255,255,0.85); }
.not-found .eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: var(--gold-light); margin-bottom: .5rem; }
.not-found h1 { font-family: var(--serif); color: #fff; font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1rem; }
.not-found p { margin-bottom: 1.5rem; }
.not-found .btn-primary { justify-content: center; }

@media print {
  nav.site-nav, .hero-cta, .float-resume, .skip-link, .hero-bg-lines, .hero-circle, .hero-circle2 { display: none !important; }
  #hero, #achievements, #contact { background: none; }
  #hero { min-height: auto; padding: 0; }
  .hero-name, .hero-title, .hero-pitch, .ach-title, .ach-desc, #achievements .section-title, #contact .section-title, .contact-info strong, .contact-info span, .contact-pitch { color: #000; }
  .reveal, .hero-tag, .hero-name, .hero-title, .hero-divider, .hero-pitch, .hero-skills, .hero-cta, .hero-stats { opacity: 1 !important; transform: none !important; animation: none !important; }
}

.cta-band p a { color: var(--gold-light); font-weight: 500; }
.cta-band p a:hover { color: #fff; }
