/* The Financial Report Card (/report-card; templates/ewp/report_card/). EWP's look, from the theme's tokens only: Playfair headings, navy
   panels and buttons, the gold call to action, white paper cards. Registered for the public area by plugins/ewp/__init__.py; another site
   gets its own look from its own tokens. The public pages are always the light set. */

.rc { max-width: 860px; margin: 0 auto; padding: 0 0 3rem; color: var(--bz-on-paper); font-family: var(--bz-font-body); }
.rc h1, .rc h2, .rc h3 { font-family: var(--bz-font-display); color: var(--bz-action); line-height: 1.2; text-wrap: balance; }
.rc h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); margin: 0 0 .75rem; }
.rc h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); margin: 0 0 .6rem; }
.rc h3 { font-size: 1.2rem; margin: 0 0 .5rem; }
.rc p { margin: 0 0 .8rem; line-height: 1.6; }
.rc a { color: var(--bz-link-on-paper); text-underline-offset: 3px; }
.rc .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; }
.rc :focus-visible { outline: 3px solid var(--bz-focus); outline-offset: 2px; }
.rc [hidden] { display: none !important; }

/* The trail: a <nav>, so it is reset from the site header's fixed nav rule, and drawn as the content pages' full-width bar. */
.rc-crumbs { position: static; inset: auto; z-index: auto; margin: 0 calc(50% - 50vw) 2rem; padding: 10px max(24px, calc((100vw - 1140px) / 2 + 24px));
             background: var(--bz-ground-soft); border-bottom: 1px solid var(--bz-ground-line); font-size: .82rem; line-height: 1.4; }
.rc-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.rc-crumbs li + li::before { content: "\203A"; margin: 0 8px; color: var(--bz-on-paper-muted); }
.rc-crumbs a { color: var(--bz-action); }
.rc-crumbs [aria-current="page"] { color: var(--bz-on-paper); }

.rc-eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--bz-accent-soft); margin: 0 0 .5rem; }
.rc-eyebrow--paper { color: var(--bz-accent-on-paper); }
.rc-small, .rc-source, .rc-hint { font-size: .88rem; color: var(--bz-on-paper-muted); }
.rc-note { padding: .8rem 1rem; border-left: 3px solid var(--bz-accent); background: var(--bz-paper-subtle); border-radius: 0 8px 8px 0; }

/* The hero: the seminar pages' navy panel. */
.rc-hero { background: linear-gradient(135deg, var(--bz-action) 0%, var(--bz-accent-2) 60%, var(--bz-chrome-bg) 100%); color: var(--bz-on-action);
           border-radius: 14px; padding: 2.25rem 2rem; margin: 0 0 1.5rem; }
.rc-hero h1 { color: var(--bz-on-action); }
.rc-hero .rc-lead { font-size: 1.1rem; color: var(--bz-on-action); }
.rc-reasons { margin: 1rem 0; padding-left: 1.2rem; }
.rc-reasons li { margin: 0 0 .45rem; color: var(--bz-on-action); }
.rc-reasons strong { color: var(--bz-accent-soft); }
.rc-hero .rc-privacy { font-size: .88rem; color: var(--bz-on-action); opacity: .88; }
.rc-hero :focus-visible { outline-color: var(--bz-accent-soft); }
/* once started, the intro steps aside so the question is the first thing on screen */
.rc--started .rc-hero { padding: 1.1rem 1.5rem; margin-bottom: 1rem; }
.rc--started .rc-hero .rc-lead, .rc--started .rc-reasons, .rc--started .rc-privacy, .rc--started .rc-eyebrow { display: none; }
.rc--started .rc-hero h1 { font-size: clamp(1.3rem, 3vw, 1.7rem); margin: 0; }

/* Cards: white paper with its own text colour and field colours. */
.rc-card { background: var(--bz-paper); color: var(--bz-on-paper); color-scheme: light; border: 1px solid var(--bz-paper-line-strong);
           border-radius: 12px; padding: 1.5rem; margin: 0 0 1.25rem; box-shadow: var(--bz-shadow-paper); }

