:root {
  color-scheme: light;
  --paper: #f6f7f2;
  --surface: #ffffff;
  --surface-soft: #edf3ed;
  --graphite: #202c2a;
  --muted: #53645d;
  --green: #0b6550;
  --green-dark: #074c3b;
  --green-soft: #e5f1e9;
  --line: #d4ded5;
  --line-strong: #a3b5a9;
  --cyan: #a8e2e2;
  --danger: #a72f33;
  --warning: #805600;
  --focus: #087c91;
  --radius: 6px;
  --shadow: 0 18px 54px rgb(22 49 36 / 10%);
  --page-gutter: clamp(1rem, 4vw, 2.5rem);
  --section-space: clamp(3.5rem, 7vw, 6rem);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-synthesis: none;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
  scroll-padding-bottom: 15rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--graphite);
  font-size: 1rem;
  line-height: 1.7;
}

body > *,
main,
section,
article,
aside,
form,
nav,
.grid > * {
  min-width: 0;
}

h1,
h2,
h3,
p,
figure,
ul,
ol,
dl {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.045em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

h1 {
  font-size: clamp(2.65rem, 6vw, 5rem);
}

h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
}

h3 {
  font-size: 1.4rem;
  letter-spacing: -0.03em;
}

p,
li,
dd,
a,
address,
strong,
button,
th,
td {
  overflow-wrap: anywhere;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--green);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
  transition: color 160ms ease;
}

a:hover {
  color: var(--green-dark);
}

ul,
ol {
  padding-inline-start: 1.35rem;
}

li + li {
  margin-top: 0.5rem;
}

li::marker {
  color: var(--green);
}

address {
  font-style: normal;
}

svg,
img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  max-width: 100%;
  font: inherit;
}

button,
.button {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

::selection {
  background: var(--cyan);
  color: var(--graphite);
}

[hidden] {
  display: none !important;
}

.page-width {
  width: min(1200px, calc(100% - var(--page-gutter) * 2));
  margin-inline: auto;
}

main {
  padding-bottom: var(--section-space);
}

main > section + section {
  margin-top: var(--section-space);
}

.small,
.field-help {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.lead {
  max-width: 43rem;
  color: var(--muted);
  font-size: clamp(1.06rem, 1.7vw, 1.2rem);
  line-height: 1.7;
}

.eyebrow {
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.6;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.text-green {
  color: var(--green);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  width: fit-content;
  max-width: 100%;
  color: var(--green);
  font-weight: 650;
  line-height: 1.5;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.text-link > span[aria-hidden],
.button > span[aria-hidden] {
  flex-shrink: 0;
}

.button,
button:not(.text-button):not(.menu-toggle) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 46px;
  padding: 0.75rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--green);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.button:hover,
button:not(.text-button):not(.menu-toggle):hover {
  background: var(--green-dark);
  color: #fff;
}

.button.secondary,
button.secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--graphite);
}

.button.secondary:hover,
button.secondary:hover {
  border-color: var(--line-strong);
  background: var(--surface-soft);
  color: var(--graphite);
}

button:disabled,
button:disabled:hover,
button.secondary:disabled,
button.secondary:disabled:hover {
  border-color: var(--line);
  background: #e7ece6;
  color: #5b6860;
  box-shadow: none;
}

.button.compact {
  min-height: 44px;
  padding: 0.6rem 0.9rem;
  font-size: 0.8rem;
}

.text-button {
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--green);
  font-weight: 600;
  line-height: inherit;
  text-align: start;
  text-decoration: underline;
  text-underline-offset: 0.24em;
}

.text-button:hover {
  color: var(--green-dark);
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 1rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  background: var(--graphite);
  color: #fff;
  transform: translateY(-180%);
}

