/* INTER-TOOL LLC — static draft
   Palette and typography drawn from current DS3011 / Star Wax flyers.
   Header background from the May 23, 2024 archived theme (headerBackground.png, phone removed).
   Fonts: Barlow Condensed (self-hosted, OFL) + system Helvetica/Arial for body, matching the flyer/old-site feel.
   No external trackers or third-party requests.
*/

@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/BarlowCondensed-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/BarlowCondensed-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/BarlowCondensed-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/BarlowCondensed-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/BarlowCondensed-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/BarlowCondensed-BoldItalic.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/BarlowCondensed-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --orange: #F2551D;          /* flyer banner / table header */
  --orange-logo: #FF5002;     /* archived wordmark / old theme accent */
  --orange-dark: #D44516;
  --gold: #F8A018;            /* archived secondary-nav gold */
  --yellow-line: #F8D000;     /* archived yellowline.png */
  --header-bg: #050505;
  --ink: #1A1A1A;
  --text: #222222;
  --muted: #5A5A5A;
  --line: #E0E0E0;
  --row: #EDEDED;
  --paper: #FFFFFF;
  --footer: #182030;          /* Star Wax flyer footer */
  --cream: #F8F0E8;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  --card-bg: #FFFFFF;
  --table-odd: #F7F7F7;
  --input-bg: #FFFFFF;
  --input-border: #CCCCCC;
  --link: #D44516;
  --btn-dark-bg: #1A1A1A;
  --btn-dark-fg: #FFFFFF;
  --surface-alt: #FAFAFA;
  --on-footer: #D8D8D8;
  --badge-tile: #FFFFFF;
  --success: #1E7B34;
  --max: 1080px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font: 16px/1.55 "Helvetica Neue", Helvetica, Arial, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
a:hover { color: var(--orange); }
h1, h2, h3, h4, .brand-type {
  font-family: "Barlow Condensed", "Helvetica Neue Condensed", "Arial Narrow", Impact, sans-serif;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--ink);
  line-height: 1.1;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.25rem); text-transform: none; }
h3 { font-size: 1.35rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }
.skip {
  position: absolute; left: -999px; top: 0;
}
.skip:focus { left: 8px; top: 8px; background: var(--card-bg); color: var(--ink); padding: 0.4rem 0.7rem; z-index: 20; }

