/* TestDossier Guides -------------------------------------------------------
   Editorial surfaces built from the same cool canvas, slate, compact
   controls, and functional indigo used by the product workbench. */

.guides-page main,
.guide-detail-page main { min-height: calc(100dvh - 190px); }

.guide-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 100;
  width: 0;
  height: 2px;
  background: var(--accent);
  pointer-events: none;
  transition: width 80ms linear;
}

.guide-back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-full);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  cursor: pointer;
  transform: translateY(8px);
  transition: opacity var(--t-fast), transform var(--t-fast), color var(--t-fast), background var(--t-fast), border-color var(--t-fast);
}

.guide-back-to-top.is-visible { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.guide-back-to-top:hover { border-color: var(--accent); background: var(--surface-2); color: var(--accent-text); }
.guide-back-to-top:focus-visible { outline: 2px solid var(--accent-ring); outline-offset: 2px; }
.guide-back-to-top svg { width: 18px; height: 18px; }

.guides-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.guides-hero::before {
  content: none;
}

.guides-hero__inner {
  position: relative;
  padding-block: clamp(64px, 8vw, 96px);
}

.guides-hero .eyebrow {
  margin-bottom: 0;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 650;
  letter-spacing: -.01em;
  text-transform: none;
}

/* Label tier takes --accent-text. At 12-13px the fill indigo only reaches
   3.4:1 on the dark canvas, and these labels sit beside card meta already on
   this value. Display type keeps --accent -- see .guides-hero h1 span. */
.guides-page .eyebrow,
.guide-detail-page .eyebrow { color: var(--text-3); }

.guides-hero h1 {
  max-width: 840px;
  margin: var(--s-2) 0 var(--s-5);
  font-size: clamp(38px, 6vw, 72px);
  line-height: .98;
  text-wrap: balance;
}

/* Display type takes --accent like the marketing hero; --accent-text is the
   link foreground, lightened for 4.5:1 at body sizes. */
.guides-hero h1 span {
  /* Marked, not filled — identical treatment to the marketing hero, so the two
     pages read as one voice. See .marketing-home .hero h1 .grad. */
  /* "approved" is marked by hand, not underlined by a ruler.

     Two overlapping pen passes with round caps and a slight wobble — the shape
     a person makes when they underline a word, which is exactly what this
     product is about. Painted as a masked pseudo-element rather than a
     background image so the stroke follows --accent through the theme toggle;
     an SVG in background-image cannot see the page's tokens. */
  color: var(--text);
  text-decoration: none;
  position: relative;
}

.guides-hero p {
  max-width: 650px;
  color: var(--text-2);
  font-size: clamp(16px, 1.9vw, 20px);
  line-height: 1.62;
  text-wrap: pretty;
}

.guide-directory { padding: clamp(48px, 7vw, 88px) 0 0; }

.guide-directory__toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--s-6);
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--border-strong);
}

.guide-directory__toolbar h2,
.guide-related__head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.06;
}

.guide-directory__toolbar .eyebrow { margin-bottom: var(--s-2); }

/* Intentionally mirrors the search control in the Snapshots canvas. */
.td-searchbar {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  min-width: 0;
}

.guide-search { width: min(100%, 390px); }

.guide-search .canvas-surface__search {
  min-width: 0;
  width: 100%;
  height: 32px;
  margin: 0;
  padding: 5px 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-control, var(--r));
  background: var(--surface);
  color: var(--text);
  font: 500 var(--text-sm)/1.2 var(--font-sans);
  appearance: none;
}

.guide-search .canvas-surface__search::placeholder { color: var(--text-4); }
.guide-search .canvas-surface__search::-webkit-search-cancel-button { appearance: none; }
.guide-search .canvas-surface__search:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-ring);
}

.td-search-btn {
  display: inline-flex;
  flex: 0 0 32px;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-control, var(--r));
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}

.td-search-btn svg { width: 15px; height: 15px; }
.td-search-btn:hover { color: var(--text); background: var(--surface-2); }
.td-search-btn:focus-visible { outline: 2px solid var(--accent-ring); outline-offset: 2px; }

.guide-category-scroller {
  position: relative;
  min-width: 0;
  margin-top: var(--s-4);
}

.guide-category-scroller::before,
.guide-category-scroller::after {
  content: none;
}

.guide-categories {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 2px 0 4px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.guide-categories::-webkit-scrollbar { display: none; }
.guide-category-scroller.is-overflowing .guide-categories { padding-right: 46px; }

.guide-category-scroll {
  display: none;
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-full);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  color: var(--text-2);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transform: translateY(-50%) scale(.94);
  backdrop-filter: blur(8px);
  transition: opacity var(--t-fast), transform var(--t-fast), color var(--t-fast), background var(--t-fast), border-color var(--t-fast);
}

