/*
Theme Name:       THL Theme
Theme URI:        https://thehybridlayer.com/
Author:           The Hybrid Layer
Author URI:       https://thehybridlayer.com
Description:      The Hybrid Layer custom theme. Dark cinematic, native-Gutenberg (no page builder). Renders the platform's bespoke surfaces (homepage rails, three-state header, course/lesson/speaker pages) server-side from thl-core data, and styles core Gutenberg blocks via theme.json for static content pages.
Version:          0.4.3
Requires at least: 6.0
Requires PHP:     7.4
Text Domain:      thl-theme
License:          Proprietary

Deploy: ZIP this folder and `wp theme install <zip> --force` (handover §9).
Pairs with the thl-core plugin (CPTs, meta, access engine).
*/

/* ============================================================ */
/* DESIGN TOKENS (architecture-plan §7, reconciled with the      */
/* approved homepage + header/footer mockups)                    */
/* ============================================================ */
:root {
  --navy: #2d3748;
  --navy-deep: #1a1f2e;
  --navy-deeper: #0d1119;
  --ink: #0a0d15;
  --blue: #7aafc9;
  --blue-bright: #a8c8db;
  --grey-2: #e1e4e2;

  --bg: #10151f;          /* page base */
  --bg-deep: #0c1018;     /* deeper contrast bands */
  --bg-elev: #11161f;     /* elevated panels (dropdowns, menus) */

  --t-strong: rgba(255,255,255,0.96);
  --t-mid: rgba(255,255,255,0.72);
  --t-soft: rgba(255,255,255,0.48);

  --line: rgba(255,255,255,0.09);
  --line-2: rgba(255,255,255,0.14);

  --shadow-lift: 0 14px 30px rgba(0,0,0,0.45), 0 34px 80px rgba(0,0,0,0.45);
  --ease: cubic-bezier(0.32, 0.72, 0.24, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --nav-h: 68px;
  --annc-h: 38px;
  --wrap: 1400px;
}

/* ============================================================ */
/* RESET + BASE                                                  */
/* ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }
/* scroll-padding-top offsets every in-page anchor jump by the sticky nav height
   (+ a little breathing room) so targets land just below the bar instead of
   being hidden under it. Fixes "Watch the preview", homepage rail jumps, and any
   other #anchor — site-wide, the modern replacement for per-target hacks. */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
html, body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--t-strong);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
svg { display: block; }
/* The HTML hidden attribute must always win. Author display: rules (e.g. a
   .done-banner{display:flex}) otherwise override the UA [hidden]{display:none}
   at equal specificity, so a server-rendered or JS-toggled `hidden` element
   would render anyway. This single reset makes `hidden` reliable site-wide. */
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus {
  left: 16px; top: 16px; z-index: 200; background: var(--blue); color: var(--navy-deeper);
  padding: 10px 16px; border-radius: 8px; font-weight: 700;
}

