@charset "utf-8";
/* TemplateMo Links */

html, body { overflow-x: clip; }

.tm-links2 {
  /* TemplateMo brand tokens */
  --tm-ink: #1e2733;
  --tm-ink-soft: #5a6472;
  --tm-ink-faint: #9aa3af;
  --tm-line: #e8ebf0;
  --tm-blue: #2b7fc3;
  --tm-blue-deep: #1c649e;
  --tm-navy: #0e4d80;
  --tm-green: #48a23f;
  --tm-lime: #a3c012;
  --tm-pink: #c9418c;
  --tm-pink-deep: #a3306e;

  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--tm-ink);
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 24px 72px 0;
  box-sizing: border-box;
}

.tm-links2 *, .tm-links2 *::before, .tm-links2 *::after { box-sizing: border-box; }

/* Shield against site-wide a:hover underline rules */
.tm-links2 .tm2-fcard,
.tm-links2 .tm2-fcard:hover,
.tm-links2 .tm2-fcard:focus,
.tm-links2 .tm2-list a,
.tm-links2 .tm2-list a:hover,
.tm-links2 .tm2-list a:focus {
  text-decoration: none;
}

/* Intro block */
.tm2-intro { max-width: 760px; margin-bottom: 40px; }

.tm2-intro h1 {
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.tm2-intro h1 .tm2-hl-green { color: var(--tm-green); }
.tm2-intro h1 .tm2-hl-blue { color: var(--tm-blue); }

.tm2-intro p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--tm-ink-soft);
  margin: 0;
}

.tm2-intro a {
  color: var(--tm-blue-deep);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

/* 3-column layout */
.tm2-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 350px;
  gap: 44px;
  align-items: start;
}

.tm2-col {
  display: flex;
  flex-direction: column;
  gap: 34px;
  min-width: 0;
}

/* Compact category lists */
.tm2-cat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.tm2-cat-head h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--cat, var(--tm-ink));
}

/* Thin color line before category title */
.tm2-cat-head h2::before {
  content: "";
  width: 20px;
  height: 3px;
  border-radius: 2px;
  background: var(--cat, var(--tm-blue));
}

.tm2-cat-count {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--tm-ink-faint);
  background: #f5f6f8;
  border-radius: 999px;
  padding: 2px 9px;
}

/* Compact link rows */
.tm2-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--tm-line);
}

.tm2-list li { border-bottom: 1px solid var(--tm-line); }

.tm2-list a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 4px 10px 2px;
  font-size: 15px;
  font-weight: 500;
  color: var(--tm-ink);
  text-decoration: none;
  transition: color 0.16s ease, padding-left 0.16s ease;
}

/* Color dot before each link */
.tm2-list a::before {
  content: "";
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cat, var(--tm-blue));
  opacity: 0.55;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.tm2-list a:hover {
  color: var(--cat, var(--tm-blue));
  padding-left: 8px;
}

.tm2-list a:hover::before {
  opacity: 1;
  transform: scale(1.25);
}

.tm2-list a:focus-visible {
  outline: 2px solid var(--cat, var(--tm-blue));
  outline-offset: 2px;
  border-radius: 4px;
}

