/* ============================================================================
   townsquare - the master portal's post pages (theme.json vendors.post):
   /detail/<slug> (templates/post_detail.php), the listings
   /home/activities/<type> (templates/post_list.php) and the one card they
   all draw (partials/post_card.php, also the cards "Load more" adds).

   Everything is .tqp- prefixed and scoped to .tqp: these pages sit in the
   inner-page shell, whose platform stylesheets (job_hub style.css, main.css,
   inner.css) set global h1-h6, a, ul and img rules. Colours are the design's
   tokens (base.css; .tqp gets the light-zone set there). The floor is 14px.
   ============================================================================ */

.tqp { font-family: var(--tq-body); color: var(--tq-text); padding: 28px 0 80px; position: relative; z-index: 1; }
.tqp *, .tqp *::before, .tqp *::after { box-sizing: border-box; }
.tqp a { text-decoration: none; }
.tqp :is(b, strong) { font-weight: 800; }
.tqp img { max-width: 100%; }
.tqp-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.tqp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons ---------- */
.tqp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 12px 22px; border-radius: 999px; border: 1.5px solid transparent; font: 700 15px/1.2 var(--tq-body); cursor: pointer; white-space: nowrap; transition: transform .2s, box-shadow .25s, background .2s, border-color .2s, color .2s; }
.tqp .tqp-btn-blue { background: var(--tq-blue); color: #fff; box-shadow: 0 12px 26px -12px rgba(19, 38, 243, .7); }
.tqp .tqp-btn-blue:hover, .tqp .tqp-btn-blue:focus-visible { color: #fff; transform: translateY(-2px); box-shadow: 0 18px 36px -14px rgba(19, 38, 243, .8); }
.tqp .tqp-btn-line { background: #fff; color: var(--tq-navy); border-color: var(--tq-line); box-shadow: var(--tq-rest); }
.tqp .tqp-btn-line:hover, .tqp .tqp-btn-line:focus-visible { color: var(--tq-blue); border-color: var(--tq-line-hi); transform: translateY(-2px); box-shadow: var(--tq-lift); }
.tqp .tqp-btn-yellow { background: var(--tq-yellow); color: var(--tq-navy); }
.tqp .tqp-btn-yellow:hover, .tqp .tqp-btn-yellow:focus-visible { color: var(--tq-navy); transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(250, 230, 33, .6); }
.tqp-btn:focus-visible, .tqp a:focus-visible, .tqp button:focus-visible { outline: 3px solid var(--tq-line-hi); outline-offset: 2px; }

/* ---------- pill, avatar ---------- */
.tqp .tqp-pill { display: inline-flex; align-items: center; align-self: flex-start; padding: 5px 12px; border-radius: 999px; background: rgba(19, 38, 243, .08); color: var(--tq-blue); font: 800 14px/1.2 var(--tq-body); letter-spacing: .02em; }
.tqp a.tqp-pill:hover { background: var(--tq-blue); color: #fff; }
.tqp-av { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #E8EBFF; color: var(--tq-blue); font: 800 14px var(--tq-body); }
.tqp-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tqp-av-lg { width: 46px; height: 46px; font-size: 16px; box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--tq-line); }

/* ============================ THE POST PAGE ============================ */
.tqp-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin: 0 0 18px; font-size: 14px; color: var(--tq-muted); min-width: 0; }
.tqp-crumbs > * { white-space: nowrap; }
.tqp-crumbs > * + *::before { content: "/"; margin: 0 10px; color: var(--tq-line-hi); opacity: .6; }
.tqp-crumbs a { color: var(--tq-soft); font-weight: 600; }
.tqp-crumbs a:hover { color: var(--tq-blue); }
.tqp-crumbs [aria-current] { overflow: hidden; text-overflow: ellipsis; max-width: 46ch; color: var(--tq-muted); }

.tqp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 336px; gap: 40px; align-items: start; }
.tqp-article { min-width: 0; background: #fff; border: 1px solid var(--tq-line); border-radius: 28px; box-shadow: var(--tq-rest); padding: clamp(20px, 4vw, 44px); }
.tqp-article > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.tqp-article > .tqp-hero { max-width: none; }

/* head */
.tqp-head { display: flex; flex-direction: column; gap: 14px; }
.tqp .tqp-title { margin: 0; font: 800 clamp(28px, 3.6vw, 44px)/1.12 var(--tq-display); letter-spacing: -.02em; color: var(--tq-navy); overflow-wrap: anywhere; }
.tqp .tqp-dek { margin: 0; font-size: 19px; line-height: 1.55; color: var(--tq-soft); }
.tqp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; padding-top: 16px; margin-top: 4px; border-top: 1px solid var(--tq-line); }
.tqp-author { display: inline-flex; align-items: center; gap: 12px; color: var(--tq-text); }
.tqp-author > span:last-child { display: flex; flex-direction: column; line-height: 1.25; }
.tqp-author small { font-size: 14px; color: var(--tq-muted); }
.tqp-author b { font-size: 16px; color: var(--tq-navy); }
.tqp a.tqp-author:hover b { color: var(--tq-blue); }
.tqp .tqp-meta-list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--tq-muted); }
.tqp-meta-list li { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.tqp-meta-list a { display: inline-flex; align-items: center; gap: 6px; color: var(--tq-muted); }
.tqp-meta-list a:hover { color: var(--tq-blue); }
.tqp-meta-list svg { color: var(--tq-blue); opacity: .75; }
.tqp-meta-list .post-views { color: var(--tq-muted); }

/* the picture: 16:9, never taller than 420px, never stretched */
.tqp-hero { position: relative; margin: 28px 0 8px; }
.tqp-hero-main { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; max-height: 420px; border-radius: 22px; overflow: hidden; isolation: isolate; background: linear-gradient(135deg, #E9ECFF, #F6F3FF 55%, #FFF9D9); cursor: zoom-in; }
.tqp-hero-main img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.tqp-hero.tqp-small .tqp-hero-main::before { content: ""; position: absolute; inset: -24px; z-index: -1; background: var(--tqp-bg) center / cover no-repeat; filter: blur(28px) saturate(1.1); opacity: .45; }
.tqp-hero.tqp-small .tqp-hero-main img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; box-shadow: 0 16px 40px -18px rgba(8, 15, 84, .45); }
.tqp-hero.tqp-noimg { display: none; }
.tqp-hero-video { aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: var(--tq-ink); }
.tqp-hero-video iframe { display: block; width: 100%; height: 100%; border: 0; }
.tqp-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: thin; }
.tqp .tqp-thumb { flex: 0 0 auto; width: 84px; height: 60px; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: #EEF1FF; cursor: pointer; opacity: .7; transition: opacity .2s, border-color .2s; }
.tqp .tqp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tqp .tqp-thumb:hover, .tqp .tqp-thumb.is-on { opacity: 1; border-color: var(--tq-blue); }

/* an event's or a job's facts */
.tqp-facts { margin-top: 24px; padding: 20px 22px; border-radius: 20px; background: linear-gradient(135deg, rgba(19, 38, 243, .06), rgba(250, 230, 33, .1)); border: 1px solid var(--tq-line); }
.tqp .tqp-facts dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px 24px; margin: 0; }
.tqp-facts dt { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 14px; font-weight: 700; color: var(--tq-muted); }
.tqp-facts dt svg { color: var(--tq-blue); }
.tqp-facts dd { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.45; color: var(--tq-navy); overflow-wrap: anywhere; }
.tqp-facts-act { display: flex; flex-wrap: wrap; gap: 10px; }
.tqp-facts dl + .tqp-facts-act:not(:empty) { margin-top: 18px; }

/* the body: a readable measure, the post's own markup styled */
.tqp .tqp-body { margin-top: 28px; font-size: 18px; line-height: 1.75; color: #1E2457; overflow-wrap: break-word; }
.tqp .tqp-body > :first-child { margin-top: 0; }
.tqp .tqp-body * { max-width: 100%; }
.tqp .tqp-body :is(p, span, div, li, td, th) { font-family: inherit; }
.tqp .tqp-body :is(p, li, td, dd) { color: inherit; }
.tqp .tqp-body :is(b, strong) { font-weight: 700; color: var(--tq-navy); }
.tqp .tqp-body :is(em, i) { font-style: italic; }
.tqp .tqp-body p { margin: 0 0 1.2em; font-size: inherit; line-height: inherit; }
.tqp .tqp-body :is(h1, h2, h3, h4, h5, h6) { margin: 1.6em 0 .55em; font-family: var(--tq-display); font-weight: 800; line-height: 1.25; letter-spacing: -.01em; color: var(--tq-navy); }
.tqp .tqp-body h1 { font-size: 30px; }
.tqp .tqp-body h2 { font-size: 26px; }
.tqp .tqp-body h3 { font-size: 22px; }
.tqp .tqp-body h4 { font-size: 19px; }
.tqp .tqp-body :is(h5, h6) { font-size: 17px; }
.tqp .tqp-body a { color: var(--tq-blue); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.tqp .tqp-body a:hover { text-decoration-color: var(--tq-yellow); }
.tqp .tqp-body :is(ul, ol) { margin: 0 0 1.2em; padding-left: 1.5em; }
.tqp .tqp-body ul { list-style: disc; }
.tqp .tqp-body ol { list-style: decimal; }
.tqp .tqp-body li { margin: 0 0 .45em; padding-left: .2em; list-style: inherit; }
.tqp .tqp-body li::marker { color: var(--tq-blue); }
.tqp .tqp-body blockquote { margin: 1.6em 0; padding: 18px 22px 18px 24px; border: 0; border-left: 4px solid var(--tq-blue); border-radius: 0 16px 16px 0; background: #F3F5FF; font-size: 20px; line-height: 1.6; font-style: italic; color: var(--tq-navy); }
.tqp .tqp-body blockquote > :last-child { margin-bottom: 0; }
.tqp .tqp-body :is(img, video) { height: auto; border-radius: 14px; margin: 8px 0; }
.tqp .tqp-body figure { margin: 1.6em 0; }
.tqp .tqp-body figcaption { margin-top: 8px; font-size: 14px; color: var(--tq-muted); text-align: center; }
.tqp .tqp-body iframe { display: block; width: 100%; border: 0; border-radius: 14px; margin: 1.2em 0; }
.tqp .tqp-body iframe[src*="youtube"], .tqp .tqp-body iframe[src*="youtu.be"], .tqp .tqp-body iframe[src*="vimeo"] { height: auto; aspect-ratio: 16 / 9; }
.tqp .tqp-body table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; margin: 1.4em 0; font-size: 15px; line-height: 1.5; }
.tqp .tqp-body :is(th, td) { padding: 10px 14px; border: 1px solid var(--tq-line); text-align: left; vertical-align: top; }
.tqp .tqp-body th { background: #F3F5FF; color: var(--tq-navy); font-weight: 800; }
.tqp .tqp-body hr { margin: 2em 0; border: 0; border-top: 1px solid var(--tq-line); }
.tqp .tqp-body :is(pre, code) { font-family: var(--tq-mono); font-size: 15px; }
.tqp .tqp-body pre { padding: 16px; border-radius: 14px; background: var(--tq-ink-2); color: #E8EBFF; overflow-x: auto; }
.tqp .tqp-body :not(pre) > code { padding: 2px 6px; border-radius: 6px; background: #F1F3FF; color: var(--tq-navy); }

.tqp-qa { margin-top: 12px; }
.tqp .tqp-qa h2 { margin: 1.4em 0 .4em; font: 800 20px/1.3 var(--tq-display); color: var(--tq-navy); }
.tqp .tqp-qa p { margin: 0; font-size: 17px; line-height: 1.7; color: #1E2457; }

/* tags, share */
.tqp-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; }
.tqp-tags > span { font-size: 14px; font-weight: 700; color: var(--tq-muted); margin-right: 4px; }
.tqp .tqp-tags a { padding: 6px 12px; border-radius: 999px; background: #F1F3FF; color: var(--tq-soft); font-size: 14px; font-weight: 700; }
.tqp .tqp-tags a:hover { background: var(--tq-navy); color: #fff; }
.tqp-share { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 28px; padding: 18px 0; border-top: 1px solid var(--tq-line); border-bottom: 1px solid var(--tq-line); }
.tqp-share-lbl { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; color: var(--tq-navy); }
.tqp-share-lbl svg { color: var(--tq-blue); }
.tqp-share-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.tqp .tqp-net { width: 42px; height: 42px; display: grid; place-items: center; padding: 0; border: 1px solid var(--tq-line); border-radius: 50%; background: #fff; color: var(--tq-navy); cursor: pointer; transition: background .2s, color .2s, transform .2s, border-color .2s; }
.tqp .tqp-net:hover, .tqp .tqp-net:focus-visible { background: var(--tq-blue); border-color: var(--tq-blue); color: #fff; transform: translateY(-2px); }

/* comments: the Townsquare feed's conversation (townsquare.css .tq-cm), roomier here */
.tqp-comments { margin-top: 32px; scroll-margin-top: 110px; }
.tqp .tqp-comments h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font: 800 24px/1.2 var(--tq-display); color: var(--tq-navy); }
.tqp-comments h2 span { min-width: 30px; padding: 3px 10px; border-radius: 999px; background: rgba(19, 38, 243, .08); color: var(--tq-blue); font: 800 14px/1.4 var(--tq-body); text-align: center; }
.tqp-comments .tq-cm { gap: 16px; }
.tqp-comments .tq-cm-list { max-height: none; overflow: visible; gap: 14px; padding: 0; }
.tqp-comments .tq-cm-item { gap: 12px; }
.tqp-comments .tq-cav { flex-basis: 40px; width: 40px; height: 40px; }
.tqp-comments .tq-cm-bubble { padding: 10px 16px; font-size: 15.5px; background: #F3F5FA; }
.tqp-comments .tq-cm-empty { padding: 18px; border-radius: 16px; background: #F7F8FF; text-align: center; font-size: 15px; color: var(--tq-muted); }
.tqp-comments .tq-cm-form { padding: 14px; border-radius: 20px; background: #F7F8FF; border: 1px solid var(--tq-line); align-items: center; }
.tqp-comments .tq-cm-field { background: #fff; border-color: var(--tq-line); border-radius: 16px; padding: 8px 8px 8px 16px; }
.tqp-comments .tq-cm-field textarea { min-height: 44px; font-size: 16px; padding: 10px 0; }
.tqp-comments .tq-cm-send { flex-basis: 42px; width: 42px; height: 42px; background: var(--tq-blue); }
.tqp-comments .tq-cerr { margin: 0; padding: 10px 14px; border-radius: 12px; background: #FFF1F3; color: #A1123A; font-size: 14px; }
.tqp-comments .tq-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- the sticky column ---------- */
.tqp-side { min-width: 0; align-self: stretch; }
.tqp-side-in { position: sticky; top: 100px; display: grid; gap: 18px; }
.tqp-box { background: #fff; border: 1px solid var(--tq-line); border-radius: 24px; box-shadow: var(--tq-rest); padding: 22px; }
.tqp .tqp-box-title { margin: 0 0 12px; font: 800 18px/1.2 var(--tq-display); color: var(--tq-navy); }
.tqp .tqp-cats, .tqp .tqp-recent { list-style: none; margin: 0; padding: 0; }
.tqp .tqp-cats li { margin: 0; }
.tqp-cats a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; margin: 0 -12px; border-radius: 12px; color: var(--tq-text); font-size: 15px; font-weight: 600; }
.tqp-cats a b { min-width: 28px; padding: 2px 8px; border-radius: 999px; background: #F1F3FF; color: var(--tq-soft); font-size: 14px; text-align: center; }
.tqp .tqp-cats a:hover, .tqp .tqp-cats a.is-on { background: #F3F5FF; color: var(--tq-blue); }
.tqp-cats a.is-on b { background: var(--tq-blue); color: #fff; }
.tqp .tqp-recent li { margin: 0; }
.tqp .tqp-recent li + li { border-top: 1px solid var(--tq-line); }
.tqp-recent a { display: flex; gap: 12px; align-items: center; padding: 12px 0; color: var(--tq-text); }
.tqp-recent li:first-child a { padding-top: 4px; }
.tqp-recent-pic { position: relative; flex: 0 0 72px; width: 72px; height: 72px; border-radius: 14px; overflow: hidden; background: linear-gradient(135deg, #E3E8FF, #FFF6C9); }
.tqp-recent-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.tqp-recent-txt { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.tqp-recent-txt b { font-size: 15px; line-height: 1.35; color: var(--tq-navy); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tqp-recent-txt small { font-size: 14px; color: var(--tq-muted); }
.tqp a:hover .tqp-recent-txt b { color: var(--tq-blue); }
.tqp-cta { position: relative; overflow: hidden; border: 0; color: #fff; background: radial-gradient(120% 90% at 100% 0%, rgba(250, 230, 33, .22), transparent 55%), linear-gradient(150deg, var(--tq-blue), var(--tq-navy) 70%); box-shadow: 0 24px 50px -24px rgba(19, 38, 243, .7); }
.tqp-cta-mark { position: absolute; right: -18px; top: -18px; width: 96px; height: 96px; border-radius: 28px; background: var(--tq-mark, url("../media/qmelocal-mark.png")) center / 100% no-repeat; opacity: .18; transform: rotate(12deg); }
.tqp .tqp-cta h2 { position: relative; margin: 0 0 8px; font: 800 21px/1.25 var(--tq-display); color: #fff; }
.tqp .tqp-cta p { position: relative; margin: 0 0 16px; font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, .86); }
.tqp-cta .tqp-btn { position: relative; width: 100%; white-space: normal; text-align: center; }

/* ---------- more of the same type ---------- */
.tqp-related { margin-top: 56px; }
.tqp-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.tqp .tqp-sec-head h2 { margin: 0; font: 800 clamp(24px, 2.6vw, 32px)/1.15 var(--tq-display); letter-spacing: -.01em; color: var(--tq-navy); }
.tqp .tqp-link { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 800; color: var(--tq-blue); white-space: nowrap; }
.tqp .tqp-link:hover { color: var(--tq-navy); }

/* =============================== THE CARDS =============================== */
.tqp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.tqp-card { position: relative; display: flex; flex-direction: column; min-width: 0; height: 100%; background: #fff; border: 1px solid var(--tq-line); border-radius: 22px; overflow: hidden; box-shadow: var(--tq-rest); transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s, border-color .3s; }
.tqp-card:hover, .tqp-card:focus-within { transform: translateY(-4px); box-shadow: var(--tq-lift); border-color: var(--tq-line-hi); }
.tqp-card-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, #E3E8FF, #F3EEFF 55%, #FFF6C9); }
.tqp-card-media img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.tqp-card:hover .tqp-card-media img { transform: scale(1.04); }
.tqp-card-ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--tq-blue); opacity: .5; }
.tqp-recent-pic .tqp-card-ph { opacity: .45; }
.tqp-play { position: absolute; z-index: 2; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; display: grid; place-items: center; border-radius: 50%; background: rgba(8, 15, 84, .78); color: #fff; box-shadow: 0 10px 30px rgba(2, 4, 31, .35); }
.tqp-when { position: absolute; z-index: 2; left: 12px; top: 12px; display: flex; flex-direction: column; align-items: center; min-width: 52px; padding: 6px 8px; border-radius: 14px; background: #fff; color: var(--tq-navy); font: 800 20px/1 var(--tq-display); box-shadow: 0 8px 20px -8px rgba(8, 15, 84, .35); }
.tqp-when small { font: 800 14px/1.2 var(--tq-body); color: var(--tq-blue); letter-spacing: .04em; }
.tqp-card-body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 18px; }
.tqp .tqp-card-title { margin: 0; font: 800 19px/1.3 var(--tq-display); letter-spacing: -.005em; color: var(--tq-navy); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tqp .tqp-card-title a { color: inherit; }
.tqp .tqp-card-title a::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.tqp .tqp-card-title a:hover, .tqp .tqp-card:hover .tqp-card-title a { color: var(--tq-blue); }
.tqp .tqp-card-ex { margin: 0; font-size: 15px; line-height: 1.55; color: var(--tq-soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.tqp .tqp-card-facts { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--tq-muted); }
.tqp-card-facts li { display: inline-flex; align-items: center; gap: 6px; min-width: 0; margin: 0; }
.tqp-card-facts span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 24ch; }
.tqp-card-facts svg { flex: 0 0 auto; color: var(--tq-blue); }
.tqp-card-foot { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--tq-line); }
.tqp-by { min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.tqp-by b { font-size: 14px; color: var(--tq-navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tqp-by time { font-size: 14px; color: var(--tq-muted); }
.tqp-in { animation: tqpIn .45s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes tqpIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tqp-in { animation: none; } .tqp-card, .tqp-card-media img, .tqp-btn { transition: none; } }

/* ============================== THE LISTINGS ============================== */
.tqp-lhead { margin: 8px 0 22px; }
.tqp .tqp-eyebrow { margin: 0 0 6px; font: 800 14px/1.2 var(--tq-body); letter-spacing: .12em; text-transform: uppercase; color: var(--tq-blue); }
.tqp .tqp-h1 { margin: 0; font: 800 clamp(34px, 4.6vw, 54px)/1.05 var(--tq-display); letter-spacing: -.025em; color: var(--tq-navy); }
.tqp .tqp-count { margin: 10px 0 0; font-size: 16px; color: var(--tq-soft); }
.tqp-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; margin-bottom: 26px; }
.tqp-tabs { display: flex; gap: 8px; min-width: 0; max-width: 100%; overflow-x: auto; padding: 2px; scrollbar-width: none; }
.tqp-tabs::-webkit-scrollbar { display: none; }
.tqp .tqp-tab { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--tq-line); color: var(--tq-soft); font-size: 15px; font-weight: 700; transition: background .2s, color .2s, border-color .2s; }
.tqp-tab span { padding: 1px 8px; border-radius: 999px; background: #F1F3FF; color: var(--tq-muted); font-size: 14px; }
.tqp .tqp-tab:hover { color: var(--tq-blue); border-color: var(--tq-line-hi); }
.tqp .tqp-tab.is-on { background: var(--tq-navy); border-color: var(--tq-navy); color: #fff; }
.tqp-tab.is-on span { background: rgba(255, 255, 255, .16); color: #fff; }
.tqp-search { display: flex; gap: 8px; flex: 0 1 380px; min-width: 0; }
.tqp-search label { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; margin: 0; padding: 0 16px; border-radius: 999px; background: #fff; border: 1.5px solid var(--tq-line); color: var(--tq-muted); }
.tqp-search label:focus-within { border-color: var(--tq-blue); }
.tqp .tqp-search input { flex: 1; min-width: 0; height: 44px; border: 0; background: none; outline: none; font: 15px var(--tq-body); color: var(--tq-navy); padding: 0; box-shadow: none; }
.tqp-search .tqp-btn { min-height: 46px; }
.tqp-seg { display: inline-flex; gap: 4px; padding: 4px; margin: -8px 0 24px; border-radius: 999px; background: #fff; border: 1px solid var(--tq-line); }
.tqp .tqp-seg a { padding: 8px 18px; border-radius: 999px; font-size: 15px; font-weight: 700; color: var(--tq-soft); }
.tqp .tqp-seg a.is-on { background: var(--tq-blue); color: #fff; }
.tqp-more { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 36px; }
.tqp-more .tqp-btn { min-width: 200px; }
.tqp-more .tqp-btn.is-busy { pointer-events: none; opacity: .75; }
.tqp-more .tqp-btn.is-busy::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: tqpSpin .7s linear infinite; }
@keyframes tqpSpin { to { transform: rotate(360deg); } }
.tqp .tqp-more-msg { margin: 0; min-height: 1.4em; font-size: 14px; color: var(--tq-muted); }
.tqp-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 56px 20px; border-radius: 28px; background: #fff; border: 1px dashed var(--tq-line-hi); text-align: center; }
.tqp-empty > span { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 20px; background: #F1F3FF; color: var(--tq-blue); }
.tqp .tqp-empty h2 { margin: 6px 0 0; font: 800 22px/1.25 var(--tq-display); color: var(--tq-navy); }
.tqp .tqp-empty p { margin: 0 0 6px; font-size: 16px; color: var(--tq-soft); }

/* ============================== SMALLER SCREENS ============================== */
@media (max-width: 1080px) {
    .tqp-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .tqp-side-in { position: static; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
}
@media (max-width: 1024px) {
    .tqp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}
@media (max-width: 760px) {
    .tqp { padding: 20px 0 64px; }
    .tqp-wrap { padding: 0 16px; }
    .tqp-crumbs [aria-current] { display: none; }
    .tqp-article { border-radius: 22px; padding: 22px 18px 24px; }
    .tqp .tqp-dek { font-size: 17px; }
    .tqp-meta { gap: 12px 16px; }
    .tqp-hero { margin: 22px -18px 4px; }
    .tqp-hero-main, .tqp-hero-video { border-radius: 0; }
    .tqp-thumbs { padding: 2px 18px 6px; }
    .tqp .tqp-body { font-size: 17px; line-height: 1.7; }
    .tqp .tqp-body h2 { font-size: 23px; }
    .tqp .tqp-body h3 { font-size: 20px; }
    .tqp .tqp-body blockquote { font-size: 18px; padding: 14px 16px 14px 18px; }
    .tqp-share { flex-direction: column; align-items: flex-start; }
    .tqp-comments .tq-cm-form { padding: 10px; }
    .tqp-comments .tq-cm-form > .tq-cav { display: none; }
    .tqp-side-in { grid-template-columns: minmax(0, 1fr); }
    .tqp-related { margin-top: 40px; }
    .tqp-bar { flex-direction: column; align-items: stretch; }
    .tqp-search { flex-basis: auto; }
    .tqp-tabs { margin: 0 -16px; padding: 2px 16px; }
}
@media (max-width: 640px) {
    .tqp-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
