/* baiamarecity.com - overrides on top of UIkit 3.21.6 (loaded from CDN before this file).
   Mobile-first: base rules target a 360px screen, wider layouts are layered on with min-width queries. */

:root { color-scheme: only light; }

:root {
  --page: #f4f4f4;
  --sheet: #ffffff;
  --ink: #1f2328;
  --ink-soft: #3b4148;
  --navy: #1a2748;
  --green: #1f5a2a;
  --green-hover: #164420;
  --green-mid: #2f8f5b;
  --muted: #5a6068;
  --line: #dde1e6;
  --tint: #f0f4f9;
  --tint-green: #eef5ef;
  --focus: #1b5fd1;
  --radius: 8px;
  --font: "Helvetica Neue", Helvetica, Arial, "Liberation Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background-color: var(--page);
  color: var(--ink);
  color-scheme: only light;
  font-family: var(--font);
  font-size: 100%;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(1.0625rem, 1.03rem + 0.12vw, 1.125rem);
  line-height: 1.6;
  overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: var(--green); transition: color .15s ease, background-color .15s ease, box-shadow .15s ease, transform .15s ease; }
a:hover { color: var(--green-hover); }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background-color: #ffffff; color: var(--navy); padding: 12px 16px; font-weight: 700;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Sheet (white editorial column on a light grey page) ---------- */

.sheet {
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
  padding: 14px 16px 44px;
  background-color: var(--sheet);
  color: var(--ink);
}

.masthead {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  padding: 2px 0 14px;
}

.brand {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 1.3rem; font-weight: 800; letter-spacing: -0.015em; line-height: 1.1;
  color: var(--navy); text-decoration: none;
  overflow-wrap: anywhere;
}
.brand:hover { color: var(--green); text-decoration: none; }

.ad-label {
  display: inline-block;
  padding: 4px 9px;
  border: 1px solid #c9ced5; border-radius: 3px;
  background-color: #ffffff; color: var(--muted);
  font-size: .75rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; line-height: 1.3;
}

.back-link {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: .9375rem; font-weight: 700; color: var(--green);
}

/* ---------- Article head ---------- */

.article { background-color: var(--sheet); color: var(--ink); }

.meta-row {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px;
  margin: 0 0 10px;
  font-size: .8125rem; line-height: 1.4; color: var(--muted);
}
@media (min-width: 480px) { .meta-row { font-size: .875rem; } }

.headline {
  margin: 0 0 12px;
  font-family: var(--font);
  font-size: clamp(1.5rem, 1.12rem + 1.55vw, 1.9rem);
  font-weight: 700; line-height: 1.17; letter-spacing: -0.012em;
  color: var(--navy);
  text-transform: none;
}

.dek {
  margin: 0 0 20px;
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.5; color: #111418;
}

/* ---------- Figures & media ---------- */

.fig { margin: 26px 0; }
.fig:first-child { margin-top: 0; }

.frame {
  position: relative; overflow: hidden;
  border-radius: var(--radius);
  background-color: #e4e7ec;
  aspect-ratio: 16 / 9;
  width: 100%;
}
.frame img, .frame video { width: 100%; height: 100%; object-fit: cover; }
.frame--wide { aspect-ratio: 1200 / 630; }
.frame--cin { aspect-ratio: 2 / 1; }
.frame--std { aspect-ratio: 16 / 10; }
.pos-right { object-position: 72% 50%; }
.frame--portrait { aspect-ratio: 63 / 120; }

.caption {
  margin: 8px 0 0;
  font-size: .875rem; font-style: italic; line-height: 1.45; color: var(--muted);
}

.hero { margin: 4px 0 24px; }

.read-chip {
  position: absolute; right: 10px; bottom: 10px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 4px;
  background-color: rgba(24, 26, 30, .88); color: #ffffff;
  font-size: .75rem; font-weight: 700; letter-spacing: .03em; line-height: 1.2;
}
.read-chip svg { width: 13px; height: 13px; flex: none; }

/* ---------- Article typography ---------- */

.article p { margin: 0 0 1.05em; color: var(--ink); }

.article h2 {
  margin: 0 0 14px;
  font-family: var(--font);
  font-size: clamp(1.25rem, 1.1rem + .65vw, 1.5rem);
  font-weight: 700; line-height: 1.25; letter-spacing: -0.008em;
  color: var(--navy); text-transform: none;
}

.article strong { color: var(--navy); font-weight: 700; }

.divider {
  display: block; width: 180px; max-width: 60%; height: 0;
  margin: 34px auto; border: 0; border-top: 1px solid #d5d9df;
}

.sheet .uk-section { padding: 0; background-color: transparent; }
.sec { color: var(--ink); }

.plain-list, .steps { margin: 0 0 1.2em; padding-left: 1.25em; color: var(--ink); }
.plain-list li, .steps li { margin: 0 0 .65em; padding-left: .2em; }
.plain-list li::marker { color: var(--green-mid); }
.steps li::marker { color: var(--navy); font-weight: 700; }

/* ---------- Calls to action ---------- */

.cta-wrap { margin: 6px 0 4px; }

