/* =====================================================================
   TeacherPD Australia - design system (v2, Nov 2026)
   Palette is drawn from the logo: night sky, indigo outline,
   circuit blue, orchid traces, with Premier gold kept as the
   partner signature colour.
   All classes are prefixed tp- so they can sit beside old page CSS.
   ===================================================================== */

:root {
  --night: #0b1030;
  --night-2: #141b48;
  --night-3: #1d2660;
  --indigo: #4a2fd0;
  --indigo-ink: #3a22b0;
  --circuit: #4c9bea;
  --circuit-soft: #e6f1fd;
  --orchid: #c978b8;
  --orchid-soft: #f8eaf5;
  --gold: #f5c044;
  --gold-deep: #c8920a;
  --gold-soft: #fff6dc;
  --leaf: #17865a;
  --leaf-soft: #e3f5ec;
  --paper: #f6f5fb;
  --white: #ffffff;
  --text: #171a36;
  --muted: #5c6184;
  --line: #e3e1ef;
  --line-dark: rgba(255,255,255,0.12);
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(16,20,60,.05), 0 6px 22px rgba(16,20,60,.06);
  --shadow-lift: 0 2px 4px rgba(16,20,60,.06), 0 16px 40px rgba(16,20,60,.12);
  --font-display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1200px;
}

/* ---------- base ---------- */
.tp-body, .tp-body * { box-sizing: border-box; }
.tp-body { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; }
.tp-body img { max-width: 100%; }
.tp-body h1, .tp-body h2, .tp-body h3, .tp-body h4 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.015em; margin: 0; color: inherit; }
.tp-body p { margin: 0; }
:where(.tp-body) a { color: inherit; }
.tp-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.tp-skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--night); padding: 8px 14px; z-index: 999; font-weight: 700; }
.tp-skip:focus { left: 10px; }
.tp-body :focus-visible { outline: 3px solid var(--circuit); outline-offset: 2px; border-radius: 6px; }

.tp-eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--indigo); }
.tp-eyebrow::before { content: ''; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.tp-dark .tp-eyebrow { color: var(--circuit); }
.tp-h2 { font-size: clamp(1.6rem, 2.6vw, 2.15rem); margin: .45rem 0 .5rem; }
.tp-sub { color: var(--muted); max-width: 640px; font-size: 1.02rem; }
.tp-dark .tp-sub { color: rgba(255,255,255,.72); }
.tp-section { padding: 72px 0; }
.tp-section.tight { padding: 52px 0; }
.tp-section.white { background: var(--white); }
.tp-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 28px; }
.tp-link { color: var(--indigo); font-weight: 600; text-decoration: none; white-space: nowrap; }
.tp-link:hover { text-decoration: underline; }