/* ----- Header: archived dark gradient + flyer typography ----- */
.site-header {
  background-color: var(--header-bg);
  background-image: url("../images/header-bg.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  color: #fff;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 96px;
  padding: 0.85rem 0;
}
.logo picture { display: block; }
.logo img { width: 230px; height: auto; }
.header-phone {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 800;
  font-size: clamp(1.35rem, 3vw, 2rem);
  color: var(--orange);
  text-decoration: none;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.header-phone:hover { color: #fff; }

.nav-bar { background: var(--orange); }
.nav-bar .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.25rem;
}
.nav-bar a {
  color: #fff;
  text-decoration: none;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.7rem 0.95rem;
  display: inline-block;
}
.nav-bar a:hover,
.nav-bar a[aria-current="page"] {
  background: rgba(0, 0, 0, 0.18);
  color: #fff;
}

/* ----- Buttons ----- */
.btn-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.25rem 0; }
.btn {
  display: inline-block;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.7rem 1.25rem;
  border-radius: 2px;
  border: 2px solid var(--orange);
  background: var(--orange);
  color: #fff;
  cursor: pointer;
  line-height: 1.2;
}
.btn:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--orange);
}
.btn-outline:hover { background: var(--orange); color: #fff; }
.btn-dark {
  background: var(--btn-dark-bg);
  border-color: var(--btn-dark-bg);
  color: var(--btn-dark-fg);
}
.btn-dark:hover { filter: brightness(1.08); color: var(--btn-dark-fg); }
.btn-disabled,
.btn[aria-disabled="true"] {
  opacity: 0.92;
}
.btn[aria-disabled="true"]:hover {
  background: var(--orange);
  border-color: var(--orange);
}

/* ----- Hero / product banner (flyer language) ----- */
.product-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  background: var(--orange);
  color: #fff;
}
.product-banner .title-block {
  flex: 1 1 280px;
  padding: 1.1rem 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.product-banner .sku {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  font-size: clamp(3rem, 8vw, 5.2rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin: 0;
  color: #fff;
}
.product-banner .tagline {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  margin: 0.25rem 0 0;
  color: #fff;
  letter-spacing: 0.01em;
}
.banner-aside {
  display: flex;
  align-items: stretch;
  flex: 0 1 auto;
  margin-left: auto;
}
.banner-mark {
  display: flex;
  align-items: center;
  align-self: stretch;
  padding: 0.5rem 0.55rem 0.5rem 0.35rem;
  box-sizing: border-box;
}
.banner-mark img {
  display: block;
  height: 100%;
  width: auto;
  max-height: 9.6rem;
}
.badge-toty {
  flex: 0 0 auto;
  background: #1A1A1A; /* stays near-black in both themes (banner accent, not a page surface) */
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 1rem 1.4rem 1rem 1.8rem;
  min-width: 180px;
  clip-path: polygon(18px 0, 100% 0, 100% 100%, 0 100%);
  font-family: "Barlow Condensed", sans-serif;
}
.badge-toty strong {
  font-size: 1.45rem;
  font-weight: 800;
  font-style: italic;
  display: block;
}
.badge-toty span {
  font-size: 1.05rem;
  font-weight: 500;
  font-style: italic;
}

.hero {
  padding: 2.2rem 0 2.6rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
.hero-copy .lede {
  font-size: 1.08rem;
  max-width: 38em;
}
.hero-photo {
  text-align: center;
}
.hero-photo img {
  margin-inline: auto;
  max-height: 420px;
  width: auto;
  object-fit: contain;
}

/* ----- Sections ----- */
section { padding: 2.4rem 0; }
.section-head {
  border-bottom: 3px solid var(--orange);
  margin-bottom: 1.25rem;
  padding-bottom: 0.35rem;
}
.section-head h2 { margin: 0; }
.muted { color: var(--muted); }
.rule { height: 3px; background: var(--orange); border: 0; margin: 0 0 1rem; width: 100%; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.feat-list, .ben-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.feat-list li, .ben-list li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.1rem;
}
.feat-list li::before, .ben-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}

/* Product pair on home */
.product-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.card {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.3rem 1.4rem;
  background: var(--card-bg);
  display: flex;
  flex-direction: column;
}
.card img {
  margin: 0 auto 1rem;
  max-height: 240px;
  width: auto;
  object-fit: contain;
}
.card h3 { font-size: 1.6rem; margin-bottom: 0.25rem; }
.card .sub { font-family: "Barlow Condensed", sans-serif; font-weight: 600; color: var(--orange); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 0.7rem; }
.card p { flex: 1; }

/* Quotes */
.quotes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
blockquote {
  margin: 0;
  padding: 0;
  font-style: italic;
  color: var(--ink);
  font-size: 1.05rem;
}
blockquote footer {
  margin-top: 0.6rem;
  font-style: normal;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
}
blockquote footer span { font-weight: 400; color: var(--muted); display: block; }

/* Specs table — flyer style */
.table-wrap { overflow-x: auto; }
table.specs {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
  max-width: 560px;
}
table.specs th, table.specs td {
  text-align: left;
  padding: 0.45rem 0.7rem;
  border: none;
}
table.specs thead th {
  background: var(--orange);
  color: #fff;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}
table.specs tbody th { font-weight: 700; }
table.specs tbody tr:nth-child(even) { background: var(--row); }
table.specs tbody tr:nth-child(odd) { background: var(--table-odd); }

/* Photo figures */
.photo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
figure { margin: 0; }
figcaption {
  font-size: 0.92rem;
  color: var(--muted);
  margin-top: 0.5rem;
  text-align: center;
}

.poster-figure {
  margin: 1.5rem auto 0.5rem;
  max-width: 28rem;
}
.poster-figure img {
  width: 100%;
  height: auto;
  display: block;
  background: #0b0b0c;
  border-radius: 2px;
}
.poster-figure figcaption {
  max-width: 40em;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}
.poster-figure .poster-credit {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Showcase / Concretely placeholder */
.showcase-note { max-width: 40em; }
.showcase-card {
  display: block;
  max-width: 400px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 1.2rem 1.3rem;
  text-decoration: none;
  color: inherit;
  background: var(--card-bg);
}
.showcase-card:hover { border-color: var(--orange); color: inherit; }
.showcase-placeholder {
  height: 140px;
  background: repeating-linear-gradient(
    -45deg,
    #f3f3f3,
    #f3f3f3 10px,
    #ececec 10px,
    #ececec 20px
  );
  border: 1px dashed var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
  text-align: center;
  padding: 0.5rem;
}
.showcase-card h3 { margin-bottom: 0.2rem; }
.ig-link {
  color: var(--orange);
  font-weight: 600;
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

/* Where to buy */
.dealer-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}
.dealer-list li {
  border: 1px dashed var(--line);
  background: var(--surface-alt);
  padding: 0.85rem 1rem;
  margin-bottom: 0.6rem;
  color: var(--muted);
}
.todo-note {
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
}

/* Cream callouts (Star Wax flyer) */
.callouts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.4rem 0;
}
.callout {
  background: var(--cream);
  border-radius: 8px;
  padding: 1.1rem 1.2rem;
}
.callout h3 {
  border-bottom: 3px solid var(--orange);
  display: inline-block;
  padding-bottom: 0.15rem;
  margin-bottom: 0.6rem;
}
.recommend {
  background: var(--footer);
  color: #fff;
  padding: 1.2rem 1.4rem;
  border-radius: 6px;
  border-left: 6px solid var(--orange);
  margin: 1.5rem 0;
}
.recommend h3 { color: var(--orange); margin-bottom: 0.4rem; }
.recommend p { margin: 0; }

/* About quote */
.ceo-quote {
  border-left: 4px solid var(--orange);
  padding: 0.2rem 0 0.2rem 1.1rem;
  margin: 1.3rem 0;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
address { font-style: normal; }
.contact-form label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin: 0.7rem 0 0.25rem;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text);
  font: inherit;
}
.contact-form textarea { min-height: 8rem; resize: vertical; }
.contact-form button { margin-top: 1rem; }

/* Footer */
.site-footer {
  background: var(--footer);
  color: var(--on-footer);
  margin-top: 2rem;
  padding: 2rem 0 1.5rem;
  border-top: 6px solid var(--orange);
  font-size: 0.92rem;
}
.site-footer a { color: #fff; }
.site-footer .brand {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}
.site-footer .tag {
  color: var(--orange);
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
}

@media (max-width: 800px) {
  .hero-grid,
  .two-col,
  .product-cards,
  .quotes,
  .photo-row,
  .callouts,
  .contact-grid,
  .media-grid,
  .media-grid.photos,
  .media-grid.videos,
  .showcase-preview { grid-template-columns: 1fr; }
  .header-inner { flex-direction: column; align-items: flex-start; min-height: 0; }
  .header-actions { margin-left: 0; }
  .logo img { width: 200px; }
  .hero-photo img { max-height: 300px; }
  .banner-aside {
    flex: 1 1 100%;
    width: 100%;
    margin-left: 0;
  }
  .banner-mark { padding: 0.55rem 0.45rem 0.55rem 0.85rem; }
  .banner-mark img { height: 5.1rem; max-height: 5.1rem; }
  .badge-toty { flex: 1 1 auto; min-width: 0; }
}

/* Star Wax 16 oz product photo. Filenames (star-wax-16oz.jpg, star-wax-label-old.jpg) are easy to swap when the new label ships. */
.hero-photo .product-photo,
.card .product-photo {
  border-radius: 6px;
  box-shadow: var(--shadow);
  width: auto;
  margin-inline: auto;
}
figure.label-art { margin: 1rem 0 0; }
figure.label-art img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: var(--shadow);
}


/* Featured customer: Concretely LLC */
.credit-note {
  background: var(--cream);
  border-left: 6px solid var(--orange);
  padding: 1.1rem 1.3rem;
  margin: 0 0 1.8rem;
  max-width: 52em;
}
.credit-note p:last-child { margin-bottom: 0; }
.showcase-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 1.5rem;
  align-items: start;
}
.showcase-preview-copy h3 { font-size: 1.7rem; }
.media-grid {
  display: grid;
  gap: 1.5rem;
}
.media-grid.photos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.media-grid.videos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.media-card {
  margin: 0;
  background: var(--card-bg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 0 0 1rem;
  display: flex;
  flex-direction: column;
}
.media-card h3 {
  margin: 0.85rem 1rem 0.15rem;
  font-size: 1.3rem;
}
.media-frame {
  position: relative;
  background: #111;
}
.media-frame img,
.media-frame video {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
  background: #111;
}
.media-frame video { max-height: 72vh; object-fit: contain; }
.media-credit {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 0.45rem 0.7rem;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
}
.media-credit a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.media-credit a:hover { color: var(--gold); }
.media-card figcaption {
  text-align: left;
  padding: 0.65rem 1rem 0;
  color: var(--text);
  font-size: 0.92rem;
}
.media-card figcaption a { font-weight: 600; }

/* ----- Star Wax pack selector ----- */
.buy-box { margin: 1.25rem 0 0.5rem; }
.buy-title { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 1.2rem; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 0.6rem; }
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem 0.6rem; }
@media (max-width: 520px) { .packs { grid-template-columns: 1fr 1fr; } .packs .pack:last-child { grid-column: 1 / -1; } }
.pack { position: relative; display: flex; flex-direction: column; gap: 0.15rem; padding: 0.8rem 0.7rem 0.7rem; border: 2px solid var(--line); border-radius: 4px; background: var(--paper); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.pack:hover { border-color: var(--orange); }
.pack input { position: absolute; opacity: 0; pointer-events: none; }
.pack:has(input:checked) { border-color: var(--orange); box-shadow: 0 0 0 2px rgba(242, 85, 29, 0.25); background: var(--cream); }
.pack:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.pack-qty { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.04em; }
.pack-price { font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-size: 1.7rem; color: var(--orange); line-height: 1.05; }
.pack-per { font-size: 0.85rem; color: var(--muted); }
.pack-ship { font-size: 0.82rem; color: var(--muted); }
.pack-ship.free { color: var(--success); font-weight: 700; }
.pack-badge { position: absolute; top: -0.65rem; right: 0.5rem; background: var(--orange); color: #fff; font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase; padding: 0.1rem 0.45rem; border-radius: 2px; }
.buy-note { font-size: 0.9rem; color: var(--muted); margin: 0.2rem 0 0; }

/* ----- Press: As featured in two books by Scott Cohen ----- */
.press-cohen {
  padding: 2.5rem 0 3rem;
  background: var(--cream);
  border-top: 4px solid var(--orange);
  border-bottom: 1px solid var(--line);
}
.press-cohen .section-kicker {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}
.press-cohen h2 { margin: 0 0 1.15rem; }
.press-cohen > .wrap > blockquote {
  max-width: 46em;
  margin: 0 0 1.5rem;
  font-size: 1.15rem;
  line-height: 1.45;
}
.press-cohen blockquote footer a { font-weight: 700; }
.press-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 0 1.4rem;
  align-items: start;
}
.press-gallery figure {
  background: var(--card-bg);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.press-gallery a { display: block; color: inherit; }
.press-gallery img {
  width: 100%;
  height: auto;
  display: block;
  background: var(--surface-alt);
}
.press-gallery figcaption {
  font-size: 0.8rem;
  color: var(--muted);
  padding: 0.45rem 0.6rem 0.6rem;
  line-height: 1.35;
  text-align: left;
  margin: 0;
}
.press-books {
  margin: 0;
  padding: 0;
  list-style: none;
}
.press-books li { margin: 0 0 0.55rem; }
.press-books .book-title { font-weight: 700; }
.press-books .book-meta {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}
.press-note {
  margin: 1.15rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 46em;
}

/* Lightbox for the book ad pages */
.press-lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: calc(100vw - 2rem);
  max-height: calc(100vh - 2rem);
}
.press-lightbox::backdrop { background: rgba(0, 0, 0, 0.88); }
.press-lightbox img {
  max-width: min(1100px, 96vw);
  max-height: 90vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
  background: #fff;
}
.press-lightbox-close {
  position: fixed;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.press-lightbox-close:hover { background: var(--orange); color: #fff; }
.press-lightbox-close:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

@media (max-width: 800px) {
  .press-gallery { grid-template-columns: 1fr 1fr; }
}


/* ----- Made in California licensed label (GO-Biz). Do not recolor, stretch, crop, or merge with the INTER-TOOL mark. ----- */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.4rem;
  margin: 1.1rem 0 0.15rem;
}
.trust-made-usa {
  margin: 0;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.made-in-ca-badge {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
  flex-shrink: 0;
}
.made-in-ca-badge img {
  width: 220px;
  height: auto;
  display: block;
}
.made-in-ca-badge:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
}
/* Dark footer: official color logo on a white padded tile (clear space; does not alter the label). */
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem 2.25rem;
}
.footer-info {
  flex: 1 1 16rem;
  min-width: 0;
}
.made-in-ca-badge--footer {
  background: var(--badge-tile);
  border-radius: 10px;
  padding: 14px 16px;
  align-self: flex-end;
}
.made-in-ca-badge--footer img {
  width: 140px;
  height: auto;
}

@media (max-width: 800px) {
  .made-in-ca-badge img { width: 200px; }
  .made-in-ca-badge--footer { margin-top: 0.25rem; }
  .made-in-ca-badge--footer img { width: 140px; }
  .footer-inner { align-items: flex-start; }
}


/* INTER-TOOL circle mark (official CircleLogo) */
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}
.footer-mark {
  width: 56px;
  height: auto;
  flex-shrink: 0;
}
.footer-brand .brand,
.footer-brand .tag { margin-bottom: 0.15rem; }
.footer-brand .tag { margin-bottom: 0; }

.about-hero { text-align: left; }
.about-mark {
  width: 168px;
  height: auto;
  margin: 0 0 0.45rem;
}

.machine-mark-photo { margin: 0; }
.machine-mark-photo figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  text-align: left;
  max-width: 28em;
  margin: 0.7rem auto 0;
  line-height: 1.4;
}
.machine-mark-photo .caption-mark {
  width: 48px;
  height: auto;
  flex-shrink: 0;
}

