/* ==========================================================================
   Social Entitlement Chambers - sec-v1.css
   Attendance Allowance appeals. Audience skews 65+, so the baseline is
   large type, high contrast, generous targets and no motion by default.
   ========================================================================== */

:root{
  /* Cerise and navy, matching The Benefits Barrister's palette so the two
     brands read as siblings. #c30d6e is sampled from the TBB logo and gives
     5.8:1 against white, so it is safe for body text as well as buttons. */
  --pink:#e0016c;
  --pink-dark:#b30156;
  /* #e0016c is the official logo cerise and is used for the mark, the rules
     and display type. It measures 4.78:1 on white but only 4.41:1 on --stone
     and 4.27:1 on --pink-tint, which is below AA for normal text, so running
     text and interactive labels use this fractionally darker ink: visually
     indistinguishable, and at least 4.84:1 on every surface on the site. */
  --pink-ink:#d00164;
  --pink-tint:#fdeef6;
  --brass:#a67c2e;
  --brass-light:#d9ab4f;
  --navy:#243357;
  --navy-dark:#161f38;
  --ink:#1c1c22;
  --muted:#585866;
  --stone:#f7f5f8;
  --stone-deep:#eae7ee;
  --paper:#fffdfe;
  --line:#e4e0e8;
  --line-strong:#c6c1cd;
  --green:#1f5d3f;
  --green-tint:#eef5f1;
  --amber-tint:#fdf4e3;
  --amber-line:#e0b95f;
  --radius:6px;
  --radius-lg:10px;
  --shadow:0 10px 34px rgba(36,51,87,.10);
  --shadow-lg:0 20px 54px rgba(36,51,87,.14);
  --wrap:min(1180px, calc(100% - 40px));
  --serif:Georgia,'Times New Roman',Times,serif;
  --sans:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,Helvetica,sans-serif;
}

*,*::before,*::after{box-sizing:border-box}

html{-webkit-text-size-adjust:100%}

body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font:18px/1.62 var(--sans);
  -webkit-font-smoothing:antialiased;
}

img,svg{max-width:100%;display:block}
h1,h2,h3,h4,p,ul,ol,figure,blockquote{margin-top:0}
a{color:var(--pink-ink)}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,
textarea:focus-visible,summary:focus-visible{
  outline:3px solid var(--brass);
  outline-offset:2px;
  border-radius:2px;
}

h1,h2,h3,h4{font-family:var(--serif);color:var(--pink);line-height:1.14;letter-spacing:-.012em}
h1{font-size:clamp(2.15rem,4.1vw,3.35rem);margin-bottom:20px}
h2{font-size:clamp(1.7rem,2.9vw,2.5rem);margin-bottom:18px}
h3{font-size:1.24rem;margin-bottom:10px}
h4{font-size:1.06rem;margin-bottom:8px}
p{margin-bottom:18px}
p:last-child{margin-bottom:0}

