/* ThunderMonkey Knowledge Base — scoped additions only. Global variables, buttons, containers, prose and product cards come from Global CSS V2. */
.tm-learn-intro,.tm-learn-section,.tm-learn-design,.tm-learn-path,.tm-guide-search{padding:clamp(48px,6vw,82px) 0;border-bottom:var(--tm-border)}
.tm-learn-intro{background:var(--tm-off-white);padding-top:clamp(42px,5vw,70px)}
.tm-learn-intro__grid{display:grid;grid-template-columns:minmax(0,0.85fr) minmax(420px,1.15fr);gap:clamp(34px,6vw,84px);align-items:center}
.tm-learn-intro__copy h1{max-width:720px;margin:10px 0 16px;font-size:clamp(3rem,6vw,6.2rem);line-height:.88}
.tm-learn-intro__copy>p{max-width:610px;font-size:clamp(1.05rem,1.5vw,1.25rem);color:var(--tm-dark-grey)}
.tm-learn-intro__actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:26px}.tm-learn-intro__visual{position:relative;min-height:400px;background:var(--tm-sand);border:var(--tm-border);overflow:hidden}.tm-learn-intro__visual img{display:block;width:100%;height:100%;min-height:400px;object-fit:contain}.tm-learn-intro__labels{position:absolute;inset:auto 14px 14px;display:flex;flex-wrap:wrap;gap:7px}.tm-learn-intro__labels span{background:var(--tm-black);color:var(--tm-white);padding:7px 9px;font:600 .72rem/1 var(--tm-mono-font);text-transform:uppercase;letter-spacing:.06em}
.tm-learn-section__header{display:grid;grid-template-columns:minmax(0,.72fr) minmax(0,1.28fr);gap:30px;align-items:end;margin-bottom:32px}.tm-learn-section__header h2{margin:0;font-size:clamp(2.4rem,4.2vw,4.6rem);line-height:.92}.tm-learn-guide-list{border-top:2px solid var(--tm-black)}
.tm-guide-index-item{display:grid;grid-template-columns:minmax(260px,.7fr) minmax(0,1.3fr);border-bottom:var(--tm-border);background:var(--tm-white)}.tm-guide-index-item--compact{grid-template-columns:1fr}.tm-guide-index-item__media{min-height:320px;background:var(--tm-sand);border-right:var(--tm-border)}.tm-guide-index-item__image{display:block;width:100%;height:100%;object-fit:contain}.tm-guide-index-item__body{padding:clamp(22px,3vw,42px);display:flex;flex-direction:column;justify-content:center}.tm-guide-index-item--compact .tm-guide-index-item__body{display:grid;grid-template-columns:minmax(180px,.48fr) minmax(0,1fr) auto;gap:24px;align-items:center;padding:20px 0}.tm-guide-index-item__meta{display:flex;flex-wrap:wrap;gap:8px 16px;font:600 .72rem/1.3 var(--tm-mono-font);text-transform:uppercase;color:var(--tm-grey);letter-spacing:.04em}.tm-guide-index-item__draft{color:var(--tm-warning)}.tm-guide-index-item h3{margin:10px 0 8px;font-size:clamp(1.7rem,2.6vw,2.8rem);line-height:.98}.tm-guide-index-item--compact h3{font-size:clamp(1.35rem,2vw,2rem);margin:0}.tm-guide-index-item h3 a{color:inherit}.tm-guide-index-item p{margin:0;color:var(--tm-dark-grey)}.tm-guide-index-item__link{margin-top:18px;font-weight:700;color:var(--tm-blue)}.tm-guide-index-item--compact .tm-guide-index-item__link{margin:0;white-space:nowrap}
.tm-learn-design{background:var(--tm-black);color:var(--tm-white)}.tm-learn-design .tm-eyebrow{color:var(--tm-yellow)}.tm-learn-design__grid{display:grid;grid-template-columns:minmax(360px,.95fr) minmax(0,1.05fr);border:1px solid var(--tm-border-light)}.tm-learn-design__visual{min-height:520px;background:var(--tm-charcoal);border-right:1px solid var(--tm-border-light)}.tm-learn-design__visual img{width:100%;height:100%;object-fit:contain;display:block}.tm-learn-design__content{display:grid;grid-template-columns:minmax(190px,.45fr) minmax(0,.55fr)}.tm-learn-design__tabs{display:flex;flex-direction:column;border-right:1px solid var(--tm-border-light)}.tm-learn-design__tabs button{min-height:56px;padding:14px 16px;border:0;border-bottom:1px solid var(--tm-border-light);background:transparent;color:var(--tm-white);text-align:left;font:700 1rem/1.15 var(--tm-heading-font);cursor:pointer}.tm-learn-design__tabs button[aria-selected="true"]{background:var(--tm-yellow);color:var(--tm-black)}.tm-learn-design__tabs button:focus-visible{outline:2px solid var(--tm-light-blue);outline-offset:-3px}.tm-learn-design__panels{padding:clamp(24px,4vw,46px)}.tm-learn-design__panels article{display:block}.tm-learn-design__panels article[hidden]{display:none}.tm-learn-design__panels h3{color:var(--tm-white);font-size:clamp(2rem,3.4vw,3.8rem);line-height:.95}.tm-learn-design__panels p{color:rgba(255,255,255,.76)}.tm-learn-design__panels a{color:var(--tm-yellow);font-weight:700}
.tm-learn-path__list{list-style:none;padding:0;margin:0;border-top:2px solid var(--tm-black)}.tm-learn-path__list li{display:grid;grid-template-columns:70px minmax(0,1fr) 44px;gap:24px;align-items:center;padding:24px 0;border-bottom:var(--tm-border)}.tm-learn-path__number{font:700 .82rem/1 var(--tm-mono-font);color:var(--tm-blue)}.tm-learn-path__list h3{margin:0 0 4px;font-size:clamp(1.45rem,2.3vw,2.2rem)}.tm-learn-path__list h3 a{color:inherit}.tm-learn-path__list p{margin:0;color:var(--tm-grey)}.tm-learn-path__arrow{display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--tm-black);color:var(--tm-black);font-size:1.2rem}.tm-learn-path__finder{margin:20px 0 0;text-align:right}.tm-learn-path__finder a{font-weight:700;color:var(--tm-blue)}.tm-learn-path--care{background:var(--tm-sand)}
.tm-guide-search__controls{display:grid;grid-template-columns:minmax(220px,1.3fr) minmax(160px,.7fr) minmax(160px,.7fr) auto;gap:12px;align-items:end}.tm-guide-search__controls label span{display:block;margin-bottom:7px;font:600 .72rem/1 var(--tm-mono-font);text-transform:uppercase}.tm-guide-search__controls input,.tm-guide-search__controls select{width:100%;min-height:48px;border:1px solid var(--tm-black);background:var(--tm-white);padding:0 12px;font:inherit}.tm-guide-search__count{font:600 .78rem/1 var(--tm-mono-font);text-transform:uppercase;color:var(--tm-grey);margin:18px 0}.tm-guide-search__results{border-top:2px solid var(--tm-black)}.tm-guide-search__empty{padding:28px 0;color:var(--tm-grey)}.tm-guide-admin-empty{margin:18px 0;padding:14px 16px;border-left:4px solid var(--tm-warning);background:var(--tm-warning-soft);color:var(--tm-black)}
.tm-guide-single{padding:clamp(34px,5vw,70px) 0 clamp(60px,8vw,110px);background:var(--tm-off-white)}.tm-guide-breadcrumbs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:34px;font-size:.86rem;color:var(--tm-grey)}.tm-guide-breadcrumbs a{color:var(--tm-blue)}.tm-guide-opening__meta{display:flex;flex-wrap:wrap;gap:8px 16px;font:600 .74rem/1.3 var(--tm-mono-font);text-transform:uppercase;color:var(--tm-grey)}.tm-guide-opening h1{margin:12px 0 24px;font-size:clamp(3rem,6vw,6rem);line-height:.88}.tm-guide-opening__image{margin:34px 0 18px;aspect-ratio:16/9;background:var(--tm-sand);border:var(--tm-border)}.tm-guide-opening__featured{width:100%;height:100%;object-fit:contain;display:block}.tm-guide-opening__diagram{margin:18px 0}.tm-guide-opening__diagram img{width:100%;height:auto;object-fit:contain}.tm-guide-body{margin-top:44px}
.tm-guide-single .tm-takeaways{display:grid;grid-template-columns:minmax(220px,.68fr) minmax(0,1.32fr);gap:0;margin:32px 0 0;background:var(--tm-white);border:2px solid var(--tm-black);overflow:hidden}
.tm-guide-single .tm-takeaways__intro{display:flex;flex-direction:column;justify-content:flex-end;min-height:270px;padding:clamp(24px,3vw,38px);background:var(--tm-black);color:var(--tm-white)}
.tm-guide-single .tm-takeaways__intro .tm-eyebrow{color:var(--tm-yellow)}
.tm-guide-single .tm-takeaways__intro h2{margin:12px 0;color:var(--tm-white);font-size:clamp(2rem,3.6vw,3.7rem);line-height:.9}
.tm-guide-single .tm-takeaways__intro p{max-width:260px;margin:0;color:rgba(255,255,255,.68);font-size:.96rem}
.tm-guide-single .tm-takeaways__list{display:grid;grid-template-rows:repeat(3,1fr);gap:0;margin:0;padding:0;list-style:none;background:var(--tm-white)}
.tm-guide-single .tm-takeaway{display:grid;grid-template-columns:54px minmax(0,1fr);gap:18px;align-items:center;padding:22px clamp(22px,3vw,36px);background:var(--tm-white);border-bottom:var(--tm-border)}
.tm-guide-single .tm-takeaway:last-child{border-bottom:0}
.tm-guide-single .tm-takeaway__number{display:grid;place-items:center;width:44px;height:44px;margin:0;border:1px solid var(--tm-blue);color:var(--tm-blue);font:700 .74rem/1 var(--tm-mono-font);letter-spacing:.08em}
.tm-guide-single .tm-takeaway strong{display:block;margin:0;color:var(--tm-black);font-family:var(--tm-body-font);font-size:clamp(1rem,1.4vw,1.14rem);font-weight:600;line-height:1.45}
.tm-guide-decisions{display:grid;grid-template-columns:repeat(3,1fr);margin:54px 0;border:2px solid var(--tm-black)}.tm-guide-decisions article{padding:24px;border-right:var(--tm-border)}.tm-guide-decisions article:last-child{border-right:0}.tm-guide-decisions h2{font-size:1.5rem;line-height:1;margin:0 0 12px}.tm-guide-decisions p{margin:0;color:var(--tm-dark-grey)}
.tm-guide-products{margin:64px 0}.tm-guide-products>header{margin-bottom:24px}.tm-guide-products>header h2{font-size:clamp(2rem,3vw,3.2rem)}.tm-guide-products__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.tm-guide-ending{margin-top:64px;padding:30px;border-top:4px solid var(--tm-black);background:var(--tm-sand)}.tm-guide-ending h2{font-size:clamp(1.8rem,3vw,3rem);line-height:1;margin:8px 0 20px}.tm-guide-ending__links{display:grid;gap:8px}.tm-guide-ending__links a{padding:12px 0;border-top:var(--tm-border);font-weight:700;color:var(--tm-blue)}
@media(max-width:980px){.tm-guide-single .tm-takeaways{grid-template-columns:1fr}.tm-guide-single .tm-takeaways__intro{min-height:auto}.tm-learn-intro__grid,.tm-learn-design__grid{grid-template-columns:1fr}.tm-learn-intro__visual{min-height:320px}.tm-learn-design__visual{min-height:360px;border-right:0;border-bottom:1px solid var(--tm-border-light)}.tm-guide-search__controls{grid-template-columns:1fr 1fr}.tm-guide-search__controls label:first-child{grid-column:1/-1}.tm-guide-products__grid{grid-template-columns:repeat(2,1fr)}.tm-guide-decisions{grid-template-columns:1fr}.tm-guide-decisions article{border-right:0;border-bottom:var(--tm-border)}.tm-guide-decisions article:last-child{border-bottom:0}}
@media(max-width:700px){.tm-guide-single .tm-takeaway{grid-template-columns:42px minmax(0,1fr);gap:12px;padding:18px}.tm-guide-single .tm-takeaway__number{width:38px;height:38px}.tm-learn-intro,.tm-learn-section,.tm-learn-design,.tm-learn-path,.tm-guide-search{padding:44px 0}.tm-learn-section__header{grid-template-columns:1fr;gap:10px}.tm-learn-intro__actions{align-items:stretch}.tm-learn-intro__actions .tm-btn{width:100%}.tm-learn-intro__visual,.tm-learn-intro__visual img{min-height:260px}.tm-guide-index-item{grid-template-columns:1fr}.tm-guide-index-item__media{min-height:250px;border-right:0;border-bottom:var(--tm-border)}.tm-guide-index-item--compact .tm-guide-index-item__body{grid-template-columns:1fr;gap:8px;padding:20px 0}.tm-guide-index-item--compact .tm-guide-index-item__link{margin-top:6px}.tm-learn-design__content{grid-template-columns:1fr}.tm-learn-design__tabs{border-right:0;border-bottom:1px solid var(--tm-border-light)}.tm-learn-design__tabs button{min-height:48px}.tm-learn-path__list li{grid-template-columns:42px minmax(0,1fr);gap:12px}.tm-learn-path__arrow{grid-column:2;width:auto;justify-self:start;border:0}.tm-guide-search__controls{grid-template-columns:1fr}.tm-guide-search__controls label:first-child{grid-column:auto}.tm-guide-products__grid{grid-template-columns:1fr}.tm-guide-opening h1{font-size:clamp(2.7rem,14vw,4.3rem)}}
@media(prefers-reduced-motion:reduce){.tm-learn-design *,.tm-guide-search *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* =========================================================
   Essential Buying Guides — v1.3 refined editorial layout
   ========================================================= */
.tm-learn-section--essential {
  background: var(--tm-off-white);
}

.tm-learn-section--essential .tm-learn-section__header {
  margin-bottom: clamp(24px, 3vw, 38px);
}

.tm-learn-section--essential .tm-learn-section__header h2 {
  max-width: 760px;
}

.tm-learn-section--essential .tm-learn-guide-list {
  border: 2px solid var(--tm-black);
  background: var(--tm-white);
}

.tm-learn-section--essential .tm-guide-index-item {
  border-bottom: 1px solid rgba(17, 17, 17, 0.18);
}

.tm-learn-section--essential .tm-guide-index-item:last-child {
  border-bottom: 0;
}

/* Featured starting guide */
.tm-learn-section--essential .tm-guide-index-item:not(.tm-guide-index-item--compact) {
  grid-template-columns: minmax(320px, 0.84fr) minmax(0, 1.16fr);
  min-height: 350px;
}

.tm-learn-section--essential .tm-guide-index-item:not(.tm-guide-index-item--compact) .tm-guide-index-item__media {
  min-height: 350px;
  border-right: 0;
  background: var(--tm-sand);
}

.tm-learn-section--essential .tm-guide-index-item:not(.tm-guide-index-item--compact) .tm-guide-index-item__image {
  object-fit: cover;
}

.tm-learn-section--essential .tm-guide-index-item:not(.tm-guide-index-item--compact) .tm-guide-index-item__body {
  justify-content: center;
  padding: clamp(34px, 5vw, 68px);
  background: var(--tm-black);
  color: var(--tm-white);
}

.tm-learn-section--essential .tm-guide-index-item:not(.tm-guide-index-item--compact) .tm-guide-index-item__meta {
  color: rgba(255, 255, 255, 0.62);
}

.tm-learn-section--essential .tm-guide-index-item__draft {
  display: none;
}

.tm-learn-section--essential .tm-guide-index-item:not(.tm-guide-index-item--compact) h3 {
  max-width: 700px;
  margin: 14px 0 16px;
  color: var(--tm-white);
  font-size: clamp(2.25rem, 4vw, 4rem);
  line-height: 0.93;
}

.tm-learn-section--essential .tm-guide-index-item:not(.tm-guide-index-item--compact) .tm-guide-index-item__summary {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.03rem;
}

.tm-learn-section--essential .tm-guide-index-item:not(.tm-guide-index-item--compact) .tm-guide-index-item__link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 10px;
  margin-top: 26px;
  color: var(--tm-yellow);
  font-family: var(--tm-heading-font);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Compact guide rows */
.tm-learn-section--essential .tm-guide-index-item--compact .tm-guide-index-item__body {
  display: grid;
  grid-template-columns: 58px minmax(280px, 1fr) minmax(210px, 0.72fr) 52px;
  gap: clamp(18px, 2.4vw, 34px);
  align-items: center;
  min-height: 118px;
  padding: 22px 24px;
  transition: background-color 160ms ease;
}

.tm-learn-section--essential .tm-guide-index-item--compact:hover .tm-guide-index-item__body,
.tm-learn-section--essential .tm-guide-index-item--compact:focus-within .tm-guide-index-item__body {
  background: var(--tm-light-blue);
}

.tm-guide-index-item__sequence {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--tm-blue);
  color: var(--tm-blue);
  font: 700 0.72rem/1 var(--tm-mono-font);
  letter-spacing: 0.08em;
}