@media (max-width: 800px) {
  .footer-mark { width: 48px; }
  .about-mark { width: 128px; }
  .machine-mark-photo .caption-mark { width: 40px; }
}

.mark-note {
  color: var(--muted);
  font-size: 0.98rem;
  margin: -0.35rem 0 1.35rem;
  max-width: 32em;
}


/* ----- Field videos: lazy YouTube embeds ----- */
.field-videos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.25rem;
}
.field-video {
  margin: 0;
  background: var(--card-bg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.yt-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
  overflow: hidden;
}
.yt-embed img,
.yt-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.yt-embed img { object-fit: cover; }
.yt-play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.yt-play:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.yt-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 68px;
  height: 48px;
  margin: -24px 0 0 -34px;
  border-radius: 12px;
  background: rgba(242, 85, 29, 0.92);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  transition: background 0.15s, transform 0.15s;
}
.yt-play-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent #fff;
  transform: translate(-50%, -50%);
}
.yt-play:hover .yt-play-icon,
.yt-play:focus-visible .yt-play-icon {
  background: var(--orange);
  transform: scale(1.06);
}
.field-video figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: left;
  padding: 0.75rem 1rem 1rem;
  color: var(--text);
  font-size: 0.92rem;
}
.field-video-title {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  line-height: 1.25;
}
.field-video-credit { color: var(--muted); }
.field-video-credit a { font-weight: 600; }