.guide-category-scroll--previous { left: 0; }
.guide-category-scroll--next { right: 0; }
.guide-category-scroll svg { width: 15px; height: 15px; }
.guide-category-scroller.is-enhanced .guide-category-scroll { display: grid; }
.guide-category-scroller.can-scroll-left .guide-category-scroll--previous,
.guide-category-scroller.can-scroll-right .guide-category-scroll--next {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) scale(1);
}
.guide-category-scroll:hover { border-color: var(--accent); background: var(--surface); color: var(--accent-text); }
.guide-category-scroll:focus-visible { outline: 2px solid var(--accent-ring); outline-offset: 2px; }
.guide-category-scroll:disabled { visibility: hidden; }

.guide-filter {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 5px 11px;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  background: transparent;
  color: var(--text-2);
  font: 600 var(--text-xs)/1 var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}

.guide-filter:hover { color: var(--text); border-color: var(--border-strong); }
.guide-filter.is-active { color: var(--accent-text); border-color: color-mix(in srgb, var(--accent) 38%, var(--border)); background: var(--accent-soft); }
.guide-filter:focus-visible { outline: 2px solid var(--accent-ring); outline-offset: 2px; }

.guide-results {
  min-height: 18px;
  margin: var(--s-4) 0;
  color: var(--text-3);
  font-size: var(--text-xs);
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.guide-featured { margin-bottom: var(--s-8); }

.guide-featured__label {
  display: inline-flex;
  position: relative;
  z-index: 2;
  margin: 0 0 -1px 16px;
  padding: 5px 9px;
  border: 1px solid var(--accent);
  border-bottom: 0;
  border-radius: var(--r) var(--r) 0 0;
  background: var(--accent);
  color: var(--accent-on);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-5);
}

.guide-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-card, var(--r-lg));
  background: var(--surface);
  box-shadow: none;
  transition: transform var(--t) var(--ease), border-color var(--t-fast), box-shadow var(--t);
}

@media (hover: hover) {
  .guide-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--accent) 34%, var(--border-strong));
    box-shadow: none;
  }
}

.guide-card__media {
  display: block;
  flex: none;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.guide-card__media > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease);
}

@media (hover: hover) { .guide-card:hover .guide-card__media > img { transform: scale(1.018); } }

.guide-card__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: color-mix(in srgb, var(--surface-2) 78%, var(--accent-soft));
}

.guide-card__placeholder img { opacity: .72; filter: saturate(.7); }
.guide-card__body { display: flex; flex: 1; flex-direction: column; min-height: 260px; padding: var(--s-5); }

.guide-card__meta,
.guide-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  color: var(--text-3);
  font-size: 11px;
}

.guide-card__meta > span {
  overflow: hidden;
  color: var(--accent-text);
  font-weight: 700;
  letter-spacing: .055em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.guide-card h2 {
  margin: var(--s-3) 0 var(--s-2);
  font-size: clamp(20px, 2.1vw, 25px);
  line-height: 1.12;
  text-wrap: balance;
}

.guide-card h2 a { color: var(--text); }
.guide-card h2 a:hover { color: var(--accent-text); }

.guide-card__body > p {
  display: -webkit-box;
  margin-bottom: var(--s-5);
  overflow: hidden;
  color: var(--text-2);
  font-size: var(--text-sm);
  line-height: 1.62;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.guide-card__foot { margin-top: auto; padding-top: var(--s-4); border-top: 1px solid var(--border); }
.guide-card__foot > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.guide-card__foot a { flex: none; color: var(--text); font-weight: 700; }
.guide-card__foot a span { display: inline-block; transition: transform var(--t-fast); }
.guide-card__foot a:hover span { transform: translateX(2px); }

.guide-card--featured {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, .82fr);
  border-color: color-mix(in srgb, var(--accent) 34%, var(--border-strong));
}

.guide-card--featured .guide-card__media { aspect-ratio: auto; min-height: 370px; border: 0; border-right: 1px solid var(--border); }
.guide-card--featured .guide-card__body { justify-content: center; min-height: 370px; padding: clamp(28px, 4vw, 48px); }
.guide-card--featured h2 { font-size: clamp(28px, 3.5vw, 42px); }
.guide-card--featured .guide-card__body > p { -webkit-line-clamp: 4; font-size: var(--text-base); }

.guide-card[hidden],
.guide-featured[hidden] { display: none !important; }

.guide-load-more {
  display: flex;
  justify-content: center;
  margin-top: var(--s-8);
}

.guide-load-more .btn { min-width: 172px; }
.guide-load-more .btn[aria-busy="true"] { pointer-events: none; opacity: .7; }

.guide-no-results {
  padding: var(--s-16) var(--s-5);
}

.guide-empty {
  padding: clamp(var(--s-10), 5vw, var(--s-12)) var(--s-5);
}

.guide-no-results,
.guide-empty {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-card, var(--r-lg));
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  text-align: center;
}

