/* ================================================================
   HIT storefront — "Infra data hub" design
   (mockup: D:\myProjects\Hit mockup\hit-infra-hub). Public pages only, loaded after
   theme.css + dynamic-theme.css. Classes are prefixed hub- so Bootstrap's .card / .badge /
   .btn / .nav keep working for the parts of the site this design does not cover.
   The selectors repeat theme.css's ":root:not(:has(#sidebarOverlay))" so these tokens win over it.
   ================================================================ */
:root:not(:has(#sidebarOverlay)){
  --hub-navy:#0E1B2C; --hub-navy2:#172A40; --hub-page:#F2F4F7; --hub-card:#FFFFFF; --hub-ink:#132033;
  --hub-sub:#566579; --hub-rule:#DCE2E9; --hub-brand:#F26B1D; --hub-link:#1F5FBF; --hub-plate-bg:#FDECEE;
  --hub-t0:#C8102E; --hub-t1:#1B7F55; --hub-t2:#B7700A; --hub-t3:#5B45A8;
  --hub-ui:"Archivo",system-ui,-apple-system,"Segoe UI",sans-serif;
  --hub-mono:"IBM Plex Mono",ui-monospace,Consolas,monospace;
  --hub-wrap:1200px;
  /* the rest of the site (Bootstrap parts, other pages) picks the palette up through the theme tokens */
  --color-primary:var(--hub-brand); --color-secondary:var(--hub-navy2); --color-accent:var(--hub-brand);
  --color-bg:var(--hub-page); --color-surface:var(--hub-card); --color-text-primary:var(--hub-ink);
  --color-text-secondary:var(--hub-sub); --color-border:var(--hub-rule);
  --font-heading:var(--hub-ui); --font-body:var(--hub-ui);
  --border-radius:10px; --card-border:1px solid var(--hub-rule); --card-shadow:none;
}
:root[data-theme="dark"]:not(:has(#sidebarOverlay)){
  --hub-page:#0B141E; --hub-card:#132131; --hub-ink:#E4EBF2; --hub-sub:#94A6BA; --hub-rule:#24364A;
  --hub-link:#7FB0FF; --hub-plate-bg:#3A1620;
  --color-bg:var(--hub-page); --color-surface:var(--hub-card); --color-text-primary:var(--hub-ink);
  --color-text-secondary:var(--hub-sub); --color-border:var(--hub-rule); --card-border:1px solid var(--hub-rule);
  color-scheme:dark;
}
/* the pages' own dark rules paint Bootstrap cards #16213e; keep them on the hub palette */
[data-theme="dark"] body{background:var(--hub-page) !important;}
[data-theme="dark"] .card{background:var(--hub-card) !important;color:var(--hub-ink);}
[data-theme="dark"] .text-muted{color:var(--hub-sub) !important;}
[data-theme="dark"] .form-control::placeholder{color:#7F93AA;}
[data-theme="dark"] .form-text{color:var(--hub-sub);}

body{background:var(--hub-page);color:var(--hub-ink);font-family:var(--hub-ui);font-size:16px;line-height:1.6;}
h1,h2,h3,h4,h5,h6{font-family:var(--hub-ui);color:var(--hub-ink);}
a{color:var(--hub-link);}
a:hover{color:var(--hub-link);}
:focus-visible{outline:3px solid var(--hub-brand);outline-offset:2px;}
.hub-wrap{max-width:var(--hub-wrap);margin:0 auto;padding-inline:24px;}
.hub-mono{font-family:var(--hub-mono);font-variant-numeric:tabular-nums;}
.hub-t0{--c:var(--hub-t0);} .hub-t1{--c:var(--hub-t1);} .hub-t2{--c:var(--hub-t2);} .hub-t3{--c:var(--hub-t3);}

/* ── Header ───────────────────────────────────────────────────── */
.hub-top{background:var(--hub-navy);color:#E9EEF4;position:sticky;top:0;z-index:1030;}
.hub-top .hub-wrap{display:flex;align-items:center;gap:24px;padding-block:12px;min-height:60px;}
.hub-logo{display:flex;align-items:center;gap:10px;font-weight:800;white-space:nowrap;color:#fff;text-decoration:none;min-width:0;}
.hub-logo:hover{color:#fff;}
.hub-logo img{width:auto;height:34px;max-width:200px;object-fit:contain;background:#fff;border-radius:6px;padding:3px 4px;flex:none;}
.hub-logo-name{display:flex;flex-direction:column;min-width:0;line-height:1.25;font-size:1rem;}
.hub-logo-name > span{overflow:hidden;text-overflow:ellipsis;}
.hub-logo small{display:block;font-weight:500;font-size:11px;color:#9DB0C6;letter-spacing:.05em;line-height:1.2;text-transform:uppercase;
  overflow:hidden;text-overflow:ellipsis;}
/* menu: plain links 20px apart (mockup .nav); an item with a sub-menu keeps a faint arrow */
.hub-nav{display:flex;gap:20px;align-items:center;font-size:15px;min-width:0;flex:1 1 auto;color:#C5D1DE;}
.hub-nav .wm-nav-link{color:#C5D1DE;padding:4px 0;font-size:15px;font-weight:400;border-radius:0;background:none !important;gap:.25rem;line-height:1.6;}
.hub-nav .wm-nav-link:hover,.hub-nav .wm-nav-link:focus-visible,.hub-nav .dropdown.show > .wm-nav-link{color:#fff;}
.hub-nav .wm-nav-link.active,.hub-nav .wm-nav-link[aria-current="page"]{color:#fff;font-weight:600;}
.hub-nav .wm-nav-link.dropdown-toggle::after{border-top-width:.28em;border-right-width:.28em;border-left-width:.28em;margin-left:.3rem;opacity:.55;vertical-align:.18em;}
/* every header drop-down (menu, "More", language, account): navy like the header, orange (brand) for hover and the
   current choice; the same in light and dark mode */
.hub-top .dropdown-menu{background:var(--hub-navy2) !important;border:1px solid #2A3F58 !important;border-top:1px solid #2A3F58 !important;
  border-radius:10px;box-shadow:0 12px 32px rgba(0,0,0,.35);padding:6px;margin-top:10px !important;animation:none;}
.hub-top .wm-menu{min-width:220px;}
.hub-top .dropdown-menu .dropdown-menu{margin-top:0 !important;}
.hub-top .dropdown-menu .dropdown-item{font-size:14.5px;font-weight:400;color:#D6E0EA !important;background:none;border-radius:7px;
  padding:8px 12px;transform:none !important;}
.hub-top .dropdown-menu .dropdown-item:hover,.hub-top .dropdown-menu .dropdown-item:focus,
.hub-top .wm-menu .dropdown-submenu:hover > .dropdown-item{background:rgba(242,107,29,.14) !important;color:#fff !important;}
.hub-top .dropdown-menu .dropdown-item:active,.hub-top .dropdown-menu .dropdown-item.active,
.hub-top .dropdown-menu .dropdown-item[aria-current="page"]{background:var(--hub-brand) !important;color:#fff !important;font-weight:600;}
.hub-top .dropdown-menu .dropdown-item i{color:inherit;}
.hub-top .dropdown-menu .dropdown-item.text-danger{color:#FF9A8F !important;}
.hub-top .dropdown-menu .dropdown-divider{border-color:#2A3F58;opacity:1;}
.hub-top .dropdown-menu .dropdown-header,.hub-top .dropdown-menu .dropdown-item-text{color:#8DA0B6;}
.hub-top .dropdown-menu::-webkit-scrollbar{width:6px;}
.hub-top .dropdown-menu::-webkit-scrollbar-thumb{background:#33475F;border-radius:3px;}
.hub-tools{margin-left:auto;display:flex;gap:8px;align-items:center;flex:none;}
.hub-icon-btn{display:inline-flex;align-items:center;justify-content:center;gap:.35rem;background:none;border:1px solid #33475F;
  color:#D6E0EA;border-radius:7px;padding:5px 10px;font:inherit;font-size:13px;line-height:1.4;cursor:pointer;text-decoration:none;white-space:nowrap;}
.hub-icon-btn:hover,.hub-icon-btn:focus-visible{border-color:#5B7391;color:#fff;}
.hub-icon-btn.solid{background:var(--hub-brand);border-color:var(--hub-brand);color:#fff;font-weight:700;}
.hub-icon-btn.solid:hover{filter:brightness(1.08);}
.hub-top .auth-avatar{width:30px;height:30px;border-radius:50%;background:rgba(255,255,255,.18);color:#fff;display:flex;
  align-items:center;justify-content:center;font-weight:700;font-size:.85rem;}
/* the translate control (fragments/translate) looks like the other tools */
.hub-tools #wmTranslate > .btn{background:none !important;border:1px solid #33475F !important;color:#D6E0EA !important;border-radius:7px !important;
  padding:5px 10px !important;font-size:13px;line-height:1.4;}
.hub-tools #wmTranslate > .btn:hover{border-color:#5B7391 !important;color:#fff !important;}

/* ── Hero (home) ──────────────────────────────────────────────── */
/* overflow visible: the search suggestions list must show below the banner (the lines SVG clips itself) */
.hub-hero{background:linear-gradient(180deg,var(--hub-navy),var(--hub-navy2));color:#fff;position:relative;overflow:visible;}
.hub-hero .hub-lines{position:absolute;inset:0;width:100%;height:100%;opacity:.35;pointer-events:none;overflow:hidden;}
.hub-hero .hub-wrap{position:relative;padding-block:19px 23px;}   /* 25px less above the heading and below the search box */
.hub-hero h1{font-size:clamp(26px,4vw,40px);line-height:1.12;margin:0 0 10px;max-width:760px;letter-spacing:-.015em;text-wrap:balance;color:#fff;font-weight:800;}
.hub-hero p{color:#B8C6D6;margin:0 0 20px;max-width:60ch;}
.hub-search{display:flex;background:#fff;border-radius:10px;padding:6px;gap:6px;max-width:640px;}
.hub-search input{flex:1;min-width:0;border:0;font:inherit;font-size:17px;padding:8px 10px;color:#132033;background:transparent;}
.hub-search input:focus{outline:none;}
/* search suggestions under a search box (static/js/search-suggest.js) */
.hub-sg{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:60;background:#fff;color:#132033;border:1px solid #DCE2E9;border-radius:10px;box-shadow:0 12px 32px rgba(14,27,44,.22);overflow:hidden;text-align:left;font-size:15px;min-width:260px;}
.hub-sg-item,.hub-sg-all{display:flex;align-items:flex-start;gap:10px;padding:9px 14px;color:#132033;text-decoration:none;border-bottom:1px solid #EEF1F5;}
.hub-sg-item .bi{color:#8DA0B6;margin-top:2px;flex:none;}
.hub-sg-txt{display:flex;flex-direction:column;min-width:0;}
.hub-sg-title{font-weight:600;line-height:1.3;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;}
.hub-sg-title b{color:var(--hub-brand);font-weight:800;}
.hub-sg-txt small{color:#566579;font-size:12.5px;margin-top:1px;}
.hub-sg-item:hover,.hub-sg-item.active{background:#FFF4EC;}
.hub-sg-all{border-bottom:0;font-size:14px;font-weight:600;color:var(--hub-brand);background:#FAFBFC;align-items:center;}
.hub-sg-all:hover{background:#FFF4EC;color:var(--hub-brand);}
.hub-hsearch .hub-sg{left:auto;right:0;width:min(420px,92vw);}
[data-theme="dark"] .hub-sg{background:#162436;border-color:#26384E;color:#E3EAF2;}
[data-theme="dark"] .hub-sg-item,[data-theme="dark"] .hub-sg-all{color:#E3EAF2;border-color:#22344A;}
[data-theme="dark"] .hub-sg-all{background:#1A2B40;}
[data-theme="dark"] .hub-sg-item:hover,[data-theme="dark"] .hub-sg-item.active,[data-theme="dark"] .hub-sg-all:hover{background:#22344A;}
[data-theme="dark"] .hub-sg-txt small{color:#9FB0C3;}
.hub-search button{border:0;background:var(--hub-brand);color:#fff;font:inherit;font-weight:700;border-radius:7px;padding:8px 20px;cursor:pointer;}
.hub-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px;}
.hub-chip{font-size:13.5px;border:1px solid #3A5170;border-radius:99px;padding:4px 12px;color:#D6E0EA;text-decoration:none;
  max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.hub-chip:hover{border-color:#fff;color:#fff;}

/* ── Sections ─────────────────────────────────────────────────── */
.hub-main{padding-block:32px 48px;}
.hub-main > .hub-wrap{display:flex;flex-direction:column;gap:36px;}
.hub-h2,.hub-main h2.hub-h2{font-size:22px;margin:0;letter-spacing:-.01em;line-height:1.25;font-weight:700;}
.hub-sechead{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:14px;}
.hub-sechead a{font-size:14px;color:var(--hub-link);font-weight:600;text-decoration:none;white-space:nowrap;}
.hub-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;}
.hub-tile{background:var(--hub-card);border:1px solid var(--hub-rule);border-radius:10px;padding:18px;display:flex;flex-direction:column;
  gap:6px;transition:border-color .15s;color:var(--hub-ink);text-decoration:none;}
.hub-tile:hover{border-color:var(--c);color:var(--hub-ink);}
.hub-tile .hub-ic{width:38px;height:38px;border-radius:8px;display:grid;place-items:center;color:#fff;font-weight:800;font-size:13px;background:var(--c);}
.hub-tile b{font-size:16px;}
.hub-tile span{font-size:13.5px;color:var(--hub-sub);}
.hub-tile .hub-go{margin-top:auto;font-weight:600;color:var(--c);}
.hub-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;}
.hub-cards.three{grid-template-columns:repeat(3,minmax(0,1fr));}
.hub-cards.four{grid-template-columns:repeat(4,minmax(0,1fr));}
.hub-card{background:var(--hub-card);border:1px solid var(--hub-rule);border-radius:10px;overflow:hidden;display:flex;flex-direction:column;
  color:var(--hub-ink);text-decoration:none;position:relative;}
.hub-card:hover{color:var(--hub-ink);border-color:var(--c,var(--hub-link));}
.hub-card > img,.hub-card .hub-noimg{aspect-ratio:1200/628;object-fit:cover;width:100%;display:block;}
.hub-noimg{background:linear-gradient(135deg,var(--c,var(--hub-navy2)),var(--hub-navy));display:flex !important;align-items:center;justify-content:center;
  color:rgba(255,255,255,.4);font-size:2rem;}
.hub-card .hub-body{padding:12px 14px 16px;display:flex;flex-direction:column;gap:6px;min-width:0;}
.hub-card h3{margin:0;font-size:16px;line-height:1.3;text-wrap:balance;font-weight:700;color:var(--hub-ink);}
.hub-card[hidden]{display:none;}
.hub-pin{position:absolute;top:.5rem;left:.5rem;z-index:2;background:var(--hub-brand);color:#fff;font-size:11px;font-weight:700;border-radius:4px;padding:1px 7px;}
.hub-badge{display:inline-flex;align-items:center;gap:6px;font-size:11.5px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;
  color:var(--c,var(--hub-sub));text-decoration:none;}
.hub-badge::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--c,var(--hub-sub));flex:none;}
a.hub-badge:hover{color:var(--c);text-decoration:underline;}
.hub-meta{font-size:13px;color:var(--hub-sub);display:flex;flex-wrap:wrap;gap:4px 12px;align-items:center;}
.hub-empty{color:var(--hub-sub);font-size:14px;padding:10px 0;}
/* ranked list (Trending) */
.hub-rank{display:flex;flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;}
.hub-rank a{display:flex;align-items:center;gap:14px;background:var(--hub-card);border:1px solid var(--hub-rule);border-radius:10px;padding:10px 14px;
  color:var(--hub-ink);text-decoration:none;font-weight:600;line-height:1.35;}
.hub-rank a:hover{border-color:var(--hub-link);}
.hub-rank .hub-n{font-family:var(--hub-mono);font-weight:600;color:var(--hub-brand);min-width:22px;}
.hub-rank .hub-meta{margin-left:auto;white-space:nowrap;font-weight:400;}
/* boxes (sidebar / newsletter) */
.hub-box{background:var(--hub-card);border:1px solid var(--hub-rule);border-radius:10px;padding:16px;font-size:14.5px;}
.hub-box > b,.hub-box > .hub-boxhead{display:block;font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:var(--hub-sub);margin:0 0 10px;font-weight:700;}
.hub-box ol,.hub-box ul{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:6px;}
.hub-box a{color:var(--hub-ink);text-decoration:none;}
.hub-box a:hover{color:var(--hub-link);}
.hub-catlist{list-style:none;padding:0 !important;}
.hub-catlist a[aria-current="page"]{color:var(--hub-brand);font-weight:700;}
.hub-tags{display:flex;flex-wrap:wrap;gap:8px;}
.hub-tags a{background:var(--hub-card);border:1px solid var(--hub-rule);border-radius:99px;padding:4px 12px;font-size:14px;color:var(--hub-ink);text-decoration:none;}
.hub-tags a:hover{border-color:var(--hub-link);color:var(--hub-link);}
.hub-field{font:inherit;font-size:15px;border:1px solid var(--hub-rule);border-radius:7px;padding:9px 12px;width:100%;color:var(--hub-ink);background:var(--hub-page);}
.hub-field:focus{outline:2px solid var(--hub-link);outline-offset:0;}
.hub-btn{display:inline-flex;align-items:center;justify-content:center;gap:.35rem;font:inherit;font-size:14px;font-weight:700;border-radius:7px;padding:7px 14px;
  background:var(--hub-brand);color:#fff;border:0;cursor:pointer;text-decoration:none;}
.hub-btn:hover{color:#fff;filter:brightness(1.08);}
.hub-btn.ghost{background:transparent;border:1px solid var(--hub-rule);color:var(--hub-ink);}
.hub-btn.ghost:hover{border-color:var(--hub-link);color:var(--hub-link);filter:none;}
.hub-newsletter{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:16px;align-items:center;}
.hub-newsletter form{display:flex;gap:8px;flex-wrap:wrap;}
.hub-newsletter .hub-field{flex:1 1 160px;width:auto;}
/* web stories strip */
.hub-stories{display:flex;gap:14px;overflow-x:auto;scrollbar-width:none;padding-bottom:2px;}
.hub-stories::-webkit-scrollbar{display:none;}
.hub-story{width:72px;flex:none;text-align:center;font-size:12px;color:var(--hub-ink);text-decoration:none;}
.hub-story > span:first-child{display:block;width:64px;height:64px;border-radius:50%;border:2.5px solid var(--hub-brand);padding:2px;margin:0 auto 4px;overflow:hidden;}
.hub-story img,.hub-story i{width:100%;height:100%;object-fit:cover;border-radius:50%;display:flex;align-items:center;justify-content:center;
  background:var(--hub-navy2);color:#fff;}
.hub-story > span:last-child{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}
/* featured banner (posts ticked "Show in home page banner") */
.hub-banner{border-radius:12px;overflow:hidden;border:1px solid var(--hub-rule);background:var(--hub-navy);}
.hub-banner .carousel-item > a{display:block;position:relative;color:#fff;text-decoration:none;}
.hub-banner .hub-banner-media{aspect-ratio:2/1;max-height:520px;width:100%;position:relative;overflow:hidden;background:var(--hub-navy);}
.hub-banner .hub-banner-media img{width:100%;height:100%;object-fit:cover;display:block;}
.hub-banner .hub-banner-text{position:absolute;left:0;right:0;bottom:0;padding:48px 22px 34px;background:linear-gradient(transparent,rgba(14,27,44,.92));}
.hub-banner h3{color:#fff;font-size:clamp(20px,2.6vw,30px);line-height:1.2;margin:6px 0 4px;font-weight:800;text-wrap:balance;}
.hub-banner p{color:#B8C6D6;margin:0;font-size:14.5px;}
.hub-banner .hub-badge{color:#fff;}

/* ── Category page ────────────────────────────────────────────── */
.hub-crumb{font-size:14px;color:var(--hub-sub);margin:0;}
.hub-crumb a{color:var(--hub-link);text-decoration:none;}
.hub-catpage,.hub-art{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:36px;align-items:start;}
.hub-cathead h1{font-size:clamp(28px,4vw,40px);line-height:1.1;margin:0 0 6px;letter-spacing:-.015em;font-weight:800;}
.hub-cathead p{color:var(--hub-sub);margin:6px 0 0;}
.hub-cathead .hub-cathero{width:100%;aspect-ratio:16/5;max-height:260px;object-fit:cover;border-radius:12px;border:1px solid var(--hub-rule);margin:0 0 14px;}
.hub-cattools{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:18px 0 16px;}
.hub-cattools .hub-field{max-width:360px;flex:1 1 220px;}
.hub-cattools select.hub-field{width:auto;flex:none;}
.hub-subcats{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 0;}
.hub-subcats a{font-size:13.5px;border:1px solid var(--hub-rule);background:var(--hub-card);color:var(--hub-ink);border-radius:99px;padding:4px 12px;text-decoration:none;}
.hub-subcats a[aria-current="page"],.hub-subcats a:hover{background:var(--hub-navy);color:#fff;border-color:var(--hub-navy);}
.hub-aside{display:flex;flex-direction:column;gap:16px;position:sticky;top:84px;min-width:0;}
/* the post page's column (related posts) can be taller than the screen: it scrolls with the page */
.hub-art .hub-aside{position:static;}
.hub-pager{display:flex;flex-wrap:wrap;gap:6px;margin-top:24px;list-style:none;padding:0;}
.hub-pager a,.hub-pager span{display:inline-flex;align-items:center;justify-content:center;min-width:38px;height:38px;padding:0 10px;border-radius:7px;
  border:1px solid var(--hub-rule);background:var(--hub-card);color:var(--hub-ink);text-decoration:none;font-size:14px;}
.hub-pager a:hover{border-color:var(--hub-link);color:var(--hub-link);}
.hub-pager .on{background:var(--hub-navy);border-color:var(--hub-navy);color:#fff;font-weight:700;}
.hub-pager .off{opacity:.45;pointer-events:none;}
.hub-details{background:var(--hub-navy);color:#E4EBF2;border-radius:12px;padding:20px;margin-block:18px;}
.hub-details > b{display:block;font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:#8FA3BA;margin-bottom:10px;}
.hub-details dl{margin:0;display:grid;grid-template-columns:auto 1fr;gap:4px 16px;font-size:14.5px;}
.hub-details dt{color:#8FA3BA;font-weight:400;}
.hub-details dd{margin:0;color:#fff;overflow-wrap:anywhere;}
.hub-details a{color:#7FB0FF;}
.hub-details pre{background:rgba(255,255,255,.08);color:#E4EBF2;border-radius:6px;padding:8px;font-size:12.5px;margin:0;white-space:pre-wrap;}

/* ── Post page ────────────────────────────────────────────────── */
.hub-art h1{font-size:clamp(26px,3.6vw,36px);line-height:1.15;margin:6px 0 6px;letter-spacing:-.015em;text-wrap:balance;font-weight:800;}
.hub-art .hub-postmeta{margin:10px 0 0;}
.hub-art .hub-postmeta a{color:inherit;text-decoration:none;}
.hub-art .hub-postmeta .verified{color:var(--hub-t1);font-weight:600;}
.hub-art .hub-postmeta .hub-badge{color:var(--c);}
.hub-art .hub-postmeta a:hover{color:var(--hub-link);}
.hub-cats2{display:inline-flex;flex-wrap:wrap;gap:4px 12px;}
.hub-feature{margin:16px 0 0;border-radius:12px;overflow:hidden;border:1px solid var(--hub-rule);}
.hub-feature img{width:100%;height:auto;display:block;}
.hub-art .post-content{margin-top:18px;font-size:16.5px;line-height:1.7;max-width:70ch;}
.hub-art .post-content > * + *{margin-top:14px;}
.hub-art .post-content p{margin-bottom:0;}
.hub-art .post-content h2{font-size:22px;margin-top:30px;font-weight:700;letter-spacing:-.01em;}
.hub-art .post-content h3{font-size:18px;margin-top:24px;font-weight:700;}
.hub-art .post-content a{color:var(--hub-link);}
.hub-art .post-content img{border-radius:10px;}
.hub-art .post-content table{border-collapse:collapse;width:100%;display:block;overflow-x:auto;}
.hub-art .post-content th{text-align:left;font-size:12px;text-transform:uppercase;letter-spacing:.05em;color:var(--hub-sub);font-weight:600;padding:7px 8px;border-bottom:1px solid var(--hub-rule);}
.hub-art .post-content td{padding:9px 8px;border-bottom:1px solid var(--hub-rule);font-size:14.5px;vertical-align:top;}
.hub-art .post-content blockquote{border-left:4px solid var(--hub-brand);background:var(--hub-card);border-radius:0 8px 8px 0;padding:12px 16px;margin-left:0;}
.hub-art .post-content details{background:var(--hub-card);border:1px solid var(--hub-rule);border-radius:8px;padding:12px 16px;}
.hub-art .post-content summary{font-weight:600;cursor:pointer;}
/* "Contents" box built by the post script (post-toc) in the mockup's "On this page" look */
.hub-art .post-toc{background:var(--hub-card);border:1px solid var(--hub-rule);border-left:1px solid var(--hub-rule);border-radius:10px;padding:14px 18px;font-size:15px;}
.hub-art .post-toc .post-toc-head{font-family:var(--hub-ui);font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:var(--hub-sub);}
.hub-art .post-toc .post-toc-head i{display:none;}
.hub-art .post-toc .post-toc-toggle{color:var(--hub-link);text-transform:none;letter-spacing:0;font-size:13px;}
.hub-art .post-toc .post-toc-list{padding-left:20px;margin-top:8px;}
.hub-art .post-toc .post-toc-list a{color:var(--hub-link);}
/* FAQ: Bootstrap accordion re-dressed as the mockup's <details> rows */
.hub-faq .accordion{--bs-accordion-bg:var(--hub-card);--bs-accordion-border-color:var(--hub-rule);--bs-accordion-color:var(--hub-ink);
  --bs-accordion-btn-color:var(--hub-ink);--bs-accordion-active-color:var(--hub-ink);--bs-accordion-active-bg:var(--hub-card);
  --bs-accordion-btn-focus-box-shadow:none;}
.hub-faq .accordion-item{border:1px solid var(--hub-rule) !important;border-radius:8px !important;overflow:hidden;}
.hub-faq .accordion-item + .accordion-item{margin-top:8px;}
.hub-faq .accordion-button{font-weight:600 !important;font-size:16px !important;padding:12px 16px;}
.hub-faq .accordion-body{padding:0 16px 14px;}
.hub-art .tag-badge{background:var(--hub-card);border:1px solid var(--hub-rule);border-radius:99px;padding:4px 12px;font-size:14px;color:var(--hub-ink);}
.hub-art .tag-badge:hover{background:var(--hub-card);border-color:var(--hub-link);color:var(--hub-link);}
.hub-art .wm-share-bar{background:var(--hub-page) !important;border-top:1px solid var(--hub-rule) !important;}
.hub-rel{display:flex;flex-direction:column;gap:12px;}
.hub-rel a{display:flex;flex-direction:column;gap:8px;font-weight:600;line-height:1.3;font-size:14px;color:var(--hub-ink);text-decoration:none;}
.hub-rel a:hover{color:var(--hub-link);}
.hub-rel img,.hub-rel .hub-noimg{border-radius:8px;aspect-ratio:1200/628;object-fit:cover;width:100%;}
.hub-rel .hub-badge{font-size:10.5px;}
.hub-postnav{display:flex;gap:12px;margin-top:24px;}
.hub-postnav a{flex:1;max-width:50%;display:flex;flex-direction:column;gap:2px;background:var(--hub-card);border:1px solid var(--hub-rule);border-radius:10px;
  padding:10px 14px;color:var(--hub-ink);text-decoration:none;font-weight:600;font-size:14px;line-height:1.3;min-width:0;}
.hub-postnav a small{font-weight:400;color:var(--hub-sub);font-size:12px;}
.hub-postnav a:hover{border-color:var(--hub-link);}
.hub-postnav a.next{margin-left:auto;text-align:right;}
.hub-panel{background:var(--hub-card) !important;border:1px solid var(--hub-rule) !important;border-radius:10px !important;box-shadow:none !important;}

/* ── Footer ───────────────────────────────────────────────────── */
.hub-foot{background:var(--hub-navy);color:#9DB0C6;font-size:14px;margin-top:0;}
.hub-foot .hub-wrap{padding-block:32px;}
.hub-fcols{display:flex;flex-wrap:wrap;gap:24px;}
.hub-fcols > div{flex:1 1 150px;min-width:0;}
.hub-fcols > .hub-fbrand{flex:1.4 1 240px;}
.hub-foot b{color:#fff;display:block;margin-bottom:8px;}
.hub-foot a{display:block;padding-block:2px;color:#9DB0C6;text-decoration:none;}
.hub-foot a:hover{color:#fff;}
.hub-foot .hub-social{display:flex;gap:8px;flex-wrap:wrap;}
.hub-foot .hub-social a{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;border:1px solid #33475F;padding:0;}
.hub-foot .hub-social a:hover{border-color:#fff;}
.hub-foot form{display:flex;gap:6px;flex-wrap:wrap;margin-top:6px;}
.hub-foot input{flex:1 1 140px;min-width:0;font:inherit;font-size:14px;border:1px solid #33475F;background:transparent;color:#fff;border-radius:7px;padding:6px 10px;}
.hub-foot input::placeholder{color:#7F93AA;}
.hub-foot button{border:0;background:var(--hub-brand);color:#fff;font:inherit;font-size:13px;font-weight:700;border-radius:7px;padding:6px 14px;cursor:pointer;}
.hub-foot .hub-store{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px;}
.hub-foot .hub-store a{display:inline-flex;gap:6px;align-items:center;border:1px solid #33475F;border-radius:7px;padding:5px 12px;color:#D6E0EA;}
.hub-foot .hub-legal{border-top:1px solid #24364A;margin-top:24px;padding-top:16px;font-size:13px;}

/* ── Bottom tab bar + off-canvas menu (phones / tablets) ──────── */
.wm-bnav{background:var(--hub-card) !important;border-top:1px solid var(--hub-rule) !important;box-shadow:none !important;}
.wm-bnav-link{color:var(--hub-sub) !important;font-size:12px !important;font-family:var(--hub-ui);}
.wm-bnav-link.active,.wm-bnav-link:hover{color:var(--hub-brand) !important;font-weight:700;}
.wm-mnav{background:var(--hub-card) !important;color:var(--hub-ink) !important;}
.wm-mnav .offcanvas-header{background:var(--hub-navy) !important;}
.wm-mnav-link{color:var(--hub-ink) !important;}
.wm-mnav-link.active,.wm-mnav-link:hover{color:var(--hub-brand) !important;}
.wm-mnav-solid{background:var(--hub-brand) !important;border-color:var(--hub-brand) !important;}
.wm-mnav-outline{border-color:var(--hub-brand) !important;color:var(--hub-brand) !important;}
.wm-mnav-outline:hover{background:var(--hub-brand) !important;color:#fff !important;}
.wm-mnav-list .wm-mnav-sub{border-left-color:var(--hub-brand) !important;}
.wm-mnav-brand img{background:#fff;border-radius:6px;padding:3px 4px;}

/* ── Cookie notice (fragments/seo :: consent) in the mockup's small floating card ── */
.wm-consent.wm-consent-banner{left:16px !important;right:16px !important;bottom:16px !important;max-width:520px;margin-inline:auto;border-radius:10px;
  padding:10px 14px !important;box-shadow:0 6px 24px rgba(0,0,0,.15) !important;background:var(--hub-card) !important;color:var(--hub-ink) !important;
  border:1px solid var(--hub-rule) !important;font-size:13.5px !important;}
.wm-consent-accept{background:var(--hub-brand) !important;}
.wm-consent-decline{border-color:var(--hub-rule) !important;color:var(--hub-ink) !important;}

/* ── Breakpoints (Bootstrap's lg = the header switches to the phone layout) ── */
@media (max-width:991.98px){
  .hub-nav,.hub-tools .hub-hide-sm{display:none !important;}
  .hub-tiles{grid-template-columns:repeat(2,minmax(0,1fr));}
  .hub-catpage,.hub-art{grid-template-columns:minmax(0,1fr);}
  .hub-aside{position:static;}
  .hub-cards.three,.hub-cards.four{grid-template-columns:repeat(2,minmax(0,1fr));}
  .hub-newsletter{grid-template-columns:minmax(0,1fr);}
  .wm-consent.wm-consent-banner{bottom:calc(76px + env(safe-area-inset-bottom)) !important;}
}
@media (max-width:640px){
  .hub-wrap{padding-inline:16px;}
  .hub-top .hub-wrap{gap:12px;}
  .hub-hero .hub-wrap{padding-block:12px 14px;}
  .hub-cards,.hub-cards.three,.hub-cards.four{grid-template-columns:minmax(0,1fr);}
  /* phones: the same stacked card as on computers (title, picture, views), one per row */
  /* phones: no half-empty rows: the newsletter takes the full width, the short link columns sit two per row */
  .hub-fcols{column-gap:16px;}
  .hub-fcols > .hub-fbrand{flex-basis:100%;}
  .hub-fcols > div:not(.hub-fbrand){flex:1 1 calc(50% - 8px);}

  .hub-banner .hub-banner-text{position:static;background:var(--hub-navy);padding:14px 16px 30px;}
  .hub-postnav{flex-direction:column;}
  .hub-postnav a{max-width:none;}
  .hub-postnav a.next{margin-left:0;}
  .hub-details dl{grid-template-columns:minmax(0,1fr);}
  .hub-details dd{margin-bottom:6px;}
}
/* touch screens: the header tools are 40px targets, like the rest of the site's buttons */
@media (pointer:coarse){.hub-icon-btn,.hub-tools #wmTranslate > .btn{min-width:40px;min-height:40px;}}
/* Configurations -> homepage.mobile.posts: phones show only the first N cards of each home section */
@media (max-width:575.98px){.hub-mhide{display:none !important;}}
@media (prefers-reduced-motion:reduce){.hub-tile,.hub-card{transition:none !important;}}
/* dark-mode button: the mockup's ◐ only. The pages' old scripts still swap the hidden <i> to a moon / sun icon. */
#darkModeToggle.hub-icon-btn i{display:none !important;}
/* phone slide-out menu: language choice (the header's language button is hidden on phones, as in the mockup) */
.wm-mnav-lang{padding:12px 16px;border-top:1px solid var(--hub-rule);}
.wm-mnav-lang-title{font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--hub-sub);margin-bottom:8px;}
.wm-mnav-lang-list{display:flex;flex-wrap:wrap;gap:8px;}
.wm-mnav-lang-item{border:1px solid var(--hub-rule);border-radius:999px;padding:5px 12px;font-size:14px;color:var(--hub-ink);text-decoration:none;}
.wm-mnav-lang-item:hover{border-color:var(--hub-brand);color:var(--hub-brand);}
.wm-mnav-lang-item.active{background:var(--hub-brand);border-color:var(--hub-brand);color:#fff;}
/* desktop: the logo, name and tagline never shrink (the menu moves extra links into "More" instead) */
@media (min-width:992px){.hub-logo{flex:none;}}
/* phones: the full name and tagline fit next to ◐ as in the mockup (its ◐ is 33px; ours stays a 36px tap target) */
@media (max-width:575.98px){
  .hub-top .hub-wrap{gap:10px;}
  .hub-tools .hub-icon-btn{min-width:36px !important;min-height:36px !important;}
  .hub-logo small{letter-spacing:.03em;}
}
/* header search: the icon opens a box that slides out to its left, over the menu (the bar does not move) */
.hub-hsearch{position:relative;display:flex;align-items:center;margin:0;}
.hub-hsearch-input{position:absolute;right:calc(100% + 6px);top:50%;transform:translateY(-50%);width:0;opacity:0;pointer-events:none;
  height:32px;padding:0 12px;border:1px solid #33475F;border-radius:7px;background:var(--hub-navy2);color:#fff;font:inherit;font-size:14px;
  transition:width .2s ease,opacity .15s ease;z-index:2;}
.hub-hsearch-input::placeholder{color:#8DA0B6;}
.hub-hsearch-input:focus{outline:none;border-color:var(--hub-brand);box-shadow:0 0 0 3px rgba(242,107,29,.25);}
.hub-hsearch.open .hub-hsearch-input{width:min(227px,27vw);opacity:1;pointer-events:auto;}   /* a third shorter than it was (340px) */
.hub-hsearch.open .hub-hsearch-btn{border-color:var(--hub-brand);color:#fff;}
.hub-hsearch-input::-webkit-search-cancel-button{filter:invert(1);}
.hub-hsearch:not(.open) .hub-hsearch-input{padding:0;border-width:0;}
/* small phones (most Android phones are 360–412 px wide): a smaller logo, name and tagline so they fit beside ◐;
   the narrowest (320 px) let the tagline take two lines instead of cutting it */
@media (max-width:399.98px){
  .hub-top .hub-wrap,.hub-logo{gap:8px;}
  .hub-logo img{height:28px;}
  .hub-logo-name{font-size:15px;}
  .hub-logo small{font-size:10px;letter-spacing:.02em;}
}
@media (max-width:359.98px){
  .hub-logo-name{font-size:14px;}
  .hub-logo small{white-space:normal;}
}
/* post page without the side column (tablets / phones): related posts in a grid, not one huge picture per row */
@media (max-width:991.98px){
  .hub-rel{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;}
}
@media (max-width:640px){
  .hub-rel{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
  .hub-rel a{font-size:13.5px;}
}
/* related posts: the heading is an H2 and each title an H3 (for search engines / screen readers), same look as before */
.hub-box > h2.hub-boxhead{line-height:1.4;}
.hub-rel h3{margin:0;font-size:inherit;font-weight:inherit;line-height:inherit;color:inherit;font-family:inherit;}
/* the Related posts heading: bigger and centred (owner's request) */
.hub-box > h2.hub-relhead{font-size:18px;letter-spacing:.04em;color:var(--hub-ink);text-align:center;margin-bottom:14px;}

/* ── Owner's requests (footer headings, post headings, phone header / bottom bar) ── */
/* footer column headings centred */
.hub-fcols b{text-align:center;}
/* post page: the title and the article's H2 headings, and the contents box title, in the heading colour (#51172c) */
.hub-art h1,.hub-art .post-content h2,.hub-box > h2.hub-relhead{color:#51172c;}
.hub-art .post-toc .post-toc-head{color:#51172c;font-size:15px;font-weight:700;text-transform:none;letter-spacing:0;}
[data-theme="dark"] .hub-art h1,[data-theme="dark"] .hub-art .post-content h2,
[data-theme="dark"] .hub-art .post-toc .post-toc-head,[data-theme="dark"] .hub-box > h2.hub-relhead{color:#E8A3B8;}
/* phones / tablets: the menu button (three lines) before the logo */
.hub-burger{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;flex:none;padding:0;
  border:1px solid #33475F;border-radius:7px;background:none;color:#fff;font-size:22px;line-height:1;}
.hub-burger:hover,.hub-burger:focus-visible{border-color:#5B7391;color:#fff;}
/* phones: one slim bar, the same at the top of the page and while scrolling - the small logo with the site name
   beside it, then ◐ and ☰ (the tagline is left out) */
@media (max-width:575.98px){
  .hub-top .hub-wrap{padding-block:8px;align-items:center;}
  .hub-logo{flex:1 1 auto;gap:8px;}
  .hub-logo img{height:34px;padding:3px 5px;border-radius:7px;}
  .hub-logo-name > span{font-size:16px;letter-spacing:-.01em;}
  .hub-logo small{display:none;}
  .hub-top .hub-burger{width:36px;height:36px;font-size:20px;}
  /* slide-out menu: Sign In and Join side by side */
  .wm-mnav-account > .btn{flex:1 1 0;}
  .wm-mnav-account:has(> .btn){flex-direction:row !important;}
}
/* phones / tablets: the AI helper opens from the bottom bar's "Ask AI" instead of its round button */
@media (max-width:991.98px){
  .wm-ai-fab{display:none !important;}
  .wm-ai-root{right:12px !important;bottom:calc(66px + env(safe-area-inset-bottom)) !important;}
  .wm-ai-panel{bottom:0 !important;}
}
/* home page: each category section's heading in the same red */
.category-section .hub-sechead .hub-h2{color:#51172c;}
[data-theme="dark"] .category-section .hub-sechead .hub-h2{color:#E8A3B8;}
/* phones / tablets: the menu button (three lines) on the right, after the other header buttons */
@media (max-width:991.98px){
  .hub-burger{order:10;margin-left:-16px;}   /* the same 8px gap as between the other header buttons */
  .hub-top .hub-tools{order:5;}
  .hub-top .hub-wrap{padding-block:10px;}
}
@media (max-width:640px){.hub-burger{margin-left:-4px;}}
/* post cards everywhere: the picture, the title under it, then views / author (no category name or date) */
.hub-card > .hub-ctitle{margin:0;padding:12px 14px 6px;font-size:16px;line-height:1.3;text-wrap:balance;font-weight:700;color:var(--hub-ink);}
.hub-card > .hub-ctitle .hub-pin{position:static;display:inline-block;margin:0 6px 0 0;vertical-align:2px;}
.hub-card > .hub-body{padding:0 14px 12px;}
.hub-card > .hub-ctitle:last-child{padding-bottom:14px;}
.hub-card:hover > .hub-ctitle{color:var(--hub-link);}
[data-theme="dark"] .hub-card > .hub-ctitle{color:var(--hub-ink);}
/* home page category sections: the category name centred, "View All →" stays on the right */
.category-section .hub-sechead{display:grid;grid-template-columns:1fr auto 1fr;align-items:baseline;column-gap:12px;}
.category-section .hub-sechead .hub-h2{grid-column:2;text-align:center;}
.category-section .hub-sechead > a{grid-column:3;justify-self:end;white-space:nowrap;}
/* post cards: the title centred */
.hub-card > .hub-ctitle{text-align:center;}
/* home category sections: "View All →" beside the heading on computers; on phones it moves under the posts */
.hub-viewall-end{display:none;}
@media (max-width:575.98px){
  .category-section .hub-viewall-top{display:none;}
  .hub-viewall-end{display:block;width:fit-content;margin:12px auto 0;padding:8px 18px;border:1px solid var(--hub-rule);
    border-radius:999px;background:var(--hub-card);font-weight:600;font-size:14px;color:var(--hub-link);text-decoration:none;}
  .hub-viewall-end:hover{border-color:var(--hub-link);}
}

/* home hero: heading, text and the search box centred (all screens) */
.hub-hero .hub-wrap{text-align:center;}
.hub-hero h1{margin-inline:auto;}
.hub-hero p{margin-inline:auto;}
.hub-hero .hub-search{margin-inline:auto;text-align:left;}

/* smaller phones (under 390px): the site name stays on one line - its size follows the room left beside the logo
   and the buttons (100vw - 201px for the 23-letter name), never under 12px; the logo is a little smaller under 360px */
@media (max-width:389.98px){
  .hub-logo-name > span{white-space:nowrap;font-size:clamp(12px,calc((100vw - 201px) * .0829),16px);}
}
@media (max-width:359.98px){ .hub-logo img{height:28px;} .hub-logo-name > span{font-size:clamp(11px,calc((100vw - 190px) * .0829),16px);} }
/* slide-out menu: the logo with the site name beside it on one line (the panel is a little wider for it) */
.wm-mnav{max-width:320px !important;}
.wm-mnav-brand .offcanvas-title{white-space:nowrap;font-size:15px !important;}
.wm-mnav-brand img{height:28px !important;}
/* footer: the "© … All rights reserved." line centred */
.hub-foot .hub-legal{text-align:center;}
/* footer "Stay updated": name, then email, then the Subscribe button - one under the other */
#newsletter-footer form{flex-direction:column;align-items:stretch;gap:8px;}
#newsletter-footer form input{flex:none;width:100%;}
#newsletter-footer form button{width:100%;padding-block:8px;}
/* the "Stay updated" fields and button a third shorter than the column (two thirds of its width) */
#newsletter-footer form{max-width:66.67%;margin-inline:auto;}   /* centred under the centred heading */

/* ===== Play Store app (TWA): <html class="in-app">, set by the header (AppModeAdvice). Website look unchanged. ===== */
.in-app body{-webkit-tap-highlight-color:transparent;overscroll-behavior-y:none;}
.in-app .hub-top, .in-app .wm-bnav, .in-app .hub-nav, .in-app button, .in-app .btn{-webkit-user-select:none;user-select:none;}
.in-app .hub-store{display:none !important;}          /* "Get it on Google Play" badges: already in the app */
.in-app .wm-bnav a:active, .in-app .btn:active{transform:scale(.97);}
/* Page changes, gestures and the rich look: static/css/app-ui.css + js/app-ui.js (Admin -> Mobile App) */
/* App-only styles go here, e.g. rounded post images in the app only:
   .in-app .post-hero img{border-radius:16px;} */
/* phones / tablets: the header search icon sits just before ◐ (the slide-out menu has no search box). Opened, its box
   slides out over the logo, as wide as the room left of the icon; the suggestions run across the screen under the bar
   (--hsg-top: the header's bottom edge, set by the header script when the box opens) */
@media (max-width:991.98px){
  .hub-hsearch.open .hub-hsearch-input{width:min(340px,calc(100vw - 170px));}
  .hub-hsearch .hub-sg{position:fixed;left:12px;right:12px;width:auto;min-width:0;top:var(--hsg-top,64px);}
}
@media (max-width:991.98px){ .hub-tools #hubSearch{order:1;} .hub-tools #darkModeToggle{order:2;} }   /* search right before ◐ */
