/* TeslaNo.1 Knowledge UI
 * Fully scoped for WordPress and WoodMart compatibility.
 * No selector in this file intentionally targets outside .tn1-kb.
 */

.tn1-kb,
.tn1-kb *,
.tn1-kb *::before,
.tn1-kb *::after {
  box-sizing: border-box !important;
}

.tn1-kb {
  --tn1-bg: #edf0f2;
  --tn1-surface: #f8f9fa;
  --tn1-surface-2: #e4e8eb;
  --tn1-surface-3: #d8dde1;
  --tn1-line: rgba(17, 20, 23, .13);
  --tn1-line-strong: rgba(17, 20, 23, .26);
  --tn1-text: #15181b;
  --tn1-muted: #505861;
  --tn1-dim: #59626b;
  --tn1-accent: #d71920;
  --tn1-accent-deep: #a91016;
  --tn1-accent-soft: rgba(185, 21, 27, .09);
  --tn1-good: #356443;
  --tn1-warn: #705722;
  --tn1-radius-control: 8px;
  --tn1-radius-panel: 12px;
  --tn1-rail: min(1440px, calc(100% - 48px));
  --tn1-font: "Segoe UI Variable", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --tn1-mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  --tn1-ease: cubic-bezier(.16, 1, .3, 1);
  --tn1-fast: 180ms;
  --tn1-slow: 720ms;
  all: initial;
  box-sizing: border-box !important;
  position: relative;
  display: block;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 0;
  color: var(--tn1-text);
  background: var(--tn1-bg);
  font-family: var(--tn1-font);
  font-size: 16px;
  line-height: 1.5;
  color-scheme: light;
  isolation: isolate;
  overflow: clip;
  -webkit-font-smoothing: antialiased;
}

.tn1-kb[data-tn1-theme="dark"] {
  --tn1-bg: #0b0c0e;
  --tn1-surface: #111418;
  --tn1-surface-2: #171a1f;
  --tn1-surface-3: #1e2228;
  --tn1-line: rgba(239, 242, 244, .14);
  --tn1-line-strong: rgba(239, 242, 244, .28);
  --tn1-text: #f4f5f5;
  --tn1-muted: #b1b7bd;
  --tn1-dim: #929aa2;
  --tn1-accent-soft: rgba(232, 33, 39, .15);
  --tn1-good: #b5d2bb;
  --tn1-warn: #dfc692;
  color-scheme: dark;
}

.tn1-kb :where(h1, h2, h3, h4, p, ul, ol, li, figure, blockquote, form, input, button, fieldset, legend, strong, b, em, i, small, mark, code) {
  all: unset;
  box-sizing: border-box;
}

.tn1-kb :where(strong, b) {
  font-weight: 700;
}

.tn1-kb :where(em, i) {
  font-style: italic;
}

.tn1-kb :where(code) {
  font-family: var(--tn1-mono);
}

.tn1-kb :where(button, a, input) {
  font: inherit;
}

.tn1-kb :where(a) {
  color: inherit;
  text-decoration: none;
}

.tn1-kb :where(button, a, input[type="search"]) {
  -webkit-tap-highlight-color: transparent;
}

.tn1-kb :where(button, a) {
  cursor: pointer;
}

.tn1-kb :where(img) {
  display: block;
  height: auto;
  max-width: 100%;
}

.tn1-kb :where(button, a, input):focus-visible {
  outline: 2px solid var(--tn1-accent);
  outline-offset: 4px;
}

.tn1-kb [hidden] {
  display: none !important;
}

.tn1-kb__grain {
  position: absolute;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.tn1-skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 80;
  padding: 10px 14px;
  color: #f7f8f8;
  background: var(--tn1-accent-deep);
  border-radius: var(--tn1-radius-control);
  transform: translateY(-150%);
  transition: transform var(--tn1-fast) ease;
}

.tn1-skip:focus {
  transform: translateY(0);
}

.tn1-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: 68px;
  color: var(--tn1-text);
  background: color-mix(in srgb, var(--tn1-bg) 84%, transparent);
  border-bottom: 1px solid var(--tn1-line);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
}

.tn1-nav__inner {
  width: var(--tn1-rail);
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 36px;
}

.tn1-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  white-space: nowrap;
  font-weight: 760;
  letter-spacing: -.025em;
}

.tn1-brand__index {
  color: var(--tn1-accent);
}

.tn1-brand__descriptor {
  color: var(--tn1-muted);
  font-family: var(--tn1-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .12em;
}

.tn1-nav__links {
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  height: 100%;
  gap: 28px;
}

.tn1-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--tn1-muted);
  font-size: 14px;
  font-weight: 570;
  white-space: nowrap;
  transition: color var(--tn1-fast) ease;
}

.tn1-nav__link::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 2px;
  background: var(--tn1-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 340ms var(--tn1-ease);
}

.tn1-nav__link:hover,
.tn1-nav__link[aria-current="page"] {
  color: var(--tn1-text);
}

.tn1-nav__link[aria-current="page"]::after,
.tn1-nav__link:hover::after {
  transform: scaleX(1);
}

.tn1-nav__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tn1-icon-button,
.tn1-menu-button {
  display: inline-grid;
  min-width: 40px;
  min-height: 40px;
  place-items: center;
  color: var(--tn1-muted);
  background: var(--tn1-surface);
  border: 1px solid var(--tn1-line);
  border-radius: var(--tn1-radius-control);
  font-family: var(--tn1-mono);
  font-size: 14px;
  transition: color var(--tn1-fast), border-color var(--tn1-fast), transform var(--tn1-fast);
}

.tn1-icon-button:hover,
.tn1-menu-button:hover {
  color: var(--tn1-text);
  border-color: var(--tn1-line-strong);
}

.tn1-icon-button:active,
.tn1-menu-button:active,
.tn1-button:active,
.tn1-query button:active {
  transform: translateY(1px) scale(.985);
}

.tn1-menu-button {
  display: none;
  width: auto;
  padding: 0 12px;
}

.tn1-mobile-nav {
  position: fixed;
  inset: 68px 0 auto;
  z-index: 39;
  display: none;
  padding: 12px 16px 18px;
  color: var(--tn1-text);
  background: var(--tn1-bg);
  border-bottom: 1px solid var(--tn1-line);
}

.tn1-mobile-nav.is-open {
  display: grid;
}

.tn1-mobile-nav a {
  padding: 15px 4px;
  border-bottom: 1px solid var(--tn1-line);
}

