/* Council services: Kettlebridge Borough Council, an invented local authority. White, civic navy and a clear green action colour with Arial throughout, in the plain style of public service sites. Tasks first: search, bins, reporting. */

.cc-page {
  --cc-canvas: #ffffff;
  --cc-surface: #ffffff;
  --cc-band: #f3f2f1;
  --cc-ink: #0b0c0c;
  --cc-muted: #505a5f;
  --cc-line: #d8dcdf;
  --cc-line-strong: #6f777b;
  --cc-accent: #00703c;
  --cc-accent-hover: #005a30;
  --cc-on-accent: #ffffff;
  --cc-tint: #e3f1e8;
  --cc-success: #00703c;
  --cc-danger: #d4351c;
  --cc-focus: #ffdd00;
  --cc-navy: #1d3557;
  --cc-on-navy: #ffffff;
  --cc-link: #1d4f91;
  --cc-general: #505a5f;
  --cc-recycle: #1d4f91;
  --cc-garden: #5a3e1b;
  --cc-food: #00703c;
  --cc-head: Arial, "Helvetica Neue", sans-serif;
  --cc-body: Arial, "Helvetica Neue", sans-serif;
  --cc-r: 0px;

  background: var(--cc-canvas);
  color: var(--cc-ink);
  font-family: var(--cc-body);
  font-size: 1.0625rem;
  line-height: 1.55;
}

/* Dark mode, the default (PRD section 13.10): civic navy with a bright green action colour. Only this template's
   tokens change. */
@media screen {
  :root[data-theme="dark"] .cc-page {
    --cc-canvas: #0d1117;
    --cc-surface: #161b22;
    --cc-band: #11161c;
    --cc-ink: #f0f3f6;
    --cc-muted: #b1bac4;
    --cc-line: #30363d;
    --cc-line-strong: #7d8590;
    --cc-accent: #4cc38a;
    --cc-accent-hover: #6fd6a3;
    --cc-on-accent: #04170d;
    --cc-tint: #16281f;
    --cc-success: #4cc38a;
    --cc-danger: #ff7b72;
    --cc-focus: #ffdd00;
    --cc-link: #79b8ff;
    --cc-general: #9aa4ad;
    --cc-recycle: #5aa2ff;
    --cc-garden: #b98a52;
    --cc-food: #4cc38a;
    color-scheme: dark;
  }
}

.cc-page [hidden] { display: none !important; }
:where(.cc-page) :is(p, h1, h2, h3, h4, ul, ol, dl, dd, fieldset, figure, blockquote) { margin: 0; }
:where(.cc-page) :is(ul, ol) { padding: 0; list-style: none; }
:where(.cc-page) fieldset { padding: 0; border: 0; min-width: 0; }
:where(.cc-page) a { color: var(--cc-accent); }
:where(.cc-page) :is(h1, h2, h3, h4) { color: inherit; }
.cc-page :focus-visible { outline: 3px solid var(--cc-focus); outline-offset: 2px; }
.cc-page :is(input[type="range"], input[type="checkbox"], input[type="radio"]) { accent-color: var(--cc-accent); }
html:has(.cc-page) { scroll-behavior: smooth; }
.cc-page section[id] { scroll-margin-top: 72px; }
.cc-wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

.cc-header { position: sticky; top: 0; z-index: 20; background: var(--cc-canvas); border-bottom: 1px solid var(--cc-line); }
.cc-header-in { display: flex; align-items: center; gap: 20px; min-height: 66px; }
.cc-logo { display: flex; align-items: center; gap: 10px; font: 700 1.2rem/1.1 var(--cc-head); color: var(--cc-ink) !important; text-decoration: none; }
.cc-logo-mark { width: 30px; height: 30px; flex: none; fill: var(--cc-tint); stroke: var(--cc-accent); stroke-width: 2; stroke-linejoin: round; }
.cc-nav { margin-left: auto; }
.cc-nav ul { display: flex; gap: 22px; }
.cc-nav a { color: var(--cc-ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.cc-nav a:hover { color: var(--cc-accent); text-decoration: underline; text-underline-offset: 4px; }
.cc-menu-btn { display: none; }
.cc-theme-btn {
  display: inline-flex; flex: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--cc-line-strong); border-radius: var(--cc-r); background: transparent; color: inherit; font-size: 1.15rem; cursor: pointer;
}
.cc-theme-btn:hover { background: var(--cc-tint); }

.cc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px;
  border: 2px solid var(--cc-accent); border-radius: var(--cc-r); font: 700 1rem/1.2 var(--cc-head); text-decoration: none; cursor: pointer; text-align: center;
}
.cc-btn--fill { background: var(--cc-accent); color: var(--cc-on-accent) !important; }
.cc-btn--fill:hover { background: var(--cc-accent-hover); border-color: var(--cc-accent-hover); }
.cc-btn--line { background: transparent; color: var(--cc-accent) !important; }
.cc-btn--line:hover { background: var(--cc-tint); }
.cc-btn--big { min-height: 54px; padding: 0 26px; font-size: 1.05rem; }
.cc-btn:disabled { background: var(--cc-band); border-color: var(--cc-line-strong); color: var(--cc-muted) !important; cursor: not-allowed; }