@media (max-width: 1000px) {
  .field-videos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .field-videos { grid-template-columns: 1fr; }
}

/* Featured customer testimonial */
.customer-quote {
  max-width: 46em;
  margin: 1.25rem 0 0;
  padding: 1.1rem 1.3rem;
  background: var(--cream);
  border-left: 6px solid var(--orange);
}
.customer-quote p { margin: 0; }
.customer-quote footer a { font-weight: 700; }
.quotes .customer-quote {
  grid-column: 1 / -1;
  margin-top: 0;
}

/* DS3011 rental rates & terms */
.rental-intro,
.rental-contact {
  max-width: 42em;
}
.rental-contact { margin-top: 1.35rem; }
table.rental-terms {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
  max-width: 44rem;
}
table.rental-terms th,
table.rental-terms td {
  text-align: left;
  padding: 0.55rem 0.8rem;
  border: none;
  vertical-align: top;
}
table.rental-terms thead th {
  background: var(--orange);
  color: #fff;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}
table.rental-terms tbody th {
  font-weight: 700;
  width: 11.5rem;
  color: var(--ink);
}
table.rental-terms tbody tr:nth-child(even) { background: var(--row); }
table.rental-terms tbody tr:nth-child(odd) { background: var(--table-odd); }
table.rental-terms .rate { font-weight: 700; white-space: nowrap; }
@media (max-width: 600px) {
  table.rental-terms tbody th { width: auto; }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Planetary-motion animation (DS3011 page + home) */
.planetary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 2rem;
  align-items: start;
  margin-top: 1.5rem;
}
.planetary-grid .poster-figure { margin: 0 auto; }
.planetary-anim { margin: 0; }
.planetary-anim .pa-stage {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.planetary-anim .pa-svg, .planetary-anim .pa-fallback { display: block; width: 100%; height: auto; }
.pa-label { font: 800 30px "Barlow Condensed", "Arial Narrow", sans-serif; letter-spacing: 0.01em; text-transform: uppercase; }
.pa-sub { font: 400 20px "Helvetica Neue", Helvetica, Arial, sans-serif; }
.planetary-anim .pa-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  align-items: center;
  margin-top: 0.75rem;
}
.pa-toggle {
  font: 600 0.9rem/1 "Helvetica Neue", Helvetica, Arial, sans-serif;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--card-bg);
  color: var(--ink);
  cursor: pointer;
}
.pa-toggle:hover, .pa-toggle:focus-visible { background: var(--ink); color: var(--paper); }
.pa-video-link { font-weight: 700; }
.planetary-anim figcaption { text-align: left; margin-top: 0.75rem; }
.planetary-anim .pa-note { display: block; margin-top: 0.35rem; font-size: 0.82rem; }