.tm-learn-section--essential .tm-guide-index-item--compact .tm-guide-index-item__heading {
  min-width: 0;
}

.tm-learn-section--essential .tm-guide-index-item--compact .tm-guide-index-item__meta {
  margin-bottom: 9px;
  color: var(--tm-grey);
}

.tm-learn-section--essential .tm-guide-index-item--compact h3 {
  margin: 0;
  font-size: clamp(1.55rem, 2.2vw, 2.25rem);
  line-height: 0.98;
}

.tm-learn-section--essential .tm-guide-index-item--compact .tm-guide-index-item__summary {
  max-width: 430px;
  color: var(--tm-dark-grey);
  font-size: 0.94rem;
  line-height: 1.55;
}

.tm-learn-section--essential .tm-guide-index-item--compact .tm-guide-index-item__link {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0;
  border: 1px solid var(--tm-black);
  color: var(--tm-black);
  transition: background-color 160ms ease, color 160ms ease;
}

.tm-learn-section--essential .tm-guide-index-item--compact .tm-guide-index-item__link:hover,
.tm-learn-section--essential .tm-guide-index-item--compact .tm-guide-index-item__link:focus-visible {
  background: var(--tm-yellow);
  color: var(--tm-black);
}

.tm-learn-section--essential .tm-guide-index-item--compact .tm-guide-index-item__link-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tm-guide-index-item__arrow {
  font-size: 1.25rem;
  line-height: 1;
}