.tn1-kicker {
  display: block;
  margin-bottom: 16px;
  color: var(--tn1-muted);
  font-family: var(--tn1-mono);
  font-size: 14px;
  font-weight: 560;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.tn1-display {
  display: block;
  max-width: 16ch;
  color: var(--tn1-text);
  font-size: clamp(42px, 5.5vw, 84px);
  font-weight: 710;
  line-height: 1.04;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.tn1-page-title {
  display: block;
  max-width: 18ch;
  color: var(--tn1-text);
  font-size: clamp(36px, 4.2vw, 64px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.05em;
  text-wrap: balance;
}

.tn1-section-title {
  display: block;
  color: var(--tn1-text);
  font-size: clamp(28px, 3.4vw, 48px);
  font-weight: 670;
  line-height: 1.16;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.tn1-lead {
  display: block;
  max-width: 54ch;
  margin-top: 18px;
  color: var(--tn1-muted);
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.7;
  text-wrap: pretty;
}

.tn1-meta {
  color: var(--tn1-dim);
  font-family: var(--tn1-mono);
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: .035em;
  font-variant-numeric: tabular-nums;
}

.tn1-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tn1-chip {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 5px 10px;
  color: var(--tn1-muted);
  background: var(--tn1-surface-2);
  border: 1px solid var(--tn1-line);
  border-radius: var(--tn1-radius-control);
  font-size: 14px;
  white-space: nowrap;
}

button.tn1-chip {
  transition: color var(--tn1-fast), border-color var(--tn1-fast), background var(--tn1-fast);
}

button.tn1-chip:hover,
button.tn1-chip.is-active {
  color: var(--tn1-text);
  background: var(--tn1-accent-soft);
  border-color: rgba(232, 33, 39, .55);
}

.tn1-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  color: #f8f9f9;
  background: var(--tn1-accent);
  border: 1px solid var(--tn1-accent);
  border-radius: var(--tn1-radius-control);
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
  transition: background var(--tn1-fast), border-color var(--tn1-fast), transform var(--tn1-fast);
}

.tn1-button:hover {
  background: var(--tn1-accent-deep);
  border-color: var(--tn1-accent-deep);
}

.tn1-button--quiet {
  color: var(--tn1-text);
  background: transparent;
  border-color: var(--tn1-line-strong);
}

.tn1-button--quiet:hover {
  background: var(--tn1-surface-2);
  border-color: var(--tn1-line-strong);
}

/* Entry page */
.tn1-home-hero {
  min-height: clamp(680px, 82dvh, 820px);
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #0b0c0e;
}

.tn1-home-hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.66) contrast(1.16) brightness(.78);
  transform: scale(1.025);
  transition: filter .5s ease, transform 1.4s var(--tn1-ease);
}

.tn1-kb[data-tn1-ready="true"] .tn1-home-hero__media {
  transform: scale(1);
}

.tn1-home-hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 12, 14, .97) 0 31%, rgba(11, 12, 14, .48) 58%, rgba(11, 12, 14, .62)),
    linear-gradient(0deg, rgba(11, 12, 14, .92), transparent 52%);
}

.tn1-home-hero__content {
  position: relative;
  z-index: 2;
  width: var(--tn1-rail);
  margin: 0 auto;
  padding: 72px 0 52px;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(260px, 3fr);
  gap: 7vw;
  align-items: end;
}

.tn1-home-hero__primary {
  grid-column: 1;
}

.tn1-home-hero .tn1-display {
  max-width: 760px;
  color: #f4f5f5;
  text-shadow: 0 10px 40px rgba(7, 8, 9, .32);
}

.tn1-home-hero .tn1-display span {
  display: block;
}

.tn1-home-hero .tn1-lead {
  max-width: 42ch;
  color: #c8cdd1;
}

.tn1-query {
  position: relative;
  display: block;
  width: 100%;
  max-width: 780px;
  margin-top: 30px;
  overflow: hidden;
  color: #f4f5f5;
  background: rgba(13, 15, 18, .84);
  border: 1px solid rgba(239, 242, 244, .28);
  border-radius: var(--tn1-radius-panel);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  box-shadow: inset 0 1px 0 rgba(244, 245, 245, .06), 0 24px 80px rgba(7, 8, 9, .28);
  transition: border-color var(--tn1-fast), box-shadow var(--tn1-fast);
}

.tn1-query::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--tn1-accent);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 420ms var(--tn1-ease);
}

.tn1-query:focus-within {
  border-color: rgba(232, 33, 39, .72);
  box-shadow: inset 0 1px 0 rgba(244, 245, 245, .08), 0 28px 90px rgba(7, 8, 9, .38);
}

.tn1-query:focus-within::before {
  transform: scaleY(1);
}

.tn1-query__row {
  display: grid;
  grid-template-columns: 1fr auto;
  min-height: 72px;
}

.tn1-query input {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0 24px;
  color: #f4f5f5;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  appearance: none;
  font-size: 17px;
  line-height: 1.4;
}

.tn1-query input::-webkit-search-decoration,
.tn1-query input::-webkit-search-cancel-button {
  appearance: none;
}

.tn1-query input::placeholder {
  color: #858c93;
  opacity: 1;
}

.tn1-query input:focus {
  outline: none;
}

.tn1-query button {
  min-width: 112px;
  min-height: 52px;
  margin: 9px;
  color: #f8f9f9;
  background: var(--tn1-accent);
  border: 0 !important;
  border-radius: var(--tn1-radius-control);
  box-shadow: none !important;
  text-align: center;
  text-transform: none !important;
  font-size: 14px;
  font-weight: 680;
  transition: background var(--tn1-fast), transform var(--tn1-fast);
}

.tn1-query button:hover {
  background: var(--tn1-accent-deep);
}

.tn1-query__context {
  padding: 0 20px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: #9da4aa;
  font-family: var(--tn1-mono);
  font-size: 14px;
  letter-spacing: .045em;
}

.tn1-hero-proof {
  grid-column: 2;
  align-self: end;
  padding: 22px 0 4px 24px;
  border-left: 2px solid var(--tn1-accent);
  color: #f4f5f5;
}

.tn1-hero-proof__label {
  display: block;
  margin-bottom: 8px;
  color: #a9afb4;
  font-family: var(--tn1-mono);
  font-size: 14px;
  letter-spacing: .08em;
}

.tn1-hero-proof strong {
  display: block;
  font-size: clamp(24px, 2.5vw, 38px);
  font-weight: 650;
  line-height: 1.18;
  letter-spacing: -.035em;
}