.cc-eyebrow { font-weight: 700; color: var(--cc-accent); font-size: .92rem; letter-spacing: .02em; }
.cc-title { font: 700 clamp(1.7rem, 3.4vw, 2.4rem)/1.15 var(--cc-head); }
.cc-sub { color: var(--cc-muted); margin-top: 8px; max-width: 64ch; }
.cc-head { margin-bottom: 26px; }
.cc-sec { padding: 72px 0; }
.cc-band { background: var(--cc-band); }
.cc-muted { color: var(--cc-muted); }
.cc-small { font-size: .9rem; color: var(--cc-muted); }

.cc-hero { padding: 64px 0 56px; }
.cc-hero-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
.cc-hero-title { font: 700 clamp(2.2rem, 5vw, 3.5rem)/1.06 var(--cc-head); margin-top: 10px; }
.cc-lede { font-size: 1.15rem; color: var(--cc-muted); margin-top: 16px; max-width: 54ch; }
.cc-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.cc-facts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; color: var(--cc-muted); font-size: .95rem; }
.cc-facts strong { color: var(--cc-ink); }
.cc-panel { padding: 24px; background: var(--cc-surface); border: 1px solid var(--cc-line); border-radius: calc(var(--cc-r) + 4px); box-shadow: 0 24px 40px -30px var(--color-shadow); }
.cc-panel-title { font: 700 1.1rem var(--cc-head); margin-bottom: 12px; }

.cc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 18px; }
.cc-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cc-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; background: var(--cc-surface); border: 1px solid var(--cc-line); border-radius: var(--cc-r); }
.cc-card h3 { font: 700 1.15rem/1.25 var(--cc-head); }
.cc-card p { color: var(--cc-muted); font-size: .96rem; }
.cc-card .cc-btn { margin-top: auto; align-self: flex-start; }
.cc-card.is-on { border: 2px solid var(--cc-accent); }
.cc-art { height: 120px; margin: -22px -22px 6px; border-radius: var(--cc-r) var(--cc-r) 0 0; background: var(--cc-tint); position: relative; overflow: hidden; }
.cc-art::after { content: ""; position: absolute; width: 90px; height: 90px; border-radius: 50%; right: 18%; top: 22%; background: var(--cc-canvas); opacity: .7; }
.cc-price { font: 700 1.5rem var(--cc-head); color: var(--cc-ink); }
.cc-badge { display: inline-block; align-self: flex-start; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--cc-line-strong); font-size: .82rem; font-weight: 600; color: var(--cc-ink); }
.cc-badge--on { background: var(--cc-tint); border-color: var(--cc-accent); }
.cc-badge--bad { border-color: var(--cc-danger); color: var(--cc-danger); }
.cc-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .9rem; color: var(--cc-muted); }

.cc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.cc-chip { min-height: 42px; padding: 0 16px; border: 1px solid var(--cc-line-strong); border-radius: 999px; background: var(--cc-surface); color: var(--cc-ink); font: 600 .95rem var(--cc-body); cursor: pointer; }
.cc-chip:hover { border-color: var(--cc-accent); }
.cc-chip[aria-pressed="true"] { background: var(--cc-accent); border-color: var(--cc-accent); color: var(--cc-on-accent); }
.cc-count { font-weight: 600; margin-bottom: 14px; }
.cc-empty { padding: 28px; text-align: center; border: 1px dashed var(--cc-line-strong); border-radius: var(--cc-r); }