.guide-no-results__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto var(--s-4);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface-2);
  color: var(--text-3);
}

.guide-no-results__icon svg { width: 20px; height: 20px; }
.guide-no-results h2, .guide-empty h2 { margin: 0 0 var(--s-2); font-size: 27px; }
.guide-no-results p, .guide-empty p { max-width: 480px; margin: 0 auto var(--s-5); color: var(--text-2); }
.guide-empty__actions { display: flex; justify-content: center; gap: var(--s-2); }

/* Article --------------------------------------------------------------- */

.guide-article__hero {
  padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 6vw, 72px);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 54%, transparent);
}

.guide-article__hero-inner { max-width: 930px; }

.guide-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: var(--s-10);
  color: var(--text-2);
  font-size: var(--text-sm);
  font-weight: 650;
}

.guide-back:hover { color: var(--text); }
.guide-article__meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--text-3); font-size: var(--text-xs); font-weight: 600; }
.guide-article__meta > span:first-child { color: var(--text-3); letter-spacing: .055em; text-transform: uppercase; }

.guide-article__hero h1 {
  max-width: 920px;
  margin: var(--s-4) 0;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.01;
  text-wrap: balance;
}

.guide-article__hero-inner > p {
  max-width: 730px;
  margin-bottom: var(--s-8);
  color: var(--text-2);
  font-size: clamp(17px, 2.1vw, 21px);
  line-height: 1.58;
}

.guide-byline {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding-top: var(--s-5);
  border-top: 1px solid var(--border);
}

.guide-byline__mark { display: grid; flex: 0 0 38px; place-items: center; width: 38px; height: 38px; border: 1px solid var(--border); border-radius: var(--r-full); background: var(--surface); }
.guide-byline__mark img { width: 22px; height: 22px; }
.guide-byline > div:nth-child(2) { display: grid; min-width: 0; }
.guide-byline strong { font-size: var(--text-sm); }
.guide-byline span { color: var(--text-3); font-size: 11px; }

.guide-copy-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  margin-left: auto;
  padding: 5px 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-control, var(--r));
  background: var(--surface);
  color: var(--text-2);
  font: 600 var(--text-xs)/1 var(--font-sans);
  cursor: pointer;
}

.guide-copy-link:hover { color: var(--text); background: var(--surface-2); }
.guide-copy-link:focus-visible { outline: 2px solid var(--accent-ring); outline-offset: 2px; }
.guide-copy-link svg { width: 14px; height: 14px; }

body.guide-share-open { overflow: hidden; }

.guide-share-dialog {
  width: min(660px, calc(100vw - 32px));
  max-width: none;
  max-height: min(820px, calc(100dvh - 32px));
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-card, var(--r-lg));
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-lg);
}

.guide-share-dialog::backdrop {
  background: color-mix(in srgb, var(--text) 48%, transparent);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.guide-share-dialog__panel {
  display: grid;
  gap: var(--s-4);
  padding: var(--s-6);
  background: var(--surface);
}

.guide-share-dialog__head {
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--border);
}

.guide-share-dialog__head h2 { display: inline-flex; align-items: center; gap: var(--s-2); margin: 0; font-size: var(--text-md); font-weight: 650; letter-spacing: -.012em; line-height: 1.2; }
.guide-share-dialog__head h2 svg { width: 18px; height: 18px; color: var(--text-3); }

.guide-share-dialog__close {
  display: inline-flex;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius-control, var(--r));
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
}

.guide-share-dialog__close:hover { border-color: var(--border); background: var(--surface-2); color: var(--text); }
.guide-share-dialog__close:focus-visible,
.guide-share-option:focus-visible,
.guide-share-copy:focus-visible { outline: 2px solid var(--accent-ring); outline-offset: 2px; }
.guide-share-dialog__close svg { width: 18px; height: 18px; }
.guide-share-dialog__description { margin: 0; color: var(--text-2); font-size: var(--text-sm); line-height: 1.55; }

.guide-share-dialog__article {
  margin: 0;
  padding: 11px 13px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-control, var(--r));
  background: color-mix(in srgb, var(--surface-2) 70%, transparent);
  color: var(--text-2);
  font-size: var(--text-xs);
  font-weight: 650;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guide-share-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

