/* Real Realty reports, 22 Oct 2026. Brand CI from real.co.za: Montserrat, navy #142c44, teal #4faba7. Phone first. */
:root {
  --navy: #142c44;
  --navy-deep: #0e1f30;
  --teal: #4faba7;
  --teal-ink: #2b7a76;
  --teal-tint: #e6f3f2;
  --navy-tint: #e8edf3;
  --amber-tint: #fbf3e4;
  --amber-ink: #7a5514;
  --ink: #39424c;
  --muted: #5f6873;
  --line: #e1e6eb;
  --bg: #f5f5f7;
  --card: #ffffff;
  --radius: 12px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
p, li { text-wrap: pretty; }
a { color: var(--teal-ink); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- masthead ---------- */
.masthead { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.masthead .mark-bg { position: absolute; right: -250px; top: -40px; width: 560px; opacity: .07; pointer-events: none; }
.masthead .wrap { position: relative; padding-top: 22px; padding-bottom: 28px; }
.logo { height: 40px; width: auto; }
.eyebrow { margin: 32px 0 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); }
.masthead h1 { margin: 0; font-size: 31px; line-height: 1.12; font-weight: 800; letter-spacing: -.01em; max-width: 17ch; }
.masthead .intro { margin: 14px 0 0; max-width: 52ch; font-size: 15px; color: rgba(255,255,255,.88); }
.asof { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 13.5px; color: rgba(255,255,255,.86); }
.asof li { display: flex; align-items: baseline; gap: 10px; }
.asof .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(79,171,167,.22); flex: none; transform: translateY(-1px); }
.asof b { color: #fff; font-weight: 700; }

/* ---------- tabs (Part A) ---------- */
.tabs { position: sticky; top: 0; z-index: 5; background: var(--navy-deep); box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 6px 18px rgba(14,31,48,.18); }
.tabs .wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding-top: 8px; padding-bottom: 8px; }
.tab { display: grid; place-items: center; gap: 1px; min-height: 48px; padding: 6px 4px; border-radius: 10px; color: rgba(255,255,255,.82); text-decoration: none; text-align: center; font-size: 13.5px; font-weight: 700; line-height: 1.2; }
.tab small { font-size: 11px; font-weight: 500; color: rgba(255,255,255,.62); }
.tab:hover { background: rgba(255,255,255,.07); color: #fff; }
.tab[aria-selected="true"] { background: var(--teal); color: #072a28; }
.tab[aria-selected="true"] small { color: #0d3d3a; }

/* ---------- sections ---------- */
.section { padding: 30px 0 6px; scroll-margin-top: 72px; }
.preheading { margin: 0 0 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
h2 { margin: 0 0 8px; color: var(--navy); font-size: 25px; line-height: 1.2; font-weight: 800; letter-spacing: -.005em; }
h3 { margin: 0 0 10px; color: var(--navy); font-size: 17px; font-weight: 800; }
.runs { display: inline-flex; align-items: center; gap: 9px; margin: 2px 0 16px; padding: 7px 12px 7px 10px; border-radius: 999px; background: var(--navy-tint); color: var(--navy); font-size: 13px; font-weight: 600; }
.runs .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); flex: none; }
.runs b { font-weight: 800; }
.lede { margin: 0 0 18px; max-width: 64ch; }

/* stat tiles */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 16px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 14px; min-width: 0; }
.stat.accent { background: var(--navy); border-color: var(--navy); }
.stat-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.stat-value { margin-top: 3px; font-size: 24px; line-height: 1.15; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat-sub { margin-top: 3px; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.stat.accent .stat-label { color: rgba(255,255,255,.72); }
.stat.accent .stat-value { color: #fff; }
.stat.accent .stat-sub { color: rgba(255,255,255,.8); }
.stat.wide { grid-column: 1 / -1; }

/* how it is counted */
.measure { margin: 0 0 14px; padding: 13px 15px; background: var(--teal-tint); border-radius: 10px; font-size: 14px; color: #24514f; }
.measure p { margin: 0; }
.measure p + p { margin-top: 8px; }
.measure b { color: #183f3d; }
.caution { margin: 0 0 14px; padding: 12px 15px; background: var(--amber-tint); border-radius: 10px; font-size: 13.5px; color: var(--amber-ink); }
.caution b { color: #5e400c; }

/* ranking tables */
.rank-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.rank-table th { text-align: right; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 11px 14px; border-bottom: 1px solid var(--line); background: #fafbfc; white-space: nowrap; }
.rank-table th.l, .rank-table td.l { text-align: left; }
.rank-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums; vertical-align: middle; }
.rank-table tbody tr:last-child td { border-bottom: 0; }
.rank-table .rank { width: 46px; font-weight: 800; color: var(--navy); text-align: left; font-size: 16px; }
.rank-table .who { font-weight: 700; color: var(--navy); text-align: left; }
.rank-table .who a { color: var(--navy); text-decoration: none; }
.rank-table .who a:hover { text-decoration: underline; }
.rank-table .who .former { font-style: italic; font-weight: 600; color: var(--muted); }
.rank-table .main { font-weight: 800; color: var(--navy); font-size: 16px; white-space: nowrap; }
.rank-table .barcell { width: 30%; padding-left: 0; }
.bar { display: block; height: 8px; border-radius: 4px; background: #edf1f4; overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 4px; background: var(--teal); }
.rank-table tr.tied .rank::after { content: "="; font-weight: 700; color: var(--muted); margin-left: 1px; }
.rank-table .m-sub { display: none; }
.tienote { margin: 10px 2px 0; font-size: 13px; color: var(--muted); }
.totals-line { margin: 10px 2px 0; font-size: 13px; color: var(--muted); }

details.more { margin: 16px 0 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
details.more summary { cursor: pointer; padding: 13px 15px; font-weight: 700; color: var(--navy); font-size: 14.5px; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::after { content: ""; flex: none; width: 9px; height: 9px; margin-right: 4px; border-right: 2px solid var(--teal-ink); border-bottom: 2px solid var(--teal-ink); transform: translateY(-3px) rotate(45deg); }
details.more[open] summary::after { transform: translateY(2px) rotate(-135deg); }
details.more .inner { padding: 0 0 4px; }
details.more .rank-table { border: 0; border-top: 1px solid var(--line); border-radius: 0; }
details.more .tienote { margin: 10px 15px 8px; }

.notes { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 13.5px; }
.notes li { position: relative; padding-left: 18px; }
.notes li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.notes b { color: var(--navy); }

/* to complete / to bring to date */
.needs { margin: 34px 0 0; background: var(--navy); color: #fff; border-radius: 14px; padding: 20px 18px; position: relative; overflow: hidden; }
.needs h2 { color: #fff; font-size: 21px; margin-bottom: 6px; }
.needs p { margin: 0 0 12px; color: rgba(255,255,255,.84); font-size: 14px; max-width: 64ch; }
.needs ol { margin: 0; padding: 0; list-style: none; counter-reset: need; display: grid; gap: 10px; }
.needs li { counter-increment: need; position: relative; padding: 12px 14px 12px 48px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; font-size: 14px; color: rgba(255,255,255,.92); }
.needs li::before { content: counter(need); position: absolute; left: 13px; top: 11px; width: 24px; height: 24px; border-radius: 50%; background: var(--teal); color: #072a28; font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.needs li b { color: #fff; }

/* year table (Part B) */
.years { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 14px; }
.years th { text-align: right; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 11px 12px; border-bottom: 1px solid var(--line); background: #fafbfc; }
.years th.l, .years td.l { text-align: left; }
.years td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums; vertical-align: top; }
.years tbody tr:last-child td { border-bottom: 0; }
.years .yr { font-weight: 800; color: var(--navy); font-size: 16px; }
.years .yr small { display: block; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.flag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.flag.full { background: var(--teal-tint); color: var(--teal-ink); }
.flag.part { background: var(--amber-tint); color: var(--amber-ink); }
.flag.none { background: #eef0f2; color: var(--muted); }

.cards { display: grid; gap: 12px; }
.ycard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.ycard header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.ycard h3 { margin: 0; font-size: 22px; }
.ycard .kv { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; font-size: 14px; }
.ycard .kv dt { color: var(--muted); }
.ycard .kv dd { margin: 0; text-align: right; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.ycard .kv dd small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.ycard p { margin: 10px 0 0; font-size: 13.5px; color: var(--muted); }

.growth { display: grid; gap: 10px; }
.gbar { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 15px; }
.gbar .row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 14px; }
.gbar .row + .row { margin-top: 8px; }
.gbar .row b { color: var(--navy); }
.gbar .row .v { font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; white-space: nowrap; }
.gbar h3 { font-size: 15px; margin-bottom: 10px; }
.gbar .x { margin: 10px 0 0; font-size: 13.5px; color: var(--teal-ink); font-weight: 700; }

/* ---------- footer ---------- */
.foot { margin-top: 44px; background: var(--navy-deep); color: rgba(255,255,255,.8); font-size: 13px; }
.foot .wrap { padding-top: 26px; padding-bottom: 30px; display: grid; gap: 12px; }
.foot img { height: 30px; width: auto; }
.foot p { margin: 0; max-width: 80ch; }
.foot .by { color: rgba(255,255,255,.6); font-size: 12px; }
.foot a { color: #9fd6d3; }

/* ---------- phone layouts ---------- */
@media screen and (max-width: 759px) {
  .rank-table thead { display: none; }
  .rank-table, .rank-table tbody { display: block; }
  .rank-table tr { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; grid-template-areas: "rank who main" "rank sub sub" "rank bar bar"; align-items: center; gap: 3px 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .rank-table tbody tr:last-child { border-bottom: 0; }
  .rank-table td { border: 0; padding: 0; }
  .rank-table td.rank { grid-area: rank; align-self: start; width: auto; font-size: 17px; line-height: 1.35; }
  .rank-table td.who { grid-area: who; min-width: 0; overflow-wrap: anywhere; }
  .rank-table td.main { grid-area: main; font-size: 17px; }
  .rank-table td.barcell { grid-area: bar; width: auto; padding: 4px 0 0; }
  .rank-table td.d-only { display: none; }
  .rank-table .m-sub { display: block; grid-area: sub; text-align: left; font-size: 12.5px; color: var(--muted); }
  .bar { height: 6px; }
  .years thead { display: none; }
}

@media (min-width: 560px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat.wide { grid-column: auto; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 28px; }
  .masthead .wrap { padding-top: 28px; padding-bottom: 40px; }
  .masthead .mark-bg { right: -80px; top: -90px; width: 760px; }
  .logo { height: 48px; }
  .eyebrow { margin-top: 48px; }
  .masthead h1 { font-size: 48px; max-width: 20ch; }
  .masthead .intro { font-size: 16.5px; }
  .asof { font-size: 14.5px; }
  .tabs .wrap { display: flex; gap: 8px; }
  .tab { min-width: 190px; padding: 8px 18px; }
  h2 { font-size: 30px; }
  .section { padding-top: 44px; scroll-margin-top: 80px; }
  .stat-value { font-size: 27px; }
  .needs { padding: 26px 28px; }
  .needs ol { grid-template-columns: 1fr 1fr; }
  .gbar .row { grid-template-columns: 64px minmax(0, 1fr) 150px; }
}
@media (min-width: 900px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* tabs hide the other reports only once the script has run */
.js .report[hidden] { display: none; }