.home-planetary {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--card-bg);
}
.home-planetary .planetary-anim .pa-stage { border: 0; box-shadow: none; }
.home-planetary h3 { margin: 0 0 0.3rem; }
.home-planetary p { margin: 0 0 0.6rem; }
.home-planetary .pa-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; align-items: center; }

@media (max-width: 800px) {
  .planetary-grid { grid-template-columns: 1fr; }
  .home-planetary { grid-template-columns: 120px minmax(0, 1fr); }
}

/* ----- Theme toggle (header) ----- */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}
.theme-toggle {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  line-height: 0;
}
.theme-toggle:hover,
.theme-toggle:focus-visible {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.theme-toggle svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: currentColor;
  display: block;
}
html[data-theme="light"] .theme-icon-sun { display: none; }
html[data-theme="dark"] .theme-icon-moon { display: none; }

/* Planetary SVG labels follow the theme; the metal plate and pads stay as drawn */
.pa-label { fill: var(--ink); }
.pa-label-accent { fill: var(--orange); }
.pa-sub { fill: var(--muted); }
.pa-arrow { stroke: var(--ink); }
.pa-arrow-head { fill: var(--ink); }

/* ----- Dark theme ----- */
html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0B0B0B;
  --ink: #F4F1EC;
  --text: #EDEAE4;
  --muted: #B4AFA8;
  --line: #2C2C2C;
  --row: #191919;
  --table-odd: #141414;
  --card-bg: #111111;
  --footer: #111111;
  --cream: #221C16;
  --shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
  --link: #FF6A38;            /* 6.9:1 on #0b0b0b, keeps brand orange family */
  --orange-dark: #FF6A38;
  --input-bg: #161616;
  --input-border: #3A3A3A;
  --btn-dark-bg: #F4F1EC;
  --btn-dark-fg: #1A1A1A;
  --surface-alt: #161616;
  --on-footer: #C8C4BC;
  --badge-tile: #FFFFFF;
  --success: #5ED67A;
  --max: 1080px;
}
html[data-theme="dark"] body { background: var(--paper); color: var(--text); }
html[data-theme="dark"] .btn-outline {
  color: var(--orange);
  background: transparent;
}
html[data-theme="dark"] .btn-outline:hover {
  background: var(--orange);
  color: #fff;
}
html[data-theme="dark"] .made-in-ca-badge:not(.made-in-ca-badge--footer) {
  background: var(--badge-tile);
  border-radius: 10px;
  padding: 10px 12px;
}
html[data-theme="dark"] .contact-form input,
html[data-theme="dark"] .contact-form textarea,
html[data-theme="dark"] .contact-form select {
  background: var(--input-bg);
  color: var(--text);
  border-color: var(--input-border);
}
html[data-theme="dark"] .contact-form input:focus,
html[data-theme="dark"] .contact-form textarea:focus,
html[data-theme="dark"] .contact-form select:focus {
  outline: 2px solid var(--orange);
  outline-offset: 1px;
}
html[data-theme="dark"] .cf-turnstile {
  background: var(--card-bg);
  border-radius: 6px;
  padding: 0.35rem 0.35rem 0.15rem;
  display: inline-block;
}
html[data-theme="dark"] .press-cohen {
  background: var(--cream);
  border-bottom-color: var(--line);
}
html[data-theme="dark"] .press-lightbox-frame,
html[data-theme="dark"] .press-lightbox-close {
  background: var(--card-bg);
  color: var(--ink);
}
html[data-theme="dark"] .credit-note,
html[data-theme="dark"] .recommend,
html[data-theme="dark"] .ceo-quote,
html[data-theme="dark"] blockquote {
  color: var(--text);
}
html[data-theme="dark"] .site-footer a:hover { color: var(--gold); }

