/* ===========================================================
   Four Pillars — deep-dive pages (Fair Notes / Fair Recording /
   Neighbor 911), homepage mission-card links. Loaded after style.css.
   =========================================================== */

.pillar-page .common-section { padding: 60px 0; }
.pillar-page p { font-size: 18px; line-height: 30px; color: #2A2A2A; margin-bottom: 16px; }

/* ---- Lead (intro) : headline + lead text + graphic ---- */
.pillar-lead { padding-top: 55px; }
.pillar-eyebrow {
  display: inline-block;
  color: #FF7033;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 14px;
  margin-bottom: 14px;
}
.pillar-title {
  font-family: var(--font-bethany-elingston, "Bethany Elingston", serif);
  color: #16365c;
  font-size: 42px;
  line-height: 1.15;
  margin: 0 0 18px;
}
.pillar-lead-text {
  font-size: 20px !important;
  font-weight: 600;
  color: #FF7033 !important;
  margin-bottom: 18px;
}
.pillar-graphic-col { text-align: center; }
.pillar-graphic { width: 100%; height: auto; max-width: 520px; border-radius: 16px; }
.pillar-graphic--logo { background: #fff; padding: 26px; border: 1px solid #eee; }
.pillar-figure { margin: 0; display: inline-block; max-width: 520px; }
.pillar-figure figcaption { margin-top: 12px; font-size: 14px; color: #666; font-style: italic; }

/* ---- Constrained, left-aligned content blocks ---- */
.pillar-block { max-width: 880px; margin: 0 auto; }
.pillar-block h3 {
  font-family: var(--font-bethany-elingston, "Bethany Elingston", serif);
  color: #16365c;
  font-size: 30px;
  margin: 0 0 22px;
}

/* alternating soft band for emphasis sections */
.pillar-why { background: #faf6f2; }

/* ---- branded check lists ---- */
.pillar-list { margin: 0; padding: 0; }
.pillar-list li {
  position: relative;
  list-style: none;
  padding: 16px 22px 16px 56px;
  margin-bottom: 14px;
  background: #fff;
  border: 1px solid #f0e6dd;
  border-radius: 12px;
  font-size: 18px;
  line-height: 28px;
  color: #2A2A2A;
}
.pillar-list li strong { color: #16365c; }
.pillar-list li::before {
  content: "\2713";
  position: absolute;
  left: 18px; top: 16px;
  width: 26px; height: 26px;
  background: #FF7033; color: #fff;
  border-radius: 50%;
  text-align: center; line-height: 26px;
  font-size: 14px; font-weight: 700;
}

/* ---- resource / ally links ---- */
.pillar-links { margin: 0; padding: 0; }
.pillar-links li {
  list-style: none;
  padding: 14px 0;
  border-bottom: 1px solid #eee;
  font-size: 17px;
  line-height: 26px;
  color: #2A2A2A;
}
.pillar-links li a { color: #FF7033; font-weight: 700; text-decoration: none; }
.pillar-links li a:hover { text-decoration: underline; }

.pillar-disclaimer { font-size: 15px; color: #777; }

/* ---- CTA ---- */
.pillar-cta { text-align: center; }
.pillar-cta h3 {
  font-family: var(--font-bethany-elingston, "Bethany Elingston", serif);
  color: #16365c;
  font-size: 32px;
  margin-bottom: 10px;
}
.pillar-cta .common-btn { margin: 8px 8px 0; }

/* ---- homepage four-pillar card "Learn more" link ---- */
.pillar-card-link {
  display: inline-block;
  margin-top: 14px;
  color: #FF7033;
  font-weight: 700;
  text-decoration: none;
}
.pillar-card-link:hover { color: #e85a18; }

/* ---- Wristband design banner (price section) ---- */
.wristband-design-banner { max-width: 1040px; margin: 0 auto 42px; text-align: center; }
.wristband-design-banner img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.14);
}
.wristband-design-caption {
  margin-top: 14px;
  font-size: 16px;
  color: #555;
  font-style: italic;
}

@media (max-width: 991px) {
  .pillar-graphic-col { margin-top: 30px; }
}
@media (max-width: 767px) {
  .pillar-page .common-section { padding: 38px 0; }
  .pillar-title { font-size: 30px; }
  .pillar-block h3 { font-size: 24px; }
  .pillar-list li { font-size: 16px; padding: 14px 16px 14px 50px; }
}

/* ---- Footer Quick Links: two ordered columns ----
   Col 1 (top→bottom): Fair Prices / Fair Notes / Fair Recording / Fast Help
   Col 2 (top→bottom): Wristband / Stories / Share Story / For Providers
   Column flow so each column reads vertically in menu order. */
.footer-links-list {
  grid-auto-flow: column;
  grid-template-rows: repeat(4, auto);
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 767px) {
  /* single column on mobile, in source order (all col-1 items, then col-2) */
  .footer-links-list {
    grid-auto-flow: row;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
}

/* ---- Sample PIGH Breakdown (bill + split tables) ---- */
.pigh-bill {
  background: #fff;
  border: 1px solid #f0e6dd;
  border-radius: 14px;
  padding: 22px 26px;
  margin: 10px 0 18px;
}
.pigh-bill h4 { color: #16365c; font-size: 18px; font-weight: 700; margin: 22px 0 10px; }
.pigh-bill h4:first-child { margin-top: 0; }
.pigh-table { width: 100%; border-collapse: collapse; }
.pigh-table th, .pigh-table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid #eee;
  font-size: 16px;
  color: #2A2A2A;
}
.pigh-table thead th {
  color: #888; font-weight: 700; text-transform: uppercase;
  font-size: 12px; letter-spacing: .5px;
}
.pigh-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pigh-table tfoot th, .pigh-table tfoot td {
  font-weight: 700; color: #16365c;
  border-top: 2px solid #16365c; border-bottom: none;
}
.pigh-split strong { color: #FF7033; font-size: 1.05em; }

/* live / running-total indicator */
.pigh-bill-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pigh-bill-head h4 { margin: 0; }
.pigh-live { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #d23b2c; }
.pigh-live-dot { width: 10px; height: 10px; border-radius: 50%; background: #d23b2c; animation: pigh-pulse 1.6s infinite; }
@keyframes pigh-pulse { 0% { box-shadow: 0 0 0 0 rgba(210,59,44,.55); } 70% { box-shadow: 0 0 0 10px rgba(210,59,44,0); } 100% { box-shadow: 0 0 0 0 rgba(210,59,44,0); } }
@media (prefers-reduced-motion: reduce) { .pigh-live-dot { animation: none; } }
.pigh-live-note { font-size: 14px; color: #666; margin: 6px 0 14px; }
.pigh-sofar { font-weight: 400; font-size: 13px; color: #888; text-transform: none; letter-spacing: 0; }

/* per-line info button + heads-up popover */
.pigh-info-cell { position: relative; text-align: right; width: 1%; white-space: nowrap; }
.pigh-info-btn { background: none; border: none; cursor: pointer; color: #FF7033; font-size: 19px; line-height: 1; padding: 4px 6px; border-radius: 50%; }
.pigh-info-btn:hover, .pigh-info-btn:focus-visible { background: #fff3ec; outline: 2px solid #FF7033; outline-offset: 1px; }
.pigh-popover { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: 232px; background: #16365c; color: #fff; border-radius: 12px; padding: 14px 16px; box-shadow: 0 12px 30px rgba(0,0,0,.25); text-align: left; }
.pigh-popover::before { content: ""; position: absolute; top: -6px; right: 16px; width: 12px; height: 12px; background: #16365c; transform: rotate(45deg); }
.pigh-pop-title { font-weight: 700; font-size: 14px; margin: 0 0 8px; color: #fff; }
.pigh-pop-list { list-style: none; margin: 0; padding: 0; }
.pigh-pop-list li { display: flex; justify-content: space-between; padding: 5px 0; font-size: 15px; border-bottom: 1px solid rgba(255,255,255,.13); }
.pigh-pop-list li:last-child { border-bottom: none; }
.pigh-pop-list strong { color: #FF8a5c; }
.pigh-pop-subhead { margin: 10px 0 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: #9fb2c9; }
.pigh-pop-sublist li { font-size: 14px; color: #dbe3ee; border-bottom-color: rgba(255,255,255,.08); }

/* Final / Negotiating status badges */
.pigh-status { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; padding: 2px 9px; border-radius: 20px; vertical-align: middle; margin-left: 6px; white-space: nowrap; }
.pigh-status--final { background: #e3f3e8; color: #1c7a3e; }
.pigh-status--negotiating { background: #fff1d9; color: #9a6a00; }
.pigh-status--final::before { content: "\2713"; margin-right: 4px; }
.pigh-status--negotiating::before { content: "\27F3"; margin-right: 4px; display: inline-block; animation: pigh-spin 2s linear infinite; }
@keyframes pigh-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pigh-status--negotiating::before { animation: none; } }

/* Summary: Patient Max Charge + Total Max Charge */
.pigh-summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 18px 0 0; }
.pigh-summary-item { background: #faf6f2; border: 1px solid #f0e6dd; border-radius: 12px; padding: 16px 18px; text-align: center; display: flex; flex-direction: column; gap: 3px; }
.pigh-summary-item--patient { background: #16365c; border-color: #16365c; }
.pigh-summary-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #888; }
.pigh-summary-item--patient .pigh-summary-label { color: #cdd8e6; }
.pigh-summary-amount { font-size: 34px; font-weight: 800; color: #16365c; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pigh-summary-item--patient .pigh-summary-amount { color: #FF8a5c; }
.pigh-summary-sub { font-size: 13px; color: #888; }
.pigh-summary-item--patient .pigh-summary-sub { color: #cdd8e6; }
@media (max-width: 767px) { .pigh-summary { grid-template-columns: 1fr; } }

/* Running deductible-met line under each item */
.pigh-dedmet { display: block; font-size: 12px; color: #888; margin-top: 3px; }

/* Export buttons (CSV + FHIR) + SMART Health Link note */
.pigh-export-wrap { margin: 18px 0 0; text-align: center; }
.pigh-export-wrap .common-btn, .pigh-export-wrap .bnr-btn { margin: 6px 6px 0; }
.pigh-export { font-size: 16px; }
.pigh-shl-note { margin: 10px 0 0; font-size: 13px; color: #777; text-align: center; }
.pigh-shl-note a { color: #FF7033; font-weight: 700; }

/* Bottom line under the summary */
.pigh-bottomline { margin: 14px 0 0; font-size: 15px; line-height: 23px; color: #555; }

/* screen-reader-only utility (also used site-wide for a11y) */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Skip-to-content link (keyboard / screen-reader users) */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000; background: #16365c; color: #fff; padding: 10px 18px; border-radius: 0 0 8px 0; font-weight: 700; text-decoration: none; }
.skip-link:focus { left: 0; }
/* Visible keyboard focus for interactive elements */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #FF7033; outline-offset: 2px; }

@media (max-width: 767px) {
  .pigh-bill { padding: 18px 16px; }
  .pigh-table th, .pigh-table td { font-size: 14px; padding: 8px 4px; }
  .pigh-popover { width: 200px; }
}

/* Footer legal / contact links */
.footer-legal-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 1.5rem;
  padding: 0;
  margin: 0 0 0.6rem;
}
.footer-legal-list li {
  position: relative;
}
.footer-legal-list li + li::before {
  content: "\00b7";
  position: absolute;
  left: -0.9rem;
  color: #cbd5e1;
  opacity: 0.9;
}
.footer-legal-list a {
  color: #ffffff;
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 0.95rem;
  font-weight: 500;
}
.footer-legal-list a:hover,
.footer-legal-list a:focus {
  color: #ff7a1a;
  opacity: 1;
  text-decoration: underline;
}

/* Footer address shown as plain text (home address — not linked to a map) */
.footer-contact-list li .footer-contact-static {
  color: #8E8E8E;
  font-size: 20px;
  line-height: 28px;
  font-weight: 300;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  cursor: default;
}
.footer-contact-list li .footer-contact-static i {
  margin-top: 6px;
  color: var(--main-color);
}

/* GTranslate: show the United States flag for English (default is the UK flag) */
.gtranslate_wrapper img[src*="/en.png"],
.gtranslate_wrapper img[src*="/en.svg"],
.gt_switcher img[src*="/en.png"],
.gt_switcher img[src*="/en.svg"] {
  content: url("https://flagcdn.com/h24/us.png") !important;
  width: 24px !important;
  height: auto !important;
}
.gtranslate_wrapper a[data-gt-lang="en"] .gflag,
.gtranslate_wrapper .gflag.flag-en,
.gt_switcher [data-gt-lang="en"] .gflag {
  background-image: url("https://flagcdn.com/h24/us.png") !important;
  background-position: center !important;
  background-size: 24px auto !important;
}
