/* ============================================================
   wcag-s0081-topaz.css
   WCAG 2.1 Level AA override for the S0081-Topaz Kentico template
   (TemplateId 1400, DefaultCssFileName: RPcssMaster_S0081-Topaz).

   Selectors verified against the live base CSS pulled from
   livesommery.com (cross-fetched) on 2026-05-12.

   This template does NOT use a .template-* wrapper.

   Ron specifically named this template in TFS 2849882
   (Republic Flats / republicflats.com) as outside the current
   8-template remediation scope.

   Note: The Topaz master CSS form-control borders use #253746
   (~12:1 on white) which already PASS. Form-contrast failures
   Silktide reports for this template come from shared webpart
   CSS or per-property overrides â those fixes go at the
   property level, not here.
   ============================================================ */


/* ------------------------------------------------------------
   WCAG 2.4.7 Focus Visible
   ------------------------------------------------------------ */
.navbar-toggle:focus-visible,
.dropdown-toggle:focus-visible,
.btn:focus-visible,
.form-control:focus-visible,
#contactUsEnhancedContainer input:focus-visible,
.homeContactFormHolder .contact-mobile-form input:focus-visible,
.contactus-float-input-div input:focus-visible,
.contactus-float-input-div select:focus-visible,
.contactus-float-input-div textarea:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible,
[role="button"]:focus-visible,
.footer-widget footer a:focus-visible {
  /* Webkit-style two-ring halo: blue inner ring + white outer ring
     gives focus visibility on both light AND dark backgrounds.
     The `outline` declaration is intentionally omitted — outline
     paints on top of box-shadow and would cover the white ring. */
  outline-offset: 2px;
  box-shadow: 0 0 0 2px #005fcc, 0 0 0 3px #fff;
}


/* ------------------------------------------------------------
   WCAG 2.4.11 Focus Not Obscured
   ------------------------------------------------------------ */
html {
  scroll-padding-top: 100px;
}

:focus-visible {
  scroll-margin-top: 100px;
}


/* ------------------------------------------------------------
   WCAG 1.4.11 Non-text Contrast (form controls + UI)
   Base failures:
     1. .FloorPlansV3 .fp-switch-tabs { border:1px solid #e7e7e7 }
        #e7e7e7 on white â 1.18:1 â fails 3:1.
     2. #contactUsEnhancedContainer .form-control failure comes
        from shared webpart CSS â Ron flagged this for Republic
        Flats in TFS 2849882.

   Specificity strategy for the #contactUsEnhancedContainer rule:
   body + ID matches the widget's own specificity (1,1,1) so
   source order wins, and the !important handles the base's
   `border-bottom:none` (no color to override).
   ------------------------------------------------------------ */
.FloorPlansV3 .fp-switch-tabs,
.FloorPlansV2 .fp-switch-tabs {
  border-color: #595959;
}

body #contactUsEnhancedContainer .form-control {
  border-bottom: 1px solid #595959 !important;
}


/* ------------------------------------------------------------
   WCAG 1.4.3 Contrast Minimum (text)
   Base failures:
     #7e7e7e in 5+ rules â 4.4:1 â fails 4.5:1 by a hair.
     Shared footer-disclosure opacity 0.6 â 0.85.
   ------------------------------------------------------------ */
.FloorPlansV3 .specification,
.FloorPlansV2 .specification {
  color: #595959;
}

.footer-widget footer .footer-disclosure {
  opacity: 0.85;
}


/* ------------------------------------------------------------
   WCAG 1.4.1 Use of Color (inline links)
   ------------------------------------------------------------ */
/* Scope: content containers only. Bare `p a` / `li a` / `dd a` selectors were dropped (same Balcony/Aurora/Bliss/Jackson-Square bleed bug — they would underline footer nav, header items, sidebar lists). */
.main-content-text a,
.inner-page-main a,
.main-content-wrapper a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

a.btn,
a.button,
.btn,
.btn-primary,
header a,
nav a,
.cta-header-btn,
.header-CTA-button,
.footer-CTA-Button,
a.more-link,
a.less-link,
.footer-widget footer a {
  text-decoration: none;
}

/* ------------------------------------------------------------
   TFS 2870264 — WCAG 1.4.1 (homepage inline links)
   Topaz uses the same `.web-home-template` page wrapper /
   `.column-content .html-content` rich-text pattern as
   Autumn-Ridge. Verified against apartmentsathiddencreek.com
   (inline links "central spot", "thoughtful layouts",
   "close to home" inside `.column-content .html-content`).
   ------------------------------------------------------------ */
.web-home-template .column-content .html-content a,
.web-home-template .copy-overlap a,
.web-home-template .copy-overlay a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.web-home-template .html-content a.btn,
.web-home-template .html-content a.button,
.web-home-template .ws-cta--primary a,
.web-home-template .cta-wrap a,
.web-home-template .cta-item {
  text-decoration: none;
}


/** ------------------------------------------------------------
   WCAG 2.2 AA 2.5.8 Target Size (Pointer)
   ------------------------------------------------------------ */
body .contact-mobile-form input[type="checkbox"] {
    padding: 20px;
    margin: 4px;
}