/* NOLA Inter.net — printed city directory / newspaper.
   Warm paper, ink, brick + shutter-green. Ruled lines, hard shadows,
   square corners. No webfonts: Georgia/Charter you already own. */

:root {
  --paper: #f3ecdc;
  --paper-deep: #ece2cb;
  --card: #fffdf3;
  --ink: #211c16;
  --ink-soft: #3e372f;
  --muted: #665a49;
  --rule: #d6c9ab;
  --rule-dark: #a99a7a;
  --brick: #9c2b1a;
  --brick-dark: #761e11;
  --brick-wash: #f7e8df;
  --green: #2e4a3a;
  --green-wash: #e6ebe2;
  --ochre: #9a6b1f;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  font-size: 1.075rem;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    repeating-linear-gradient(0deg, rgba(33,28,22,0.025) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(90deg, rgba(33,28,22,0.018) 0 1px, transparent 1px 7px);
  line-height: 1.62;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", Times, serif;
  line-height: 1.12;
  font-weight: 700;
  color: var(--ink);
}

a { color: var(--brick); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--brick-dark); }

::selection { background: var(--brick); color: #fff; }

a:focus-visible,
input:focus-visible + span,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

/* ---------- Column ---------- */

header.site .masthead,
main,
footer.site .foot-inner {
  max-width: 64rem;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 48rem) {
  header.site .masthead,
  main,
  footer.site .foot-inner { padding-left: 2rem; padding-right: 2rem; }
}

/* ---------- Masthead: newspaper nameplate ---------- */

header.site {
  background:
    linear-gradient(var(--ink), var(--ink)) top / 100% 6px no-repeat,
    linear-gradient(var(--ink), var(--ink)) top 9px / 100% 1.5px no-repeat;
  padding-top: 10px;
}

header.site .masthead { padding-top: 1.6rem; padding-bottom: 1.15rem; }

.mast-top {
  display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem;
  justify-content: space-between; align-items: baseline;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.55rem; margin-bottom: 1.1rem;
}
.mast-top .dot { color: var(--brick); letter-spacing: 0; }

header.site h1 {
  font-size: clamp(2.7rem, 8vw, 4.6rem);
  letter-spacing: -0.025em;
  margin: 0;
  line-height: 0.95;
}
header.site h1 span { color: var(--brick); }
h1 a.home { color: inherit; text-decoration: none; }
h1 a.home:hover { color: inherit; }
h1 a.home span { color: var(--brick); }

.mast-sub {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: baseline;
  margin-top: 0.7rem;
}
header.site .masthead p.tagline {
  margin: 0; font-size: 1.22rem; font-style: italic; color: var(--ink-soft);
  max-width: 32rem; line-height: 1.35;
}
.mast-est {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.78rem; font-weight: 600; color: var(--muted);
  border: 1.5px solid var(--ink); padding: 0.28rem 0.55rem;
  background: var(--card); box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-1.2deg); white-space: nowrap;
}

/* ---------- Sections ---------- */

section.page { padding: 2.2rem 0 1.2rem; }
section.page + section.page { border-top: 2px solid var(--ink); }

section.page h2 {
  font-size: clamp(1.75rem, 4.5vw, 2.35rem);
  letter-spacing: -0.015em;
  margin: 0 0 0.6rem;
  padding-bottom: 0.55rem;
  border-bottom: 3px double var(--ink);
}

.sec-no {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brick); display: block; margin-bottom: 0.45rem;
}

