/* K&R Metal: product page theme (Horizon-Loc look: white page, navy ink, blue accent).
   Loaded after styles.css. Everything is scoped to body.product so other pages are untouched. */

body.product {
  --ink: #1e2a38;
  --muted: #5b6673;
  --soft: #f4f5f7;
  --line: #e3e6ea;
  --accent: #0b4fc4;
  --accent-hover: #083a94;
  --accent-ink: #083a94;
  --font: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #fff;
  font-size: 17px;
}
body.product main { background: #fff; }
body.product .brand img { box-shadow: 0 0 18px rgba(26, 140, 219, 0.55); }
body.product .site-footer { border-top-color: var(--accent); }
body.product a { font-weight: 600; }
body.product .site-nav a, body.product .site-footer a, body.product .brand { font-weight: 500; }
body.product .site-nav .call { font-weight: 700; }

.pwrap { width: min(100% - 3rem, 1100px); margin-inline: auto; }

.p-hero { padding: 56px 0 24px; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
body.product h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.12; font-weight: 800; letter-spacing: -.02em; margin: 10px 0 16px; max-width: 860px; }
body.product .lead { font-size: 1.15rem; color: var(--muted); max-width: 800px; margin: 0 0 24px; }
.updated { font-size: .88rem; color: var(--muted); margin: 14px 0 0; }

.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-hover); color: #fff; }
.btn.ghost { border: 2px solid var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: var(--accent); color: var(--ink); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 36px 0 8px; }
.fact { background: var(--soft); border-radius: 14px; padding: 20px; }
.fact b { display: block; font-size: 1.45rem; letter-spacing: -.01em; }
.fact span { font-size: .9rem; color: var(--muted); }

