.pyeho-checker {
  --pyeho-ink: #111111;
  --pyeho-paper: #ffffff;
  --pyeho-soft: #f5f5f2;
  --pyeho-line: #d7d7d2;
  --pyeho-accent: #6d7c45;
  --pyeho-error: #8b1a1a;
  color: var(--pyeho-ink);
  font: inherit;
  left: 50%;
  max-width: none;
  position: relative;
  transform: translateX(-50%);
  width: min(920px, calc(100vw - 2rem));
}

.pyeho-checker *, .pyeho-checker *::before, .pyeho-checker *::after { box-sizing: border-box; }
.pyeho-checker > section, .pyeho-checker > div { margin-block: clamp(2rem, 5vw, 4rem); }
.pyeho-intro { max-width: 52rem; }
.pyeho-checker h2 { font-size: clamp(1.7rem, 3.3vw, 2.6rem); line-height: 1.12; }
.pyeho-checker h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
.pyeho-lead { font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.6; }
.pyeho-kicker { font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }

.pyeho-panel, .pyeho-guidance {
  background: var(--pyeho-soft);
  border: 1px solid var(--pyeho-line);
  border-radius: 1rem;
  padding: clamp(1.25rem, 4vw, 2.5rem);
}

.pyeho-guidance { background: var(--pyeho-ink); color: var(--pyeho-paper); }
.pyeho-guidance .pyeho-button { background: var(--pyeho-paper); color: var(--pyeho-ink); }
.pyeho-guidance .pyeho-button-secondary { background: transparent; color: var(--pyeho-paper); border-color: var(--pyeho-paper); }

