
:root {
  --paper: #f5f8f5;
  --ink: #15232b;
  --muted: #657177;
  --rail: #16343c;
  --copper: #c7892e;
  --sage: #5b7b61;
  --sky: #d7edf0;
  --signal: #f2c14b;
  --line: rgba(21, 35, 43, .14);
  --shadow: 0 18px 50px rgba(22, 52, 60, .16);
  --radius: 8px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 18px 18px, rgba(91,123,97,.14) 0 2px, transparent 3px) 0 0 / 54px 54px,
    linear-gradient(90deg, rgba(21,35,43,.045) 1px, transparent 1px) 0 0 / 54px 54px,
    linear-gradient(0deg, rgba(21,35,43,.038) 1px, transparent 1px) 0 0 / 54px 54px,
    var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  line-height: 1.65;
}
a { color: inherit; }
.skip-link { position: absolute; left: -999px; top: 0; }
.skip-link:focus { left: 12px; top: 12px; z-index: 20; background: #fff; padding: 10px 14px; border: 2px solid var(--rail); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247,245,239,.93);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 96px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  grid-template-areas:
    "brand phone"
    "nav nav";
  gap: 10px 18px;
  align-items: center;
  padding: 10px 0 12px;
}
.brand {
  grid-area: brand;
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  min-width: 0;
}
.brand img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(36,53,69,.24);
  background: #fff;
}
.brand-text strong { display: block; font-size: clamp(1.02rem, 1.4vw, 1.35rem); line-height: 1.1; letter-spacing: 0; }
.brand-text span { display: block; color: var(--muted); font-size: .78rem; margin-top: 3px; }
.nav-grid {
  grid-area: nav;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  min-width: 0;
  align-items: start;
}
.nav-group {
  min-width: 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-start;
  overflow: visible;
}
.nav-group a {
  min-width: 0;
  text-decoration: none;
  font-size: .74rem;
  font-weight: 800;
  white-space: nowrap;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: #304050;
}
.nav-group a:hover { border-color: var(--line); background: rgba(255,255,255,.62); }
.call-pill {
  grid-area: phone;
  justify-self: end;
  width: 196px;
  text-align: center;
  text-decoration: none;
  font-weight: 900;
  color: #17120b;
  background: var(--signal);
  padding: 12px 14px;
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(187,107,61,.22);
  white-space: nowrap;
}
.hero {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr);
  gap: 32px;
  align-items: stretch;
}
.hero-copy {
  padding: clamp(28px, 4vw, 54px) 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.eyebrow {
  width: fit-content;
  color: var(--rail);
  background: rgba(216,237,242,.8);
  border: 1px solid rgba(85,118,109,.25);
  padding: 7px 10px;
  border-radius: var(--radius);
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
}
h1 {
  margin: 18px 0 18px;
  max-width: 820px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.45rem, 6vw, 5.55rem);
  line-height: .96;
  letter-spacing: 0;
}
.lead { color: #334351; font-size: clamp(1.05rem, 1.7vw, 1.24rem); max-width: 760px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-weight: 900;
  text-decoration: none;
  border: 1px solid var(--rail);
}
.btn.primary { background: var(--rail); color: #fff; }
.btn.secondary { background: rgba(255,255,255,.62); color: var(--rail); }
.hero-media {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #d9e0e2;
}
.hero-media img, .page-visual img, .feature-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-stamp {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(247,245,239,.9);
  border: 1px solid rgba(23,33,43,.16);
  border-radius: var(--radius);
  padding: 10px 12px;
  max-width: calc(100% - 32px);
}
.brand-stamp img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.brand-stamp strong { display: block; font-size: .86rem; line-height: 1.1; }
.brand-stamp span { color: var(--muted); font-size: .78rem; }
.main { width: min(1180px, calc(100% - 32px)); margin: 42px auto; }
.section {
  padding: 42px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(210px, .72fr) minmax(0, 1.28fr);
  gap: 32px;
}
.section h2 {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.45rem, 3vw, 2.45rem);
  line-height: 1.05;
  letter-spacing: 0;
}
.section:nth-of-type(3n) {
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, .8fr);
}
.section:nth-of-type(3n) > div:first-child {
  order: 2;
}
.section p { margin: 0 0 17px; color: #334351; font-size: 1rem; }
.section p:last-child { margin-bottom: 0; }
.page-visual {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border-radius: var(--radius);
  margin: 12px 0 34px;
  box-shadow: var(--shadow);
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0;
}
.detail-card {
  background: rgba(255,255,255,.67);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  min-height: 175px;
}
.detail-card strong { display: block; margin-bottom: 8px; color: var(--rail); }
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.related-grid a {
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  font-weight: 900;
  color: var(--rail);
}
.faq-item {
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin: 12px 0;
}
.faq-item h3 { margin: 0 0 8px; font-size: 1.02rem; }
.cta-band {
  margin: 34px 0;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--rail);
  color: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}
