/* Difable "Access starts here". Type-led layout on Difability's brand colours.
   One device: the cyan "here" marker, a you-are-here sign for every position on
   the page (the headline, open routes, guide prompts, section labels, captions). */
@font-face { font-family: Manrope; src: url("/fonts/manrope-latin.woff2") format("woff2"); font-style: normal; font-weight: 500 800; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("/fonts/source-sans-3-latin.woff2") format("woff2"); font-style: normal; font-weight: 400 700; font-display: swap; }

:root {
  color-scheme: light;
  --midnight: #001b52;   /* Difability ink: 16.4:1 on white */
  --electric: #0057ff;   /* Difability action blue: 5.5:1 on white */
  --electric-deep: #0046d1;
  --cyan: #31dfff;       /* the marker; never text on white (1.6:1) */
  --lead: #2b3a60;       /* 11.2:1 */
  --line: #c9d6ea;
  --ground: #f5f8fc;
  --display: Manrope, "Segoe UI", system-ui, sans-serif;
  --reading: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; color: var(--midnight); background: #fff; font: 1.125rem/1.55 var(--reading); overflow-wrap: break-word; }
h1, h2, h3, p, figure, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.04; letter-spacing: -.045em; text-wrap: balance; }
h3 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -.02em; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
[hidden], .icon-library { display: none !important; }
:focus-visible { outline: 3px solid var(--midnight); outline-offset: 3px; box-shadow: 0 0 0 6px var(--cyan); }
[id] { scroll-margin-block-start: 1.5rem; }
.wrap { width: min(100% - 2 * var(--gutter), 80rem); margin-inline: auto; }
.keep { white-space: nowrap; }