.tn1-hero-proof p {
  display: block;
  margin-top: 10px;
  color: #a9afb4;
  font-size: 14px;
  line-height: 1.65;
}

.tn1-home-main {
  width: var(--tn1-rail);
  margin: 0 auto;
  padding: 100px 0 112px;
}

.tn1-home-intro {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(240px, 3fr);
  gap: 7vw;
  align-items: end;
}

.tn1-home-intro__aside {
  padding-left: 20px;
  border-left: 1px solid var(--tn1-line-strong);
  color: var(--tn1-muted);
  font-size: 14px;
  line-height: 1.75;
}

.tn1-knowledge-lanes {
  margin-top: 58px;
  display: grid;
  grid-template-columns: 1.2fr .9fr 1.05fr;
  gap: 2px;
  background: var(--tn1-line);
  border: 1px solid var(--tn1-line);
  border-radius: var(--tn1-radius-panel);
  overflow: hidden;
}

.tn1-lane {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px;
  background: var(--tn1-surface);
  transition: background var(--tn1-fast), transform var(--tn1-fast);
}

.tn1-lane:nth-child(2) {
  min-height: 380px;
  background: var(--tn1-surface-2);
}

.tn1-lane:hover {
  background: var(--tn1-surface-3);
}

.tn1-lane__count {
  color: var(--tn1-dim);
  font-family: var(--tn1-mono);
  font-size: 14px;
}

.tn1-lane h3 {
  display: block;
  max-width: 11ch;
  margin-top: 72px;
  color: var(--tn1-text);
  font-size: clamp(25px, 2.7vw, 39px);
  font-weight: 650;
  line-height: 1.16;
  letter-spacing: -.04em;
}

.tn1-lane p {
  display: block;
  max-width: 30ch;
  margin-top: 14px;
  color: var(--tn1-muted);
  font-size: 14px;
  line-height: 1.7;
}

.tn1-lane__link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  align-self: flex-start;
  margin-top: 28px;
  color: var(--tn1-text);
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid var(--tn1-line-strong);
  transition: color var(--tn1-fast), border-color var(--tn1-fast);
}

.tn1-lane__link:hover {
  color: var(--tn1-accent);
  border-color: var(--tn1-accent);
}

.tn1-investigations {
  margin-top: 112px;
}

.tn1-investigations__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.tn1-investigation {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(180px, .7fr) auto;
  align-items: center;
  gap: 30px;
  padding: 28px 0;
  border-top: 1px solid var(--tn1-line);
  transition: border-color var(--tn1-fast);
}

.tn1-investigation:last-child {
  border-bottom: 1px solid var(--tn1-line);
}

.tn1-investigation:hover {
  border-top-color: rgba(232, 33, 39, .64);
}

.tn1-investigation h3 {
  display: block;
  color: var(--tn1-text);
  font-size: clamp(18px, 2vw, 25px);
  font-weight: 610;
  line-height: 1.4;
  letter-spacing: -.025em;
}

.tn1-investigation__source {
  color: var(--tn1-good);
  font-family: var(--tn1-mono);
  font-size: 14px;
  line-height: 1.6;
}

.tn1-investigation__action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--tn1-text);
  font-size: 14px;
  white-space: nowrap;
}

/* Shared page shells */
.tn1-index-shell,
.tn1-results-shell,
.tn1-category-shell,
.tn1-answer-shell {
  width: var(--tn1-rail);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 64px 0 104px;
}

.tn1-context-nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-bottom: 56px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--tn1-line-strong);
}

.tn1-breadcrumbs {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  color: var(--tn1-muted);
  font-size: 14px;
  line-height: 1.5;
  white-space: nowrap;
}

.tn1-breadcrumbs a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  flex: 0 0 auto;
  color: var(--tn1-muted);
}

.tn1-breadcrumbs a:hover {
  color: var(--tn1-accent);
}

.tn1-breadcrumbs [aria-current="page"] {
  min-width: 0;
  overflow: hidden;
  color: var(--tn1-text);
  font-weight: 620;
  text-overflow: ellipsis;
}

.tn1-breadcrumbs__separator {
  flex: 0 0 auto;
  color: var(--tn1-dim);
}

.tn1-context-nav__links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tn1-context-nav__links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: var(--tn1-muted);
  background: var(--tn1-surface);
  border: 1px solid var(--tn1-line);
  border-radius: var(--tn1-radius-control);
  font-size: 14px;
  font-weight: 620;
  white-space: nowrap;
}

.tn1-context-nav__links a:hover,
.tn1-context-nav__links a[aria-current="page"] {
  color: var(--tn1-text);
  border-color: color-mix(in srgb, var(--tn1-accent) 46%, var(--tn1-line));
}

.tn1-context-nav__links a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--tn1-accent);
}

.tn1-index-head,
.tn1-results-head,
.tn1-category-head {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(220px, 4fr);
  gap: 6vw;
  align-items: end;
}

.tn1-page-aside {
  padding: 0 0 6px 22px;
  border-left: 1px solid var(--tn1-line-strong);
}

.tn1-page-aside strong {
  display: block;
  margin-bottom: 7px;
  color: var(--tn1-text);
  font-family: var(--tn1-mono);
  font-size: 14px;
  font-weight: 550;
}

.tn1-page-aside p {
  display: block;
  color: var(--tn1-muted);
  font-size: 14px;
  line-height: 1.7;
}

