/* ============================================
   HEALTH TOOLS: county lookup
   "Find Health Insurance Companies in Your County" on /health-insurance-oregon.
   Component styles only (site-wide styles stay in style.css). Mobile-first.
   Markup: [data-county-lookup] in the page; behavior: js/county-lookup.js.
   ============================================ */

.county-lookup {
  --cl-navy: var(--navy, #00213a);
  --cl-navy-2: var(--navy-light, #0a3558);
  --cl-gold: var(--gold, #c1993c);
  --cl-gold-light: var(--gold-light, #d4af5e);
  --cl-gold-text: #8a6a14;            /* gold that is dark enough for text on white */
  --cl-text: var(--text, #1a1a1a);
  --cl-text-2: var(--text-light, #555555);
  --cl-border: var(--border, #e0ddd8);
  --cl-green: var(--green, #1a6e42);
  --cl-cream: #fff8eb;
  --cl-soft: #f4f7fa;                 /* very light navy tint */
  --cl-radius: 12px;
  --cl-radius-lg: var(--radius-lg, 16px);
  font-family: 'Lato', sans-serif;
  color: var(--cl-text);
  scroll-margin-top: 90px;
  min-width: 0;
}
.county-lookup [hidden] { display: none !important; }
.county-lookup *, .county-lookup *::before, .county-lookup *::after { box-sizing: border-box; }

/* Screen-reader-only text */
.county-lookup .cl-vh {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Language button: one pill that names the other language ("Ver en español" / "View in English") ---------- */
.county-lookup .cl-lang {
  display: flex; justify-content: flex-end; margin: 0 0 12px;
}
.county-lookup .cl-lang-btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 18px 8px 14px;
  font: 700 .95rem/1.2 'Lato', sans-serif; color: var(--cl-navy);
  background: #fff; border: 2px solid var(--cl-navy); border-radius: 100px; cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.county-lookup .cl-lang-icon { flex: none; display: block; }
.county-lookup .cl-lang-btn:hover { background: var(--cl-navy); color: #fff; }
.county-lookup .cl-lang-btn:focus-visible { outline: 3px solid var(--cl-navy); outline-offset: 3px; }

/* ---------- Intro text ---------- */
.county-lookup .cl-sub { font-size: 1.05rem; line-height: 1.65; margin: 0 0 8px; color: var(--cl-text); }
.county-lookup .cl-scope { font-size: .97rem; line-height: 1.6; margin: 0 0 20px; color: var(--cl-text-2); }

/* ---------- Tool panel: label + dropdown + results ---------- */
.county-lookup .cl-tool {
  background: #fff; border: 1px solid var(--cl-border); border-top: 4px solid var(--cl-gold);
  border-radius: var(--cl-radius-lg); padding: 20px 14px 22px; margin: 0 0 22px;
  box-shadow: 0 4px 20px rgba(0, 33, 58, .07);
}
.county-lookup .cl-label {
  display: block; margin: 0 0 8px;
  font-size: 1.05rem; font-weight: 900; color: var(--cl-navy); line-height: 1.3;
}
.county-lookup .cl-select-wrap { position: relative; }
.county-lookup .cl-select {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  display: block; width: 100%; min-height: 56px; margin: 0;
  padding: 12px 46px 12px 14px;
  font: 700 1.05rem/1.3 'Lato', sans-serif; color: var(--cl-navy);
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 7.5l5 5 5-5' fill='none' stroke='%2300213a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 20px 20px;
  border: 2px solid #6b7a88; border-radius: var(--cl-radius);
  cursor: pointer; text-overflow: ellipsis;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.county-lookup .cl-select::-ms-expand { display: none; }
.county-lookup .cl-select:hover { border-color: var(--cl-navy); }
.county-lookup .cl-select:focus {
  border-color: var(--cl-navy);
  outline: 3px solid var(--cl-navy); outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(193, 153, 60, .28);
}
.county-lookup .cl-select option { font-weight: 400; color: var(--cl-text); }

/* Results (empty until a county is chosen) */
.county-lookup .cl-result { margin-top: 22px; }
.county-lookup .cl-result-h {
  font-size: clamp(1.15rem, 3.2vw, 1.35rem); font-weight: 900; color: var(--cl-navy);
  line-height: 1.3; margin: 0 0 6px; padding: 0; border: 0;
}
.county-lookup .cl-count { font-size: 1rem; line-height: 1.55; color: var(--cl-text-2); margin: 0 0 16px; }
.county-lookup .cl-avail {
  font-size: .78rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase;
  color: var(--cl-gold-text); margin: 0 0 10px; line-height: 1.4;
}
.county-lookup .cl-cards {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px;
}
.county-lookup .cl-card {
  display: flex; align-items: flex-start; gap: 12px; margin: 0;
  background: #fff; border: 1.5px solid var(--cl-border); border-left: 5px solid var(--cl-gold);
  border-radius: var(--cl-radius); padding: 16px 16px 16px 14px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .05);
  min-width: 0;
}
.county-lookup .cl-card-icon {
  flex: none; display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; margin-top: 1px; border-radius: 50%;
  background: var(--cl-navy); color: var(--cl-gold-light);
}
.county-lookup .cl-card-icon svg { display: block; }
.county-lookup .cl-card-body { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.county-lookup .cl-card-name {
  font-size: 1.15rem; font-weight: 900; color: var(--cl-navy); line-height: 1.3;
  overflow-wrap: anywhere;
}
.county-lookup .cl-tag {
  display: inline-block; margin-top: 6px; padding: 3px 10px;
  font-size: .82rem; font-weight: 700; line-height: 1.4;
  color: var(--cl-gold-text); background: var(--cl-cream); border: 1px solid #ead7a6; border-radius: 100px;
}
.county-lookup .cl-partial-note {
  margin: 14px 0 0; padding: 12px 16px;
  font-size: .97rem; line-height: 1.6; color: var(--cl-text);
  background: var(--cl-cream); border-left: 4px solid var(--cl-gold); border-radius: 0 10px 10px 0;
}

/* ---------- Fine print, companies leaving, source ---------- */
.county-lookup .cl-fine { font-size: .95rem; line-height: 1.6; color: var(--cl-text-2); margin: 0 0 14px; }
.county-lookup .cl-exits {
  font-size: .98rem; line-height: 1.6; margin: 0 0 18px; padding: 14px 16px;
  background: #fff; border: 1px solid var(--cl-border); border-left: 4px solid var(--cl-navy); border-radius: 0 10px 10px 0;
}
.county-lookup .cl-exits a { display: inline-block; margin-top: 2px; color: #1a5276; font-weight: 700; }
.county-lookup .cl-exits a:hover { color: #1a5276; text-decoration: underline; }
.county-lookup .cl-exits a:focus-visible { outline: 3px solid var(--cl-navy); outline-offset: 2px; border-radius: 2px; }
.county-lookup .cl-source { font-size: .86rem; line-height: 1.6; color: var(--cl-text-2); margin: 14px 0 0; }

/* ---------- "See all 36 counties" table ---------- */
.county-lookup .cl-all {
  margin: 0 0 6px; background: #fff; border: 1px solid var(--cl-border); border-radius: var(--cl-radius);
}
.county-lookup .cl-all > summary {
  display: flex; align-items: center; min-height: 52px; padding: 12px 48px 12px 16px; position: relative;
  font-weight: 900; font-size: 1rem; color: var(--cl-navy); cursor: pointer; list-style: none;
  border-radius: var(--cl-radius);
}
.county-lookup .cl-all > summary::-webkit-details-marker { display: none; }
.county-lookup .cl-all > summary::after {
  content: '+' / ''; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; line-height: 1; color: var(--cl-gold-text);
}
.county-lookup .cl-all[open] > summary::after { content: '\2212' / ''; }
.county-lookup .cl-all > summary:hover { background: #f9f7f4; }
.county-lookup .cl-all > summary:focus-visible { outline: 3px solid var(--cl-navy); outline-offset: 2px; }
.county-lookup .cl-all .table-wrap { position: relative; margin: 0 10px 12px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.county-lookup .cl-table {
  width: 100%; min-width: 470px; margin: 0; border-collapse: collapse;
  font-size: .9rem; line-height: 1.35; background: #fff;
}
.county-lookup .cl-table caption {
  caption-side: top; text-align: left; padding: 4px 6px 10px;
  font-size: .9rem; font-weight: 700; color: var(--cl-text-2);
}
.county-lookup .cl-table th,
.county-lookup .cl-table td { padding: 8px 8px; border-bottom: 1px solid var(--cl-border); text-align: center; vertical-align: middle; }
/* Keeps the screen-reader-only text inside the scroll box (otherwise it widens the page on phones) */
.county-lookup .cl-table td { position: relative; }
.county-lookup .cl-table thead th {
  background: var(--cl-navy); color: #fff; font-weight: 700; font-size: .82rem; line-height: 1.25;
}
.county-lookup .cl-table th[scope="row"],
.county-lookup .cl-table thead th:first-child {
  text-align: left; position: sticky; left: 0; z-index: 1;
}
.county-lookup .cl-table th[scope="row"] { background: #fff; color: var(--cl-navy); font-weight: 900; white-space: nowrap; }
.county-lookup .cl-table tbody tr:nth-child(even) th,
.county-lookup .cl-table tbody tr:nth-child(even) td { background: #faf9f6; }
.county-lookup .cl-table tbody tr.is-selected th,
.county-lookup .cl-table tbody tr.is-selected td { background: var(--cl-cream); }
.county-lookup .cl-table tbody tr.is-selected th { box-shadow: inset 4px 0 0 var(--cl-gold); }
.county-lookup .cl-table .cl-check { color: var(--cl-green); font-weight: 900; font-size: 1.05rem; }
.county-lookup .cl-table .cl-no { color: #5f6670; }
.county-lookup .cl-table .cl-total { font-weight: 900; color: var(--cl-navy); }
.county-lookup .cl-part {
  display: inline-block; padding: 1px 7px; margin-left: 2px;
  font-size: .74rem; font-weight: 700; line-height: 1.4; white-space: nowrap;
  color: var(--cl-gold-text); background: var(--cl-cream); border: 1px solid #ead7a6; border-radius: 100px;
}
.county-lookup .cl-table-key { margin: 0 16px 14px; font-size: .88rem; line-height: 1.5; color: var(--cl-text-2); }

/* ---------- Contact block (kept apart from the company list) ---------- */
.county-lookup .cl-divider {
  position: relative; height: 1px; margin: 36px 0 32px; border: 0; background: var(--cl-border); overflow: visible;
}
.county-lookup .cl-divider::after {
  content: ''; position: absolute; left: 50%; top: -2px; width: 64px; height: 5px; margin-left: -32px;
  background: var(--cl-gold); border-radius: 3px;
}
.county-lookup .cl-cta {
  background: var(--cl-soft); border: 1px solid #dde5ed; border-radius: var(--cl-radius-lg);
  padding: 28px 18px; text-align: center;
}
.county-lookup .cl-cta-h {
  font-size: clamp(1.2rem, 3.4vw, 1.45rem); font-weight: 900; color: var(--cl-navy);
  line-height: 1.3; margin: 0 0 8px;
}
.county-lookup .cl-cta-p { font-size: 1rem; line-height: 1.6; color: var(--cl-text-2); max-width: 560px; margin: 0 auto 20px; }
.county-lookup .cl-cta-row { display: flex; flex-direction: column; gap: 10px; max-width: 340px; margin: 0 auto; }
.county-lookup a.cl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border: 2px solid transparent; border-radius: 10px;
  font: 900 1rem/1.25 'Lato', sans-serif; text-decoration: none; text-align: center;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.county-lookup a.cl-btn--gold { background: var(--cl-gold); color: var(--cl-navy); }
.county-lookup a.cl-btn--gold:hover { background: var(--cl-gold-light); color: var(--cl-navy); }
.county-lookup a.cl-btn--navy { background: var(--cl-navy); color: #fff; }
.county-lookup a.cl-btn--navy:hover { background: var(--cl-navy-2); color: #fff; }
.county-lookup a.cl-btn--outline { background: #fff; color: var(--cl-navy); border-color: var(--cl-navy); }
.county-lookup a.cl-btn--outline:hover { background: #fff; color: var(--cl-navy); border-color: var(--cl-gold); }
.county-lookup a.cl-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 33, 58, .15); }
.county-lookup a.cl-btn:focus-visible { outline: 3px solid var(--cl-navy); outline-offset: 3px; }

/* ---------- Wider screens ---------- */
@media (min-width: 400px) {
  .county-lookup .cl-select { font-size: 1.15rem; padding-left: 16px; }
  .county-lookup .cl-tool { padding: 22px 18px 24px; }
}
@media (min-width: 560px) {
  .county-lookup .cl-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .county-lookup .cl-card-name { font-size: 1.22rem; }
}
@media (min-width: 640px) {
  .county-lookup .cl-tool { padding: 26px 26px 28px; }
  .county-lookup .cl-select { max-width: 480px; }
  .county-lookup .cl-cta { padding: 34px 28px; }
  .county-lookup .cl-cta-row { flex-direction: row; flex-wrap: wrap; justify-content: center; max-width: none; }
  .county-lookup .cl-table { font-size: .95rem; }
  .county-lookup .cl-table thead th { font-size: .86rem; }
}

@media (prefers-reduced-motion: reduce) {
  .county-lookup *, .county-lookup *::before, .county-lookup *::after { transition: none !important; }
  .county-lookup a.cl-btn:hover { transform: none; }
}

@media (forced-colors: active) {
  .county-lookup .cl-select { -webkit-appearance: menulist; -moz-appearance: menulist; appearance: auto; background-image: none; padding-right: 14px; }
}

/* ============================================
   HEALTH HUB: plan basics on /health-insurance-oregon
   (What changed, What you pay, Bronze/silver/gold, Standard plans, 2027 prices, FAQ jump links).
   Literal brand colors (navy #00213a, gold #c1993c) so it never depends on style.css.
   ============================================ */
.hub-section h3[id], .faq-item[id] { scroll-margin-top: 90px; }
.hub-section h4 { font-size: 1.02rem; font-weight: 900; color: #00213a; line-height: 1.3; margin: 18px 0 8px; }

/* "Used HealthCare.gov before?": What's the same / What's new, side by side from 640px */
.hub-compare { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 0 0 6px; }
.hub-compare-col { min-width: 0; background: #fff; border: 1px solid #e0ddd8; border-top: 4px solid #c1993c; border-radius: 12px; padding: 14px 16px 2px; }
.hub-compare-col h4 { margin-top: 0; }
.hub-section .hub-compare-col ul { margin: 0 0 12px 20px; }
.hub-section .hub-switch { background: #fff8eb; border-left: 4px solid #c1993c; border-radius: 0 10px 10px 0; padding: 14px 18px; }

/* What's a deductible? (definition list) */
.hub-terms { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 0 0 16px; padding: 0; }
.hub-terms > div { min-width: 0; background: #fff; border: 1px solid #e0ddd8; border-left: 4px solid #00213a; border-radius: 0 10px 10px 0; padding: 12px 16px; }
.hub-terms dt { margin: 0 0 4px; font-size: 1.02rem; font-weight: 900; color: #00213a; line-height: 1.35; }
.hub-terms dd { margin: 0; font-size: 1rem; line-height: 1.6; color: #1a1a1a; }

/* Bronze, silver or gold: Explore Health's plan-level chart */
.hub-figure { margin: 0 0 18px; background: #fff; border: 1px solid #e0ddd8; border-radius: 12px; overflow: hidden; }
.hub-figure img { display: block; width: 100%; height: auto; }
.hub-figure figcaption { padding: 8px 14px 10px; border-top: 1px solid #e0ddd8; font-size: .85rem; line-height: 1.5; color: #555; }

/* Oregon Standard plan table (scrolls sideways inside .table-wrap on phones; first column stays put) */
.hub-table { width: 100%; min-width: 460px; margin: 0; border-collapse: collapse; background: #fff; font-size: .95rem; line-height: 1.45; }
.hub-table caption { caption-side: top; text-align: left; padding: 0 2px 10px; font-size: .92rem; font-weight: 700; line-height: 1.45; color: #555; }
.hub-table th, .hub-table td { padding: 10px 12px; border-bottom: 1px solid #e0ddd8; text-align: left; vertical-align: top; }
.hub-table thead th { background: #00213a; color: #fff; font-size: .88rem; font-weight: 700; }
.hub-table thead th:first-child { position: sticky; left: 0; z-index: 2; }
.hub-table tbody th { position: sticky; left: 0; z-index: 1; min-width: 140px; background: #faf9f6; color: #00213a; font-weight: 700; }
.hub-section ul.hub-notes { margin: 10px 0 14px 20px; }
.hub-section ul.hub-notes li { font-size: .92rem; line-height: 1.55; color: #555; margin-bottom: 6px; }
.hub-example { background: #fff; border: 1px solid #e0ddd8; border-top: 4px solid #00213a; border-radius: 12px; padding: 16px 18px 4px; }
.hub-section .hub-example ul { margin: 0 0 12px 20px; }

/* 2027 prices: source line under the state example */
.hub-section .hub-src-note { margin-top: -6px; font-size: .86rem; line-height: 1.55; color: #555; }

/* FAQ: "More" jump link under an open answer (not part of the answer text in the schema) */
.faq-item .faq-more { display: none; margin: -6px 18px 16px; padding: 0; font-size: .92rem; line-height: 1.5; }
.faq-item.open .faq-more { display: block; }
.faq-item .faq-more a { color: #1a5276; font-weight: 700; }

/* How it works: a second paragraph inside a step */
.hub-section .steps p + p { margin-top: 10px; }

/* What changed: the third box ("What stays on HealthCare.gov") spans the full width under the two columns */
.hub-compare-col--wide { grid-column: 1 / -1; }

/* Why us: the "after you sign up" card spans the full width and holds its own bullet list
   (the nested items must not pick up the card styling of .why-list li) */
.hub-section .why-list > li.why-wide { grid-column: 1 / -1; }
.hub-section .why-list li ul { list-style: disc; margin: 0 0 10px 20px; padding: 0; }
.hub-section .why-list li li { background: none; border: 0; border-radius: 0; padding: 0; margin: 0 0 6px; font-size: .98rem; line-height: 1.6; }
#after-signup { scroll-margin-top: 90px; }

@media (min-width: 640px) {
  .hub-compare { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-terms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Hero deadline line + "Who helps you" card (Oct. 27, 2026) */
.hub-hero-deadline { color: #fff; font-size: 1.02rem; margin: 14px auto 0; max-width: 560px; }
.hub-hero-deadline strong { color: var(--gold-light, #e0bd6b); }
.who-helps { display: flex; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--border, #e0ddd8); border-radius: 14px; padding: 16px 18px; margin: 18px 0 22px; }
.who-helps-photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }
.who-helps p { margin: 0 0 6px; line-height: 1.5; }
.who-helps p:last-child { margin-bottom: 0; }
@media (max-width: 420px) { .who-helps { align-items: flex-start; padding: 14px; } .who-helps-photo { width: 56px; height: 56px; } }