.icon { width: 1.05em; height: 1.05em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.14em; }
.skip-link { position: absolute; left: 1rem; top: 1rem; z-index: 3; padding: .75rem 1rem; background: #fff; color: var(--midnight); font-weight: 700; transform: translateY(-200%); }
.skip-link:focus { transform: none; }

/* The marker device */
.marker-square { display: inline-block; width: .62rem; height: .62rem; flex: none; background: var(--cyan); outline: 1.5px solid var(--midnight); outline-offset: -1.5px; }
.here { padding-inline: .03em .1em; background: linear-gradient(var(--cyan), var(--cyan)) no-repeat 0 72% / 100% 74%; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* Masthead: Difability brand first, then the campaign it is running */
.site-header { border-bottom: 1px solid var(--line); }
.masthead { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.25rem; min-height: 4.5rem; }
.brand { display: inline-flex; align-items: center; min-height: 3rem; }
.brand img { width: 140px; }
.masthead-campaign { white-space: nowrap; display: flex; align-items: center; gap: .55rem; padding-inline-start: 1.25rem; border-inline-start: 1px solid var(--line); font: 700 .95rem/1.2 var(--display); }
.label-long { margin-inline-end: -.15rem; }
.main-site { margin-inline-start: auto; white-space: nowrap; display: inline-flex; align-items: center; gap: .4rem; min-height: 3rem; color: var(--electric); font-weight: 700; text-decoration: none; }
.main-site:hover { text-decoration: underline; text-underline-offset: .2em; }

/* Hero: the line breaks are the reading order */
.hero { padding-block: clamp(2rem, 4.5vw, 4rem) clamp(2.5rem, 5vw, 4.5rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.kicker { font: 700 1rem/1.3 var(--display); color: var(--lead); }
.hero h1 { margin-top: 1.1rem; font-size: clamp(3.1rem, 10.4vw, 9.4rem); line-height: .9; letter-spacing: -.062em; }
.hero h1 .line { display: block; }
.hero-side { padding-top: 2.6rem; }
.hero-figure { margin-top: 0; max-width: 27rem; }
.hero-figure img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 30%; }
.hero-lede { font-size: clamp(1.2rem, 1.6vw, 1.4rem); line-height: 1.42; color: var(--lead); max-width: 30rem; margin-bottom: 1.6rem; }
.hero-note { margin-top: .7rem; font-size: 1rem; color: var(--lead); }
.quiet-link { display: inline-flex; align-items: center; gap: .45rem; min-height: 3rem; margin-top: .4rem; font-weight: 700; text-underline-offset: .22em; text-decoration-thickness: 1px; }
.quiet-link:hover { text-decoration-thickness: 2px; }

.button { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; overflow-wrap: anywhere; min-height: 3.25rem; padding: .75rem 1.25rem; max-width: 100%; background: var(--electric); color: #fff; font-weight: 700; font-size: 1.08rem; line-height: 1.25; text-decoration: none; border-radius: 2px; }
.button:hover { background: var(--electric-deep); }
.text-link { display: inline-flex; align-items: center; gap: .45rem; min-height: 3rem; color: var(--electric); font-weight: 700; text-underline-offset: .22em; text-decoration-thickness: 1px; line-height: 1.3; }
.text-link:hover { text-decoration-thickness: 2px; }

/* Sections share one left edge; the label hangs in a margin column like a field guide */
.section { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.guide { padding-block: clamp(3rem, 7vw, 6.5rem) clamp(2.5rem, 5vw, 4.5rem); }
.contact { padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.section-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.6rem; border-top: 3px solid var(--midnight); }
.section-label { justify-self: start; display: flex; align-items: center; gap: .6rem; padding: .45rem .8rem .5rem 0; font: 800 .85rem/1.3 var(--display); letter-spacing: .04em; }
.caption { display: flex; align-items: center; gap: .5rem; padding-top: .55rem; font-size: .9rem; color: var(--lead); }
.caption::before { content: ""; width: .45rem; height: .45rem; flex: none; background: var(--cyan); outline: 1px solid var(--midnight); outline-offset: -1px; }

/* Routes: an index of native disclosures, every panel in the HTML */
.routes { padding-top: 0; }
.routes-head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 2rem; align-items: end; margin-bottom: 1.6rem; }
.routes-head p { color: var(--lead); max-width: 26rem; justify-self: end; }
.route-index { border-top: 1px solid var(--midnight); }
.route { border-bottom: 1px solid var(--line); }
.route summary { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr) 1.5rem; column-gap: 1.25rem; row-gap: .15rem; align-items: center; min-height: 4.6rem; padding: 1rem .25rem; cursor: pointer; list-style: none; }
.route summary::-webkit-details-marker { display: none; }
.route-number { grid-row: span 2; align-self: start; margin-top: .15rem; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border: 2px solid var(--midnight); font: 800 1rem/1 var(--display); }
.route-name { grid-column: 2; margin: 0; font: 800 clamp(1.35rem, 2.3vw, 1.85rem)/1.15 var(--display); letter-spacing: -.035em; }
.route-teaser { grid-column: 2; color: var(--lead); font-size: 1.05rem; line-height: 1.35; }
.route-toggle { grid-column: 3; grid-row: 1 / span 2; width: 1.4rem; height: 1.4rem; justify-self: end; }
.route summary:hover .route-name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .18em; }
.route[open] > summary .route-number { background: var(--cyan); }
.route[open] > summary .toggle-bar { display: none; }
.route-body { display: grid; grid-template-columns: minmax(0, 1fr) 15rem; gap: clamp(1.5rem, 4vw, 4rem); padding: .25rem .25rem 2.25rem 3.65rem; }
.route-copy > p { max-width: 38rem; color: var(--lead); }
.first-step { margin-top: 1.25rem; padding: 1rem 1.15rem 1.1rem; background: var(--ground); max-width: 38rem; }
.first-step h4 { margin: 0 0 .3rem; font: 800 .95rem/1.3 var(--display); }
.route-links { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; margin-top: 1.4rem; }
.route-figure img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.crop-paid-work { object-position: 50% 5%; }
.crop-work-for-yourself { object-position: 50% 16%; }
.crop-start-a-business { object-position: 50% 29%; }
.route-employer .route-number { width: 1.9rem; height: 1.9rem; font-size: .9rem; }
.route-employer .route-name { font-size: 1.2rem; letter-spacing: -.02em; }
.route-employer .route-body { grid-template-columns: minmax(0, 1fr); }

/* Work-fit guide: a sheet worth printing */
.guide-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: end; margin-bottom: 2.5rem; }
.guide-intro { margin-top: 1rem; color: var(--lead); max-width: 36rem; font-size: 1.2rem; }
.guide-figure img { width: 100%; aspect-ratio: 1.6; object-fit: cover; object-position: 60% 50%; }
.print-button { margin-top: 1.25rem; min-height: 3rem; padding: .6rem 1.1rem; border: 2px solid var(--midnight); background: #fff; color: var(--midnight); font: 700 1rem/1.2 var(--reading); cursor: pointer; border-radius: 2px; }
.print-button:hover { background: var(--ground); }
.prompts { counter-reset: prompt; border-top: 1px solid var(--midnight); }
.prompt { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, .95fr); gap: 1.5rem clamp(1.5rem, 3vw, 3rem); padding-block: 1.75rem 2rem; border-bottom: 1px solid var(--line); }
.prompt-number { font: 800 3.6rem/.85 var(--display); letter-spacing: -.06em; }
.prompt-number::after { content: ""; display: block; width: 1.6rem; height: .5rem; margin-top: .6rem; background: var(--cyan); outline: 1.5px solid var(--midnight); outline-offset: -1.5px; }
.prompt-text h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); letter-spacing: -.035em; margin-bottom: .55rem; }
.prompt-text p { color: var(--lead); max-width: 34rem; }
.example { align-self: end; padding-bottom: .55rem; border-bottom: 2px dotted var(--midnight); font: 600 1.15rem/1.45 var(--display); letter-spacing: -.01em; }
.example-label { display: block; margin-bottom: .35rem; font: 700 .85rem/1.2 var(--reading); color: var(--lead); }
.guide-resource { margin-top: 1.5rem; color: var(--lead); }
.guide-resource a { color: var(--electric); font-weight: 700; text-underline-offset: .22em; }