@media (max-width: 980px) {
  .tm-learn-section--essential .tm-guide-index-item:not(.tm-guide-index-item--compact) {
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  }

  .tm-learn-section--essential .tm-guide-index-item--compact .tm-guide-index-item__body {
    grid-template-columns: 52px minmax(0, 1fr) 50px;
    gap: 18px;
  }

  .tm-learn-section--essential .tm-guide-index-item--compact .tm-guide-index-item__summary {
    grid-column: 2 / 3;
    margin-top: -8px;
  }

  .tm-learn-section--essential .tm-guide-index-item--compact .tm-guide-index-item__link {
    grid-column: 3;
    grid-row: 1 / 3;
  }
}

@media (max-width: 700px) {
  .tm-learn-section--essential .tm-guide-index-item:not(.tm-guide-index-item--compact) {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .tm-learn-section--essential .tm-guide-index-item:not(.tm-guide-index-item--compact) .tm-guide-index-item__media {
    min-height: 0;
    aspect-ratio: 3 / 2;
    border-bottom: 0;
  }

  .tm-learn-section--essential .tm-guide-index-item:not(.tm-guide-index-item--compact) .tm-guide-index-item__body {
    padding: 28px 22px 32px;
  }

  .tm-learn-section--essential .tm-guide-index-item:not(.tm-guide-index-item--compact) h3 {
    font-size: clamp(2.25rem, 11vw, 3.25rem);
  }

  .tm-learn-section--essential .tm-guide-index-item--compact .tm-guide-index-item__body {
    grid-template-columns: 42px minmax(0, 1fr) 44px;
    gap: 12px;
    min-height: 0;
    padding: 20px 14px;
  }

  .tm-guide-index-item__sequence {
    width: 38px;
    height: 38px;
  }

  .tm-learn-section--essential .tm-guide-index-item--compact h3 {
    font-size: clamp(1.45rem, 7vw, 2rem);
  }

  .tm-learn-section--essential .tm-guide-index-item--compact .tm-guide-index-item__summary {
    grid-column: 2 / 4;
    margin-top: 0;
    padding-right: 6px;
  }

  .tm-learn-section--essential .tm-guide-index-item--compact .tm-guide-index-item__link {
    width: 42px;
    height: 42px;
  }
}

/* =========================================================
   Hub presentation polish — v1.4
   ========================================================= */

/* Slightly tighter rhythm across the finished hub. */
.tm-learn-intro,
.tm-learn-section,
.tm-learn-design,
.tm-learn-path,
.tm-guide-search {
  scroll-margin-top: 110px;
}

.tm-learn-section__header {
  position: relative;
}

.tm-learn-section__header .tm-eyebrow {
  align-self: center;
}

.tm-learn-path__list li {
  transition: background-color 160ms ease, padding-left 160ms ease, padding-right 160ms ease;
}

.tm-learn-path__list li:hover,
.tm-learn-path__list li:focus-within {
  padding-left: 14px;
  padding-right: 14px;
  background: var(--tm-light-blue);
}

.tm-learn-path--care .tm-learn-path__list li:hover,
.tm-learn-path--care .tm-learn-path__list li:focus-within {
  background: var(--tm-white);
}

.tm-learn-path__arrow {
  transition: background-color 160ms ease, color 160ms ease;
}

.tm-learn-path__arrow:hover,
.tm-learn-path__arrow:focus-visible {
  background: var(--tm-yellow);
  color: var(--tm-black);
}

/* ---------------------------------------------------------
   Board Types — visual index instead of another article list
   --------------------------------------------------------- */
.tm-learn-section--types {
  background: var(--tm-white);
}

.tm-board-types {
  display: grid;
  grid-template-columns: minmax(390px, 0.92fr) minmax(0, 1.08fr);
  border: 2px solid var(--tm-black);
  background: var(--tm-off-white);
}

.tm-board-types__visual {
  min-height: 620px;
  margin: 0;
  overflow: hidden;
  border-right: 1px solid rgba(17, 17, 17, 0.2);
  background: var(--tm-sand);
}

.tm-board-types__visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
  object-position: center top;
}