.wrap{width:var(--wrap);margin-inline:auto}
.narrow{max-width:760px}
.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}
.skip-link{position:absolute;left:-9999px}
.skip-link:focus{left:14px;top:14px;z-index:200;background:#fff;color:var(--pink-ink);padding:14px 18px;font-weight:700;box-shadow:var(--shadow)}
.hidden{display:none !important}

/* ---------- Top bar ---------------------------------------------------- */
.topbar{background:var(--navy-dark);color:#e7e2d9;font-size:.87rem}
.topbar-inner{min-height:42px;display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;padding:6px 0}
.topbar-points{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.topbar-points span[aria-hidden]{color:var(--brass-light)}
.topbar-contact{display:flex;gap:18px;align-items:center}
.topbar a{color:#fff;text-decoration:none;font-weight:700}
.topbar a:hover{text-decoration:underline}

/* ---------- Header ----------------------------------------------------- */
.site-header{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:80}
.nav-wrap{min-height:92px;display:flex;align-items:center;gap:26px}
/* Brand lockup. The wordmark is real text, not SVG <text>, so it cannot be
   clipped by a viewBox and it scales with the reader's own font-size setting.
   Only the monogram is an image. */
.brand{flex:none;display:flex;align-items:center;gap:11px;text-decoration:none;color:inherit}
.brand-mark{flex:none;width:62px;height:auto}
.brand-text{display:block}
.brand-name{display:block;font-family:var(--serif);font-weight:700;font-size:1.06rem;line-height:1.12;letter-spacing:.01em;color:var(--pink);white-space:nowrap}
.brand-sub{display:block;margin-top:5px;font:600 .56rem/1 var(--sans);letter-spacing:.2em;text-transform:uppercase;color:var(--muted);white-space:nowrap}
.brand-sub::before{content:"";display:block;width:52px;height:2px;background:var(--pink);margin-bottom:6px}
.primary-nav{display:flex;align-items:center;gap:22px;margin-left:auto}
.primary-nav a{text-decoration:none;color:var(--navy);font-weight:700;font-size:.93rem;white-space:nowrap;padding:6px 0;border-bottom:2px solid transparent}
.primary-nav a:hover{color:var(--pink-ink);border-bottom-color:var(--pink)}
.primary-nav a.active{color:var(--pink-ink);border-bottom-color:var(--pink)}
/* flex:none so the header CTA is never squeezed narrow enough to wrap its
   label onto two lines, which is what happened between 1081px and 1180px. */
.nav-cta{flex:none;font-size:.9rem;padding:12px 18px;min-height:46px;white-space:nowrap}
.menu-toggle{display:none;background:none;border:2px solid var(--line-strong);border-radius:var(--radius);padding:9px 11px;margin-left:auto;cursor:pointer}
.menu-toggle span:not(.sr-only){display:block;width:24px;height:2.5px;background:var(--navy);margin:5px 0;border-radius:2px}

/* ---------- Buttons ---------------------------------------------------- */
.button{
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  min-height:54px;padding:14px 28px;border-radius:var(--radius);
  font:700 1rem/1.25 var(--sans);text-align:center;text-decoration:none;
  border:2px solid transparent;cursor:pointer;transition:background .16s ease,color .16s ease,border-color .16s ease;
}
.button-primary{background:var(--pink);color:#fff}
.button-primary:hover{background:var(--pink-dark)}
.button-secondary{background:#fff;color:var(--pink-ink);border-color:var(--pink)}
.button-secondary:hover{background:var(--pink-tint)}
.button-light{background:#fff;color:var(--pink-ink)}
.button-light:hover{background:var(--stone)}
.button-outline-light{background:transparent;color:#fff;border-color:rgba(255,255,255,.7)}
.button-outline-light:hover{background:rgba(255,255,255,.12);border-color:#fff}
.button-block{width:100%}
.button[disabled]{opacity:.6;cursor:not-allowed}

.text-link{color:var(--pink-ink);font-weight:700}
.eyebrow{text-transform:uppercase;letter-spacing:.15em;font:700 .78rem/1.4 var(--sans);color:var(--navy);margin-bottom:12px}
.eyebrow-dark{color:var(--pink-ink)}

/* ---------- Sections --------------------------------------------------- */
.section{padding:76px 0}
.section-tight{padding:52px 0}
.section-stone{background:var(--stone)}
.section-navy{background:var(--navy);color:#e9e4da}
.section-navy h2,.section-navy h3{color:#fff}
.section-navy a{color:var(--brass-light)}
.section-pink{background:var(--pink);color:#f6ecec}
.section-pink h2,.section-pink h3{color:#fff}
.section-head{max-width:800px;margin-bottom:38px}
.section-head p{font-size:1.08rem;color:var(--muted)}
.section-navy .section-head p,.section-pink .section-head p{color:inherit;opacity:.92}

/* ---------- Hero ------------------------------------------------------- */
.hero{background:linear-gradient(180deg,var(--stone) 0%,var(--paper) 100%);border-bottom:1px solid var(--line);padding:60px 0 68px}
.hero-grid{display:grid;grid-template-columns:1.08fr .92fr;gap:56px;align-items:start}
.hero h1{margin-bottom:18px}
.hero-lede{font-size:1.22rem;line-height:1.55;margin-bottom:24px}
.hero-lede strong{color:var(--pink-ink)}
.hero-actions{display:flex;gap:14px;flex-wrap:wrap;margin-bottom:26px}
.hero-points{list-style:none;padding:0;margin:0;display:grid;gap:11px}
.hero-points li{display:grid;grid-template-columns:26px 1fr;gap:11px;align-items:start;font-weight:600}
.hero-points .tick{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--pink);color:#fff;font-size:.82rem;font-weight:700;margin-top:1px}

/* Deadline card - the single most important object on the site */
.deadline-card{background:#fff;border:2px solid var(--pink);border-radius:var(--radius-lg);box-shadow:var(--shadow-lg);overflow:hidden}
.deadline-card-head{background:var(--pink);color:#fff;padding:20px 26px}
.deadline-card-head h2{color:#fff;font-size:1.42rem;margin-bottom:6px}
.deadline-card-head p{margin:0;font-size:.95rem;opacity:.92}
.deadline-card-body{padding:26px}
.deadline-card label:not(.choice){display:block;font-weight:700;margin-bottom:8px}
.deadline-card .choice{font-weight:600;font-size:.98rem}
.deadline-card .field-label{display:block;font-weight:700;margin-bottom:8px}
.deadline-card .hint{font-size:.9rem;color:var(--muted);margin:0 0 14px}
.deadline-out{margin-top:20px;padding:18px 20px;border-radius:var(--radius);border:1px solid var(--line);background:var(--stone);font-size:1rem}
.deadline-out[data-tone="open"]{background:var(--green-tint);border-color:#9cc4ae}
.deadline-out[data-tone="urgent"]{background:var(--amber-tint);border-color:var(--amber-line)}
.deadline-out[data-tone="closed"]{background:var(--pink-tint);border-color:#d6a3a9}
.deadline-out strong{display:block;font-size:1.12rem;margin-bottom:6px;font-family:var(--serif)}
.deadline-out p{margin:0}
.deadline-out p + p{margin-top:10px}

/* ---------- Cards / grids --------------------------------------------- */
.card-grid{display:grid;gap:22px}
.cols-2{grid-template-columns:repeat(2,1fr)}
.cols-3{grid-template-columns:repeat(3,1fr)}
.cols-4{grid-template-columns:repeat(4,1fr)}

.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius-lg);padding:30px 28px}
.card-stone{background:var(--stone);border-color:var(--stone-deep)}
.card p:last-child{margin-bottom:0}
.card-icon{display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:var(--pink-tint);color:var(--pink-ink);font:700 1.15rem/1 var(--serif);margin-bottom:16px}
.section-navy .card{background:rgba(255,255,255,.05);border-color:rgba(255,255,255,.16);color:#e9e4da}
.section-navy .card-icon{background:rgba(217,171,79,.16);color:var(--brass-light)}

/* Statutory limb cards */
.limb-card{background:#fff;border:1px solid var(--line);border-left:5px solid var(--brass);border-radius:var(--radius);padding:26px 26px 24px}
.limb-tag{display:inline-block;font:700 .78rem/1 var(--sans);letter-spacing:.12em;text-transform:uppercase;color:var(--brass);margin-bottom:10px}
.limb-card h3{margin-bottom:8px}
.limb-quote{font-family:var(--serif);font-style:italic;color:var(--muted);border-left:2px solid var(--line-strong);padding-left:14px;margin:14px 0 0;font-size:.98rem}

/* ---------- Step list -------------------------------------------------- */
.steps{list-style:none;padding:0;margin:0;display:grid;gap:2px;counter-reset:step}
.steps li{display:grid;grid-template-columns:64px 1fr;gap:22px;align-items:start;background:#fff;border:1px solid var(--line);padding:26px 28px}
.steps li:first-child{border-radius:var(--radius-lg) var(--radius-lg) 0 0}
.steps li:last-child{border-radius:0 0 var(--radius-lg) var(--radius-lg)}
.steps li + li{border-top:0}
.steps .step-num{display:grid;place-items:center;width:52px;height:52px;border-radius:50%;border:2px solid var(--pink);color:var(--pink);font:700 1.2rem/1 var(--serif)}
.steps h3{margin-bottom:6px}
.steps p:last-child{margin-bottom:0}
.step-meta{display:inline-block;margin-top:12px;font:700 .84rem/1 var(--sans);letter-spacing:.06em;text-transform:uppercase;color:var(--brass)}

/* ---------- Callouts --------------------------------------------------- */
.callout{border-radius:var(--radius);padding:24px 26px;border-left:5px solid var(--brass);background:var(--amber-tint);margin:28px 0}
.callout h3{color:var(--ink);margin-bottom:8px;font-size:1.1rem}
.callout p:last-child{margin-bottom:0}
.callout-warning{background:var(--pink-tint);border-left-color:var(--pink)}
.callout-warning h3{color:var(--pink)}
.callout-info{background:var(--stone);border-left-color:var(--navy)}
.callout-good{background:var(--green-tint);border-left-color:var(--green)}
.callout-good h3{color:var(--green)}

/* ---------- Fee panel -------------------------------------------------- */
.fee-panel{display:grid;grid-template-columns:.85fr 1.15fr;gap:0;border-radius:var(--radius-lg);overflow:hidden;box-shadow:var(--shadow);border:1px solid var(--line)}
.fee-figure{background:var(--pink);color:#fff;padding:44px 38px;display:flex;flex-direction:column;justify-content:center}
.fee-figure .amount{font:700 4.2rem/1 var(--serif);color:#fff;letter-spacing:-.03em}
.fee-figure .amount-sub{font-weight:700;font-size:1.06rem;margin:12px 0 0}
.fee-figure .amount-note{font-size:.95rem;opacity:.9;margin:14px 0 0}
.fee-detail{background:#fff;padding:38px}
.fee-list{list-style:none;padding:0;margin:0;display:grid;gap:0}
.fee-list li{display:grid;grid-template-columns:1fr auto;gap:18px;padding:14px 0;border-bottom:1px solid var(--line);align-items:baseline}
.fee-list li:last-child{border-bottom:0}
.fee-list .fee-label{font-weight:600}
.fee-list .fee-value{font-weight:700;color:var(--pink-ink);text-align:right}

/* ---------- Tables ----------------------------------------------------- */
.table-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:24px 0}
table{border-collapse:collapse;width:100%;min-width:520px;background:#fff;font-size:1rem}
caption{text-align:left;font-weight:700;padding-bottom:10px;color:var(--muted)}
th,td{padding:14px 16px;border:1px solid var(--line);text-align:left;vertical-align:top}
thead th{background:var(--navy);color:#fff;font-weight:700}
tbody tr:nth-child(even){background:var(--stone)}

/* ---------- Prose (legal & content pages) ------------------------------ */
.prose{max-width:780px}
.prose h2{margin-top:44px;font-size:1.75rem}
.prose h2:first-child{margin-top:0}
.prose h3{margin-top:30px;font-size:1.18rem;color:var(--navy)}
.prose ul,.prose ol{margin:0 0 20px;padding-left:24px}
.prose li{margin-bottom:9px}
.prose li:last-child{margin-bottom:0}
.prose dl{margin:0 0 20px}
.prose dt{font-weight:700;margin-top:16px}
.prose dd{margin:4px 0 0}
.page-head{background:var(--stone);border-bottom:1px solid var(--line);padding:52px 0 46px}
.page-head p{font-size:1.1rem;color:var(--muted);max-width:720px;margin-bottom:0}
.breadcrumb{font-size:.88rem;color:var(--muted);margin-bottom:16px}
.breadcrumb a{color:var(--muted)}
.updated{font-size:.9rem;color:var(--muted);border-top:1px solid var(--line);padding-top:16px;margin-top:40px}

/* ---------- Details / FAQ ---------------------------------------------- */
details.faq{background:#fff;border:1px solid var(--line);border-radius:var(--radius);margin-bottom:12px}
details.faq summary{cursor:pointer;padding:20px 24px;font-weight:700;font-family:var(--serif);font-size:1.1rem;color:var(--pink-ink);list-style:none;display:flex;justify-content:space-between;gap:16px;align-items:center}
details.faq summary::-webkit-details-marker{display:none}
details.faq summary::after{content:"+";font-size:1.5rem;line-height:1;color:var(--brass);flex:none}
details.faq[open] summary::after{content:"\2212"}
details.faq .faq-body{padding:0 24px 22px}
details.faq .faq-body p:last-child{margin-bottom:0}

/* ---------- Forms ------------------------------------------------------ */
.form-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius-lg);box-shadow:var(--shadow);padding:34px}
.form-progress{display:flex;gap:8px;margin-bottom:26px;flex-wrap:wrap}
.form-progress span{flex:1 1 150px;font:700 .82rem/1.3 var(--sans);color:var(--muted);padding:10px 4px 0;border-top:4px solid var(--line)}
.form-progress span.active{color:var(--pink-ink);border-top-color:var(--pink)}
.form-progress span.done{color:var(--green);border-top-color:var(--green)}

.claim-step{border:0;padding:0;margin:0}
.claim-step legend{padding:0;margin-bottom:20px}
.claim-step legend span{display:block;font:700 .8rem/1 var(--sans);letter-spacing:.12em;text-transform:uppercase;color:var(--brass);margin-bottom:8px}
.claim-step legend{font:700 1.5rem/1.2 var(--serif);color:var(--pink)}
.claim-step > p{color:var(--muted);margin-bottom:20px}

.field{display:block;margin-bottom:20px}
.field > span.label,.field-label{display:block;font-weight:700;margin-bottom:7px}
.field .field-hint{display:block;font-weight:400;font-size:.9rem;color:var(--muted);margin:-2px 0 8px}
.field-optional{font-weight:400;color:var(--muted);font-size:.9rem}
.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}

input[type=text],input[type=tel],input[type=email],input[type=date],select,textarea{
  width:100%;font:inherit;padding:14px 15px;border:2px solid var(--line-strong);
  border-radius:var(--radius);background:#fff;color:var(--ink);min-height:54px;
}
select{appearance:none;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%235d564c' d='M1 1.6 6 6.6l5-5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 16px center;background-size:13px;padding-right:44px}
textarea{min-height:120px;resize:vertical;line-height:1.55}
input::placeholder,textarea::placeholder{color:#8d8578}
.is-invalid input,.is-invalid select,.is-invalid textarea{border-color:var(--pink);background:var(--pink-tint)}
.field-error{display:block;color:var(--pink-ink);font-weight:700;font-size:.92rem;margin-top:6px}

.choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:20px}
.choice{display:grid;grid-template-columns:26px 1fr;gap:12px;align-items:start;background:var(--stone);border:2px solid transparent;border-radius:var(--radius);padding:14px 16px;cursor:pointer;font-weight:600}
.choice:hover{border-color:var(--line-strong)}
.choice input{width:22px;height:22px;margin:2px 0 0;accent-color:var(--pink)}
.choice:has(input:checked){border-color:var(--pink);background:var(--pink-tint)}

/* Radio and checkbox groups. Every question that used a <select> is now a
   group of these, because a native select clips any option text wider than the
   box and cannot be styled: on a 390px phone the usable width came to about 26
   characters, narrower than these questions can be written. Radios wrap, so
   the whole option is always readable, and the tap target is larger. */
.choice-set{border:0;padding:0;margin:0 0 20px;min-width:0}
.choice-set legend{padding:0}
.choice-set .field-hint{margin-bottom:10px}
.choice-set > .choice,.choice-set-inner > .choice{margin-top:10px}
.choice-set-inner{display:block}
.choice-grid-tight{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));margin-top:10px;margin-bottom:0}
/* The option text must be free to wrap onto as many lines as it needs. */
.choice > span{min-width:0;overflow-wrap:break-word}
.choice input[type="radio"]{border-radius:50%}

.consent{display:grid;grid-template-columns:26px 1fr;gap:12px;align-items:start;background:var(--stone);border:1px solid var(--line);border-radius:var(--radius);padding:18px;margin-bottom:20px;font-size:.96rem;line-height:1.55}
.consent input{width:22px;height:22px;margin:2px 0 0;accent-color:var(--pink)}

.form-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:26px}
.form-actions-end{justify-content:flex-end}
.form-status{margin-top:18px;padding:0;font-weight:600}
.form-status:not(:empty){padding:15px 18px;border-radius:var(--radius);border:1px solid var(--line);background:var(--stone)}
.form-status[data-tone="error"]{background:var(--pink-tint);border-color:#d6a3a9;color:var(--pink-dark)}
.form-status[data-tone="success"]{background:var(--green-tint);border-color:#9cc4ae;color:var(--green)}

.hp-field{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

/* Conditional intake notices */
.intake-notice{margin:0 0 20px;padding:20px 22px;border-radius:var(--radius);border-left:5px solid var(--pink);background:var(--pink-tint)}
.intake-notice h3{font-size:1.08rem;margin-bottom:8px}
.intake-notice p:last-child{margin-bottom:0}
.intake-notice[data-tone="info"]{border-left-color:var(--navy);background:var(--stone)}

/* ---------- CTA band --------------------------------------------------- */
.cta-band{background:var(--pink);color:#fff;padding:56px 0}
.cta-band h2{color:#fff;margin-bottom:14px}
.cta-band p{font-size:1.08rem;opacity:.94;max-width:660px}
.cta-band-inner{display:grid;grid-template-columns:1.4fr auto;gap:36px;align-items:center}
.cta-band .button-light{min-width:250px}
.cta-band small{display:block;margin-top:14px;opacity:.86}

/* ---------- Footer ----------------------------------------------------- */
.site-footer{background:var(--navy-dark);color:#c9c1b4;padding:56px 0 26px;font-size:.95rem}
.footer-grid{display:grid;grid-template-columns:1.7fr repeat(3,1fr);gap:40px}
.footer-brand .brand{margin-bottom:18px}
.footer-brand .brand-mark{width:68px}
.footer-brand .brand-name{color:#fff;font-size:1.16rem}
.footer-brand .brand-sub{color:#c9c1b4}
.footer-brand .brand-sub::before{background:var(--brass-light)}
.footer-brand address{font-style:normal;line-height:1.7;margin-bottom:12px}
/* The footer lockup is not a link, so it must not inherit the footer's
   block-level anchor styling. */
.brand-static{display:inline-flex}
.site-footer h2{font:700 .82rem/1 var(--sans);letter-spacing:.14em;text-transform:uppercase;color:#fff;margin-bottom:16px}
.site-footer a{color:#e7e2d9;text-decoration:none;display:block;margin-bottom:10px}
.site-footer a:hover{color:#fff;text-decoration:underline}
/* The block-level rule above is for the footer's link columns. Links that
   sit inside a sentence must stay inline, or they break the sentence onto
   its own line - as happened to "the Barristers' Register" in the
   regulatory paragraph. */
.footer-legal a,.footer-regulatory a{display:inline;margin-bottom:0;text-decoration:underline}
.footer-legal{border-top:1px solid rgba(255,255,255,.15);margin-top:40px;padding-top:24px;font-size:.86rem;line-height:1.65}
.footer-legal p{margin-bottom:12px}
.footer-regulatory{background:rgba(255,255,255,.05);border-left:3px solid var(--brass);padding:16px 20px;border-radius:0 var(--radius) var(--radius) 0;margin-bottom:20px}

/* ---------- Thank you -------------------------------------------------- */
.thankyou{min-height:64vh;display:grid;place-content:center;text-align:center;padding:70px 20px;background:var(--stone)}
.thankyou-brand{justify-content:center;margin:0 auto 30px}
.thankyou-brand .brand-mark{width:92px}
.thankyou-brand .brand-name{font-size:1.34rem}
.thankyou .narrow{margin-inline:auto}

/* ---------- Mobile sticky CTA ----------------------------------------- */
.mobile-cta{display:none}

/* ---------- Responsive ------------------------------------------------- */
/* ---------- No win no fee band ------------------------------------------ */
/* The client asked for this to be unmissable, so it is a full-width pink band
   with the three figures set large. */
.fee-band{background:var(--pink);color:#fff;padding:60px 0}
.fee-band-compact{padding:42px 0}
.fee-band-lead{text-transform:uppercase;letter-spacing:.18em;font:700 .82rem/1 var(--sans);margin:0 0 14px;opacity:.9}
.fee-band h2{color:#fff;margin-bottom:34px;max-width:820px}
.fee-band-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:30px}
.fee-band-item p{margin:0}
.fee-band-item p + p{margin-top:8px;opacity:.95}
.fee-band-figure{font:700 2.5rem/1 var(--serif);letter-spacing:-.01em}
.fee-band-foot{margin-top:34px;font-size:.98rem;opacity:.95;max-width:900px}
.fee-band-foot a{color:#fff;font-weight:700;text-decoration:underline}

/* ---------- Rates strip ------------------------------------------------- */
.rates-strip{display:grid;grid-template-columns:1fr 1fr;gap:24px;background:var(--stone);border:1px solid var(--line);border-radius:var(--radius-lg);padding:28px}
.rates-strip-item p{margin:0}
.rates-strip-label{text-transform:uppercase;letter-spacing:.14em;font:700 .76rem/1 var(--sans);color:var(--navy);margin-bottom:10px}
.rates-strip-figure{font:700 2.1rem/1.05 var(--serif);color:var(--pink);margin-bottom:8px}
.rates-strip-figure span{font:600 .95rem/1 var(--sans);color:var(--muted)}
.rates-strip-foot{grid-column:1 / -1;margin:0;padding-top:18px;border-top:1px solid var(--line);font-size:.9rem;color:var(--muted)}

/* ---------- Statistic panel --------------------------------------------- */
.stat-panel{background:#fff;border:2px solid var(--pink);border-radius:var(--radius-lg);padding:30px 28px}
.stat-panel h3{margin-bottom:14px}
.stat-figure{font:700 4rem/1 var(--serif);color:var(--pink);margin:0 0 8px;letter-spacing:-.02em}
.stat-caption{font-size:1.08rem;margin:0 0 14px}
.source{font-size:.86rem;color:var(--muted);margin:0}
.source a{color:var(--muted)}

/* ---------- Back payment estimator output ------------------------------ */
.backpay-out{margin-top:20px;padding:20px;border-radius:var(--radius);border:1px solid #9cc4ae;background:var(--green-tint)}
.backpay-out p{margin:0}
.backpay-out p + p{margin-top:10px;font-size:.95rem}
.backpay-total{font:700 2.4rem/1 var(--serif);color:var(--green);letter-spacing:-.01em}

/* ---------- Success callout -------------------------------------------- */
.callout-success{background:var(--green-tint);border-left-color:var(--green)}
.callout-success h3{color:var(--green)}

/* ---------- Signposting lists ------------------------------------------ */
/* Used in the Scotland and Northern Ireland declines. The telephone number is
   the point of the block, so it is set large and is a tap target in its own
   right. */
.signpost{list-style:none;padding:0;margin:18px 0 0;display:grid;gap:16px}
.signpost li{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:16px 18px}
.signpost strong{display:block;font-family:var(--serif);font-size:1.06rem;color:var(--pink);margin-bottom:4px}
.signpost a{display:inline-block;font-size:1.32rem;font-weight:700;padding:4px 0;text-decoration:none;border-bottom:2px solid var(--pink)}
.signpost a:hover{border-bottom-color:var(--pink-dark)}
.signpost span{display:block;margin-top:6px;font-size:.92rem;color:var(--muted)}

/* ---------- Cookie banner ---------------------------------------------- */
/* Fixed to the bottom rather than covering the page, so it never obscures the
   deadline calculator. Accept and Reject are the same size and sit together,
   because the law requires rejecting to be as easy as accepting. */
.cookie-banner{position:fixed;left:0;right:0;bottom:0;z-index:120;background:var(--navy-dark);color:#e9e6ef;border-top:4px solid var(--pink);box-shadow:0 -8px 30px rgba(0,0,0,.28)}
.cookie-banner[hidden]{display:none}
.cookie-banner-inner{width:var(--wrap);margin-inline:auto;padding:22px 0;display:grid;grid-template-columns:1fr auto;gap:28px;align-items:center}
.cookie-banner h2{color:#fff;font-size:1.24rem;margin-bottom:8px}
.cookie-banner p{margin:0 0 8px;font-size:.94rem;line-height:1.55}
.cookie-banner p:last-child{margin-bottom:0}
.cookie-banner a{color:var(--brass-light);font-weight:700}
.cookie-banner-actions{display:flex;gap:12px;flex-wrap:wrap}
.cookie-banner-actions .button{min-height:50px;padding:12px 22px;white-space:nowrap}
/* On the dark banner the secondary button needs a light outline rather than
   the default pink-on-white, or it disappears. */
.cookie-banner .button-secondary{background:transparent;color:#fff;border-color:rgba(255,255,255,.75)}
.cookie-banner .button-secondary:hover{background:rgba(255,255,255,.14);border-color:#fff}
.cookie-control-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:14px}

/* ---------- Portrait in the page banner -------------------------------- */
/* A true oval, taller than wide, immediately to the left of the name. The
   crop is deliberately wide enough that the oval mask does not cut his
   shoulders, so the background fills the corners instead. */
.page-head-person .wrap{display:flex;align-items:center;gap:32px}
.page-head-person .page-head-text{flex:0 1 auto;min-width:0}
.page-head-person .page-head-text p{margin-bottom:0}
.portrait-oval{flex:none;width:158px;margin:0}
.portrait-oval img{
  width:100%;height:auto;display:block;
  border-radius:50%;
  border:5px solid var(--pink);
  box-shadow:0 10px 30px rgba(36,51,87,.18);
  background:var(--stone-deep);
}

/* ---------- Utilities ---------------------------------------------------
   These exist because the site is served under a strict Content-Security-
   Policy (style-src 'self', no 'unsafe-inline'). Inline style="..."
   attributes are silently dropped by the browser under that policy, so any
   one-off declaration has to live here as a class instead. build-check.mjs
   fails the build if an inline style attribute reappears in the output.
   ---------------------------------------------------------------------- */
.link-on-dark{color:#fff}
.u-color-5d564c{color:var(--muted)}
.placeholder-note{color:var(--pink-ink);font-weight:700}
.u-font-size-1p15rem{font-size:1.15rem}
.u-font-size-1p1rem{font-size:1.1rem}
.u-font-size-1p3rem{font-size:1.3rem}
.u-font-size-1p6rem{font-size:1.6rem}
.u-font-size-p92rem-margin-top-12px{font-size:.92rem;margin-top:12px}
.u-font-size-p94rem-color-5d564c{font-size:.94rem;color:var(--muted)}
.u-font-style-normal-line-height-1p75{font-style:normal;line-height:1.75}
.u-font-style-normal-line-height-1p75-margin-bottom-20px{font-style:normal;line-height:1.75;margin-bottom:20px}
.u-margin-bottom-0{margin-bottom:0}
.u-margin-bottom-36px{margin-bottom:36px}
.u-margin-top-18px{margin-top:18px}
.u-margin-top-22px{margin-top:22px}
.u-margin-top-24px{margin-top:24px}
.u-margin-top-28px{margin-top:28px}
.u-margin-top-30px{margin-top:30px}
.u-margin-top-32px{margin-top:32px}
.u-margin-top-34px{margin-top:34px}
.u-margin-top-40px{margin-top:40px}
.u-margin-top-44px{margin-top:44px}
.u-max-width-760px-margin-inline-auto{max-width:760px;margin-inline:auto}
.u-max-width-840px{max-width:840px}
.u-max-width-840px-margin-top-40px{max-width:840px;margin-top:40px}
.u-text-align-center-padding-40px0{text-align:center;padding:40px 0}
.u-text-align-left{text-align:left}

/* The print stylesheet and the reduced-motion block must stay last so they
   win on specificity ties. */

/* The header row needs more room than the content grid, so it collapses to
   the menu button earlier. Measured requirement: brand 266 + gap 26 + nav 661
   + gap 26 + CTA 175 = 1154px of content width. */
@media (max-width:1220px){
  .primary-nav{display:none}
  .menu-toggle{display:block}
  .nav-cta{display:none}
  .primary-nav.open{display:grid;gap:0;position:absolute;left:0;right:0;top:100%;background:#fff;border-bottom:1px solid var(--line);box-shadow:var(--shadow);padding:8px 20px 20px}
  .primary-nav.open a{padding:15px 0;border-bottom:1px solid var(--line);font-size:1.02rem}
  .site-header{position:relative}
}

@media (max-width:1080px){
  .hero-grid{grid-template-columns:1fr;gap:40px}
  .cols-4{grid-template-columns:repeat(2,1fr)}
  .fee-band-grid{grid-template-columns:1fr;gap:22px}
  .fee-panel{grid-template-columns:1fr}
  .cta-band-inner{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr 1fr}
}

@media (max-width:760px){
  body{font-size:17px}
  :root{--wrap:min(1180px, calc(100% - 28px))}
  .topbar-contact{display:none}
  .topbar-inner{justify-content:center;text-align:center}
  .topbar-points{justify-content:center;font-size:.8rem;gap:7px}
  .nav-wrap{min-height:74px;gap:14px}
  .brand-mark{width:52px}
  .brand-name{font-size:.94rem}
  .brand-sub{font-size:.52rem;letter-spacing:.16em}
  .brand-sub::before{width:40px;margin-bottom:5px}
  .section{padding:52px 0}
  .section-tight{padding:38px 0}
  .hero{padding:40px 0 48px}
  .cols-2,.cols-3,.cols-4{grid-template-columns:1fr}
  .field-grid,.choice-grid{grid-template-columns:1fr}
  .steps li{grid-template-columns:1fr;gap:14px}
  .form-card{padding:24px 20px}
  .fee-figure,.fee-detail{padding:30px 24px}
  .fee-figure .amount{font-size:3.4rem}
  .fee-band-grid{grid-template-columns:1fr;gap:24px}
  .rates-strip{grid-template-columns:1fr}
  .stat-figure{font-size:3.2rem}
  .cookie-banner-inner{grid-template-columns:1fr;gap:16px;padding:18px 0}
  .cookie-banner-actions .button{flex:1 1 auto}
  .footer-grid{grid-template-columns:1fr;gap:32px}
  .site-footer{padding-bottom:96px}
  .hero-actions .button{width:100%}
  .mobile-cta{
    display:block;position:fixed;left:12px;right:12px;bottom:12px;z-index:90;
    background:var(--pink);color:#fff;text-align:center;text-decoration:none;
    font-weight:700;padding:16px;border-radius:var(--radius);
    box-shadow:0 8px 26px rgba(0,0,0,.3);
  }
  .page-head{padding:36px 0 32px}
  .page-head-person .wrap{flex-direction:column;align-items:flex-start;gap:20px}
  .portrait-oval{width:124px;order:-1}
  /* The banner and the sticky call button both live at the bottom of the
     viewport, so the button stands down while a choice is outstanding. */
  body:has(.cookie-banner:not([hidden])) .mobile-cta{display:none}
}

/* Small handsets: at 320px the monogram, wordmark and menu button together
   overran the content width by a few pixels. */
@media (max-width:400px){
  /* Allowed to wrap below this width rather than overflow: it still fits on
     one line at 320px, and wraps only on the very narrowest viewports. */
  .brand-name{font-size:.88rem;white-space:normal}
  .brand-mark{width:46px}
  /* flex:1 1 auto + min-width:0 lets the lockup shrink so the wordmark wraps
     instead of pushing the row wider than the viewport. */
  .brand{gap:9px;flex:1 1 auto;min-width:0}
  .brand-text{min-width:0}
}

@media (prefers-reduced-motion:reduce){
  *{animation-duration:.01ms !important;transition-duration:.01ms !important}
  html{scroll-behavior:auto}
}

@media print{
  .topbar,.site-header,.cta-band,.mobile-cta,.form-card{display:none}
  body{font-size:12pt;background:#fff}
  a[href^="http"]::after{content:" (" attr(href) ")";font-size:.85em}
}
