/* The public branch website, version 2: a rich, animated, right-to-left ready design.
   The accent colour is set per branch on <html style="--accent:..."> (see includes/public_top.php).
   Motion is progressive: nothing is hidden without JavaScript, and prefers-reduced-motion switches it off. */
:root {
  --accent: #0061b5;
  --accent-ink: #ffffff;
  --accent-dark: color-mix(in srgb, var(--accent) 78%, #000);
  --accent-soft: color-mix(in srgb, var(--accent) 9%, #fff);
  --accent-line: color-mix(in srgb, var(--accent) 22%, #fff);
  --navy: #071e3a;
  --navy-2: #0d3461;
  --gold: #9bd0ff;
  --ink: #17212f;
  --ink-soft: #566274;
  --paper: #ffffff;
  --paper-2: #f5f6f9;
  --line: #e2e6ee;
  --ok: #1f7a4d;
  --warn: #9a5b00;
  --danger: #b3261e;
  --radius: 20px;
  --shadow: 0 10px 34px rgba(13, 26, 44, .08);
  --shadow-lg: 0 24px 60px rgba(13, 26, 44, .18);
  --wrap: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.pub {
  margin: 0; color: var(--ink); background: var(--paper);
  font-family: "Segoe UI", Tahoma, "Noto Sans Arabic", "Noto Sans", system-ui, -apple-system, sans-serif;
  line-height: 1.75; min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden;
}
body.pub main { flex: 1 0 auto; }
body.pub a { color: var(--accent-dark); text-decoration: none; }
body.pub a:hover { text-decoration: underline; }
body.pub img { max-width: 100%; height: auto; }
body.pub :focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, #fff); outline-offset: 2px; border-radius: 6px; }
.skip-link { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--ink); color: #fff !important; padding: 10px 16px; border-radius: 8px; z-index: 200; }
.skip-link:focus { top: 8px; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }

/* ---- Header ---- */
.pub-header { position: sticky; top: 0; z-index: 90; background: rgba(255, 255, 255, .82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s, background .3s; }
.pub-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(13, 26, 44, .08); background: rgba(255, 255, 255, .95); }
.pub-header .wrap { width: min(100% - 32px, 1380px); }
.pub-header-in { display: flex; align-items: center; gap: 18px; min-height: 72px; }
.pub-brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.05rem; color: var(--ink) !important; line-height: 1.25; }
.pub-brand:hover { text-decoration: none; }
.pub-brand .pub-brand-name { max-width: 170px; font-size: .88rem; line-height: 1.3; }
body.pub .pub-logo { height: 42px; width: auto; max-width: none; display: block; flex: 0 0 auto; }
.logo-card { display: inline-block; background: #fff; border-radius: 16px; padding: 10px 16px; box-shadow: 0 12px 30px rgba(0, 0, 0, .22); line-height: 0; }
body.pub .logo-card img { height: 48px; width: auto; max-width: 100%; display: block; }
.pub-mark { width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; flex: 0 0 auto; overflow: hidden; box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 35%, transparent); }
.pub-mark img { width: 100%; height: 100%; object-fit: cover; }
.pub-nav { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; flex-wrap: nowrap; min-width: 0; }
.pub-nav a { position: relative; padding: 8px 9px; border-radius: 10px; color: var(--ink-soft) !important; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.pub-nav a::after { content: ""; position: absolute; inset-inline: 11px; bottom: 2px; height: 2px; background: var(--accent); border-radius: 2px; transform: scaleX(0); transition: transform .25s var(--ease); }
.pub-nav a:hover { color: var(--ink) !important; text-decoration: none; }
.pub-nav a.pbtn-primary, .pub-nav a.pbtn-primary:hover { color: var(--accent-ink) !important; }
.pub-nav a:hover::after, .pub-nav a[aria-current="page"]::after { transform: scaleX(1); }
.pub-nav a[aria-current="page"] { color: var(--accent-dark) !important; }
.pub-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.lang-switch a { padding: 5px 11px; font-size: .82rem; font-weight: 700; color: var(--ink-soft) !important; }
.lang-switch a[aria-current="true"] { background: var(--navy); color: #fff !important; }
.lang-switch a:hover { text-decoration: none; background: var(--paper-2); }
.lang-switch a[aria-current="true"]:hover { background: var(--navy); }
.menu-btn { display: none; background: #fff; border: 1px solid var(--line); border-radius: 12px; width: 44px; height: 44px; cursor: pointer; color: var(--ink); padding: 0; place-items: center; }
.menu-btn svg { width: 22px; height: 22px; }

/* ---- Buttons ---- */
.pbtn { position: relative; overflow: hidden; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 14px; font-weight: 700; font-size: 1rem; border: 2px solid transparent; cursor: pointer; font-family: inherit; line-height: 1.3; text-decoration: none !important; transition: transform .2s var(--ease), box-shadow .2s, background .2s; }
.pbtn::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%); transform: translateX(-120%); }
.pbtn:hover::before { transform: translateX(120%); transition: transform .7s var(--ease); }
[dir="rtl"] .pbtn::before { transform: translateX(120%); }
[dir="rtl"] .pbtn:hover::before { transform: translateX(-120%); }
.pbtn:hover { transform: translateY(-2px); }
.pbtn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: var(--accent-ink) !important; box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 32%, transparent); }
.pbtn-primary:hover { box-shadow: 0 12px 28px color-mix(in srgb, var(--accent) 42%, transparent); }
.pbtn-ghost { background: #fff; color: var(--ink) !important; border-color: var(--line); }
.pbtn-ghost:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.pbtn-light { background: #fff; color: var(--navy) !important; box-shadow: 0 10px 26px rgba(0, 0, 0, .25); }
.pbtn-gold { background: linear-gradient(135deg, #ffffff, #cfe6ff); color: var(--navy) !important; box-shadow: 0 10px 26px rgba(155, 208, 255, .38); }
.pbtn-outline-light { border-color: rgba(255, 255, 255, .55); color: #fff !important; background: rgba(255, 255, 255, .06); }
.pbtn-outline-light:hover { background: rgba(255, 255, 255, .16); }
.pbtn-sm { padding: 8px 15px; font-size: .92rem; border-radius: 12px; }
.pbtn-danger { background: var(--danger); color: #fff !important; }

/* ---- Hero slider ---- */
.hs { position: relative; color: #fff; overflow: hidden; background: var(--navy); }
.hs-slides { display: grid; }
.hs-slide { grid-area: 1 / 1; position: relative; display: flex; align-items: center; min-height: clamp(580px, 84vh, 780px); padding: 84px 0 120px; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s; overflow: hidden; }
.hs-slide.is-active { opacity: 1; visibility: visible; z-index: 2; }
.hs-slide.t1 { background: linear-gradient(120deg, var(--navy) 0%, color-mix(in srgb, var(--accent) 52%, var(--navy)) 100%); }
.hs-slide.t2 { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 60%, var(--navy)) 0%, var(--navy) 100%); }
.hs-slide.t3 { background: linear-gradient(120deg, var(--navy-2) 0%, color-mix(in srgb, var(--gold) 22%, var(--navy)) 100%); }
.hs-slide.t4 { background: linear-gradient(140deg, var(--navy) 0%, color-mix(in srgb, var(--accent) 40%, var(--navy-2)) 100%); }
.hs-slide.t5 { background: linear-gradient(130deg, color-mix(in srgb, var(--accent) 45%, var(--navy)) 0%, var(--navy-2) 100%); }
.hs-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hs-bg::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .13) 1px, transparent 1.4px); background-size: 28px 28px; mask-image: linear-gradient(to bottom, #000, transparent 85%); -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%); }
.orb { position: absolute; border-radius: 50%; opacity: .38; animation: drift 16s ease-in-out infinite alternate; }
.orb.o1 { width: 520px; height: 520px; inset-inline-end: -140px; top: -180px; background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--accent) 80%, #fff), transparent 68%); }
.orb.o2 { width: 380px; height: 380px; inset-inline-start: -120px; bottom: -160px; background: radial-gradient(circle at 60% 40%, color-mix(in srgb, var(--gold) 70%, transparent), transparent 66%); animation-duration: 21s; animation-delay: -6s; }
.orb.o3 { width: 200px; height: 200px; inset-inline-start: 46%; top: 12%; background: radial-gradient(circle, rgba(255, 255, 255, .5), transparent 65%); opacity: .16; animation-duration: 13s; }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-34px, 30px, 0) scale(1.12); } }
.hs-in { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 56px; align-items: center; }
.hs-eyebrow { display: inline-flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(6px); padding: 6px 16px; border-radius: 999px; font-size: .86rem; font-weight: 700; margin-bottom: 20px; }
.hs-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(155, 208, 255, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(155, 208, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(155, 208, 255, 0); } }
.hs h1, .hs h2.hs-title { margin: 0 0 16px; font-size: clamp(2rem, 5.2vw, 3.7rem); line-height: 1.18; font-weight: 800; letter-spacing: -.01em; }
.hs-title em { font-style: normal; background: linear-gradient(90deg, var(--gold), #ffffff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hs-lead { margin: 0 0 30px; font-size: clamp(1.05rem, 1.9vw, 1.28rem); max-width: 34em; color: rgba(255, 255, 255, .9); }
.hs-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hs-note { margin: 22px 0 0; font-size: .95rem; color: rgba(255, 255, 255, .78); max-width: 40em; }
.hs-slide.is-active .an { animation: rise .9s var(--ease) both; animation-delay: calc(var(--i, 0) * .12s + .12s); }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.86); } to { opacity: 1; transform: none; } }
.hs-slide.is-active .an-pop { animation: pop .9s var(--ease) both; animation-delay: calc(var(--i, 0) * .12s + .25s); }

/* the art of each slide: glass cards, counters, orbits */
.glass { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 26px; box-shadow: 0 30px 70px rgba(0, 0, 0, .28); }
.hs-art { position: relative; }
.orbit { position: relative; aspect-ratio: 1; max-width: 420px; margin-inline: auto; display: grid; place-items: center; }
.orbit i { position: absolute; inset: 0; border-radius: 50%; border: 1.5px dashed rgba(255, 255, 255, .28); animation: spin 38s linear infinite; }
.orbit i:nth-child(2) { inset: 13%; animation-duration: 26s; animation-direction: reverse; border-style: solid; border-color: rgba(255, 255, 255, .16); }
.orbit i:nth-child(3) { inset: 27%; animation-duration: 18s; border-color: rgba(155, 208, 255, .55); }
@keyframes spin { to { transform: rotate(360deg); } }
.orbit-core { position: relative; width: 38%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #ffffff, var(--gold)); color: var(--accent-dark); box-shadow: 0 0 60px rgba(155, 208, 255, .6); }
.orbit-core svg { width: 52%; height: 52%; }
.chip-float { position: absolute; padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: .88rem; animation: float 6s ease-in-out infinite; }
.chip-float.c1 { top: 8%; inset-inline-start: 2%; }
.chip-float.c2 { top: 44%; inset-inline-end: -2%; animation-delay: -2s; }
.chip-float.c3 { bottom: 8%; inset-inline-start: 12%; animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(-12px); } }
.figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 22px; }
.fig { padding: 14px 8px; text-align: center; }
.fig b { display: block; font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.1; font-weight: 800; font-variant-numeric: tabular-nums; }
.fig span { display: block; font-size: .86rem; color: rgba(255, 255, 255, .85); margin-top: 4px; }
.ring { width: 92px; height: 92px; margin: 0 auto 6px; position: relative; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; stroke-linecap: round; }
.ring .bg { stroke: rgba(255, 255, 255, .18); }
.ring .fg { stroke: var(--gold); stroke-dasharray: 251.3; stroke-dashoffset: calc(251.3 * (1 - var(--p, 0))); transition: stroke-dashoffset 1.6s var(--ease); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.02rem; letter-spacing: -.02em; }
.newsstack { position: relative; display: grid; gap: 14px; padding: 22px; }
.newsmini { display: block; padding: 14px 18px; border-radius: 18px; background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .2); color: #fff !important; transition: transform .25s var(--ease), background .25s; }
.newsmini:hover { text-decoration: none; transform: translateX(6px); background: rgba(255, 255, 255, .2); }
[dir="rtl"] .newsmini:hover { transform: translateX(-6px); }
.newsmini small { display: block; color: var(--gold); font-weight: 700; margin-bottom: 2px; }
.newsmini strong { display: block; line-height: 1.5; }
.checklist { display: grid; gap: 14px; padding: 26px; }
.checklist div { display: flex; align-items: center; gap: 14px; font-weight: 700; font-size: 1.05rem; }
.checklist svg { width: 30px; height: 30px; flex: 0 0 auto; padding: 5px; border-radius: 50%; background: var(--gold); color: var(--navy); }
.bignum { font-size: clamp(4.5rem, 12vw, 8rem); line-height: 1; font-weight: 800; text-align: center; color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, .55); background: linear-gradient(180deg, #fff, transparent); -webkit-background-clip: text; background-clip: text; }
.artchips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding: 6px 22px 24px; }
.artchips span { padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); font-weight: 700; font-size: .88rem; }