/* Scroll reveal (homepage + others); respects reduced motion */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================ */
/* ANNOUNCEMENT BAR (state-specific copy rendered in header.php) */
/* ============================================================ */
.annc {
  position: relative; z-index: 60;
  background: linear-gradient(90deg, #14202e 0%, #1d2c3d 50%, #14202e 100%);
  border-bottom: 1px solid rgba(122,175,201,0.18);
  text-align: center; padding: 9px 20px;
  font-size: 12.5px; letter-spacing: 0.02em; color: var(--t-mid);
}
.annc strong { color: var(--blue-bright); font-weight: 600; }
.annc a { color: var(--blue-bright); font-weight: 600; text-decoration: none; }
.annc a:hover, .annc a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.annc--member { background: rgba(122,175,201,0.08); }
.annc--member .pill { display: inline-block; background: var(--blue); color: var(--navy-deeper); font-weight: 700; font-size: 11px; padding: 2px 9px; border-radius: 20px; margin-right: 8px; vertical-align: 1px; }

/* ============================================================ */
/* NAV (transparent over hero, frosts on scroll)                 */
/* ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; gap: 24px; padding: 0 32px;
  background: transparent; border-bottom: 1px solid transparent;
  transition: background .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s var(--ease);
}
.nav.scrolled { background: rgba(12,16,24,0.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }
/* Pages with no hero (generic/portal) get a solid bar immediately. */
.nav--solid { background: rgba(12,16,24,0.94); border-bottom-color: var(--line); }
.nav-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-logo img { height: 30px; width: auto; }
.nav-logo span { font-weight: 600; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }
.nav-menu { display: flex; align-items: center; gap: 4px; list-style: none; margin-left: 8px; }
.nav-menu > li { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 8px; font-size: 14.5px; color: var(--t-mid); font-weight: 500; transition: color .2s, background .2s; }
.nav-link:hover, .nav-menu > li:hover .nav-link { color: var(--t-strong); background: rgba(255,255,255,0.05); }
.nav-link .chev { width: 13px; height: 13px; transition: transform .2s var(--ease); }
.nav-menu > li:hover .nav-link .chev, .nav-menu > li.open .nav-link .chev { transform: rotate(180deg); }
.nav-spacer { flex: 1; }
.nav-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.signin { font-size: 14px; color: var(--t-mid); font-weight: 500; padding: 8px 6px; }
.signin:hover { color: var(--t-strong); }
.btn-cta { display: inline-flex; align-items: center; gap: 8px; background: var(--blue); color: var(--navy-deeper); font-size: 14px; font-weight: 700; padding: 10px 18px; border-radius: 9px; transition: background .2s, transform .15s; }
.btn-cta:hover { background: var(--blue-bright); transform: translateY(-1px); }
.quick { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--blue-bright); padding: 9px 12px; border-radius: 9px; border: 1px solid var(--line-2); }
.quick:hover { background: rgba(122,175,201,0.1); }
.quick svg { width: 14px; height: 14px; }

/* Desktop dropdown panels */
.dropdown { position: absolute; top: calc(100% + 10px); left: 0; min-width: 300px; background: var(--bg-elev); border: 1px solid var(--line-2); border-radius: 14px; padding: 10px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s; }
.nav-menu > li:hover .dropdown, .nav-menu > li.open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.dd-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 14px; border-radius: 9px; transition: background .15s; }
.dd-item:hover { background: rgba(255,255,255,0.06); }
.dd-item .dd-label { display: block; font-size: 14px; font-weight: 600; color: var(--t-strong); }
.dd-item .dd-sub { display: block; font-size: 12px; color: var(--t-soft); margin-top: 3px; }
.dd-count { font-size: 12px; font-weight: 600; color: var(--blue-bright); background: rgba(122,175,201,0.12); padding: 3px 9px; border-radius: 20px; flex-shrink: 0; }
.dd-divider { height: 1px; background: var(--line); margin: 8px 6px; }
.dd-all { display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--blue-bright); }
.dd-all:hover { background: rgba(122,175,201,0.1); }
.dd-all svg { width: 14px; height: 14px; }