.cc-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 18px; counter-reset: st; }
.cc-steps li { padding: 22px; background: var(--cc-surface); border: 1px solid var(--cc-line); border-radius: var(--cc-r); counter-increment: st; }
.cc-steps li::before { content: counter(st); display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 10px; border-radius: 50%; background: var(--cc-accent); color: var(--cc-on-accent); font-weight: 700; }
.cc-steps h3 { font: 700 1.1rem var(--cc-head); }
.cc-steps p { color: var(--cc-muted); font-size: .95rem; margin-top: 4px; }

.cc-table { width: 100%; border-collapse: collapse; background: var(--cc-surface); border: 1px solid var(--cc-line); border-radius: var(--cc-r); overflow: hidden; }
.cc-table th, .cc-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--cc-line); vertical-align: top; }
.cc-table th { font-size: .88rem; color: var(--cc-muted); background: var(--cc-band); }
.cc-table td.cc-num, .cc-table th.cc-num { text-align: right; font-variant-numeric: tabular-nums; }

.cc-meter { height: 10px; border-radius: 999px; background: var(--cc-line); overflow: hidden; }
.cc-meter span { display: block; height: 100%; background: var(--cc-accent); border-radius: inherit; }
.cc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 16px; }
.cc-stat strong { display: block; font: 700 2rem/1.1 var(--cc-head); }
.cc-stat span { color: var(--cc-muted); font-size: .92rem; }

.cc-faq-in { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 40px; align-items: start; }
.cc-qs details { border-bottom: 1px solid var(--cc-line); }
.cc-qs summary { padding: 16px 0; font-weight: 700; cursor: pointer; }
.cc-qs p { padding: 0 0 16px; color: var(--cc-muted); }

.cc-form { max-width: 760px; margin-inline: auto; padding: 32px; background: var(--cc-surface); border: 1px solid var(--cc-line); border-radius: calc(var(--cc-r) + 4px); display: flex; flex-direction: column; gap: 18px; }
.cc-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cc-field--full { grid-column: 1 / -1; }
.cc-field label, .cc-field legend { display: block; font-weight: 700; margin-bottom: 6px; }
.cc-field :is(input, select, textarea) { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--cc-line-strong); border-radius: calc(var(--cc-r) - 2px); background: var(--cc-canvas); color: var(--cc-ink); font: 1rem var(--cc-body); }
.cc-field textarea { min-height: 110px; resize: vertical; }
.cc-field :is(input, select, textarea)[aria-invalid="true"] { border: 2px solid var(--cc-danger); }
.cc-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; }
.cc-check input { width: 20px; min-height: 20px; height: 20px; margin-top: 3px; accent-color: var(--cc-accent); }
.cc-hint { font-size: .88rem; color: var(--cc-muted); margin-top: 6px; }
.cc-error { color: var(--cc-danger); font-weight: 600; font-size: .92rem; margin-top: 6px; }
.cc-error::before { content: "! "; }
.cc-status { font-weight: 600; }
.cc-status.is-ok { padding: 14px 16px; border-radius: calc(var(--cc-r) - 2px); background: var(--cc-tint); border-left: 4px solid var(--cc-success); }