/* Questions */
.rc-section { margin: 0 0 1.5rem; }
.rc-section__title { margin-top: 1.5rem; }
.rc-q { min-width: 0; }
.rc-q { border: 1px solid var(--bz-paper-line-strong); }
/* the question sits inside the card, not on its border line (a legend floated to full width leaves the fieldset's border) */
.rc-legend { float: left; width: 100%; font-family: var(--bz-font-display); font-weight: 700; font-size: 1.25rem; color: var(--bz-action); padding: 0; margin: 0 0 .75rem; }
.rc-legend + * { clear: both; }
.rc-legend__hint { font-family: var(--bz-font-body); font-weight: 400; font-size: .9rem; color: var(--bz-on-paper-muted); }
.rc-hint { margin-top: -.35rem; }
.rc-pills { display: flex; flex-wrap: wrap; gap: .6rem; }
.rc-pill { position: relative; display: inline-flex; }
.rc-pill input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.rc-pill span { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .55rem 1.1rem; border: 1.5px solid var(--bz-paper-field-line);
                border-radius: 999px; background: var(--bz-paper-field-bg); color: var(--bz-on-paper); font-size: .98rem; line-height: 1.2; }
.rc-pill--none span { border-style: dashed; }
.rc-pill input:hover + span { border-color: var(--bz-action); }
.rc-pill input:checked + span { border-color: var(--bz-action); background: var(--bz-paper-subtle); color: var(--bz-action); font-weight: 600; }
.rc-pill input:checked + span::before { content: "\2713"; font-weight: 700; }   /* chosen is shown by a mark, not by colour alone */
.rc-pill input:focus-visible + span { outline: 3px solid var(--bz-focus); outline-offset: 2px; }

.rc-number { display: flex; align-items: center; gap: .6rem; }
.rc-input { min-height: 44px; padding: .55rem .8rem; font-size: 1.05rem; border: 1.5px solid var(--bz-paper-field-line); border-radius: 8px;
            background: var(--bz-paper-field-bg); color: var(--bz-on-paper); width: 100%; max-width: 24rem; box-sizing: border-box; }
.rc-input:focus-visible { border-color: var(--bz-action); }
.rc-input--number { width: 7rem; text-align: center; font-weight: 700; font-size: 1.4rem; }
.rc-input--zip { width: 9rem; letter-spacing: .08em; }
.rc-step { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--bz-paper-field-line); background: var(--bz-paper-field-bg);
           color: var(--bz-action); font-size: 1.4rem; cursor: pointer; }
.rc-step:hover { border-color: var(--bz-action); }

/* Buttons */
.rc-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; padding: .65rem 1.4rem; border-radius: 8px;
          border: 1.5px solid transparent; font-weight: 600; font-size: 1rem; cursor: pointer; text-decoration: none; font-family: var(--bz-font-body); }
.rc-btn--solid { background: var(--bz-action); border-color: var(--bz-action); color: var(--bz-on-action); }
.rc-btn--solid:hover { background: var(--bz-action-hover); border-color: var(--bz-action-hover); }
.rc-btn--accent { background: var(--bz-accent); border-color: var(--bz-accent); color: var(--bz-on-accent); }
.rc-btn--accent:hover { background: var(--bz-accent-strong); border-color: var(--bz-accent-strong); }
.rc-btn--quiet { background: transparent; border-color: var(--bz-paper-line-strong); color: var(--bz-action); }
.rc a.rc-btn--accent { color: var(--bz-on-accent); }
.rc-nav { display: flex; justify-content: space-between; gap: .75rem; margin-top: 1.25rem; flex-wrap: wrap; }
.rc-nav--gate { justify-content: flex-end; }

/* Progress */
.rc-progress { margin: 0 0 1rem; }
.rc-progress__text { font-size: .88rem; font-weight: 600; color: var(--bz-on-paper-muted); margin: 0 0 .4rem; }
.rc-progress__bar { height: 8px; border-radius: 999px; background: var(--bz-paper-line); overflow: hidden; }
.rc-progress__bar span { display: block; height: 100%; width: 0; background: var(--bz-action); border-radius: 999px; }

/* "— done" screens */
.rc-done { text-align: center; }
.rc-done__check { width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%; background: var(--bz-success-bg); color: var(--bz-success);
                  display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 700; }
.rc-done__dots { display: flex; justify-content: center; gap: 8px; }
.rc-done__dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--bz-paper-line-strong); }
.rc-done__dots span.is-on { background: var(--bz-action); }
.rc-done__fact { background: var(--bz-paper-subtle); border-radius: 8px; padding: .9rem 1rem; color: var(--bz-on-paper-soft); }