/* controls */
.hs-ui { position: absolute; inset-inline: 0; bottom: 0; z-index: 5; padding-bottom: 26px; }
.hs-ui-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hs-dots { display: flex; gap: 10px; align-items: center; }
.hs-dot { width: 38px; height: 6px; padding: 0; border: 0; border-radius: 6px; background: rgba(255, 255, 255, .28); cursor: pointer; position: relative; overflow: hidden; transition: background .3s, width .3s; }
.hs-dot:hover { background: rgba(255, 255, 255, .5); }
.hs-dot[aria-current="true"] { width: 60px; background: rgba(255, 255, 255, .3); }
.hs-dot i { position: absolute; inset-block: 0; inset-inline-start: 0; width: 0; background: var(--gold); border-radius: 6px; }
.hs.playing .hs-dot[aria-current="true"] i { animation: fillbar var(--dur, 7s) linear forwards; }
.hs.paused .hs-dot[aria-current="true"] i { width: 100%; }
@keyframes fillbar { to { width: 100%; } }
.hs-btns { display: flex; gap: 8px; }
.hs-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; display: grid; place-items: center; backdrop-filter: blur(6px); transition: background .2s, transform .2s; padding: 0; }
.hs-btn:hover { background: rgba(255, 255, 255, .24); transform: scale(1.06); }
.hs-btn svg { width: 20px; height: 20px; }
[dir="rtl"] .hs-btn.prev svg, [dir="rtl"] .hs-btn.next svg { transform: scaleX(-1); }
.hs-count { font-variant-numeric: tabular-nums; font-weight: 700; opacity: .8; min-width: 3.4em; text-align: center; align-self: center; }
.hs-scroll { position: absolute; inset-inline-start: 50%; bottom: 74px; z-index: 5; width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .5); border-radius: 14px; transform: translateX(-50%); }
.hs-scroll::after { content: ""; position: absolute; top: 8px; inset-inline-start: 50%; width: 4px; height: 8px; margin-inline-start: -2px; border-radius: 2px; background: #fff; animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---- Ticker ---- */
.ticker { background: var(--navy); color: #fff; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; align-items: stretch; overflow: hidden; }
.ticker-label { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; padding: 0 22px; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); font-weight: 800; font-size: .9rem; position: relative; z-index: 2; }
.ticker-label::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #fff; animation: pulse2 1.6s infinite; }
@keyframes pulse2 { 50% { opacity: .3; } }
.ticker-view { flex: 1; overflow: hidden; position: relative; mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent); -webkit-mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
.ticker-track { display: inline-flex; gap: 44px; padding: 13px 22px; white-space: nowrap; animation: scrollx 60s linear infinite; will-change: transform; }
[dir="rtl"] .ticker-track { animation-name: scrollx-rtl; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
.ticker-track a { color: #fff !important; font-weight: 600; font-size: .95rem; }
.ticker-track a::before { content: "◆"; color: var(--gold); margin-inline-end: 12px; font-size: .7rem; }
@keyframes scrollx { to { transform: translateX(-50%); } }
@keyframes scrollx-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* ---- Sections and reveal ---- */
.section { padding: 84px 0; position: relative; }
.section.alt { background: var(--paper-2); }
.section.dark { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; }
.section-head { margin-bottom: 40px; max-width: 46em; }
.kicker { display: inline-block; font-weight: 800; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-dark); background: var(--accent-soft); padding: 4px 14px; border-radius: 999px; margin-bottom: 12px; }
.dark .kicker { background: rgba(255, 255, 255, .12); color: var(--gold); }
.section h2 { margin: 0 0 10px; font-size: clamp(1.6rem, 3.2vw, 2.3rem); line-height: 1.25; }
.section .sub { color: var(--ink-soft); margin: 0; max-width: 46em; font-size: 1.05rem; }
.dark .sub { color: rgba(255, 255, 255, .8); }
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 1ms); }
.js .reveal.in { opacity: 1; transform: none; }
.grid-pub { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pcard { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); min-width: 0; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.pcard.lift:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--accent-line); }
.pcard.lift::before { content: ""; position: absolute; inset-inline: 22px; top: 0; height: 3px; border-radius: 0 0 4px 4px; background: linear-gradient(90deg, var(--accent), var(--gold)); transform: scaleX(0); transition: transform .4s var(--ease); }
.pcard.lift:hover::before { transform: scaleX(1); }
.pcard h3 { margin: 0 0 8px; font-size: 1.15rem; line-height: 1.4; }
.pcard p { margin: 0 0 10px; color: var(--ink-soft); }
.pcard p:last-child { margin-bottom: 0; }
.picon { width: 54px; height: 54px; border-radius: 17px; background: linear-gradient(135deg, var(--accent-soft), color-mix(in srgb, var(--accent) 16%, #fff)); color: var(--accent-dark); display: grid; place-items: center; margin-bottom: 16px; transition: transform .4s var(--ease); }
.pcard.lift:hover .picon { transform: rotate(-8deg) scale(1.08); }
.picon svg { width: 26px; height: 26px; }
.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.stat-tile { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.stat-tile b { display: block; font-size: 1.9rem; line-height: 1.2; color: var(--accent-dark); }
.stat-tile span { color: var(--ink-soft); font-size: .92rem; }
.note { border-inline-start: 4px solid var(--accent); background: var(--accent-soft); padding: 14px 18px; border-radius: 10px; color: var(--ink); }
.badge-pub { display: inline-block; padding: 2px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--accent-soft); color: var(--accent-dark); }
.badge-pub.ok { background: #e4f4ea; color: var(--ok); }
.badge-pub.warn { background: #fff1d6; color: var(--warn); }
.muted-pub { color: var(--ink-soft); }
.small-pub { font-size: .9rem; }

/* ---- Figures section ---- */
.bigfigs { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 22px; }
.bigfig { text-align: center; padding: 30px 18px; border-radius: 24px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); }
.bigfig b { display: block; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.1; font-weight: 800; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, #fff, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bigfig span { display: block; margin-top: 6px; color: rgba(255, 255, 255, .82); font-weight: 600; }
.bigfig .ring { width: 108px; height: 108px; }

/* ---- News ---- */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.news-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s; color: var(--ink) !important; }
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); text-decoration: none; }
.news-top { height: 8px; background: linear-gradient(90deg, var(--accent), var(--gold)); }
.news-body { padding: 22px 22px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.news-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .82rem; color: var(--ink-soft); font-weight: 600; }
.news-date { background: var(--accent-soft); color: var(--accent-dark); padding: 2px 12px; border-radius: 999px; font-weight: 800; }
.news-card h3 { margin: 0; font-size: 1.12rem; line-height: 1.55; }
.news-card p { margin: 0; color: var(--ink-soft); font-size: .95rem; flex: 1; }
.news-more { font-weight: 800; color: var(--accent-dark); display: inline-flex; gap: 6px; align-items: center; transition: gap .25s; }
.news-card:hover .news-more { gap: 12px; }
.news-card.feature { grid-column: span 2; }
.news-card.feature h3 { font-size: 1.4rem; }

/* ---- Steps: a timeline ---- */
.timeline { counter-reset: step; position: relative; display: grid; gap: 30px; padding-inline-start: 34px; }
.timeline::before { content: ""; position: absolute; inset-inline-start: 15px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: linear-gradient(var(--accent), var(--gold)); opacity: .35; }
.step { position: relative; }
.step::before { counter-increment: step; content: counter(step); position: absolute; inset-inline-start: -34px; top: 0; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; box-shadow: 0 0 0 6px var(--paper); }
.step h3 { margin: 0 0 4px; font-size: 1.1rem; }
.step p { margin: 0; color: var(--ink-soft); }
.section.alt .step::before { box-shadow: 0 0 0 6px var(--paper-2); }

/* ---- CTA banner ---- */
.cta-band { position: relative; overflow: hidden; border-radius: 30px; padding: 54px 44px; color: #fff; background: linear-gradient(120deg, var(--accent-dark), var(--navy), var(--accent)); background-size: 220% 220%; animation: shift 14s ease infinite; box-shadow: var(--shadow-lg); }
@keyframes shift { 50% { background-position: 100% 50%; } }
.cta-band::after { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; inset-inline-end: -90px; top: -120px; background: radial-gradient(circle, rgba(155, 208, 255, .5), transparent 68%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin: 0 0 8px; }
.cta-band p { margin: 0 0 24px; color: rgba(255, 255, 255, .88); max-width: 36em; }

/* ---- Inner page hero ---- */
.page-hero { position: relative; overflow: hidden; color: #fff; padding: 58px 0 50px; background: linear-gradient(120deg, var(--navy), color-mix(in srgb, var(--accent) 48%, var(--navy))); }
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1.4px); background-size: 26px 26px; mask-image: linear-gradient(to left, #000, transparent 75%); -webkit-mask-image: linear-gradient(to left, #000, transparent 75%); }
.page-hero::after { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; inset-inline-end: -100px; top: -160px; background: radial-gradient(circle, color-mix(in srgb, var(--gold) 55%, transparent), transparent 68%); opacity: .5; animation: drift 16s ease-in-out infinite alternate; }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { margin: 0 0 10px; font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: 1.25; }
.page-hero p { margin: 0; color: rgba(255, 255, 255, .86); max-width: 46em; font-size: 1.08rem; }
.page-hero .profile-head h1 { color: #fff; }

/* ---- Lists and tables ---- */
.link-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.link-item { border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; background: var(--paper); transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.link-item:hover { transform: translateY(-3px); border-color: var(--accent-line); box-shadow: var(--shadow); }
.link-item h3 { margin: 0 0 4px; font-size: 1.05rem; }
.link-item p { margin: 0 0 6px; color: var(--ink-soft); }
.link-meta { font-size: .85rem; color: var(--ink-soft); display: flex; gap: 14px; flex-wrap: wrap; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
table.ptable { border-collapse: collapse; width: 100%; min-width: 560px; }
table.ptable th, table.ptable td { padding: 12px 16px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; }
table.ptable th { background: var(--paper-2); font-size: .85rem; color: var(--ink-soft); }
table.ptable tr:last-child td { border-bottom: 0; }
table.ptable tbody tr:hover { background: var(--accent-soft); }
.bar { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; margin-top: 6px; }
.bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--gold)); border-radius: 999px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.chip { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: .92rem; color: var(--ink-soft) !important; transition: all .2s; }
.chip:hover { text-decoration: none; border-color: var(--accent-line); transform: translateY(-2px); }
.chip[aria-current="true"] { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); border-color: var(--accent); color: var(--accent-ink) !important; }

/* ---- Forms ---- */
.pform { display: grid; gap: 18px; }
.pform .row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.pform label { display: grid; gap: 6px; font-weight: 700; font-size: .95rem; }
.pform label .hint { font-weight: 400; color: var(--ink-soft); font-size: .85rem; }
.pform input[type="text"], .pform input[type="email"], .pform input[type="tel"], .pform input[type="password"], .pform input[type="date"], .pform input[type="url"], .pform input[type="number"], .pform input[type="file"], .pform select, .pform textarea {
  width: 100%; padding: 12px 15px; border: 1px solid #c9d1dd; border-radius: 13px; font: inherit; font-size: 1rem; background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.pform textarea { min-height: 110px; resize: vertical; }
.pform input:focus, .pform select:focus, .pform textarea:focus { outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent); border-color: var(--accent); }
.pform .invalid { border-color: var(--danger) !important; }
.field-error { color: var(--danger); font-size: .88rem; font-weight: 600; }
.check { display: flex !important; grid-template-columns: none !important; align-items: flex-start; gap: 10px; font-weight: 500 !important; line-height: 1.5; }
.check input { width: 20px; height: 20px; margin-top: 3px; flex: 0 0 auto; accent-color: var(--accent); }
.hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert-pub { padding: 14px 18px; border-radius: 14px; margin-bottom: 20px; font-weight: 600; }
.alert-pub.ok { background: #e4f4ea; color: #14532d; border: 1px solid #b7e0c6; }
.alert-pub.err { background: #fdecea; color: #7a1712; border: 1px solid #f3c1bd; }
.alert-pub.info { background: var(--accent-soft); border: 1px solid var(--accent-line); }
.form-narrow { max-width: 460px; margin-inline: auto; }

/* ---- Member area ---- */
.avatar-lg { width: 120px; height: 120px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); display: grid; place-items: center; font-size: 2.4rem; font-weight: 800; overflow: hidden; border: 4px solid rgba(255, 255, 255, .85); box-shadow: var(--shadow); flex: 0 0 auto; }
.avatar-lg img { width: 100%; height: 100%; object-fit: cover; }
.avatar-md { width: 64px; height: 64px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); display: grid; place-items: center; font-weight: 800; overflow: hidden; flex: 0 0 auto; }
.avatar-md img { width: 100%; height: 100%; object-fit: cover; }
.profile-head { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; margin-bottom: 0; }
.profile-head h1 { margin: 0; font-size: 1.7rem; }
.team-card { text-align: center; }
.team-card .avatar-md { margin: 0 auto 10px; width: 92px; height: 92px; font-size: 1.6rem; box-shadow: 0 0 0 4px var(--accent-soft); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.kv dt { color: var(--ink-soft); font-weight: 600; }
.kv dd { margin: 0; }

/* ---- Legal documents ---- */
.legal { max-width: 780px; }
.legal h2 { margin: 34px 0 8px; font-size: 1.25rem; }
.legal p, .legal li { color: #2b3542; }
.legal ul { padding-inline-start: 22px; }

/* ---- Footer ---- */
.pub-footer { position: relative; background: var(--navy); color: #c6cfdc; padding: 60px 0 0; flex-shrink: 0; }
.pub-footer::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--accent), var(--gold), var(--accent)); }
body.pub .pub-footer a { color: #e6ebf3; }
body.pub .pub-footer a:hover { color: #fff; }
body.pub .pub-footer .foot-note a { text-decoration: underline; }
.pub-footer h3 { color: #fff; font-size: 1rem; margin: 0 0 14px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot-brand { font-weight: 800; font-size: 1.15rem; color: #fff; margin-bottom: 10px; display: block; }
.foot-note { font-size: .92rem; line-height: 1.7; }
.foot-bottom { margin-top: 40px; padding: 20px 0; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .88rem; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .22); display: grid; place-items: center; transition: transform .2s, background .2s; }
.social a:hover { background: rgba(255, 255, 255, .14); transform: translateY(-3px); text-decoration: none; }
.social svg { width: 18px; height: 18px; }
.foot-staff { opacity: .75; }
.to-top { position: fixed; inset-inline-end: 22px; bottom: 22px; z-index: 80; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: var(--accent-ink); display: grid; place-items: center; box-shadow: 0 10px 26px rgba(13, 26, 44, .3); opacity: 0; pointer-events: none; transform: translateY(14px); transition: opacity .3s, transform .3s; padding: 0; }
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top svg { width: 22px; height: 22px; }

/* ---- Responsive ---- */
@media (max-width: 1340px) {
  .menu-btn { display: grid; margin-inline-start: auto; }
  .pub-nav { display: none; position: absolute; inset-inline: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 10px 16px 18px; margin: 0; box-shadow: var(--shadow-lg); max-height: calc(100vh - 72px); overflow-y: auto; }
  body.nav-open .pub-nav { display: flex; }
  .pub-nav a { padding: 13px 12px; }
  .pub-nav a::after { display: none; }
  .pub-actions { display: none; }
  .nav-extra { display: flex !important; }
}
.nav-extra { display: none; flex-direction: column; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); margin-top: 6px; }
@media (max-width: 960px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-card.feature { grid-column: span 2; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .hs-in { grid-template-columns: 1fr; gap: 30px; }
  .hs-art { max-width: 460px; }
  .hs-slide { padding: 56px 0 128px; }
  .hs-scroll { display: none; }
  .orbit { max-width: 300px; }
}
@media (max-width: 640px) {
  .pub-brand .pub-brand-name { display: none; }
  body.pub .pub-logo { height: 38px; }
  .g2, .g3, .g4, .news-grid { grid-template-columns: 1fr; }
  .news-card.feature { grid-column: auto; }
  .pform .row2 { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .foot-grid { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; }
  .cta-band { padding: 38px 24px; border-radius: 24px; }
  .hs-btns .hs-btn { width: 42px; height: 42px; }
  .hs-dot { width: 22px; } .hs-dot[aria-current="true"] { width: 38px; }
  .hs-count { display: none; }
  .figs { padding: 14px; gap: 6px; }
  .ticker-label { padding: 0 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hs-slide.is-active .an, .hs-slide.is-active .an-pop { animation: none !important; opacity: 1; transform: none; }
  .ticker-track { animation: none !important; overflow-x: auto; }
}
@media print { .pub-header, .pub-footer, .hs-ui, .ticker, .to-top, .skip-link { display: none !important; } body.pub { color: #000; } .hs-slide { position: static; opacity: 1; visibility: visible; min-height: 0; padding: 20px 0; color: #000; background: none !important; } }

/* ---- Phone: the public site behaves like an app (up to 760px) ----
   A bottom tab bar, a compact header, a full-height menu sheet, swipeable card rows, big touch targets,
   tables that turn into cards. Nothing here changes the desktop layout. */
.tabbar { display: none; }
html { -webkit-tap-highlight-color: transparent; }
@media (max-width: 760px) {
  body.pub { line-height: 1.65; padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); overscroll-behavior-y: none; }
  .wrap, .pub-header .wrap { width: min(100% - 28px, var(--wrap)); }

  /* header: logo and one menu button, smaller */
  .pub-header { background: #fff; border-bottom: 1px solid var(--line); backdrop-filter: none; -webkit-backdrop-filter: none; } /* a backdrop filter would trap the fixed menu sheet inside the header */
  .pub-header-in { min-height: 56px; gap: 10px; }
  body.pub .pub-logo { height: 32px; }
  .pub-mark { width: 36px; height: 36px; border-radius: 11px; }
  .pub-header .menu-btn { display: none; }

  /* the menu opens as a sheet from the bottom tab "More" */
  .pub-nav { position: fixed; inset-inline: 0; top: auto; bottom: calc(66px + env(safe-area-inset-bottom, 0px)); z-index: 95; display: flex; flex-direction: column; align-items: stretch; margin: 0; padding: 8px 16px 18px; max-height: calc(100vh - 66px - 64px - env(safe-area-inset-bottom, 0px)); overflow-y: auto; border-radius: 26px 26px 0 0; border: 0; box-shadow: 0 -18px 50px rgba(7, 30, 58, .28); background: #fff; transform: translateY(110%); visibility: hidden; transition: transform .32s var(--ease), visibility .32s; }
  .pub-nav::before { content: ""; display: block; width: 44px; height: 5px; border-radius: 5px; background: var(--line); margin: 4px auto 10px; flex: 0 0 auto; }
  body.nav-open .pub-nav { transform: none; visibility: visible; }
  body.nav-open::after { content: ""; position: fixed; inset: 0; z-index: 89; background: rgba(7, 30, 58, .5); }
  body.nav-open { overflow: hidden; }
  .pub-nav a { padding: 13px 14px; font-size: 1.05rem; border-radius: 14px; }
  .pub-nav a.pbtn { justify-content: center; padding: 12px 18px; }
  .pub-nav a.pbtn-primary { color: var(--accent-ink) !important; }
  .pub-nav a.pbtn:hover { color: inherit; }
  .pub-nav a:active { background: var(--accent-soft); }
  .nav-extra { display: flex; }
  .nav-extra .pbtn { width: 100%; min-height: 50px; }
  .nav-extra .lang-switch { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: 14px; }
  .nav-extra .lang-switch a { text-align: center; padding: 12px 6px; font-size: .95rem; }
  .pub-actions { display: none; }

  /* bottom tab bar */
  .tabbar { position: fixed; inset-inline: 0; bottom: 0; z-index: 96; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px)); background: rgba(255, 255, 255, .97); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-top: 1px solid var(--line); box-shadow: 0 -8px 28px rgba(7, 30, 58, .1); }
  .tabbar .tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; padding: 4px 2px; border: 0; background: none; border-radius: 14px; color: var(--ink-soft) !important; font: inherit; font-size: .7rem; font-weight: 700; line-height: 1.2; cursor: pointer; text-decoration: none !important; position: relative; }
  .tabbar .tab svg { width: 24px; height: 24px; transition: transform .25s var(--ease); }
  .tabbar .tab span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tabbar .tab:active { background: var(--accent-soft); }
  .tabbar .tab[aria-current="page"], .tabbar .tab[aria-expanded="true"] { color: var(--accent-dark) !important; }
  .tabbar .tab[aria-current="page"] svg, .tabbar .tab[aria-expanded="true"] svg { transform: translateY(-2px) scale(1.1); }
  .tabbar .tab[aria-current="page"]::before, .tabbar .tab[aria-expanded="true"]::before { content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 4px 4px; background: linear-gradient(90deg, var(--accent), var(--gold)); }
  .to-top { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); inset-inline-end: 14px; width: 44px; height: 44px; }

  /* hero slider: shorter, text first, art hidden except the figures */
  .hs-slide { min-height: 0; padding: 30px 0 84px; align-items: center; }
  .hs h1, .hs h2.hs-title { font-size: clamp(1.75rem, 8.2vw, 2.3rem); margin-bottom: 12px; }
  .hs-lead { font-size: 1rem; margin-bottom: 20px; }
  .hs-eyebrow { font-size: .78rem; padding: 5px 13px; margin-bottom: 14px; }
  .hs-in { gap: 18px; }
  .hs-slide.t3 .hs-title { font-size: 1.4rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  .hs-slide.t3 .hs-lead { font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .hs-art .orbit, .hs-art .bignum, .hs-art .artchips, .hs-art .checklist, .hs-art .newsstack { display: none; }
  .hs-art .chip-float { display: none; }
  .hs-art { max-width: none; }
  .hs-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hs-cta .pbtn { padding: 13px 10px; min-height: 50px; white-space: normal; text-align: center; font-size: .95rem; }
  .hs-cta .pbtn:only-child { grid-column: 1 / -1; }
  .hs-note { font-size: .88rem; margin-top: 14px; }
  .hs-ui { padding-bottom: 18px; }
  .hs-btns .hs-btn.prev, .hs-btns .hs-btn.next { display: none; }
  .glass { border-radius: 22px; }
  .figs { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; }
  .fig b { font-size: 1.7rem; }
  .ring { width: 78px; height: 78px; }

  .ticker-label { padding: 0 12px; font-size: .8rem; }
  .ticker-track { padding: 11px 16px; }

  /* sections */
  .section { padding: 40px 0; }
  .section-head { margin-bottom: 22px; }
  .section h2 { font-size: 1.5rem; }
  .section .sub { font-size: .98rem; }
  .page-hero { padding: 34px 0 30px; }
  .page-hero h1 { font-size: 1.6rem; }
  .page-hero p { font-size: 1rem; }
  .pcard { padding: 20px; border-radius: 18px; }
  .pcard h3 { font-size: 1.08rem; }
  .picon { width: 46px; height: 46px; border-radius: 14px; margin-bottom: 12px; }
  .grid-pub { gap: 14px; }
  .grid-pub.g2, .grid-pub.g3 { grid-template-columns: 1fr !important; }
  .bigfigs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .bigfig { padding: 20px 10px; border-radius: 20px; }
  .bigfig b { font-size: 2rem; }
  .bigfig .ring { width: 84px; height: 84px; }
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat-tile { padding: 14px; }
  .stat-tile b { font-size: 1.5rem; }
  .cta-band { padding: 30px 20px; border-radius: 22px; }
  .cta-band .pbtn, .section .hs-cta .pbtn { width: 100%; }

  /* rows you swipe */
  .news-grid { display: flex; grid-template-columns: none; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; margin-inline: -14px; padding: 4px 14px 16px; scrollbar-width: none; }
  .news-grid::-webkit-scrollbar { display: none; }
  .news-grid .news-card, .news-grid .news-card.feature { flex: 0 0 84%; scroll-snap-align: center; grid-column: auto; }
  .news-card h3, .news-card.feature h3 { font-size: 1.05rem; }
  .news-card:hover, .pcard.lift:hover, .link-item:hover, .chip:hover { transform: none; }

  /* lists, chips, forms, buttons */
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -14px; padding: 2px 14px 10px; scrollbar-width: none; scroll-snap-type: x proximity; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: 0 0 auto; padding: 10px 18px; scroll-snap-align: start; }
  .link-item { padding: 16px; border-radius: 16px; }
  .link-item:active, .news-card:active, .pcard.lift:active { background: var(--accent-soft); }
  .pbtn { min-height: 48px; }
  .pbtn:active { transform: scale(.97); }
  .pform { gap: 16px; }
  .pform input[type="text"], .pform input[type="email"], .pform input[type="tel"], .pform input[type="password"], .pform input[type="date"], .pform input[type="url"], .pform input[type="number"], .pform select, .pform textarea { font-size: 16px; min-height: 50px; border-radius: 14px; }
  .pform button[type="submit"], .pform .pbtn-primary { width: 100%; min-height: 52px; font-size: 1.05rem; }
  .check input { width: 24px; height: 24px; }
  .form-narrow { max-width: none; }
  .profile-head { gap: 14px; }
  .avatar-lg { width: 96px; height: 96px; font-size: 2rem; }
  .kv { gap: 2px 0; }
  .kv dt { margin-top: 10px; font-size: .85rem; }

  /* tables become cards */
  .table-wrap { border: 0; overflow: visible; }
  table.ptable.stackable { min-width: 0; display: block; }
  table.ptable.stackable thead { display: none; }
  table.ptable.stackable tbody { display: grid; gap: 12px; }
  table.ptable.stackable tr { display: block; border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; background: var(--paper); box-shadow: var(--shadow); }
  table.ptable.stackable td { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 7px 0; border-bottom: 1px dashed var(--line); text-align: end; }
  table.ptable.stackable td:last-child { border-bottom: 0; }
  table.ptable.stackable td:empty { display: none; }
  table.ptable.stackable td::before { content: attr(data-label); flex: 0 0 auto; max-width: 46%; color: var(--ink-soft); font-size: .82rem; font-weight: 700; text-align: start; }
  table.ptable.stackable td:first-child { display: block; text-align: start; font-size: 1.05rem; border-bottom: 1px solid var(--line); padding-bottom: 9px; margin-bottom: 4px; }
  table.ptable.stackable td:first-child::before { content: none; }
  table.ptable.stackable td .bar { min-width: 90px; }

  /* footer */
  .pub-footer { padding-top: 40px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 26px 18px; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
  .foot-bottom { flex-direction: column; margin-top: 26px; }
  .legal { max-width: none; }
  .legal h2 { font-size: 1.15rem; }
}
@media (max-width: 380px) {
  .tabbar .tab { font-size: .64rem; }
  .hs-cta { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (hover: none) {
  .pbtn:hover { transform: none; }
  .pbtn:hover::before { transition: none; transform: translateX(-120%); }
}