.guide-share-option {
  display: flex;
  min-width: 0;
  min-height: 68px;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control, var(--r));
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--text);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: border-color var(--t-fast), background-color var(--t-fast);
}

.guide-share-option[hidden] { display: none; }
.guide-share-option:hover { border-color: color-mix(in srgb, var(--accent) 48%, var(--border-strong)); background: var(--surface-2); color: var(--text); }
.guide-share-option > span:last-child { display: grid; min-width: 0; gap: 3px; }
.guide-share-option strong { overflow: hidden; font-size: var(--text-sm); line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.guide-share-option small { overflow: hidden; color: var(--text-3); font-size: 11px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }

.guide-share-option__icon {
  display: grid;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.04em;
}

.guide-share-option__icon svg { width: 21px; height: 21px; }
.guide-share-option__icon--linkedin { font-family: Arial, sans-serif; }
.guide-share-option__icon--x { font-family: Arial, sans-serif; font-weight: 500; }
.guide-share-option__icon--facebook { font-family: Arial, sans-serif; font-size: 23px; }

.guide-share-dialog__foot { display: grid; gap: var(--s-3); padding-top: var(--s-4); border-top: 1px solid var(--border); }
.guide-share-dialog__privacy { color: var(--text-3); font-size: 11px; line-height: 1.35; text-align: center; }

/* Copy link is this dialog's primary action, so it follows the same rule as
   every other primary button (workbench.css): INK, not accent. Indigo stays
   reserved for links and state — an accent-filled button here was the only
   purple fill in the product. */
.guide-share-copy {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--btn-ink, var(--text));
  border-radius: var(--radius-control, var(--r));
  background: var(--btn-ink, var(--text));
  color: var(--bg);
  font: 700 var(--text-sm)/1 var(--font-sans);
  cursor: pointer;
  transition: background-color var(--t-fast), border-color var(--t-fast);
}

.guide-share-copy:hover {
  border-color: var(--btn-ink-hover, var(--text));
  background: var(--btn-ink-hover, var(--text));
  color: var(--bg);
}

/* Copied is a state, and state is where colour is allowed to speak. */
.guide-share-copy.is-copied {
  border-color: var(--success);
  background: var(--success);
  color: var(--bg);
}
.guide-share-copy svg { width: 16px; height: 16px; }

.guide-cover { margin-top: clamp(32px, 5vw, 64px); }
.guide-cover .guide-image-trigger { border-radius: var(--radius-card, var(--r-lg)); }
.guide-cover img { display: block; width: 100%; max-height: 660px; aspect-ratio: 16 / 8.2; object-fit: cover; border: 1px solid var(--border-strong); border-radius: var(--radius-card, var(--r-lg)); background: var(--surface-2); }

.guide-article__layout {
  --guide-layout-gap: clamp(28px, 4vw, 54px);
  display: grid;
  grid-template-columns: minmax(150px, 190px) minmax(0, 720px) minmax(205px, 245px);
  justify-content: center;
  gap: var(--guide-layout-gap);
  padding-block: clamp(48px, 7vw, 88px);
}

.guide-article__rail,
.guide-product-card { align-self: start; position: sticky; top: 88px; }

.guide-toc {
  display: grid;
  gap: 3px;
  padding-left: var(--s-3);
  border-left: 1px solid var(--border-strong);
}

.guide-toc__label {
  margin-bottom: var(--s-2);
  color: var(--text-3);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.guide-toc__link {
  display: block;
  padding: 5px 7px;
  border-radius: var(--r);
  color: var(--text-3);
  font-size: 11px;
  line-height: 1.35;
}

.guide-toc__link--3 { padding-left: 17px; }
.guide-toc__link:hover { color: var(--text); background: var(--surface-2); }
.guide-toc__link.is-active { color: var(--accent-text); background: var(--accent-soft); }

.guide-product-card {
  padding: var(--s-5);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-card, var(--r-lg));
  background: var(--surface);
}

.guide-product-card h2 { margin: 8px 0 var(--s-3); font-size: 24px; line-height: 1.08; }
.guide-product-card p { color: var(--text-2); font-size: var(--text-sm); line-height: 1.55; }
.guide-product-card .btn { margin: var(--s-5) 0 var(--s-3); }
.guide-product-card > a:last-child { display: block; color: var(--text-2); font-size: var(--text-xs); font-weight: 650; text-align: center; }
.btn--block { display: flex; width: 100%; justify-content: center; }

