/* ══════════════════════════════════════════════════════════════════════════
   /tips/tips.css — the mortgage tips library and the 30 tip pages.

   Self-contained so these pages load fast from Instagram and can't change
   the look of any other page: styles.css is not loaded here. Black canvas,
   bold white type and the LiveLendLA lime (--ll-lime in styles.css) as the
   only accent. Written mobile-first around a 390px viewport.
   ══════════════════════════════════════════════════════════════════════════ */
:root {
  --tp-bg: #000;
  --tp-bg-2: #0b0b0c;
  --tp-card: #121214;
  --tp-card-2: #18181b;
  --tp-line: rgba(255,255,255,.1);
  --tp-line-2: rgba(255,255,255,.16);
  --tp-text: #f5f5f7;
  --tp-body: #c9c9ce;
  --tp-muted: #8e8e93;
  --tp-lime: #CEFE02;
  --tp-lime-hi: #DAFF3A;
  --tp-ink: #0a0f00;
  --tp-radius: 22px;
  --tp-radius-sm: 14px;
  --tp-ease: cubic-bezier(.22,.61,.36,1);
  --tp-max: 1120px;
  --tp-read: 700px;
  --tp-header: 60px;
  --tp-sticky: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--tp-bg);
  color: var(--tp-text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--tp-lime); outline-offset: 3px; border-radius: 6px; }
.tp-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--tp-lime); color: var(--tp-ink); padding: 10px 16px; border-radius: 999px; font-weight: 700; }
.tp-skip:focus { left: 12px; }

.tp-wrap { width: 100%; max-width: var(--tp-max); margin: 0 auto; padding: 0 22px; }
.tp-read { max-width: var(--tp-read); }