.tn1-model-filter {
  display: flex;
  gap: 8px;
  margin-top: 48px;
  padding-bottom: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.tn1-model-filter::-webkit-scrollbar,
.tn1-filter::-webkit-scrollbar {
  display: none;
}

/* Index page */
.tn1-archive {
  margin-top: 54px;
  border-top: 1px solid var(--tn1-line-strong);
}

.tn1-empty-note {
  padding: 32px 0;
  color: var(--tn1-muted);
  font-size: 15px;
  line-height: 1.7;
}

.tn1-archive__row {
  border-bottom: 1px solid var(--tn1-line);
}

.tn1-archive__trigger {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(190px, 4fr) minmax(0, 7fr) auto;
  align-items: start;
  gap: 24px;
  padding: 28px 0;
  color: var(--tn1-text);
  text-align: left;
}

.tn1-archive__title {
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 640;
  line-height: 1.2;
  letter-spacing: -.035em;
}

.tn1-archive__summary {
  max-width: 58ch;
  color: var(--tn1-muted);
  font-size: 14px;
  line-height: 1.7;
}

.tn1-archive__toggle {
  min-width: 72px;
  color: var(--tn1-dim);
  font-family: var(--tn1-mono);
  font-size: 14px;
  text-align: right;
}

.tn1-archive__trigger:hover .tn1-archive__toggle,
.tn1-archive__row.is-open .tn1-archive__toggle {
  color: var(--tn1-accent);
}

.tn1-archive__content {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows .6s var(--tn1-ease), opacity .3s ease;
}

.tn1-archive__content > div {
  overflow: hidden;
}

.tn1-archive__row.is-open .tn1-archive__content {
  grid-template-rows: 1fr;
  opacity: 1;
}

.tn1-archive__topics {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
  padding: 0 0 30px calc(33.333% + 8px);
}

.tn1-topic {
  grid-column: span 6;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 18px;
  color: var(--tn1-text);
  background: var(--tn1-surface);
  border: 1px solid var(--tn1-line);
  border-radius: var(--tn1-radius-control);
  transition: background var(--tn1-fast), border-color var(--tn1-fast), transform var(--tn1-fast);
}

.tn1-topic:hover {
  background: var(--tn1-surface-2);
  border-color: rgba(232, 33, 39, .46);
  transform: translateX(2px);
}

.tn1-topic__name {
  font-size: 15px;
  font-weight: 590;
}

.tn1-topic__count {
  color: var(--tn1-dim);
  font-family: var(--tn1-mono);
  font-size: 14px;
}

.tn1-category-link {
  grid-column: 1 / -1;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-self: start;
  margin-top: 4px;
  color: var(--tn1-accent);
  font-size: 14px;
  font-weight: 650;
}

.tn1-index-feature {
  margin-top: 104px;
  display: grid;
  grid-template-columns: minmax(240px, 4fr) minmax(0, 8fr);
  gap: 5vw;
}

.tn1-index-feature__list {
  border-top: 1px solid var(--tn1-line-strong);
}

/* Search results */
.tn1-results-head {
  grid-template-columns: minmax(0, 8fr) minmax(220px, 4fr);
}

.tn1-query-title {
  color: var(--tn1-text);
  font-size: clamp(36px, 3.9vw, 56px);
}

.tn1-query-title span {
  color: var(--tn1-accent);
}

.tn1-results-search {
  margin-top: 42px;
  max-width: none;
  color: var(--tn1-text);
  background: var(--tn1-surface);
  border-color: var(--tn1-line);
  backdrop-filter: none;
}

.tn1-results-search input {
  color: var(--tn1-text);
}

.tn1-results-search input::placeholder {
  color: var(--tn1-dim);
}

.tn1-results-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 84px);
  margin-top: 64px;
}

.tn1-results-layout.is-empty {
  grid-template-columns: minmax(0, 1fr);
  margin-top: 48px;
}

.tn1-filter-toggle {
  display: none;
}

.tn1-filter {
  position: sticky;
  top: 92px;
  align-self: start;
}

.tn1-filter__group {
  display: block;
  min-width: 0;
}

.tn1-filter__group + .tn1-filter__group {
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid var(--tn1-line);
}

.tn1-filter__label {
  display: block;
  margin-bottom: 13px;
  color: var(--tn1-text);
  font-size: 15px;
  font-weight: 680;
}

.tn1-filter__options {
  display: grid;
  gap: 8px;
}

.tn1-filter__option {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  color: var(--tn1-muted);
  background: color-mix(in srgb, var(--tn1-surface) 68%, transparent);
  border: 1px solid transparent;
  border-radius: var(--tn1-radius-control);
  font-size: 15px;
  transition: color var(--tn1-fast), background var(--tn1-fast);
}

.tn1-filter__option:hover,
.tn1-filter__option.is-active {
  color: var(--tn1-text);
  background: var(--tn1-surface-2);
}

.tn1-filter__option.is-active {
  border-color: color-mix(in srgb, var(--tn1-accent) 48%, var(--tn1-line));
  box-shadow: inset 3px 0 0 var(--tn1-accent);
}

.tn1-filter__option span:last-child {
  color: var(--tn1-dim);
  font-family: var(--tn1-mono);
  font-size: 14px;
}

.tn1-result-list {
  min-width: 0;
  border-bottom: 1px solid var(--tn1-line);
}

.tn1-result {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(170px, 3fr);
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid var(--tn1-line);
  transition: border-color var(--tn1-fast), background var(--tn1-fast);
}

.tn1-result::before {
  content: "";
  position: absolute;
  inset: -1px auto auto 0;
  width: 0;
  height: 1px;
  background: var(--tn1-accent);
  transition: width 480ms var(--tn1-ease);
}

.tn1-result:hover::before,
.tn1-result:focus-within::before {
  width: 22%;
}

.tn1-result h2 {
  display: block;
  color: var(--tn1-text);
  font-size: clamp(20px, 2.3vw, 30px);
  font-weight: 620;
  line-height: 1.34;
  letter-spacing: -.03em;
}

.tn1-result mark {
  color: var(--tn1-text);
  background: linear-gradient(transparent 64%, rgba(232, 33, 39, .32) 64%);
}

.tn1-result__excerpt {
  display: block;
  max-width: 64ch;
  margin-top: 12px;
  color: var(--tn1-muted);
  font-size: 14px;
  line-height: 1.75;
}

.tn1-result__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 18px;
}

.tn1-result__open {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 20px;
  padding: 0 14px;
  color: var(--tn1-text);
  background: var(--tn1-surface);
  border: 1px solid var(--tn1-line-strong);
  border-radius: var(--tn1-radius-control);
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
  transition: color var(--tn1-fast), border-color var(--tn1-fast), background var(--tn1-fast), transform var(--tn1-fast);
}

.tn1-result__open:hover {
  color: var(--tn1-accent-deep);
  background: var(--tn1-surface-2);
  border-color: color-mix(in srgb, var(--tn1-accent) 48%, var(--tn1-line));
}

.tn1-result__open:active {
  transform: translateY(1px) scale(.985);
}

.tn1-result__proof {
  padding-left: 22px;
  border-left: 1px solid var(--tn1-line);
}

.tn1-proof-item + .tn1-proof-item {
  margin-top: 18px;
}

