/* Housing Britain — site styles. Light theme is the default; #top.th-dark switches to dark. */
/* Fonts are served from this site (fonts/), so there is no request to Google Fonts. Inter and Inter Tight, SIL Open Font License. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/inter-tight-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/inter-tight-latin-600-normal.woff2') format('woff2'); }
html { scroll-behavior: smooth; }
body { margin: 0; background: #FFFFFF; }
html:has(.th-dark) body { background: #0B0B0C; }
* { box-sizing: border-box; }
#top { --bg: #FFFFFF; --fg: #0B0B0C; --fg2: #2C2C2E; --mu: #5F5F64; --dim: #86868B; --tile: #F4F4F2; --tileh: #ECECE8; --line: #0B0B0C1F; --line2: #0B0B0C47; --nav: #FFFFFFD1; --acc: #C51A20; --card: #FFFFFFF2; --card2: #FFFFFF; --map: #E6E6E1; --road: #FFFFFF; --park: #D5DDCF; --inv: #0B0B0C; --invfg: #FFFFFF; --fld: #FFFFFF; transition: background-color .5s ease, color .5s ease; }
#top.th-dark { --bg: #0B0B0C; --fg: #F5F5F7; --fg2: #D2D2D7; --mu: #A1A1A6; --dim: #8E8E93; --tile: #18181B; --tileh: #222226; --line: #FFFFFF24; --line2: #FFFFFF59; --nav: #0B0B0CD1; --acc: #FF5A5F; --card: #0B0B0CF0; --card2: #242428; --map: #1F1F23; --road: #FFFFFF26; --park: #FFFFFF0F; --inv: #F5F5F7; --invfg: #0B0B0C; --fld: #18181B; }
#top a { color: var(--acc); }
.ft { font-family: 'Inter Tight', 'Helvetica Neue', Helvetica, Arial, sans-serif; }
.sec { scroll-margin-top: 76px; }
:focus-visible { outline: 2px solid #C51A20; outline-offset: 3px; }
#top.th-dark :focus-visible { outline-color: #FFFFFF; }
.btn { transition: transform .25s ease, background-color .25s ease, border-color .25s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-r:hover { background-color: #A8151A !important; }
.btn-w:hover { background-color: #ECEAE5 !important; }
.btn-o:hover { background-color: var(--tileh) !important; }
.btn-g:hover { background-color: #00000080 !important; }
.lnk { transition: opacity .2s ease; }
.lnk:hover { opacity: .6; }
.fl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.3s ease; }
.fl.on { opacity: 1; }
.cap { position: absolute; left: clamp(22px, 3.6vw, 52px); right: clamp(22px, 3.6vw, 52px); top: clamp(22px, 3.4vw, 48px); display: flex; flex-direction: column; gap: clamp(12px, 1.6vw, 20px); text-shadow: 0 2px 22px #000000B3; opacity: 0; transition: opacity .45s ease; pointer-events: none; }
.cap.on { opacity: 1; transition-delay: .35s; }
.bl { display: flex; align-items: center; gap: 12px; }
.tab { position: relative; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--fg); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: background-color .3s ease, color .3s ease; }
.tab:hover { background: var(--tileh); }
.tab.on { background: var(--inv); color: var(--invfg); }
.pg { position: absolute; left: 18px; right: 18px; bottom: 7px; height: 2px; border-radius: 2px; background: var(--invfg); transform: scaleX(0); transform-origin: left; }
.tile { transition: background-color .3s ease; }
.tile:hover { background-color: var(--tileh) !important; }
.fld { width: 100%; min-height: 52px; padding: 12px 16px; font: inherit; font-size: 17px; color: var(--fg); background: var(--fld); border: 1px solid var(--line); border-radius: 14px; transition: border-color .2s ease; }
.fld:hover { border-color: var(--line2); }
.fld:focus { outline: 2px solid var(--acc); outline-offset: 1px; border-color: var(--acc); }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--fld); color: var(--fg); font-size: 15px; font-weight: 500; cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.seg input:checked + span { background: var(--inv); border-color: var(--inv); color: var(--invfg); }
.seg input:focus-visible + span { outline: 2px solid var(--acc); outline-offset: 3px; }
.cin { width: 100%; min-height: 46px; padding: 0 14px; font: inherit; font-size: 16px; color: #0B0B0C; background: #F4F4F2; border: 1px solid transparent; border-radius: 999px; }
.cin:focus { outline: none; border-color: #0B0B0C; }
.q { opacity: 0; transition: opacity .9s ease; pointer-events: none; }
.q.on { opacity: 1; pointer-events: auto; }
.ring { transform-box: fill-box; transform-origin: center; }
.rs i { display: block; height: 100%; background: var(--fg); transform: scaleX(0); transform-origin: left; }
.rs.done i { transform: scaleX(1); }
.mroad { stroke: var(--road); }
.mpark { fill: var(--park); stroke: none; }
@property --hp { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.rg { position: absolute; inset: 0; border: 3px solid #22C55E; border-radius: 28px; pointer-events: none; -webkit-mask: conic-gradient(from calc(270deg - var(--hp)) at 50% 50%, #000 0deg, #000 calc(var(--hp) * 2), transparent calc(var(--hp) * 2)); mask: conic-gradient(from calc(270deg - var(--hp)) at 50% 50%, #000 0deg, #000 calc(var(--hp) * 2), transparent calc(var(--hp) * 2)); }
.st { transition: transform .3s ease; }
.st:hover { transform: translateY(-4px); }
.mq { flex-wrap: wrap; justify-content: center; }
.mq2 { display: none !important; }
@media (max-width: 900px) {
  .nav-links { display: none !important; }
}
.tapz { display: none; }
.conn { position: absolute; right: calc(-1 * clamp(28px, 4vw, 56px)); top: 50%; width: clamp(28px, 4vw, 56px); height: 3px; margin-top: -1.5px; }
.cn { transform: scaleX(0); transform-origin: left; }
@media (min-width: 901px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 900px) {
  .steps { grid-template-columns: minmax(0, 1fr) !important; gap: 26px !important; }
  .conn { right: auto; left: 50%; top: auto; bottom: -26px; width: 3px; height: 26px; margin: 0 0 0 -1.5px; }
  .cn { transform: scaleY(0); transform-origin: top; }
  .rg { -webkit-mask: conic-gradient(from calc(0deg - var(--hp)) at 50% 50%, #000 0deg, #000 calc(var(--hp) * 2), transparent calc(var(--hp) * 2)); mask: conic-gradient(from calc(0deg - var(--hp)) at 50% 50%, #000 0deg, #000 calc(var(--hp) * 2), transparent calc(var(--hp) * 2)); }
  .st { min-height: 0 !important; padding: 16px 20px 18px !important; gap: 8px !important; }
  .st .num { font-size: 2.5rem !important; }
  .st .sic { width: 34px; height: 34px; }
  .st h3 { font-size: 1.6rem !important; }
  .st p { min-height: 0 !important; }
}
@media (max-width: 700px) {
  .tapz { display: block; }
  .ppb, .hide-p { display: none !important; }
  .tab { font-size: 13px; padding: 0 9px; }
  .pg { left: 9px; right: 9px; }
}
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes blin { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes ring { from { transform: scale(.5); opacity: 1; } to { transform: scale(3); opacity: 0; } }
@keyframes slide { to { transform: translateX(-50%); } }
@keyframes rg1 { 0% { --hp: 0deg; opacity: 1; } 13% { --hp: 180deg; } 55% { --hp: 180deg; opacity: 1; } 57%, 99% { --hp: 180deg; opacity: 0; } 100% { --hp: 0deg; opacity: 0; } }
@keyframes rg2 { 0%, 17% { --hp: 0deg; opacity: 1; } 30% { --hp: 180deg; } 55% { --hp: 180deg; opacity: 1; } 57%, 99% { --hp: 180deg; opacity: 0; } 100% { --hp: 0deg; opacity: 0; } }
@keyframes rg3 { 0%, 34% { --hp: 0deg; opacity: 1; } 47% { --hp: 180deg; } 55% { --hp: 180deg; opacity: 1; } 57%, 99% { --hp: 180deg; opacity: 0; } 100% { --hp: 0deg; opacity: 0; } }
@keyframes cg1 { 0%, 12.5% { background-color: var(--tile); color: var(--fg); opacity: 1; } 14.5%, 55% { background-color: #15803D; color: #FFFFFF; opacity: 1; } 57%, 89% { background-color: var(--tile); color: var(--fg); opacity: 0; } 91%, 100% { background-color: var(--tile); color: var(--fg); opacity: 1; } }
@keyframes cg2 { 0%, 29.5% { background-color: var(--tile); color: var(--fg); opacity: 1; } 31.5%, 55% { background-color: #15803D; color: #FFFFFF; opacity: 1; } 57%, 89% { background-color: var(--tile); color: var(--fg); opacity: 0; } 91%, 100% { background-color: var(--tile); color: var(--fg); opacity: 1; } }
@keyframes cg3 { 0%, 46.5% { background-color: var(--tile); color: var(--fg); opacity: 1; } 48.5%, 55% { background-color: #15803D; color: #FFFFFF; opacity: 1; } 57%, 89% { background-color: var(--tile); color: var(--fg); opacity: 0; } 91%, 100% { background-color: var(--tile); color: var(--fg); opacity: 1; } }
@keyframes cn1 { 0%, 13.5% { transform: scaleX(0); opacity: 1; } 17%, 55% { transform: scaleX(1); opacity: 1; } 57%, 100% { transform: scaleX(1); opacity: 0; } }
@keyframes cn2 { 0%, 30.5% { transform: scaleX(0); opacity: 1; } 34%, 55% { transform: scaleX(1); opacity: 1; } 57%, 100% { transform: scaleX(1); opacity: 0; } }
@keyframes cnv1 { 0%, 13.5% { transform: scaleY(0); opacity: 1; } 17%, 55% { transform: scaleY(1); opacity: 1; } 57%, 100% { transform: scaleY(1); opacity: 0; } }
@keyframes cnv2 { 0%, 30.5% { transform: scaleY(0); opacity: 1; } 34%, 55% { transform: scaleY(1); opacity: 1; } 57%, 100% { transform: scaleY(1); opacity: 0; } }
@keyframes fin { 0%, 52% { opacity: 0; transform: scale(.97); } 55%, 90% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: scale(.97); } }
@keyframes mo { 0%, 57% { background-color: #FFFFFF26; color: #FFFFFF; } 58.5%, 95% { background-color: #22C55E; color: #052E16; } 97%, 100% { background-color: #FFFFFF26; color: #FFFFFF; } }
@media (prefers-reduced-motion: no-preference) {
  .hi { animation: rise1 1s cubic-bezier(.2, .7, .2, 1) both; }
  .tab.on .pg { animation: fill 10s linear both; }
  .rs.on i { animation: fill 7s linear both; }
  @media (hover: hover) {
    .rvw:hover .rs.on i { animation-play-state: paused; }
  }
  .cap.on .bl { animation: blin .7s cubic-bezier(.2, .7, .2, 1) both; }
  .cap.on .bl { animation-duration: .55s; }
  .cap.on .b1 { animation-delay: .7s; }
  .cap.on .b2 { animation-delay: 1.5s; }
  .cap.on .b3 { animation-delay: 2.3s; }
  .cap.on .b4 { animation-delay: 3.1s; }
  .fast .cap.on .bl { animation-duration: .45s; }
  .fast .cap.on .b1 { animation-delay: .3s; }
  .fast .cap.on .b2 { animation-delay: .42s; }
  .fast .cap.on .b3 { animation-delay: .54s; }
  .fast .cap.on .b4 { animation-delay: .66s; }
  .paused .tab.on .pg, .paused .cap.on .bl { animation-play-state: paused; }
  .fast.paused .cap.on .bl { animation-play-state: running; }
  .ring { animation: ring 2.6s ease-out infinite; }
  .mq { flex-wrap: nowrap; justify-content: flex-start; width: max-content; animation: slide 46s linear infinite; }
  .mq2 { display: flex !important; }
  .mqw:hover .mq { animation-play-state: paused; }
  .run .rg1 { animation: rg1 16s linear infinite; }
  .run .rg2 { animation: rg2 16s linear infinite; }
  .run .rg3 { animation: rg3 16s linear infinite; }
  .run .st1 { animation: cg1 16s linear infinite; }
  .run .st2 { animation: cg2 16s linear infinite; }
  .run .st3 { animation: cg3 16s linear infinite; }
  .run .cn1 { animation: cn1 16s linear infinite; }
  .run .cn2 { animation: cn2 16s linear infinite; }
  .run .fin { animation: fin 16s linear infinite; }
  .run .mo { animation-name: mo; animation-duration: 16s; animation-timing-function: linear; animation-iteration-count: infinite; }
  .held .rg, .held .st, .held .cn, .held .fin, .held .mo { animation-play-state: paused; }
  @media (max-width: 900px) {
    .run .cn1 { animation-name: cnv1; }
    .run .cn2 { animation-name: cnv2; }
  }
  .mqw { -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
}
@media (prefers-reduced-motion: reduce) {
  .fl, .cap { transition: none !important; }
  .rs.on i { transform: scaleX(1); }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .rv { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% cover 20%; }
    .pb { animation: grow linear both; animation-timeline: view(); }
    .pb1 { animation-range: entry 60% cover 26%; }
    .pb2 { animation-range: cover 22% cover 32%; }
    .pb3 { animation-range: cover 28% cover 38%; }
  }
}
.sif { display: contents; }
.sif[hidden] { display: none; }
@keyframes rise1 { from { opacity: .01; transform: translateY(22px); } to { opacity: 1; transform: none; } }
#top:not(.th-light):not(.th-dark) .cap0 { opacity: 1; transition: none; }


/* ---------- Shared by every page ---------- */
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.nav-links a[aria-current="page"] { color: var(--fg) !important; font-weight: 500; }
@media (max-width: 1000px) {
  .nav-links { display: none !important; }
}

