/* Ontario Scrap Metal Prices — rust orange on steel grey, Overpass. */
:root {
  --sign: #b4451c;
  --sign-deep: #8f3412;
  --on-sign: #ffffff;
  --ink: #1c1f22;
  --muted: #5b6168;
  --paper: #f4f3f0;
  --card: #ffffff;
  --line: #d6d3cc;
  --link: #9a3a15;
  --open: #137a3e;
  --closed: #a3291f;
  --caution: #f2b705;
  --caution-bg: #fff7dc;
  --radius: 10px;
  --wrap: 1080px;
  --text: 46rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Overpass", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  font-variant-numeric: tabular-nums;
}
a { color: var(--link); text-underline-offset: 2px; }
a:hover { color: var(--sign-deep); }
:focus-visible { outline: 3px solid var(--caution); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: 1.5rem; font-weight: 800; margin-top: 2.25rem; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; max-width: var(--text); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: #fff; padding: 8px 12px; z-index: 10; }

/* Header */
.site-head { background: var(--card); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.15rem; }
.brand-mark {
  display: inline-grid; place-items: center; width: 34px; height: 26px; border-radius: 5px;
  background: var(--sign); box-shadow: inset 0 0 0 2px var(--sign), inset 0 0 0 3.5px #fff;
}
.brand-mark svg { width: 16px; height: 16px; }
.site-nav { display: flex; gap: 18px; font-size: .95rem; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.site-nav a:hover { text-decoration: underline; }

/* The guide sign */
.sign {
  background: var(--sign);
  color: var(--on-sign);
  border-radius: 16px;
  box-shadow: inset 0 0 0 6px var(--sign), inset 0 0 0 9px #fff;
  padding: 34px 30px 30px;
}
.sign a { color: #fff; }
.sign h1 { font-weight: 800; font-size: clamp(2.3rem, 7vw, 4.4rem); letter-spacing: -.02em; margin-bottom: .25em; }
.sign .lede { font-size: 1.15rem; max-width: 36rem; opacity: .95; }
.sign-small h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); }
.sign-small { padding: 26px 26px 22px; }
.sign-small .lede { font-size: 1.05rem; margin-bottom: 0; }

.home-hero { padding: 28px 0 8px; }
.finder { margin-top: 22px; max-width: 40rem; position: relative; }
.finder form { display: flex; gap: 8px; }
.finder input {
  flex: 1; min-width: 0; font: inherit; font-size: 1.15rem; padding: 14px 16px;
  border-radius: 8px; border: 2px solid #fff; background: #fff; color: var(--ink);
}
.finder button, .btn {
  font: inherit; font-weight: 700; cursor: pointer; border-radius: 8px; padding: 12px 18px;
  border: 2px solid #fff; background: transparent; color: #fff;
}
.finder button[type=submit] { background: #fff; color: var(--sign-deep); }
.finder .locate { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; background: none; border: 2px solid rgba(255,255,255,.75); color: #fff; font: inherit; font-weight: 700; cursor: pointer; padding: 9px 16px; border-radius: 8px; }
.locate svg { width: 18px; height: 18px; }
.results {
  list-style: none; margin: 8px 0 0; padding: 6px; background: #fff; color: var(--ink);
  border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.18); position: absolute; left: 0; right: 0; z-index: 5;
}
.results:empty { display: none; }
.results li a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 6px; color: var(--ink); text-decoration: none; }
.results li a:hover, .results li a[aria-selected=true] { background: var(--paper); }
.results small { color: var(--muted); }
.results .note { padding: 10px 12px; color: var(--muted); }

/* Generic sections */
main { padding-bottom: 48px; }
.crumbs { font-size: .9rem; color: var(--muted); padding: 16px 0 10px; }
.crumbs a { color: var(--muted); }
.crumbs span[aria-hidden] { margin: 0 6px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* Two-column layout on wide screens */
.layout { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); margin-top: 22px; }
.layout > * { min-width: 0; }
.layout aside { order: -1; }
@media (min-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
  .layout aside { order: 0; position: sticky; top: 16px; }
}

/* The scale ticket (fact card) */
.ticket { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ticket-head { padding: 16px 18px 14px; border-bottom: 2px dashed var(--line); }
.ticket-head .k { font-size: .85rem; color: var(--muted); margin: 0 0 2px; }
.ticket-head h2 { font-size: 1.25rem; margin: 0; }
.ticket-head h2 a { color: var(--ink); text-decoration: none; }
.ticket-head h2 a:hover { text-decoration: underline; }
.ticket dl { margin: 0; padding: 6px 18px 4px; }
.ticket dl div { display: grid; grid-template-columns: 7.2rem 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid #edf1ee; }
.ticket dl div:last-child { border-bottom: 0; }
.ticket dt { color: var(--muted); font-size: .92rem; }
.ticket dd { margin: 0; font-weight: 600; }
.ticket-foot { padding: 14px 18px 18px; display: grid; gap: 10px; }
.btn-primary { display: block; text-align: center; background: var(--sign); color: #fff; border: 0; border-radius: 8px; padding: 13px 16px; font-weight: 800; text-decoration: none; }
.btn-primary:hover { background: var(--sign-deep); color: #fff; }
.btn-line { display: block; text-align: center; border: 2px solid var(--sign); color: var(--sign-deep); border-radius: 8px; padding: 10px 16px; font-weight: 700; text-decoration: none; }
.checked { font-size: .85rem; color: var(--muted); margin: 0; }

/* Open-now badge */
.status { display: inline-flex; align-items: flex-start; gap: 7px; font-weight: 700; }
.status::before { content: ""; width: 9px; height: 9px; margin-top: .42em; border-radius: 50%; background: var(--muted); flex: none; }
.status.is-open { color: var(--open); }
.status.is-open::before { background: var(--open); }
.status.is-closed { color: var(--closed); }
.status.is-closed::before { background: var(--closed); }
.status.is-unknown { color: var(--muted); font-weight: 600; }

/* Caution note (unverified data) */
.caution { background: var(--caution-bg); border-left: 5px solid var(--caution); padding: 12px 14px; border-radius: 6px; margin: 0 0 1em; max-width: var(--text); }
.caution p { margin: 0; }

/* Site list */
.sites { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.site-row { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: grid; gap: 4px; }
.site-row h3 { margin: 0; font-size: 1.12rem; }
.site-row .meta { color: var(--muted); font-size: .93rem; }
.site-row .hours { font-size: .95rem; }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #e6efe9; color: var(--sign-deep); margin-left: 6px; vertical-align: 2px; }
.tag.unverified { background: var(--caution-bg); color: #6b5300; }

/* Tables */
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .97rem; }
th, td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid #e7ece9; }
th { font-weight: 700; background: #f7f9f8; }
tr:last-child td { border-bottom: 0; }
td.yes { color: var(--open); font-weight: 700; }
td.no { color: var(--closed); font-weight: 700; }

/* Checklist */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; max-width: var(--text); }
.checklist li { padding-left: 30px; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; border: 2px solid var(--sign); border-radius: 4px; }

/* FAQ */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 18px; margin-bottom: 10px; max-width: var(--text); }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style-position: outside; }
.faq details[open] summary { border-bottom: 1px solid #e7ece9; margin-bottom: 12px; }
.faq details p { margin-bottom: 14px; }

/* Map */
.map { width: 100%; aspect-ratio: 16 / 10; border: 1px solid var(--line); border-radius: var(--radius); background: #e7ece9; display: block; }

/* Link lists */
.link-cols { columns: 2 12rem; column-gap: 24px; padding: 0; margin: 0; list-style: none; }
.link-cols li { break-inside: avoid; padding: 4px 0; }
.link-cols small { color: var(--muted); }
.region { margin-top: 28px; }
.region h2 { font-size: 1.25rem; margin-top: 0; }

/* Featured company slot */
.featured { border: 2px dashed var(--line); border-radius: var(--radius); padding: 18px; background: var(--card); }
.featured h3 { margin-bottom: 4px; }
.featured p { margin: 0; }

/* Ad slots stay empty until an ad network is approved */
.ad-slot:empty { display: none; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); background: var(--card); padding: 28px 0 40px; font-size: .92rem; color: var(--muted); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 10px; }
.site-foot a { color: var(--ink); }

/* Prose pages */
.prose { max-width: var(--text); }
.prose h2 { font-size: 1.3rem; }
.prose ul { padding-left: 1.2em; }

@media (max-width: 560px) {
  .sign { padding: 26px 20px 22px; border-radius: 14px; }
  .finder form { flex-direction: column; }
  .site-nav { gap: 14px; font-size: .9rem; }
  .ticket dl div { grid-template-columns: 6.2rem 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* price ticker and tables */
.ticker { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:10px; margin:18px 0 6px; }
.ticker a { display:block; background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:10px 12px; text-decoration:none; color:var(--ink); }
.ticker a:hover { border-color:var(--sign); }
.ticker .tk-name { display:block; font-size:.85rem; color:var(--muted); line-height:1.2; }
.ticker .tk-price { display:block; font-size:1.35rem; font-weight:800; margin-top:4px; }
.ticker .tk-unit, .unit { font-size:.8rem; font-weight:400; color:var(--muted); }
.up { color:#137a3e; } .down { color:#a3291f; } .flat { color:var(--muted); }
.price-table td:nth-child(2), .price-table td:nth-child(3) { white-space:nowrap; }
.price-table .grp td { background:var(--paper); font-weight:700; }
.price-hero { background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:18px 20px; margin:16px 0; }
.price-hero .big { font-size:2.4rem; font-weight:800; line-height:1; }
.stamp { display:inline-block; font-size:.8rem; background:var(--caution-bg); border:1px solid var(--caution); border-radius:6px; padding:2px 8px; margin-left:8px; vertical-align:middle; }