.tn1-proof-item span {
  display: block;
  color: var(--tn1-dim);
  font-family: var(--tn1-mono);
  font-size: 14px;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.tn1-proof-item strong {
  display: block;
  margin-top: 5px;
  color: var(--tn1-text);
  font-size: 14px;
  font-weight: 560;
  line-height: 1.55;
}

.tn1-proof-item strong.is-verified {
  color: var(--tn1-good);
}

.tn1-results-state {
  min-height: 340px;
  display: grid;
  place-items: center;
  padding: 50px 24px;
  text-align: center;
  border: 1px solid var(--tn1-line);
  border-radius: var(--tn1-radius-panel);
}

.tn1-results-state h2 {
  display: block;
  font-size: 26px;
  font-weight: 650;
}

.tn1-results-state p {
  display: block;
  max-width: 44ch;
  margin-top: 12px;
  color: var(--tn1-muted);
  line-height: 1.7;
}

/* Category page */
.tn1-category-head {
  grid-template-columns: minmax(0, 8fr) minmax(220px, 4fr);
  align-items: end;
}

.tn1-category-search {
  max-width: 920px;
}

.tn1-category-results {
  margin-top: 64px;
}

.tn1-skeleton {
  width: 100%;
  height: 18px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--tn1-surface) 30%, var(--tn1-surface-2) 50%, var(--tn1-surface) 70%);
  background-size: 300% 100%;
  animation: tn1-shimmer 1.6s ease infinite;
}

@keyframes tn1-shimmer {
  to { background-position: -150% 0; }
}

/* Answer page */
.tn1-dossier-head {
  position: relative;
  max-width: 1080px;
  padding: clamp(28px, 4vw, 54px);
  background: var(--tn1-surface);
  border: 1px solid var(--tn1-line-strong);
  border-radius: var(--tn1-radius-panel);
}

.tn1-dossier-head::before,
.tn1-dossier-head::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: var(--tn1-accent);
  border-style: solid;
  pointer-events: none;
}

.tn1-dossier-head::before {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
}

.tn1-dossier-head::after {
  right: -1px;
  bottom: -1px;
  border-width: 0 2px 2px 0;
}

.tn1-dossier-head .tn1-page-title {
  max-width: 19ch;
}

.tn1-dossier-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--tn1-line);
}

.tn1-disclaimer {
  position: relative;
  display: grid !important;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  clear: both;
  width: 100%;
  min-height: 54px;
  margin: 20px 0 0 !important;
  padding: 14px 16px !important;
  color: color-mix(in srgb, var(--tn1-text) 72%, var(--tn1-muted)) !important;
  background: color-mix(in srgb, var(--tn1-warn, #d8bd88) 10%, transparent) !important;
  border: 0 !important;
  border-left: 3px solid var(--tn1-warn, #d8bd88) !important;
  border-radius: 0 6px 6px 0;
  font-size: 14px !important;
  font-style: normal;
  line-height: 1.75 !important;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.tn1-disclaimer > span:last-child {
  display: block;
  min-width: 0;
  padding-top: 1px;
}

.tn1-notice-icon {
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  margin-top: 2px;
  color: #725000;
  background: #fff4cc;
  border: 1px solid #d6ad32;
  border-radius: 50%;
  font-family: var(--tn1-sans);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.tn1-answer-grid {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(0, 2.3fr) minmax(150px, 1fr);
  gap: clamp(28px, 4vw, 64px);
  margin-top: 58px;
  align-items: start;
}

.tn1-source-ledger,
.tn1-applicability {
  position: sticky;
  top: 96px;
  padding: 20px;
  background: var(--tn1-surface);
  border: 1px solid var(--tn1-line);
  border-radius: var(--tn1-radius-panel);
}

.tn1-side-title {
  display: block;
  padding-bottom: 14px;
  color: var(--tn1-text);
  border-bottom: 2px solid var(--tn1-line-strong);
  font-size: 14px;
  font-weight: 720;
  letter-spacing: .01em;
}

.tn1-source-item,
.tn1-app-item {
  display: block;
  padding: 20px 0;
  border-bottom: 1px solid var(--tn1-line);
}

.tn1-source-item:last-child,
.tn1-app-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.tn1-source-item__grade {
  display: block;
  margin-bottom: 6px;
  color: var(--tn1-good);
  font-family: var(--tn1-mono);
  font-size: 14px;
  letter-spacing: .08em;
}

.tn1-source-item strong,
.tn1-app-item strong {
  display: block;
  color: var(--tn1-text);
  font-size: 15px;
  font-weight: 680;
  line-height: 1.5;
}

.tn1-source-item p,
.tn1-app-item p {
  display: block;
  margin-top: 7px;
  color: var(--tn1-muted);
  font-size: 14px;
  line-height: 1.65;
}

.tn1-answer-body {
  max-width: 68ch;
  color: var(--tn1-text);
  font-size: clamp(17px, 1.25vw, 19px);
  line-height: 1.85;
  letter-spacing: .008em;
}

.tn1-answer-lede {
  display: block;
  margin: 0 0 20px;
  padding: 0 0 12px 24px;
  color: var(--tn1-text);
  border-left: 2px solid var(--tn1-accent);
  font-size: clamp(20px, 2.1vw, 27px);
  font-weight: 520;
  line-height: 1.65;
  letter-spacing: -.018em;
}

.tn1-answer-body h2 {
  position: relative;
  display: block;
  margin: 2.4em 0 .72em;
  padding-left: 20px;
  color: var(--tn1-text);
  font-size: clamp(24px, 2.4vw, 36px);
  font-weight: 660;
  line-height: 1.2;
  letter-spacing: -.035em;
}

.tn1-answer-body h2::before {
  content: "";
  position: absolute;
  inset: .12em auto .12em 0;
  width: 3px;
  background: var(--tn1-accent);
  border-radius: 2px;
}

.tn1-answer-body h3 {
  display: block;
  margin: 2em 0 .6em;
  color: var(--tn1-text);
  font-size: 20px;
  font-weight: 650;
  line-height: 1.4;
}

.tn1-answer-body p {
  display: block;
  color: color-mix(in srgb, var(--tn1-text) 90%, var(--tn1-muted));
  text-wrap: pretty;
}

.tn1-answer-body p + p {
  margin-top: 1.35em;
}

.tn1-answer-body > div > :where(p, li, blockquote, table) a:not(.tn1-button) {
  color: #a91016 !important;
  font-weight: 650 !important;
  text-decoration-line: underline !important;
  text-decoration-color: rgba(215, 25, 32, .58) !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 4px !important;
  background: linear-gradient(to top, rgba(215, 25, 32, .1) 36%, transparent 36%) !important;
  border-radius: 2px;
  transition: color .16s ease, background-color .16s ease, text-decoration-color .16s ease !important;
}

.tn1-answer-body > div > :where(p, li, blockquote, table) a:not(.tn1-button):hover {
  color: #75090d !important;
  text-decoration-color: currentColor !important;
  background-color: rgba(215, 25, 32, .09) !important;
}

.tn1-answer-body > div > :where(p, li, blockquote, table) a:not(.tn1-button):focus-visible {
  color: #75090d !important;
  outline: 3px solid rgba(215, 25, 32, .24) !important;
  outline-offset: 3px !important;
}

.tn1-answer-body ol,
.tn1-answer-body ul {
  display: grid;
  gap: 16px;
  margin: 1.4em 0;
  padding-left: 1.45em;
  list-style-position: outside;
}

.tn1-answer-body ol {
  list-style: decimal;
}

.tn1-answer-body ul {
  list-style: disc;
}

.tn1-answer-body li {
  display: list-item;
  padding-left: .35em;
}

.tn1-callout {
  display: block;
  margin: 2.2em 0;
  padding: 22px 24px;
  color: var(--tn1-text);
  background: var(--tn1-accent-soft);
  border: 1px solid rgba(232, 33, 39, .35);
  border-radius: var(--tn1-radius-control);
}

.tn1-callout strong {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
}

.tn1-callout p {
  font-size: 14px;
  line-height: 1.7;
}

.tn1-answer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 42px;
  padding-top: 28px;
  border-top: 1px solid var(--tn1-line);
}

.tn1-related {
  margin-top: 112px;
  display: grid;
  grid-template-columns: minmax(220px, 4fr) minmax(0, 8fr);
  gap: 5vw;
}

.tn1-related__list {
  border-top: 1px solid var(--tn1-line-strong);
}

.tn1-related__item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--tn1-line);
}

.tn1-related__item strong {
  color: var(--tn1-text);
  font-size: 17px;
  font-weight: 590;
  line-height: 1.5;
}

.tn1-journey-nav {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, auto);
  gap: 28px;
  align-items: center;
  margin-top: 88px;
  padding: 28px;
  background: var(--tn1-surface);
  border: 1px solid var(--tn1-line-strong);
  border-radius: var(--tn1-radius-panel);
}

.tn1-journey-nav strong,
.tn1-journey-nav span {
  display: block;
}

.tn1-journey-nav strong {
  color: var(--tn1-text);
  font-size: 19px;
  font-weight: 680;
}

.tn1-journey-nav span {
  margin-top: 5px;
  color: var(--tn1-muted);
  font-size: 14px;
  line-height: 1.6;
}

.tn1-journey-nav__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.tn1-journey-nav__links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 14px;
  color: var(--tn1-text);
  border: 1px solid var(--tn1-line-strong);
  border-radius: var(--tn1-radius-control);
  font-size: 14px;
  font-weight: 640;
  white-space: nowrap;
}