.buy-direct-note {
  max-width: 38em;
  margin: 0.35rem 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.buy-direct-note[hidden] { display: none; }
.contact-form { margin-top: 0.5rem; }

/* Learn articles */
.article { max-width: 760px; }
.article-head { padding-top: 2rem; padding-bottom: 0.5rem; }
.article h1 { line-height: 1.1; }
.article h2 { margin-top: 2.2rem; scroll-margin-top: 1rem; }
.article h3 { margin-top: 1rem; }
.article p, .article li { line-height: 1.65; }
.article sup a { text-decoration: none; font-size: 0.75em; margin-left: 1px; }
.article-kicker { font-family: "Barlow Condensed", sans-serif; font-weight: 600; color: var(--orange); letter-spacing: .08em; text-transform: uppercase; margin: 0 0 .3rem; }
.article-kicker a { color: inherit; text-decoration: none; }
.article-meta { color: var(--muted); font-size: 0.92rem; }
.toc { border: 1px solid var(--line); background: var(--surface-alt); padding: 0.9rem 1.2rem; border-radius: 6px; margin: 0 0 1.5rem; }
html[data-theme="dark"] .toc { background: var(--card-bg); }
.toc-title { font-family: "Barlow Condensed", sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 .3rem; }
.toc ol { margin: 0; padding-left: 1.3rem; }
.steps { padding-left: 1.3rem; }
.steps li { margin-bottom: 0.5rem; }
.article-figure { float: right; width: 240px; margin: 0 0 1rem 1.5rem; text-align: center; }
.article-figure img { width: 100%; height: auto; }
.article-figure figcaption { color: var(--muted); font-size: 0.85rem; }
@media (max-width: 700px) { .article-figure { float: none; width: 60%; margin: 0 auto 1rem; } }
.article-faq details { border-bottom: 1px solid var(--line); padding: 0.75rem 0; }
.article-faq summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.article-faq details p { margin: 0.5rem 0 0; }
.sources li { margin-bottom: 0.55rem; font-size: 0.95rem; word-break: break-word; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--link); }