/* Featured column: deep blue brand panel */
.tm2-featured {
  position: sticky;
  top: 24px;
  overflow: hidden;
  border-radius: 18px;
  padding: 28px 24px 24px;
  background: linear-gradient(160deg, #2489cf 0%, #1268a8 55%, var(--tm-navy) 100%);
  box-shadow: 0 18px 40px rgba(14, 77, 128, 0.28);
}

/* Floating rounded squares echoing the TemplateMo header */
.tm2-featured::before,
.tm2-featured::after {
  content: "";
  position: absolute;
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  transform: rotate(24deg);
  pointer-events: none;
}

.tm2-featured::before {
  width: 130px;
  height: 130px;
  top: -44px;
  right: -34px;
  background: rgba(255, 255, 255, 0.05);
}

.tm2-featured::after {
  width: 90px;
  height: 90px;
  bottom: 60px;
  left: -40px;
}

.tm2-featured-head {
  position: relative;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.tm2-featured-head svg {
  width: 17px;
  height: 17px;
  color: var(--tm-lime);
  flex-shrink: 0;
}

.tm2-featured-head h2 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin: 0;
}

.tm2-featured-sub {
  position: relative;
  font-size: 12.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 20px;
}

.tm2-featured-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Featured cards: bright cards floating on the blue panel */
.tm2-fcard {
  display: block;
  position: relative;
  text-decoration: none;
  background: #ffffff;
  border-radius: 13px;
  padding: 13px 14px 12px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Vertical color line, alternating side and color per card */
.tm2-fcard::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  width: 4px;
  border-radius: 0;
  background: linear-gradient(180deg, var(--fa), var(--fb));
}

/* Odd cards: green line on the left */
.tm2-fcard:nth-child(odd) {
  --fa: var(--tm-green);
  --fb: #83c744;
  --fdeep: #37822c;
}

.tm2-fcard:nth-child(odd)::before { left: 0; }

/* Even cards: pink line on the right */
.tm2-fcard:nth-child(even) {
  --fa: var(--tm-pink);
  --fb: #e07ab4;
  --fdeep: var(--tm-pink-deep);
}

.tm2-fcard:nth-child(even)::before { right: 0; }

.tm2-fcard:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(7, 42, 70, 0.35);
}

.tm2-fcard:focus-visible {
  outline: 3px solid var(--tm-lime);
  outline-offset: 2px;
}

.tm2-fcard-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
}

/* Title and URL stacked beside the badge */
.tm2-fcard-id {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.tm2-fcard-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--tm-ink);
  line-height: 1.25;
}

/* Monogram chip with the site's initial */
.tm2-fcard-badge {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, var(--fa), var(--fb));
}

.tm2-fcard-url {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--fdeep);
  margin-top: 1px;
  word-break: break-all;
}

.tm2-fcard-desc {
  display: block;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--tm-ink-soft);
}

/* CTA footer inside the panel */
.tm2-featured-cta {
  position: relative;
  margin-top: 18px;
  padding: 13px 15px;
  border: 1px dashed rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
}

.tm2-featured-cta a {
  color: var(--tm-lime);
  font-weight: 800;
  text-decoration: none;
}

.tm2-featured-cta a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 1020px) {
  .tm2-layout { grid-template-columns: 1fr 1fr; gap: 36px; }
  .tm2-featured {
	  grid-column: 1 / -1;
	  grid-row: 1;
	  position: relative;   /* was static: this caged the squares again */
	  top: 0;               /* cancels the sticky-era 24px, kills the overlap */
	  overflow: hidden;     /* restated here so no site rule can uncage them */
	}
  .tm2-featured-list { display: grid; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .tm-links2 { padding: 32px 16px 56px; }
  .tm2-intro h1 { font-size: 26px; }
  .tm2-layout { grid-template-columns: 1fr; }
  .tm2-featured-list { grid-template-columns: 1fr; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .tm2-list a, .tm2-list a::before, .tm2-fcard { transition: none; }
  .tm2-fcard:hover { transform: none; }
  .tm2-list a:hover { padding-left: 2px; }
}

/* TM Links hardening: win against container-scoped site rules */
.tm-links2.tm-links2 .tm2-intro h1 { font-size: 34px; margin: 0 0 12px; line-height: 1.4; }
.tm-links2.tm-links2 .tm2-intro p { font-size: 15px; line-height: 1.8; }
.tm-links2.tm-links2 .tm2-cat-head h2 { font-size: 18.5px; margin: 0; }
.tm-links2.tm-links2 .tm2-list a { font-size: 15px; }
.tm-links2.tm-links2 .tm2-fcard-title { font-size: 15px; }
.tm-links2.tm-links2 .tm2-fcard-desc { font-size: 14px; }
.tm-links2.tm-links2 .tm2-featured-head h2 { font-size: 19px; margin: 0; }