/* the app's palette and type, light and dark */
@font-face { font-family: Rounded; src: url(/fonts/mplus-400.woff) format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: Rounded; src: url(/fonts/mplus-700.woff) format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: Rounded; src: url(/fonts/mplus-800.woff) format("woff"); font-weight: 800; font-display: swap; }

:root {
  color-scheme: light dark;
  --bg: #fff; --ink: #1f1a17; --soft: #6b625c; --line: #e8e4e0; --field: #f0edea; --card: #f7f5f3;
  --vest: #ff7a1a; --vest-hover: #f26a08; --tint: #ffe6d1; --on-tint: #5c2a00; --link: #a84a06;
  --sky: #e2f0fa; --ground: #cfe5d3; --rim: #fff; --warn: #b3261e;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131110; --ink: #f3eeea; --soft: #b3aaa3; --line: #2d2927; --field: #242120; --card: #1c1918;
    --vest: #ff8a33; --vest-hover: #ff9c55; --tint: #4a2a12; --on-tint: #ffd9bf; --link: #ffa866;
    --sky: #17212c; --ground: #1d2a23; --rim: #f3eeea; --warn: #f2b8b5;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: var(--bg); color: var(--ink); font: 400 17px/1.55 Rounded, system-ui, sans-serif; -webkit-text-size-adjust: 100%; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--vest); outline-offset: 2px; }
img, svg { display: block; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

h1 { font-weight: 800; font-size: clamp(32px, 5vw, 50px); line-height: 1.08; margin-bottom: 14px; }
h2 { font-weight: 800; font-size: clamp(24px, 3vw, 30px); line-height: 1.2; margin-bottom: 12px; }
h3 { font-weight: 700; font-size: 18px; line-height: 1.35; margin: 20px 0 6px; }
p { margin-bottom: 12px; }
strong { font-weight: 700; }
.lead { font-size: 19px; color: var(--soft); max-width: 34em; margin-bottom: 22px; }
.muted { color: var(--soft); font-size: 15px; }
code { background: var(--field); border-radius: 6px; padding: 0 5px; font-size: 15px; }

/* header */
.top { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 8px 20px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 21px; }
.brand img { border-radius: 9px; }
nav { display: flex; align-items: center; gap: 6px 20px; flex-wrap: wrap; margin-left: auto; }
nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; }
nav a:hover { color: var(--link); }

/* buttons, always ink on orange like the app */
.btn { display: inline-flex; align-items: center; justify-content: center; background: var(--vest); color: #1f1a17;
  font: 700 16px/1.2 Rounded, system-ui, sans-serif; text-decoration: none; padding: 14px 24px; border: 0; border-radius: 999px; cursor: pointer; }
.btn:hover { background: var(--vest-hover); color: #1f1a17; }
.btn:disabled { opacity: .6; cursor: default; }
.btn.get { padding: 9px 16px; font-size: 15px; }
.btn.plain { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.plain:hover { background: var(--field); }

/* hero card */
.hero { margin-top: 24px; padding: 44px; background: var(--sky); border-radius: 28px; }
.hero h1 { max-width: 15em; }
.hero .muted { margin: 14px 0 0; }

/* search fields */
form.search { display: flex; gap: 10px; flex-wrap: wrap; max-width: 620px; }
form.search input, form.req input { flex: 1 1 260px; min-width: 0; font: 400 17px/1.3 Rounded, system-ui, sans-serif; color: var(--ink);
  background: var(--field); border: 0; border-radius: 16px; padding: 15px 18px; }
.hero form.search input { background: var(--bg); }
form.search input:focus, form.req input:focus { outline: 2px solid var(--ink); outline-offset: 0; }
input::placeholder { color: var(--soft); opacity: 1; }

/* lookup answer */
#lookup-out, #sort-out { max-width: 720px; scroll-margin-top: 120px; }
#lookup-out:not(:empty) { padding-top: 28px; }
.where { font-size: 15px; font-weight: 700; color: var(--soft); margin: 20px 0 8px; }
ul.bins { list-style: none; display: grid; gap: 8px; }
ul.bins li, .bincard { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start;
  background: var(--card); border-radius: 20px; padding: 14px 16px; }
ul.bins svg, .bincard svg { width: 44px; height: 44px; }
ul.bins strong, .bincard strong { display: block; font-size: 17px; }
.next { font-weight: 700; }
.small { color: var(--soft); font-size: 15px; }
.bincard { color: var(--ink); text-decoration: none; margin-top: 8px; }
a.bincard:hover { background: var(--field); color: var(--ink); }
.hit h3 { margin: 18px 0 0; }
.warn { color: var(--warn); font-weight: 700; }
.appcta { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; background: var(--tint); color: var(--on-tint);
  border-radius: 20px; padding: 16px 18px; margin: 16px 0; }
.appcta p { margin: 0; flex: 1 1 240px; font-weight: 700; }
form.req { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
form.req h3 { flex-basis: 100%; margin-top: 0; }

/* sections */
main > section { padding-top: 64px; }
.head { padding-top: 36px; }
.head .lead { margin-bottom: 18px; }
.crumb { color: var(--soft); font-size: 15px; padding-top: 22px; margin: 0; }
.crumb a { color: var(--soft); }
ul.feat { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px 32px; }
ul.feat li { position: relative; padding-left: 22px; }
ul.feat li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--vest); }
ol.steps { padding-left: 24px; }
ol.steps li { margin-bottom: 6px; padding-left: 4px; }
.shots { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin-top: 28px; padding-bottom: 10px; }
.shots img { flex: none; width: 212px; height: auto; border-radius: 18px; scroll-snap-align: start; }
ul.cols { list-style: none; columns: 3 200px; column-gap: 28px; }
ul.cols li { padding: 4px 0; break-inside: avoid; }
ul.cols a, ul.cols1 a { color: var(--ink); text-decoration: none; }
ul.cols a:hover, ul.cols1 a:hover { color: var(--link); text-decoration: underline; }
ul.cols1 { list-style: none; columns: 2 300px; column-gap: 28px; }
ul.cols1 li { padding: 4px 0; break-inside: avoid; }
ul.cols + p, ul.cols1 + p { margin-top: 12px; }
.n { display: inline-block; min-width: 24px; margin-left: 6px; padding: 0 7px; border-radius: 999px; background: var(--tint); color: var(--on-tint);
  font-size: 13px; font-weight: 700; text-align: center; }
ul.src { list-style: none; display: grid; gap: 10px; }
ul.src li { background: var(--card); border-radius: 20px; padding: 14px 18px; }
.binh { display: flex; align-items: center; gap: 12px; }
.binh svg { width: 40px; height: 40px; flex: none; }
h1.binh svg { width: 60px; height: 60px; }
.binh a { color: var(--ink); text-decoration: none; }
.binh a:hover { color: var(--link); }
details { border-top: 1px solid var(--line); padding: 16px 0; max-width: 760px; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { display: flex; justify-content: space-between; gap: 16px; cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 800; color: var(--soft); }
details[open] summary::after { content: "−"; }
details p { margin: 10px 0 0; color: var(--soft); }

footer { margin-top: 80px; border-top: 1px solid var(--line); padding: 28px 0 44px; color: var(--soft); font-size: 15px; }
footer a { color: var(--soft); }

/* drawn bins, the app's BinIcon. ink outline in both themes, rim follows the page */
.bin .rim { fill: var(--rim); stroke: var(--rim); stroke-width: 3.7; stroke-linejoin: round; }
.bin .wheel { fill: #1f1a17; }
.bin .body { fill: var(--bin); }
.bin .shade { fill: var(--shade); }
.bin .hi { fill: none; stroke: #fff; stroke-opacity: .35; stroke-width: 1.3; stroke-linecap: round; }
.bin .line { fill: none; stroke: #1f1a17; stroke-width: 1.5; stroke-linejoin: round; }
.bin .lid { fill: var(--lid); stroke: #1f1a17; stroke-width: 1.5; }
.place .tile { fill: var(--place); fill-opacity: .16; }
.place .glyph { fill: none; stroke: var(--place); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 760px) {
  .hero { padding: 30px 22px; margin-top: 16px; border-radius: 24px; }
  form.search .btn { flex: 1 1 100%; }
  nav { order: 3; flex-basis: 100%; margin-left: 0; gap: 4px 18px; }
  .btn.get { margin-left: auto; }
  main > section { padding-top: 48px; }
  .shots img { width: 180px; }
  ul.cols li, ul.cols1 li { padding: 7px 0; }
}
.w-mixed { --bin: #55636A; --shade: #465157; --lid: #3d474c; }
.w-recyclable { --bin: #F5BE0B; --shade: #c99c09; --lid: #b08908; }
.w-glass { --bin: #2F9E55; --shade: #278246; --lid: #22723d; }
.w-paper { --bin: #2E7DD7; --shade: #2667b0; --lid: #215a9b; }
.w-green { --bin: #8A5A3B; --shade: #714a30; --lid: #63412a; }
.w-grass { --bin: #93B82B; --shade: #799723; --lid: #6a841f; }
.w-textiles { --bin: #D14B82; --shade: #ab3e6b; --lid: #96365e; }
.w-bulky { --bin: #8E4FC4; --shade: #7441a1; --lid: #66398d; }
.w-other { --bin: #8C8C8C; --shade: #737373; --lid: #656565; }
.p-deposit { --place: #00838F; }
.p-yard { --place: #7B1FA2; }
.p-electronics { --place: #C62828; }
.p-pharmacy { --place: #AD1457; }
@media (prefers-color-scheme: dark) {
  .p-deposit { --place: #4DD0E1; }
  .p-yard { --place: #CE93D8; }
  .p-electronics { --place: #EF9A9A; }
  .p-pharmacy { --place: #F48FB1; }
}