.lede { font-size: 1.18rem; line-height: 1.55; max-width: 38rem; margin: 0.4rem 0 0; }
.lede strong { background: linear-gradient(transparent 62%, #f0d9a8 62%); padding: 0 0.1em; }
.updated {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.82rem; color: var(--muted); margin: 0.7rem 0 0;
}
.updated time { font-weight: 700; color: var(--ink-soft); }
.note { color: var(--muted); max-width: 42rem; font-size: 0.98rem; }
.note a { color: var(--brick-dark); }

/* Ironwork divider — a ruled line with a diamond, like a fence rail */
.iron {
  border: 0; height: 14px; margin: 2rem 0 0;
  background:
    linear-gradient(var(--rule-dark), var(--rule-dark)) center / 100% 1px no-repeat;
  position: relative;
}
.iron::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 9px; height: 9px; background: var(--paper);
  border: 1.5px solid var(--ink); transform: translate(-50%,-50%) rotate(45deg);
}

/* ---------- Address lookup: the service desk ---------- */

.lookup {
  margin: 1.6rem 0 0;
  background: var(--card);
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 1.25rem 1.25rem 1.1rem;
}
.lookup-head {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; align-items: baseline;
  border-bottom: 1px solid var(--rule); padding-bottom: 0.7rem; margin-bottom: 0.9rem;
}
.lookup-head .step {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--ink); color: var(--paper); padding: 0.22rem 0.5rem;
}
.lookup label,
.lookup-head label {
  display: block; font-family: Georgia, serif; font-weight: 700; font-size: 1.25rem; margin: 0;
}
.lookup-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }

.lookup input[type="text"] {
  flex: 1 1 16rem; min-width: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1rem; padding: 0.85rem 0.95rem;
  border: 2px solid var(--ink); border-radius: 0;
  background: #fff; color: var(--ink);
}
.lookup input[type="text"]::placeholder { color: #8a7d68; }

.btn, .lookup button, .quote-form button {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1rem; font-weight: 800; letter-spacing: 0.01em;
  padding: 0.85rem 1.5rem;
  border: 2px solid var(--brick-dark); border-radius: 0;
  background: var(--brick); color: #fff; cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 80ms ease, box-shadow 80ms ease, background 120ms ease;
}
.lookup button:hover, .quote-form button:hover { background: var(--brick-dark); }
.lookup button:active, .quote-form button:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--ink); }
.lookup button:disabled, .quote-form button:disabled { opacity: 0.55; cursor: wait; transform: none; }
.lookup .note { font-size: 0.88rem; margin: 0.7rem 0 0; line-height: 1.5; }
.lookup .hint { color: var(--brick-dark); font-weight: 700; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; font-size: 0.9rem; }
.lookup .hint[hidden] { display: none; }

.lookup-result { margin: 1.6rem 0 0; border: 2px solid var(--ink); background: var(--card); box-shadow: 6px 6px 0 var(--green); padding: 1.1rem 1.25rem; }
.lookup-result[hidden] { display: none; }
.lookup-result h3 { margin: 0 0 0.3rem; font-size: 1.3rem; }
.lookup-error { color: var(--brick-dark); font-weight: 700; }
.lookup-empty { display: none; font-weight: 700; color: var(--brick-dark); }

/* ---------- Home / Business chooser ---------- */

.view-switcher {
  display: flex; flex-wrap: wrap; gap: 0.55rem;
  border: 0; padding: 0; margin: 2rem 0 0;
}
.view-switcher legend {
  font-family: Georgia, serif; font-weight: 700; font-size: 1.15rem;
  padding: 0; margin-bottom: 0.6rem; float: left; width: 100%;
}
.view-switcher label { flex: 1 1 7rem; max-width: 13rem; }
.view-switcher input { position: absolute; opacity: 0; pointer-events: none; }
.view-switcher span {
  display: block; text-align: center; padding: 0.75rem 0.4rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 800; font-size: 0.98rem;
  border: 2px solid var(--ink); background: var(--card); cursor: pointer;
  box-shadow: 3px 3px 0 rgba(33,28,22,0.9);
  transition: transform 80ms ease, box-shadow 80ms ease, background 120ms ease;
}
.view-switcher span:hover { background: var(--paper-deep); }
.view-switcher label:active span { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--ink); }
.view-switcher input:checked + span { background: var(--ink); color: var(--paper); }
.view-switcher input:focus-visible + span { outline: 3px solid var(--brick); outline-offset: 2px; }

