/* SubmitYourArticles.com: one small stylesheet, no frameworks. */
:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1f2933;
  --muted: #52606d;
  --line: #e4e0d8;
  --brand: #1d4e89;
  --brand-ink: #ffffff;
  --accent: #c2410c;
  --placeholder-bg: #fff3c4;
  --placeholder-text: #7a4b00;
  --radius: 10px;
  --wrap: 1080px;
  --narrow: 720px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14181d;
    --surface: #1c2229;
    --text: #e8ecef;
    --muted: #a9b4be;
    --line: #2e3740;
    --brand: #7fb2f0;
    --brand-ink: #0d1b2a;
    --accent: #f59e6b;
    --placeholder-bg: #4a3b10;
    --placeholder-text: #ffe39a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --bg: #14181d;
    --surface: #1c2229;
    --text: #e8ecef;
    --muted: #a9b4be;
    --line: #2e3740;
    --brand: #7fb2f0;
    --brand-ink: #0d1b2a;
    --accent: #f59e6b;
    --placeholder-bg: #4a3b10;
    --placeholder-text: #ffe39a;
    color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 18px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.25; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); margin: 0 0 .5em; }
h2 { font-size: 1.35rem; margin: 1.6em 0 .4em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: var(--narrow); }
.center { text-align: center; }
.lead { font-size: 1.2rem; color: var(--muted); }
.small { font-size: .95rem; color: var(--muted); }
.eyebrow { font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); margin: 0 0 .6em; }
.eyebrow a { color: inherit; text-decoration: none; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.brand { font-weight: 800; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.brand span { color: var(--accent); }
.site-header nav { flex: 1 1 auto; }
.site-header ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-header nav a { color: var(--muted); text-decoration: none; font-size: .98rem; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--text); text-decoration: underline; }

/* Buttons */
.button {
  display: inline-block;
  background: var(--brand);
  color: var(--brand-ink);
  border: 0;
  border-radius: var(--radius);
  padding: 14px 22px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { filter: brightness(1.08); }
.button-small { padding: 8px 14px; font-size: .95rem; }

/* Sections */
main section, main article.post { padding-top: 40px; padding-bottom: 40px; }
.hero { background: var(--surface); border-bottom: 1px solid var(--line); padding: 56px 0; }
.hero h1 { max-width: 820px; }
.hero .lead { max-width: 680px; }
.three-up { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.three-up article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.three-up h2 { margin-top: 0; }
.local { padding-top: 0 !important; color: var(--muted); }
.cta { text-align: center; background: var(--surface); border-top: 1px solid var(--line); padding: 48px max(16px, env(safe-area-inset-right, 0px)) !important; }
.cta h2 { margin-top: 0; font-size: 1.6rem; }

.checks { padding-left: 1.2em; }
.checks li { margin: .35em 0; }

.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 56px; margin-bottom: 18px; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 2px;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--brand); color: var(--brand-ink);
  display: grid; place-items: center; font-weight: 800;
}
.steps h2 { margin: 0 0 .2em; font-size: 1.2rem; }
.steps p { margin: 0; }
.note { background: var(--surface); border-left: 4px solid var(--accent); padding: 12px 20px; border-radius: 0 var(--radius) var(--radius) 0; margin-top: 28px; }
.note h2 { margin-top: .4em; font-size: 1.1rem; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin: 28px 0; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; }
.plan h2 { margin-top: 0; }
.plan ul { padding-left: 1.2em; flex: 1; }
.price { font-size: 2rem; font-weight: 800; margin: 0; }
.price span { font-size: 1rem; font-weight: 400; color: var(--muted); }

.form { display: grid; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .98rem; }
.form input, .form textarea, .form select, .trade-picker select {
  font: inherit; font-weight: 400; padding: 10px 12px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--bg); color: var(--text); width: 100%;
}
.botcheck { display: none !important; }
.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: -6px 0 0; }
.tag-list:empty { display: none; }
.tag-list li { display: inline-flex; align-items: center; gap: 2px; padding: 4px 4px 4px 12px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); font-size: .95rem; }
.tag-list button { font: inherit; line-height: 1; border: 0; background: transparent; color: inherit; cursor: pointer; padding: 4px 8px; border-radius: 999px; }
.tag-list button:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.tag-help { margin: -8px 0 0; }
.form input:focus, .form textarea:focus, .form select:focus, .trade-picker select:focus, .button:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.about .photo { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 40px 16px; text-align: center; margin: 16px 0 24px; }

.post .byline { color: var(--muted); margin-top: -.3em; }
.article-list { list-style: none; padding: 0; display: grid; gap: 16px; }
.article-list a { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; text-decoration: none; color: var(--text); }
.article-list a:hover { border-color: var(--brand); }
.article-list h2 { margin: 0 0 .3em; color: var(--brand); font-size: 1.2rem; }
.article-list p { margin: 0; color: var(--muted); }

.areas { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 24px; }
.areas h3 { margin: .8em 0 .2em; font-size: 1.05rem; }
.town-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.town-list a { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); text-decoration: none; }
.town-list a:hover { border-color: var(--brand); }

.ohio-map { display: block; width: 100%; max-width: 560px; height: auto; margin: 16px auto; }
.ohio-map-small { max-width: 320px; float: right; margin: 0 0 12px 20px; }
.ohio-map path { fill: var(--surface); stroke: var(--muted); stroke-width: .7; stroke-linejoin: round; }
.ohio-map .start path { fill: var(--brand); fill-opacity: .45; }
.ohio-map .serve path { fill: var(--brand); fill-opacity: .18; }
.ohio-map .current path { fill: var(--accent); fill-opacity: .85; }
.ohio-map a:hover path, .ohio-map a:focus path { fill: var(--brand); fill-opacity: .65; }
.ohio-map a:focus { outline: none; }
.ohio-map text { fill: var(--text); font-size: 11px; font-weight: 600; pointer-events: none; }
@media (max-width: 640px) { .ohio-map-small { float: none; margin: 16px auto; max-width: 100%; } }
.trade-list { list-style: none; padding: 0; columns: 3 180px; column-gap: 24px; }
.trade-list li { margin: 2px 0; break-inside: avoid; }
.trade-picker { display: block; font-weight: 600; margin: 4px 0 18px; }
.trade-picker select { display: block; margin-top: 6px; }
.county-list { list-style: none; padding: 0; columns: 4 140px; column-gap: 24px; }
.county-list li { margin: 2px 0; }
.place-search label, .zip-filter { display: block; font-weight: 600; margin: 12px 0 6px; }
.place-search input, .zip-filter input { display: block; width: 100%; max-width: 360px; margin-top: 6px; font: inherit; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); }
.search-results { list-style: none; padding: 0; margin: 8px 0 0; }
.search-results li { padding: 4px 0; }
table.zips { width: 100%; border-collapse: collapse; margin: 8px 0 16px; clear: both; }
table.zips th, table.zips td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); font-size: .95rem; }
table.zips td:last-child { color: var(--muted); }

/* Wording Mel still needs to confirm. Remove the brackets once it's final. */
.placeholder { background: var(--placeholder-bg); color: var(--placeholder-text); border-radius: 4px; padding: 0 4px; }

.site-footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: .95rem; }
.site-footer p { margin: .3em 0; }

@media (max-width: 640px) {
  body { font-size: 17px; }
  .site-header .button-small { width: 100%; text-align: center; }
  .hero { padding: 36px 0; }
}