.skip-link:focus {
  color: #fff;
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

/* Header and navigation */
.site-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  min-height: 64px;
  padding: 0.6rem var(--page-gutter);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.site-header > *,
.brand > * {
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  color: var(--graphite);
  font-size: clamp(0.78rem, 2.7vw, 1rem);
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.brand svg {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  color: var(--green);
}

.desktop-nav,
.site-header .header-cta {
  display: none;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--graphite);
  font-size: 0.8rem;
}

.menu-toggle:hover {
  background: var(--surface-soft);
}

/* Password checker */
.hero {
  display: grid;
  gap: 2.5rem;
  align-items: start;
  padding-top: var(--section-space);
}

.hero > *,
.tool-heading > *,
.input-group > *,
.score-heading > * {
  min-width: 0;
}

.hero-copy {
  display: grid;
  gap: 1.5rem;
  align-content: start;
}

.hero-copy > .eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.status-dot {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.hero-notes span {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
}

.hero-notes span::before {
  content: "✓";
  color: var(--green);
  font-weight: 700;
}

.hero-copy > .text-link {
  font-size: 0.9rem;
}

.tool-shell {
  padding: clamp(0.5rem, 2vw, 1.5rem);
  border-top: 3px solid var(--green);
  background: radial-gradient(ellipse at top right, #2b5952, transparent 75%), #1c2c28;
  box-shadow: var(--shadow);
  scroll-margin-top: 1.5rem;
}

.tool-panel {
  display: grid;
  gap: 1.5rem;
  padding: clamp(1rem, 2.5vw, 1.75rem);
  background: #f9fbf7;
  color: var(--graphite);
}

.tool-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.tool-heading > div {
  display: grid;
  gap: 0.5rem;
}

.tool-heading h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  letter-spacing: -0.035em;
}

.shield-illustration {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  color: var(--green);
}

.password-control,
.form-field {
  display: grid;
  gap: 0.5rem;
}

label {
  font-size: 0.9rem;
  font-weight: 650;
}

input:not([type="checkbox"]),
select,
textarea {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--graphite);
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input:not([type="checkbox"]):hover,
select:hover,
textarea:hover {
  border-color: #718e7f;
}

input::placeholder,
textarea::placeholder {
  color: #65746c;
  opacity: 1;
}

textarea {
  min-height: 10rem;
  resize: vertical;
}

.input-group {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
}

.input-group input {
  flex: 1 1 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.06em;
}

.input-group button {
  flex: 0 0 auto;
  min-width: 64px;
}

.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tool-actions .button {
  flex: 1 1 auto;
  font-size: 0.78rem;
}

.tool-actions [data-generate] {
  flex-basis: 100%;
}

.local-note {
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.6;
}

.local-note > span {
  margin-right: 0.3rem;
  color: var(--green);
}

.tool-message,
[data-contact-status] {
  color: var(--green);
  font-size: 0.88rem;
  font-weight: 550;
}

.tool-message:empty,
[data-contact-status]:empty {
  display: none;
}

.results {
  --meter-color: var(--green);
  display: grid;
  gap: 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.results[data-grade="weak"],
.results[data-grade="limited"] {
  --meter-color: var(--danger);
}

.results[data-grade="moderate"] {
  --meter-color: var(--warning);
}

.score-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.score-value {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-variant-numeric: tabular-nums;
}

.score-value output {
  font-size: 3rem;
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.06em;
}

.score-value > span {
  color: var(--muted);
  font-size: 0.85rem;
  white-space: nowrap;
}

.strength-label {
  max-width: 11rem;
  color: var(--meter-color);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: end;
}

progress {
  display: block;
  width: 100%;
  height: 8px;
  overflow: hidden;
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: #dce5dc;
  color: var(--meter-color);
  accent-color: var(--meter-color);
}

progress::-webkit-progress-bar {
  border-radius: 999px;
  background: #dce5dc;
}

progress::-webkit-progress-value {
  border-radius: 999px;
  background: var(--meter-color);
  transition: width 200ms ease;
}

progress::-moz-progress-bar {
  border-radius: 999px;
  background: var(--meter-color);
}

.analysis-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}

.analysis-facts dt {
  color: var(--muted);
  font-size: 0.78rem;
}

.analysis-facts dd {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.results h3 {
  font-size: 1rem;
  letter-spacing: -0.015em;
}

.requirements {
  display: grid;
  gap: 0.7rem;
  padding: 0;
  list-style: none;
}

.requirements li {
  display: grid;
  grid-template-columns: 1rem minmax(0, 1fr);
  gap: 0.5rem;
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
}

.requirements li[data-pass="true"] {
  color: var(--green);
}

.requirements li[data-pass="false"] {
  color: var(--danger);
}

.requirements li > span:first-child {
  font-weight: 750;
  text-align: center;
}

.result-note {
  font-size: 0.85rem;
  font-weight: 650;
}

/* Guide cards and supporting content */
.section-heading {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.section-heading > div {
  display: grid;
  gap: 0.85rem;
}

.section-heading > p {
  color: var(--muted);
  font-size: 0.9rem;
}

.guide-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  min-width: 0;
  padding: clamp(1.25rem, 2.5vw, 1.85rem);
  border: 1px solid #e2e8df;
  border-top: 3px solid var(--green);
  background: var(--surface);
  color: var(--graphite);
}

.card h2 {
  font-size: 1.75rem;
}

.card h3 {
  font-size: 1.5rem;
  line-height: 1.2;
}

.card p:not(.eyebrow),
.card li {
  color: var(--muted);
}

.card .text-link {
  margin-top: auto;
  font-size: 0.87rem;
}

.guide-grid .card {
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.guide-grid .card:hover,
.guide-grid .card:focus-within {
  border-top-color: #16836c;
  background: #f1f7f1;
  box-shadow: 0 8px 24px rgb(22 49 36 / 5%);
}

.supporting {
  display: grid;
  gap: 1.75rem;
  padding-top: var(--section-space);
  border-top: 1px solid var(--line);
}

.supporting > div {
  display: grid;
  align-content: start;
  gap: 1.35rem;
}

.supporting p:not(.eyebrow) {
  color: var(--muted);
}

/* Articles and legal pages */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: var(--section-space);
}

.article-header {
  display: grid;
  grid-column: 1 / -1;
  gap: 1.5rem;
  padding-top: var(--section-space);
}

.article-header h1 {
  max-width: 61rem;
}

.article-header .text-link {
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.prose {
  min-width: 0;
  max-width: 49rem;
}

.prose section {
  display: grid;
  gap: 1.35rem;
  scroll-margin-top: 2rem;
}

.prose section + section {
  margin-top: 3rem;
  padding-top: 0.5rem;
}

.prose h2 {
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  line-height: 1.2;
}

.prose p,
.prose li {
  color: #44554d;
}

.prose .button {
  justify-self: start;
  margin-top: 0.5rem;
}

.article-aside {
  align-self: start;
  background: var(--surface-soft);
}

.article-aside h2 {
  font-size: 1.7rem;
}

.article-aside ul,
.article-aside ol {
  font-size: 0.9rem;
}

.legal-layout {
  max-width: 960px;
}

.legal-layout .article-header {
  padding-bottom: 2.5rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--line);
}

.legal-layout .prose {
  max-width: none;
}

.table-wrapper {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overscroll-behavior-inline: contain;
}

table {
  width: 100%;
  min-width: 580px;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 0.85rem;
  line-height: 1.6;
}

caption {
  padding: 1rem;
  background: var(--green-soft);
  color: var(--graphite);
  font-weight: 650;
  text-align: start;
}

th,
td {
  padding: 1rem;
  border-bottom: 1px solid var(--line);
  text-align: start;
  vertical-align: top;
}

thead {
  background: var(--surface-soft);
}

th {
  font-weight: 650;
}

tbody tr:last-child > * {
  border-bottom: 0;
}

tbody tr:nth-child(even) {
  background: #f8faf6;
}

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 2rem;
  margin-top: 3rem;
}

.contact-grid > *,
.contact-details > * {
  min-width: 0;
}

.contact-details {
  display: grid;
  gap: 2rem;
}

form {
  display: grid;
  gap: 1.5rem;
}

label .small {
  font-weight: 400;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-weight: 400;
  line-height: 1.65;
  cursor: pointer;
}

.checkbox-label > span {
  min-width: 0;
}

input[type="checkbox"] {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin: 0.2rem 0 0;
  accent-color: var(--green);
  cursor: pointer;
}

input.is-invalid,
select.is-invalid,
textarea.is-invalid,
[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 1px var(--danger);
}

.card p.field-error,
p.field-error {
  color: var(--danger);
  font-size: 0.85rem;
  line-height: 1.5;
}

.notice {
  padding: 1.25rem;
  border-left: 3px solid var(--green);
  background: var(--green-soft);
  color: var(--graphite);
  font-size: 0.9rem;
}

.email-ready {
  display: grid;
  gap: 1rem;
}

.email-ready h3 {
  font-size: 1.2rem;
}

.email-ready .button {
  justify-self: start;
}

.contact-details address {
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-area-map-illustration {
  width: 100%;
  height: auto;
  border-radius: 3px;
}

.static-map figcaption {
  display: grid;
  gap: 0.65rem;
  font-size: 0.85rem;
}

/* Footer */
.site-footer {
  padding-block: clamp(3rem, 6vw, 4.5rem);
  border-top: 1px solid var(--line);
  background: #eaf0e9;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
}

.footer-grid > div,
.footer-grid nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  min-width: 0;
}

.footer-grid .brand {
  font-size: 1rem;
}

.footer-grid h2 {
  margin-bottom: 0.4rem;
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-grid a:not(.brand),
.footer-grid button {
  font-size: 0.85rem;
}

.footer-grid nav a {
  text-decoration: none;
}

.footer-grid nav a:hover {
  text-decoration: underline;
}

.footer-grid .small {
  max-width: 29rem;
  font-size: 0.75rem;
  line-height: 1.7;
}

/* Privacy controls and native dialogs */
.cookie-banner {
  position: fixed;
  z-index: 30;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-height: calc(100vh - 5rem);
  max-height: calc(100dvh - 5rem);
  padding: 1.15rem;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-top: 3px solid var(--green);
  background: rgb(255 255 255 / 98%);
  color: var(--graphite);
  box-shadow: 0 8px 40px rgb(23 46 34 / 18%);
}

.cookie-banner > * {
  min-width: 0;
}

.cookie-banner strong {
  font-size: 0.95rem;
}

.cookie-banner p {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
}

.cookie-actions .button {
  flex: 1 1 140px;
  font-size: 0.78rem;
}

dialog {
  width: min(560px, calc(100% - 2rem));
  max-width: calc(100% - 2rem);
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: clamp(1.2rem, 4vw, 2rem);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-top: 3px solid var(--green);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--graphite);
  box-shadow: var(--shadow);
  overscroll-behavior: contain;
}

dialog:not([open]) {
  display: none;
}

dialog::backdrop {
  background: rgb(16 35 28 / 65%);
  backdrop-filter: blur(4px);
}

.dialog-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.dialog-heading h2 {
  flex: 1 1 180px;
  font-size: 1.7rem;
}

.dialog-heading button {
  flex: 0 0 auto;
}

.preferences-dialog[open] {
  display: grid;
  gap: 1.5rem;
}

.preferences-dialog p {
  color: var(--muted);
  font-size: 0.95rem;
}

.preference-row {
  display: grid;
  gap: 0.5rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

.preference-row strong {
  font-size: 0.9rem;
}

.preference-row span {
  color: var(--muted);
  font-size: 0.85rem;
}

.mobile-navigation {
  width: min(480px, calc(100% - 2rem));
}

.mobile-navigation[open] {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.mobile-navigation nav {
  display: grid;
}

.mobile-navigation nav a {
  display: block;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
  font-weight: 550;
  text-decoration: none;
}

.mobile-navigation nav a:hover,
.mobile-navigation nav a[aria-current="page"] {
  color: var(--green-dark);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

/* Progressive layout enhancements */
@media (min-width: 480px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem 1.5rem;
  }

  .footer-grid > div {
    grid-column: 1 / -1;
  }

  .cookie-banner {
    right: 1.5rem;
    bottom: 1.5rem;
    left: 1.5rem;
    padding: 1.5rem;
  }
}

@media (min-width: 640px) {
  .guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-grid .card {
    min-height: 305px;
  }

  .hero-copy {
    max-width: 46rem;
  }

  .hero-copy h1 {
    font-size: clamp(3.5rem, 8vw, 5rem);
  }

  .tool-actions [data-generate] {
    flex-basis: auto;
  }

  .section-heading {
    margin-bottom: 2rem;
  }
}

@media (min-width: 768px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 1.5rem;
    min-height: 76px;
  }

  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.85rem;
  }

  .desktop-nav a {
    padding-block: 0.65rem;
    color: var(--muted);
    text-decoration: none;
  }

  .desktop-nav a:hover,
  .desktop-nav a[aria-current="page"] {
    color: var(--green);
    text-decoration: underline;
  }

  .site-header .header-cta {
    display: inline-flex;
    justify-self: end;
  }

  .menu-toggle {
    display: none;
  }

  .section-heading {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2.5rem;
  }

  .section-heading > p {
    max-width: 18rem;
  }

  .supporting {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
    gap: 2.5rem;
  }

  .footer-grid > div {
    grid-column: auto;
  }

  .cookie-actions {
    width: auto;
  }

  .cookie-actions .button {
    flex: 1 1 auto;
  }
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 5vw, 4rem);
    padding-bottom: 0.5rem;
  }

  .hero-copy {
    padding-top: 1.5rem;
  }

  .hero-copy h1 {
    font-size: clamp(3.3rem, 5.2vw, 4.5rem);
  }

  .tool-actions [data-generate] {
    flex-basis: 100%;
  }

  .guide-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .article-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    column-gap: 4rem;
  }

  .article-aside {
    position: sticky;
    top: 2rem;
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 2.5rem;
    margin-top: 4rem;
  }

  .contact-details {
    gap: 2.5rem;
  }

  .supporting,
  .footer-grid {
    gap: 4rem;
  }
}

