/* Shared styles for the Patch How-to section. Mirrors patch-security.com (index.html):
   same tokens, fonts, nav, footer, and buttons — plus article typography for long reads.
   Adding an article = drop in a new folder with an index.html that links this file. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:      #FAF4EB;
  --cream-alt:  #F4EDE0;
  --navy:       #1B2A41;
  --navy-soft:  #26364f;
  --red:        #C0392B;
  --red-hover:  #a93226;
  --text-muted: #5b6b7d;
  --line:       rgba(27,42,65,0.10);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--cream);
  color: var(--navy);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }

/* ── Buttons (from index.html) ── */
.btn { display: inline-flex; align-items: center; justify-content: center; font-family: inherit; font-weight: 800; font-size: 15px; padding: 13px 26px; border-radius: 999px; cursor: pointer; border: 2px solid transparent; transition: background .15s, transform .05s, border-color .15s; white-space: nowrap; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-hover); }
.btn-red:active { transform: translateY(1px); }
.btn-outline { background: transparent; color: var(--navy); border-color: rgba(27,42,65,0.28); }
.btn-outline:hover { border-color: var(--navy); }

/* ── Nav (from index.html) ── */
nav { position: sticky; top: 0; z-index: 50; background: rgba(250,244,235,0.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 12px 32px; }
.nav-logo { display: flex; align-items: center; gap: 9px; }
.nav-logo-text { font-size: 18px; font-weight: 900; letter-spacing: -0.3px; color: var(--navy); }
.nav-tagline { font-size: 13px; font-weight: 700; color: var(--text-muted); padding-left: 11px; border-left: 1.5px solid rgba(27,42,65,0.28); }
.nav-right { display: flex; align-items: center; gap: 26px; }
.nav-links { display: flex; gap: 24px; }
.nav-links a { font-size: 14.5px; font-weight: 700; color: var(--text-muted); }
.nav-links a:hover, .nav-links a.active { color: var(--navy); }
.nav .btn { padding: 9px 20px; font-size: 14px; }

/* ── How-to index ── */
.howto-wrap { max-width: 760px; margin: 0 auto; padding: 56px 24px 32px; }
.howto-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--red); display: block; margin-bottom: 12px; }
.howto-head h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 900; letter-spacing: -1px; line-height: 1.1; color: var(--navy); }
.howto-head p { font-size: 18px; color: var(--text-muted); margin-top: 14px; line-height: 1.6; max-width: 620px; }
.howto-list { list-style: none; margin-top: 36px; display: flex; flex-direction: column; gap: 16px; }
.howto-card { display: block; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: 14px; padding: 22px 24px; box-shadow: 0 2px 12px rgba(27,42,65,0.05); transition: transform .08s, box-shadow .15s; }
.howto-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(27,42,65,0.10); }
.howto-card h2 { font-size: 20px; font-weight: 800; color: var(--navy); line-height: 1.3; }
.howto-card p { font-size: 15px; color: var(--text-muted); margin-top: 8px; line-height: 1.55; }
.howto-card .more { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 800; color: var(--red); }

/* ── Article ── */
.article-wrap { max-width: 680px; margin: 0 auto; padding: 40px 24px 8px; }        /* ~70-char measure at 18px */
.article-eyebrow { font-size: 12.5px; font-weight: 800; letter-spacing: 0.6px; }
.article-eyebrow a { color: var(--red); }
.article-eyebrow a:hover { text-decoration: underline; }
.article h1 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 900; letter-spacing: -0.8px; line-height: 1.15; color: var(--navy); margin: 12px 0 0; }
.article { font-size: 18px; color: #2a3a4d; }
.article .lede { font-size: 19px; line-height: 1.7; color: #37485b; margin-top: 22px; }
.article p { line-height: 1.78; margin-top: 20px; }
.article h2 { font-size: 24px; font-weight: 900; color: var(--navy); letter-spacing: -0.3px; margin-top: 42px; line-height: 1.25; }
.article h3 { font-size: 19px; font-weight: 800; color: var(--navy); margin-top: 28px; }
.article strong { font-weight: 800; color: var(--navy); }
.article ol { margin: 20px 0 0; padding-left: 0; list-style: none; counter-reset: step; }
.article ol li { position: relative; padding-left: 44px; margin-top: 18px; line-height: 1.7; }
.article ol li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 1px; width: 28px; height: 28px; border-radius: 50%; background: var(--red); color: #fff; font-size: 14px; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.article .notice { margin-top: 22px; padding: 16px 20px; background: #fff; border-left: 3px solid var(--red); border-radius: 10px; box-shadow: 0 2px 10px rgba(27,42,65,0.05); }
.article .notice p { margin: 0; font-weight: 700; color: var(--navy); line-height: 1.5; }
.article .notice p + p { margin-top: 10px; }
.article ul { margin: 16px 0 0; padding-left: 4px; list-style: none; }
.article ul li { position: relative; padding-left: 22px; margin-top: 11px; line-height: 1.7; }
.article ul li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.article .label { font-weight: 800; color: var(--navy); margin-top: 24px; margin-bottom: 2px; }

figure.shot { margin: 30px 0; }
figure.shot img { width: 100%; display: block; border-radius: 12px; border: 1px solid rgba(27,42,65,0.10); box-shadow: 0 12px 34px rgba(27,42,65,0.14); }
figure.shot figcaption { text-align: center; font-size: 13.5px; font-style: italic; color: rgba(27,42,65,0.5); margin-top: 12px; font-weight: 600; }
.shot-ph { border: 2px dashed rgba(27,42,65,0.26); border-radius: 12px; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; color: rgba(27,42,65,0.55); font-weight: 800; font-size: 15px; text-align: center; padding: 44px 20px; gap: 6px; min-height: 180px; }
.shot-ph .ph-note { font-size: 12px; font-weight: 600; font-style: italic; color: rgba(27,42,65,0.4); }

/* ── Article download CTA ── */
.article-cta { margin: 46px 0 8px; padding: 30px 28px; background: var(--cream-alt); border-radius: 16px; text-align: center; }
.article-cta h2 { margin: 0 0 6px; font-size: 21px; font-weight: 900; color: var(--navy); }
.article-cta p { margin: 0 0 18px; font-size: 15px; color: var(--text-muted); line-height: 1.5; }

/* ── Footer (from index.html) ── */
footer { border-top: 1px solid var(--line); padding: 40px 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; justify-content: center; margin-top: 44px; }
.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-brand-text { font-size: 15px; font-weight: 900; color: var(--navy); }
.footer-copy { font-size: 13px; color: var(--text-muted); }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.footer-links a { font-size: 13px; color: var(--text-muted); font-weight: 700; }
.footer-links a:hover { color: var(--navy); }
.footer-trust { width: 100%; text-align: center; font-size: 12.5px; color: rgba(27,42,65,0.45); font-weight: 700; letter-spacing: 0.3px; }

@media (max-width: 560px) {
  nav { padding: 10px 18px; }
  .nav-tagline { display: none; }
  .nav-links { gap: 15px; }
  .nav-right { gap: 16px; }
}
