/* =========================================================
   Tool / article pages. Layers on top of tokens.css + main.css.
   ========================================================= */

/* --- breadcrumbs --- */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .84rem;
  color: var(--text-faint);
  margin-bottom: 26px;
}
.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs a .material-icons { font-size: 17px; }
.breadcrumbs .sep { color: var(--border-strong); }
.breadcrumbs .current { color: var(--text); font-weight: 500; }

/* --- tool hero --- */
header.tool-hero {
  background: var(--hero-wash);
  border-bottom: 1px solid var(--border);
  padding: 26px 0 clamp(30px, 5vw, 46px);
}
.tool-hero .inner {
  max-width: 920px;
  margin-inline: auto;
  padding-inline: 20px;
}
.tool-hero .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.tool-hero .ident {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}
.tool-hero .plate {
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  flex: 0 0 auto;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--logo-plate);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.tool-hero .plate img {
  max-width: 100%;
  max-height: 68px;
  object-fit: contain;
}
.tool-hero h1 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--text);
  margin-bottom: 8px;
}
.tool-hero .rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .9rem;
  color: var(--text-muted);
}
.tool-hero .rating .material-icons { font-size: 19px; color: var(--star); }
.tool-hero .rating .src { color: var(--text-faint); font-size: .82rem; }

@media (max-width: 640px) {
  .tool-hero .row { flex-direction: column; align-items: stretch; }
  .tool-hero .ident { flex-direction: column; text-align: center; gap: 14px; }
  .tool-hero .plate { width: 88px; height: 88px; margin-inline: auto; }
  .tool-hero .rating { justify-content: center; width: 100%; }
}

/* --- download button --- */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 26px;
  min-height: 52px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--success);
  color: #fff;
  font-family: var(--font-sans);
  font-size: .96rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.cta-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: var(--shadow-lg);
}
.cta-button:active { transform: translateY(0); }
.cta-button .material-icons { font-size: 20px; }

/* override the homepage card grid for the single bottom button */
.ctas.ctas-bottom {
  display: flex;
  justify-content: center;
  margin: clamp(36px, 6vw, 56px) auto 0;
  padding-inline: 20px;
}

/* --- article body --- */
.blog .blog-title {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.blog h2.blog-title { padding-left: 0; border-left: 0; margin-top: 0; }

/* --- video --- */
.youtube {
  max-width: 800px;
  margin: clamp(30px, 5vw, 44px) auto 0;
  padding-inline: 20px;
}
.youtube iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: block;
  background: var(--surface-2);
}

/* privacy page has a long article and no tool hero */
.blog h2 a { word-break: break-word; }

/* --- long-form article elements (added for the expanded guides) --- */
.blog h3 {
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 26px 0 8px;
}
.blog ul,
.blog ol {
  max-width: 68ch;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.72;
  margin: 0 0 16px;
  padding-left: 22px;
}
.blog li { margin-bottom: 8px; }
.blog li::marker { color: var(--accent); }
.blog ol { padding-left: 24px; }

.blog .lede {
  font-size: 1.08rem;
  line-height: 1.66;
  color: var(--text);
}

.blog .table-wrap {
  max-width: 68ch;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.blog table {
  width: 100%;
  min-width: 420px;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.blog th,
.blog td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  vertical-align: top;
}
.blog th {
  color: var(--text);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--surface-2);
}
.blog tbody tr:last-child td { border-bottom: 0; }
.blog td.yes { color: var(--success); font-weight: 600; }
.blog td.no  { color: var(--text-faint); }

.blog .note {
  max-width: 68ch;
  margin: 0 0 20px;
  padding: 16px 18px;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.blog .note p { margin-bottom: 0; color: var(--text); }
.blog .note p + p { margin-top: 10px; }
.blog .note strong { color: var(--text); }

.blog .updated {
  max-width: 68ch;
  font-size: 0.86rem;
  color: var(--text-faint);
  margin: 30px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.blog .updated a { color: var(--text-muted); }