@media (min-width: 1200px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }

  .desktop-nav {
    gap: 2rem;
  }

  .hero-copy h1 {
    font-size: 4.5rem;
  }

  .cookie-banner {
    flex-wrap: nowrap;
    gap: 2rem;
    max-width: 1320px;
    margin-inline: auto;
  }

  .cookie-actions {
    flex: 0 0 auto;
  }
}

@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .cookie-banner {
    bottom: max(1rem, env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (forced-colors: active) {
  .button,
  button,
  .card,
  .tool-shell,
  .notice,
  .cookie-banner {
    border: 1px solid ButtonText;
  }

  progress {
    appearance: auto;
  }

  .status-dot {
    background: CanvasText;
  }

  .text-green,
  .strength-label,
  .requirements li[data-pass] {
    color: CanvasText;
  }
}

@media print {
  @page {
    margin: 18mm;
  }

  .site-header,
  .site-footer,
  .cookie-banner,
  dialog,
  .skip-link,
  .tool-shell,
  .form-actions,
  .email-ready,
  .prose > section > .button {
    display: none !important;
  }

  html {
    scroll-padding: 0;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 10.5pt;
    line-height: 1.55;
  }

  .page-width {
    width: 100%;
    max-width: none;
  }

  main {
    padding: 0;
  }

  .hero,
  .article-layout,
  .contact-grid,
  .supporting {
    display: block;
  }

  .article-header,
  .hero {
    padding-top: 0;
  }

  .article-header {
    margin-bottom: 2rem;
  }

  h1 {
    font-size: 30pt;
  }

  h2,
  .prose h2 {
    font-size: 17pt;
  }

  h3 {
    font-size: 13pt;
  }

  h1,
  h2,
  h3 {
    break-after: avoid;
  }

  p,
  li {
    orphans: 3;
    widows: 3;
  }

  .prose {
    max-width: none;
  }

  .prose section + section {
    margin-top: 1.75rem;
  }

  .article-aside {
    position: static;
    margin-top: 2rem;
  }

  .card,
  .notice {
    break-inside: avoid;
    background: #fff;
    box-shadow: none;
  }

  .contact-details {
    margin-top: 2rem;
  }

  .table-wrapper {
    overflow: visible;
  }

  table {
    min-width: 0;
  }

  thead {
    display: table-header-group;
  }

  tr {
    break-inside: avoid;
  }

  a,
  .text-green,
  .eyebrow,
  .lead,
  .prose p,
  .prose li {
    color: #000;
  }
}