/* ── Header ── */
.tp-header {
  position: sticky; top: 0; z-index: 40;
  height: var(--tp-header);
  background: rgba(0,0,0,.78);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--tp-line);
}
.tp-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.tp-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -.02em; font-size: 17px; }
.tp-brand img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; object-position: top; background: #222; }
.tp-header__links { display: flex; align-items: center; gap: 6px; }
.tp-header__link { white-space: nowrap; text-decoration: none; color: var(--tp-body); font-size: 14px; font-weight: 500; padding: 8px 10px; border-radius: 999px; transition: color .2s; }
.tp-header__link:hover { color: #fff; }
.tp-header__link--cta { color: var(--tp-ink); background: var(--tp-lime); font-weight: 700; padding: 8px 14px; }
.tp-header__link--cta:hover { color: var(--tp-ink); background: var(--tp-lime-hi); }
.tp-header__link--hide-sm { display: none; }
@media (min-width: 640px) { .tp-header__link--hide-sm { display: inline-flex; } }
@media (max-width: 419px) {
  .tp-header__link--tips { display: none; }
  .tp-brand { font-size: 16px; }
}

/* ── Buttons ── */
.tp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-size: 16px; font-weight: 700; letter-spacing: -.01em;
  text-decoration: none; cursor: pointer;
  transition: transform .25s var(--tp-ease), background .2s, border-color .2s, color .2s;
}
.tp-btn:hover { transform: translateY(-1px); }
.tp-btn svg { width: 18px; height: 18px; flex: none; }
.tp-btn--lime { background: var(--tp-lime); color: var(--tp-ink); }
.tp-btn--lime:hover { background: var(--tp-lime-hi); }
.tp-btn--ghost { background: transparent; color: #fff; border-color: var(--tp-line-2); }
.tp-btn--ghost:hover { border-color: #fff; }
.tp-btn--white { background: #fff; color: #000; }
.tp-btn--white:hover { background: #e8e8ed; }
.tp-btn--lg { min-height: 58px; font-size: 17px; padding: 0 32px; }
.tp-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.tp-actions .tp-btn { flex: 1 1 200px; }
@media (min-width: 640px) { .tp-actions .tp-btn { flex: 0 0 auto; } }

/* ── Hero ── */
.tp-hero { padding: 54px 0 46px; border-bottom: 1px solid var(--tp-line); position: relative; overflow: hidden; }
.tp-hero::before {
  content: ""; position: absolute; inset: auto -20% 55% auto; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(206,254,2,.13), rgba(206,254,2,0) 65%);
  pointer-events: none;
}
.tp-crumbs { font-size: 13px; color: var(--tp-muted); margin: 0 0 26px; }
.tp-crumbs a { color: var(--tp-muted); text-decoration: none; }
.tp-crumbs a:hover { color: #fff; }
.tp-crumbs span { margin: 0 7px; opacity: .6; }
.tp-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--tp-lime); margin: 0 0 18px;
}
.tp-label::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.tp-h1 {
  margin: 0; font-weight: 800; letter-spacing: -.045em; line-height: 1.02;
  font-size: clamp(40px, 11vw, 88px); max-width: 13.5em; text-wrap: balance;
}
.tp-intro { margin: 22px 0 0; font-size: clamp(18px, 4.6vw, 23px); line-height: 1.45; color: var(--tp-body); max-width: 30em; font-weight: 450; letter-spacing: -.012em; }
.tp-hero .tp-actions { margin-top: 32px; }
.tp-byline { display: flex; align-items: center; gap: 12px; margin-top: 34px; font-size: 14px; color: var(--tp-muted); }
.tp-byline img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: top; background: #222; }
.tp-byline strong { color: #fff; font-weight: 600; display: block; }

/* ── Article sections ── */
.tp-article { padding: 8px 0 0; }
.tp-sec { padding: 56px 0; border-bottom: 1px solid var(--tp-line); }
.tp-sec:last-child { border-bottom: 0; }
.tp-sec__num { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--tp-muted); margin: 0 0 12px; }
.tp-sec__num b { color: var(--tp-lime); font-weight: 700; }
.tp-h2 { margin: 0 0 22px; font-size: clamp(28px, 6.8vw, 42px); line-height: 1.1; letter-spacing: -.035em; font-weight: 750; text-wrap: balance; }
.tp-prose { color: var(--tp-body); }
.tp-prose > *:first-child { margin-top: 0; }
.tp-prose p { margin: 0 0 18px; }
.tp-prose strong { color: #fff; font-weight: 650; }
.tp-prose em { color: #fff; }
.tp-prose h3 { color: #fff; font-size: 20px; letter-spacing: -.02em; line-height: 1.3; margin: 34px 0 10px; font-weight: 700; }
.tp-prose ul, .tp-prose ol { margin: 0 0 20px; padding-left: 0; list-style: none; }
.tp-prose li { position: relative; padding-left: 26px; margin: 0 0 11px; }
.tp-prose ul > li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--tp-lime); }
.tp-prose ol { counter-reset: tp; }
.tp-prose ol > li { counter-increment: tp; padding-left: 34px; }
.tp-prose ol > li::before { content: counter(tp); position: absolute; left: 0; top: .15em; width: 22px; height: 22px; border-radius: 50%; background: var(--tp-card-2); border: 1px solid var(--tp-line-2); color: var(--tp-lime); font-size: 12px; font-weight: 700; display: grid; place-items: center; line-height: 1; }
.tp-prose a { color: var(--tp-lime); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.tp-prose a:hover { color: var(--tp-lime-hi); }

.tp-prose .tp-checklist li { padding-left: 32px; }
.tp-prose .tp-checklist li::before {
  content: ""; left: 0; top: .28em; width: 20px; height: 20px; border-radius: 6px;
  background: rgba(206,254,2,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 6.5' fill='none' stroke='%23CEFE02' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
  border: 1px solid rgba(206,254,2,.35);
}

.tp-figures { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin: 26px 0; }
@media (min-width: 640px) { .tp-figures { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }
.tp-figure { background: var(--tp-card); border: 1px solid var(--tp-line); border-radius: var(--tp-radius-sm); padding: 16px 16px 18px; }
.tp-figure span { display: block; font-size: 12.5px; color: var(--tp-muted); line-height: 1.35; margin-bottom: 8px; }
.tp-figure strong { display: block; font-size: clamp(21px, 5.4vw, 28px); letter-spacing: -.03em; line-height: 1.1; color: #fff; font-weight: 750; font-variant-numeric: tabular-nums; }

.tp-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 24px 0; border: 1px solid var(--tp-line); border-radius: var(--tp-radius-sm); background: var(--tp-card); }
.tp-table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; min-width: 100%; }
.tp-table th, .tp-table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--tp-line); vertical-align: top; }
.tp-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--tp-muted); font-weight: 650; background: var(--tp-card-2); line-height: 1.35; }
.tp-table td { color: var(--tp-body); }
.tp-table td + td, .tp-table th + th { text-align: right; }
.tp-table td + td { white-space: nowrap; }
@media (max-width: 479px) {
  .tp-table { font-size: 14px; }
  .tp-table th, .tp-table td { padding: 11px 12px; }
  .tp-table td + td { white-space: normal; }
}
.tp-table tr:last-child td { border-bottom: 0; }
.tp-table .tp-total td { color: #fff; font-weight: 700; background: rgba(206,254,2,.07); }
.tp-table .tp-total td:last-child { color: var(--tp-lime); }

.tp-prose .tp-assume { font-size: 14px; line-height: 1.55; color: var(--tp-muted); border-left: 2px solid var(--tp-line-2); padding-left: 14px; }
.tp-callout { margin: 26px 0; padding: 20px 22px; border-radius: var(--tp-radius-sm); background: rgba(206,254,2,.08); border: 1px solid rgba(206,254,2,.28); }
.tp-callout p { margin: 0 0 10px; color: #fff; }
.tp-callout p:last-child { margin-bottom: 0; }

/* Stacked tables on phones: one card per row */
@media (max-width: 559px) {
  .tp-table-wrap--stack { border: 0; background: transparent; overflow: visible; }
  .tp-table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tp-table--stack, .tp-table--stack tbody, .tp-table--stack tr, .tp-table--stack td { display: block; width: 100%; }
  .tp-table--stack tr { background: var(--tp-card); border: 1px solid var(--tp-line); border-radius: var(--tp-radius-sm); padding: 6px 0; margin-bottom: 10px; }
  .tp-table--stack td { display: flex; justify-content: space-between; gap: 16px; padding: 8px 16px; border: 0; text-align: right; white-space: normal; }
  .tp-table--stack td::before { content: attr(data-label); color: var(--tp-muted); font-size: 13px; text-align: left; flex: 0 1 50%; }
  .tp-table--stack td:first-child { display: block; text-align: left; color: #fff; font-weight: 700; font-size: 15.5px; padding-bottom: 4px; }
  .tp-table--stack td:first-child::before { content: none; }
  .tp-table--stack td[data-blank] { display: none; }
  .tp-table--stack .tp-total { border-color: rgba(206,254,2,.4); background: rgba(206,254,2,.07); }
  .tp-table--stack .tp-total td { background: transparent; }
}

/* Example section sits on a card so the numbers read as a worked example */
.tp-sec--example .tp-panel { background: var(--tp-bg-2); border: 1px solid var(--tp-line); border-radius: var(--tp-radius); padding: 24px 14px 6px; }
@media (min-width: 640px) { .tp-sec--example .tp-panel { padding: 34px 34px 14px; } }

/* Overlook section: the most valuable part, marked with the accent */
.tp-sec--overlook .tp-sec__num b, .tp-sec--overlook .tp-sec__num { color: var(--tp-lime); }

/* Approach: Derek's voice */
.tp-quote { margin: 0 0 30px; padding: 0; border: 0; }
.tp-quote p { margin: 0; font-size: clamp(23px, 5.8vw, 32px); line-height: 1.25; letter-spacing: -.025em; font-weight: 650; color: #fff; text-wrap: balance; }
.tp-quote p::before { content: "“"; color: var(--tp-lime); }
.tp-quote p::after { content: "”"; color: var(--tp-lime); }
.tp-quote footer { display: flex; align-items: center; gap: 12px; margin-top: 18px; font-size: 14px; color: var(--tp-muted); }
.tp-quote footer img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; object-position: top; background: #222; }
.tp-quote footer strong { display: block; color: #fff; font-weight: 600; }

/* ── Get pre-approved band ── */
.tp-pa { padding: 22px 0 64px; }
.tp-pa__card {
  background: var(--tp-lime); color: var(--tp-ink); border-radius: 28px;
  padding: 34px 24px; position: relative; overflow: hidden;
}
@media (min-width: 640px) { .tp-pa__card { padding: 52px 52px; } }
.tp-pa__eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; margin: 0 0 14px; opacity: .7; }
.tp-pa__title { margin: 0 0 14px; font-size: clamp(30px, 7.6vw, 50px); line-height: 1.04; letter-spacing: -.04em; font-weight: 800; max-width: 14em; text-wrap: balance; }
.tp-pa__text { margin: 0 0 26px; font-size: 17px; line-height: 1.55; max-width: 34em; color: rgba(10,15,0,.78); }
.tp-pa .tp-btn--dark { background: #000; color: #fff; }
.tp-pa .tp-btn--dark:hover { background: #1d1d1f; }
.tp-pa .tp-btn--line { background: transparent; color: var(--tp-ink); border-color: rgba(10,15,0,.35); }
.tp-pa .tp-btn--line:hover { border-color: var(--tp-ink); }
.tp-pa__fine { margin: 18px 0 0; font-size: 13px; color: rgba(10,15,0,.62); }

/* ── Related ── */
.tp-related { padding: 64px 0; border-top: 1px solid var(--tp-line); }
.tp-related__title { font-size: clamp(26px, 6vw, 36px); letter-spacing: -.03em; line-height: 1.1; margin: 0 0 26px; font-weight: 750; }
.tp-related__sub { font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--tp-muted); margin: 40px 0 14px; }
.tp-related__sub:first-of-type { margin-top: 0; }
.tp-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .tp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .tp-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.tp-link-card {
  display: flex; flex-direction: column; gap: 6px; text-decoration: none;
  background: var(--tp-card); border: 1px solid var(--tp-line); border-radius: var(--tp-radius-sm);
  padding: 20px 20px 22px; transition: border-color .2s, background .2s, transform .25s var(--tp-ease);
}
.tp-link-card:hover { border-color: rgba(206,254,2,.45); background: var(--tp-card-2); transform: translateY(-2px); }
.tp-link-card__kicker { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--tp-lime); }
.tp-link-card__title { font-size: 18px; line-height: 1.3; font-weight: 700; letter-spacing: -.02em; color: #fff; }
.tp-link-card__desc { font-size: 14.5px; line-height: 1.5; color: var(--tp-muted); }
.tp-link-card__go { margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: 650; color: #fff; }

.tp-sources { margin-top: 44px; padding: 22px; border-radius: var(--tp-radius-sm); border: 1px solid var(--tp-line); }
.tp-sources h2 { font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--tp-muted); margin: 0 0 12px; font-weight: 700; }
.tp-sources ul { margin: 0; padding: 0; list-style: none; }
.tp-sources li { font-size: 14.5px; line-height: 1.5; margin: 0 0 8px; }
.tp-sources a { color: var(--tp-body); text-underline-offset: 3px; }
.tp-sources a:hover { color: #fff; }
.tp-sources p { margin: 12px 0 0; font-size: 13px; color: var(--tp-muted); line-height: 1.55; }

/* ── Final CTA ── */
.tp-final { padding: 84px 0 90px; text-align: center; border-top: 1px solid var(--tp-line); background: radial-gradient(ellipse 80% 70% at 50% 0%, rgba(206,254,2,.10), rgba(0,0,0,0) 70%); }
.tp-final__title { margin: 0 auto 16px; font-size: clamp(36px, 9vw, 68px); line-height: 1.02; letter-spacing: -.045em; font-weight: 800; max-width: 12em; text-wrap: balance; }
.tp-final__text { margin: 0 auto 34px; color: var(--tp-body); font-size: 18px; max-width: 30em; }
.tp-final .tp-actions { justify-content: center; max-width: 720px; margin: 0 auto; }
.tp-final__contact { margin-top: 26px; font-size: 14px; color: var(--tp-muted); }
.tp-final__contact a { color: #fff; text-decoration: none; }

/* ── Footer ── */
.tp-footer { border-top: 1px solid var(--tp-line); padding: 44px 0 40px; font-size: 13.5px; color: var(--tp-muted); line-height: 1.6; }
.tp-footer__top { display: flex; flex-wrap: wrap; gap: 22px 40px; justify-content: space-between; align-items: flex-start; margin-bottom: 26px; }
.tp-footer__brand { display: flex; align-items: center; gap: 14px; }
.tp-footer__logo { width: 52px; height: 52px; border-radius: 50%; filter: invert(1); background: #fff; }
.tp-footer__brand strong { display: block; color: #fff; font-size: 15px; }
.tp-footer__links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.tp-footer__links a { color: var(--tp-body); text-decoration: none; }
.tp-footer__links a:hover { color: #fff; }
.tp-footer__legal p { margin: 0 0 10px; }
.tp-footer__legal a { color: var(--tp-body); }
.tp-footer details { margin-top: 10px; }
.tp-footer summary { cursor: pointer; color: var(--tp-body); font-weight: 600; padding: 6px 0; }

/* ── Mobile sticky bar: Rates | Text Me ── */
.tp-sticky { display: none; }
@media (max-width: 767px) {
  body.has-tp-sticky { padding-bottom: calc(var(--tp-sticky) + env(safe-area-inset-bottom, 0px)); }
  .tp-sticky {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
    background: rgba(0,0,0,.88);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    backdrop-filter: saturate(180%) blur(18px);
    border-top: 1px solid var(--tp-line);
    transition: transform .3s var(--tp-ease), opacity .3s;
  }
  .tp-sticky.is-hidden { transform: translateY(110%); opacity: 0; pointer-events: none; }
  .tp-sticky a {
    display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px;
    border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 15.5px; letter-spacing: -.01em;
  }
  .tp-sticky svg { width: 17px; height: 17px; }
  .tp-sticky__rates { background: var(--tp-card-2); color: #fff; border: 1px solid var(--tp-line-2); }
  .tp-sticky__text { background: var(--tp-lime); color: var(--tp-ink); }
}

/* ══ Library (/tips) ══ */
.tp-lib-hero { padding: 54px 0 40px; position: relative; overflow: hidden; }
.tp-lib-hero::before {
  content: ""; position: absolute; right: -180px; top: -200px; width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(206,254,2,.14), rgba(206,254,2,0) 65%); pointer-events: none;
}
.tp-lib-hero .tp-h1 { font-size: clamp(42px, 11.5vw, 92px); }
.tp-featured {
  margin: 38px 0 0; background: var(--tp-card); border: 1px solid var(--tp-line); border-radius: 28px;
  padding: 26px 22px 26px; position: relative; overflow: hidden;
}
@media (min-width: 768px) { .tp-featured { padding: 44px 46px; } }
.tp-featured::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--tp-lime); }
.tp-featured__top { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-bottom: 18px; }
.tp-pill { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 12px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; background: var(--tp-lime); color: var(--tp-ink); }
.tp-pill--dark { background: var(--tp-card-2); color: var(--tp-body); border: 1px solid var(--tp-line-2); letter-spacing: .06em; }
.tp-pill__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--tp-ink); animation: tp-pulse 2s infinite; }
@keyframes tp-pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .tp-pill__dot { animation: none; } html { scroll-behavior: auto; } .tp-btn, .tp-link-card, .tp-card { transition: none; } }
.tp-featured__title { margin: 0 0 12px; font-size: clamp(30px, 7.6vw, 54px); line-height: 1.04; letter-spacing: -.04em; font-weight: 800; text-wrap: balance; }
.tp-featured__title a { text-decoration: none; }
.tp-featured__intro { margin: 0 0 26px; color: var(--tp-body); font-size: 17.5px; max-width: 36em; }
.tp-featured .tp-btn--lime { width: 100%; }
@media (min-width: 640px) { .tp-featured .tp-btn--lime { width: auto; } }

.tp-lib { padding: 30px 0 70px; }
.tp-lib__bar { position: sticky; top: var(--tp-header); z-index: 30; background: rgba(0,0,0,.9); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); padding: 14px 0 12px; margin-bottom: 18px; border-bottom: 1px solid var(--tp-line); }
.tp-search { position: relative; }
.tp-search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--tp-muted); pointer-events: none; }
.tp-search input {
  width: 100%; height: 50px; border-radius: 999px; border: 1px solid var(--tp-line-2); background: var(--tp-card);
  color: #fff; font: inherit; font-size: 16px; padding: 0 18px 0 46px; outline: none; transition: border-color .2s;
}
.tp-search input::placeholder { color: var(--tp-muted); }
.tp-search input:focus { border-color: var(--tp-lime); }
.tp-chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tp-chips::-webkit-scrollbar { display: none; }
.tp-chip {
  flex: none; height: 36px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--tp-line-2);
  background: transparent; color: var(--tp-body); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}
.tp-chip:hover { border-color: #fff; color: #fff; }
.tp-chip[aria-pressed="true"] { background: #fff; color: #000; border-color: #fff; }
.tp-lib__count { font-size: 13px; color: var(--tp-muted); margin: 0 0 14px; }
.tp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .tp-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .tp-list { grid-template-columns: repeat(3, 1fr); } }
.tp-card[hidden] { display: none; }
.tp-card a {
  display: grid; grid-template-columns: 52px 1fr; gap: 4px 14px; height: 100%; text-decoration: none;
  background: var(--tp-card); border: 1px solid var(--tp-line); border-radius: var(--tp-radius-sm);
  padding: 18px 18px 20px; transition: border-color .2s, background .2s, transform .25s var(--tp-ease);
}
.tp-card a:hover { border-color: rgba(206,254,2,.45); background: var(--tp-card-2); transform: translateY(-2px); }
.tp-card__num { grid-row: span 3; font-size: 30px; font-weight: 800; letter-spacing: -.05em; line-height: 1; color: var(--tp-lime); font-variant-numeric: tabular-nums; padding-top: 2px; }
.tp-card__cat { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--tp-muted); }
.tp-card__title { font-size: 18px; font-weight: 700; line-height: 1.28; letter-spacing: -.02em; color: #fff; }
.tp-card__desc { font-size: 14.5px; line-height: 1.5; color: var(--tp-muted); }
.tp-card.is-today a { border-color: var(--tp-lime); box-shadow: 0 0 0 1px var(--tp-lime) inset; }
.tp-card__today { display: none; }
.tp-card.is-today .tp-card__today { display: inline-block; margin-left: 8px; color: var(--tp-lime); }
.tp-empty { padding: 40px 0; text-align: center; color: var(--tp-muted); }
.tp-empty[hidden] { display: none; }
.tp-lib-contact { padding: 70px 0; border-top: 1px solid var(--tp-line); }
.tp-lib-contact__grid { display: grid; gap: 30px; align-items: center; }
@media (min-width: 860px) { .tp-lib-contact__grid { grid-template-columns: 1.2fr 1fr; } }
.tp-lib-contact .tp-h2 { margin-bottom: 14px; }
.tp-lib-contact p { color: var(--tp-body); margin: 0 0 24px; }
.tp-profile { display: flex; align-items: center; gap: 16px; background: var(--tp-card); border: 1px solid var(--tp-line); border-radius: var(--tp-radius); padding: 20px; }
.tp-profile img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; object-position: top; background: #222; flex: none; }
.tp-profile strong { display: block; font-size: 18px; color: #fff; }
.tp-profile span { display: block; font-size: 14px; color: var(--tp-muted); line-height: 1.5; }