.tm-board-types__index {
  display: grid;
  align-content: stretch;
}

.tm-board-type-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  gap: 18px;
  align-items: center;
  min-height: 104px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.18);
  background: var(--tm-white);
  transition: background-color 160ms ease;
}

.tm-board-type-item:last-child {
  border-bottom: 0;
}

.tm-board-type-item:hover,
.tm-board-type-item:focus-within {
  background: var(--tm-light-blue);
}

.tm-board-type-item__number {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--tm-blue);
  color: var(--tm-blue);
  font: 700 0.68rem/1 var(--tm-mono-font);
  letter-spacing: 0.08em;
}

.tm-board-type-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-bottom: 6px;
  color: var(--tm-grey);
  font: 600 0.66rem/1.25 var(--tm-mono-font);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tm-board-type-item h3 {
  margin: 0;
  font-size: clamp(1.55rem, 2vw, 2.15rem);
  line-height: 0.98;
}

.tm-board-type-item h3 a {
  color: inherit;
}

.tm-board-type-item p {
  margin: 6px 0 0;
  color: var(--tm-dark-grey);
  font-size: 0.9rem;
  line-height: 1.45;
}

.tm-board-type-item__arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--tm-black);
  color: var(--tm-black);
  transition: background-color 160ms ease;
}