.guide-prose { min-width: 0; color: var(--text-2); font-size: 17px; line-height: 1.78; overflow-wrap: anywhere; }
.guide-prose > *:first-child { margin-top: 0; }
.guide-prose p { margin: 0 0 1.45em; }
.guide-prose a { color: var(--accent-text); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 42%, transparent); text-underline-offset: 3px; }
.guide-prose strong { color: var(--text); font-weight: 700; }
.guide-prose code { border: 1px solid var(--border); }
.guide-prose :not(pre) > code {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.guide-prose h2,
.guide-prose h3 { position: relative; scroll-margin-top: 96px; color: var(--text); line-height: 1.15; text-wrap: balance; }
.guide-prose h2 { margin: 2.2em 0 .7em; font-size: clamp(28px, 3.2vw, 36px); }
.guide-prose h3 { margin: 1.85em 0 .65em; font-size: clamp(22px, 2.4vw, 27px); }
.guide-heading-anchor { position: absolute; right: calc(100% + 9px); color: var(--text-4); font-size: .62em; font-weight: 500; opacity: 0; }
.guide-prose h2:hover .guide-heading-anchor, .guide-prose h3:hover .guide-heading-anchor, .guide-heading-anchor:focus-visible { opacity: 1; }

.guide-prose ul,
.guide-prose ol { margin: 0 0 1.55em; padding-left: 1.35em; }
.guide-prose li { margin: .42em 0; padding-left: .25em; }
.guide-prose li::marker { color: var(--text-4); font-weight: 700; }

.guide-figure { margin: 2em 0; }
.guide-figure--wide {
  width: min(820px, calc(100% + 2 * (var(--guide-layout-gap) - 16px)));
  margin-left: 50%;
  transform: translateX(-50%);
}
.guide-image-trigger {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--radius-card, var(--r-lg));
  background: transparent;
  color: #fff;
  cursor: zoom-in;
}
.guide-image-trigger:focus-visible { outline: 3px solid var(--accent-ring); outline-offset: 3px; }
.guide-image-trigger__hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--r-full);
  background: rgba(11, 13, 19, .78);
  box-shadow: var(--shadow-sm);
  color: #fff;
  font: 650 11px/1 var(--font-sans);
  opacity: .88;
  backdrop-filter: blur(10px);
  transition: opacity var(--t-fast), transform var(--t-fast), background-color var(--t-fast);
}
.guide-image-trigger__hint svg { width: 14px; height: 14px; }
.guide-image-trigger:hover .guide-image-trigger__hint,
.guide-image-trigger:focus-visible .guide-image-trigger__hint { background: rgba(11, 13, 19, .92); opacity: 1; transform: translateY(-1px); }
.guide-figure img { display: block; width: 100%; max-height: 720px; object-fit: cover; border: 1px solid var(--border-strong); border-radius: var(--radius-card, var(--r-lg)); background: var(--surface-2); }
.guide-figure figcaption { margin-top: 8px; color: var(--text-3); font-size: var(--text-xs); line-height: 1.5; text-align: center; }

body.guide-lightbox-open { overflow: hidden; }
.guide-lightbox {
  width: min(1440px, calc(100vw - 32px));
  height: min(1000px, calc(100dvh - 32px));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--border-strong) 75%, transparent);
  border-radius: var(--radius-card, var(--r-lg));
  background: #0b0d13;
  color: #f6f7f9;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .48);
}
.guide-lightbox::backdrop { background: rgba(6, 8, 12, .78); backdrop-filter: blur(8px); }
.guide-lightbox__shell { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; width: 100%; height: 100%; }
.guide-lightbox__toolbar {
  z-index: 2;
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: 8px 10px 8px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  background: rgba(16, 19, 26, .96);
}
.guide-lightbox__counter { color: rgba(255, 255, 255, .68); font: 650 11px/1 var(--font-sans); letter-spacing: .04em; }
.guide-lightbox__tools { display: flex; align-items: center; gap: 5px; }
.guide-lightbox__tool,
.guide-lightbox__nav {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius-control, var(--r));
  background: rgba(255, 255, 255, .07);
  color: #fff;
  font: 650 11px/1 var(--font-sans);
  cursor: pointer;
}
.guide-lightbox__tool:hover,
.guide-lightbox__nav:hover { border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .13); }
.guide-lightbox__tool:focus-visible,
.guide-lightbox__nav:focus-visible { outline: 2px solid #8c9bff; outline-offset: 2px; }
.guide-lightbox__tool:disabled { opacity: .38; cursor: default; }
.guide-lightbox__tool svg { width: 16px; height: 16px; }
.guide-lightbox__close { width: 44px; padding: 0; }
.guide-lightbox__media {
  display: grid;
  min-width: 0;
  min-height: 0;
  padding: clamp(12px, 2vw, 24px) clamp(56px, 6vw, 84px);
  overflow: auto;
  place-items: center;
  overscroll-behavior: contain;
  scrollbar-color: rgba(255, 255, 255, .28) transparent;
}
.guide-lightbox__media img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--r); box-shadow: 0 14px 46px rgba(0, 0, 0, .3); user-select: none; -webkit-user-drag: none; }
.guide-lightbox.is-zoomable .guide-lightbox__media:not(.is-zoomed) img { cursor: zoom-in; }
.guide-lightbox__media.is-zoomed { display: block; padding: var(--s-5); }
.guide-lightbox__media.is-zoomed img { width: auto; max-width: none; height: auto; max-height: none; margin: 0 auto; cursor: zoom-out; }
.guide-lightbox__nav { position: absolute; z-index: 3; top: 50%; width: 44px; padding: 0; border-radius: var(--r-full); background: rgba(16, 19, 26, .86); transform: translateY(-50%); backdrop-filter: blur(10px); }
.guide-lightbox__nav svg { width: 20px; height: 20px; }
.guide-lightbox__nav--previous { left: 14px; }
.guide-lightbox__nav--next { right: 14px; }
.guide-lightbox__caption { min-height: 48px; margin: 0; padding: 13px clamp(18px, 5vw, 72px); border-top: 1px solid rgba(255, 255, 255, .1); background: rgba(16, 19, 26, .96); color: rgba(255, 255, 255, .72); font-size: var(--text-xs); line-height: 1.5; text-align: center; }

