/* R77 footer repair: mission and contact remain inside the footer grid at every width. */
.site-footer{overflow:hidden}
.baile-mission,
.site-footer .public-contact-ribbon{
  width:min(1180px,calc(100% - 2rem));
  margin:1.35rem auto 0;
  padding:1rem 0 0;
  border-top:1px solid rgba(255,255,255,.2);
  line-height:1.55;
  overflow-wrap:anywhere;
}

/* R78 hero density and header-scale repair */
.site-header .brand .brand-mark-image{width:54px!important;height:54px!important;max-width:54px!important;min-width:54px!important;object-fit:contain!important;flex:0 0 54px!important}.baile-home-hero-grid{grid-template-columns:minmax(0,1.35fr) minmax(350px,.75fr);min-height:560px}.baile-home-hero-media{background:#641932!important;align-self:stretch}.baile-home-hero-media img{width:100%!important;height:100%!important;min-height:560px!important;object-fit:cover!important;object-position:42% 50%!important;background:#641932!important}@media(max-width:900px){.baile-home-hero-grid{grid-template-columns:1fr;min-height:0}.baile-home-hero-media img{height:auto!important;min-height:0!important;max-height:72vh!important;object-fit:cover!important;object-position:42% 50%!important}}
.site-footer .public-contact-ribbon{
  display:grid;
  grid-template-columns:max-content max-content minmax(0,1fr);
  gap:.5rem 1.25rem;
  align-items:baseline;
}
.site-footer .public-contact-ribbon a{display:block;min-width:0;color:#FFDDBD}
@media(max-width:760px){
  .site-footer .public-contact-ribbon{grid-template-columns:1fr;gap:.35rem}
  .baile-mission,.site-footer .public-contact-ribbon{width:min(100% - 1.5rem,1180px)}
}

/* R144E full-pass contrast, caption structure, footer, and flag watermark */
.r135-photo-card figcaption,
.r135-photo-card .r135-caption{
  padding:4.8rem 1.05rem 1.05rem!important;
  background:linear-gradient(to top,rgba(4,12,18,.98) 0%,rgba(4,12,18,.92) 58%,rgba(4,12,18,.08) 100%)!important;
  color:#fff!important;
  text-shadow:0 1px 4px rgba(0,0,0,.95)!important;
}
.r135-photo-card figcaption strong,.r135-photo-card .r135-caption strong{display:block!important;color:#ffd8ba!important;line-height:1.25!important}
.r135-photo-card figcaption span,.r135-photo-card .r135-caption span{display:block!important;margin-top:.32rem!important;color:#fff!important;line-height:1.5!important}
.footer,.personal .footer{background-color:#172733!important;background-image:none!important;color:#f7fafb!important}
.footer h2,.footer h3,.footer p,.footer li,.footer-meta{color:#f7fafb!important}
.footer a{color:#ffe1c8!important;text-decoration-color:rgba(255,225,200,.72)!important}
.footer .social-badge{background:rgba(255,255,255,.1)!important;border-color:rgba(255,255,255,.52)!important;color:#fff!important}
.site-footer,.k6rcs-footer{background-color:#102b3a!important;background-image:none!important;color:#f7fafb!important}
.site-footer h2,.site-footer h3,.site-footer p,.site-footer li,.site-footer .legal{color:#f7fafb!important}
.site-footer a{color:#ffe1c8!important;text-decoration-color:rgba(255,225,200,.72)!important}
.flag-watermark{position:relative!important;overflow:hidden!important;isolation:isolate;background:#fff!important}
.flag-watermark::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  opacity:.09;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 360'%3E%3Cpath fill='%231b3f63' d='M88 20h18v320H88zM106 42c160-72 280 70 446 0v220c-166 70-286-72-446 0z'/%3E%3Cpath fill='none' stroke='%23fff' stroke-opacity='.28' stroke-width='9' d='M118 82c150-48 274 66 422 4M116 128c154-44 278 66 426 2M114 174c158-42 282 64 430 0M112 220c162-40 286 62 434-2'/%3E%3Crect x='106' y='42' width='154' height='112' rx='2' fill='%230f2f50'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:112% 108%;
  background-size:min(560px,105%) auto;
}
.flag-watermark>*{position:relative;z-index:1}
.flag-watermark h3{color:#172f48!important}
.flag-watermark p{color:#15242d!important}
/* R144E universal caption separation */
figcaption>strong{display:block!important}
figcaption>strong+span{display:block!important;margin-top:.3rem!important;line-height:1.48!important}

/* R144E WCAG contrast consolidation */
:root{--r144e-accent-accessible:#76233f;--r144e-link-accessible:#68300d;--r144e-meta-accessible:#3b4b54}
main .section:not(.dark) h3,
main .section:not(.dark) h4{color:var(--ink,#203038)!important}
main .section:not(.dark) .eyebrow,
main .section:not(.dark) .meta,
main .section:not(.dark) .tiny{color:var(--r144e-meta-accessible)!important}
main .section:not(.dark) a:not(.button):not(.nav-practice){color:var(--r144e-link-accessible)!important;text-decoration-color:currentColor!important}
main .hero a,
main .dark a,
main .r144d-practice-feature a{color:#fff!important}
.button.primary,
button.button.primary,
a.nav-cta{background:var(--r144e-accent-accessible)!important;border-color:var(--r144e-accent-accessible)!important;color:#fff!important}
.button.secondary{color:var(--r144e-link-accessible)!important;border-color:var(--r144e-link-accessible)!important;background:#fff!important}
.skip,.skip-link{color:var(--r144e-link-accessible)!important;background:#fff!important}
.mark{color:#fff!important;background:var(--r144e-accent-accessible)!important}
th{color:#fff!important;background:var(--r144e-accent-accessible)!important}
.photo:not(.documentary-photo):not(.r135-photo-card) figcaption{color:#fff!important;background:linear-gradient(transparent,rgba(5,13,18,.97))!important;text-shadow:0 1px 5px rgba(0,0,0,.95)!important}
.photo:not(.documentary-photo):not(.r135-photo-card) figcaption strong,
.photo:not(.documentary-photo):not(.r135-photo-card) figcaption span{color:#fff!important}

/* R144E nested-card and navigation contrast */
header nav a,
.site-header nav a,
.header-inner nav a{color:var(--ink,#203038)!important}
header nav a[aria-current="page"],
header nav a.nav-practice:hover,
header nav a.nav-practice[aria-current="page"]{background:var(--r144e-accent-accessible)!important;color:#fff!important;border-color:var(--r144e-accent-accessible)!important}
.brand-domain,time{color:var(--r144e-link-accessible)!important}
.section.dark .card,
.section.dark .resource-card{background:#fbf8f2!important;color:var(--ink,#203038)!important}
.section.dark .card h3,
.section.dark .card h4,
.section.dark .card p,
.section.dark .card li,
.section.dark .card strong,
.section.dark .resource-card h3,
.section.dark .resource-card h4,
.section.dark .resource-card p,
.section.dark .resource-card li{color:var(--ink,#203038)!important}
.section.dark .card .eyebrow,
.section.dark .resource-card .eyebrow{color:var(--r144e-meta-accessible)!important}
.section.dark .card a,
.section.dark .resource-card a,
.section.dark .link-list a{color:var(--r144e-link-accessible)!important}
.section.dark .resource-link,
.section.dark .link-list a{background:#fff!important;border-color:#b6c4ca!important}
.section.dark .resource-link strong,
.section.dark .resource-link span{color:var(--ink,#203038)!important}
.pool-summary strong{color:var(--r144e-link-accessible)!important}
.trivia-use-case h2,
.trivia-use-case h3,
.trivia-use-case h4,
.trivia-use-case p,
.trivia-use-case strong{color:#f7fafb!important}

/* R144E final contrast locks */
header nav a.nav-cta,
.site-header nav a.nav-cta,
.header-inner nav a.nav-cta{color:#fff!important}
.brand strong{color:inherit!important}
.button.camel{background:#173f57!important;border-color:#173f57!important;color:#fff!important}
main .section:not(.dark) .lead,
main .section:not(.dark) strong{color:var(--ink,#203038)!important}
main .section.trivia-use-case h2,
main .section.trivia-use-case h3,
main .section.trivia-use-case h4,
main .section.trivia-use-case p,
main .section.trivia-use-case strong{color:#f7fafb!important}
.notice{background:#edf3f5!important;color:var(--ink,#203038)!important;border-color:#9fb2ba!important}
.notice p,.notice strong,.notice a{color:var(--ink,#203038)!important}
.photo:not(.documentary-photo):not(.r135-photo-card) figcaption strong,
.photo:not(.documentary-photo):not(.r135-photo-card) figcaption span,
.r135-photo-card figcaption strong,
.r135-photo-card figcaption span,
.r144d-practice-feature strong{color:#fff!important}

/* R144E compact-hero and inset contrast */
main .eyebrow{color:var(--r144e-meta-accessible)!important}
main .hero .eyebrow,
main .section.dark .eyebrow,
figure figcaption .eyebrow{color:#fff!important}
main .hero-compact .lead{color:var(--ink,#203038)!important}
main .section.dark h2,
main .section.dark h3,
main .section.dark h4{color:#fff!important}
.source-item h3,
.source-item h4{color:var(--ink,#203038)!important}
.source-item a{color:var(--r144e-link-accessible)!important}
a.button:not(.primary):not(.secondary):not(.camel){background:#fff!important;color:var(--r144e-link-accessible)!important;border-color:var(--r144e-link-accessible)!important}
sub,sup{color:inherit!important}

/* R144E split-hero and caption eyebrow contrast */
main .hero-grid .hero-copy .eyebrow,
main .hero-compact .eyebrow,
main .section .section-heading .eyebrow{color:var(--r144e-meta-accessible)!important}
main .section:not(.dark) figure figcaption .eyebrow{color:#fff!important}
.brand-ribbon strong{color:#fff!important}
main .section:not(.dark) sub,
main .section:not(.dark) sup{color:var(--ink,#203038)!important}

/* R144E ElectStone specificity locks */
body main .section:not(.dark) .section-heading p.eyebrow{color:var(--r144e-meta-accessible)!important}
body main .section:not(.dark) .brand-ribbon strong{color:#fff!important}

/* R144E final eyebrow specificity locks */
body main section.section.dark p.eyebrow{color:#fff!important}
body main section[class~="section"]:not(.dark) div[class~="section-heading"] p.eyebrow{color:var(--r144e-meta-accessible)!important}
body main .r140-photo-break .r140-photo-copy p.eyebrow{color:#fff!important}
body main .brand-ribbon strong{color:#fff!important}
