/* Referral pages — builds on dashboard/theme.css */
.rf-page{background:var(--card);padding:56px 0 80px;min-height:60vh}
.rf-col{max-width:640px;margin:0 auto;padding:0 24px}
.rf-card{background:#fff;border:1px solid var(--rule);border-radius:2px;padding:36px}
.rf-card+.rf-card{margin-top:16px}
.rf-card h1{font-size:34px;line-height:1.18;margin:0 0 14px;text-wrap:balance}
.rf-card h2{font-size:24px;line-height:1.25;margin:0 0 10px}
.rf-lede{font-size:16.5px;line-height:1.65;color:var(--muted);margin-bottom:24px}
.rf-av{width:44px;height:44px;border-radius:50%;background:var(--charcoal);color:#fff;display:inline-flex;align-items:center;justify-content:center;font-weight:700;font-size:14px;flex:none}
.rf-av.lg{width:72px;height:72px;font-size:22px}.rf-av.sm{width:34px;height:34px;font-size:12px}
.rf-av.photo{background:url(../assets/photo-workshop.jpg) center/cover;color:transparent}
.rf-ref{display:flex;align-items:center;gap:16px;margin-bottom:22px}
.rf-ref .who{font-size:14px;color:var(--muted)}.rf-ref .who b{display:block;color:var(--ink);font-size:15px}
.rf-steps{list-style:none;margin:0 0 28px;padding:0;display:grid;gap:0;border-top:1px solid var(--rule)}
.rf-steps li{display:grid;grid-template-columns:36px minmax(0,1fr);gap:14px;padding:16px 0;border-bottom:1px solid var(--rule);font-size:15.5px;line-height:1.55}
.rf-steps .n{font-family:var(--font-serif);font-weight:700;font-size:20px;color:var(--azure)}
.rf-reassure{font-size:14px;color:var(--muted-soft);margin-top:14px}
.rf-card .btn{min-height:52px}
.rf-full{width:100%}[data-slug="known"] .st-known,[data-slug="unknown"] .st-unknown{display:block}
/* stepped form */
.rf-prog{display:flex;gap:4px;margin-bottom:12px}.rf-prog i{flex:1;height:4px;background:var(--rule)}.rf-prog i.on{background:var(--azure)}
.rf-steplbl{font-size:12.5px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--muted-soft);margin-bottom:22px}
.rf-step{display:none}.rf-step.on{display:block}
.rf-q{margin-bottom:26px}
.rf-q>label,.rf-q>.lbl{display:block;font-weight:700;font-size:15.5px;margin-bottom:4px}
.rf-q .opt{font-weight:400;color:var(--muted-soft);font-size:14px}
.rf-hint{font-size:13.5px;color:var(--muted);margin-bottom:10px;line-height:1.5}
.rf-in,.rf-q select,.rf-q textarea{width:100%;font:15px/1.5 var(--font-sans);color:var(--ink);padding:13px 14px;border:1.5px solid #C9CED2;border-radius:2px;background:#fff}
.rf-in:focus,.rf-q select:focus,.rf-q textarea:focus{outline:none;border-color:var(--azure);box-shadow:0 0 0 3px var(--azure-tint)}
.rf-q textarea{min-height:150px;resize:vertical}
.rf-count{font-size:12.5px;color:var(--muted-soft);text-align:right;margin-top:6px}.rf-count.bad{color:#B5443A}
.rf-err{display:none;font-size:13.5px;color:#B5443A;margin-top:8px;font-weight:600}.rf-q.invalid .rf-err{display:block}.rf-q.invalid .rf-in,.rf-q.invalid textarea,.rf-q.invalid select{border-color:#B5443A}
.rf-opts{display:grid;gap:8px}
.rf-opts label{display:flex;align-items:center;gap:12px;padding:14px 16px;border:1.5px solid var(--rule);border-radius:2px;font-size:15px;cursor:pointer;background:#fff}
.rf-opts label:hover{border-color:#B9C0C5}
.rf-opts input{accent-color:var(--azure);width:18px;height:18px;margin:0}
.rf-opts label:has(input:checked){border-color:var(--azure);background:var(--azure-tint)}
.rf-opts .aside{margin-left:auto;font-size:13px;font-weight:600}
.rf-two{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.rf-flex{display:flex;align-items:center;gap:8px;margin-top:10px;font-size:14.5px}.rf-flex input{accent-color:var(--azure);width:17px;height:17px}
.rf-nav{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:8px;padding-top:22px;border-top:1px solid var(--rule)}
.rf-back{background:none;border:0;font:600 15px var(--font-sans);color:var(--muted);cursor:pointer;padding:10px 0}
.rf-back:hover{color:var(--ink)}.rf-back[hidden]{visibility:hidden;display:block}
.rf-consent{display:flex;gap:12px;align-items:flex-start;font-size:14.5px;line-height:1.55}.rf-consent input{accent-color:var(--azure);width:18px;height:18px;margin-top:2px;flex:none}
.rf-saved{font-size:12.5px;color:var(--muted-soft);text-align:center;margin-top:16px}
.rf-hp{position:absolute;left:-9999px}

.rf-mail{width:56px;height:56px;border-radius:50%;background:var(--azure-tint);color:var(--azure);display:flex;align-items:center;justify-content:center;margin-bottom:20px}
.rf-mail svg{width:26px;height:26px}
.rf-timeline{list-style:none;margin:6px 0 24px;padding:0}
.rf-timeline li{position:relative;padding:0 0 22px 34px;font-size:15.5px;line-height:1.55}
.rf-timeline li::before{content:"";position:absolute;left:7px;top:22px;bottom:0;width:2px;background:var(--rule)}
.rf-timeline li:last-child::before{display:none}
.rf-timeline li::after{content:"";position:absolute;left:0;top:5px;width:16px;height:16px;border-radius:50%;border:2px solid var(--azure);background:#fff}
.rf-timeline li.done::after{background:var(--azure)}
.rf-timeline b{display:block}.rf-timeline span{color:var(--muted);font-size:14.5px}
/* brief summary */
.rf-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 24px;padding:20px 0;border-top:1px solid var(--rule);border-bottom:1px solid var(--rule);margin:18px 0}
.rf-facts .k{font-size:12px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--muted-soft);margin-bottom:2px}
.rf-facts .v{font-size:15.5px;font-weight:600}
.rf-desc{font-size:15.5px;line-height:1.7;color:var(--ink)}
.rf-private{display:flex;gap:10px;align-items:center;font-size:13.5px;color:var(--muted);background:var(--card);padding:12px 14px;margin-top:18px}
.rf-private svg{width:16px;height:16px;flex:none}
.rf-banner{background:var(--charcoal);color:#fff;padding:14px 18px;display:flex;align-items:center;gap:14px;font-size:15px;margin:-36px -36px 28px}
.rf-banner b{color:#fff}
.rf-clock{display:flex;align-items:center;gap:10px;font-size:14.5px;font-weight:600;padding:12px 16px;background:var(--azure-tint);color:var(--charcoal);margin-bottom:22px}
.rf-clock svg{width:18px;height:18px;color:var(--azure-d);flex:none}
/* nomination */
.rf-search{position:relative;margin-bottom:12px}.rf-search svg{position:absolute;left:14px;top:50%;transform:translateY(-50%);width:17px;height:17px;color:var(--muted-soft)}.rf-search input{padding-left:42px}
.rf-people{border:1px solid var(--rule);max-height:340px;overflow:auto}
.rf-person{display:flex;align-items:center;gap:14px;padding:12px 16px;border-bottom:1px solid var(--rule);cursor:pointer}
.rf-person:last-child{border-bottom:0}
.rf-person:hover{background:#FAFAFB}
.rf-person .nm{font-weight:700;font-size:15px}.rf-person .sp{font-size:13px;color:var(--muted)}
.rf-person .tag{margin-left:auto;font-size:11.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--green-d);white-space:nowrap}
.rf-person .tag.off{color:var(--muted-soft)}
.rf-person input{accent-color:var(--azure);width:18px;height:18px;flex:none}
.rf-person.dis{opacity:.45;cursor:not-allowed}
.rf-person:has(input:checked){background:var(--azure-tint)}
.rf-picked{font-size:14px;color:var(--muted);margin:12px 0 20px}
.rf-actions{display:grid;gap:10px}
.rf-or{text-align:center;font-size:13.5px;color:var(--muted-soft);margin:4px 0}
/* respond */
.rf-choice{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:6px}
.rf-choice button{font:700 16px var(--font-sans);padding:16px;border-radius:2px;cursor:pointer;border:1.5px solid var(--rule);background:#fff;color:var(--ink)}
.rf-choice button.yes{background:var(--green);border-color:var(--green);color:#fff}
.rf-choice button.yes:hover{background:var(--green-d)}
.rf-choice button:not(.yes):hover{border-color:var(--ink)}
.rf-panel{display:none;margin-top:22px}.rf-panel.on{display:block}[data-who="nominated"] .nom{display:flex}
.rf-switch span{padding:0 8px;color:rgba(255,255,255,.6);font-weight:600}
.rf-switch button.on{background:var(--azure)}
@media(max-width:640px){.rf-page{padding:24px 0 56px}.rf-col{padding:0 12px}.rf-card{padding:24px 20px}.rf-card h1{font-size:27px}.rf-banner{margin:-24px -20px 22px}.rf-two,.rf-facts,.rf-choice{grid-template-columns:1fr}.site-nav{display:none}}

/* ===================================================================== plugin
 * Added by build-css.mjs. Everything above is the handoff, unchanged.
 */

/* ------------------------------------------- the tokens, on our own root ----
 *
 * Every colour, rule and font in the handoff is a CSS variable, and all of them
 * are defined in its theme.css :root. That file is the design system's site
 * chrome, which this plugin does not and should not ship.
 *
 * Without them the stylesheet lays everything out and paints none of it:
 * "border:1.5px solid var(--rule)" with no --rule is an invalid colour, so the
 * border is not drawn at all. The page looks as though the CSS failed to load,
 * when in fact it loaded and had nothing to work with.
 *
 * Declared on .rf-page, not :root. A plugin redefining --azure for the whole
 * document would be reaching a long way outside its own business.
 */
.rf-page{
	--charcoal:#2E3A42; --charcoal-d:#26313a; --charcoal-2:#3a4750;
	--azure:#009EDC; --azure-d:#0286bd; --azure-tint:rgba(0,158,220,0.10);
	--green:#509E7A; --green-d:#458a6a;
	--card:#F5F5F6; --ink:#2E3A42; --muted:#5B666E; --muted-soft:#7a848b;
	--rule:#E3E4E6; --white:#fff;
	--font-serif:'Playfair Display',Georgia,serif;
	--font-sans:'Open Sans',system-ui,sans-serif;
	--radius:2px; --ease:cubic-bezier(0.22,1,0.36,1);

	background:var(--card);
	color:var(--ink);
	font-family:var(--font-sans);

	/*
	 * CLEARING THE FIXED HEADER.
	 *
	 * The theme's #header is position:fixed, so it is out of the document flow and
	 * whatever follows starts at the top of the viewport — underneath it. Ordinary
	 * pages get their clearance from page.php's own wrappers; these routes render
	 * their own markup and get none, so the top of the card sat behind the nav.
	 *
	 * 120px is the 80px header plus room to breathe. The narrow value is smaller
	 * because the header collapses on mobile; if either looks wrong, this is the
	 * only place to change it.
	 */
	padding:120px 16px 64px;
}

@media(max-width:1023px){.rf-page{padding-top:90px}}

/* --------------------------------------------- the form works without JS ----
 *
 * The handoff hides every step by default and shows one with .on, because its mock
 * had a script that was guaranteed to run. Ours is not: if the script fails to load
 * — blocked, cached badly, an old phone — that rule leaves a client staring at a
 * step label, a Continue button and nothing else. Which is exactly what it did.
 *
 * So hiding is conditional on the script having started. No script, no .rf-js, and
 * all six steps render stacked as one long form that still submits and still
 * validates server-side. Stepped is the better experience; working is the
 * requirement.
 */
.rf-step{display:block}
.rf-js .rf-step{display:none}
.rf-js .rf-step.on{display:block}

/* ------------------------------------------------------------- the button ----
 * The mock used the theme's .btn .btn-azure. Those belong to the design system's
 * own stylesheet, not to this site's theme, so relying on them gives an unstyled
 * browser button — which is what appeared. Defined here, under our own prefix.
 */
.rf-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;
	font-family:inherit;font-size:16px;font-weight:700;line-height:1;cursor:pointer;
	padding:15px 24px;border:0;border-radius:2px;background:var(--azure);color:#fff;
	text-decoration:none;transition:background .2s}
.rf-btn:hover{background:var(--azure-d,#0286bd);color:#fff}
.rf-btn.rf-full{width:100%}
.rf-btn[disabled]{opacity:.45;cursor:not-allowed}
.rf-btn[disabled]:hover{background:var(--azure)}

/* ------------------------------------------- the second choice, not a lesser one ----
 *
 * The mock gives the nominate screen two buttons of equal size: solid azure for "send to
 * my picks", outlined dark for going straight to matching. Both are btn-lg, because both
 * are real answers — a referrer who does not have a name in mind is the common case, not
 * a failure to complete the form.
 *
 * Shipped first as .rf-back, the small borderless style used for "← Back" on the brief
 * form, which made the honest answer look like an escape hatch. Defined properly here,
 * since the mock's .btn classes live in the design system's own stylesheet.
 */
/*
 * Green for "yes, send me to the shortlist".
 *
 * The mock uses .btn-green there rather than the usual azure, and it is doing real work: on a
 * screen whose whole purpose is yes-or-no, the affirmative reading green and the alternative
 * reading outlined tells a member which is which before they have read either label.
 */
.rf-btn-green{display:inline-flex;align-items:center;justify-content:center;gap:8px;
	font-family:inherit;font-size:16px;font-weight:700;line-height:1;cursor:pointer;
	padding:15px 24px;border:0;border-radius:2px;background:var(--green);color:#fff;
	text-decoration:none;transition:background .2s}
.rf-btn-green:hover{background:var(--green-d);color:#fff}
.rf-btn-green.rf-full,.rf-btn-outline.rf-full{width:100%}

/* Panels: both visible without JS, one at a time with it — as the steps do. */
.rf-panel{display:block}
.rf-js-choice .rf-panel{display:none}
.rf-js-choice .rf-panel.on{display:block}

.rf-btn-outline{display:inline-flex;align-items:center;justify-content:center;gap:8px;
	font-family:inherit;font-size:16px;font-weight:700;line-height:1;cursor:pointer;
	padding:14px 24px;border:1.5px solid var(--charcoal);border-radius:2px;background:none;
	color:var(--charcoal);text-decoration:none;transition:background .2s,color .2s}
.rf-btn-outline:hover{background:var(--charcoal);color:#fff}
.rf-back{background:none;border:0;padding:8px 0;font:inherit;font-size:15px;
	font-weight:600;color:var(--muted);cursor:pointer}
.rf-back:hover{color:var(--ink)}
.rf-back[hidden]{display:none}

/* ------------------------------------------- Continue stays on the right ----
 *
 * The handoff gives .rf-nav justify-content:space-between, which is right while the
 * row holds two buttons: Back on the left, Continue on the right. On the first step
 * there is no Back — it is [hidden] — and a single flex child under space-between
 * sits at flex-start, so Continue jumped to the left edge on step one and back to
 * the right on every step after it.
 *
 * An auto margin rather than a change of justify-content, because auto margins
 * absorb the free space before justify-content is applied. One rule then covers
 * both cases: with Back present the row is unchanged, and without it Continue is
 * still pushed right.
 */
.rf-nav .rf-btn{margin-left:auto}

/* ------------------------------------------- the member's respond screen ----
 * Not in the handoff, which covers the client's side only. Deliberately plain:
 * this is read on a phone, between other work, by somebody deciding in about ten
 * seconds whether a brief is theirs.
 */
.rf-brief{width:100%;border-collapse:collapse;margin:20px 0}
.rf-brief th{text-align:left;font-weight:400;color:var(--muted);width:38%;
	padding:9px 0;border-bottom:1px solid var(--rule);vertical-align:top}
.rf-brief td{padding:9px 0;border-bottom:1px solid var(--rule);font-weight:700}
.rf-note{background:var(--azure-tint);border-left:3px solid var(--azure);
	padding:14px 16px;margin:0 0 22px;font-size:15px;line-height:1.55}
.rf-note .rf-hint{margin:8px 0 0}
.rf-respond h2{margin-top:28px}

/* Hints, counters and the honeypot, which the mock styled inline. */
.rf-hint{font-size:13.5px;line-height:1.5;color:var(--muted-soft);margin:0 0 10px}
.rf-count{font-size:12.5px;color:var(--muted-soft);text-align:right;margin-top:6px}
.rf-hp{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;
	opacity:0!important;pointer-events:none}
.rf-err-top{margin-bottom:18px}
.rf-centre{text-align:center}
.rf-problem h1{color:#b32d2e}
/* ------------------------------------------- the consent box, exactly one ----
 *
 * This site has previous with checkboxes, in both directions.
 *
 * It carries an unscoped `input[type="checkbox"]{visibility:hidden;display:none}`
 * left over from the directory's custom checkboxes, so a native box renders as
 * nothing unless it insists otherwise — and a consent box that cannot be seen is a
 * form that cannot be submitted. Hence the !important pair.
 *
 * It also draws its own box with a pseudo-element on whatever follows the input,
 * which is how the native box and a drawn one end up side by side. Trying to work
 * out which selector is responsible is a losing game on a site with twenty-two
 * stylesheets: content:none kills it whatever drew it.
 *
 * One native box, coloured with accent-color, and nothing else painting near it.
 */
.rf-consent input[type="checkbox"]{
	display:inline-block!important;
	visibility:visible!important;
	position:static!important;
	opacity:1!important;
	width:18px!important;height:18px!important;
	margin:2px 0 0!important;
	flex:none;
	accent-color:var(--azure);
	cursor:pointer;
}
.rf-consent::before,.rf-consent::after,
.rf-consent>span::before,.rf-consent>span::after{content:none!important;display:none!important}

/*
 * A GRID, NOT A FLEX ROW, AND EVERY ITEM PLACED BY HAND.
 *
 * THE THEME INJECTS AN EXTRA CHILD INTO THIS LABEL. custom.js runs, site-wide and
 * unconditionally:
 *
 *     $('input[type="checkbox"]').after('<span></span>');
 *
 * It is the other half of the theme's custom checkbox — an empty span for the CSS to
 * draw a box on, paired with the global rule that hides the real input. We already
 * override the hiding, so the span is left with nothing to do, but it is still a
 * child, and in a two-column grid three children mean the third wraps:
 *
 *     [input]         -> row 1, column 1   (18px)
 *     [injected span] -> row 1, column 2   (the whole 488px)
 *     [text span]     -> row 2, column 1   (18px)
 *
 * An 18px column is about one word wide, which is exactly how it rendered: the
 * checkbox alone on one line and the consent text running down the page a word at a
 * time. Nothing in the cascade was wrong, which is why reading the stylesheets found
 * nothing — the markup had changed underneath them.
 *
 * So the two items we own are placed explicitly rather than left to auto-placement,
 * and anything injected between them is hidden. Auto-placement is the thing that
 * broke; removing the dependency on it is the fix. The 3px nudge puts an 18px box on
 * the cap height of a 15px line rather than its top.
 */
.rf-page .rf-consent>input[type="checkbox"]{grid-column:1;grid-row:1}
.rf-page .rf-consent>span:last-of-type{grid-column:2;grid-row:1}
.rf-page .rf-consent>span:not(:last-of-type){display:none!important}
.rf-page .rf-consent{
	display:grid!important;
	grid-template-columns:18px minmax(0,1fr);
	gap:12px;
	align-items:start;
	font-size:15px;
	line-height:1.55;
}
.rf-page .rf-consent>span{padding-left:0;font-weight:400}
.rf-page .rf-consent input[type="checkbox"]{margin-top:3px!important}