.cta-band p { color: rgba(255,255,255,.78); margin: 6px 0 0; }
.contact-form {
  display: grid;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.contact-form label { font-weight: 800; color: var(--rail); }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%;
  border: 1px solid rgba(23,33,43,.22);
  border-radius: var(--radius);
  padding: 12px;
  font: inherit;
}
.contact-form textarea { min-height: 132px; }
.checkline { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; color: #334351; }
.hp { position: absolute; left: -9999px; opacity: 0; }
.site-footer {
  background: #162331;
  color: #edf3f5;
  padding: 42px 0;
}
.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
}
.footer-inner a { color: #edf3f5; }
.footer-links { display: grid; gap: 8px; }
.fineprint { color: rgba(237,243,245,.72); font-size: .88rem; }
@media (max-width: 980px) {
  .header-inner { grid-template-columns: 1fr auto; grid-template-areas: "brand phone" "nav nav"; min-height: auto; padding: 12px 0; }
  .nav-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-group a:nth-of-type(n+3) { display: none; }
  .hero { grid-template-columns: 1fr; margin-top: 18px; }
  .hero-media { min-height: 360px; }
  .section { grid-template-columns: 1fr; gap: 16px; }
  .detail-grid, .related-grid, .footer-inner { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .header-inner { grid-template-columns: 1fr; grid-template-areas: "brand" "phone"; }
  .call-pill { justify-self: stretch; width: 100%; }
  .nav-grid { display: none; }
  h1 { font-size: clamp(2.2rem, 12vw, 3.4rem); }
  .hero-media { min-height: 280px; }
  .brand-stamp { position: static; border-radius: 0; max-width: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, .related-grid a, .detail-card { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
  .btn:hover, .related-grid a:hover, .detail-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(36,53,69,.13); }
}

/* sunnyvale blog-credit retrofit styles */
.credit-link,.footer-credit a{color:inherit;font-weight:900;text-decoration:underline;text-underline-offset:3px}.footer-credit{width:min(1180px,calc(100% - 32px));margin:22px auto 0;padding-top:18px;border-top:1px solid rgba(255,255,255,.16);color:#dbe8e8}.blog-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,.86fr);gap:32px;align-items:center;padding:62px clamp(22px,5vw,72px);background:linear-gradient(135deg,#ffffff,#eef7f4)}.blog-hero h1{max-width:15ch}.blog-hero figure{margin:0;border-radius:8px;overflow:hidden;box-shadow:var(--shadow);background:#fff}.blog-hero img{width:100%;height:100%;object-fit:cover;display:block}.blog-hero figcaption{padding:10px 12px;font-weight:800}.post-layout .article-section{max-width:1180px;margin:0 auto}.blog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.blog-card{display:block;text-decoration:none;border:1px solid var(--line);border-radius:8px;background:#fff;overflow:hidden;box-shadow:0 14px 38px rgba(22,51,63,.08)}.blog-card img{width:100%;aspect-ratio:16/10;object-fit:cover}.blog-card span,.blog-card strong,.blog-card em{display:block;padding:0 16px}.blog-card span{padding-top:14px;color:var(--copper);font-weight:900;text-transform:uppercase;font-size:.76rem}.blog-card strong{font-size:1.05rem;color:var(--rail);margin-top:6px}.blog-card em{font-style:normal;color:var(--muted);padding-bottom:16px}.takeaway-list{display:grid;gap:9px;padding-left:22px}.takeaway-list li{margin:0;color:var(--muted)}@media(max-width:860px){.blog-hero,.blog-grid{grid-template-columns:1fr}.blog-hero h1{max-width:100%}}

/* PC3 mobile overflow fix: long blog captions and hero children must not widen the viewport. */
.blog-hero > *, .blog-card > *, .hero > *, .section > *, .cta-band > * { min-width: 0; }
.blog-hero figcaption, .brand-stamp, .brand-stamp strong, .brand-stamp span {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}
@media (max-width: 620px) {
  body { overflow-x: hidden; }
  .blog-hero { padding: 38px 16px; }
  .blog-hero h1 { font-size: clamp(2rem, 10vw, 2.65rem); max-width: 100%; line-height: 1.02; }
  .blog-hero figcaption { font-size: .92rem; line-height: 1.35; }
  .main { width: min(100% - 24px, 1180px); margin-top: 28px; }
  .section h2 { font-size: clamp(1.35rem, 8vw, 2rem); overflow-wrap: anywhere; }
}

/* PC3 mobile tightening after browser screenshot: prevent hero/article text clipping at 390px. */
@media (max-width: 620px) {
  .blog-hero, .main, .section, .blog-grid, .blog-card { max-width: 100vw; overflow-x: clip; }
  .blog-hero { padding-left: 16px; padding-right: 16px; }
  .blog-hero h1 {
    font-size: clamp(1.86rem, 8.6vw, 2.22rem);
    line-height: 1.08;
    max-width: calc(100vw - 32px);
    overflow-wrap: normal;
  }
  .blog-hero .lead, .blog-hero p, .section h2, .section p, .blog-card strong, .blog-card em {
    max-width: calc(100vw - 32px);
    overflow-wrap: anywhere;
  }
  .section h2 { line-height: 1.12; }
}

/* PC3 hard mobile width rule after screenshot verification. */
@media (max-width: 620px) {
  html, body { max-width: 100%; overflow-x: hidden; }
  .blog-hero, .hero, .main, .section, .blog-grid, .blog-card, .blog-hero figure {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  .blog-hero h1 {
    width: calc(100vw - 32px) !important;
    max-width: calc(100vw - 32px) !important;
    min-width: 0 !important;
    font-size: clamp(1.52rem, 7vw, 1.86rem) !important;
    line-height: 1.12 !important;
  }
  .blog-hero .lead, .blog-hero p, .section h2, .section p, .blog-card strong, .blog-card em, .blog-hero figcaption {
    width: calc(100vw - 32px) !important;
    max-width: calc(100vw - 32px) !important;
    min-width: 0 !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
  }
  .section h2 { font-size: clamp(1.16rem, 6vw, 1.55rem) !important; }
}

/* PC3 mobile heading refinement: intentional line breaks instead of edge-riding hero type. */
@media (max-width: 620px) {
  .blog-hero h1 {
    width: min(100%, 13.2ch) !important;
    max-width: 13.2ch !important;
    font-size: clamp(1.58rem, 7.2vw, 1.95rem) !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }
}