body.product section { padding: 24px 0; }
body.product h2 { font-size: clamp(1.4rem, 3.2vw, 1.85rem); font-weight: 750; letter-spacing: -.01em; margin: 40px 0 12px; padding-top: 36px; border-top: 1px solid var(--line); position: relative; }
body.product h2::before { content: ""; position: absolute; top: -2px; left: 0; width: 56px; height: 3px; background: var(--accent); border-radius: 2px; }
body.product h3 { font-size: 1.1rem; margin: 0 0 6px; }
body.product p { margin: 0 0 14px; color: #2f3b48; }
.list { padding-left: 20px; margin: 0 0 14px; color: #2f3b48; }
.list li { margin-bottom: 6px; }

.tablewrap { overflow-x: auto; margin: 8px 0 16px; border: 1px solid var(--line); border-radius: 12px; }
.tablewrap table { margin: 0; border: 0; min-width: 560px; }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .97rem; }
th, td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
tr:last-child td, tr:last-child th { border-bottom: 0; }
thead th { background: var(--soft); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
tbody th { font-weight: 600; color: var(--ink); background: #fff; width: 30%; }
td { font-weight: 500; }
caption { text-align: left; padding: 0 0 8px; font-size: .9rem; color: var(--muted); caption-side: bottom; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.proscons > div { border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px 12px; }
.proscons h3 { font-size: 1.15rem; margin-bottom: 10px; }
.pros { border-top: 4px solid #3f8f5b !important; }
.cons { border-top: 4px solid var(--accent) !important; }

figure { margin: 0; }
.diagram { margin: 20px 0 8px; }
.diagram img { width: 100%; border-radius: 16px; border: 1px solid var(--line); }
figcaption { font-size: .9rem; color: var(--muted); margin-top: 10px; }

.callout { background: var(--soft); border-left: 4px solid var(--accent); border-radius: 10px; padding: 20px 22px; margin: 8px 0 14px; }
.callout p:last-child { margin-bottom: 0; }

.colors, .towns { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 8px 0 16px; list-style: none; }
.colors li, .towns li { background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .9rem; }
.colors li.premium { border-color: var(--accent); }

.dark { background: #2b2f33; color: #fff; border-radius: 18px; padding: 36px 32px; margin: 48px 0; }
body.product .dark h2 { color: #fff; border: 0; padding: 0; margin: 0 0 14px; }
body.product .dark h2::before { display: none; }
body.product .dark p, .dark li { color: #d5dbe2; }
body.product .dark a { color: #8dbbff; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; padding: 0; margin: 18px 0 14px; list-style: none; counter-reset: s; }
.steps li { background: rgba(255,255,255,.06); border-radius: 14px; padding: 18px 18px 18px 56px; position: relative; counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; left: 18px; top: 16px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: .9rem; display: flex; align-items: center; justify-content: center; }
.steps b { display: block; color: #fff; margin-bottom: 4px; }

.faq { margin: 8px 0 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; padding-right: 1.6em; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--accent); font-weight: 700; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 10px 0 4px; }

.cta { background: var(--ink); color: #fff; border-radius: 18px; padding: 40px 32px; margin: 56px 0; }
body.product .cta h2 { color: #fff; border: 0; padding: 0; margin: 0 0 10px; }
body.product .cta h2::before { display: none; }
body.product .cta p { color: #d5dbe2; }
body.product .cta a:not(.btn) { color: #8dbbff; }

.nap { font-style: normal; line-height: 1.7; }
.fine { font-size: .85rem; color: var(--muted); }

@media (max-width: 760px) {
  body.product { font-size: 16px; }
  .pwrap { width: min(100% - 2.2rem, 1100px); }
  .p-hero { padding: 36px 0 12px; }
  .two { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact { padding: 16px; }
  .fact b { font-size: 1.2rem; }
  th, td { padding: 10px 12px; }
  .dark, .cta { padding: 28px 20px; }
}

/* Product photos and color swatches */
.hero-shot, .photo { margin: 28px 0 8px; }
.hero-shot img, .photo img, .media-pair img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(30,42,56,.10);
  background: var(--soft);
}
.media-pair {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 24px;
  align-items: start;
  margin: 20px 0 8px;
}
.swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(154px, 1fr));
  gap: 12px;
  margin: 16px 0 8px;
  padding: 0;
  list-style: none;
}
.swatch {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.swatch .chip {
  height: 68px;
  border-bottom: 1px solid var(--line);
}
.swatch.light .chip { box-shadow: inset 0 0 0 1px #d0d4da; }
.swatch .meta { padding: 10px 12px 12px; }
.swatch h3 { font-size: .95rem; margin: 0 0 6px; font-weight: 700; }
.swatch .qs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.swatch .qs li {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  background: var(--soft);
  border-radius: 999px;
  padding: 2px 7px;
  color: var(--ink);
}
.swatch .note { font-size: .8rem; color: var(--muted); margin: 6px 0 0; line-height: 1.35; }
.chart-fig { margin: 24px 0 8px; }
.chart-fig img {
  width: 100%;
  max-width: 720px;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(30,42,56,.08);
}
@media (max-width: 760px) {
  .media-pair { grid-template-columns: 1fr; }
}

/* Existing K&R navigation */
/* Site header (restored in v22; dropped from v18 onward) */
  .site-header{background:#0a0c10;color:#fff;border-bottom:1px solid #1c222b;position:sticky;top:0;z-index:30}
  .header-inner{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;padding:10px 24px 12px;max-width:1100px;margin:0 auto;position:relative}
  .brand{display:flex;align-items:center;gap:10px;color:#fff;text-decoration:none;flex-shrink:0;font-weight:800;letter-spacing:.01em;margin-right:auto}
  .brand:hover{color:#fff;text-decoration:none}
  .brand img{width:56px;height:56px;border-radius:50%;display:block;box-shadow:0 0 18px rgba(26,140,219,.45)}
  .brand-name{font-size:1.12rem;line-height:1.1;white-space:nowrap}
  .nav-toggle{position:absolute;opacity:0;pointer-events:none;width:1px;height:1px;overflow:hidden}
  .nav-btn{display:none;width:42px;height:38px;border:1px solid #3a424c;border-radius:8px;cursor:pointer;align-items:center;justify-content:center;flex-direction:column;gap:5px;background:#15191f;flex-shrink:0}
  .nav-btn span{display:block;width:18px;height:2px;background:#e8edf2;border-radius:1px}
  .site-nav{display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-start;gap:6px 18px;flex:1 1 100%;order:3}
  .site-nav a{color:#d5dbe3;text-decoration:none;font-weight:600;font-size:.86rem;line-height:1.2}
  .site-nav a:hover{color:#fff;text-decoration:none}
  .site-nav details.more{position:relative}
  .site-nav details.more summary{cursor:pointer;color:#d5dbe3;font-weight:600;font-size:.86rem;list-style:none}
  .site-nav details.more summary::-webkit-details-marker{display:none}
  .site-nav details.more summary::after{content:" \25BE"}
  .site-nav details.more[open] summary{color:#fff}
  .site-nav details.more ul{list-style:none;margin:8px 0 0;padding:8px 0;background:#14181e;border:1px solid #2a313b;border-radius:12px;box-shadow:0 14px 32px rgba(0,0,0,.45);position:absolute;right:0;top:100%;z-index:40;min-width:280px}
  .site-nav details.more a{display:block;color:#e6ebf1;padding:8px 16px;font-size:.88rem;font-weight:550}
  .site-nav details.more a:hover{background:#1c2430;color:#fff}
  .hdr-call{display:inline-flex;align-items:center;background:var(--accent);color:#fff !important;padding:10px 16px;border-radius:999px;font-weight:700;font-size:.88rem;white-space:nowrap;order:2}
  .site-nav .hdr-call{display:none}
  .hdr-call:hover{background:var(--accent-dark);text-decoration:none !important}
  @media (max-width:900px){
    .header-inner{padding:8px 16px;flex-wrap:nowrap}
    .brand{margin-right:auto}
    .brand img{width:48px;height:48px}
    .brand-name{font-size:1rem}
    .nav-btn{display:flex;order:2}
    .header-inner > .hdr-call{display:none}
    .site-nav{display:none;position:absolute;top:100%;left:0;right:0;background:#0a0c10;flex-direction:column;align-items:stretch;gap:0;padding:8px 16px 20px;border-bottom:1px solid #1c222b;box-shadow:0 16px 28px rgba(0,0,0,.45);z-index:40;flex:none;order:3}
    .nav-toggle:checked ~ .site-nav{display:flex}
    .nav-toggle:checked + .nav-btn span:nth-child(1){transform:translateY(7px) rotate(45deg)}
    .nav-toggle:checked + .nav-btn span:nth-child(2){opacity:0}
    .nav-toggle:checked + .nav-btn span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
    .nav-btn span{transition:transform .18s ease,opacity .18s ease}
    .site-nav a,.site-nav details.more summary{padding:11px 4px;border-bottom:1px solid #1c222b;font-size:.95rem}
    .site-nav details.more{width:100%}
    .site-nav details.more summary{display:block;width:100%}
    .site-nav details.more ul{position:static;min-width:0;box-shadow:none;border:0;background:transparent;margin:0;padding:0 0 6px 12px}
    .site-nav details.more a{padding:9px 4px;border-bottom:1px solid #1c222b}
    .site-nav .hdr-call{display:inline-flex;margin-top:12px;justify-content:center;border-bottom:0 !important;padding:12px 16px}
  }
  
body.product{--accent-dark:#083a94}.header-inner.wrap{width:100%;min-height:0}.site-nav .hdr-call{font-weight:700} body.product .site-footer p{color:#c5ccd4} body.product .site-footer .footer-name{color:#fff} @media(max-width:900px){.site-header .site-nav{padding:8px 16px 20px}.site-header .site-nav .hdr-call{display:inline-flex}} @media(max-width:420px){.steps{grid-template-columns:1fr}}
