/* Demo-only styles on top of GOV.UK Frontend. No GOV.UK branding: own header colour, no crown, Arial throughout. */
body, .govuk-template__body { font-family: arial, sans-serif; }
[hidden] { display: none !important; }

.demo-header { background: #12403c; color: #fff; border-bottom: 6px solid #2a8a7f; }
.demo-header__inner { padding: 14px 0 12px; display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.demo-header__service { color: #fff; font-weight: 700; font-size: 1.25rem; text-decoration: none; }
.demo-header__service:hover { text-decoration: underline; text-decoration-thickness: 3px; }
.demo-header__service:focus { color: #0b0c0c; }
.demo-header__note { font-size: 0.9rem; color: #cfe5e2; }

/* Small "does this apply?" links that open hidden branches */
.demo-small-links { margin: 30px 0 20px; padding-top: 15px; border-top: 1px solid #b1b4b6; }
.demo-small-links__title { font-size: 1rem; font-weight: 700; margin: 0 0 8px; color: #505a5f; }
.demo-small-links ul { list-style: none; margin: 0; padding: 0; }
.demo-small-links li { margin: 0 0 6px; }
.demo-tiny { font-size: 0.875rem; }
.demo-add { display: inline-block; margin: -10px 0 25px; }
.demo-extra { border-left: 5px solid #b1b4b6; padding: 5px 0 1px 15px; margin: 0 0 25px; }
.demo-extra .demo-extra__title { font-weight: 700; margin: 0 0 10px; }
.demo-remove { display: inline-block; margin: 0 0 15px; }
.demo-off { display: none !important; }

/* Check answers */
.demo-assumed .govuk-summary-list__value { color: #505a5f; }
.demo-changed .govuk-summary-list__value { color: #0b0c0c; font-weight: 700; }
.demo-stat { font-size: 1.1875rem; }
.demo-stat strong { font-size: 2.25rem; display: block; line-height: 1.1; }
.demo-stats { display: flex; gap: 30px; flex-wrap: wrap; margin-bottom: 30px; }

/* The wait-time callout */
.demo-wait { background: #e8f3f1; border-left: 10px solid #12403c; padding: 20px 25px; margin: 0 0 30px; }
.demo-wait p { margin: 0; }
.demo-wait__label { font-size: 1.1875rem; font-weight: 700; color: #12403c; }
.demo-wait__number { font-size: 3.5rem; font-weight: 700; line-height: 1.1; margin: 5px 0 10px !important; color: #0b0c0c; }
.demo-wait__text { font-size: 1.1875rem; line-height: 1.4; }
.demo-wait__small { font-size: 0.8125rem; color: #505a5f; margin-top: 12px !important; }
.demo-keep { font-size: 1.5rem; font-weight: 700; }
@media (max-width: 40em) { .demo-wait__number { font-size: 2.5rem; } }

/* ---------- Build your case ---------- */
.case-stats { display: flex; gap: 30px; flex-wrap: wrap; margin: 0 0 5px; }
.case-stat { margin: 0; max-width: 16rem; font-size: 1rem; }
.case-stat strong { display: block; font-size: 2.5rem; line-height: 1.1; color: #12403c; }
.case-source { color: #505a5f; }
.case-steps { margin: 0 0 30px; padding-left: 1.4em; }
.case-steps li { margin-bottom: 8px; font-size: 1.1875rem; }

.case-assistant { background: #f3f8f7; border: 2px solid #12403c; border-radius: 4px; padding: 20px 25px 10px; margin: 10px 0 30px; }
.case-assistant__head { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 15px; }
.case-assistant__icon { color: #2a8a7f; flex: none; margin-top: 2px; }
.case-assistant__title { margin: 0 0 4px; }
.case-assistant__sub { margin: 0; color: #505a5f; }
.case-assistant__demo { margin-left: auto; }
.case-part { margin-top: 25px; padding-top: 20px; border-top: 1px solid #b1c9c6; }
.case-assistant > .govuk-grid-row:first-of-type .case-part { margin-top: 0; padding-top: 0; border-top: 0; }
.case-button { margin-bottom: 15px; }

.case-thinking { display: flex; align-items: center; gap: 10px; color: #12403c; font-weight: 700; margin: 0 0 20px; }
.case-thinking::before { content: ""; width: 16px; height: 16px; border: 3px solid #b1c9c6; border-top-color: #12403c; border-radius: 50%; animation: case-spin .8s linear infinite; }
@keyframes case-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .case-thinking::before { animation: none; } }

.case-reply { background: #fff; border-left: 5px solid #2a8a7f; padding: 15px 20px; margin: 0 0 20px; }
.case-reply p:last-child { margin-bottom: 0; }

.case-points { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: 15px; margin: 0 0 20px; }
.case-point { background: #fff; border: 1px solid #b1b4b6; border-top: 5px solid #00703c; padding: 15px 18px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.case-point--worth { border-top-color: #1d70b8; }
.case-point--some { border-top-color: #b58840; }
.case-point--notice { border-top-color: #6f3cbb; }
.case-point--nohelp { border-top-color: #b1b4b6; background: #fafafa; }
.case-point h4 { margin: 0; font-size: 1.1875rem; }
.case-point p { margin: 0; font-size: 1rem; }
.case-point .case-effect { color: #383f43; font-size: 0.9375rem; }
.case-point__top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.case-meter { font-size: 0.875rem; color: #505a5f; display: flex; align-items: center; gap: 8px; }
.case-meter__dots { display: inline-flex; gap: 3px; }
.case-meter__dots span { width: 12px; height: 12px; border-radius: 50%; background: #dbe3e2; }
.case-meter__dots span.on { background: #00703c; }
.case-point details { margin: 0; }
.case-point summary { cursor: pointer; color: #1d70b8; text-decoration: underline; font-size: 1rem; }
.case-point summary:focus { outline: 3px solid #fd0; background: #fd0; color: #0b0c0c; }
.case-point .govuk-form-group { margin-bottom: 12px; }
.case-point .govuk-label { font-size: 1rem; }
.case-draft { background: #f3f8f7; padding: 10px 12px; font-size: 1rem; line-height: 1.45; border-left: 3px solid #2a8a7f; }
.case-draft__label { display: block; font-size: 0.8125rem; font-weight: 700; color: #12403c; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .03em; }
.case-tips { margin: 0; padding-left: 1.2em; font-size: 0.9375rem; }
.case-evidence { margin: 0; padding-left: 1.2em; font-size: 0.9375rem; }
.case-remove { font-size: 0.875rem; align-self: flex-start; }
.case-add-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 20px; }
.case-add-row .govuk-form-group { margin-bottom: 0; }

.case-comps { display: grid; gap: 12px; margin-bottom: 10px; }
.case-comp { background: #fff; border: 1px solid #b1b4b6; padding: 12px 15px 0; display: grid; grid-template-columns: 2fr 0.6fr 1fr 1.4fr 2fr; gap: 0 12px; }
.case-comp legend { grid-column: 1 / -1; font-weight: 700; margin-bottom: 6px; }
.case-comp .govuk-form-group { margin-bottom: 12px; min-width: 0; }
.case-comp .govuk-label { font-size: 0.875rem; }
.case-comp .govuk-input, .case-comp .govuk-select { width: 100%; min-width: 0; max-width: 100%; }
@media (max-width: 48em) { .case-comp { grid-template-columns: 1fr 1fr; } .case-comp .case-comp__wide, .case-comp .case-comp__type { grid-column: 1 / -1; } }

.case-suggest { background: #fff; border: 3px solid #00703c; padding: 15px 20px; margin: 0 0 20px; }
.case-suggest__fig { font-size: 2.5rem; font-weight: 700; line-height: 1.1; margin: 4px 0 8px; }
.case-suggest table { width: 100%; border-collapse: collapse; font-size: 1rem; margin-bottom: 12px; }
.case-suggest td { padding: 4px 0; border-bottom: 1px solid #e5e5e5; }
.case-suggest td:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.case-statement { font-size: 1rem; line-height: 1.5; }
.case-hone { display: flex; gap: 10px; flex-wrap: wrap; }
.case-hone .govuk-button { margin-bottom: 10px; }
.case-flag { background: #fff7e6; border-left: 5px solid #b58840; padding: 10px 15px; margin: 0 0 10px; }
.case-flag q { font-style: italic; }
.case-checklist .govuk-checkboxes__item { margin-bottom: 6px; }
.case-checklist h4 { font-size: 1rem; margin: 15px 0 5px; }

.demo-footer { border-top: 1px solid #b1b4b6; padding: 25px 0 40px; color: #505a5f; font-size: 0.875rem; }