.local-toggle { margin: 0.95rem 0 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; font-size: 0.95rem; }
.local-toggle label { font-weight: 700; cursor: pointer; }
.local-toggle input { width: 1.15rem; height: 1.15rem; margin-right: 0.45rem; vertical-align: -0.18rem; accent-color: var(--green); }

#provider-count {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.88rem; font-weight: 600; color: var(--muted); margin: 0.55rem 0 0;
}

body[data-view="residential"] #providers .directory li:not(.residential),
body[data-view="commercial"] #providers .directory li:not(.commercial),
body[data-local="1"] #providers .directory li:not(.local) { display: none; }

/* ---------- Provider lists: phone-book rows ---------- */

.start-here {
  border: 2px solid var(--ink); background: var(--card);
  box-shadow: 6px 6px 0 var(--brick);
  margin: 2.2rem 0 2.4rem; padding: 0 1.25rem 0.6rem;
}
.start-here-head {
  display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; align-items: baseline;
  margin: 0 -1.25rem 0.4rem; padding: 0.7rem 1.25rem;
  background: var(--ink); color: var(--paper);
}
.start-here-head h3 { color: var(--paper); font-size: 1.3rem; margin: 0; }
.start-here-head span {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; color: #e8c9a8;
}
.start-here > p { margin: 0.55rem 0 0.35rem; color: var(--ink-soft); }
.start-here .directory li:last-child { border-bottom: 0; }

#providers h3 {
  font-size: 1.45rem; margin: 2rem 0 0.3rem;
  display: flex; align-items: baseline; gap: 0.9rem;
}
#providers h3::after { content: ""; flex: 1; border-top: 1px solid var(--rule-dark); transform: translateY(-4px); }

ul.directory { list-style: none; margin: 0.4rem 0 1rem; padding: 0; }
ul.directory li { border-bottom: 1px solid var(--rule); break-inside: avoid; }

ul.directory li a {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline;
  column-gap: 0.9rem; row-gap: 0.12rem;
  padding: 0.62rem 0.35rem;
  font-family: Georgia, serif; font-weight: 700; font-size: 1.05rem;
  color: var(--ink); text-decoration: none;
  border-left: 3px solid transparent; border-right: 3px solid transparent;
}
ul.directory li a:hover { background: #fff; border-left-color: var(--brick); border-right-color: var(--brick); text-decoration: underline; text-decoration-color: var(--brick); }
ul.directory li a:visited { color: var(--ink); }

ul.directory .tech {
  margin-right: auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  white-space: nowrap; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--muted);
}
ul.directory .tech::before { content: "· "; color: var(--rule-dark); font-weight: 400; }
ul.directory .tech.long { white-space: normal; }

body[data-view="all"] li.residential:not(.commercial) a::after,
body[data-view="all"] li.commercial:not(.residential) a::after {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap;
  border: 1px solid var(--rule-dark); padding: 0.12rem 0.4rem; background: var(--paper);
}
body[data-view="all"] li.residential:not(.commercial) a::after { content: "Home only"; }
body[data-view="all"] li.commercial:not(.residential) a::after { content: "Business only"; }

@media (min-width: 44rem) {
  ul.directory#full-list { columns: 2; column-gap: 3rem; column-rule: 1px solid var(--rule); }
}

/* Locally owned — a rubber stamp, not a pill */
.local-tag {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--green); border: 1.5px solid var(--green);
  padding: 0.14rem 0.42rem 0.1rem; white-space: nowrap;
  background: var(--green-wash); transform: rotate(-1deg);
}
ul.directory li a { flex-wrap: wrap; }