.pyeho-field-grid, .pyeho-official-grid, .pyeho-score-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.pyeho-official-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.pyeho-score-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pyeho-checker label { display: block; font-weight: 650; }
.pyeho-checker input, .pyeho-checker select, .pyeho-checker textarea {
  width: 100%; margin-top: .45rem; padding: .8rem .9rem; color: var(--pyeho-ink);
  background: var(--pyeho-paper); border: 1px solid #767676; border-radius: .35rem;
  font: inherit;
}
.pyeho-checker input:focus-visible, .pyeho-checker select:focus-visible, .pyeho-checker textarea:focus-visible,
.pyeho-checker button:focus-visible, .pyeho-checker a:focus-visible, .pyeho-checker summary:focus-visible {
  outline: 3px solid #2f6fcc; outline-offset: 3px;
}
.pyeho-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.2rem; }
.pyeho-button {
  appearance: none; border: 2px solid var(--pyeho-ink); border-radius: .35rem; cursor: pointer;
  background: var(--pyeho-ink); color: var(--pyeho-paper); font: inherit; font-weight: 700;
  padding: .78rem 1.15rem; text-align: center;
}
.pyeho-button-secondary { background: var(--pyeho-paper); color: var(--pyeho-ink); }
.pyeho-button:hover { opacity: .85; }
.pyeho-button:disabled { cursor: wait; opacity: .55; }
.pyeho-help, .pyeho-small { display: block; font-size: .9rem; line-height: 1.5; color: #4c4c4c; }

.pyeho-status { min-height: 1.5rem; margin-top: 1rem; }
.pyeho-status.is-error, .pyeho-status.is-notice, .pyeho-status.is-success, .pyeho-status.is-result {
  border-left: 4px solid var(--pyeho-ink); background: var(--pyeho-paper); padding: .8rem 1rem;
}
.pyeho-status.is-error { border-color: var(--pyeho-error); }
.pyeho-status.is-success, .pyeho-status.is-result { border-color: var(--pyeho-accent); }

.pyeho-result-list { list-style: none; margin: 1rem 0 0; padding: 0; }
.pyeho-result-list li + li { margin-top: .65rem; }
.pyeho-pagination {
  align-items: center; display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between; margin-top: 1rem;
}
.pyeho-pagination span { font-size: .9rem; font-weight: 700; }
.pyeho-business-choice {
  align-items: center; background: var(--pyeho-paper); border: 1px solid var(--pyeho-line); border-radius: .55rem;
  color: inherit; cursor: pointer; display: flex; font: inherit; gap: 1rem; justify-content: space-between;
  padding: 1rem; text-align: left; width: 100%;
}
.pyeho-business-choice:hover { border-color: var(--pyeho-ink); transform: translateY(-1px); }
.pyeho-business-choice span span { display: block; font-size: .92rem; margin-top: .25rem; }
.pyeho-rating-badge, .pyeho-rating-card strong {
  align-items: center; background: var(--pyeho-ink); border-radius: 50%; color: var(--pyeho-paper);
  display: inline-flex; flex: 0 0 auto; font-size: 1.2rem; font-weight: 800; height: 2.75rem;
  justify-content: center; width: 2.75rem;
}
.pyeho-rating-badge.is-text, .pyeho-rating-card strong.is-text {
  border-radius: 999px; font-size: .85rem; height: auto; line-height: 1.2; min-height: 2.75rem;
  padding: .55rem .75rem; width: auto;
}
.pyeho-rating-card strong.is-text { display: flex; margin: 1rem auto; max-width: 15rem; min-height: 4rem; }
.pyeho-rating-card { align-self: stretch; background: var(--pyeho-paper); border-radius: .75rem; padding: 1.2rem; text-align: center; }
.pyeho-rating-card span { display: block; font-weight: 700; }
.pyeho-rating-card strong { font-size: 2.5rem; height: 6rem; margin: 1rem auto; width: 6rem; }
.pyeho-official dl div { border-top: 1px solid var(--pyeho-line); display: grid; gap: .75rem; grid-template-columns: 8rem 1fr; padding: .65rem 0; }
.pyeho-official dt { font-weight: 700; }
.pyeho-official dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.pyeho-gap, .pyeho-pending, .pyeho-opportunity, .pyeho-selected-summary {
  background: var(--pyeho-paper); border-left: 4px solid var(--pyeho-accent); margin: 1rem 0; padding: 1rem;
}
.pyeho-attribution { font-size: .9rem; }
.pyeho-score { background: var(--pyeho-paper); border-radius: .65rem; padding: 1rem; }
.pyeho-score h4 { margin-top: 0; }
.pyeho-score-number { font-weight: 700; }
.pyeho-reply { border-top: 1px solid var(--pyeho-line); margin-top: 1.5rem; padding-top: 1rem; }

.pyeho-timeline {
  --pyeho-stage: #317149;
  border-top: .55rem solid var(--pyeho-stage);
}
.pyeho-timeline.is-steady { --pyeho-stage: #8a7a20; }
.pyeho-timeline.is-prepare { --pyeho-stage: #c36a13; }
.pyeho-timeline.is-alert, .pyeho-timeline.is-urgent { --pyeho-stage: #a12b27; }
.pyeho-gauge { margin: 1.5rem 0 1rem; padding-top: 1.65rem; position: relative; }
.pyeho-gauge-segments {
  border: 1px solid #a9aaa4; border-radius: 999px; display: grid; grid-template-columns: repeat(4, 1fr);
  min-height: 3.15rem; overflow: hidden;
}
.pyeho-gauge-segments span {
  align-items: center; color: #111; display: flex; font-size: .78rem; font-weight: 750; justify-content: center;
  padding: .5rem .25rem; text-align: center;
}
.pyeho-gauge-segments span:nth-child(1) { background: #d9eadf; }
.pyeho-gauge-segments span:nth-child(2) { background: #eee9bd; }
.pyeho-gauge-segments span:nth-child(3) { background: #f6d7b5; }
.pyeho-gauge-segments span:nth-child(4) { background: #edc2c0; }
.pyeho-gauge-marker {
  background: var(--pyeho-stage); border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 2px var(--pyeho-stage);
  height: 1.15rem; position: absolute; top: 1rem; transform: translateX(-50%); width: 1.15rem;
}
.pyeho-gauge-marker::after {
  background: var(--pyeho-stage); content: ""; height: 1.25rem; left: 50%; position: absolute; top: .88rem;
  transform: translateX(-50%); width: 2px;
}
.pyeho-timeline-message { border-left: 4px solid var(--pyeho-stage); font-size: 1.05rem; font-weight: 650; padding: .7rem 1rem; }

.pyeho-readiness-summary {
  background: #fff; border: 2px solid var(--pyeho-ink); box-shadow: 0 .75rem 2rem rgba(0, 0, 0, .08);
  margin-block: clamp(2rem, 5vw, 4rem); padding: clamp(1.25rem, 4vw, 2.5rem);
}
.pyeho-readiness-summary > header {
  align-items: flex-start; border-bottom: 3px solid var(--pyeho-ink); display: flex; gap: 1rem;
  justify-content: space-between; padding-bottom: 1rem;
}
.pyeho-readiness-summary > header h2 { margin: .2rem 0 0; }
.pyeho-readiness-summary > header > strong {
  background: var(--pyeho-ink); color: #fff; font-size: .75rem; letter-spacing: .05em; padding: .5rem .65rem;
  text-align: center; text-transform: uppercase;
}
.pyeho-summary-warning { background: #f5f5f2; border-left: 4px solid var(--pyeho-ink); font-size: .9rem; padding: .75rem 1rem; }
.pyeho-summary-grid { display: grid; gap: 1px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 1.25rem 0; }
.pyeho-summary-grid > div { background: #f5f5f2; min-width: 0; padding: 1rem; }
.pyeho-summary-grid span, .pyeho-summary-grid strong { display: block; }
.pyeho-summary-grid span { color: #4c4c4c; font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.pyeho-summary-grid strong { margin-top: .25rem; overflow-wrap: anywhere; }
.pyeho-hazard { --pyeho-hazard: #48627a; border: 2px solid var(--pyeho-hazard); padding: 1rem 1.15rem; }
.pyeho-hazard.is-review { --pyeho-hazard: #b25b0b; }
.pyeho-hazard.is-higher { --pyeho-hazard: #9b2723; }
.pyeho-hazard > span { color: var(--pyeho-hazard); font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.pyeho-hazard h3 { margin: .35rem 0; }
.pyeho-hazard p { margin-bottom: 0; }
.pyeho-report-state {
  align-items: flex-start; background: #edf2e5; border-left: 4px solid var(--pyeho-accent); display: flex;
  flex-direction: column; gap: .2rem; margin-top: 1rem; padding: .9rem 1rem;
}
.pyeho-report-state span { font-size: .9rem; }
.pyeho-upload-callout {
  align-items: center; background: #edf2e5; border: 1px solid #bec8a9; border-radius: 1rem; display: grid;
  gap: 1.5rem; grid-template-columns: minmax(0, 1fr) auto; padding: clamp(1.25rem, 4vw, 2.25rem);
}
.pyeho-upload-callout h2 { margin: .25rem 0 .5rem; }
.pyeho-upload-callout p:last-child { margin-bottom: 0; }

.pyeho-readiness fieldset { border: 0; border-top: 1px solid var(--pyeho-line); margin: 0; padding: 1rem 0; }
.pyeho-readiness legend { font-weight: 700; padding: 0 0 .65rem; }
.pyeho-readiness fieldset label { display: inline-flex; gap: .35rem; margin: 0 1rem .4rem 0; }
.pyeho-readiness fieldset input, .pyeho-consent input { margin: .18rem 0 0; width: auto; }
.pyeho-enquiry label { margin-bottom: 1rem; }
.pyeho-consent { display: flex !important; gap: .6rem; font-weight: 400 !important; }
.pyeho-honeypot { left: -9999px; position: absolute; }
.pyeho-faq details { border-top: 1px solid var(--pyeho-line); padding: 1rem 0; }
.pyeho-faq details:last-child { border-bottom: 1px solid var(--pyeho-line); }
.pyeho-faq summary { cursor: pointer; font-weight: 700; }
.pyeho-disclaimer { border-top: 1px solid var(--pyeho-line); font-size: .85rem; line-height: 1.55; padding-top: 1.25rem; }

@media (max-width: 760px) {
  .pyeho-field-grid, .pyeho-official-grid, .pyeho-score-grid { grid-template-columns: 1fr; }
  .pyeho-actions, .pyeho-actions .pyeho-button { width: 100%; }
  .pyeho-official dl div { grid-template-columns: 1fr; gap: .15rem; }
  .pyeho-business-choice { align-items: flex-start; }
  .pyeho-pagination, .pyeho-pagination .pyeho-button { width: 100%; }
  .pyeho-pagination span { order: -1; text-align: center; }
  .pyeho-readiness-summary > header, .pyeho-upload-callout { align-items: stretch; grid-template-columns: 1fr; }
  .pyeho-readiness-summary > header { flex-direction: column; }
  .pyeho-readiness-summary > header > strong { align-self: flex-start; }
  .pyeho-summary-grid { grid-template-columns: 1fr; }
  .pyeho-upload-callout .pyeho-button { width: 100%; }
  .pyeho-gauge-segments span { font-size: .68rem; }
}

@media (prefers-reduced-motion: reduce) {
  .pyeho-checker * { scroll-behavior: auto !important; transition: none !important; }
}

@media print {
  body * { visibility: hidden !important; }
  .pyeho-readiness-summary, .pyeho-readiness-summary * { visibility: visible !important; }
  .pyeho-readiness-summary {
    box-shadow: none; left: 0; margin: 0; max-width: none; padding: 1cm; position: absolute; top: 0; width: 100%;
  }
  .pyeho-readiness-summary .pyeho-no-print { display: none !important; }
}

/* Standalone requests share the checker styling without affecting other pages. */
.pyeho-checker .pyeho-optional { padding: 1rem; border: 1px solid #d8d8d8; border-radius: 8px; margin: 1rem 0; }
.pyeho-checker .pyeho-optional summary { cursor: pointer; font-weight: 600; }
.pyeho-checker .pyeho-optional[open] summary { margin-bottom: 1rem; }
.pyeho-checker .pyeho-manual-business[hidden] { display: none; }
.pyeho-checker #pyeho-enquiry { scroll-margin-top: 2rem; }
.pyeho-checker input, .pyeho-checker textarea, .pyeho-checker select { min-width: 0; max-width: 100%; }

/* Clear upload limits and failure alerts, scoped to the enquiry form. */
.pyeho-checker .pyeho-upload-panel { border: 2px solid #6a7065; border-radius: .65rem; padding: 1rem; margin: 1.25rem 0; }
.pyeho-checker .pyeho-upload-panel label { margin-bottom: .5rem; }
.pyeho-checker #pyeho-upload-help { margin: .5rem 0 1rem; font-size: 1rem; }
.pyeho-checker #pyeho-upload-help strong { display: block; }
.pyeho-checker #pyeho-report-file { width: 100%; font-size: .95rem; }
.pyeho-checker .pyeho-file-feedback { margin: .8rem 0; overflow-wrap: anywhere; }
.pyeho-checker .pyeho-file-feedback:empty { display: none; }
.pyeho-checker .pyeho-file-feedback.is-error,
.pyeho-checker #pyeho-enquiry-status.is-error,
.pyeho-checker #pyeho-enquiry-status.is-notice {
  border: 3px solid #a51b1b; border-left-width: 8px; border-radius: .4rem;
  background: #fff0f0; color: #8c1010; padding: 1rem; font-weight: 700;
  line-height: 1.5; overflow-wrap: anywhere;
}
.pyeho-checker #pyeho-enquiry-status { scroll-margin: 5rem; }
.pyeho-checker #pyeho-enquiry-status:focus { outline: 3px solid #1e1e1e; outline-offset: 3px; }
.pyeho-checker #pyeho-report-file[aria-invalid="true"] { border: 2px solid #a51b1b; }
.pyeho-checker #pyeho-remove-file[hidden] { display: none; }