.guide-video { margin: 2em 0; }
.guide-video__player,
.guide-video__iframe {
  display: flex;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-card, var(--r-lg));
  background: var(--bg);
}
.guide-prose .guide-video__player {
  position: relative;
  align-items: center;
  justify-content: center;
  gap: var(--s-4);
  overflow: hidden;
  padding: var(--s-8);
  background: var(--surface-2);
  color: var(--text);
  text-align: left;
  text-decoration: none;
  transition: border-color var(--t-fast), background-color var(--t-fast);
}
.guide-prose .guide-video__player:hover { border-color: color-mix(in srgb, var(--accent) 52%, var(--border-strong)); color: var(--text); }
.guide-video__play { display: grid; flex: 0 0 58px; width: 58px; height: 58px; place-items: center; border-radius: var(--r-full); background: var(--accent); color: var(--accent-on); box-shadow: var(--shadow-md); transition: transform var(--t-fast); }
.guide-video__player:hover .guide-video__play { transform: scale(1.04); }
.guide-video__play svg { width: 24px; height: 24px; margin-left: 3px; }
.guide-video__prompt { display: grid; gap: 4px; max-width: 440px; }
.guide-video__prompt small { color: var(--accent-text); font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.guide-video__prompt strong { color: var(--text); font-family: var(--font-display); font-size: clamp(20px, 3vw, 29px); line-height: 1.15; text-wrap: balance; }
.guide-video__iframe { background: #000; }
.guide-video figcaption { display: grid; gap: 2px; margin-top: 9px; color: var(--text-3); font-size: var(--text-xs); line-height: 1.5; text-align: center; }
.guide-video figcaption strong { color: var(--text-2); font-size: var(--text-sm); }

.guide-prose blockquote {
  margin: 2em 0;
  padding: var(--s-5) var(--s-6);
  border-left: 3px solid var(--accent);
  background: color-mix(in srgb, var(--accent-soft) 44%, transparent);
  color: var(--text);
  font-size: 20px;
  line-height: 1.55;
}

.guide-prose blockquote p { margin: 0; }
.guide-prose blockquote cite { display: block; margin-top: var(--s-3); color: var(--text-3); font-size: var(--text-xs); font-style: normal; }

.guide-callout { min-width: 0; max-width: 100%; margin: 2em 0; padding: var(--s-5); border: 1px solid var(--border-strong); border-left: 3px solid var(--accent); border-radius: var(--r); background: var(--surface); }
.guide-callout--tip { border-left-color: var(--accent); background: color-mix(in srgb, var(--accent-soft) 45%, var(--surface)); }
.guide-callout--warning { border-left-color: var(--warning); background: color-mix(in srgb, var(--warning-soft) 45%, var(--surface)); }
.guide-callout > strong { display: block; margin-bottom: 5px; color: var(--text); font-size: var(--text-sm); }
.guide-callout p { margin: 0; font-size: var(--text-base); }

.guide-code { margin: 2em 0; overflow: hidden; border: 1px solid var(--border-strong); border-radius: var(--radius-card, var(--r-lg)); background: color-mix(in srgb, var(--surface-2) 70%, var(--bg)); }
.guide-code__header { display: flex; min-height: 38px; align-items: center; justify-content: space-between; gap: var(--s-3); padding: 5px 7px 5px var(--s-4); border-bottom: 1px solid var(--border); }
.guide-code__label { display: block; color: var(--text-3); font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; }
.guide-code__copy { display: inline-flex; min-height: 28px; align-items: center; gap: 6px; padding: 4px 9px; border: 1px solid transparent; border-radius: var(--r-sm); background: transparent; color: var(--text-3); font: 650 11px/1 var(--font-sans); cursor: pointer; transition: border-color var(--t-fast), background-color var(--t-fast), color var(--t-fast); }
.guide-code__copy:hover { border-color: var(--border-strong); background: var(--surface); color: var(--text); }
.guide-code__copy:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.guide-code__copy.is-copied { color: var(--success); }
.guide-code__copy svg { width: 14px; height: 14px; }
.guide-code pre { max-height: min(64vh, 620px); margin: 0; padding: var(--s-5); overflow: auto; scrollbar-gutter: stable; }
.guide-code code {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  line-height: 1.65;
  white-space: pre;
}

.guide-inline-cta { margin: 2.2em 0; padding: clamp(22px, 4vw, 32px); border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--border)); border-radius: var(--radius-card, var(--r-lg)); background: color-mix(in srgb, var(--accent-soft) 52%, var(--surface)); }
.guide-inline-cta > div > strong { display: block; margin: 0 0 var(--s-2); color: var(--text); font-family: var(--font-display); font-size: 25px; line-height: 1.15; }
.guide-inline-cta p { margin-bottom: var(--s-5); font-size: var(--text-base); }
.guide-prose .guide-inline-cta .btn { min-height: 40px; height: auto; max-width: 100%; padding-block: 10px; color: var(--bg); text-align: center; text-decoration: none; white-space: normal; overflow-wrap: anywhere; }
.guide-prose .guide-inline-cta .btn:hover { color: var(--bg); background: var(--btn-ink-hover, var(--text)); }