/* Lookup results */
ul.results li {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.1rem 0.7rem;
  padding: 0.62rem 0.35rem;
}
ul.results li > a, ul.results li > .name {
  font-family: Georgia, serif; font-weight: 700; font-size: 1.05rem; color: var(--ink); text-decoration: none; padding: 0;
}
ul.results li > a:hover { text-decoration: underline; background: none; }
ul.results li > a::after { content: none !important; }
ul.results .tech { margin-right: 0; }
ul.results .detail {
  flex-basis: 100%; font-size: 0.9rem; color: var(--muted);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
body[data-view="residential"] .lookup-result:not(:has(li.residential)) .lookup-empty,
body[data-view="commercial"] .lookup-result:not(:has(li.commercial)) .lookup-empty,
body[data-local="1"] .lookup-result:not(:has(li.local)) .lookup-empty { display: block; }

/* Address suggestions */
.combo { position: relative; flex: 1 1 16rem; min-width: 0; display: flex; }
.combo input[type="text"] { flex: 1 1 auto; width: 100%; }
.suggestions {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 20;
  margin: 0; padding: 0; list-style: none;
  background: #fff; border: 2px solid var(--ink); border-top: 0;
  box-shadow: 5px 5px 0 rgba(33,28,22,0.85);
  max-height: 15rem; overflow-y: auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; font-size: 0.95rem;
}
.suggestions li { padding: 0.65rem 0.9rem; cursor: pointer; border-top: 1px solid var(--rule); }
.suggestions li:first-child { border-top: 0; }
.suggestions li:hover, .suggestions li[aria-selected="true"] { background: var(--ink); color: var(--paper); }

/* ---------- Footer: ink band ---------- */

footer.site {
  margin-top: 3rem; background: var(--ink); color: #d9d0bd;
  border-top: 6px solid var(--brick);
}
footer.site .foot-inner { padding-top: 1.6rem; padding-bottom: 2.6rem; }
footer.site p { max-width: 44rem; margin: 0 0 0.55rem; font-size: 0.92rem; line-height: 1.6; color: #cbc0aa; }
footer.site p:first-child { font-family: Georgia, serif; font-size: 1.05rem; color: var(--paper); }
footer.site a { color: #f0c98f; }
footer.site a:hover { color: #fff; }
.foot-rule { border: 0; border-top: 1px solid #4a4236; margin: 1.1rem 0; max-width: 44rem; }

/* ---------- Quote page ---------- */

.crumb { margin: 0 0 0.6rem; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; font-size: 0.9rem; font-weight: 700; }
.crumb a { text-decoration: none; }
.crumb a:hover { text-decoration: underline; }

#quote h3 { font-size: 1.35rem; margin: 2.1rem 0 0.5rem; display: flex; align-items: baseline; gap: 0.9rem; }
#quote h3::after { content: ""; flex: 1; border-top: 1px solid var(--rule-dark); transform: translateY(-4px); }
#quote p, #quote ol { max-width: 40rem; }
.steps { padding-left: 1.35rem; }
.steps li { margin: 0.55rem 0; padding-left: 0.25rem; }
.steps li::marker { font-family: Georgia, serif; font-weight: 700; color: var(--brick); }

.quote-form {
  max-width: 36rem; margin-top: 1rem;
  background: var(--card); border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink);
  padding: 1.3rem 1.3rem 1.1rem;
}
.quote-form .field { margin: 0 0 1.05rem; }
.quote-form label { display: block; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; font-weight: 800; font-size: 0.92rem; margin-bottom: 0.35rem; }
.quote-form .optional { font-weight: 400; color: var(--muted); }
.quote-form input[type="text"], .quote-form input[type="email"], .quote-form input[type="tel"],
.quote-form select, .quote-form textarea {
  width: 100%; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1rem; padding: 0.75rem 0.9rem;
  border: 2px solid var(--ink); border-radius: 0; background: #fff; color: var(--ink);
}
.quote-form textarea { line-height: 1.5; resize: vertical; }
.quote-form .consent label { font-weight: 400; font-size: 0.95rem; display: flex; gap: 0.6rem; align-items: flex-start; line-height: 1.5; }
.quote-form .consent input { margin-top: 0.25rem; width: 1.15rem; height: 1.15rem; accent-color: var(--brick); flex: none; }
.quote-form .note { font-size: 0.88rem; margin-top: 0.8rem; line-height: 1.55; }
.trap { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.quote-status { max-width: 36rem; padding: 1rem 1.15rem; border: 2px solid var(--ink); background: var(--card); box-shadow: 5px 5px 0 var(--green); font-weight: 700; margin-top: 1.2rem; }
.quote-status.bad { box-shadow: 5px 5px 0 var(--brick); color: var(--brick-dark); }

/* ---------- Broadband labels (FCC format — keep faithful) ---------- */

.labels { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.5rem; align-items: start; margin-top: 1.5rem; }
.broadband-label {
  font-family: Helvetica, Arial, sans-serif; font-size: 0.875rem; line-height: 1.4; color: #000;
  border: 1px solid #000; background-color: #fff; max-width: 24rem; padding: 0.5rem; margin: 0;
}
.broadband-label a, .broadband-label a:active, .broadband-label a:hover, .broadband-label a:visited { color: #007bff; }
.broadband-label p { margin: 0; }
.broadband-label h3, .broadband-label h4 { font-family: inherit; }
.broadband-label header { border-bottom: 10px solid #000; padding-bottom: 0.25rem; margin-bottom: 0.5rem; }
.broadband-label header h3 { font-weight: 700; font-size: 2rem; border-bottom: 2px solid #000; margin: 0 0 0.1rem; }
.broadband-label header .provider { font-weight: 700; font-size: 1.2rem; margin: 0 0 0.1rem; }
.broadband-label header .plan { font-size: 1rem; margin: 0 0 0.1rem; }
.broadband-label section { border-bottom: 2px solid #000; padding: 0 0 0.25rem; margin: 0 0 0.5rem; }
.broadband-label section h4 { font-weight: 700; font-size: 0.9rem; margin: 0 0 0.1rem; }
.broadband-label section h4 .value { float: right; }
.broadband-label .price-block h4 { font-size: 1rem; border-bottom: 5px solid #000; margin: 0 0 0.1rem; padding-bottom: 0.1rem; }
.broadband-label dl { margin: 0.25rem 0 0.5rem; padding: 0; }
.broadband-label dl dt { font-weight: 400; display: inline; }
.broadband-label dl dd { display: inline; margin: 0; font-weight: 700; float: right; }
.broadband-label dl div { padding-left: 1em; margin-bottom: 0.1rem; }
.broadband-label dl div::after { content: ""; display: table; clear: both; }
.broadband-label .support p { padding-left: 1em; margin-top: 0.2em; }
.broadband-label footer { border-bottom: none; margin-bottom: 0; padding-bottom: 0; font-weight: 400; }
.broadband-label footer .label-id { font-weight: 700; }

#contact ul { padding-left: 1.2rem; }

/* ---------- Small screens ---------- */

@media (max-width: 34rem) {
  header.site h1 { font-size: 2.55rem; }
  .mast-top { font-size: 0.66rem; }
  .mast-est { transform: none; }
  .lookup, .start-here, .quote-form { box-shadow: 4px 4px 0 var(--ink); }
  .start-here { box-shadow: 4px 4px 0 var(--brick); }
  .lookup-result { box-shadow: 4px 4px 0 var(--green); }
  .lookup-row { flex-direction: column; }
  .lookup-row .combo { flex: none; width: 100%; }
  .lookup input[type="text"] { flex: none; width: 100%; }
  .lookup button { width: 100%; flex: none; }
  .view-switcher label { max-width: none; }
  ul.directory li a { padding-left: 0.15rem; padding-right: 0.15rem; }
  ul.directory .tech { white-space: normal; }
  section.page { padding-top: 1.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}