/* ---------- Inner pages (guaranteed-rent, council-leasing, private-rental, faq, about, contact, 404) ---------- */
.p-page { background: var(--bg); color: var(--fg); font-family: Inter, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 17px; line-height: 1.5; overflow-x: clip; min-height: 100vh; }
.p-sun, .th-dark .p-moon { display: none; }
.th-dark .p-sun, .p-moon { display: inline-flex; }
.p-wrap { max-width: 1320px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 64px); }
.p-hero { padding: clamp(24px, 3vw, 44px) 0 clamp(36px, 5vw, 72px); display: flex; flex-direction: column; gap: clamp(14px, 1.6vw, 22px); }
.p-crumb { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0 8px; font-size: 14px; color: var(--mu); }
.p-crumb li + li::before { content: '›'; margin-right: 8px; color: var(--dim); }
#top .p-crumb a { display: inline-flex; align-items: center; min-height: 44px; color: var(--mu); text-decoration: none; }
.p-crumb span { display: inline-flex; align-items: center; min-height: 44px; color: var(--fg); }
.p-h1 { margin: 0; max-width: 15em; font-size: clamp(2.4rem, 5.6vw, 4.7rem); line-height: 1.01; letter-spacing: -0.045em; font-weight: 600; text-wrap: balance; }
.p-lead { margin: 0; max-width: 33em; font-size: clamp(1.1rem, 1.7vw, 1.45rem); line-height: 1.4; color: var(--mu); text-wrap: pretty; }
.p-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
#top .p-btn { display: inline-flex; align-items: center; min-height: 52px; padding: 0 28px; text-decoration: none; font-size: 17px; font-weight: 600; border-radius: 999px; }
#top .p-btn-r { background: #C51A20; color: #FFFFFF; }
#top .p-btn-o { background: transparent; color: var(--fg); border: 1px solid var(--line2); }
.p-film { position: relative; height: clamp(190px, 25vw, 340px); margin-top: clamp(10px, 1.6vw, 22px); border-radius: 28px; overflow: hidden; background: var(--tile); }
.p-film-tall { height: clamp(250px, 42vw, 520px); }
.p-credit { margin: 8px 4px 0; font-size: 12px; color: var(--mu); }
.p-film canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.p-sec { padding: clamp(44px, 6vw, 92px) 0; border-top: 1px solid var(--line); }
.p-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 5vw, 80px); align-items: start; }
@media (max-width: 860px) { .p-grid { grid-template-columns: minmax(0, 1fr); } }
.p-h2 { margin: 0; font-size: clamp(1.7rem, 3.2vw, 2.7rem); line-height: 1.06; letter-spacing: -0.035em; font-weight: 600; text-wrap: balance; }
.p-body { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.p-body p, .p-body li { margin: 0; max-width: 37em; font-size: 1.08rem; line-height: 1.6; color: var(--fg2); text-wrap: pretty; }
.p-body h3 { margin: 10px 0 -6px; font-size: 1.2rem; line-height: 1.25; letter-spacing: -0.015em; font-weight: 600; color: var(--fg); }
.p-note { font-size: .92rem !important; color: var(--mu) !important; }
.p-ticks, .p-tiles, .p-steps, .p-chips, .p-links { margin: 0; padding: 0; list-style: none; }
.p-ticks { display: flex; flex-direction: column; gap: 10px; }
.p-ticks li { position: relative; padding-left: 32px; }
.p-ticks li::before { content: ''; position: absolute; left: 2px; top: .42em; width: 15px; height: 8px; border-left: 2.4px solid var(--acc); border-bottom: 2.4px solid var(--acc); transform: rotate(-45deg); border-radius: 1px; }
.p-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 12px; }
.p-tiles li { max-width: none; display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; background: var(--tile); border-radius: 20px; font-size: .98rem; line-height: 1.45; color: var(--mu); }
.p-tiles b { font-family: 'Inter Tight', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 1.14rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; color: var(--fg); }
.p-steps { counter-reset: s; display: flex; flex-direction: column; gap: 12px; }
.p-steps li { counter-increment: s; max-width: none; position: relative; padding: 20px 22px 20px 74px; background: var(--tile); border-radius: 20px; font-size: 1rem; color: var(--mu); }
.p-steps li::before { content: counter(s); position: absolute; left: 20px; top: 18px; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--inv); color: var(--invfg); font-family: 'Inter Tight', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: 600; font-size: 1rem; }
.p-steps b { display: block; font-family: 'Inter Tight', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 1.14rem; font-weight: 600; letter-spacing: -0.015em; color: var(--fg); }
.p-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.p-chips li { max-width: none; padding: 9px 16px; background: var(--tile); border-radius: 999px; font-size: .98rem; font-weight: 500; color: var(--fg); line-height: 1.3; }
.p-tablew { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 20px; }
.p-table { width: 100%; min-width: 440px; border-collapse: collapse; font-size: 1rem; font-variant-numeric: tabular-nums; }
.p-table caption { caption-side: bottom; padding: 12px 18px; text-align: left; font-size: .9rem; color: var(--mu); border-top: 1px solid var(--line); }
.p-table th, .p-table td { padding: 12px 18px; text-align: right; border-top: 1px solid var(--line); color: var(--fg2); font-weight: 400; }
.p-table thead th, .p-table thead td { border-top: 0; font-weight: 600; color: var(--fg); background: var(--tile); }
.p-table th:first-child { text-align: left; }
.p-table tfoot th, .p-table tfoot td { font-weight: 600; color: var(--fg); background: var(--tile); }
.p-faq { display: flex; flex-direction: column; border-bottom: 1px solid var(--line); }
.p-faq details { border-top: 1px solid var(--line); }
.p-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 60px; padding: 14px 0; cursor: pointer; list-style: none; font-family: 'Inter Tight', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 1.16rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; color: var(--fg); }
.p-faq summary::-webkit-details-marker { display: none; }
.p-faq summary::after { content: '+'; flex: none; font-size: 1.5rem; font-weight: 400; line-height: 1; color: var(--mu); transition: transform .25s ease; }
.p-faq details[open] summary::after { transform: rotate(45deg); }
.p-faq details.closing summary::after { transform: none; }
.p-ans { overflow: hidden; }
.p-faq summary h3 { margin: 0; font: inherit; letter-spacing: inherit; color: inherit; }
.p-faq details p { padding: 0 0 20px; }
.p-band { margin: 0 0 clamp(44px, 6vw, 92px); padding: clamp(32px, 5vw, 72px) clamp(24px, 5vw, 72px); background: var(--tile); border-radius: 28px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; }
.p-band h2 { margin: 0 0 10px; font-size: clamp(1.7rem, 3.2vw, 2.7rem); line-height: 1.06; letter-spacing: -0.035em; font-weight: 600; }
#top .p-tel { display: inline-block; color: var(--acc); text-decoration: none; font-size: clamp(2.2rem, 5vw, 4.2rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1; white-space: nowrap; }
.p-links { display: flex; flex-wrap: wrap; gap: 10px; }
#top .p-links a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border: 1px solid var(--line2); border-radius: 999px; color: var(--fg); text-decoration: none; font-size: 1rem; font-weight: 500; transition: background-color .25s ease; }
#top .p-links a:hover { background: var(--tileh); }
.p-body address { font-style: normal; font-size: 1.08rem; line-height: 1.6; color: var(--fg2); }
.p-form { display: flex; flex-direction: column; gap: 16px; padding: clamp(22px, 3vw, 36px); background: var(--tile); border-radius: 24px; }
.p-form label, .p-form legend { display: block; margin: 0 0 6px; padding: 0; font-size: 14.5px; font-weight: 500; color: var(--fg2); }
.p-form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.p-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 16px; }
.p-segs { display: flex; flex-wrap: wrap; gap: 8px; }
.p-form .seg { margin: 0; position: relative; }
.p-form button { align-self: flex-start; border: 0; cursor: pointer; font-family: 'Inter Tight', 'Helvetica Neue', Helvetica, Arial, sans-serif; }
.p-sent { margin: 0; padding: clamp(22px, 3vw, 36px); background: var(--tile); border-radius: 24px; font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; }