.guide-related { padding: clamp(56px, 8vw, 96px) 0; border-top: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 50%, transparent); }
.guide-related__head { margin-bottom: var(--s-6); }

.guide-missing { display: grid; min-height: 68dvh; place-items: center; padding: var(--s-10) var(--s-5); text-align: center; }
.guide-missing > div { max-width: 560px; }
.guide-missing h1 { margin: var(--s-3) 0; font-size: clamp(40px, 7vw, 68px); }
.guide-missing p { margin-bottom: var(--s-6); color: var(--text-2); }

@media (max-width: 1080px) {
  .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-article__layout { grid-template-columns: minmax(150px, 190px) minmax(0, 720px); }
  .guide-product-card { position: static; grid-column: 2; }
  .guide-figure--wide { width: 100%; margin-left: 0; transform: none; }
}

@media (max-width: 760px) {
  .guides-hero__inner { padding-block: 56px 64px; }
  .guide-directory { padding-top: 44px; }
  .guide-directory__toolbar { align-items: stretch; flex-direction: column; }
  .guide-search { width: 100%; }
  .guide-search .canvas-surface__search, .td-search-btn { height: 40px; }
  .td-search-btn { flex-basis: 40px; width: 40px; }
  .guide-category-scroller.is-overflowing .guide-categories { padding-right: 54px; }
  .guide-category-scroll { width: 40px; height: 40px; }
  .guide-category-scroll svg { width: 17px; height: 17px; }
  .guide-filter { min-height: 40px; padding-inline: 14px; }
  .guide-card--featured { display: block; }
  .guide-card--featured .guide-card__media { min-height: 0; aspect-ratio: 16 / 9; border-right: 0; border-bottom: 1px solid var(--border); }
  .guide-card--featured .guide-card__body { min-height: 0; padding: var(--s-5); }
  .guide-article__layout { display: flex; flex-direction: column; gap: var(--s-8); }
  .guide-article__rail { position: static; width: 100%; order: 0; }
  .guide-toc { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: var(--s-3); border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
  .guide-toc__label { grid-column: 1 / -1; }
  .guide-product-card { order: 2; }
  .guide-prose { order: 1; font-size: 16px; }
  .guide-copy-link { min-height: 40px; }
  .guide-prose .guide-video__player { padding: var(--s-5); }
}

@media (prefers-reduced-motion: reduce) {
  .guide-categories { scroll-behavior: auto; }
}

@media (max-width: 580px) {
  .guides-hero h1 { font-size: 40px; }
  .guide-grid { grid-template-columns: 1fr; }
  .guide-card__body { min-height: 230px; }
  .guide-empty__actions { align-items: stretch; flex-direction: column; }
  .guide-article__hero { padding-top: 36px; }
  .guide-back { margin-bottom: var(--s-8); }
  .guide-article__hero h1 { font-size: 40px; }
  .guide-byline { display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: center; }
  .guide-byline > div:nth-child(2) { grid-column: 2; }
  .guide-copy-link { grid-column: 2; justify-self: start; margin-left: 0; }
  .guide-share-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); margin: auto; border-radius: var(--radius-card, var(--r-lg)); }
  .guide-share-dialog__panel { gap: var(--s-4); padding: 16px 16px max(22px, env(safe-area-inset-bottom)); }
  .guide-share-dialog__close { flex-basis: 40px; width: 40px; height: 40px; }
  .guide-share-option { min-height: 62px; gap: 7px; padding: 7px; }
  .guide-share-option strong { font-size: 12px; }
  .guide-share-option__icon { flex-basis: 32px; width: 32px; height: 32px; border-radius: var(--radius-control, var(--r)); }
  .guide-share-option small { display: none; }
  .guide-share-dialog__foot { align-items: stretch; flex-direction: column-reverse; }
  .guide-share-copy { width: 100%; }
  .guide-share-dialog__privacy { text-align: center; }
  .guide-cover { padding-inline: 12px; }
  .guide-cover img { aspect-ratio: 4 / 3; }
  .guide-image-trigger__hint { right: 9px; bottom: 9px; width: 34px; min-height: 34px; justify-content: center; padding: 0; }
  .guide-image-trigger__hint > span { display: none; }
  .guide-lightbox { width: 100vw; height: 100dvh; border: 0; border-radius: 0; }
  .guide-lightbox__toolbar { min-height: 54px; padding-left: 13px; }
  .guide-lightbox__tool { padding-inline: 10px; }
  .guide-lightbox__tool > span { display: none; }
  .guide-lightbox__media { padding: 8px; }
  .guide-lightbox__media.is-zoomed { padding: 0; }
  .guide-lightbox__nav { top: auto; bottom: 62px; transform: none; }
  .guide-lightbox__nav--previous { left: 12px; }
  .guide-lightbox__nav--next { right: 12px; }
  .guide-lightbox__caption { min-height: 56px; padding: 10px 64px; font-size: 11px; }
  .guide-toc { grid-template-columns: 1fr; }
  .guide-prose blockquote { padding-inline: var(--s-5); font-size: 18px; }
  .guide-video__play { flex-basis: 48px; width: 48px; height: 48px; }
  .guide-video__prompt strong { font-size: 18px; }
  .guide-back-to-top { right: 14px; bottom: 14px; width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .guide-card, .guide-card__media > img, .guide-card__foot a span, .guide-progress, .guide-image-trigger__hint, .guide-share-option, .guide-share-copy, .guide-back-to-top { transition: none; }
  .guide-back-to-top { transform: none; }
}