/* Account menu */
.account { position: relative; }
.account-btn { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--t-mid); padding: 8px 12px; border-radius: 9px; border: 1px solid var(--line-2); }
.account-btn:hover { color: var(--t-strong); background: rgba(255,255,255,0.05); }
.account-btn .uic { width: 16px; height: 16px; }
.account-btn .chev { width: 12px; height: 12px; transition: transform .2s; }
.account.open .account-btn .chev { transform: rotate(180deg); }
.account-menu { position: absolute; top: calc(100% + 10px); right: 0; min-width: 268px; background: var(--bg-elev); border: 1px solid var(--line-2); border-radius: 14px; padding: 8px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s; }
.account.open .account-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.acc-head { padding: 12px 14px 10px; }
.acc-name { font-size: 14.5px; font-weight: 700; }
.acc-meta { font-size: 12px; color: var(--blue-bright); margin-top: 3px; display: flex; align-items: center; gap: 6px; }
.acc-meta svg { width: 13px; height: 13px; }
.acc-meta.muted { color: var(--t-soft); }
.acc-link { display: flex; align-items: center; gap: 11px; padding: 10px 14px; border-radius: 9px; font-size: 14px; color: var(--t-mid); font-weight: 500; transition: background .15s, color .15s; }
.acc-link:hover { background: rgba(255,255,255,0.06); color: var(--t-strong); }
.acc-link svg { width: 16px; height: 16px; color: var(--t-soft); flex-shrink: 0; }
.acc-link:hover svg { color: var(--blue-bright); }
.acc-divider { height: 1px; background: var(--line); margin: 7px 6px; }
.acc-link.danger:hover { color: #f0a0a0; }

/* Mobile */
.hamburger { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line-2); align-items: center; justify-content: center; }
.hamburger svg { width: 20px; height: 20px; }
.m-menu { position: fixed; inset: 0; z-index: 80; background: linear-gradient(170deg,#0e131d,#0a0e15); display: flex; flex-direction: column; opacity: 0; visibility: hidden; transition: opacity .28s var(--ease), visibility .28s; }
.m-menu.open { opacity: 1; visibility: visible; }
.m-top { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); padding: 0 20px; border-bottom: 1px solid var(--line); }
.m-close { width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; }
.m-close svg { width: 20px; height: 20px; }
.m-body { flex: 1; overflow-y: auto; padding: 14px 20px 24px; }
.m-link { display: flex; align-items: center; justify-content: space-between; padding: 16px 4px; font-size: 18px; font-weight: 600; border-bottom: 1px solid var(--line); width: 100%; text-align: left; }
.m-link .chev { width: 18px; height: 18px; color: var(--t-soft); transition: transform .25s var(--ease); }
.m-acc.open .m-link .chev { transform: rotate(180deg); }
.m-sub { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.m-acc.open .m-sub { max-height: 800px; }
.m-sublink { display: flex; align-items: center; justify-content: space-between; padding: 13px 4px 13px 16px; font-size: 15px; color: var(--t-mid); border-bottom: 1px solid var(--line); }
.m-sublink .dd-count { font-size: 11px; }
.m-section-label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--t-soft); font-weight: 700; margin: 26px 4px 8px; }
.m-foot { padding: 18px 20px; border-top: 1px solid var(--line); }
.m-cta { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; background: var(--blue); color: var(--navy-deeper); font-size: 16px; font-weight: 700; padding: 16px; border-radius: 11px; }
.m-signin { display: block; text-align: center; font-size: 14px; color: var(--t-soft); margin-top: 14px; }
.m-acc-meta { font-size: 13px; color: var(--blue-bright); padding: 0 4px 6px; display: flex; align-items: center; gap: 6px; }
.m-acc-meta svg { width: 14px; height: 14px; }

@media (max-width: 980px) {
  .nav-menu, .nav-actions { display: none !important; }
  .hamburger { display: flex; margin-left: auto; }
  .nav { gap: 0; justify-content: space-between; padding: 0 18px; }
  .nav-logo img { height: 26px; }
}
@media (max-width: 430px) {
  /* Keep "THE HYBRID LAYER" beside the logo on phones, just a touch smaller. */
  .nav-logo span { font-size: 12px; letter-spacing: 0.1em; }
}