.cc-footer { padding: 28px 0; border-top: 1px solid var(--cc-line); color: var(--cc-muted); font-size: .92rem; }
.cc-footer-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .cc-header-in { flex-wrap: wrap; gap: 10px; }
  .cc-theme-btn { margin-left: auto; }
  .cc-menu-btn {
    display: inline-flex; align-items: center; order: 3; min-height: 44px; padding: 0 16px;
    border: 1px solid var(--cc-line-strong); border-radius: var(--cc-r); background: transparent; color: var(--cc-ink); font: 600 .95rem var(--cc-body); cursor: pointer;
  }
  .cc-nav { display: none; order: 5; width: 100%; margin: 0; }
  .cc-nav.is-open { display: block; padding-bottom: 12px; }
  .cc-nav ul { flex-direction: column; gap: 0; }
  .cc-nav a { display: block; padding: 12px 0; border-top: 1px solid var(--cc-line); }
  .cc-header-cta { display: none; }
  .cc-hero-in, .cc-faq-in, .cc-grid--2 { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

@media (max-width: 640px) {
  .cc-sec { padding: 52px 0; }
  .cc-fields { grid-template-columns: minmax(0, 1fr); }
  .cc-form { padding: 20px; }
  .cc-table thead { display: none; }
  .cc-table, .cc-table tbody, .cc-table tr, .cc-table td { display: block; width: 100%; }
  .cc-table tr { border-bottom: 1px solid var(--cc-line-strong); padding: 6px 0; }
  .cc-table td { border: 0; padding: 6px 14px; text-align: left !important; }
  .cc-table td[data-label]::before { content: attr(data-label) ": "; font-weight: 700; color: var(--cc-muted); }
}

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

@media print {
  .cc-header, .cc-theme-btn, .cc-form { display: none; }
}

/* This template's own sections */
.cc-search { padding: 24px; background: var(--cc-navy); color: var(--cc-on-navy); }
.cc-search-label { display: block; font: 700 1.3rem var(--cc-head); margin-bottom: 10px; }
.cc-search-row { display: flex; gap: 0; }
.cc-search-row input { flex: 1; min-width: 0; min-height: 48px; padding: 8px 12px; border: 2px solid var(--cc-ink); border-right: 0; background: var(--cc-surface); color: var(--cc-ink); font: inherit; font-size: 1.1rem; }
.cc-search-row .cc-btn { border-radius: 0; min-height: 48px; }
.cc-search input:focus, .cc-sec input:focus, .cc-sec select:focus { outline: 3px solid var(--cc-focus); outline-offset: 0; box-shadow: inset 0 0 0 2px var(--cc-ink); }
.cc-sr { margin-top: 10px; min-height: 1.4em; }
.cc-results li { padding: 6px 0; }
.cc-results a { color: var(--cc-on-navy); font-weight: 700; }
.cc-tasks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; margin-top: 12px; }
.cc-tasks li { padding: 14px 0; border-bottom: 1px solid var(--cc-line); }
.cc-tasks a, .cc-cols a { color: var(--cc-link); font-weight: 700; font-size: 1.1rem; text-decoration: underline; text-underline-offset: 3px; }
.cc-tasks p { color: var(--cc-muted); margin-top: 4px; }
.cc-mt { margin-top: 40px; }
.cc-mt-s { margin-top: 20px; }
.cc-cols { columns: 3 220px; column-gap: 32px; margin-top: 12px; }
.cc-cols li { padding: 8px 0; break-inside: avoid; }
.cc-two { display: grid; gap: 40px; align-items: start; }
.cc-lab { display: block; font-weight: 700; font-size: 1.1rem; margin: 18px 0 6px; }
.cc-hint { color: var(--cc-muted); margin-bottom: 6px; }
.cc-pc { text-transform: uppercase; max-width: 200px; }
.cc-error { color: var(--cc-danger); font-weight: 700; margin-top: 6px; border-left: 4px solid var(--cc-danger); padding-left: 10px; }
[aria-invalid="true"] { border-color: var(--cc-danger) !important; }
.cc-bins li { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--cc-line); }
.cc-bin { flex: none; width: 30px; height: 38px; border-radius: 3px 3px 6px 6px; }
.cc-bin--general { background: var(--cc-general); } .cc-bin--recycle { background: var(--cc-recycle); } .cc-bin--garden { background: var(--cc-garden); } .cc-bin--food { background: var(--cc-food); height: 26px; }
.cc-bins b { display: block; }
.cc-bins span { color: var(--cc-muted); }
.cc-narrow { max-width: 720px; }
#cc-where { width: 100%; min-height: 44px; padding: 8px 12px; border: 2px solid var(--cc-ink); background: var(--cc-surface); color: var(--cc-ink); font: inherit; }
.cc-radios { display: grid; gap: 4px; }
.cc-radios label { display: flex; gap: 12px; align-items: center; min-height: 44px; font-size: 1.05rem; }
.cc-radios input { width: 28px; height: 28px; flex: none; }
.cc-panel-ok { margin-top: 24px; padding: 24px; background: var(--cc-success); color: var(--cc-on-accent); }
.cc-panel-ok h3 { font: 700 1.5rem var(--cc-head); }
.cc-panel-ok b { display: block; font-size: 1.6rem; margin: 6px 0; }
@media (max-width: 860px) { .cc-tasks { grid-template-columns: minmax(0, 1fr); } }