.guides-hero h1 span::after {
  content: "";
  position: absolute;
  left: -0.02em;
  right: -0.02em;
  bottom: -0.04em;
  height: 0.24em;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 16' preserveAspectRatio='none'><g fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round'><path d='M5 10.2 C42 6.4, 79 11.6, 116 8.2 S190 5.4, 235 8.8' stroke-width='4.2'/><path d='M12 12.4 C52 9.6, 92 13.2, 132 10.4 S198 8.6, 228 11.2' stroke-width='2.4' opacity='.55'/></g></svg>") no-repeat center / 100% 100%;
  mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 16' preserveAspectRatio='none'><g fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round'><path d='M5 10.2 C42 6.4, 79 11.6, 116 8.2 S190 5.4, 235 8.8' stroke-width='4.2'/><path d='M12 12.4 C52 9.6, 92 13.2, 132 10.4 S198 8.6, 228 11.2' stroke-width='2.4' opacity='.55'/></g></svg>") no-repeat center / 100% 100%;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .guides-hero h1 span::after {
    clip-path: inset(0 100% 0 0);
    animation: td-decision-mark-draw 650ms cubic-bezier(.45, 0, .2, 1) 300ms forwards;
    will-change: clip-path;
  }
}

@keyframes td-decision-mark-draw {
  to { clip-path: inset(0 0 0 0); }
}

/* Masks paint a background, and print drops backgrounds — fall back to a rule. */
@media print {
  .guides-hero h1 span::after { display: none; }
  .guides-hero h1 span { text-decoration: underline; text-underline-offset: 0.14em; }
}