/* ---------- buttons ---------- */
.tp-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .78rem 1.35rem; border-radius: 999px; font-weight: 650; font-size: .95rem; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; font-family: var(--font-body); line-height: 1.2; }
.tp-btn:hover { transform: translateY(-1px); }
.tp-btn-gold { background: var(--gold); color: var(--night); }
.tp-btn-gold:hover { background: #ffcd55; box-shadow: 0 8px 22px rgba(245,192,68,.35); }
.tp-btn-indigo { background: var(--indigo); color: #fff; }
.tp-btn-indigo:hover { background: var(--indigo-ink); }
.tp-btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.tp-btn-ghost:hover { background: rgba(255,255,255,.08); }
.tp-btn-line { background: #fff; color: var(--text); border-color: var(--line); }
.tp-btn-line:hover { border-color: var(--indigo); color: var(--indigo); }
.tp-btn-sm { padding: .5rem .95rem; font-size: .86rem; }

/* ---------- header ---------- */
.tp-header { position: sticky; top: 0; z-index: 60; background: rgba(11,16,48,.94); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line-dark); color: #fff; }
.tp-header-inner { display: flex; align-items: center; gap: 20px; height: 68px; }
.tp-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.22rem; letter-spacing: -0.02em; white-space: nowrap; }
.tp-brand .tp-mark { width: 40px; height: 40px; flex-shrink: 0; overflow: visible; }
.tp-brand:hover .tp-mark { filter: drop-shadow(0 0 8px rgba(76,155,234,.55)); }
.tp-brand b { color: var(--gold); font-weight: 800; }
.tp-brand small { font-family: var(--font-body); font-weight: 500; font-size: .78rem; color: rgba(255,255,255,.6); letter-spacing: .02em; margin-left: 2px; }
.tp-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.tp-nav > a:not(.tp-btn), .tp-nav .tp-dd > button { color: rgba(255,255,255,.86); text-decoration: none; font-weight: 550; font-size: .92rem; padding: .55rem .8rem; border-radius: 8px; background: none; border: 0; cursor: pointer; font-family: var(--font-body); display: inline-flex; align-items: center; gap: .3rem; }
.tp-nav > a:not(.tp-btn):hover, .tp-nav .tp-dd > button:hover, .tp-nav .tp-dd.open > button { color: #fff; background: rgba(255,255,255,.08); }
.tp-nav > a[aria-current="page"] { color: var(--gold); }
.tp-dd { position: relative; }
.tp-dd > button svg { width: 12px; height: 12px; transition: transform .15s; }
.tp-dd.open > button svg { transform: rotate(180deg); }
.tp-menu { position: absolute; top: calc(100% + 10px); right: -40px; background: #fff; color: var(--text); border-radius: 16px; box-shadow: var(--shadow-lift); border: 1px solid var(--line); padding: 18px; display: none; min-width: 300px; }
.tp-dd.open .tp-menu { display: block; }
.tp-menu.mega { width: min(760px, 92vw); display: none; grid-template-columns: 1fr 1fr; gap: 6px 28px; }
.tp-dd.open .tp-menu.mega { display: grid; }
.tp-menu h4 { font-family: var(--font-body); font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin: 2px 0 8px; }
.tp-menu .cols { columns: 2; column-gap: 18px; }
.tp-menu a { display: block; text-decoration: none; color: var(--text); font-size: .9rem; padding: .32rem .5rem; border-radius: 7px; break-inside: avoid; }
.tp-menu a:hover { background: var(--paper); color: var(--indigo); }
.tp-menu a small { display: block; color: var(--muted); font-size: .76rem; }
.tp-menu .all { margin-top: 8px; font-weight: 650; color: var(--indigo); }
.tp-nav .tp-btn { margin-left: 10px; }
.tp-burger { display: none; margin-left: auto; background: none; border: 1px solid var(--line-dark); color: #fff; border-radius: 10px; width: 44px; height: 40px; cursor: pointer; }
.tp-burger svg { width: 22px; height: 22px; }

@media (max-width: 980px) {
  .tp-burger { display: inline-flex; align-items: center; justify-content: center; }
  .tp-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--night); flex-direction: column; align-items: stretch; padding: 10px 16px 22px; gap: 2px; max-height: calc(100vh - 68px); overflow-y: auto; border-bottom: 1px solid var(--line-dark); }
  .tp-header.nav-open .tp-nav { display: flex; }
  .tp-nav > a:not(.tp-btn), .tp-nav .tp-dd > button { width: 100%; justify-content: space-between; padding: .8rem .6rem; font-size: 1rem; }
  .tp-menu, .tp-menu.mega { position: static; box-shadow: none; border: 0; width: auto; min-width: 0; background: rgba(255,255,255,.04); color: #fff; padding: 10px; margin: 0 0 8px; }
  .tp-dd.open .tp-menu.mega { display: block; }
  .tp-menu a { color: rgba(255,255,255,.88); }
  .tp-menu a:hover { background: rgba(255,255,255,.06); color: #fff; }
  .tp-menu a small, .tp-menu h4 { color: rgba(255,255,255,.5); }
  .tp-menu h4 { margin-top: 10px; }
  .tp-nav .tp-btn { margin: 10px 0 0; }
}

/* ---------- circuit motif ---------- */
.tp-dark { background: var(--night); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.tp-circuit { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .55; }
.tp-glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(80px); pointer-events: none; }

/* ---------- hero ---------- */
.tp-hero { padding: 76px 0 84px; }
.tp-hero-grid > * { min-width: 0; }
.tp-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.tp-hero h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); font-weight: 800; letter-spacing: -0.03em; margin: 14px 0 18px; }
.tp-hero h1 em { font-style: normal; color: var(--gold); }
.tp-hero .lead { font-size: 1.14rem; color: rgba(255,255,255,.78); max-width: 560px; margin-bottom: 28px; }
.tp-search { display: flex; background: #fff; border-radius: 999px; padding: 6px; box-shadow: 0 18px 50px rgba(0,0,0,.35); max-width: 620px; }
.tp-search input { flex: 1; border: 0; background: transparent; padding: .8rem 1.1rem; font-size: 1.02rem; color: var(--text); font-family: var(--font-body); min-width: 0; }
.tp-search input:focus { outline: none; }
.tp-search button { flex-shrink: 0; }
.tp-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tp-quick a { font-size: .84rem; color: rgba(255,255,255,.85); text-decoration: none; padding: .36rem .8rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.04); }
.tp-quick a:hover { border-color: var(--gold); color: var(--gold); }
.tp-stats { display: flex; gap: 34px; margin-top: 38px; flex-wrap: wrap; }
.tp-stats div { display: flex; flex-direction: column; }
.tp-stats strong { font-family: var(--font-display); font-size: 1.9rem; font-weight: 800; color: #fff; line-height: 1; }
.tp-stats span { font-size: .8rem; color: rgba(255,255,255,.6); margin-top: 6px; }
.tp-hero-art { position: relative; aspect-ratio: 1 / 1; max-width: 460px; justify-self: end; width: 100%; }
.tp-hero-art .map { position: absolute; left: 6%; top: 6%; width: 88%; height: 88%; overflow: visible; filter: drop-shadow(0 0 24px rgba(76,155,234,.28)); }
.tp-trace { stroke-dasharray: 1; stroke-dashoffset: 1; animation: tp-draw 1.4s cubic-bezier(.6,0,.2,1) forwards; }
@keyframes tp-draw { to { stroke-dashoffset: 0; } }
.tp-ping { transform-box: fill-box; transform-origin: center; opacity: 0; animation: tp-ping 4.2s ease-out infinite; }
@keyframes tp-ping { 0% { transform: scale(1); opacity: .9; } 45%, 100% { transform: scale(3.2); opacity: 0; } }
.tp-hubglow { transform-box: fill-box; transform-origin: center; animation: tp-breathe 3.6s ease-in-out infinite; }
@keyframes tp-breathe { 50% { transform: scale(1.25); opacity: .6; } }
.tp-float { position: absolute; background: rgba(20,27,72,.82); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 14px; padding: 11px 13px; width: 220px; box-shadow: 0 18px 40px rgba(0,0,0,.35); font-size: .8rem; color: rgba(255,255,255,.75); text-decoration: none; transition: transform .2s; }
.tp-float:hover { transform: translateY(-3px); }
.tp-float b { display: block; color: #fff; font-size: .9rem; line-height: 1.3; margin: 3px 0 4px; font-weight: 650; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tp-float .k { font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); font-weight: 700; }
.tp-float.f1 { top: 30%; left: -22%; }
.tp-float.f2 { top: 4%; right: -16%; }
.tp-float.f3 { bottom: -6%; left: -10%; }
@media (max-width: 560px) { .tp-search input { padding: .7rem .8rem; font-size: .95rem; } .tp-search .tp-btn { padding: .7rem 1rem; } }
@media (max-width: 900px) {
  .tp-hero-grid { grid-template-columns: 1fr; }
  .tp-hero-art { display: none; }
  .tp-hero { padding: 54px 0 60px; }
}

/* ---------- partner strip ---------- */
.tp-partners { background: var(--night-2); color: #fff; padding: 30px 0; border-top: 1px solid var(--line-dark); position: relative; }
.tp-partners::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.tp-partners-inner { display: flex; align-items: flex-end; gap: 18px 26px; flex-wrap: wrap; }
.tp-partners-label { flex-basis: 100%; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.tp-partners-label span { color: rgba(255,255,255,.55); letter-spacing: .04em; text-transform: none; font-weight: 500; font-size: .84rem; }
.tp-partner-row { display: flex; gap: 14px; flex-wrap: wrap; flex: 1 1 auto; }
.tp-partner-chip { display: flex; flex-direction: column; align-items: center; gap: 7px; text-decoration: none; color: rgba(255,255,255,.78); font-weight: 600; font-size: .76rem; text-align: center; width: 168px; }
.tp-partner-chip .lg { width: 168px; height: 70px; border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: center; padding: 10px 16px; box-shadow: 0 0 0 1px rgba(255,255,255,.1); transition: transform .15s, box-shadow .15s; }
.tp-partner-chip:hover .lg { transform: translateY(-2px); box-shadow: 0 0 0 2px var(--gold), 0 10px 24px rgba(0,0,0,.3); }
.tp-partner-chip:hover { color: var(--gold); }
.tp-partner-chip .lg img { max-width: 100%; max-height: 48px; object-fit: contain; }
.tp-partner-chip .lg .mono { color: var(--night); font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; }
@media (max-width: 560px) { .tp-partner-chip, .tp-partner-chip .lg { width: calc(50vw - 32px); } }
.tp-media { margin-left: auto; padding-bottom: 26px; font-size: .82rem; color: rgba(255,255,255,.6); }
.tp-media a { color: #fff; font-weight: 600; text-decoration: none; }
.tp-media a:hover { color: var(--gold); }

/* ---------- area tiles ---------- */
.tp-area-group { margin-top: 26px; }
.tp-area-group h3 { font-family: var(--font-body); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 12px; }
.tp-areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.tp-area { display: flex; justify-content: space-between; align-items: center; gap: 10px; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-weight: 600; font-size: .95rem; color: var(--text); transition: border-color .15s, transform .15s, box-shadow .15s; position: relative; overflow: hidden; }
.tp-area::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--circuit); opacity: 0; transition: opacity .15s; }
.tp-area.topic::before { background: var(--orchid); }
.tp-area:hover { border-color: #cfcbe6; transform: translateY(-2px); box-shadow: var(--shadow); }
.tp-area:hover::before { opacity: 1; }
.tp-area .n { font-size: .76rem; font-weight: 600; color: var(--muted); background: var(--paper); border-radius: 999px; padding: 2px 9px; min-width: 30px; text-align: center; }
.tp-area .n:empty::after { content: '\2022\2022'; opacity: .35; }

/* ---------- listing cards ---------- */
.tp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.tp-grid.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .tp-grid.three { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .tp-grid, .tp-grid.three { grid-template-columns: 1fr; } }
.tp-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 18px; display: flex; flex-direction: column; gap: 10px; transition: transform .15s, box-shadow .15s, border-color .15s; position: relative; }
.tp-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: #d6d2ea; }
.tp-card.is-featured { border-color: #ecd9a0; background: linear-gradient(180deg, #fffcf2 0%, #fff 60%); }
.tp-card.is-partner { box-shadow: inset 3px 0 0 var(--gold); }
.tp-card-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-height: 22px; }
.tp-provider { font-size: .82rem; font-weight: 650; color: var(--indigo); margin-right: 4px; }
.tp-badge { font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; line-height: 1.4; white-space: nowrap; }
.tp-badge.gold { background: var(--gold); color: var(--night); }
.tp-badge.feat { background: var(--night); color: var(--gold); }
.tp-badge.soon { background: var(--orchid-soft); color: #8d3a7c; }
.tp-badge.new { background: var(--circuit-soft); color: #1c5fa6; }
.tp-badge.found { background: var(--gold-soft); color: #7a5a06; }
.tp-card h3 { font-family: var(--font-display); font-size: 1.12rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.tp-card h3 a { text-decoration: none; color: var(--text); }
.tp-card h3 a:hover { color: var(--indigo); }
.tp-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .84rem; color: var(--muted); }
.tp-meta span { display: inline-flex; align-items: center; gap: 6px; }
.tp-meta svg { width: 15px; height: 15px; flex-shrink: 0; opacity: .8; }
.tp-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tp-tag { font-size: .74rem; padding: 3px 9px; border-radius: 999px; background: var(--paper); color: #474b6e; border: 1px solid var(--line); }
.tp-tag.online { background: var(--circuit-soft); border-color: #cfe3fa; color: #1c5fa6; }
.tp-tag.inperson { background: var(--orchid-soft); border-color: #f0d6ea; color: #8d3a7c; }
.tp-tag.hybrid { background: #efeafd; border-color: #ddd3fa; color: var(--indigo-ink); }
.tp-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); }
/* house rule: listing price is always 1rem / 700 */
.listing-price { font-size: 1rem; font-weight: 700; color: var(--text); }
.listing-price.free { color: var(--leaf); }
.tp-card-foot .tp-btn { padding: .5rem 1rem; font-size: .84rem; }

.tp-skel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); height: 190px; position: relative; overflow: hidden; }
.tp-skel::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(74,47,208,.05), transparent); animation: tp-shimmer 1.3s infinite; }
@keyframes tp-shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* spotlight (premier partner in-feed) */
.tp-spot { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; background: var(--night); color: #fff; border-radius: var(--radius); padding: 22px 24px; position: relative; overflow: hidden; isolation: isolate; text-decoration: none; }
.tp-spot::after { content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(245,192,68,.25), transparent 70%); z-index: -1; }
.tp-spot .lg { width: 84px; height: 64px; background: #fff; border-radius: 12px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.tp-spot .lg img { max-width: 74px; max-height: 52px; object-fit: contain; }
.tp-spot .lg .mono { color: var(--night); font-weight: 800; }
.tp-spot .k { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.tp-spot h3 { font-size: 1.2rem; margin: 4px 0; color: #fff; }
.tp-spot p { color: rgba(255,255,255,.75); font-size: .92rem; }
@media (max-width: 720px) { .tp-spot { grid-template-columns: 1fr; } }

/* ---------- page head (inner pages) ---------- */
.tp-pagehead { padding: 46px 0 40px; }
.tp-crumbs { font-size: .82rem; color: rgba(255,255,255,.6); margin-bottom: 14px; }
.tp-crumbs a { color: rgba(255,255,255,.8); text-decoration: none; }
.tp-crumbs a:hover { color: var(--gold); }
.tp-crumbs span { margin: 0 6px; opacity: .5; }
.tp-pagehead h1 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; letter-spacing: -0.025em; margin-bottom: 10px; }
.tp-pagehead p.lead { color: rgba(255,255,255,.76); max-width: 680px; font-size: 1.06rem; }
.tp-pagehead-row { display: flex; justify-content: space-between; gap: 30px; align-items: flex-end; flex-wrap: wrap; }
.tp-sponsor { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 10px 14px; text-decoration: none; color: #fff; max-width: 340px; font-size: .84rem; }
.tp-sponsor:hover { border-color: var(--gold); }
.tp-sponsor .k { display: block; font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.tp-sponsor img { width: 54px; height: 40px; object-fit: contain; background: #fff; border-radius: 8px; padding: 3px; }
.tp-sponsor.open { border-style: dashed; color: rgba(255,255,255,.78); }

/* ---------- filters ---------- */
.tp-filters { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: grid; grid-template-columns: 2fr repeat(5, minmax(0,1fr)); gap: 10px; margin: -28px 0 18px; position: relative; z-index: 2; box-shadow: var(--shadow); }
.tp-filters.no-area { grid-template-columns: 2fr repeat(4, minmax(0,1fr)); }
.tp-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tp-field label { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-left: 2px; }
.tp-field select, .tp-field input { appearance: none; -webkit-appearance: none; border: 1px solid var(--line); background: var(--paper); border-radius: 10px; padding: .62rem .8rem; font-size: .92rem; font-family: var(--font-body); color: var(--text); width: 100%; }
.tp-field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235c6184' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 28px; }
.tp-field input:focus, .tp-field select:focus { outline: 2px solid var(--circuit); outline-offset: 0; background-color: #fff; }
@media (max-width: 980px) { .tp-filters, .tp-filters.no-area { grid-template-columns: 1fr 1fr; } .tp-filters .tp-field:first-child { grid-column: 1 / -1; } }
.tp-resultbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; font-size: .9rem; color: var(--muted); }
.tp-resultbar strong { color: var(--text); }
.tp-toggles { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tp-toggle { display: inline-flex; align-items: center; gap: 6px; padding: .38rem .8rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: .82rem; font-weight: 600; color: var(--text); cursor: pointer; font-family: var(--font-body); }
.tp-toggle[aria-pressed="true"] { background: var(--night); color: #fff; border-color: var(--night); }
.tp-clear { background: none; border: 0; color: var(--indigo); font-weight: 600; cursor: pointer; font-size: .85rem; font-family: var(--font-body); }
.tp-empty { grid-column: 1 / -1; text-align: center; padding: 48px 20px; background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.tp-empty h3 { color: var(--text); margin-bottom: 6px; font-size: 1.2rem; }
.tp-more { display: flex; justify-content: center; margin-top: 22px; }

/* ---------- resource + info cards ---------- */
.tp-res-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 980px) { .tp-res-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tp-res-grid { grid-template-columns: 1fr; } }
.tp-res { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 6px; transition: transform .15s, box-shadow .15s, border-color .15s; }
.tp-res:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #d6d2ea; }
.tp-res .ic { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--circuit-soft); color: #1c5fa6; margin-bottom: 6px; }
.tp-res:nth-child(3n+2) .ic { background: var(--orchid-soft); color: #8d3a7c; }
.tp-res:nth-child(3n+3) .ic { background: #efeafd; color: var(--indigo); }
.tp-res .ic svg { width: 20px; height: 20px; }
.tp-res h3 { font-size: 1.02rem; font-weight: 700; }
.tp-res p { font-size: .86rem; color: var(--muted); }

.tp-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.tp-panel h2 { font-size: 1.3rem; margin-bottom: 10px; }
.tp-panel p + p { margin-top: 10px; }
.tp-panel p { color: #3d4163; }

/* ---------- split bands ---------- */
.tp-split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 860px) { .tp-split { grid-template-columns: 1fr; } }
.tp-band { border-radius: 20px; padding: 32px; position: relative; overflow: hidden; isolation: isolate; }
.tp-band h3 { font-size: 1.5rem; margin: 8px 0 8px; }
.tp-band p { color: inherit; opacity: .8; margin-bottom: 18px; }
.tp-band.gold { background: linear-gradient(135deg, #fff3cf, #ffe9a8); color: #2b2205; }
.tp-band.gold .tp-eyebrow { color: #8a6200; }
.tp-band.night { background: var(--night-2); color: #fff; }
.tp-band.night .tp-eyebrow { color: var(--circuit); }
.tp-signup { display: flex; gap: 8px; flex-wrap: wrap; }
.tp-signup input { flex: 1; min-width: 200px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #fff; border-radius: 999px; padding: .75rem 1.1rem; font-size: .95rem; font-family: var(--font-body); }
.tp-signup input::placeholder { color: rgba(255,255,255,.55); }
.tp-fine { font-size: .78rem; opacity: .6; margin-top: 10px; }
.tp-fine a { color: inherit; }

/* provider pricing */
.tp-provider-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 16px; align-items: stretch; }
@media (max-width: 980px) { .tp-provider-grid { grid-template-columns: 1fr; } }
.tp-plan { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.tp-plan.hl { background: #fff; color: var(--text); border-color: #fff; }
.tp-plan .price { font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; line-height: 1; }
.tp-plan .price small { font-size: .95rem; font-weight: 500; opacity: .65; font-family: var(--font-body); }
.tp-plan ul { list-style: none; padding: 0; margin: 4px 0 8px; display: flex; flex-direction: column; gap: 8px; font-size: .9rem; }
.tp-plan li { display: flex; gap: 8px; }
.tp-plan li::before { content: ''; width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; border-radius: 50%; background: var(--leaf-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317865a' stroke-width='3.5'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 10px no-repeat; }
.tp-plan .tp-btn { margin-top: auto; }

/* ---------- partner pages ---------- */
.tp-phero { display: grid; grid-template-columns: auto 1fr; gap: 30px; align-items: center; }
.tp-phero .lgbox { width: 168px; height: 120px; background: #fff; border-radius: 18px; display: flex; align-items: center; justify-content: center; padding: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.35); }
.tp-phero .lgbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.tp-phero .lgbox .mono { color: var(--night); font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; }
.tp-premier { display: inline-flex; align-items: center; gap: 6px; background: var(--gold); color: var(--night); font-weight: 800; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; }
.tp-pstats { display: flex; gap: 30px; flex-wrap: wrap; margin-top: 20px; }
.tp-pstats strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--gold); line-height: 1; }
.tp-pstats span { font-size: .78rem; color: rgba(255,255,255,.65); }
@media (max-width: 720px) { .tp-phero { grid-template-columns: 1fr; } }
.tp-two { display: grid; grid-template-columns: 1fr 320px; gap: 22px; align-items: start; }
@media (max-width: 980px) { .tp-two { grid-template-columns: 1fr; } }
.tp-stack { display: flex; flex-direction: column; gap: 16px; }
.tp-feature { background: var(--night); color: #fff; border-radius: var(--radius); padding: 26px; position: relative; overflow: hidden; isolation: isolate; }
.tp-feature::after { content: ''; position: absolute; right: -80px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(74,47,208,.55), transparent 70%); z-index: -1; }
.tp-feature h2 { font-size: 1.35rem; margin: 8px 0; }
.tp-feature p { color: rgba(255,255,255,.8); margin-bottom: 14px; }
.tp-checks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: .92rem; }
.tp-checks li { display: flex; gap: 9px; }
.tp-checks li::before { content: ''; width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; border-radius: 50%; background: var(--leaf-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317865a' stroke-width='3.5'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 11px no-repeat; }
.tp-side { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 14px; }
.tp-side .tp-panel { padding: 20px; }
.tp-side h3 { font-size: 1rem; margin-bottom: 8px; }
.tp-side p { font-size: .9rem; color: var(--muted); margin-bottom: 12px; }
.tp-side .tp-btn { width: 100%; }
.tp-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .tp-mini { grid-template-columns: 1fr; } }
.tp-mini a { border: 1px solid var(--line); border-radius: 12px; padding: 14px; text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 6px; background: #fff; }
.tp-mini a:hover { border-color: var(--indigo); }
.tp-mini b { font-size: .93rem; line-height: 1.35; }
.tp-mini span { font-size: .78rem; color: var(--muted); }

/* ---------- tiles (LMS / programs / reading) ---------- */
.tp-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.tp-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; transition: transform .15s, box-shadow .15s; }
.tp-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.tp-tile .logo { height: 54px; display: flex; align-items: center; }
.tp-tile .logo img { max-height: 50px; max-width: 170px; object-fit: contain; }
.tp-tile .mono { width: 50px; height: 50px; border-radius: 14px; background: var(--night); color: var(--gold); font-family: var(--font-display); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 1.15rem; }
.tp-tile h3 { font-size: 1.12rem; }
.tp-tile .by { font-size: .82rem; color: var(--muted); margin-top: -6px; }
.tp-tile p { font-size: .9rem; color: #3d4163; }
.tp-tile .row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.tp-tile.feat { border-color: #ecd9a0; background: linear-gradient(180deg, #fffcf2, #fff 55%); }
.tp-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.tp-pill { padding: .45rem .95rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: .86rem; font-weight: 600; cursor: pointer; color: var(--text); font-family: var(--font-body); }
.tp-pill[aria-pressed="true"] { background: var(--night); color: #fff; border-color: var(--night); }

/* ---------- footer ---------- */
.tp-footer { background: var(--night); color: rgba(255,255,255,.72); padding: 56px 0 26px; font-size: .9rem; margin-top: 0; }
.tp-foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
@media (max-width: 860px) { .tp-foot-grid { grid-template-columns: 1fr 1fr; } }
.tp-footer h4 { font-family: var(--font-body); color: #fff; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
.tp-footer a { color: rgba(255,255,255,.72); text-decoration: none; display: block; padding: 3px 0; }
.tp-footer a:hover { color: var(--gold); }
.tp-footer .about p { margin-top: 12px; max-width: 320px; }
.tp-social { display: flex; gap: 10px; margin-top: 14px; }
.tp-social a { display: inline-flex; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line-dark); align-items: center; justify-content: center; padding: 0; }
.tp-social svg { width: 16px; height: 16px; fill: currentColor; }
.tp-foot-base { border-top: 1px solid var(--line-dark); margin-top: 36px; padding-top: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .8rem; color: rgba(255,255,255,.5); }
.tp-foot-base a { display: inline; }

/* utilities */
.tp-center { text-align: center; }
.tp-mt { margin-top: 28px; }
.tp-hide { display: none !important; }
.tp-note { font-size: .82rem; color: var(--muted); margin-top: 18px; }
@media (prefers-reduced-motion: reduce) { .tp-body * { transition: none !important; animation: none !important; } .tp-trace { stroke-dashoffset: 0; } .tp-ping { display: none; } }

/* page partner panel (subject page sponsors) */
.tp-pagepartner { margin-top: 26px; display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 18px; padding: 18px 22px; position: relative; }
.tp-pagepartner.edge { border-left: 5px solid #ffd700; }
.tp-pagepartner { box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.tp-pagepartner .lg { width: 170px; height: 84px; background: #fff; border-radius: 12px; display: flex; align-items: center; justify-content: center; padding: 10px 14px; }
.tp-pagepartner .lg img { max-width: 100%; max-height: 64px; object-fit: contain; }
.tp-pagepartner .lg .mono { color: var(--night); font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; text-align: center; line-height: 1.15; }
.tp-pagepartner .k { display: inline-flex; align-items: center; gap: 5px; background: linear-gradient(135deg, #ffd700, #ffed4a); color: #333; font-size: .72rem; font-weight: 700; padding: 4px 11px; border-radius: 999px; }
.tp-pagepartner h2 { font-size: 1.25rem; margin: 10px 0 6px; color: #fff; }
.tp-pagepartner p { color: rgba(255,255,255,.9); font-size: .93rem; max-width: 640px; }
@media (max-width: 860px) { .tp-pagepartner { grid-template-columns: 1fr; } }

/* ---------- content pages (privacy, terms, contact, standards) ---------- */
.tp-prose { max-width: 820px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 38px; color: #33375a; }
.tp-prose h2 { font-size: 1.35rem; color: var(--text); margin: 30px 0 10px; }
.tp-prose h2:first-child, .tp-prose .last-updated + p + h2 { margin-top: 0; }
.tp-prose h4 { font-family: var(--font-body); font-size: 1rem; margin-bottom: 4px; color: var(--text); }
.tp-prose p { margin-bottom: 12px; }
.tp-prose ul { margin: 0 0 14px 1.2rem; padding: 0; }
.tp-prose li { margin-bottom: 6px; }
.tp-prose a { color: var(--indigo); font-weight: 600; }
.tp-prose .last-updated { display: inline-block; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.tp-prose .highlight-box { background: var(--gold-soft); border-left: 4px solid var(--gold); border-radius: 10px; padding: 14px 16px; margin: 14px 0; color: #5a4300; }
@media (max-width: 640px) { .tp-prose { padding: 24px 20px; } }
.tp-faq { display: flex; flex-direction: column; gap: 10px; max-width: 820px; }
.tp-faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }
.tp-faq summary { cursor: pointer; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.tp-faq summary::after { content: '+'; color: var(--indigo); font-weight: 800; font-size: 1.2rem; line-height: 1; }
.tp-faq details[open] summary::after { content: '\2212'; }
.tp-faq details p { margin-top: 8px; color: #3d4163; }
.tp-faq a { color: var(--indigo); font-weight: 600; }

/* standards page (keeps its own markup) */
.tp-standards .aitsl-card { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--indigo); border-radius: var(--radius); padding: 28px; display: flex; gap: 22px; margin-bottom: 22px; }
.tp-standards .aitsl-icon { font-size: 2.6rem; line-height: 1; }
.tp-standards .org-type, .tp-standards .org-name { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tp-standards .aitsl-card h2 { font-size: 1.4rem; margin: 4px 0 10px; }
.tp-standards .aitsl-card p { color: #3d4163; margin-bottom: 10px; }
.tp-standards .standards-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 16px; }
.tp-standards .standards-list span { background: #efeafd; color: var(--indigo-ink); font-size: .8rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.tp-standards .btn-visit, .tp-standards .btn-state { display: inline-flex; background: var(--indigo); color: #fff; padding: .6rem 1.1rem; border-radius: 999px; font-weight: 650; font-size: .88rem; text-decoration: none; }
.tp-standards .btn-visit-outline { display: inline-flex; margin-left: 8px; border: 1.5px solid var(--line); color: var(--text); padding: .55rem 1.1rem; border-radius: 999px; font-weight: 650; font-size: .88rem; text-decoration: none; }
.tp-standards .tool-tile { margin-top: 16px; display: flex; gap: 12px; align-items: center; max-width: 540px; background: var(--circuit-soft); border: 1px solid #cfe3fa; border-radius: 12px; padding: 12px 14px; text-decoration: none; color: var(--text); }
.tp-standards .tool-tile-title { font-weight: 700; }
.tp-standards .tool-tile-desc { font-size: .86rem; color: var(--muted); }
.tp-standards .tool-tile-arrow { margin-left: auto; color: var(--indigo); font-weight: 800; }
.tp-standards .info-box { background: var(--gold-soft); border-left: 4px solid var(--gold); border-radius: 12px; padding: 16px 18px; display: flex; gap: 12px; margin-bottom: 30px; color: #4d3a00; }
.tp-standards .section-heading { font-size: 1.6rem; margin-bottom: 4px; }
.tp-standards .section-subheading { color: var(--muted); margin-bottom: 18px; }
.tp-standards .states-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.tp-standards .state-card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--circuit); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.tp-standards .state-nsw, .tp-standards .state-vic, .tp-standards .state-act { border-top-color: #2c63c9; }
.tp-standards .state-qld { border-top-color: #8c1d3a; } .tp-standards .state-sa { border-top-color: #d6002b; }
.tp-standards .state-wa { border-top-color: #e8a400; } .tp-standards .state-tas { border-top-color: #00704a; } .tp-standards .state-nt { border-top-color: #e87722; }
.tp-standards .state-card-header { display: flex; gap: 10px; align-items: center; }
.tp-standards .state-flag { display: none; }
.tp-standards .state-card h3 { font-size: 1.1rem; }
.tp-standards .state-card p { color: #3d4163; font-size: .92rem; }
.tp-standards .card-footer { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: auto; }
.tp-standards .pd-hours-badge { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; font-size: .78rem; font-weight: 600; color: var(--muted); }
@media (max-width: 640px) { .tp-standards .aitsl-card { flex-direction: column; } .tp-standards .states-grid { grid-template-columns: 1fr; } }

/* giveaways */
.tp-give { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 18px; padding: 28px; }
.tp-give img { width: 150px; border-radius: 10px; box-shadow: 0 14px 30px rgba(16,20,60,.25); display: block; }
.tp-give .month { display: inline-block; margin-top: 10px; background: var(--night); color: var(--gold); font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 4px 11px; border-radius: 999px; }
.tp-give h2 { font-size: 1.7rem; margin: 6px 0 8px; }
.tp-give .meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: .86rem; color: var(--muted); margin: 10px 0; }
.tp-give .by a { color: var(--indigo); font-weight: 650; }
@media (max-width: 720px) { .tp-give { grid-template-columns: 1fr; text-align: center; } .tp-give img { margin: 0 auto; } .tp-give .meta { justify-content: center; } }
.tp-entry { background: var(--night-2); color: #fff; border-radius: 18px; padding: 30px; position: relative; overflow: hidden; isolation: isolate; }
.tp-entry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 620px; margin: 18px auto 0; }
.tp-entry-grid .full { grid-column: 1 / -1; }
.tp-entry input[type=text], .tp-entry input[type=email], .tp-entry select { width: 100%; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #fff; border-radius: 12px; padding: .8rem 1rem; font-size: .95rem; font-family: var(--font-body); }
.tp-entry select option { color: var(--text); }
.tp-entry input::placeholder { color: rgba(255,255,255,.55); }
.tp-entry .check { display: flex; gap: 8px; align-items: flex-start; font-size: .86rem; color: rgba(255,255,255,.75); }
.tp-entry .msg { display: none; max-width: 620px; margin: 16px auto 0; border-radius: 12px; padding: 12px 14px; text-align: center; }
.tp-entry .msg.ok { background: var(--leaf-soft); color: #0e5a3c; } .tp-entry .msg.err { background: #fdecea; color: #a93226; }
@media (max-width: 600px) { .tp-entry-grid { grid-template-columns: 1fr; } }
.tp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 760px) { .tp-steps { grid-template-columns: 1fr; } }
.tp-steps .tp-panel h3 { font-size: 1.05rem; margin: 6px 0 4px; }
.tp-steps .n { width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: var(--night); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.tp-video-sec { margin-bottom: 40px; }
.tp-video-sec > h2 { font-size: 1.5rem; display: flex; gap: 10px; align-items: center; }
.tp-video-sec > p { color: var(--muted); max-width: 820px; margin: 6px 0 16px; }

/* ---------- This Week page (teacherpd-news.html) ---------- */
.tp-badge.free { background: var(--leaf-soft); color: var(--leaf); }
.tp-badge.media { background: #efeafd; color: var(--indigo); }
.tp-weektabs { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 4px; }
.tp-weektabs button { border: 0; background: transparent; padding: .5rem 1rem; border-radius: 999px; font: 650 .9rem var(--font-body); color: var(--muted); cursor: pointer; }
.tp-weektabs button[aria-selected="true"] { background: var(--night); color: #fff; }
.tp-weektabs .n { display: inline-block; min-width: 1.4em; margin-left: .35rem; padding: 0 .35rem; border-radius: 999px; background: var(--gold); color: var(--night); font-size: .74rem; }
.tp-agenda { display: flex; flex-direction: column; gap: 12px; }
.tp-agenda-day { display: grid; grid-template-columns: 84px 1fr; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.tp-agenda-day.today { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold-soft); }
.tp-agenda-day.done { opacity: .62; }
.tp-agenda-day .date { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; background: var(--night); color: #fff; border-radius: 12px; padding: 10px 6px; text-align: center; line-height: 1.1; align-self: start; }
.tp-agenda-day .date b { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--circuit); }
.tp-agenda-day .date span { font-family: var(--font-display); font-size: 1.9rem; font-weight: 800; }
.tp-agenda-day .date small { font-size: .78rem; color: rgba(255,255,255,.7); }
.tp-agenda-day .date em { margin-top: 6px; font-style: normal; font-size: .64rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: var(--gold); color: var(--night); border-radius: 999px; padding: 2px 7px; }
.tp-agenda-day .list { display: flex; flex-direction: column; }
.tp-agenda-item { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; text-decoration: none; color: var(--text); padding: 10px 8px; border-radius: 10px; }
.tp-agenda-item + .tp-agenda-item { border-top: 1px solid var(--line); }
.tp-agenda-item:hover { background: var(--paper); }
.tp-agenda-item .who { grid-column: 1; font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--indigo); }
.tp-agenda-item .what { grid-column: 1; font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; line-height: 1.3; }
.tp-agenda-item .meta { grid-column: 1; font-size: .84rem; color: var(--muted); }
.tp-agenda-item .bd { grid-column: 2; grid-row: 1 / span 3; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
@media (max-width: 560px) { .tp-agenda-day { grid-template-columns: 1fr; } .tp-agenda-day .date { flex-direction: row; gap: 8px; justify-content: flex-start; padding: 8px 12px; } .tp-agenda-day .date span { font-size: 1.2rem; } .tp-agenda-item { grid-template-columns: 1fr; } .tp-agenda-item .bd { grid-column: 1; grid-row: auto; flex-direction: row; margin-top: 4px; } }
.tp-empty { background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); padding: 22px; color: var(--muted); }
.tp-stories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 980px) { .tp-stories { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .tp-stories { grid-template-columns: 1fr; } }
.tp-story { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-decoration: none; color: var(--text); transition: transform .15s, box-shadow .15s; }
.tp-story:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.tp-story.partner { border-top: 4px solid var(--gold); }
.tp-story .src { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tp-story .t { font-family: var(--font-display); font-weight: 700; font-size: 1.06rem; line-height: 1.3; }
.tp-story .x { font-size: .88rem; color: #3d4163; }
.tp-story .bd { margin-top: auto; padding-top: 6px; }
.tp-issue { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.tp-issue .no { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; color: var(--gold); line-height: 1; }
.tp-issues { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.tp-issues li a { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); text-decoration: none; font-size: .9rem; }
.tp-issues li a span { color: var(--muted); }
.tp-issues li a:hover b { color: var(--indigo); }
.tp-updates { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.tp-updates li { display: grid; grid-template-columns: 92px 1fr; gap: 12px; font-size: .9rem; }
.tp-updates .d { color: var(--muted); font-size: .8rem; padding-top: 2px; }
.tp-updates p { color: #3d4163; margin: 2px 0 4px; }
.tp-updates a { color: var(--indigo); font-weight: 650; text-decoration: none; }
.tp-sources { display: flex; flex-wrap: wrap; gap: 8px; }
.tp-sources a { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .4rem .85rem; font-size: .84rem; font-weight: 600; text-decoration: none; }
.tp-sources a:hover { border-color: var(--indigo); color: var(--indigo); }
.tp-dark .tp-panel { color: var(--text); }
/* This Week: personal filter, deadlines, changes */
.tp-weekfilter { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 64px; z-index: 20; box-shadow: 0 6px 18px rgba(16,20,60,.05); }
.tp-weekfilter .tp-wrap { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; padding-top: 14px; padding-bottom: 14px; }
.tp-weekfilter .tp-field { min-width: 210px; }
.tp-weekfilter .note { flex-basis: 100%; font-size: .86rem; color: var(--muted); margin: 0; }
.tp-weekfilter .note b { color: var(--text); }
@media (max-width: 640px) { .tp-weekfilter { position: static; } .tp-weekfilter .tp-field { min-width: 0; flex: 1 1 100%; } }
.tp-split-wide { grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }
.tp-deadlines, .tp-changes { display: flex; flex-direction: column; gap: 10px; }
.tp-deadline, .tp-change { display: grid; grid-template-columns: 92px 1fr; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; text-decoration: none; color: var(--text); transition: transform .15s, box-shadow .15s; }
.tp-deadline:hover, .tp-change:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.tp-deadline .when { background: var(--gold-soft); border-radius: 10px; text-align: center; padding: 10px 6px; line-height: 1.15; align-self: start; }
.tp-deadline .when b { display: block; font-family: var(--font-display); font-size: 1.05rem; color: #7a5a06; }
.tp-deadline .when small { font-size: .74rem; color: #7a5a06; }
.tp-deadline.urgent { border-color: var(--gold); }
.tp-deadline.urgent .when { background: var(--gold); }
.tp-deadline.urgent .when b, .tp-deadline.urgent .when small { color: var(--night); }
.tp-deadline .body, .tp-change .body { display: flex; flex-direction: column; gap: 3px; }
.tp-deadline .k, .tp-change .k { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--indigo); }
.tp-deadline .t, .tp-change .t { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; line-height: 1.3; }
.tp-deadline .x, .tp-change .x { font-size: .87rem; color: #3d4163; }
.tp-change { grid-template-columns: 64px 1fr; }
.tp-change .st { background: var(--night); color: #fff; border-radius: 10px; font-family: var(--font-display); font-weight: 800; font-size: .82rem; letter-spacing: .04em; display: flex; align-items: center; justify-content: center; text-align: center; min-height: 52px; align-self: start; padding: 4px; }
.tp-change .x b { color: var(--text); }
@media (max-width: 860px) { .tp-split-wide { grid-template-columns: 1fr; } }
/* This Week: automatic sections */
.tp-weekstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 18px; max-width: 720px; }
.tp-weekstats div { background: rgba(255,255,255,.07); border: 1px solid var(--line-dark); border-radius: 12px; padding: 10px 12px; }
.tp-weekstats b { display: block; font-family: var(--font-display); font-size: 1.5rem; color: #fff; line-height: 1.1; }
.tp-weekstats span { font-size: .78rem; color: rgba(255,255,255,.7); }
@media (max-width: 640px) { .tp-weekstats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tp-minis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 980px) { .tp-minis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .tp-minis { grid-template-columns: 1fr; } }
.tp-mini { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-decoration: none; color: var(--text); transition: transform .15s, box-shadow .15s; }
.tp-mini:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.tp-mini .who { font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--indigo); }
.tp-mini .t { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; line-height: 1.3; }
.tp-mini .m { font-size: .84rem; color: var(--muted); }
.tp-mini .bd { margin-top: auto; padding-top: 6px; display: flex; gap: 6px; flex-wrap: wrap; }
.tp-spotlinks { display: flex; flex-wrap: wrap; gap: 8px; }
.tp-spotlinks a { border: 1px solid var(--line); border-radius: 999px; padding: .35rem .8rem; font-size: .84rem; font-weight: 650; text-decoration: none; background: #fff; }
.tp-spotlinks a:hover { border-color: var(--indigo); color: var(--indigo); }
.tp-standards .pd-hours-badge.free { background: var(--leaf-soft); color: var(--leaf); border-color: transparent; }
.tp-standards .section-heading { font-size: 1.5rem; margin: 6px 0 4px; }
.tp-standards .section-subheading { color: var(--muted); margin-bottom: 16px; }
/* provider / page partner pages */
.tp-pagepartner-k { display: inline-flex; align-items: center; gap: 6px; background: var(--gold); color: var(--night); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; border-radius: 999px; padding: 5px 12px; }
.tp-ribbon { background: #fff; border-bottom: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.tp-ribbon .tp-wrap { display: flex; gap: 12px; align-items: center; padding-top: 12px; padding-bottom: 12px; }
.tp-ribbon .ms { display: grid; grid-template-columns: 9px 9px; gap: 2px; flex-shrink: 0; }
.tp-ribbon .ms i { width: 9px; height: 9px; display: block; }
.tp-workshop .meta { color: var(--muted); font-size: .9rem; margin: 2px 0 10px; }
.tp-checks-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin-top: 12px; }
@media (max-width: 600px) { .tp-checks-2 { grid-template-columns: 1fr; } }
.tp-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 12px; }
.tp-topics > div { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.tp-topics h4 { font-family: var(--font-display); font-size: 1rem; margin: 0 0 4px; }
.tp-topics p { font-size: .88rem; color: #3d4163; margin: 0; }
.tp-quote { margin: 16px 0 0; border-left: 4px solid var(--gold); background: var(--gold-soft); border-radius: 0 12px 12px 0; padding: 14px 18px; }
.tp-quote p { margin: 0 0 6px; font-style: italic; color: var(--text); }
.tp-quote cite { font-style: normal; font-size: .84rem; font-weight: 650; color: var(--muted); }
.tp-prose .tp-callout { background: var(--gold-soft); border-left: 4px solid var(--gold); border-radius: 0 12px 12px 0; padding: 16px 20px; margin: 22px 0; }
.tp-prose .tp-callout h3 { font-size: 1.05rem; margin: 0 0 6px; color: var(--text); }
.tp-prose .tp-callout p { margin: 0; }
.tp-prose .tp-topics { margin-bottom: 8px; }
.tp-prose a { color: var(--indigo); font-weight: 650; }

/* ---------- card actions: Save / Add to calendar / Log it ---------- */
.tp-card-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); }
.tp-act { display: inline-flex; align-items: center; gap: 5px; font: 600 .78rem/1 var(--font-body); color: var(--muted); background: #f6f5fb; border: 1px solid transparent; border-radius: 999px; padding: 7px 11px; cursor: pointer; text-decoration: none; transition: color .15s, background .15s, border-color .15s; }
.tp-act svg { width: 14px; height: 14px; flex: none; }
.tp-act:hover { color: var(--indigo); background: #efebff; border-color: #d9d1ff; }
.tp-act:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; }
.tp-act[aria-pressed="true"] { color: #fff; background: var(--indigo); }
.tp-act[aria-pressed="true"] svg { fill: currentColor; }
.tp-act.danger:hover { color: #b42318; background: #fdecea; border-color: #f6c9c4; }
.tp-mypd b { display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; margin-left: 4px; border-radius: 999px; background: var(--gold); color: #1b1446; font-size: .72rem; font-weight: 800; }
.tp-toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 20px); background: #141a46; color: #fff; padding: 12px 18px; border-radius: 12px; font-size: .9rem; box-shadow: 0 12px 30px rgba(10,12,40,.3); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 999; max-width: calc(100% - 32px); }
.tp-toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.tp-toast a { color: var(--gold); font-weight: 700; margin-left: 6px; }

/* ---------- My saved PD page ---------- */
.tp-saved-wrap { max-width: 880px; }
.tp-saved-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.tp-saved-h { font-size: 1.15rem; margin: 26px 0 12px; }
.tp-saved-h small { font: 700 .75rem var(--font-body); color: var(--indigo); background: #efebff; border-radius: 999px; padding: 3px 9px; vertical-align: middle; }
.tp-saved { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin-bottom: 10px; }
.tp-saved .who { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--indigo); }
.tp-saved h3 { font-size: 1.02rem; margin: 4px 0; }
.tp-saved h3 a { color: inherit; text-decoration: none; }
.tp-saved h3 a:hover { color: var(--indigo); }
.tp-saved .meta { color: var(--muted); font-size: .88rem; }
.tp-saved .tp-card-acts { margin-top: 10px; }

/* ---------- share a saved list ---------- */
.tp-saved-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.tp-share-panel { background: #fff; border: 1px solid #d9d1ff; border-radius: 16px; padding: 20px 22px; margin: 0 0 22px; box-shadow: 0 10px 30px rgba(43,36,112,.08); }
.tp-share-panel[hidden], .tp-share-out[hidden] { display: none; }
.tp-share-panel h3 { margin: 0 0 4px; font-size: 1.15rem; }
.tp-share-panel label { display: block; font-weight: 600; font-size: .88rem; margin-top: 12px; }
.tp-share-panel label small { font-weight: 400; color: var(--muted); }
.tp-share-panel input, .tp-share-panel textarea { display: block; width: 100%; margin-top: 5px; font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fafaff; }
.tp-share-panel input:focus, .tp-share-panel textarea:focus { outline: 2px solid var(--indigo); outline-offset: 1px; background: #fff; }
.tp-share-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 640px) { .tp-share-grid { grid-template-columns: 1fr; } }
.tp-share-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 14px; }
.tp-share-out { border-top: 1px dashed var(--line); margin-top: 16px; padding-top: 4px; }
.tp-share-msg { background: #fff8e6; border: 1px solid #f3dfa4; border-left: 4px solid var(--gold); border-radius: 12px; padding: 14px 16px; margin-bottom: 16px; font-size: .98rem; }
.tp-share-msg span { display: block; margin-top: 6px; font-size: .85rem; font-weight: 700; color: #6b5512; }

/* Browse PD mega menu: anchor to the header row so it never runs off the left edge */
@media (min-width: 981px) {
  .tp-header-inner { position: relative; }
  .tp-dd:has(.tp-menu.mega) { position: static; }
  .tp-menu.mega { right: 0; top: calc(100% - 4px); max-width: calc(100vw - 32px); }
}
