/* ============================================================================
   townsquare - the base every QmeLocal front-end page shares: the design's
   tokens, element rules, buttons, the header, section heads, the light zone,
   the footer, the Copilot launcher and panel, and the toast.

   Loaded first by layouts/layout.php; each page then adds its own sheet
   (landing.css, townsquare.css). The master's inner pages use inner.css.
   Every class is `tq-` prefixed and every element rule is scoped to the
   page's own blocks, because platform-wide stylesheets injected into every
   page (a global `.row`, `h5`, `.btn`...) would otherwise reach the design.

   Colours are the design's tokens, on body.tq. The three brand colours can be
   overridden from the Home Page settings (layouts/layout.php prints them).
   The platform's floor is 14px: the design's 10.5-13.5px labels are 14px.
   ============================================================================ */

/* .tq-tokens: the same tokens around a Townsquare block drawn on a page whose
   body is not .tq (the top banner on the master's inner pages). ts-banner.
   body.tq-chrome: a page with its own layout wearing the Townsquare's header
   and footer (partials/ts_shell.php) - the tokens only, none of the page
   styles below, so that page's own body keeps its fonts and colours. ts-shell. */
body.tq,
.tq-tokens,
body.tq-chrome {
    /* brand */
    --tq-white: #FEFEFE;
    --tq-blue: #1326F3;
    --tq-yellow: #FAE621;
    --tq-navy: #080F54;
    /* dark system derived from navy */
    --tq-ink: #02041F;
    --tq-ink-2: #050A36;
    --tq-panel: #0A1149;
    --tq-panel-2: #101A63;
    --tq-text: #FEFEFE;
    --tq-soft: #C9CEF0;
    --tq-muted: #8F97CC;
    --tq-line: rgba(201, 206, 240, .12);
    --tq-line-hi: rgba(250, 230, 33, .55);
    --tq-cyan: #3BE3F2;
    --tq-danger: #D92D20;
    --tq-blue-glow: 0 20px 60px rgba(19, 38, 243, .45);
    --tq-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
    --tq-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --tq-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
}
body.tq,
.tq-tokens {
    /* Light by default: native scrollbars, checkboxes and lists were drawing BLACK on white
       boxes. Only the genuinely dark areas (the landing hero and its header) opt into dark. */
    color-scheme: light;
    margin: 0;
    padding: 0;
    background: var(--tq-ink);
    color: var(--tq-text);
    font: 16px/1.6 var(--tq-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
html:has(body.tq) { background: #02041F; scroll-behavior: smooth; scroll-padding-top: 96px; }
body.tq [hidden] { display: none !important; }
body.tq-chrome :is(.tq-thead, .tq-main, .tq-footer) [hidden],
body.tq-chrome :is(.tq-cp-launch)[hidden] { display: none !important; }
/* A page's own stylesheet may pad every <footer> (the features page's pads
   it 90px): the Townsquare's footer keeps its own spacing. */
body.tq-chrome footer.tq-footer { padding: 0; margin: 0; }
/* A page's own grid can be wider than its container (the post page's .row runs 4px past a phone's
   edge): no sideways scroll on a phone. clip, not hidden, so the sticky header still sticks. Its 12px
   tags and side-list dates meet the 14px floor. */
@media (max-width: 1023px) {
    html:has(body.tq-chrome) { overflow-x: clip; }
    body.tq-chrome :is(.btn-tag, .font-xs) { font-size: 14px; }
}

/* Element rules, only inside the page's own blocks. */
:where(.tq-header, .tq-thead, .tq-main, .tq-footer, .tq-scrim, .tq-share-pop, .tq-cp-launch, .tq-toast),
:where(.tq-header, .tq-thead, .tq-main, .tq-footer, .tq-scrim, .tq-share-pop, .tq-cp-launch, .tq-toast) *,
:where(.tq-header, .tq-thead, .tq-main, .tq-footer, .tq-scrim, .tq-share-pop, .tq-cp-launch, .tq-toast) *::before,
:where(.tq-header, .tq-thead, .tq-main, .tq-footer, .tq-scrim, .tq-share-pop, .tq-cp-launch, .tq-toast) *::after { box-sizing: border-box; }
:where(.tq-header, .tq-thead, .tq-main, .tq-footer, .tq-scrim, .tq-share-pop) a { color: inherit; text-decoration: none; }
:where(.tq-header, .tq-thead, .tq-main, .tq-footer, .tq-scrim, .tq-share-pop) :is(img, video) { max-width: 100%; display: block; }
:where(.tq-header, .tq-thead, .tq-main, .tq-footer, .tq-scrim, .tq-share-pop, .tq-cp-launch) :is(button, input, select, textarea) { font-family: inherit; }
:where(.tq-header, .tq-thead, .tq-main, .tq-footer, .tq-scrim, .tq-share-pop) :is(h1, h2, h3, h4) { text-wrap: balance; margin: 0; }
:where(.tq-header, .tq-thead, .tq-main, .tq-footer, .tq-scrim, .tq-share-pop, .tq-cp-launch) :focus-visible { outline: 2px solid var(--tq-yellow); outline-offset: 3px; border-radius: 8px; }

.tq-wrap { width: min(1240px, 100% - 40px); margin-inline: auto; position: relative; }
/* Phones: boxes run almost edge to edge - 7px each side. */
@media (max-width: 600px) { .tq-wrap { width: calc(100% - 14px); } }
.tq-eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 14px var(--tq-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--tq-yellow); }
.tq-eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }

/* buttons */
.tq-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 700 15px var(--tq-body); padding: 14px 24px; border-radius: 14px; border: 0; cursor: pointer; white-space: nowrap; transition: transform .2s, box-shadow .25s, background .2s, border-color .2s; }
.tq-btn:active { transform: scale(.97); }
.tq-btn-y { background: var(--tq-yellow); color: var(--tq-navy); box-shadow: 0 12px 34px rgba(250, 230, 33, .22); }
.tq-btn-y:hover { transform: translateY(-2px); box-shadow: 0 18px 44px rgba(250, 230, 33, .35); }
.tq-btn-g { background: rgba(254, 254, 254, .06); color: var(--tq-white); border: 1px solid var(--tq-line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.tq-btn-g:hover { border-color: rgba(254, 254, 254, .35); background: rgba(254, 254, 254, .1); }
/* Link-buttons keep a readable text colour on hover: the pages' global a:hover (blue) is more
   specific than a plain .tq-btn-* rule and turned their text into the background. */
a.tq-btn:hover, a.tq-btn:focus { text-decoration: none; }
a.tq-btn-y:hover, a.tq-btn-y:focus { color: var(--tq-navy); }
a.tq-btn-b:hover, a.tq-btn-b:focus, a.tq-btn-blue:hover, a.tq-btn-blue:focus { color: #fff; }
a.tq-btn-g:hover, a.tq-btn-g:focus { color: #fff; }
.tq-light a.tq-btn-g:hover, .tq-light a.tq-btn-g:focus { color: var(--tq-navy); }
/* on a blue card (home community, join), a ghost button turns white with navy text */
.tq-home-card .tq-btn-g:hover, .tq-home-card .tq-btn-g:focus,
.tq-jcard.tq-org .tq-btn-g:hover, .tq-jcard.tq-org .tq-btn-g:focus { background: #fff; color: var(--tq-navy); border-color: #fff; }
.tq-btn svg { flex: 0 0 auto; }
.tq-arrow { transition: transform .2s; }
.tq-btn:hover .tq-arrow, .tq-tlink:hover .tq-arrow { transform: translateX(4px); }
.tq-tlink { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--tq-yellow); }

/* ---------- header ---------- */
.tq-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 60; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.tq-header.tq-scrolled { background: rgba(2, 4, 31, .82); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%); border-bottom-color: var(--tq-line); }
.tq-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.tq-logo { flex: 0 0 auto; display: block; }
.tq-logo img { height: var(--tq-logo-h, 40px); width: auto; }
.tq-acts { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.tq-acts .tq-btn { padding: 11px 18px; border-radius: 12px; font-size: 14.5px; }
@media (max-width: 640px) {
    .tq-logo img { height: var(--tq-logo-hm, 32px); }
    .tq-bar { gap: 12px; height: 68px; }
    .tq-hero { margin-top: -69px; padding-top: 69px; }
    .tq-acts .tq-btn { padding: 10px 14px; }
}
/* Explore Townsquare (the home page's header): a compass and the words; the compass alone below a
   laptop, where the words, Login, Get Started and the menu do not fit beside the logo. */
.tq-explore { border-color: rgba(250, 230, 33, .45); }
.tq-explore svg { color: var(--tq-yellow); }
@media (max-width: 900px) {
    .tq-acts .tq-explore { padding: 10px 12px; }
    .tq-explore span { display: none; }
}
/* A phone has room for the logo, Explore, Login and the menu: Get Started is the hero's own button there. */
@media (max-width: 520px) {
    .tq-acts { gap: 8px; }
    .tq-acts .tq-start { display: none; }
}
/* A small phone: Explore (the compass), Login or Dashboard and the menu keep their size and the logo
   gives way - it shrinks to the room that is left, never past its own mobile height. */
@media (max-width: 420px) {
    .tq-bar { gap: 8px; }
    .tq-bar .tq-logo { flex: 0 1 auto; min-width: 0; }
    .tq-bar .tq-logo img { height: auto; max-height: var(--tq-logo-hm, 28px); max-width: 100%; }
    .tq-acts { flex: none; gap: 6px; }
    .tq-acts .tq-btn { padding: 10px 12px; }
    .tq-acts .tq-explore { padding: 10px; display: none; }
}

/* ---------- the main (≡) menu, both headers (partials/apps_menu; base.js opens it) ---------- */
.tq-dd { position: relative; }
.tq-apps { width: 44px; height: 44px; border-radius: 12px; border: 0; background: #E8EBFF; color: #1326F3; display: grid; place-items: center; cursor: pointer; transition: background .2s, box-shadow .2s; }
.tq-apps:hover, .tq-dd.tq-open .tq-apps { background: #1326F3; color: #fff; box-shadow: 0 10px 22px -10px rgba(19, 38, 243, .8); }
.tq-header .tq-apps { background: rgba(254, 254, 254, .06); color: var(--tq-white); border: 1px solid var(--tq-line); }
.tq-header .tq-apps:hover, .tq-header .tq-dd.tq-open .tq-apps { background: var(--tq-yellow); color: var(--tq-navy); border-color: transparent; box-shadow: 0 12px 30px -10px rgba(250, 230, 33, .5); }
.tq-menu-pop { position: absolute; right: 0; top: calc(100% + 12px); width: 300px; padding: 8px; border-radius: 18px; background: #fff; border: 1px solid rgba(8, 15, 84, .08); box-shadow: 0 30px 60px -20px rgba(8, 15, 84, .4); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .18s; z-index: 5; }
.tq-dd.tq-open .tq-menu-pop { opacity: 1; visibility: visible; transform: none; }
.tq-menu-list .tq-app { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 12px; border: 0; background: none; color: #080F54; font: 600 14.5px var(--tq-body); text-align: left; cursor: pointer; }
.tq-menu-list .tq-app:hover { background: #EEF0FF; color: #1326F3; }
.tq-menu-list .tq-app i { flex: 0 0 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-style: normal; background: #EEF0FF; color: #1326F3; }
.tq-menu-list .tq-app:hover i { background: #1326F3; color: #FAE621; }
@media (max-width: 520px) { .tq-menu-pop { width: min(300px, calc(100vw - 32px)); } }
@media (max-width: 440px) { .tq-apps { width: 40px; height: 40px; } }

/* ---------- a row that scrolls sideways (base.js wraps it in .tq-hs once it overflows) ----------
   A round ‹ / › at each edge that still has more to show, over a fade in the colour behind the row
   (--tq-hs-bg, set by base.js). The page's own layout stays the row's: the wrapper only holds it. */
.tq-hs { position: relative; min-width: 0; max-width: 100%; }
.tq-hs::before, .tq-hs::after { content: ""; position: absolute; top: 0; bottom: 0; z-index: 2; width: 52px; pointer-events: none; opacity: 0; transition: opacity .2s; }
.tq-hs::before { left: 0; background: linear-gradient(90deg, var(--tq-hs-bg, #fff) 35%, transparent); }
.tq-hs::after { right: 0; background: linear-gradient(270deg, var(--tq-hs-bg, #fff) 35%, transparent); }
.tq-hs.tq-hs-l::before, .tq-hs.tq-hs-r::after { opacity: 1; }
.tq-hs-btn { position: absolute; top: 50%; z-index: 3; box-sizing: border-box; width: 36px; height: 36px; margin: -18px 0 0; padding: 0; border-radius: 50%; border: 1px solid transparent; background: var(--tq-blue, #1326F3); color: #fff; display: none; place-items: center; cursor: pointer; box-shadow: 0 8px 18px -8px rgba(8, 15, 84, .55); transition: background .2s, color .2s; }
.tq-hs-btn:hover { background: #fff; color: var(--tq-blue, #1326F3); border-color: rgba(8, 15, 84, .12); }
.tq-hs-prev { left: 2px; }
.tq-hs-next { right: 2px; }
.tq-hs.tq-hs-l > .tq-hs-prev, .tq-hs.tq-hs-r > .tq-hs-next { display: grid; }
/* The arrows sit together, small, at the top right ABOVE the row, so they never cover a label:
   the row gets that strip of room only while it overflows. */
.tq-hs-btn { top: -30px; margin: 0; width: 26px; height: 26px; border-radius: 8px; box-shadow: 0 4px 10px -4px rgba(8, 15, 84, .35); z-index: 999; }
.tq-hs-btn svg { width: 14px; height: 14px; }
.tq-hs-prev { left: auto; right: 32px; }
.tq-hs-next { right: 2px; }
.tq-hs.tq-hs-l > .tq-hs-btn, .tq-hs.tq-hs-r > .tq-hs-btn { display: grid; }
.tq-hs:not(.tq-hs-l) > .tq-hs-prev, .tq-hs:not(.tq-hs-r) > .tq-hs-next { opacity: .35; pointer-events: none; }
/* room above the row for its arrows, so they never sit on what comes before (a banner, a heading) */
.tq-hs:not(:has(> .tq-pulse-in)) { margin-top: 36px; }
/* the live strip: "Live in <place>", then the chips' one scrolling row with its two arrows at the end
   (a phone puts the place on its own row above) */
.tq-pulse-row { display: flex; align-items: center; gap: 8px; padding-block: 10px; }
.tq-pulse-row > .tq-pulse-in, .tq-pulse-row > .tq-hs { flex: 1 1 auto; min-width: 0; padding-block: 0; }
.tq-hs:has(> .tq-pulse-in) { display: flex; align-items: center; gap: 6px; }
.tq-hs:has(> .tq-pulse-in) > .tq-pulse-in { flex: 1 1 auto; min-width: 0; }
.tq-hs:has(> .tq-pulse-in) > .tq-hs-btn { position: static; flex: 0 0 auto; order: 2; }
.tq-hs:has(> .tq-pulse-in)::after { right: 64px; width: 36px; }
@media (max-width: 600px) {
    .tq-pulse-row { flex-wrap: wrap; row-gap: 8px; }
    .tq-pulse-row > .tq-pl { flex-basis: 100%; padding-right: 64px; }
    /* the arrows go up beside the place, so the chips have the whole row */
    .tq-hs:has(> .tq-pulse-in) > .tq-hs-btn { position: absolute; top: -31px; }
    .tq-hs:has(> .tq-pulse-in) > .tq-hs-prev { right: 32px; }
    .tq-hs:has(> .tq-pulse-in) > .tq-hs-next { right: 0; }
    .tq-hs:has(> .tq-pulse-in)::after { right: 0; width: 52px; }
    /* the chips run edge to edge (out over the 7px page gutter), cut by the screen's edge, no fade */
    .tq-pulse-row > .tq-hs, .tq-pulse-row > .tq-pulse-in { margin-inline: -7px; }
    .tq-pulse-row .tq-pulse-in { padding-inline: 7px; scroll-padding-inline: 7px; }
    .tq-hs:has(> .tq-pulse-in)::before, .tq-hs:has(> .tq-pulse-in)::after { display: none; }
    .tq-hs:has(> .tq-pulse-in) > .tq-hs-prev { right: 39px; }
    .tq-hs:has(> .tq-pulse-in) > .tq-hs-next { right: 7px; }
}
/* the chips' row scrolls by swipe and the arrows: no scrollbar under it */
:is(body.tq, body.tq-chrome) .tq-pulse-in { scrollbar-width: none; }
:is(body.tq, body.tq-chrome) .tq-pulse-in::-webkit-scrollbar { display: none; }

/* ---------- sections ---------- */
.tq-section { padding-block: clamp(80px, 10vw, 128px) 0; }
.tq-sh { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 40px; align-items: end; margin-bottom: 44px; }
.tq-sh h2 { font: 800 clamp(34px, 4.4vw, 60px)/1.02 var(--tq-display); letter-spacing: -.025em; margin-top: 16px; max-width: 18ch; }
.tq-sh h2 em { font-style: normal; color: var(--tq-yellow); }
.tq-sh p { margin: 16px 0 0; color: var(--tq-soft); max-width: 58ch; font-size: 17px; }
@media (max-width: 760px) { .tq-sh { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .tq-sh h2 { font-size: 30px; } }

/* ---------- footer ---------- */
.tq-footer { border-top: 1px solid var(--tq-line); background: linear-gradient(180deg, var(--tq-ink-2), var(--tq-ink) 60%); }
.tq-foot { display: grid; grid-template-columns: 1.3fr 1fr .8fr 1.2fr .7fr; gap: 36px; padding-block: 64px 48px; font-size: 15px; color: var(--tq-soft); }
.tq-foot h5 { font: 500 14px var(--tq-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--tq-muted); margin: 0 0 16px; }
.tq-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tq-foot ul a:hover, .tq-foot ul button:hover { color: var(--tq-yellow); }
.tq-foot ul button { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; text-align: left; }
.tq-fbrand img { height: 40px; width: auto; margin-bottom: 18px; }
.tq-fbrand p { margin: 0; max-width: 34ch; }
.tq-touch { grid-column: 1/-1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 40px; align-items: center; padding: 28px; border-radius: 22px; border: 1px solid var(--tq-line); background: rgba(254, 254, 254, .03); }
.tq-touch h4 { font: 700 clamp(20px, 2.2vw, 26px)/1.25 var(--tq-display); color: var(--tq-white); margin: 0; }
.tq-touch .tq-book { display: flex; justify-content: flex-end; }
@media (max-width: 520px) { .tq-touch .tq-book .tq-btn { white-space: normal; text-align: center; width: 100%; } }
@media (max-width: 900px) { .tq-touch { grid-template-columns: 1fr; } }
.tq-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 22px 30px; border-top: 1px solid var(--tq-line); font-size: 14px; color: var(--tq-muted); }
.tq-legal nav { display: flex; gap: 20px; }
.tq-legal .qme-legal { padding-bottom: 0; } .tq-legal .qme-legal a { text-decoration: none; }
.tq-legal a:hover { color: var(--tq-white); }
.tq-legal .tq-ai { flex-basis: 100%; font-size: 14px; }
@media (max-width: 1080px) { .tq-foot { grid-template-columns: repeat(4, 1fr); } .tq-fbrand { grid-column: 1/-1; } }
@media (max-width: 560px) { .tq-foot { grid-template-columns: 1fr 1fr; } }
/* Small phones: the footer's link menus stack, one per row. */
@media (max-width: 420px) { .tq-foot { grid-template-columns: 1fr; gap: 22px; padding-block: 40px 32px; } .tq-foot > * { grid-column: 1 / -1 !important; } }
/* a column's title reads as a title: bolder and in the text colour, the links below it smaller */
.tq-foot h5 { font-weight: 800; color: var(--tq-text); }
@media (max-width: 600px) { .tq-foot { font-size: 14px; } .tq-foot ul { gap: 8px; } .tq-foot h5 { margin-bottom: 10px; } }
/* Phones: every footer link a 40px row, and room under the last line for the Copilot launcher. */
@media (max-width: 760px) {
    .tq-foot ul { gap: 0; }
    .tq-foot ul :is(a, button), .tq-legal nav a { display: inline-flex; align-items: center; min-height: 40px; }
    .tq-legal { row-gap: 4px; padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- LIGHT ZONE (after the banner) ---------- */
/* The light zone's tokens, also on the master's post pages (.tqp: css/post.css), which sit on a light page. */
.tq-light,
.tqp {
    --tq-text: #080F54; --tq-soft: #3A4178; --tq-muted: #6D74A6; --tq-line: rgba(8, 15, 84, .1); --tq-line-hi: rgba(19, 38, 243, .45);
    --tq-lift: 0 30px 60px -18px rgba(19, 38, 243, .38), 0 12px 24px -12px rgba(8, 15, 84, .18);
    --tq-rest: 0 1px 2px rgba(8, 15, 84, .06), 0 10px 30px -12px rgba(8, 15, 84, .14);
    --tq-grad-edge: linear-gradient(135deg, #1326F3, #6A5CFF 45%, #FAE621);
}
.tq-light {
    position: relative; isolation: isolate; margin-top: -34px; border-radius: 34px 34px 0 0; color: var(--tq-text);
    background: radial-gradient(90% 60% at 100% 0%, #E6EAFF 0%, transparent 60%), radial-gradient(70% 50% at 0% 55%, #FFF9D6 0%, transparent 60%), linear-gradient(180deg, #F7F8FF, #EEF1FF 60%, #F7F8FF);
    padding-bottom: clamp(80px, 10vw, 128px); box-shadow: 0 -20px 60px rgba(2, 4, 31, .35);
}
.tq-wm { position: sticky; top: 0; height: 100vh; margin-bottom: -100vh; overflow: hidden; pointer-events: none; z-index: -1; border-radius: inherit; }
.tq-wm img { position: absolute; height: auto; max-width: none; }
.tq-wm .tq-wa { right: -6%; top: 4%; width: min(760px, 70vw); opacity: .16; animation: tqWmA 40s ease-in-out infinite alternate; }
.tq-wm .tq-wb { left: -10%; bottom: -6%; width: min(560px, 60vw); opacity: .09; animation: tqWmB 52s ease-in-out infinite alternate; }
.tq-wm canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
@keyframes tqWmA { from { transform: translate(0, 0) rotate(0) scale(1); } to { transform: translate(-5%, 6%) rotate(-7deg) scale(1.08); } }
@keyframes tqWmB { from { transform: scaleX(-1) translate(0, 0) rotate(0); } to { transform: scaleX(-1) translate(-6%, -8%) rotate(8deg); } }
.tq-light .tq-eyebrow { color: var(--tq-blue); }
.tq-light .tq-sh h2 em { color: var(--tq-blue); background: linear-gradient(transparent 68%, rgba(250, 230, 33, .8) 68%); padding: 0 .05em; }
.tq-light .tq-sh p { color: var(--tq-soft); }
.tq-light .tq-btn-g { background: #fff; color: var(--tq-navy); border: 1px solid var(--tq-line); box-shadow: var(--tq-rest); }
.tq-light .tq-btn-g:hover { border-color: transparent; box-shadow: var(--tq-lift); transform: translateY(-2px); }
.tq-light .tq-btn-y { box-shadow: 0 14px 30px -10px rgba(214, 180, 0, .7); }
.tq-light .tq-btn-y:hover { box-shadow: 0 22px 44px -12px rgba(214, 180, 0, .85), 0 0 0 4px rgba(250, 230, 33, .25); }
.tq-light .tq-tlink { color: var(--tq-blue); }
/* ---------- copilot ---------- */
.tq-cp-launch { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 80; display: flex; align-items: center; gap: 12px; padding: 7px 18px 7px 7px; border-radius: 999px; border: 1px solid rgba(250, 230, 33, .35); background: rgba(8, 15, 84, .88); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); color: var(--tq-white); cursor: pointer; text-align: left; font-family: var(--tq-body); font-size: 14px; box-shadow: 0 20px 50px rgba(0, 0, 0, .5), 0 0 40px rgba(19, 38, 243, .35); transition: transform .25s; }
.tq-cp-launch:hover { transform: translateY(-2px); }
.tq-cp-launch.tq-compact { padding: 7px; }
.tq-cp-launch.tq-compact > span:last-child { display: none; }
/* Phones: the Copilot is a round icon and Edit Page a round pencil, side by side at the bottom
   corners, so neither covers the content. */
@media (max-width: 600px) {
    .tq-cp-launch, .tq-cp-launch.tq-compact { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); padding: 4px; gap: 0; }
    .tq-cp-launch > span:last-child { display: none; }
    .tq-cp-launch .tq-cp-av { width: 44px; height: 44px; }
    body.tq .ig-edit-btn, body.tq-chrome .ig-edit-btn { left: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
    body.tq .ig-edit-btn__list { left: 0; }
}
.tq-cp-launch b { display: block; font-size: 15px; line-height: 1.2; }
.tq-cp-launch small { display: block; font-size: 14px; color: var(--tq-soft); }
.tq-cp-av { position: relative; flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; background: var(--tq-blue) var(--tq-mark, url("../media/qmelocal-mark.png")) center/100% no-repeat; box-shadow: 0 0 0 2px #fff; }
.tq-cp-av::after { content: ""; position: absolute; right: 0; bottom: 0; width: 11px; height: 11px; border-radius: 50%; background: #3DDC84; border: 2px solid var(--tq-navy); }
@media (max-width: 600px) {
    .tq-cp-launch small { display: none; }
}

.tq-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--tq-yellow); color: var(--tq-navy); font: 700 14px/1.6 var(--tq-body); padding: 12px 20px; border-radius: 12px; box-shadow: 0 20px 40px rgba(0, 0, 0, .5); transition: .25s; z-index: 100; max-width: calc(100vw - 32px); }
.tq-toast.tq-show { opacity: 1; transform: translate(-50%, 0); }

.tq-rise { animation: tqRise 1s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes tqRise { from { transform: translateY(28px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
    body.tq *, body.tq *::before, body.tq *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* The platform's own Copilot bubble, when the hook drew one: its pill steps
   aside and the launcher above opens its panel (theme.js). */
body.tq.tq-has-bubble .qme-vw-launcher,
body.tq.tq-has-bubble .qme-sw-launcher,
body.tq-chrome.tq-has-bubble .qme-vw-launcher,
body.tq-chrome.tq-has-bubble .qme-sw-launcher { opacity: 0 !important; pointer-events: none !important; }
/* The visitor bubble's own box steps aside too while closed. It sits at
   z-index 10010 - above scroll-to-top controls and cookie bars on every other
   theme - so over the launcher above (80), and with only its pill hidden the
   empty box still caught the click: a signed-out visitor's click opened
   nothing. The signed-in box sits at 20, under the launcher, and is left as
   it is. Open, the box is the panel and takes clicks again. */
body.tq.tq-has-bubble .qme-vw:not(.qme-vw--open),
body.tq-chrome.tq-has-bubble .qme-vw:not(.qme-vw--open) { pointer-events: none !important; }

/* The admin's Edit control (Theme_engine::edit_button(), admins only): a small
   pill, bottom-left, over the page but below the Copilot's layer, clear of
   the launcher (bottom-right). */
:is(body.tq, body.tq-chrome) .ig-edit-btn { position: fixed; left: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 79; }
:is(body.tq, body.tq-chrome) .ig-edit-btn .ig-edit-btn__main { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--tq-navy); color: var(--tq-white); font: 700 14px/1.2 var(--tq-body); text-decoration: none; border: 1px solid rgba(250, 230, 33, .45); box-shadow: 0 14px 30px -10px rgba(8, 15, 84, .6); transition: transform .2s, box-shadow .2s, background .2s; }
:is(body.tq, body.tq-chrome) .ig-edit-btn .ig-edit-btn__main:hover { transform: translateY(-2px); background: var(--tq-blue); color: var(--tq-white); box-shadow: 0 18px 34px -10px rgba(19, 38, 243, .7); }
:is(body.tq, body.tq-chrome) .ig-edit-btn .ig-edit-btn__main i { color: var(--tq-yellow); font-size: 14px; }
/* Several settings screens behind one page: the button opens a short list (Theme_engine::edit_button). */
:is(body.tq, body.tq-chrome) .ig-edit-btn--menu details { position: relative; }
:is(body.tq, body.tq-chrome) .ig-edit-btn--menu summary { list-style: none; cursor: pointer; }
:is(body.tq, body.tq-chrome) .ig-edit-btn--menu summary::-webkit-details-marker { display: none; }
:is(body.tq, body.tq-chrome) .ig-edit-btn__list { position: absolute; left: 0; bottom: calc(100% + 8px); min-width: 210px; display: grid; gap: 2px; padding: 6px; border-radius: 14px; background: var(--tq-white); border: 1px solid rgba(8, 15, 84, .1); box-shadow: 0 20px 40px -12px rgba(8, 15, 84, .45); }
:is(body.tq, body.tq-chrome) .ig-edit-btn__list a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--tq-navy); font: 600 14px/1.2 var(--tq-body); text-decoration: none; }
:is(body.tq, body.tq-chrome) .ig-edit-btn__list a:hover, :is(body.tq, body.tq-chrome) .ig-edit-btn__list a:focus-visible { background: rgba(19, 38, 243, .08); color: var(--tq-blue); }
@media (max-width: 600px) { :is(body.tq, body.tq-chrome) .ig-edit-btn { left: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); } :is(body.tq, body.tq-chrome) .ig-edit-btn .ig-edit-btn__main { padding: 10px 12px; } }

/* One loader for every AJAX request (base.js): a thin bar across the top of the page. */
.tq-xhr { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 2000; background: linear-gradient(90deg, var(--tq-blue, #1326F3), var(--tq-yellow, #FAE621)); box-shadow: 0 0 10px rgba(19, 38, 243, .5); opacity: 0; pointer-events: none; transition: opacity .2s; }
.tq-xhr.tq-xhr-on { opacity: 1; width: 85%; transition: width 8s cubic-bezier(.1, .7, .2, 1), opacity .2s; }
.tq-xhr.tq-xhr-done { width: 100%; transition: width .25s ease-out, opacity .3s .2s; opacity: 0; }
@media (prefers-reduced-motion: reduce) { .tq-xhr.tq-xhr-on { transition: none; } }

/* The Edit Page control: a compact pill with 10px corners everywhere; smaller on phones. */
:is(body.tq, body.tq-chrome) .ig-edit-btn .ig-edit-btn__main { border-radius: 10px; }
@media (max-width: 600px) {
    :is(body.tq, body.tq-chrome) .ig-edit-btn .ig-edit-btn__main { padding: 8px 12px; font-size: 14px; gap: 6px; width: auto; height: auto; white-space: nowrap; }
}
/* Phones: the light zone's top corners match the 10px used everywhere else. */
@media (max-width: 600px) { .tq-light { border-radius: 10px 10px 0 0; } }

/* Dark only where the surface is dark; and one thin, theme-blue scrollbar everywhere (never black). */
.tq-hero, .tq-header { color-scheme: dark; }
:is(body.tq, body.tq-chrome) * { scrollbar-width: thin; scrollbar-color: rgba(19, 38, 243, .35) transparent; }
:is(body.tq, body.tq-chrome) *::-webkit-scrollbar { width: 8px; height: 8px; }
:is(body.tq, body.tq-chrome) *::-webkit-scrollbar-track { background: transparent; }
:is(body.tq, body.tq-chrome) *::-webkit-scrollbar-thumb { background: rgba(19, 38, 243, .35); border-radius: 8px; }
:is(body.tq, body.tq-chrome) *::-webkit-scrollbar-thumb:hover { background: rgba(19, 38, 243, .55); }

/* ---------- back to top (js/base.js): phones and tablets, above the Copilot bubble ---------- */
.tq-totop { display: none; }
@media (max-width: 900px) {
    .tq-totop { position: fixed; right: 18px; bottom: calc(86px + env(safe-area-inset-bottom, 0px)); z-index: 80; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 10px; background: var(--tq-blue, #1326F3); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 22px -8px rgba(19, 38, 243, .7); }
    .tq-totop[hidden] { display: none; }
    .tq-totop:hover, .tq-totop:focus-visible { background: var(--tq-navy, #080F54); outline: none; }
}
/* the inner pages' older scroll-up arrow (job_hub main.js, #scrollUp) gives way to this one where this one shows */
@media (max-width: 900px) { :is(body.tq, body.tq-chrome) #scrollUp { display: none !important; } }
/* no fade at a scrolling row's ends: a flat colour never matches a page's gradient or picture; the arrows say there is more */
.tq-hs::before, .tq-hs::after { display: none !important; }
/* the footer logo's size: Global Footer > Footer logo height (partials/ts_footer.php sets the two vars) */
.tq-fbrand img { height: var(--tq-flogo-h, 40px); }
@media (max-width: 600px) { .tq-fbrand img { height: var(--tq-flogo-hm, 36px); } }
/* A BUTTON THAT IS A LINK KEEPS ITS OWN WORDS' COLOUR in every state, on every Townsquare page: the inner
   pages' older link styles (a:hover / a:focus / a:visited colours) must never repaint a blue or yellow button */
:is(body.tq, body.tq-chrome) a:is(.tq-pill-b, .tq-btn-blue, .tq-btn-b, .tq-btn-grad):not(.tq-tsl-acts *):is(:link, :visited, :hover, :focus, :active) { color: #fff !important; text-decoration: none !important; }
:is(body.tq, body.tq-chrome) a:is(.tq-btn-y, .tq-btn-yel):is(:link, :visited, :hover, :focus, :active) { color: var(--tq-navy, #080F54) !important; text-decoration: none !important; }
:is(body.tq, body.tq-chrome) a.tq-pill-b:hover { filter: brightness(1.08); }