/* ============================================================ */
/* FOOTER (site-wide, 4 columns — handover §4)                   */
/* ============================================================ */
.footer { background: #090c12; border-top: 1px solid var(--line); padding: 60px 32px 28px; }
.footer-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.f-brand .f-logo { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.f-brand .f-logo img { height: 30px; }
.f-brand .f-logo span { font-weight: 600; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; }
.f-brand p { font-size: 13.5px; color: var(--t-soft); line-height: 1.65; max-width: 300px; margin-bottom: 18px; }
.f-social { display: flex; gap: 10px; }
.f-social a { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; color: var(--t-mid); transition: .2s; }
.f-social a:hover { color: var(--t-strong); border-color: var(--blue); background: rgba(122,175,201,0.08); }
.f-social svg { width: 18px; height: 18px; }
.f-col h4 { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--t-soft); font-weight: 700; margin-bottom: 16px; }
.f-col ul { list-style: none; }
.f-col li { margin-bottom: 11px; }
.f-col a { font-size: 14px; color: var(--t-mid); transition: color .2s; }
.f-col a:hover { color: var(--t-strong); }
.f-bottom { max-width: 1180px; margin: 44px auto 0; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.f-pace { font-size: 11.5px; color: var(--t-soft); line-height: 1.6; max-width: 680px; }
.f-copy { font-size: 12.5px; color: var(--t-soft); white-space: nowrap; }
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .f-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) { .footer { padding: 44px 24px 28px; } }

/* ============================================================ */
/* GENERIC CONTENT PAGE (core Gutenberg blocks; theme.json does   */
/* the heavy lifting — this just sets the page frame)             */
/* ============================================================ */
.page-shell { min-height: 50vh; padding: 56px 24px 80px; }
.page-shell .page-inner { max-width: 820px; margin: 0 auto; }
.page-shell .page-title { font-size: clamp(30px, 4vw, 46px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 28px; }
.thl-content { font-size: 16px; color: var(--t-mid); line-height: 1.75; }
.thl-content > * + * { margin-top: 1.1em; }
.thl-content h2 { font-size: 1.6em; color: var(--t-strong); margin-top: 1.6em; letter-spacing: -0.01em; }
.thl-content h3 { font-size: 1.25em; color: var(--t-strong); margin-top: 1.4em; }
.thl-content a { color: var(--blue-bright); text-decoration: none; }
.thl-content a:hover, .thl-content a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.thl-content ul, .thl-content ol { padding-left: 1.3em; }
.thl-content li + li { margin-top: 0.4em; }
.thl-content strong { color: var(--t-strong); }
.thl-content blockquote { border-left: 2px solid var(--blue); padding-left: 20px; color: var(--t-soft); font-style: italic; }
.thl-content h4 { font-size: 1.1em; color: var(--t-strong); margin-top: 1.3em; font-weight: 700; }
.thl-content img, .thl-content figure { max-width: 100%; height: auto; border-radius: 12px; }
.thl-content figure { margin-top: 1.4em; }
.thl-content figcaption { font-size: 0.85em; color: var(--t-soft); margin-top: 8px; text-align: center; }
.thl-content hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.thl-content code { background: rgba(255,255,255,0.07); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; font-size: 0.9em; }
.thl-content pre { background: var(--bg-elev); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; overflow-x: auto; }
.thl-content pre code { background: none; border: 0; padding: 0; }
/* Tables (CPD/QA regulatory grid, cookie audit table, glossary tables). */
.thl-content table { width: 100%; border-collapse: collapse; margin-top: 1.4em; font-size: 0.92em; }
.thl-content th, .thl-content td { text-align: left; padding: 11px 14px; border: 1px solid var(--line); vertical-align: top; line-height: 1.6; }
.thl-content th { color: var(--t-strong); font-weight: 700; background: rgba(255,255,255,0.04); }
.thl-content td { color: var(--t-mid); }
.thl-content table a { color: var(--blue-bright); }
/* Definition-list glossaries. */
.thl-content dt { color: var(--t-strong); font-weight: 700; margin-top: 1.2em; }
.thl-content dd { color: var(--t-mid); margin-left: 0; margin-top: 0.3em; }
.thl-content .wp-block-image { margin-top: 1.4em; }
.thl-content .wp-block-table { overflow-x: auto; }

/* ============================================================ */
/* SIGN-IN MODAL (footer.php; wraps native wp_login_form())       */
/* ============================================================ */
.thl-modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 24px; }
.thl-modal.open { display: flex; }
.thl-modal__overlay { position: absolute; inset: 0; background: rgba(6,9,14,0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.thl-modal__card { position: relative; width: 100%; max-width: 420px; background: var(--bg-elev); border: 1px solid var(--line-2); border-radius: 18px; padding: 34px 32px 28px; box-shadow: var(--shadow-lift); animation: thl-modal-in 0.25s var(--ease-out); }
@keyframes thl-modal-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }
.thl-modal__x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 9px; display: flex; align-items: center; justify-content: center; color: var(--t-soft); background: transparent; border: 1px solid transparent; cursor: pointer; transition: background 0.15s, color 0.15s; }
.thl-modal__x:hover { color: var(--t-strong); background: rgba(255,255,255,0.06); }
.thl-modal__x svg { width: 18px; height: 18px; }
.thl-modal__brand { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.thl-modal__brand img { height: 26px; width: auto; }
.thl-modal__brand span { font-weight: 600; font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--t-mid); }
.thl-modal__card h2 { font-size: 23px; font-weight: 700; letter-spacing: -0.01em; color: var(--t-strong); margin: 0 0 6px; }
.thl-modal__sub { font-size: 14px; color: var(--t-soft); line-height: 1.5; margin: 0 0 22px; }

/* Restyle the native WP login form inside the modal. */
.thl-modal #loginform p { margin: 0 0 14px; }
.thl-modal #loginform label { display: block; font-size: 13px; font-weight: 600; color: var(--t-mid); margin-bottom: 7px; }
.thl-modal #loginform input[type=text],
.thl-modal #loginform input[type=password] { width: 100%; background: rgba(255,255,255,0.04); border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; font-size: 15px; color: var(--t-strong); font-family: inherit; transition: border-color 0.2s, background 0.2s; }
.thl-modal #loginform input[type=text]:focus,
.thl-modal #loginform input[type=password]:focus { outline: none; border-color: var(--blue); background: rgba(122,175,201,0.06); }
.thl-modal #loginform .login-remember label { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 500; color: var(--t-soft); cursor: pointer; }
.thl-modal #loginform .login-remember input { width: 16px; height: 16px; accent-color: var(--blue); }
.thl-modal #loginform .login-submit { margin-top: 18px; margin-bottom: 0; }
/* Submit button hardened against Kadence focus/active bleed (feedback). */
.thl-modal #loginform .button,
.thl-modal #loginform input[type=submit] { display: flex; align-items: center; justify-content: center; width: 100%; background: var(--blue) !important; color: #0c1018 !important; font-size: 15px; font-weight: 700; font-family: inherit; padding: 13px; border-radius: 10px; border: 0 !important; cursor: pointer; transition: background 0.2s, transform 0.15s; box-shadow: none !important; text-shadow: none !important; }
.thl-modal #loginform .button:hover,
.thl-modal #loginform input[type=submit]:hover { background: var(--blue-bright) !important; color: #0c1018 !important; transform: translateY(-1px); }
.thl-modal #loginform .button:focus, .thl-modal #loginform .button:active,
.thl-modal #loginform input[type=submit]:focus, .thl-modal #loginform input[type=submit]:active { background: var(--blue) !important; color: #0c1018 !important; outline: none; }

.thl-modal__foot { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; text-align: center; }
.thl-modal__foot > a { font-size: 13.5px; }
.thl-modal__foot a { color: var(--blue-bright); font-weight: 600; }
.thl-modal__foot a:hover { text-decoration: underline; }
.thl-modal__foot > span { font-size: 13.5px; color: var(--t-soft); }
body.thl-modal-open { overflow: hidden; }

/* ============================================================ */
/* COURSE CARD — member progress bar + completion tick          */
/* Global on purpose: cards render on the homepage (home.css),   */
/* the BD page (home.css), the course related rail (course.css)  */
/* and the pathway (pathway.css), each with its own card base.   */
/* These decorations only need .card-art to be position:relative */
/* + overflow:hidden, which every surface already sets. The      */
/* .card-tags cluster re-homes the existing "New" pill so the    */
/* tick can sit beside it; .card-tags .card-new (higher          */
/* specificity) neutralises each surface's absolute .card-new     */
/* without editing those files. Markup is gated to members in PHP.*/
/* ============================================================ */
.card-tags { position: absolute; top: 12px; right: 12px; z-index: 5; display: flex; align-items: center; gap: 7px; }
.card-tags .card-new { position: static; top: auto; right: auto; }
.card-done { width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: var(--navy-deeper); display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 10px rgba(0,0,0,0.45); flex-shrink: 0; }
.card-done svg { width: 14px; height: 14px; }
.card-prog { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; height: 5px; background: rgba(255,255,255,0.18); display: block; }
.card-prog-fill { display: block; height: 100%; background: var(--blue); transition: width 0.5s var(--ease-out); }