/* ---------- Guides: index cards and article pages ---------- */
.p-cards { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 14px; }
.p-cards li { display: flex; }
#top .p-card { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: clamp(22px, 2.6vw, 32px); background: var(--tile); border-radius: 24px; color: var(--fg); text-decoration: none; transition: background-color .25s ease, transform .25s ease; }
#top .p-card:hover { background: var(--tileh); transform: translateY(-3px); }
.p-card h2 { margin: 0; font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.12; letter-spacing: -0.025em; font-weight: 600; text-wrap: balance; }
.p-card p { margin: 0; font-size: 1rem; line-height: 1.5; color: var(--mu); }
.p-card .p-more { margin-top: auto; padding-top: 8px; font-size: .95rem; font-weight: 500; color: var(--acc); }
.p-meta { margin: 0; font-size: 14px; color: var(--mu); }
.p-article { max-width: 44em; padding: 0 0 clamp(44px, 6vw, 92px); display: flex; flex-direction: column; gap: 18px; }
.p-article h2 { margin: clamp(18px, 2.4vw, 30px) 0 0; font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.1; letter-spacing: -0.03em; font-weight: 600; text-wrap: balance; }
.p-article h3 { margin: 8px 0 -6px; font-size: 1.2rem; line-height: 1.25; letter-spacing: -0.015em; font-weight: 600; }
.p-article p, .p-article li { margin: 0; font-size: 1.1rem; line-height: 1.65; color: var(--fg2); text-wrap: pretty; }
.p-article ul, .p-article ol { margin: 0; padding-left: 1.25em; display: flex; flex-direction: column; gap: 8px; }
.p-article .p-ticks { padding-left: 0; }
.p-key { padding: clamp(20px, 2.6vw, 30px); background: var(--tile); border-radius: 22px; display: flex; flex-direction: column; gap: 12px; }
.p-key h2 { margin: 0; font-size: 1.05rem; letter-spacing: 0; font-weight: 600; color: var(--mu); }
.p-src { padding-top: 22px; border-top: 1px solid var(--line); }
.p-src h2 { margin: 0 0 10px; font-size: 1.05rem; letter-spacing: 0; font-weight: 600; color: var(--mu); }
.p-src li, .p-article .p-note { font-size: .95rem; line-height: 1.5; }
.p-table-l { min-width: 640px; }
.p-table-l th, .p-table-l td { text-align: left; vertical-align: top; }

