/* ===========================================================================
   jspace.css — the public site's design, loaded AFTER site.css.

   site.css still styles the older pages (browse, company, gallery, units,
   paying, contact). This file sets the type, colour and spacing for the
   whole public site, and holds the components the rebuilt pages use.
   Every new class starts with jx- so it cannot collide with site.css.

   Direction, in one line: a building's notice board, not a brochure.
   Plain, confident, left-aligned; evidence before adjectives. The one
   decorative thing is the Standard's seal. Everything else stays quiet.

     Ink       #10213A   text, the charter band
     Slate     #4A5A72   secondary text
     Red       #B01C2E   actions and the wordmark, nothing else
     Seal      #A87A22   the Standard's seal only
     Stone     #EEF1F4   alternate bands
     Rule      #D5DCE5   lines
   =========================================================================== */

:root{
  --jx-ink:#10213A; --jx-slate:#4A5A72; --jx-red:#B01C2E; --jx-red-2:#8E1624;
  --jx-seal:#A87A22; --jx-stone:#EEF1F4; --jx-rule:#D5DCE5; --jx-paper:#FFFFFF;
  --jx-ok:#1E7A55;
  --jx-sans:"Schibsted Grotesk",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --jx-serif:"Source Serif 4",Georgia,"Times New Roman",serif;
  --jx-wrap:1160px;
}

/* -- base: applies to every public page ------------------------------------ */
body:not(.staff){font-family:var(--jx-sans);color:var(--jx-ink);
  font-size:17px;line-height:1.6;-webkit-font-smoothing:antialiased}
body:not(.staff) h1,body:not(.staff) h2,body:not(.staff) h3{
  font-family:var(--jx-sans);color:var(--jx-ink);letter-spacing:-.02em}
body:not(.staff) h1{font-size:clamp(2.2rem,4.6vw,3.6rem);line-height:1.06;font-weight:700}
body:not(.staff) h2{font-size:clamp(1.55rem,2.6vw,2.15rem);line-height:1.15;font-weight:700}
body:not(.staff) h3{font-size:1.15rem;line-height:1.3;font-weight:700;letter-spacing:-.01em}

body:not(.staff) .wrap{max-width:var(--jx-wrap)}
:focus-visible{outline:3px solid var(--jx-red);outline-offset:3px}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* -- buttons ------------------------------------------------------------ */
.jx-btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;
  min-height:50px;padding:0 24px;border-radius:6px;border:1.5px solid transparent;
  font:600 1rem/1 var(--jx-sans);text-decoration:none;cursor:pointer;
  transition:background-color .15s ease,border-color .15s ease}