.tm-board-type-item__arrow:hover,
.tm-board-type-item__arrow:focus-visible {
  background: var(--tm-yellow);
}

/* ---------------------------------------------------------
   Design explorer polish
   --------------------------------------------------------- */
.tm-learn-design__grid {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02);
}

.tm-learn-design__tabs button {
  position: relative;
  padding-right: 30px;
}

.tm-learn-design__tabs button::after {
  content: "→";
  position: absolute;
  right: 14px;
  opacity: 0.38;
}

.tm-learn-design__tabs button[aria-selected="true"]::after {
  opacity: 1;
}

/* ---------------------------------------------------------
   All Guides — compact by default, expandable on demand
   --------------------------------------------------------- */
.tm-guide-search {
  background: var(--tm-off-white);
}

.tm-guide-search__controls {
  padding: 18px;
  border: 1px solid rgba(17,17,17,.22);
  background: var(--tm-white);
}

.tm-guide-search__controls input:focus,
.tm-guide-search__controls select:focus {
  outline: 2px solid var(--tm-blue);
  outline-offset: 2px;
}

.tm-guide-search__status {
  display: flex;
  align-items: center;
  min-height: 44px;
}

.tm-guide-search__count {
  margin: 16px 0 12px;
}

.tm-guide-search__results {
  border: 2px solid var(--tm-black);
  background: var(--tm-white);
}