/* Getting in touch */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.steps { counter-reset: step; margin-top: 2rem; border-top: 1px solid var(--midnight); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); column-gap: 1.1rem; padding-block: 1.2rem 1.35rem; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(step); grid-row: span 2; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border: 2px solid var(--midnight); font: 800 1rem/1 var(--display); }
.steps h3 { font-size: 1.2rem; margin-bottom: .3rem; }
.steps p { color: var(--lead); }
.easier { padding-top: 1.1rem; border-top: 1px solid var(--midnight); margin-top: .4rem; }
.easier h3 { font-size: 1.35rem; margin-bottom: 1rem; }
.easier dl { margin: 0 0 1.5rem; }
.easier dt { font: 800 1.05rem/1.3 var(--display); margin-top: 1rem; }
.easier dt::before { content: ""; display: inline-block; width: .5rem; height: .5rem; margin-inline-end: .55rem; vertical-align: .1em; background: var(--cyan); outline: 1px solid var(--midnight); outline-offset: -1px; }
.easier dd { margin: .2rem 0 0; color: var(--lead); }
.easier dd a { overflow-wrap: anywhere; color: var(--electric); font-weight: 700; text-underline-offset: .2em; }

/* The one dark moment: the closing action */
.closing { background: var(--midnight); color: #fff; padding-block: clamp(3rem, 6vw, 5rem); }
.closing-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2rem 4rem; align-items: end; }
.closing h2 { font-size: clamp(2.4rem, 6vw, 5.2rem); line-height: 1.02; letter-spacing: -.055em; }
.closing p { margin-top: 1rem; color: #d7deee; max-width: 30rem; }
.closing p a { color: #fff; font-weight: 700; text-underline-offset: .2em; }
.closing :focus-visible { outline-color: #fff; box-shadow: 0 0 0 6px var(--cyan); }
.button-on-dark { background: var(--cyan); color: var(--midnight); }
.button-on-dark:hover { background: #fff; }

.site-footer { padding-block: 2rem 2.5rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.25rem 2rem; align-items: start; }
.site-footer .brand img { width: 120px; }
.site-footer p { margin-top: .5rem; max-width: 36rem; color: var(--lead); font-size: 1rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 3rem; font-weight: 700; text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; text-underline-offset: .2em; }

@media (min-width: 47.51em) {
  .hero-mark { grid-row: 1 / span 2; }
  .hero-figure { grid-column: 2; }
}

@media (min-width: 75em) {
  .hero-grid { grid-template-columns: max-content minmax(0, 17rem) minmax(0, 1fr); column-gap: clamp(2rem, 3.5vw, 3.5rem); align-items: stretch; }
  .hero-mark { grid-column: 1; grid-row: 1; }
  .hero-figure { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; margin: 0; max-width: none; }
  .hero-figure img { flex: 1; min-height: 0; aspect-ratio: auto; object-position: 30% 50%; }
  .hero-side { grid-column: 3; grid-row: 1; padding: 0; display: flex; flex-direction: column; justify-content: space-between; }
  .hero-lede { margin: 0; }
  .hero-actions { padding-bottom: 1.6rem; }
}

@media (max-width: 62.5em) {
  .section-grid { gap: 1.1rem; }
  .route-body { grid-template-columns: minmax(0, 1fr) 12rem; }
}

@media (max-width: 47.5em) {
  .masthead { flex-wrap: wrap; gap: 0 .8rem; min-height: 4rem; }
  .masthead-campaign, .main-site { white-space: normal; }
  .brand img { width: 112px; }
  .masthead-campaign { padding-inline-start: .8rem; font-size: .85rem; }
  .main-site { font-size: .95rem; }
  .main-site .label-long { display: none; }
  .hero { padding-top: 1.75rem; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
  .hero h1 { font-size: clamp(2.3rem, 15.5vw, 5.5rem); margin-top: .7rem; }
  .hero-lede { margin-bottom: 1.2rem; }
  .routes-head, .guide-head, .contact-grid, .closing-grid, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .routes-head { gap: .6rem; margin-bottom: 1.1rem; }
  .routes-head p { justify-self: start; }
  .route summary { grid-template-columns: 2.2rem minmax(0, 1fr) 1.4rem; column-gap: .9rem; padding-block: .85rem; }
  .route-number { width: 2rem; height: 2rem; }
  .route-teaser { font-size: 1rem; }
  .route-toggle { grid-row: 1; }
  .route-body { grid-template-columns: 1fr; padding: .25rem 0 1.75rem; }
  .route-figure { max-width: 26rem; }
  .route-figure img { aspect-ratio: 4 / 3; }
  .prompt { grid-template-columns: 3rem minmax(0, 1fr); gap: 1rem; }
  .prompt-number { font-size: 2.6rem; }
  .example { grid-column: 2; }
  .hero-side { padding-top: 0; }
  .hero-figure img { aspect-ratio: 3 / 2; }
}

@media (max-width: 22.5em) {
  .masthead-campaign { display: none; }
}

@media (forced-colors: active) {
  .here, .route[open] > summary .route-number { background: Highlight; color: HighlightText; forced-color-adjust: none; }
  .marker-square, .caption::before, .prompt-number::after { background: CanvasText; }
  .button { border: 2px solid ButtonText; }
}

@media print {
  .site-header, .hero, .routes, .contact, .closing, .skip-link, .print-button, .guide-figure { display: none !important; }
  body { font-size: 11pt; }
  .section { padding: 0; }
  .section-grid { grid-template-columns: 1fr; border-top-width: 2px; }
  .guide-head { grid-template-columns: 1fr; margin-bottom: 1rem; }
  .prompt { break-inside: avoid; grid-template-columns: 3rem 1fr; }
  .example { grid-column: 2; padding-bottom: 2.5rem; }
  .example::after { content: "Your answer:"; display: block; margin-top: 1rem; font: 400 10pt var(--reading); color: var(--lead); }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}