.jx-btn.primary{background:var(--jx-red);color:#fff}
.jx-btn.primary:hover{background:var(--jx-red-2)}
.jx-btn.line{background:transparent;color:var(--jx-ink);border-color:var(--jx-ink)}
.jx-btn.line:hover{background:var(--jx-ink);color:#fff}
.jx-btn.onDark{background:#fff;color:var(--jx-ink)}
.jx-btn.onDark:hover{background:var(--jx-stone)}
.jx-link{color:var(--jx-red);font-weight:600;text-decoration:underline;
  text-underline-offset:3px;text-decoration-thickness:1.5px}
.jx-acts{display:flex;flex-wrap:wrap;gap:12px;align-items:center}

/* -- sections ----------------------------------------------------------- */
.jx-sec{padding:clamp(56px,8vw,104px) 0}
.jx-sec.stone{background:var(--jx-stone)}
.jx-sec.ink{background:var(--jx-ink);color:#D9E1EC}
.jx-sec.ink h2,.jx-sec.ink h3{color:#fff}
.jx-head{max-width:640px;margin-bottom:clamp(28px,4vw,48px)}
.jx-head h2{margin:0}
.jx-head p{margin:14px 0 0;color:var(--jx-slate);font-size:1.08rem;max-width:58ch}
.jx-sec.ink .jx-head p{color:#B9C5D6}
.jx-kicker{display:block;margin:0 0 12px;font-size:.95rem;font-weight:600;color:var(--jx-red)}
.jx-sec.ink .jx-kicker{color:#F2B8BF}

/* -- hero --------------------------------------------------------------- */
.jx-hero{padding:clamp(40px,7vw,88px) 0 clamp(48px,7vw,96px);
  border-bottom:1px solid var(--jx-rule)}
.jx-hero .wrap{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);
  gap:clamp(32px,5vw,72px);align-items:center}
.jx-hero h1{margin:0;max-width:15ch}
.jx-hero .lede{margin:22px 0 0;font-size:1.18rem;line-height:1.55;color:var(--jx-slate);max-width:46ch}
.jx-hero .jx-acts{margin-top:32px}
.jx-hero .fine{margin:18px 0 0;font-size:.92rem;color:var(--jx-slate)}
@media (max-width:900px){.jx-hero .wrap{grid-template-columns:1fr}}

/* -- the certificate: the one decorative thing on the site --------------- */
.jx-cert{position:relative;background:var(--jx-paper);border:1px solid var(--jx-rule);
  outline:1px solid var(--jx-rule);outline-offset:6px;padding:32px 30px 26px;margin:8px}
.jx-cert .seal{position:absolute;top:-26px;right:-18px;width:112px;height:112px}
.jx-cert .seal .ring{fill:none;stroke:var(--jx-seal);stroke-width:1.6;
  stroke-dasharray:340;stroke-dashoffset:340;animation:jx-draw 1.3s .25s ease-out forwards}
.jx-cert .seal text{fill:var(--jx-seal);font:700 9.4px/1 var(--jx-sans);letter-spacing:.2em}
.jx-cert .seal .core{fill:var(--jx-seal);opacity:0;animation:jx-fade .5s 1.2s ease-out forwards}
@keyframes jx-draw{to{stroke-dashoffset:0}}
@keyframes jx-fade{to{opacity:1}}
.jx-cert h2{font-size:1.45rem;margin:0 70px 6px 0}
.jx-cert .sub{margin:0 0 18px;color:var(--jx-slate);font-size:.98rem;max-width:34ch}
.jx-cert ul{list-style:none;margin:0;padding:0;border-top:1px solid var(--jx-rule)}
.jx-cert li{display:grid;grid-template-columns:22px 1fr;gap:10px;align-items:start;
  padding:11px 0;border-bottom:1px solid var(--jx-rule);font-size:.98rem;line-height:1.45}
.jx-cert li svg{margin-top:3px;color:var(--jx-ok)}
.jx-cert .foot{margin:16px 0 0;font-size:.9rem}

/* -- rows: features as a ruled list, not a grid of cards ------------------ */
.jx-rows{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:clamp(28px,5vw,64px)}
.jx-row{padding:22px 0 24px;border-top:1.5px solid var(--jx-ink)}
.jx-row h3{margin:0 0 8px}
.jx-row p{margin:0;color:var(--jx-slate);max-width:48ch}
@media (max-width:760px){.jx-rows{grid-template-columns:1fr}}

/* -- the charter: clauses are numbered because people cite them ---------- */
.jx-charter{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  column-gap:clamp(28px,5vw,72px);counter-reset:clause}
.jx-clause{padding:20px 0 22px;border-top:1px solid rgba(255,255,255,.18)}
.jx-clause .no{display:block;font-size:.88rem;font-weight:600;color:#F2B8BF;margin-bottom:6px}
.jx-clause h3{margin:0 0 6px;font-size:1.12rem}
.jx-clause p{margin:0;color:#B9C5D6;max-width:46ch}
@media (max-width:760px){.jx-charter{grid-template-columns:1fr}}

/* -- measures: what is scored and where the evidence comes from ---------- */
.jx-measures{width:100%;border-collapse:collapse;font-size:1rem}
.jx-measures th,.jx-measures td{text-align:left;vertical-align:top;padding:16px 18px 16px 0;
  border-bottom:1px solid var(--jx-rule)}
.jx-measures thead th{font-size:.9rem;font-weight:600;color:var(--jx-slate);
  border-bottom:1.5px solid var(--jx-ink)}
.jx-measures td:first-child{font-weight:700;width:30%}
.jx-measures td:last-child{color:var(--jx-slate)}
.jx-tablewrap{overflow-x:auto}
@media (max-width:640px){
  .jx-measures thead{display:none}
  .jx-measures tr{display:block;padding:14px 0;border-bottom:1px solid var(--jx-rule)}
  .jx-measures td{display:block;padding:2px 0;border:0;width:auto!important}
}

/* -- steps: a real sequence ---------------------------------------------- */
.jx-steps{list-style:none;margin:0;padding:0;display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(20px,3vw,36px);counter-reset:step}
.jx-steps li{counter-increment:step;padding-top:18px;border-top:1.5px solid var(--jx-ink)}
.jx-steps li::before{content:counter(step);display:block;font-size:2.4rem;font-weight:700;
  line-height:1;color:var(--jx-red);margin-bottom:12px;letter-spacing:-.03em}
.jx-steps h3{margin:0 0 6px}
.jx-steps p{margin:0;color:var(--jx-slate);font-size:.98rem}
@media (max-width:900px){.jx-steps{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:520px){.jx-steps{grid-template-columns:1fr}}

/* -- guide doors on the home page ---------------------------------------- */
.jx-doors{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(16px,3vw,28px)}
.jx-door{display:block;text-decoration:none;color:inherit;background:var(--jx-paper);
  border:1px solid var(--jx-rule);border-left:5px solid var(--jx-ink);padding:26px 26px 24px;
  transition:border-color .15s ease}
.jx-door:hover{border-left-color:var(--jx-red)}
.jx-door h3{margin:0 0 8px;font-size:1.3rem}
.jx-door p{margin:0 0 14px;color:var(--jx-slate)}
.jx-door .go{font-weight:600;color:var(--jx-red)}
@media (max-width:760px){.jx-doors{grid-template-columns:1fr}}

/* -- the closing offer ---------------------------------------------------- */
.jx-offer{display:grid;grid-template-columns:minmax(0,1.3fr) auto;gap:28px;align-items:end}
.jx-offer h2{margin:0;max-width:22ch}
.jx-offer p{margin:14px 0 0;color:var(--jx-slate);max-width:52ch}
@media (max-width:760px){.jx-offer{grid-template-columns:1fr}}

/* ===========================================================================
   Guides: rights.php and tax_guide.php. Long reading, so the body text is
   a serif at a comfortable measure, and the contents stay beside you.
   =========================================================================== */
.jx-back{background:var(--jx-stone);border-bottom:1px solid var(--jx-rule);font-size:.95rem}
.jx-back .wrap{display:flex;justify-content:space-between;gap:12px;padding-top:11px;padding-bottom:11px;flex-wrap:wrap}
.jx-back a{font-weight:600;text-decoration:none}

.jx-pagehead{padding:clamp(36px,6vw,72px) 0 clamp(26px,4vw,40px);border-bottom:1px solid var(--jx-rule)}
.jx-pagehead h1{margin:0;max-width:20ch}
.jx-pagehead .lede{margin:18px 0 0;font-size:1.15rem;color:var(--jx-slate);max-width:60ch}
.jx-pagehead .meta{margin:18px 0 0;font-size:.92rem;color:var(--jx-slate)}

.jx-doc{display:grid;grid-template-columns:230px minmax(0,1fr);gap:clamp(28px,5vw,64px);
  padding-top:clamp(32px,5vw,56px);padding-bottom:clamp(56px,8vw,96px)}
.jx-toc{position:sticky;top:92px;align-self:start;font-size:.95rem}
.jx-toc b{display:block;margin-bottom:10px;font-size:.9rem;color:var(--jx-slate);font-weight:600}
.jx-toc a{display:block;padding:6px 0 6px 12px;border-left:2px solid var(--jx-rule);
  text-decoration:none;color:var(--jx-ink)}
.jx-toc a:hover{border-left-color:var(--jx-red);color:var(--jx-red)}
@media (max-width:900px){
  .jx-doc{grid-template-columns:1fr}
  .jx-toc{position:static;display:flex;flex-wrap:wrap;gap:6px 14px}
  .jx-toc b{width:100%;margin:0}
  .jx-toc a{border:0;padding:4px 0;text-decoration:underline;text-underline-offset:3px}
}

.jx-article{max-width:720px}
.jx-article section{padding-bottom:40px;margin-bottom:40px;border-bottom:1px solid var(--jx-rule);
  scroll-margin-top:92px}
.jx-article section:last-child{border-bottom:0}
.jx-article h2{margin:0 0 10px}
.jx-article .lead{margin:0 0 20px;font-family:var(--jx-serif);font-size:1.18rem;line-height:1.6;
  color:var(--jx-slate)}
.jx-article p,.jx-article li{font-family:var(--jx-serif);font-size:1.08rem;line-height:1.72}

.jx-points{list-style:none;margin:0;padding:0}
.jx-points li{display:grid;grid-template-columns:128px minmax(0,1fr);gap:16px;
  padding:14px 0;border-top:1px solid var(--jx-rule)}
.jx-points li[hidden]{display:none}
.jx-who{font-family:var(--jx-sans);font-size:.82rem;font-weight:600;line-height:1.3;
  padding-top:5px;color:var(--jx-slate)}
.jx-who.right{color:var(--jx-ok)}
.jx-who.protect{color:var(--jx-ink)}
.jx-who.tenant{color:var(--jx-slate)}
@media (max-width:560px){.jx-points li{grid-template-columns:1fr;gap:2px}}

.jx-filter{display:flex;flex-wrap:wrap;gap:8px;margin:22px 0 0}
.jx-filter button{font:600 .95rem/1 var(--jx-sans);min-height:40px;padding:0 16px;border-radius:999px;
  border:1.5px solid var(--jx-rule);background:#fff;color:var(--jx-ink);cursor:pointer}
.jx-filter button[aria-pressed="true"]{background:var(--jx-ink);border-color:var(--jx-ink);color:#fff}

.jx-note{margin:0 0 32px;padding:16px 18px;background:var(--jx-stone);border-left:4px solid var(--jx-seal);
  font-size:.98rem;line-height:1.6}
.jx-note p{margin:0;font-family:var(--jx-sans);font-size:.98rem}

/* glossary */
.jx-search{display:block;width:100%;max-width:420px;min-height:48px;padding:0 14px;margin:0 0 22px;
  border:1.5px solid var(--jx-rule);border-radius:6px;font:1rem var(--jx-sans);background:#fff}
.jx-search:focus{border-color:var(--jx-ink);outline:none;box-shadow:0 0 0 3px rgba(16,33,58,.15)}
.jx-gloss{margin:0}
.jx-gloss > div{display:grid;grid-template-columns:200px minmax(0,1fr);gap:16px;
  padding:14px 0;border-top:1px solid var(--jx-rule)}
.jx-gloss > div[hidden]{display:none}
.jx-gloss dt{font-weight:700;font-family:var(--jx-sans)}
.jx-gloss dd{margin:0;font-family:var(--jx-serif);font-size:1.05rem;line-height:1.65}
.jx-gloss dd a{font-family:var(--jx-sans);font-size:.9rem;font-weight:600;color:var(--jx-red);
  white-space:nowrap}
@media (max-width:560px){.jx-gloss > div{grid-template-columns:1fr;gap:4px}}
.jx-empty{color:var(--jx-slate);font-style:italic}

.jx-sources{list-style:none;padding:0;margin:0}
.jx-sources li{padding:10px 0;border-top:1px solid var(--jx-rule);font-family:var(--jx-sans)!important;font-size:1rem!important}

/* tax: timeline and calculator */
.jx-dates{list-style:none;margin:0;padding:0;border-left:2px solid var(--jx-ink);margin-left:6px}
.jx-dates li{position:relative;padding:0 0 22px 24px}
.jx-dates li::before{content:"";position:absolute;left:-7px;top:9px;width:12px;height:12px;
  border-radius:50%;background:#fff;border:2px solid var(--jx-ink)}
.jx-dates li.now::before{background:var(--jx-red);border-color:var(--jx-red)}
.jx-dates time{display:block;font-family:var(--jx-sans);font-weight:700;font-size:1rem}
.jx-dates span{font-size:1.02rem}

.jx-calc{background:var(--jx-stone);padding:24px;margin:8px 0 0}
.jx-calc .fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px}
.jx-calc label{display:block;font:600 .92rem var(--jx-sans);margin-bottom:6px}
.jx-calc input,.jx-calc select{width:100%;min-height:48px;padding:0 12px;border:1.5px solid var(--jx-rule);
  border-radius:6px;font:1rem var(--jx-sans);background:#fff}
.jx-calc input:focus,.jx-calc select:focus{border-color:var(--jx-ink);outline:none}
.jx-calc output{display:block;margin-top:18px;font-family:var(--jx-sans)}
.jx-calc output .big{display:block;font-size:2rem;font-weight:700;letter-spacing:-.02em}
.jx-calc output .how{display:block;margin-top:4px;color:var(--jx-slate);font-size:.95rem}

.jx-worked{width:100%;border-collapse:collapse;font-family:var(--jx-sans);font-size:1rem;margin:10px 0 0}
.jx-worked td{padding:9px 0;border-bottom:1px solid var(--jx-rule)}
.jx-worked td:last-child{text-align:right;font-weight:600}
.jx-worked tr.total td{border-bottom:0;border-top:1.5px solid var(--jx-ink);font-weight:700}

/* print: the guides are worth handing to someone */
@media print{
  .site-head,.site-foot,.jx-toc,.jx-filter,.jx-back,.jx-search,.jx-calc{display:none!important}
  .jx-doc{display:block}
  body{font-size:12pt}
}

/* -- footer ------------------------------------------------------------- */
.jx-foot{background:var(--jx-ink);color:#B9C5D6;padding:56px 0 0;font-size:.97rem}
.jx-foot a{color:#DCE4EE;text-decoration:none}
.jx-foot a:hover{color:#fff;text-decoration:underline;text-underline-offset:3px}
.jx-foot-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2.2fr);gap:clamp(28px,5vw,64px)}
.jx-foot-who .nm{color:#fff;font-weight:800;font-size:1.2rem;letter-spacing:-.02em;margin-bottom:10px}
.jx-foot-who p{margin:0;max-width:34ch;line-height:1.6}
.jx-foot-cols{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}
.jx-foot-cols h2{margin:0 0 12px;font-size:.95rem;font-weight:700;color:#fff;letter-spacing:0}
.jx-foot-cols a,.jx-foot-cols span{display:block;margin-bottom:9px;line-height:1.45}
.jx-foot-base{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;
  margin-top:44px;padding-top:18px;padding-bottom:22px;border-top:1px solid rgba(255,255,255,.14);font-size:.9rem}
.jx-foot-base a{margin-left:14px}
@media (max-width:900px){.jx-foot-grid{grid-template-columns:1fr}.jx-foot-cols{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* -- fixes where site.css reaches into the new pages -------------------- */
.head-actions .portal{text-transform:none!important;letter-spacing:0!important}
.jx-measures thead th,.jx-worked td{text-transform:none;letter-spacing:0}
body:not(.staff) .jx-link{color:var(--jx-red)}
.jx-foot-cols h2{font-size:.95rem!important;line-height:1.3!important}
.jx-foot .jx-foot-cols h2{color:#fff!important}
.jx-sec.ink h2,.jx-sec.ink h3{color:#fff!important}

/* -- photographs ------------------------------------------------------------
   Real homes and the people in them, never decoration for its own sake.
   Square corners and no shadows, so they sit on the page like prints. */
.jx-banner{height:clamp(130px,16vw,220px);overflow:hidden;background:var(--jx-stone)}
.jx-banner img{width:100%;height:100%;object-fit:cover;object-position:center 45%;display:block}

.jx-strip{display:grid;grid-template-columns:2fr 1fr 1fr;gap:10px;margin:0;
  padding:clamp(28px,4vw,48px) 0 0}
.jx-strip figure{margin:0;position:relative;height:clamp(180px,22vw,300px);overflow:hidden;background:var(--jx-stone)}
.jx-strip img{width:100%;height:100%;object-fit:cover;display:block}
.jx-strip figcaption{position:absolute;left:0;bottom:0;padding:8px 12px;background:rgba(16,33,58,.78);
  color:#fff;font-size:.88rem;line-height:1.3}
@media (max-width:760px){
  .jx-strip{grid-template-columns:1fr 1fr}
  .jx-strip figure:first-child{grid-column:1 / -1}
  .jx-strip figure{height:200px}
}

.jx-door .pic{display:block;margin:-26px -26px 20px;height:170px;overflow:hidden;background:var(--jx-stone)}
.jx-door .pic img{width:100%;height:100%;object-fit:cover;display:block}

.jx-pagehead.with-photo .wrap{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);
  gap:clamp(24px,5vw,64px);align-items:center}
.jx-pagehead .pic{margin:0;aspect-ratio:4/3;max-height:320px;overflow:hidden;background:var(--jx-stone)}
.jx-pagehead .pic img{width:100%;height:100%;object-fit:cover;display:block}
@media (max-width:860px){
  .jx-pagehead.with-photo .wrap{grid-template-columns:1fr}
  .jx-pagehead .pic{aspect-ratio:16/9;order:-1}
}

.jx-offer-pic{margin:0 0 clamp(28px,4vw,40px);height:clamp(200px,28vw,360px);overflow:hidden;background:#dfe4ea}
.jx-offer-pic img{width:100%;height:100%;object-fit:cover;object-position:center 60%;display:block}

.jx-credit{margin:10px 0 0;font-size:.82rem;color:var(--jx-slate)}
.jx-credit a{color:inherit}
@media print{.jx-banner,.jx-strip,.jx-pagehead .pic{display:none!important}}

/* Numbers line up in tables and figures only. On body text, this font's
   tabular setting widened commas and full stops ("Repairs , questions"). */
.jx-measures td,.jx-worked td,.jx-calc output,.jx-dates time{font-variant-numeric:tabular-nums}
/* A page title on dark (the old navy page head) must stay white. */
.pagehead h1{color:#fff}

/* the arrears steps inside a guide: one column, since the text column is narrow */
.jx-steps.jx-steps-list{grid-template-columns:1fr;gap:0}
.jx-steps.jx-steps-list li{display:grid;grid-template-columns:48px minmax(0,1fr);column-gap:14px;
  padding:16px 0;border-top:1px solid var(--jx-rule)}
.jx-steps.jx-steps-list li::before{grid-row:1 / span 2;font-size:1.8rem;margin:0}
.jx-steps.jx-steps-list h3{margin:0 0 4px;font-family:var(--jx-sans)}
.jx-steps.jx-steps-list p{margin:0}

/* the filter sits at the top of the guide and stays in view while reading */
.jx-filterbar{position:sticky;top:70px;z-index:5;background:#fff;scroll-margin-top:80px;
  box-shadow:0 8px 12px -12px rgba(16,33,58,.35);
  padding:12px 0 10px;margin:0 0 20px;border-bottom:1px solid var(--jx-rule)}
.jx-filterbar .jx-filter{margin:0}
.jx-filter-status{margin:8px 0 0!important;font:500 .9rem var(--jx-sans)!important;color:var(--jx-slate)}
@media (max-width:900px){.jx-filterbar{top:62px}}

/* a filter is on: tight list of just the chosen points */
.jx-article.filtered section{padding-top:8px!important;padding-bottom:10px!important;margin-bottom:10px!important}
.jx-article.filtered section h2{font-size:1.3rem;margin-bottom:4px}
.jx-article.filtered .lead{display:none}

/* the simple footer: name, one row of links */
.jx-foot{padding-top:36px}
.jx-foot-simple{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px 28px}
.jx-foot-simple .nm{color:#fff;font-weight:800;font-size:1.1rem;letter-spacing:-.02em}
.jx-foot-simple nav{display:flex;flex-wrap:wrap;gap:8px 22px}
.jx-foot-base{margin-top:26px}

/* the simple home page */
.jx-hero-photo{margin:0;position:relative;aspect-ratio:4/3;border-radius:4px;overflow:hidden;background:var(--jx-stone)}
.jx-hero-photo img{width:100%;height:100%;object-fit:cover;display:block}
.jx-hero-photo .badge{position:absolute;left:14px;bottom:14px;display:flex;align-items:center;gap:8px;
  background:#fff;color:var(--jx-ink);font-weight:700;font-size:.9rem;padding:8px 14px 8px 10px;border-radius:999px;
  box-shadow:0 8px 24px -10px rgba(16,33,58,.5)}
.jx-hero-photo .badge svg{color:var(--jx-seal)}
.jx-four{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(18px,3vw,32px)}
.jx-four div{border-top:2px solid var(--jx-ink);padding-top:16px}
.jx-four h3{margin:0 0 6px;font-size:1.08rem}
.jx-four p{margin:0;color:var(--jx-slate);font-size:.98rem}
@media (max-width:900px){.jx-four{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:520px){.jx-four{grid-template-columns:1fr}}

/* rental tax, inside the legal page: its parts read as one section */
.jx-article section.sub{border-bottom:0;padding-bottom:10px;margin-bottom:10px}
.jx-article section.sub h2{font-size:1.2rem}

/* home: photo cards for what you get */
.jx-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(14px,2vw,22px)}
.jx-card{background:#fff;border:1px solid var(--jx-rule);border-radius:14px;overflow:hidden;
  transition:transform .18s ease,box-shadow .18s ease}
.jx-card:hover{transform:translateY(-3px);box-shadow:0 18px 40px -24px rgba(16,33,58,.45)}
.jx-card .pic{aspect-ratio:4/3;overflow:hidden;background:var(--jx-stone)}
.jx-card .pic img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s ease}
.jx-card:hover .pic img{transform:scale(1.05)}
.jx-card .txt{padding:16px 18px 18px}
.jx-card h3{margin:0 0 4px;font-size:1.08rem}
.jx-card p{margin:0;color:var(--jx-slate);font-size:.95rem}
@media (max-width:900px){.jx-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:520px){.jx-cards{grid-template-columns:1fr}}

/* home: the law section over a Kampala photograph */
.jx-photoband{position:relative;color:#fff;padding:clamp(64px,9vw,120px) 0;
  background:linear-gradient(90deg,rgba(16,33,58,.92) 0%,rgba(16,33,58,.78) 55%,rgba(16,33,58,.5) 100%),
             var(--bg) center/cover no-repeat,#10213A}
.jx-photoband h2{color:#fff!important;margin:0 0 clamp(24px,4vw,40px)}
.jx-photoband .jx-four div{border-top-color:rgba(255,255,255,.55)}
.jx-photoband .jx-four h3{color:#fff!important}
.jx-photoband .jx-four p{color:#D9E1EC}
@media (prefers-reduced-motion:reduce){.jx-card,.jx-card .pic img{transition:none}}