.tn1-journey-nav__links a:hover {
  color: var(--tn1-accent-deep);
  background: var(--tn1-surface-2);
}

/* Footer */
.tn1-footer {
  color: var(--tn1-muted);
  background: var(--tn1-surface);
  border-top: 1px solid var(--tn1-line);
}

.tn1-footer__inner {
  width: var(--tn1-rail);
  margin: 0 auto;
  padding: 54px 0 34px;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(260px, 3fr);
  gap: 7vw;
}

.tn1-footer__statement {
  max-width: 23ch;
  color: var(--tn1-text);
  font-size: clamp(23px, 2.7vw, 36px);
  font-weight: 620;
  line-height: 1.26;
  letter-spacing: -.035em;
}

.tn1-footer__links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  align-content: start;
}

.tn1-footer__links a {
  color: var(--tn1-muted);
  font-size: 14px;
  transition: color var(--tn1-fast);
}

.tn1-footer__links a:hover {
  color: var(--tn1-text);
}

.tn1-footer__legal {
  width: var(--tn1-rail);
  margin: 0 auto;
  padding: 18px 0 22px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--tn1-line);
  color: var(--tn1-dim);
  font-family: var(--tn1-mono);
  font-size: 14px;
  line-height: 1.6;
}

/* Entrances */
.tn1-kb [data-tn1-reveal="clip"] {
  opacity: 0;
  clip-path: inset(0 99% 0 0);
  transition: clip-path 820ms var(--tn1-ease), opacity 160ms ease;
}

.tn1-kb [data-tn1-reveal="clip"].is-visible {
  opacity: 1;
  clip-path: inset(0);
}

.tn1-kb [data-tn1-reveal="focus"] {
  opacity: 0;
  filter: blur(10px);
  transform: scale(1.015);
  transition: opacity var(--tn1-slow) ease, filter var(--tn1-slow) ease, transform var(--tn1-slow) var(--tn1-ease);
}

.tn1-kb [data-tn1-reveal="focus"].is-visible {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}

.tn1-kb [data-tn1-reveal="stagger"] > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 360ms ease, transform 520ms var(--tn1-ease);
}

.tn1-kb [data-tn1-reveal="stagger"].is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.tn1-kb [data-tn1-reveal="stagger"].is-visible > *:nth-child(2) { transition-delay: 70ms; }
.tn1-kb [data-tn1-reveal="stagger"].is-visible > *:nth-child(3) { transition-delay: 140ms; }
.tn1-kb [data-tn1-reveal="stagger"].is-visible > *:nth-child(4) { transition-delay: 210ms; }
.tn1-kb [data-tn1-reveal="stagger"].is-visible > *:nth-child(5) { transition-delay: 280ms; }
.tn1-kb [data-tn1-reveal="stagger"].is-visible > *:nth-child(6) { transition-delay: 350ms; }

.tn1-kb [data-tn1-reveal="split"] {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 540ms ease, transform 680ms var(--tn1-ease);
}

.tn1-kb [data-tn1-reveal="split"].is-visible {
  opacity: 1;
  transform: translateX(0);
}

.tn1-kb [data-tn1-reveal="tilt"] {
  opacity: 0;
  transform: perspective(900px) rotateX(2deg) translateY(34px);
  transform-origin: top center;
  transition: opacity 560ms ease, transform 780ms var(--tn1-ease);
}

.tn1-kb [data-tn1-reveal="tilt"].is-visible {
  opacity: 1;
  transform: perspective(900px) rotateX(0) translateY(0);
}

