/* ==========================================================================
   Tools Elite — design system (Laravel)
   Google Clean base (tokens carried over from the WordPress theme) +
   premium polish from the approved design preview: navy-teal gradients,
   glass cards, dark mode. Plain CSS, no build step, no external assets.
   System font stack on purpose: no webfont download keeps the <1s load goal.
   ========================================================================== */

:root {
  /* WP theme tokens (base) */
  --te-bg: #ffffff;
  --te-page-bg: #eef2f5;
  --te-surface: #f8f9fa;
  --te-ink: #202124;
  --te-muted: #5f6368;
  --te-line: #dfe1e5;
  --te-line-soft: #e8eaed;
  --te-accent: #1a73e8;
  --te-accent-dark: #1765cc;
  --te-accent-soft: #e8f0fe;
  --te-success: #188038;
  --te-warning: #e37400;
  --te-danger: #d93025;
  --te-radius-card: 16px;
  --te-radius-input: 8px;
  --te-radius-pill: 999px;
  --te-shadow-search: 0 1px 6px rgba(32, 33, 36, .28);
  --te-shadow-card-hover: 0 1px 3px rgba(60, 64, 67, .30), 0 4px 8px rgba(60, 64, 67, .15);
  --te-max-home: 1200px;
  --te-max-tool: 780px;
  --te-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --te-font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  /* Premium (approved preview) */
  --te-navy: #0e2242;
  --te-navy2: #16305c;
  --te-teal: #0b7a5c;
  --te-teal2: #0ea47a;
  --te-teal-bg: #e2f3ec;
  --te-amber: #b97e0e;
  --te-amber-bg: #fdf3e0;
  --te-grad: linear-gradient(120deg, #0e2242 0%, #143a5e 55%, #0b5c4a 130%);
  --te-grad-soft: linear-gradient(135deg, #eaf3fb 0%, #e6f4ef 100%);
  --te-glass: rgba(255, 255, 255, .78);
  --te-glass-line: rgba(255, 255, 255, .65);
  --te-shadow: 0 12px 32px rgba(14, 34, 66, .10);
  --te-shadow-sm: 0 4px 14px rgba(14, 34, 66, .08);
}

html.dark {
  --te-bg: #121a28;
  --te-page-bg: #080d15;
  --te-surface: #1a2537;
  --te-ink: #eef2f7;
  --te-muted: #aebccf;
  --te-line: #26344a;
  --te-line-soft: #1e2c42;
  --te-accent: #8ab4f8;
  --te-accent-dark: #aecbfa;
  --te-accent-soft: #16233a;
  --te-success: #32d583;
  --te-warning: #fdb022;
  --te-danger: #f97066;
  --te-teal: #35c79c;
  --te-teal2: #35c79c;
  --te-teal-bg: #0d2c23;
  --te-amber-bg: #33270d;
  --te-grad-soft: linear-gradient(135deg, #122036 0%, #0d2c23 100%);
  --te-glass: rgba(18, 26, 40, .78);
  --te-glass-line: rgba(255, 255, 255, .10);
  --te-shadow: 0 12px 32px rgba(0, 0, 0, .45);
  --te-shadow-sm: 0 4px 14px rgba(0, 0, 0, .35);
  --te-shadow-search: 0 1px 6px rgba(0, 0, 0, .5);
  --te-shadow-card-hover: 0 1px 3px rgba(0, 0, 0, .5), 0 4px 8px rgba(0, 0, 0, .4);
  color-scheme: dark;
}

/* ---------- Base ---------- */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--te-page-bg);
  color: var(--te-ink);
  font-family: var(--te-font);
  font-size: 16px;
  line-height: 1.6;
  transition: background .25s ease, color .25s ease;
}
h1, h2, h3 { line-height: 1.25; margin: 0 0 12px; }
h1 { font-size: 30px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
p { margin: 0 0 16px; }
a { color: var(--te-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
button, [role="button"], select, summary { min-height: 44px; }
input:not([type="checkbox"], [type="radio"]) { min-height: 44px; }
:focus-visible { outline: 2px solid var(--te-accent); outline-offset: 2px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.te-skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--te-navy); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.te-skip:focus { left: 0; color: #fff; text-decoration: none; }

.te-wrap { max-width: var(--te-max-home); margin: 0 auto; padding: 0 16px; }
.te-wrap-narrow { max-width: var(--te-max-tool); margin: 0 auto; padding: 0 16px; }

/* ---------- Header ---------- */

.te-header {
  background: var(--te-bg);
  border-bottom: 1px solid var(--te-line-soft);
  position: relative;
  z-index: 10;
}
.te-header-inner {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  min-height: 64px; padding-top: 8px; padding-bottom: 8px;
}
.te-logo {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 21px; font-weight: 800; letter-spacing: -.02em;
  color: var(--te-ink); text-decoration: none; white-space: nowrap;
  min-height: 44px;
}
.te-logo:hover { text-decoration: none; }
.te-logo span { color: #1a73e8; }
html.dark .te-logo span { color: #8ab4f8; }
.te-logo-mark { width: 32px; height: 32px; border-radius: 8px; flex: none; }
.te-nav { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.te-nav a {
  color: var(--te-muted); font-size: 15px; font-weight: 500;
  padding: 10px 14px; border-radius: 8px; min-height: 44px;
  display: inline-flex; align-items: center;
}
.te-nav a:hover { color: var(--te-ink); background: var(--te-surface); text-decoration: none; }
.te-theme-toggle {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 14px;
  font-size: 14px; font-weight: 600; color: var(--te-ink);
  background: var(--te-surface);
  border: 1px solid var(--te-line);
  border-radius: var(--te-radius-pill);
  cursor: pointer;
}
.te-theme-toggle:hover { border-color: var(--te-accent); }
.te-theme-icon-sun { display: none; }
html.dark .te-theme-icon-moon { display: none; }
html.dark .te-theme-icon-sun { display: block; }
@media (max-width: 560px) {
  .te-header-inner { gap: 4px 12px; }
  .te-nav { order: 3; flex-basis: 100%; }
  .te-nav a { padding: 10px 10px; }
  .te-theme-label { display: none; }
  .te-theme-toggle { padding: 8px 12px; }
}

/* ---------- Buttons ---------- */

.te-btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 24px;
  font-weight: 700; font-size: 15px; color: #fff;
  background: var(--te-teal); border: 0; border-radius: 10px; cursor: pointer;
  text-decoration: none;
}
.te-btn-primary:hover { background: var(--te-teal2); text-decoration: none; color: #fff; }
.te-btn-dark {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px;
  font-weight: 700; font-size: 14.5px; color: #fff;
  background: var(--te-navy); border: 0; border-radius: 10px; cursor: pointer;
  text-decoration: none; white-space: nowrap;
}
.te-btn-dark:hover { background: var(--te-navy2); text-decoration: none; color: #fff; }
html.dark .te-btn-dark { background: #e8eef7; color: #0e2242; }
html.dark .te-btn-dark:hover { background: #fff; color: #0e2242; }

/* ---------- Hero ---------- */

.te-hero {
  background: var(--te-grad);
  color: #fff;
  padding: 44px 0 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.te-hero::after {
  content: ""; position: absolute; inset: auto -5% -80% 45%; height: 300px;
  background: radial-gradient(closest-side, rgba(53, 199, 156, .30), transparent);
  pointer-events: none;
}
.te-hero .te-wrap { position: relative; z-index: 1; }
.te-hero-title {
  font-size: clamp(26px, 4.5vw, 40px); font-weight: 800;
  margin: 0 auto 10px; max-width: 680px; color: #fff;
}
.te-hero-sub { color: #c3d3ea; margin: 0 auto 24px; max-width: 560px; font-size: 16.5px; }
.te-search-hint { max-width: 580px; margin: 12px auto 0; font-size: 13.5px; color: #9fd8c6; text-align: left; }
.te-search-hint button {
  background: none; border: 0; padding: 0; min-height: 0;
  color: #fff; font-weight: 600; cursor: pointer; text-decoration: underline;
  text-underline-offset: 2px; font-size: inherit;
}
.te-search-hint button:hover { color: #d8f5ea; }
.te-hero-stats {
  display: flex; justify-content: center; gap: 8px 28px; flex-wrap: wrap;
  margin: 22px 0 0; font-size: 14px; color: #9db6d8;
}
.te-hero-stats b { color: #fff; }

/* ---------- Search box ---------- */

.te-search { position: relative; max-width: 580px; margin: 0 auto; }
.te-search-input {
  width: 100%; height: 56px;
  padding: 0 48px 0 48px;
  font-size: 17px; color: #202124;
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: var(--te-radius-pill);
  outline: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .25);
  transition: box-shadow .15s ease;
  -webkit-appearance: none; appearance: none;
}
.te-search-input:hover, .te-search-input:focus { box-shadow: 0 10px 32px rgba(0, 0, 0, .35); }
.te-search-input::placeholder { color: #5f6368; }
/* Hide the browser's native search clear button — the site has its own. */
.te-search-input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }
.te-search-input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.te-search-input::-ms-clear { display: none; }
.te-catalogue-head .te-search-input {
  background: var(--te-bg); color: var(--te-ink);
  border-color: var(--te-line);
  box-shadow: var(--te-shadow-search);
}
.te-catalogue-head .te-search-input::placeholder { color: var(--te-muted); }
.te-search-icon {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; color: #5f6368; pointer-events: none;
}
.te-search-clear {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; min-height: 44px; border: 0; border-radius: 50%;
  background: transparent; color: #5f6368; font-size: 22px;
  line-height: 1; cursor: pointer; display: none;
}
.te-search-clear:hover { background: #f1f3f4; color: #202124; }
.te-search-clear.te-visible { display: block; }
@media (max-width: 560px) {
  .te-search-input { height: 52px; font-size: 16px; }
}

/* ---------- Spotlight: Tool of the Day ---------- */

.te-spotlight {
  margin: 20px auto 0;
  background: var(--te-grad-soft);
  border: 1px solid var(--te-line);
  border-radius: var(--te-radius-card);
  padding: 18px 20px;
  display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
  box-shadow: var(--te-shadow-sm);
}
.te-spotlight-icon {
  width: 56px; height: 56px; flex: none; border-radius: 14px;
  background: var(--te-grad); color: #fff;
  display: grid; place-items: center; font-size: 26px;
  box-shadow: var(--te-shadow-sm);
}
.te-spotlight-body { flex: 1; min-width: 220px; }
.te-spotlight-kicker {
  font: 700 11.5px var(--te-font-mono); letter-spacing: .08em;
  color: var(--te-teal); text-transform: uppercase;
}
.te-spotlight-title { margin: 3px 0 4px; font-size: 20px; font-weight: 800; }
.te-spotlight-desc { margin: 0; font-size: 14.5px; color: var(--te-muted); max-width: 560px; }

/* ---------- Personal strips: favourites + recent ---------- */

.te-personal {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  padding-top: 16px;
}
@media (max-width: 700px) { .te-personal { grid-template-columns: 1fr; } }
.te-pstrip {
  background: var(--te-glass);
  border: 1px solid var(--te-line);
  border-radius: 14px; padding: 14px 16px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.te-pstrip-title {
  margin: 0 0 10px; font-size: 12px; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase; color: var(--te-muted);
}
.te-plist { display: flex; flex-wrap: wrap; gap: 7px; }
.te-pchip {
  border: 1px solid var(--te-line); background: var(--te-bg); color: var(--te-ink);
  border-radius: var(--te-radius-pill); padding: 10px 14px;
  font-size: 13.5px; font-weight: 600; cursor: pointer; min-height: 44px;
  text-decoration: none; display: inline-flex; align-items: center;
}
.te-pchip:hover { border-color: var(--te-teal); text-decoration: none; }
.te-pempty { font-size: 13.5px; color: var(--te-muted); }

/* ---------- Popular tools ---------- */

.te-section-head { margin: 32px 0 14px; }
.te-section-head h2 { margin: 0 0 4px; font-size: 22px; font-weight: 800; }
.te-section-head p { margin: 0; color: var(--te-muted); font-size: 14.5px; }
.te-popular {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px;
}
.te-popular-item a {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid var(--te-line); border-radius: 14px; padding: 14px 16px;
  background: var(--te-bg); color: var(--te-ink); box-shadow: var(--te-shadow-sm);
  height: 100%; text-decoration: none;
}
.te-popular-item a:hover { border-color: var(--te-teal); text-decoration: none; }
.te-popular-rank {
  font-size: 22px; font-weight: 800; color: var(--te-teal); line-height: 1.2; flex: none;
}
.te-popular-body { display: flex; flex-direction: column; min-width: 0; }
.te-popular-name { font-weight: 700; font-size: 15px; }
.te-popular-desc { font-size: 13px; color: var(--te-muted); line-height: 1.45; }

/* ---------- Category chips (scoped under .te-home so these rules can
   never leak into tool pages, whose engines may reuse generic names) --- */

.te-home .te-chips {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 24px 16px 4px; margin: 0 auto; max-width: var(--te-max-home);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.te-home .te-chips::-webkit-scrollbar { display: none; }
.te-home .te-chip {
  flex: 0 0 auto; min-height: 44px;
  padding: 10px 18px;
  font-size: 14px; font-weight: 500; color: var(--te-ink);
  background: var(--te-bg);
  border: 1px solid var(--te-line);
  border-radius: var(--te-radius-pill);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.te-home .te-chip:hover { background: var(--te-surface); }
.te-home .te-chip.te-chip-active {
  background: var(--te-navy); border-color: var(--te-navy); color: #fff;
}
html.dark .te-home .te-chip.te-chip-active { background: #e8eef7; color: #0e2242; border-color: #e8eef7; }

/* ---------- Tool grid ---------- */

.te-home .te-count {
  max-width: var(--te-max-home); margin: 0 auto; padding: 12px 16px 0;
  color: var(--te-muted); font-size: 14px;
}
.te-grid {
  display: grid; grid-template-columns: 1fr; gap: 16px;
  max-width: var(--te-max-home); margin: 0 auto; padding: 16px;
}
@media (min-width: 600px) { .te-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .te-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .te-grid { grid-template-columns: repeat(4, 1fr); } }

.te-card-item { position: relative; min-width: 0; }
.te-card {
  display: block; height: 100%;
  background: var(--te-glass);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--te-line-soft);
  border-radius: var(--te-radius-card);
  padding: 20px;
  color: var(--te-ink);
  box-shadow: var(--te-shadow-sm);
  transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
a.te-card:hover { text-decoration: none; box-shadow: var(--te-shadow-card-hover); transform: translateY(-2px); border-color: var(--te-teal); }
.te-card-title { font-size: 17px; font-weight: 600; margin: 0 0 6px; padding-right: 36px; }
.te-card-disabled .te-card-title { padding-right: 0; }
.te-card-desc { color: var(--te-muted); font-size: 14px; line-height: 1.5; margin: 0 0 12px; }
.te-card-tag {
  display: inline-block; font-size: 12px; font-weight: 600;
  color: var(--te-accent-dark); background: var(--te-accent-soft);
  padding: 3px 10px; border-radius: var(--te-radius-pill);
}
.te-card-soon {
  display: inline-block; font-size: 12px; font-weight: 600;
  color: var(--te-muted); background: var(--te-surface);
  padding: 3px 10px; border-radius: var(--te-radius-pill);
  margin-left: 6px;
}
.te-card-disabled { cursor: default; opacity: .8; }
.te-fav-btn {
  position: absolute; top: 10px; right: 10px;
  width: 44px; height: 44px; min-height: 44px;
  border-radius: 50%; border: 1px solid var(--te-line);
  background: var(--te-bg); color: var(--te-muted);
  font-size: 19px; cursor: pointer;
  display: grid; place-items: center; line-height: 1; padding: 0;
}
.te-fav-btn:hover { border-color: var(--te-amber); color: var(--te-amber); }
.te-fav-btn.on { color: #e8a13a; border-color: #e8a13a; background: var(--te-amber-bg); }

.te-home .te-empty {
  max-width: var(--te-max-home); margin: 0 auto; padding: 32px 16px;
  text-align: center; color: var(--te-muted); display: none;
}
.te-home .te-empty.te-visible { display: block; }
.te-home .te-empty p { font-size: 16px; }
.te-home .te-empty button {
  margin-top: 4px; padding: 10px 22px; min-height: 44px;
  font-size: 15px; font-weight: 600;
  color: #fff; background: var(--te-accent); border: 0;
  border-radius: var(--te-radius-pill); cursor: pointer;
}
.te-home .te-empty button:hover { background: var(--te-accent-dark); }

/* ---------- How it works strip ---------- */

.te-how {
  background: var(--te-bg);
  border-top: 1px solid var(--te-line-soft);
  border-bottom: 1px solid var(--te-line-soft);
  margin-top: 32px; padding: 32px 0;
}
.te-how-grid {
  display: grid; grid-template-columns: 1fr; gap: 20px;
  max-width: var(--te-max-home); margin: 0 auto; padding: 0 16px;
}
@media (min-width: 700px) { .te-how-grid { grid-template-columns: repeat(3, 1fr); } }
.te-how h2 { font-size: 18px; margin: 0 0 6px; }
.te-how p { color: var(--te-muted); font-size: 15px; margin: 0; }

/* ---------- Custom-tools banner ---------- */

.te-custom-banner { padding: 36px 0 44px; }
.te-custom-inner {
  display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: var(--te-grad-soft);
  border: 1px solid var(--te-line);
  border-radius: var(--te-radius-card);
  padding: 24px 28px;
  box-shadow: var(--te-shadow-sm);
}
.te-custom-text h2 { margin: 0 0 4px; font-size: 20px; font-weight: 800; }
.te-custom-text p { margin: 0; color: var(--te-muted); font-size: 15px; max-width: 560px; }
.te-custom-inner .te-btn-primary { flex: none; }

/* ---------- Catalogue page ---------- */

.te-catalogue-head { padding-top: 32px; }
.te-catalogue-head h1 { margin-bottom: 12px; }
.te-catalogue-intro { max-width: 780px; color: var(--te-muted); font-size: 16px; }
.te-catalogue-intro p { margin-bottom: 12px; }
.te-catalogue-head .te-search { margin: 20px 0 0; }

/* ---------- Footer ---------- */

.te-footer {
  background: var(--te-navy); color: #9db6d8;
  padding: 36px 0 40px; font-size: 14px;
}
.te-footer-inner {
  display: flex; flex-wrap: wrap; gap: 20px 32px;
  align-items: flex-start; justify-content: space-between;
}
.te-footer-brand { max-width: 300px; }
.te-footer-logo {
  font-size: 18px; font-weight: 800; color: #fff; text-decoration: none;
  display: inline-block; margin-bottom: 6px;
}
.te-footer-logo:hover { text-decoration: none; }
.te-footer-logo span { color: #8ab4f8; }
.te-footer-brand p { margin: 0; }
.te-footer-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.te-footer-nav a { color: #c3d3ea; min-height: 44px; display: inline-flex; align-items: center; }
.te-footer-nav a:hover { color: #fff; }
.te-footer-copy { flex-basis: 100%; color: #7e90a8; font-size: 13px; }

/* ---------- Tool + static pages ---------- */

.te-page {
  background: var(--te-bg);
  border: 1px solid var(--te-line-soft);
  border-radius: var(--te-radius-card);
  box-shadow: var(--te-shadow-sm);
  padding: 28px 24px 40px;
  margin-top: 24px; margin-bottom: 40px;
}
@media (max-width: 560px) {
  .te-page { padding: 20px 16px 32px; border-radius: 12px; }
  h1 { font-size: 25px; }
  h2 { font-size: 20px; }
}
.te-crumbs { margin-bottom: 14px; font-size: 13.5px; color: var(--te-muted); }
.te-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.te-crumbs li + li::before { content: "›"; margin-right: 8px; color: var(--te-muted); }
.te-crumbs a { color: var(--te-muted); }
.te-crumbs a:hover { color: var(--te-ink); }
.te-tool-head {
  display: flex; gap: 12px; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; margin-bottom: 8px;
}
.te-tool-head h1 { margin: 0; flex: 1; min-width: 220px; }
.te-fav-btn-page {
  position: static; width: auto; height: 44px; border-radius: 10px;
  display: inline-flex; gap: 6px; padding: 0 16px;
  font-size: 14px; font-weight: 600;
}
.te-fav-btn-page span { font-size: 14px; }
.te-last-updated { color: var(--te-muted); font-size: 14px; margin: -4px 0 20px; }

/* The tool block itself ships its own scoped CSS inside the page
   content. These rules style the shared page chrome (carried over
   from the WordPress theme, with dark-mode tokens). */

.te-quick-answer {
  background: var(--te-accent-soft);
  border: 1px solid var(--te-line);
  border-left: 4px solid var(--te-accent);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 24px 0;
}
.te-quick-answer p { margin: 0; }
.te-quick-answer strong { color: var(--te-ink); }

.te-last-reviewed, .te-reviewed {
  color: var(--te-muted); font-size: 14px;
  margin: 0 0 8px;
}

.te-disclaimer {
  font-size: 14px; color: var(--te-muted);
  border: 1px solid var(--te-line-soft);
  border-radius: 12px; padding: 12px 16px;
  margin: 16px 0 0;
}
.te-disclaimer p { margin: 0; }

/* FAQ accordions */
.te-faq details {
  border: 1px solid var(--te-line-soft);
  border-radius: 12px;
  margin: 0 0 12px;
  padding: 0;
  overflow: hidden;
}
.te-faq summary {
  cursor: pointer; font-weight: 600; font-size: 16px;
  padding: 14px 18px; list-style: none;
}
.te-faq summary::-webkit-details-marker { display: none; }
.te-faq summary::after {
  content: "+"; float: right; color: var(--te-muted); font-weight: 400;
}
.te-faq details[open] summary::after { content: "–"; }
.te-faq details p { padding: 0 18px 14px; margin: 0; color: var(--te-ink); }

/* Content tables (comparison tables) */
.te-content table {
  width: 100%; border-collapse: collapse;
  margin: 16px 0 24px; font-size: 15px;
}
.te-content th, .te-content td {
  text-align: left; padding: 10px 12px;
  border: 1px solid var(--te-line-soft);
  vertical-align: top;
}
.te-content th { background: var(--te-surface); font-weight: 600; }
.te-content tr:nth-child(even) td { background: var(--te-surface); }
.te-table-wrap { overflow-x: auto; margin: 0 0 12px; }
.te-sources { font-size: 15px; }
.te-sources li { margin-bottom: 6px; }

/* Stacked-card tables under 768px */
@media (max-width: 767px) {
  .te-content table.te-stack,
  .te-content table.te-stack tbody,
  .te-content table.te-stack tr,
  .te-content table.te-stack td { display: block; width: 100%; }
  .te-content table.te-stack thead { display: none; }
  .te-content table.te-stack tr {
    border: 1px solid var(--te-line-soft);
    border-radius: 12px; margin-bottom: 12px; padding: 4px 0;
  }
  .te-content table.te-stack td {
    border: 0; border-bottom: 1px solid var(--te-line-soft);
    padding: 10px 14px;
  }
  .te-content table.te-stack td:last-child { border-bottom: 0; }
  .te-content table.te-stack td::before {
    content: attr(data-label);
    display: block; font-size: 12px; font-weight: 600;
    color: var(--te-muted); margin-bottom: 2px;
  }
}

/* Generic content */
.te-content img { border-radius: 12px; }
.te-content ul, .te-content ol { margin: 0 0 16px; padding-left: 24px; }
.te-content li { margin-bottom: 6px; }
.te-content blockquote {
  margin: 16px 0; padding: 12px 20px;
  border-left: 4px solid var(--te-line);
  color: var(--te-muted);
}
/* Long unbroken strings (URLs in sources) must never widen the page. */
.te-content { overflow-wrap: break-word; }
.te-content a { overflow-wrap: anywhere; }

/* Related tools + 404 grid reuse the card styles at narrow width. */
.te-related { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--te-line-soft); }
.te-related h2 { font-size: 20px; }
.te-related-grid { padding: 4px 0 0; }
@media (min-width: 600px) { .te-related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .te-related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .te-related-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Contact form ---------- */

.te-form { margin-top: 24px; }
.te-field { margin-bottom: 18px; }
.te-field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.te-field input, .te-field select, .te-field textarea {
  width: 100%;
  border: 1px solid var(--te-line);
  border-radius: var(--te-radius-input);
  padding: 11px 14px;
  font-size: 16px; color: var(--te-ink); background: var(--te-bg);
}
.te-field textarea { resize: vertical; min-height: 132px; }
.te-field input:focus, .te-field select:focus, .te-field textarea:focus {
  outline: none; border-color: var(--te-accent);
  box-shadow: 0 0 0 3px var(--te-accent-soft);
}
.te-field-error { color: var(--te-danger); font-size: 14px; margin: 6px 0 0; }
.te-alert {
  border-radius: 12px; padding: 14px 18px; margin: 20px 0;
  font-size: 15px;
}
.te-alert p { margin: 0 0 6px; }
.te-alert ul { margin: 0; padding-left: 20px; }
.te-alert-success { background: var(--te-teal-bg); color: var(--te-teal); border: 1px solid var(--te-teal); }
html.dark .te-alert-success { color: #7ce8c3; }
.te-alert-error { background: #fdecea; color: #b42318; border: 1px solid #f5b5ae; }
html.dark .te-alert-error { background: #3a1712; color: #f97066; border-color: #7a271a; }

/* ---------- Cookie consent banner ---------- */

.te-cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  background: var(--te-bg);
  border-top: 1px solid var(--te-line);
  box-shadow: 0 -8px 24px rgba(14, 34, 66, .12);
}
.te-cookie-inner {
  max-width: var(--te-max-home); margin: 0 auto; padding: 16px;
  display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.te-cookie-text {
  margin: 0; font-size: 14px; color: var(--te-muted);
  flex: 1; min-width: 240px; max-width: 720px;
}
.te-cookie-actions { display: flex; gap: 10px; flex: none; }
.te-cookie-btn { min-height: 44px; padding: 10px 22px; font-size: 14.5px; }
.te-cookie-decline {
  background: transparent; color: var(--te-ink);
  border: 1px solid var(--te-line); border-radius: 10px; cursor: pointer; font-weight: 600;
}
.te-cookie-decline:hover { border-color: var(--te-muted); }
@media (max-width: 560px) {
  .te-cookie-actions { width: 100%; }
  .te-cookie-btn { flex: 1; }
}

/* ---------- 404 ---------- */

.te-notfound-text { color: var(--te-muted); font-size: 16.5px; max-width: 560px; }
.te-notfound h2 { margin-top: 32px; }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