.tm-guide-search-item {
  display: grid;
  grid-template-columns: minmax(150px, 0.34fr) minmax(0, 1fr) 70px;
  gap: clamp(18px, 2.4vw, 34px);
  align-items: center;
  min-height: 94px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(17,17,17,.18);
  transition: background-color 160ms ease;
}

.tm-guide-search-item:last-child {
  border-bottom: 0;
}

.tm-guide-search-item:hover,
.tm-guide-search-item:focus-within {
  background: var(--tm-light-blue);
}

.tm-guide-search-item[hidden] {
  display: none !important;
}

.tm-guide-search-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  color: var(--tm-grey);
  font: 600 0.65rem/1.3 var(--tm-mono-font);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tm-guide-search-item__copy h3 {
  margin: 0;
  font-size: clamp(1.35rem, 1.9vw, 1.9rem);
  line-height: 1;
}

.tm-guide-search-item__copy h3 a {
  color: inherit;
}

.tm-guide-search-item__copy p {
  margin: 7px 0 0;
  color: var(--tm-dark-grey);
  font-size: 0.88rem;
  line-height: 1.45;
}

.tm-guide-search-item__link {
  justify-self: end;
  color: var(--tm-blue);
  font: 700 0.74rem/1 var(--tm-mono-font);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tm-guide-search__more {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.tm-guide-search__more[hidden] {
  display: none !important;
}

.tm-guide-search__empty {
  margin: 0;
  padding: 28px;
  border: 2px solid var(--tm-black);
  border-top: 0;
  background: var(--tm-white);
}

/* ---------------------------------------------------------
   Responsive finishing
   --------------------------------------------------------- */
@media (max-width: 980px) {
  .tm-board-types {
    grid-template-columns: 1fr;
  }

  .tm-board-types__visual {
    min-height: 0;
    aspect-ratio: 16 / 8.5;
    border-right: 0;
    border-bottom: 1px solid rgba(17, 17, 17, 0.2);
  }

  .tm-board-types__visual img {
    min-height: 0;
  }

  .tm-guide-search-item {
    grid-template-columns: 130px minmax(0, 1fr) 60px;
  }
}

@media (max-width: 700px) {
  .tm-learn-path__list li:hover,
  .tm-learn-path__list li:focus-within {
    padding-left: 8px;
    padding-right: 8px;
  }

  .tm-board-types__visual {
    aspect-ratio: 4 / 3;
  }

  .tm-board-type-item {
    grid-template-columns: 38px minmax(0, 1fr) 40px;
    gap: 12px;
    min-height: 0;
    padding: 17px 14px;
  }

  .tm-board-type-item__number {
    width: 34px;
    height: 34px;
  }

  .tm-board-type-item h3 {
    font-size: clamp(1.45rem, 7vw, 1.9rem);
  }

  .tm-board-type-item p {
    font-size: 0.84rem;
  }

  .tm-board-type-item__arrow {
    width: 38px;
    height: 38px;
  }

  .tm-guide-search__controls {
    padding: 14px;
  }

  .tm-guide-search-item {
    grid-template-columns: minmax(0, 1fr) 46px;
    gap: 12px;
    min-height: 0;
    padding: 17px 14px;
  }

  .tm-guide-search-item__meta {
    grid-column: 1 / 2;
    margin-bottom: -4px;
  }

  .tm-guide-search-item__copy {
    grid-column: 1 / 2;
  }

  .tm-guide-search-item__link {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--tm-black);
    color: transparent;
    font-size: 0;
  }

  .tm-guide-search-item__link span {
    color: var(--tm-black);
    font-size: 1.1rem;
  }
}