@media (max-width: 1100px) {
  .tn1-home-hero__content {
    grid-template-columns: minmax(0, 1fr) 260px;
  }

  .tn1-answer-grid {
    grid-template-columns: minmax(150px, .75fr) minmax(0, 2.25fr);
  }

  .tn1-applicability {
    position: static;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 180px repeat(3, 1fr);
    gap: 20px;
    align-items: start;
    padding-top: 28px;
    border-top: 1px solid var(--tn1-line-strong);
  }
}

@media (max-width: 900px) {
  .tn1-home-hero__content,
  .tn1-home-intro,
  .tn1-index-head,
  .tn1-results-head,
  .tn1-category-head,
  .tn1-results-layout,
  .tn1-answer-grid,
  .tn1-related,
  .tn1-journey-nav,
  .tn1-index-feature,
  .tn1-footer__inner {
    grid-template-columns: 1fr;
  }

  .tn1-home-hero__content {
    align-items: end;
    padding: 64px 0 40px;
  }

  .tn1-home-hero__media {
    object-position: 62% center;
  }

  .tn1-home-hero__shade {
    background: linear-gradient(0deg, rgba(11, 12, 14, .98) 0 18%, rgba(11, 12, 14, .68) 58%, rgba(11, 12, 14, .48));
  }

  .tn1-hero-proof {
    grid-column: 1;
    max-width: 480px;
    margin-top: 18px;
  }

  .tn1-knowledge-lanes {
    grid-template-columns: 1fr 1fr;
  }

  .tn1-lane:nth-child(3) {
    grid-column: 1 / -1;
  }

  .tn1-filter,
  .tn1-source-ledger,
  .tn1-applicability {
    position: static;
  }

  .tn1-filter-toggle {
    display: flex;
    width: 100%;
    min-height: 52px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 32px;
    padding: 0 16px;
    color: var(--tn1-text);
    background: var(--tn1-surface);
    border: 1px solid var(--tn1-line-strong);
    border-radius: var(--tn1-radius-control);
    font-size: 15px;
    font-weight: 680;
  }

  .tn1-filter-toggle::after {
    content: "+";
    margin-left: auto;
    color: var(--tn1-accent);
    font-size: 20px;
    font-weight: 500;
    line-height: 1;
  }

  .tn1-filter-toggle[aria-expanded="true"]::after {
    content: "−";
  }

  .tn1-filter-toggle__count {
    color: var(--tn1-muted);
    font-size: 14px;
    font-weight: 500;
  }

  .tn1-filter {
    display: none;
    gap: 0;
    margin-top: 12px;
    padding: 8px 18px 20px;
    overflow: visible;
    background: var(--tn1-surface);
    border: 1px solid var(--tn1-line);
    border-radius: var(--tn1-radius-panel);
  }

  .tn1-filter.is-open {
    display: grid;
    opacity: 1;
    transform: none;
  }

  .tn1-filter__group,
  .tn1-filter__group + .tn1-filter__group {
    margin: 0;
    padding: 18px 0;
    border: 0;
    border-bottom: 1px solid var(--tn1-line);
  }

  .tn1-filter__group:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .tn1-filter__options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tn1-archive__topics {
    padding-left: 0;
  }

  .tn1-applicability {
    grid-template-columns: 1fr 1fr;
  }

  .tn1-applicability .tn1-side-title {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .tn1-nav__links {
    display: none;
  }

  .tn1-nav__inner {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }

  .tn1-menu-button {
    display: inline-grid;
  }

  .tn1-brand__descriptor {
    display: none;
  }

  .tn1-icon-button {
    min-width: 38px;
  }

  .tn1-home-main,
  .tn1-index-shell,
  .tn1-results-shell,
  .tn1-category-shell,
  .tn1-answer-shell {
    padding-bottom: 76px;
  }

  .tn1-context-nav {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 40px;
  }

  .tn1-context-nav__links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .tn1-context-nav__links::-webkit-scrollbar {
    display: none;
  }

  .tn1-context-nav__links a {
    flex: 1 0 auto;
  }

  .tn1-display {
    font-size: clamp(40px, 11vw, 60px);
  }

  .tn1-page-title {
    font-size: clamp(36px, 9.5vw, 54px);
  }

  .tn1-home-hero .tn1-lead {
    max-width: 31ch;
    font-size: 15px;
  }

  .tn1-query__row {
    grid-template-columns: 1fr;
    padding: 8px;
  }

  .tn1-query input {
    min-height: 52px;
    padding: 0 12px;
    font-size: 16px;
  }

  .tn1-query button {
    width: 100%;
    min-height: 48px;
    margin: 0;
  }

  .tn1-query__context {
    padding: 8px 20px 16px;
  }

  .tn1-knowledge-lanes {
    grid-template-columns: 1fr;
  }

  .tn1-lane,
  .tn1-lane:nth-child(2),
  .tn1-lane:nth-child(3) {
    min-height: 260px;
    grid-column: auto;
  }

  .tn1-investigation,
  .tn1-result {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .tn1-archive__trigger {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "title toggle"
      "summary summary";
    gap: 6px 16px;
  }

  .tn1-archive__title {
    grid-area: title;
  }

  .tn1-archive__summary {
    grid-area: summary;
  }

  .tn1-archive__toggle {
    grid-area: toggle;
    align-self: center;
  }

  .tn1-investigation__action {
    justify-self: start;
  }

  .tn1-archive__toggle {
    min-width: 0;
    text-align: left;
  }

  .tn1-archive__topics {
    grid-template-columns: 1fr;
  }

  .tn1-topic {
    grid-column: auto;
  }

  .tn1-result__proof {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 18px 0 0;
    border-left: 0;
    border-top: 1px solid var(--tn1-line);
  }

  .tn1-proof-item + .tn1-proof-item {
    margin: 0;
  }

  .tn1-dossier-head {
    padding: 28px 20px;
  }

  .tn1-source-ledger {
    order: 2;
  }

  .tn1-answer-body {
    order: 1;
  }

  .tn1-applicability {
    order: 3;
    grid-template-columns: 1fr;
  }

  .tn1-related__item {
    grid-template-columns: 1fr;
  }

  .tn1-journey-nav__links {
    justify-content: flex-start;
  }

  .tn1-footer__legal {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .tn1-kb {
    --tn1-rail: calc(100% - 32px);
  }

  .tn1-home-hero__content {
    padding-top: 48px;
  }

  .tn1-home-hero .tn1-display {
    font-size: 36px;
    letter-spacing: -.06em;
  }

  .tn1-home-hero__media {
    object-position: 68% center;
  }

  .tn1-hero-proof {
    padding-left: 16px;
  }

  .tn1-home-main,
  .tn1-index-shell,
  .tn1-results-shell,
  .tn1-category-shell,
  .tn1-answer-shell {
    padding-top: 48px;
  }

  .tn1-investigations,
  .tn1-related,
  .tn1-index-feature {
    margin-top: 76px;
  }

  .tn1-investigations__head {
    display: grid;
  }

  .tn1-filter__options {
    grid-template-columns: 1fr;
  }

  .tn1-result__proof {
    grid-template-columns: 1fr 1fr;
  }

  .tn1-footer__links {
    grid-template-columns: 1fr;
  }
}

/* WordPress theme control hardening.
 * WoodMart declares late global button/input rules. These selectors deliberately
 * carry the component root plus the control class so public controls render the
 * same whether they are links, buttons, or inputs. */
.tn1-kb img {
  height: auto !important;
  max-width: 100% !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.tn1-kb .tn1-query input[type="search"] {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 70px !important;
  margin: 0 !important;
  padding: 0 24px !important;
  color: inherit !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-family: var(--tn1-font) !important;
  font-size: 17px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
}

.tn1-kb .tn1-query button[type="submit"] {
  position: static !important;
  display: inline-flex !important;
  min-width: 112px !important;
  min-height: 52px !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 9px !important;
  padding: 0 20px !important;
  color: #f8f9f9 !important;
  background: var(--tn1-accent) !important;
  border: 0 !important;
  border-radius: var(--tn1-radius-control) !important;
  box-shadow: none !important;
  font-family: var(--tn1-font) !important;
  font-size: 14px !important;
  font-weight: 680 !important;
  line-height: 1.2 !important;
  text-transform: none !important;
}

.tn1-kb .tn1-query button[type="submit"]:hover {
  background: var(--tn1-accent-deep) !important;
}

.tn1-kb button.tn1-filter-toggle {
  display: none !important;
}

.tn1-kb button.tn1-filter__option {
  position: static !important;
  display: flex !important;
  width: 100% !important;
  min-height: 46px !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin: 0 !important;
  padding: 0 14px !important;
  color: var(--tn1-muted) !important;
  background: color-mix(in srgb, var(--tn1-surface) 68%, transparent) !important;
  border: 1px solid transparent !important;
  border-radius: var(--tn1-radius-control) !important;
  box-shadow: none !important;
  font-family: var(--tn1-font) !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
  text-align: left !important;
  text-transform: none !important;
}

.tn1-kb button.tn1-filter__option:hover,
.tn1-kb button.tn1-filter__option.is-active {
  color: var(--tn1-text) !important;
  background: var(--tn1-surface-2) !important;
}

.tn1-kb button.tn1-filter__option.is-active {
  border-color: color-mix(in srgb, var(--tn1-accent) 48%, var(--tn1-line)) !important;
  box-shadow: inset 3px 0 0 var(--tn1-accent) !important;
}

.tn1-kb button.tn1-archive__trigger {
  position: static !important;
  display: grid !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  grid-template-columns: minmax(190px, 4fr) minmax(0, 7fr) auto !important;
  align-items: start !important;
  justify-content: normal !important;
  gap: 24px !important;
  margin: 0 !important;
  padding: 28px 0 !important;
  color: var(--tn1-text) !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-family: var(--tn1-font) !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  text-align: left !important;
  text-transform: none !important;
}

.tn1-kb button.tn1-button {
  position: static !important;
  display: inline-flex !important;
  min-height: 44px !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 18px !important;
  color: #f8f9f9 !important;
  background: var(--tn1-accent) !important;
  border: 1px solid var(--tn1-accent) !important;
  border-radius: var(--tn1-radius-control) !important;
  box-shadow: none !important;
  font-family: var(--tn1-font) !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  line-height: 1.2 !important;
  text-transform: none !important;
}

.tn1-kb button.tn1-button:hover {
  background: var(--tn1-accent-deep) !important;
  border-color: var(--tn1-accent-deep) !important;
}

.tn1-kb .tn1-query button[type="submit"]::before,
.tn1-kb .tn1-query button[type="submit"]::after,
.tn1-kb button.tn1-filter__option::before,
.tn1-kb button.tn1-filter__option::after,
.tn1-kb button.tn1-archive__trigger::before,
.tn1-kb button.tn1-archive__trigger::after,
.tn1-kb button.tn1-button::before,
.tn1-kb button.tn1-button::after {
  content: none !important;
}

@media (max-width: 900px) {
  .tn1-kb button.tn1-filter-toggle {
    position: static !important;
    display: flex !important;
    width: 100% !important;
    min-height: 52px !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 18px !important;
    margin: 32px 0 0 !important;
    padding: 0 16px !important;
    color: var(--tn1-text) !important;
    background: var(--tn1-surface) !important;
    border: 1px solid var(--tn1-line-strong) !important;
    border-radius: var(--tn1-radius-control) !important;
    box-shadow: none !important;
    font-family: var(--tn1-font) !important;
    font-size: 15px !important;
    font-weight: 680 !important;
    line-height: 1.2 !important;
    text-transform: none !important;
  }

  .tn1-kb button.tn1-filter-toggle[hidden] {
    display: none !important;
  }

  .tn1-kb button.tn1-filter-toggle::before {
    content: none !important;
  }

  .tn1-kb button.tn1-filter-toggle::after {
    content: "+" !important;
    margin-left: auto !important;
    color: var(--tn1-accent) !important;
    font-size: 20px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
  }

  .tn1-kb button.tn1-filter-toggle[aria-expanded="true"]::after {
    content: "−" !important;
  }

  .tn1-kb button.tn1-archive__trigger {
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-areas:
      "title toggle"
      "summary summary" !important;
    gap: 6px 16px !important;
    padding: 20px 0 !important;
  }
}

@media (max-width: 720px) {
  .tn1-kb .tn1-query input[type="search"] {
    min-height: 52px !important;
    padding: 0 12px !important;
    font-size: 16px !important;
  }

  .tn1-kb .tn1-query button[type="submit"] {
    width: 100% !important;
    min-height: 48px !important;
    margin: 0 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tn1-kb *,
  .tn1-kb *::before,
  .tn1-kb *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .tn1-nav,
  .tn1-query {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--tn1-surface);
  }
}