.cta-link {
  display: inline-block; padding: 11px 0;
  font-weight: 700; line-height: 1.4;
  color: var(--green); text-decoration: underline;
  text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.cta-link::after { content: "\2192"; text-decoration: none; display: inline-block; margin-left: .4em; transition: transform .15s ease; }
.cta-link:hover { color: var(--green-hover); }
.cta-link:hover::after { transform: translateX(3px); }

.cta-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; max-width: 400px; min-height: 54px;
  padding: 14px 26px; border-radius: 6px;
  background-color: var(--green); color: #ffffff;
  font-size: 1.0625rem; font-weight: 700; line-height: 1.25; text-align: center; text-decoration: none;
  box-shadow: 0 3px 9px rgba(0, 0, 0, .28);
}
.cta-button::after { content: "\2192"; transition: transform .15s ease; }
.cta-button:hover { background-color: var(--green-hover); color: #ffffff; text-decoration: none; transform: translateY(-1px); box-shadow: 0 6px 14px rgba(0, 0, 0, .3); }
.cta-button:hover::after { transform: translateX(3px); }

.cta-sub {
  margin: 4px 0 0 !important;
  font-size: .8125rem; line-height: 1.45; color: var(--muted) !important;
}

.cta-end { margin: 30px 0 0; text-align: center; }
.cta-end .cta-sub { max-width: 400px; margin: 10px auto 0 !important; }

.checks {
  display: inline-block; margin: 22px 0 0; padding: 0; list-style: none; text-align: left;
  font-size: .875rem; color: var(--ink-soft);
}
.checks li { position: relative; margin: 0 0 8px; padding-left: 26px; }
.checks li::before {
  content: ""; position: absolute; left: 5px; top: .3em;
  width: 6px; height: 11px;
  border: solid var(--green); border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

/* ---------- Figure band (accent: stat/figure band styling, our own figures) ---------- */

.band {
  display: flex; flex-direction: column; flex-wrap: nowrap;
  margin: 22px 0 28px !important; padding: 0 !important;
  border-top: 3px solid var(--navy); border-bottom: 1px solid var(--line);
  background-color: var(--tint);
}
.band > * {
  display: flex; align-items: center; gap: 16px;
  margin: 0 !important; padding: 14px 16px !important;
  border-top: 1px solid var(--line);
}
.band > *:first-child { border-top: 0; }
.band .figure {
  flex: none; min-width: 1.6rem; font-size: 2.25rem; font-weight: 800; line-height: 1; letter-spacing: -0.02em;
  color: var(--navy);
}
.band .figure-label { font-size: .9375rem; line-height: 1.35; color: var(--ink-soft); }

/* ---------- Comparison table (stacked blocks on mobile) ---------- */

.table-wrap { margin: 24px 0 26px; overflow-x: auto; }

.compare { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.45; color: var(--ink); background-color: var(--sheet); }
.compare caption {
  position: absolute; left: -9999px;
}
.compare thead { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.compare tr { display: block; padding: 12px 0; border-top: 1px solid var(--line); }
.compare tr:last-child { border-bottom: 1px solid var(--line); }
.compare tbody th {
  display: block; margin: 0 0 6px; padding: 0;
  font-size: 1rem; font-weight: 700; text-align: left; color: var(--navy);
}
.compare td { display: grid; grid-template-columns: 104px 1fr; gap: 10px; padding: 3px 0; color: var(--ink); }
.compare td::before {
  content: attr(data-label);
  font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: .2em;
}
.compare .is-focus { background-color: var(--tint-green); padding-left: 12px; padding-right: 12px; border-left: 4px solid var(--green-mid); }

/* ---------- Pair of stills ---------- */

.pair { display: flex; flex-direction: column; flex-wrap: nowrap; gap: 22px; margin: 26px 0 !important; padding: 0 !important; }
.pair > * { margin: 0 !important; padding: 0 !important; width: 100%; }
.pair .fig { margin: 0; }

/* ---------- Tinted panel with portrait loop + checklist ---------- */

.panel {
  margin: 0 0 4px; padding: 22px 18px 8px;
  border-radius: var(--radius);
  background-color: var(--tint-green); color: var(--ink);
}
.panel h2 { margin-bottom: 18px; }

.split { display: flex; flex-direction: column; flex-wrap: nowrap; gap: 22px; margin: 0 !important; padding: 0 !important; }
.split > * { margin: 0 !important; padding: 0 !important; }
.split-media { width: 100%; max-width: 250px; margin: 0 auto !important; }
.split-media .fig { margin: 0; }

.reasons { margin: 0 0 18px; padding: 0; list-style: none; }
.reasons li { position: relative; margin: 0 0 18px; padding-left: 38px; line-height: 1.45; color: var(--ink); }
.reasons li::before {
  content: ""; position: absolute; left: 0; top: 1px;
  width: 25px; height: 25px; border-radius: 50%; background-color: var(--green-mid);
}
.reasons li::after {
  content: ""; position: absolute; left: 9px; top: 5px;
  width: 6px; height: 12px;
  border: solid #ffffff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.reasons strong { display: block; color: var(--navy); }
.reasons span { display: block; font-size: .9688rem; color: var(--ink-soft); }

/* ---------- FAQ (UIkit accordion) ---------- */

.faq { margin: 0 0 4px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.faq > li { margin: 0 !important; border-bottom: 1px solid var(--line); }
.faq .uk-accordion-title {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  width: 100%; min-height: 52px; margin: 0; padding: 10px 0;
  border: 0; background-color: transparent; cursor: pointer;
  font-family: var(--font); font-size: 1.0625rem; font-weight: 700; line-height: 1.35; text-align: left;
  color: var(--navy); text-decoration: none;
}
.faq .uk-accordion-title::before { order: 2; flex: none; float: none; margin: 0; }
.faq .uk-accordion-title:hover { color: var(--green); text-decoration: none; }
.faq .uk-accordion-content { margin: 0; padding: 0 0 14px; }
.faq .uk-accordion-content p { margin: 0; color: var(--ink); }

/* ---------- Footer (publisher imprint) ---------- */

.bottom {
  background-color: var(--page); color: #52575e;
  padding: 44px 16px 48px;
  font-size: 13px; line-height: 1.6;
}
.bottom-inner { width: 100%; max-width: 750px; margin: 0 auto; }
.entity { margin: 0 0 18px; color: #52575e; }
.entity p { margin: 0 0 2px; color: #52575e; }
.entity .entity-name { font-weight: 700; color: #3a3f46; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 20px; margin: 0 0 14px; }
.foot-links a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 13px; font-weight: 700; color: var(--green); text-decoration: underline; text-underline-offset: 3px;
}
.foot-links a:hover { color: var(--green-hover); }
.footer-note { margin: 0; font-size: 13px; line-height: 1.6; color: #52575e; }

/* ---------- Legal and about pages ---------- */

.legal { color: var(--ink); background-color: var(--sheet); }
.legal h1 {
  margin: 8px 0 8px; font-size: clamp(1.5rem, 1.15rem + 1.4vw, 1.85rem);
  font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; color: var(--navy); text-transform: none;
}
.revision { margin: 0 0 24px; font-size: .875rem; color: var(--muted); }
.legal h2 {
  margin: 30px 0 10px; font-size: clamp(1.15rem, 1.05rem + .45vw, 1.3rem);
  font-weight: 700; line-height: 1.3; color: var(--navy); text-transform: none;
}
.legal p { margin: 0 0 1em; color: var(--ink); }
.legal ul { margin: 0 0 1.1em; padding-left: 1.25em; color: var(--ink); }
.legal li { margin: 0 0 .5em; }
.legal .lede { font-size: 1.0625rem; color: #111418; }
.legal address { margin: 0 0 1.1em; font-style: normal; color: var(--ink); line-height: 1.6; }

/* ---------- 480px ---------- */

@media (min-width: 480px) {
  .pair { flex-direction: row; gap: 18px; }
  .pair > * { flex: 1 1 0; min-width: 0; width: auto; }
  .frame--std { aspect-ratio: 4 / 3; }
  .cta-button { width: auto; min-width: 320px; }
}

/* ---------- 768px ---------- */

@media (min-width: 768px) {
  body { line-height: 1.62; }
  .sheet { margin-top: 40px; padding: 24px 24px 60px; }
  .masthead { padding-bottom: 18px; }
  .brand { font-size: 1.45rem; }
  .fig { margin: 32px 0; }
  .divider { margin: 44px auto; }
  .article h2 { margin-bottom: 16px; }

  .band { flex-direction: row; }
  .band > * { flex: 1 1 0; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 8px; padding: 18px 20px 20px !important; border-top: 0; border-left: 1px solid var(--line); }
  .band > *:first-child { border-left: 0; }
  .band .figure { font-size: 2.75rem; }

  .compare thead { position: static; width: auto; height: auto; overflow: visible; }
  .compare thead th {
    padding: 11px 14px; text-align: left; background-color: var(--navy); color: #ffffff;
    font-size: .75rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  }
  .compare tr { display: table-row; padding: 0; border-top: 0; }
  .compare tr:last-child { border-bottom: 0; }
  .compare tbody tr { border-bottom: 1px solid var(--line); }
  .compare tbody th, .compare td { display: table-cell; padding: 14px; vertical-align: top; border-bottom: 1px solid var(--line); margin: 0; }
  .compare tbody th { width: 24%; font-size: .9688rem; }
  .compare td::before { display: none; }
  .compare .is-focus { background-color: var(--tint-green); border-left: 0; padding: 0; }
  .compare .is-focus th { border-left: 4px solid var(--green-mid); }

  .panel { padding: 30px 30px 14px; }
  .split { flex-direction: row; align-items: flex-start; gap: 32px; }
  .split-media { flex: 0 0 38%; max-width: 38%; margin: 0 !important; }
  .split-body { flex: 1 1 0; min-width: 0; }

  .bottom { padding: 56px 24px 56px; }
}

/* ---------- 1024px ---------- */

@media (min-width: 1024px) {
  .sheet { padding: 28px 24px 64px; }
  .hero { margin-bottom: 28px; }
  .reasons li { margin-bottom: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