/* ----- Language switcher (header) ----- */
.site-header {
  position: relative;
  z-index: 30;
}
.lang-switch {
  position: relative;
  flex-shrink: 0;
}
.lang-toggle {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  line-height: 0;
}
.lang-toggle:hover,
.lang-toggle:focus-visible {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.lang-toggle svg,
.lang-icon {
  width: 1.2rem;
  height: 1.2rem;
  display: block;
}
.lang-menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  z-index: 40;
  width: min(17.5rem, calc(100vw - 2rem));
  max-height: min(24rem, calc(100vh - 8rem));
  overflow: auto;
  background: var(--card-bg);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 0.4rem 0 0.5rem;
}
.lang-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.lang-more-label {
  margin: 0.4rem 0 0.15rem;
  padding: 0.35rem 0.9rem 0.1rem;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.lang-option {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--ink);
  font: inherit;
  font-size: 0.98rem;
  line-height: 1.3;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
}
.lang-option:hover,
.lang-option:focus-visible {
  background: var(--row);
  color: var(--ink);
  outline: none;
}
.lang-option.is-active {
  font-weight: 700;
  color: var(--orange-dark, var(--orange));
}
html[data-theme="dark"] .lang-option.is-active { color: var(--link); }

/* Hide Google Translate's default banner/toolbar and undo the body offset. */
#google_translate_element,
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
.goog-te-gadget,
.goog-logo-link,
.goog-te-balloon-frame,
#goog-gt-tt,
iframe.skiptranslate,
body > .skiptranslate,
.VIpgJd-ZVi9od-ORHb-OEVmcd,
.VIpgJd-ZVi9od-l4eHX-hSRGPd,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  width: 0 !important;
  border: 0 !important;
}
body { top: 0 !important; }
html.translated-ltr body,
html.translated-rtl body { top: 0 !important; }
.goog-text-highlight,
font {
  background: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

@media (max-width: 800px) {
  /* header-actions stays right-aligned, so keep the menu anchored to the
     globe and growing left, inside the viewport. */
  .lang-menu {
    right: 0;
    left: auto;
    width: min(17.5rem, calc(100vw - 1.25rem));
  }
}

/* ----- Page back link (below header/nav, hidden on the home page) ----- */
.page-back {
  margin: 0;
  padding: 0.85rem 0 0;
}
.page-back a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.95rem 0.35rem 0.75rem;
  box-shadow: var(--shadow);
}
.page-back a::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -1px;
}
.page-back a:hover,
.page-back a:focus-visible {
  color: #fff;
  background: var(--orange);
  border-color: var(--orange);
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* ----- Floating back-to-top ----- */
.back-to-top {
  appearance: none;
  -webkit-appearance: none;
  position: fixed;
  right: 1.15rem;
  bottom: 1.15rem;
  z-index: 25;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: var(--orange);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--orange-dark, #D44516);
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.back-to-top svg {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
}
@media (max-width: 800px) {
  .back-to-top {
    right: 0.9rem;
    bottom: 0.9rem;
  }
}

/* ----- Learn article heroes ----- */
.article-hero {
  margin: 1.1rem 0 1.5rem;
}
.article-hero picture,
.article-hero img,
.article-hero .planetary-anim {
  display: block;
  width: 100%;
}
.article-hero img,
.article-hero .pa-stage,
.article-hero .pa-svg {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.article-hero figcaption {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
  margin-top: 0.45rem;
}
.article-hero figcaption a { color: inherit; }
.article-hero-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.article-hero-row figure { margin: 0; }
@media (max-width: 700px) {
  .article-hero-row { grid-template-columns: 1fr; }
}
.planetary-hero .pa-stage { background: var(--card-bg); }
.article-hero .product-photo {
  max-width: 420px;
  margin-inline: auto;
}


/* ----- Section visuals beside the text ----- */
.viz-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1.1rem 1.4rem;
  align-items: start;
  margin: 0 0 0.4rem;
}
.viz-block + .viz-block { margin-top: 1.6rem; }
.viz-flip {
  grid-template-columns: 300px minmax(0, 1fr);
}
.viz-flip .viz-text { order: 2; }
.viz-flip .viz-fig { order: 1; }
.viz-text h2 { margin-top: 0; }
.viz-fig {
  margin: 0;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.65rem 0.65rem 0.45rem;
}
html[data-theme="dark"] .viz-fig { background: var(--card-bg); }
.viz-svg { line-height: 0; }
.viz-svg svg {
  width: 100%;
  height: auto;
  display: block;
  color: var(--ink);
}
.viz-fig figcaption {
  font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  color: var(--muted);
  margin: 0.45rem 0 0;
  text-align: center;
  line-height: 1.35;
  text-transform: none;
}
.viz-svg svg { color: #222; }
html[data-theme="dark"] .viz-svg svg { color: #EDEAE4; }
.viz-svg svg text,
.viz-fig svg text,
.fig svg text {
  stroke: none;
  stroke-width: 0;
  font-weight: 400;
  font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  paint-order: fill;
}
.viz-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin: 0.8rem 0 1.6rem;
  align-items: start;
}
@media (max-width: 700px) {
  .viz-block,
  .viz-flip,
  .viz-row { grid-template-columns: 1fr; }
  .viz-flip .viz-text,
  .viz-flip .viz-fig { order: unset; }
  .viz-fig { max-width: 400px; width: 100%; margin-inline: auto; }
}