/* ---------- Phone menu (a native <details>: works without script) ---------- */
.m-menu { display: none; flex: none; }
.m-btn { display: block; width: 44px; height: 44px; list-style: none; border-radius: 50%; color: var(--fg); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.m-btn::-webkit-details-marker { display: none; }
.m-btn::marker { content: ''; }
.m-ic { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; }
.m-menu .m-x, .m-menu[open] .m-bars { display: none; }
.m-menu[open] .m-x { display: block; }
.m-nav { position: absolute; left: 0; right: 0; top: 100%; z-index: 5; display: flex; flex-direction: column; padding: 4px clamp(20px, 5vw, 64px) 18px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 28px 44px #00000024; max-height: calc(100vh - 61px); max-height: calc(100dvh - 61px); overflow-y: auto; }
#top .m-nav a, .m-nav button { display: flex; align-items: center; flex: none; min-height: 54px; margin: 0; padding: 0; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--fg); text-decoration: none; text-align: left; font-family: 'Inter Tight', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 1.3rem; font-weight: 600; letter-spacing: -0.02em; cursor: pointer; }
.m-nav button { border-bottom: 0; color: var(--mu); font-size: 1.05rem; font-weight: 500; }
#top .m-nav a[aria-current="page"], #top .m-nav a.m-call { color: var(--acc); }
@media (prefers-reduced-motion: no-preference) { .m-menu[open] .m-nav { animation: mnav .26s cubic-bezier(.2, .7, .2, 1); } }
@keyframes mnav { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (max-width: 1000px) { .m-menu { display: block; } }
@media (max-width: 479px) { header button[aria-label^="Switch"] { display: none !important; } }
@media (max-width: 359px) {
  header { padding-left: 14px !important; padding-right: 14px !important; }
  header > div { gap: 8px !important; }
  header a[aria-label="Housing Britain home"] { font-size: 17.5px !important; }
  header a[href^="tel:"] { font-size: 14.5px !important; }
}
@media (max-width: 299px) {
  header a[aria-label="Housing Britain home"] { font-size: 16px !important; }
  header a.ft[href^="tel:"] { display: none !important; }
}
.p-caption { margin: 14px 4px 0; font-size: 1.05rem; font-weight: 500; color: var(--fg); }
