/* one soft colour per who-it-affects tag (text colours checked for WCAG AA: >=4.5:1 on their own tint) */
.nx-t-regulator,.gr-t-regulator{--gr-c:#8E3B46;--gr-bg:#F7E9EB}
.nx-t-broker,.gr-t-broker{--gr-c:#1F6F78;--gr-bg:#E3F2F3}
.nx-t-agent,.gr-t-agent{--gr-c:#8F5212;--gr-bg:#F9ECDB}
.nx-t-insurer,.gr-t-insurer{--gr-c:#3B4FA0;--gr-bg:#E8ECF8}
.nx-t-health,.gr-t-health{--gr-c:#236B4E;--gr-bg:#E2F2EA}
.nx-t-motor,.gr-t-motor{--gr-c:#2D6A9F;--gr-bg:#E3EEF8}
.nx-t-property,.gr-t-property{--gr-c:#9A4424;--gr-bg:#F9E8DF}
.nx-t-marine,.gr-t-marine{--gr-c:#176C80;--gr-bg:#DFF1F6}
.nx-t-crop,.gr-t-crop{--gr-c:#4F6A1F;--gr-bg:#EBF2DC}
.nx-t-liability,.gr-t-liability{--gr-c:#6B4AA3;--gr-bg:#EDE7F7}
.nx-t-reinsurance,.gr-t-reinsurance{--gr-c:#94457A;--gr-bg:#F7E6F0}
.nx-t-general,.gr-t-general{--gr-c:#4E5870;--gr-bg:#E9ECF2}
[data-theme="dark"] .nx-t-regulator,[data-theme="dark"] .gr-t-regulator{--gr-c:#F0A6B0;--gr-bg:rgba(240,166,176,.14)}
[data-theme="dark"] .nx-t-broker,[data-theme="dark"] .gr-t-broker{--gr-c:#7DD3DB;--gr-bg:rgba(125,211,219,.14)}
[data-theme="dark"] .nx-t-agent,[data-theme="dark"] .gr-t-agent{--gr-c:#EDB878;--gr-bg:rgba(237,184,120,.14)}
[data-theme="dark"] .nx-t-insurer,[data-theme="dark"] .gr-t-insurer{--gr-c:#A3B5F5;--gr-bg:rgba(163,181,245,.14)}
[data-theme="dark"] .nx-t-health,[data-theme="dark"] .gr-t-health{--gr-c:#7FD1A8;--gr-bg:rgba(127,209,168,.14)}
[data-theme="dark"] .nx-t-motor,[data-theme="dark"] .gr-t-motor{--gr-c:#8DC1F0;--gr-bg:rgba(141,193,240,.14)}
[data-theme="dark"] .nx-t-property,[data-theme="dark"] .gr-t-property{--gr-c:#F0A98A;--gr-bg:rgba(240,169,138,.14)}
[data-theme="dark"] .nx-t-marine,[data-theme="dark"] .gr-t-marine{--gr-c:#78CBE0;--gr-bg:rgba(120,203,224,.14)}
[data-theme="dark"] .nx-t-crop,[data-theme="dark"] .gr-t-crop{--gr-c:#B5D17A;--gr-bg:rgba(181,209,122,.14)}
[data-theme="dark"] .nx-t-liability,[data-theme="dark"] .gr-t-liability{--gr-c:#C0A6F0;--gr-bg:rgba(192,166,240,.14)}
[data-theme="dark"] .nx-t-reinsurance,[data-theme="dark"] .gr-t-reinsurance{--gr-c:#EBA3D0;--gr-bg:rgba(235,163,208,.14)}
[data-theme="dark"] .nx-t-general,[data-theme="dark"] .gr-t-general{--gr-c:#AEB8CE;--gr-bg:rgba(174,184,206,.14)}

.nx-tag{color:var(--gr-c,var(--t2));background:var(--gr-bg,var(--s3));border-color:color-mix(in srgb,var(--gr-c,var(--line)) 32%,transparent)}
/* live badge */
.gr-lv{display:inline-flex;align-items:center;gap:7px;font:600 14px/1.4 var(--font-sans,Inter,sans-serif);color:var(--t2);white-space:nowrap}
.gr-lv i{width:8px;height:8px;border-radius:50%;background:var(--t3);flex:none}
.gr-lv b{font-size:12px;letter-spacing:.09em;text-transform:uppercase;color:var(--pos)}
.gr-lv--live i{background:var(--pos);animation:grp 2.2s ease-out infinite}
.gr-lv--stale b{color:var(--t3)}
@keyframes grp{0%{box-shadow:0 0 0 0 rgba(30,122,80,.45)}70%,100%{box-shadow:0 0 0 7px rgba(30,122,80,0)}}
.stamp.gr-s:before{display:none}
.gr-lvrow{margin:0 0 10px;min-height:20px}
/* At a glance */
#gr-glance{min-height:612px}
.gr-gl{height:100%;box-sizing:border-box;background:linear-gradient(165deg,#12203D,#0A1328);color:#EDE6D8;border-radius:var(--r-card,12px);padding:18px 20px 8px;box-shadow:var(--shadow)}
.gr-gl-h{display:flex;align-items:baseline;justify-content:space-between;gap:10px;border-bottom:1px solid rgba(237,230,216,.18);padding-bottom:10px}
.gr-gl-h h2{margin:0;font:700 12px/1.4 var(--font-sans,Inter,sans-serif);letter-spacing:.14em;text-transform:uppercase;color:#E7C873}
.gr-gl-h span{font-size:12px;color:#A6B0C6}
.gr-gl ol{list-style:none;margin:0;padding:0}
.gr-gl li+li{border-top:1px solid rgba(237,230,216,.12)}
.gr-gl a{display:grid;grid-template-columns:34px 1fr;gap:10px;align-items:start;padding:12px 6px;margin:0 -6px;color:inherit;text-decoration:none;border-radius:8px;min-height:44px}
.gr-gl a:hover{background:rgba(255,255,255,.06)}
.gr-gl a:focus-visible{outline:2px solid #E7C873;outline-offset:-2px}
.gr-gl .gr-n{font:700 30px/1 var(--serif);color:#E7C873;font-variant-numeric:lining-nums}
.gr-gl b{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;font:700 16px/1.3 var(--serif);color:#F6F0E3}
.gr-gl a:hover b{text-decoration:underline;text-underline-offset:2px}
.gr-gl small{display:block;margin-top:4px;font:500 12px/1.4 var(--font-sans,Inter,sans-serif);color:#A6B0C6}
.gr-gl-e{margin:14px 0;font-size:14px;color:#A6B0C6}
.gr-sec3{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:22px;min-height:300px;align-items:start}
.gr-sec3 a.gr-sc{display:block;color:inherit;text-decoration:none;border-top:1px solid var(--line);padding-top:12px}
.gr-sec3 a.gr-sc:hover h3{text-decoration:underline}
@media(max-width:900px){.gr-sec3{grid-template-columns:1fr;gap:0;min-height:0}.gr-sec3 a.gr-sc{margin-bottom:16px}#gr-glance{min-height:560px}.gr-gl{min-height:560px}.bf-top #lead1{min-height:520px}}
/* reading card */
html.gr-lock,html.gr-lock body{overflow:hidden}
.gr-ov{position:fixed;inset:0;z-index:1000;display:flex;align-items:flex-end;justify-content:center;padding:0 16px;background:rgba(11,20,40,.58);-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px);visibility:hidden;opacity:0;transition:opacity .22s ease,visibility 0s linear .22s}
[data-theme="dark"] .gr-ov{background:rgba(3,7,15,.72)}
.gr-ov.on{visibility:visible;opacity:1;transition:opacity .22s ease,visibility 0s}
.gr-sheet{position:relative;width:min(760px,100%);max-height:calc(100vh - 36px);max-height:calc(100dvh - 36px);overflow-y:auto;overscroll-behavior:contain;background:var(--s2);color:var(--text);border-radius:18px 18px 0 0;box-shadow:0 -18px 60px -12px rgba(0,0,0,.45);transform:translateY(36px);transition:transform .32s cubic-bezier(.2,.8,.2,1);outline:none}
.gr-ov.on .gr-sheet{transform:none}
.gr-xw{position:sticky;top:0;height:0;z-index:3;display:flex;justify-content:flex-end}
.gr-x{margin:10px;width:44px;height:44px;border-radius:50%;border:1px solid var(--line2);background:var(--s2);color:var(--text);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 2px 10px rgba(0,0,0,.18)}
.gr-x:hover{background:var(--s3)}
.gr-x:focus-visible,.gr-b:focus-visible,.gr-go:focus-visible,.gr-sheet a:focus-visible{outline:2px solid var(--gr-c,var(--accent));outline-offset:2px}
.gr-band{height:112px;background:linear-gradient(135deg,var(--gr-bg),color-mix(in srgb,var(--gr-bg) 55%,var(--s2)));border-bottom:3px solid var(--gr-c);overflow:hidden;border-radius:18px 18px 0 0}
.gr-band svg{display:block;width:100%;height:100%}
.gr-band .s{fill:none;stroke:var(--gr-c);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.gr-band .f{fill:var(--gr-c);fill-opacity:.16}
.gr-band .d{fill:var(--gr-c)}
.gr-band .o{fill:none;stroke:var(--gr-c);stroke-opacity:.2;stroke-width:1.5}
.gr-body{padding:20px 28px calc(30px + env(safe-area-inset-bottom,0px))}
.gr-kick{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.gr-k{font:700 12px/1.4 var(--font-sans,Inter,sans-serif);letter-spacing:.12em;text-transform:uppercase;color:var(--gr-c);display:inline-flex;align-items:center;gap:8px}
.gr-k:before{content:"";width:18px;height:3px;border-radius:2px;background:var(--gr-c)}
.gr-body h2{margin:10px 0 12px;font:700 clamp(24px,4.4vw,32px)/1.2 var(--serif);color:var(--text);text-wrap:balance}
.gr-by{display:flex;flex-wrap:wrap;gap:4px 12px;align-items:center;margin:0 0 16px;padding:10px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-size:14px;color:var(--t2)}
.gr-by b{color:var(--text);text-transform:uppercase;letter-spacing:.06em;font-size:12px}
.gr-why{margin:0 0 16px;padding-left:14px;border-left:3px solid var(--gr-c);font:400 17px/1.55 var(--serif);color:var(--text)}
.gr-why b{display:block;font:700 12px/1.4 var(--font-sans,Inter,sans-serif);letter-spacing:.1em;text-transform:uppercase;color:var(--gr-c);margin-bottom:2px}
.gr-nowhy{margin:0 0 16px;font-size:14px;color:var(--t3)}
.gr-datas{display:flex;flex-direction:column;gap:8px;margin:0 0 18px}
.gr-datas .nx-data{border-left-color:var(--gr-c);background:var(--gr-bg);font-size:14px;padding:10px 12px}
.gr-datas .nx-data i{color:var(--gr-c)}
.gr-act{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px}
.gr-b{min-height:44px;padding:0 16px;border-radius:999px;border:1px solid var(--line2);background:var(--s1);color:var(--text);font:600 14px/1 var(--font-sans,Inter,sans-serif);display:inline-flex;align-items:center;gap:8px;cursor:pointer}
.gr-b:hover{background:var(--s3)}
.gr-b[aria-pressed="true"]{background:var(--gr-bg);color:var(--gr-c);border-color:var(--gr-c)}
.gr-b svg{width:16px;height:16px;flex:none}
.gr-go{display:flex;align-items:center;justify-content:center;gap:10px;min-height:52px;padding:0 20px;border-radius:12px;background:var(--clockbg,#14213D);color:var(--clocktx,#FBF7F0);font:700 16px/1.2 var(--font-sans,Inter,sans-serif);text-decoration:none;text-align:center}
.gr-go:hover{filter:brightness(1.15)}
[data-theme="dark"] .gr-go{background:var(--gold);color:var(--on-dark-ink,#141A26)}
.gr-say{position:absolute;left:50%;bottom:16px;transform:translateX(-50%);background:var(--clockbg,#14213D);color:var(--clocktx,#FBF7F0);padding:8px 14px;border-radius:8px;font-size:14px;opacity:0;pointer-events:none;transition:opacity .2s}
.gr-say.on{opacity:1}
@media(max-width:640px){
 .gr-ov{padding:0;align-items:stretch}
 .gr-sheet{width:100%;height:100vh;height:100dvh;max-height:none;border-radius:0;transform:translateY(100%)}
 .gr-band{border-radius:0;height:96px}
 .gr-body{padding:18px 18px calc(28px + env(safe-area-inset-bottom,0px))}
 .gr-act .gr-b{flex:1 1 auto;justify-content:center}
}
@media(prefers-reduced-motion:reduce){.gr-ov,.gr-ov.on,.gr-sheet,.gr-say{transition:none!important}.gr-lv--live i{animation:none}}
.gr-sc h3{font:700 var(--fs-h3,20px)/1.3 var(--serif);margin:4px 0 0}.gr-sc p{margin:6px 0;font-size:14px;line-height:1.5;color:var(--t2);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
/* 2026-10-31: picture on every story (publisher image, else topic placeholder) */
.gr-sc img.gr-th{width:100%;aspect-ratio:16/9;object-fit:cover;display:block;border-radius:4px;margin-bottom:8px;background:var(--line,#eee)}

/* square news thumbnails sized to text block (Oct 31) */
.bf-lead,.gr-sec3 a.gr-sc,.bf-list a{display:flex!important;align-items:stretch;gap:14px}
.bf-list a{align-items:flex-start}.bf-list a .sq-tx{flex:1;min-width:0}
.sq-tx{flex:1;min-width:0}
img.sq-th{flex:0 0 auto;aspect-ratio:1/1!important;object-fit:cover;width:96px;height:96px;margin:0!important;border-radius:4px;background:var(--line,#eee)}
.bf-lead img.sq-th{width:200px;height:200px}.bf-lead h2{margin-top:6px}
@media(max-width:600px){img.sq-th{width:72px;height:72px}.bf-lead img.sq-th{width:120px;height:120px}.bf-lead,.gr-sec3 a.gr-sc,.bf-list a{gap:10px}}
.bf-list,.bf-list li,.bf-list a{min-width:0;max-width:100%;box-sizing:border-box}.bf-list a time{flex:0 0 52px}.sq-tx{overflow-wrap:anywhere}
@media(max-width:600px){.bf-list a time{flex-basis:44px}}

/* Oct 31 v2: no gap after lead — secondary stories sit under lead in left column; drop old 16:9-hero reserved heights */
.bf-main{min-width:0}.bf-main .gr-sec3{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));min-height:0}
.bf-top #lead1,#home .bf-top{min-height:0!important}
@media(max-width:900px){#gr-glance,.gr-gl{min-height:0!important}}

/* top = lead only; secondary stories in a row below */
.bf-top{align-items:start}.bf-top #gr-glance{min-height:0}.gr-sec3.gr-below{grid-template-columns:repeat(3,1fr);min-height:0;margin:22px 0 8px}
@media(max-width:900px){.gr-sec3.gr-below{grid-template-columns:1fr}#gr-glance,.gr-gl{min-height:0}}

/* v4: lead fills row height on desktop - no gap under lead */
@media(min-width:761px){.bf-top{align-items:stretch!important}.bf-top .bf-main,.bf-top #lead1{display:flex;flex-direction:column;height:100%}.bf-top #lead1>.bf-lead{flex:1 1 auto;flex-direction:column!important;gap:10px}.bf-top .bf-lead img.sq-th{width:100%!important;height:auto!important;aspect-ratio:auto!important;flex:1 1 0;min-height:220px;max-height:none}.bf-top .bf-lead .sq-tx{flex:0 0 auto}}

/* Oct 31 v5: compact secondary row + tighter section gaps on News */
.gr-sec3.gr-below{align-items:start;gap:20px;margin:18px 0 6px}.gr-sec3.gr-below a.gr-sc{align-items:flex-start;padding-top:10px}.gr-sec3.gr-below .sq-tx>*:last-child{margin-bottom:0}
main.hw .how{margin-top:28px}main.hw ~ #footer,main.hw ~ .footer{margin-top:32px}