/* The email gate */
.rc-gate h2 { margin-top: 0; }
.rc .rc-gate .rc-small { text-align: center; margin-top: 1rem; }
.rc-two { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.rc-field { margin: 0 0 .85rem; }
.rc-field label { display: block; font-weight: 600; font-size: .92rem; margin: 0 0 .3rem; color: var(--bz-on-paper); }
.rc-field .rc-input { max-width: none; }
.rc-error { padding: .75rem 1rem; border: 1px solid var(--bz-danger-line); background: var(--bz-danger-bg); color: var(--bz-danger-strong); border-radius: 8px; font-weight: 600; }
.rc-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.rc-turnstile { margin: .5rem 0 .25rem; }

/* About and FAQ */
.rc-about { margin-top: 2.5rem; }
.rc-faq__item { border-bottom: 1px solid var(--bz-paper-line); }
.rc-faq__item summary { cursor: pointer; padding: .9rem 0; font-weight: 600; color: var(--bz-action); }
.rc-faq__item p { padding: 0 0 .9rem; color: var(--bz-on-paper-soft); }
.rc-disclaimer { font-size: .82rem; color: var(--bz-on-paper-muted); margin-top: 1.5rem; }

/* The report */
.rc-sent { padding: .8rem 1rem; border: 1px solid var(--bz-success-line); background: var(--bz-success-bg); color: var(--bz-on-paper); border-radius: 8px;
           text-align: center; }
.rc-overall { text-align: center; }
.rc-ring { --rc-colour: var(--bz-action); width: 168px; height: 168px; margin: 1rem auto; border-radius: 50%; display: flex; flex-direction: column;
           align-items: center; justify-content: center; background: conic-gradient(var(--rc-colour) calc(var(--rc-score) * 1%), var(--bz-paper-line) 0);
           position: relative; }
.rc-ring::before { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: var(--bz-paper); }
.rc-ring--strong { --rc-colour: var(--bz-success); }
.rc-ring--weak { --rc-colour: var(--bz-danger); }
.rc-ring__letter, .rc-ring__score { position: relative; }
.rc-ring__letter { font-family: var(--bz-font-display); font-size: 3rem; font-weight: 700; color: var(--bz-action); line-height: 1; }
.rc-ring__score { font-size: 1rem; color: var(--bz-on-paper-muted); }
/* .rc p sets every paragraph's margin, so the centring needs the same weight */
.rc .rc-overall__line { font-size: 1.1rem; max-width: 34rem; margin: 0 auto; }
.rc-fix { border-left: 5px solid var(--bz-accent); }
.rc-grade-list { margin-top: .75rem; }
.rc-grade { border-bottom: 1px solid var(--bz-paper-line); }
.rc-grade summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem .25rem; cursor: pointer; min-height: 44px;
  list-style: none; }
.rc-grade summary::-webkit-details-marker { display: none; }
/* the row opens: a small triangle after the letter, pointing right when closed and down when open. Drawn, not text, so a screen
   reader hears only the row itself, which it already announces as collapsed or expanded. */
.rc-grade summary::after { content: ""; flex: none; width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 9px;
  border-color: transparent transparent transparent var(--bz-on-paper-muted); transition: transform .15s ease; }
.rc-grade[open] summary::after { transform: rotate(90deg); }
.rc-grade summary:hover::after { border-left-color: var(--bz-action); }
@media (prefers-reduced-motion: reduce) { .rc-grade summary::after { transition: none; } }
.rc-grade__name { font-weight: 600; color: var(--bz-on-paper); flex: 1; }
.rc-grade__letter { font-family: var(--bz-font-display); font-weight: 700; font-size: 1.35rem; color: var(--bz-action); }
.rc-grade--strong .rc-grade__letter { color: var(--bz-success); }
.rc-grade--weak .rc-grade__letter { color: var(--bz-danger); }
.rc-grade__body { padding: 0 .25rem 1rem; }
.rc-next__action { margin: 1rem 0 0; }
.rc-sticky { display: none; }

@media (max-width: 640px) {
  .rc-hero { padding: 1.5rem 1.15rem; }
  .rc-card { padding: 1.15rem; }
  .rc-two { grid-template-columns: 1fr; }
  .rc-nav .rc-btn { flex: 1 1 auto; }
  .rc--result { padding-bottom: 5.5rem; }
  .rc-sticky { display: block; position: fixed; left: 0; right: 0; bottom: 0; padding: .6rem 16px calc(.6rem + env(safe-area-inset-bottom));
               background: var(--bz-paper); border-top: 1px solid var(--bz-paper-line-strong); box-shadow: var(--bz-shadow-pop); z-index: 20; }
  .rc-sticky .rc-btn { width: 100%; }
}

@media (prefers-reduced-motion: no-preference) {
  .rc-progress__bar span { transition: width .25s ease; }
}
