/**
 * Footer Styling
 */

.site-footer {
  background-color: var(--footer-bg);
  color: var(--footer-heading);
  padding: 60px 20px 30px;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
}

/* Logo Section - Top Center */
.footer-logo-section {
  text-align: center;
  margin-bottom: 50px;
}

.footer-logo-section a {
  display: inline-block;
  margin-bottom: 15px;
}

.footer-logo {
  max-width: 150px;
  height: auto;
}

.footer-tagline {
  font-size: 16px;
  color: var(--footer-heading);
  margin: 0;
  font-weight: normal;
  letter-spacing: 0.5px;
}

/* Main Footer Grid - 5 Columns */
.footer-main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

/* Navigation Columns */
.footer-nav-column h3,
.footer-contact-column h3 {
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  margin: 0 0 20px 0;
  letter-spacing: 1px;
  color: var(--footer-heading);
}

.footer-nav-column ul,
.footer-contact-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav-column ul li,
.footer-contact-column ul li {
  margin-bottom: 12px;
}

.footer-nav-column ul li a,
.footer-contact-column ul li a {
  color: var(--footer-text);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
  line-height: 1.6;
}

.footer-nav-column ul li a:hover,
.footer-contact-column ul li a:hover {
  color: var(--footer-text-hover);
}

/* Newsletter Banner - Middle Column */
.footer-newsletter-banner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-newsletter-banner a {
  display: block;
  width: 70%;
}

.footer-newsletter-banner img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  transition: opacity 0.3s ease;
}

.footer-newsletter-banner a:hover img {
  opacity: 0.9;
}

/* Social Media Section (in Contact Column) */
.footer-social {
  margin-top: 25px;
}

.social-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.social-links a {
  display: block;
  width: 35px;
  height: 35px;
  transition: opacity 0.3s ease;
}

.social-links a:hover {
  opacity: 0.7;
}

.social-links a img {
  width: 100%;
  height: 100%;
  display: block;
}

/* Footer Bottom Section */
.footer-bottom {
  border-top: 1px solid var(--footer-border);
  padding-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

/* Legal Links */
.footer-legal ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-legal ul li a {
  color: var(--footer-text);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.3s ease;
}

.footer-legal ul li a:hover {
  color: var(--footer-text-hover);
}

/* Copyright */
.footer-copyright {
  text-align: center;
}

.footer-copyright p {
  margin: 0;
  font-size: 13px;
  color: var(--footer-copyright);
}

/* ========================================
   TABLET & DESKTOP MEDIA QUERIES
   ======================================== */

@media (min-width: 768px) {
  .site-footer {
    padding: 80px 40px 40px;
  }

  .footer-logo {
    max-width: 180px;
  }

  .footer-tagline {
    font-size: 18px;
  }

  .footer-main-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 30px;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }

  .footer-legal ul {
    justify-content: flex-start;
  }

  .footer-copyright {
    text-align: right;
  }
}

@media (min-width: 992px) {
  .footer-main-grid {
    grid-template-columns: 1fr 1fr 1.2fr 1fr 1fr;
    gap: 30px;
    align-items: start;
  }
}

@media (min-width: 1920px) {
  .site-footer {
    padding: 100px 60px 50px;
  }
}

/* ========================================
   PHONE FOOTER (ADO 5399; Ken: "the mobile footer views are off ... use the same layout and structure" as ccolor.com)
   At 767 px and below the footer shows three parts, in this order: (1) the menu rows (.footer-phone-menu), (2) the newsletter sign-up form itself
   (.footer-phone-signup; ADO 5627, Ken 2026-10-24: "the footer graphic that launches the popup should just be the popup embedded in the page itself like it is on ccolor.com"),
   no longer the banner picture that opened the pop-up (the banner stays in the markup and on computers; the grid that holds it is hidden on phones), (3) the brand foot (.footer-phone-foot, includes/brand-foot.php).
   Everything else the footer shows is hidden there. At 768 px and up nothing here applies. Numbers: CONTRACT-494-1-2-3.md, 494-2 item 7.
   ======================================== */

.footer-phone-menu,
.footer-phone-signup,
.footer-phone-foot {
  display: none;
}

@media (max-width: 767px) { /* mobile breakpoint */
  .site-footer {
    padding: 0;
    background-color: #000000;
  }

  .footer-logo-section,
  .footer-nav-column,
  .footer-contact-column,
  .footer-bottom {
    display: none;
  }

  /* ADO 5627 (Ken 2026-10-24): on phones the grid held only the banner, and the sign-up form replaces the banner there, so the grid is hidden. 768 px and up is unchanged. */
  .footer-main-grid {
    display: none;
  }

  .footer-phone-menu {
    display: block;
    padding: 50px 0 25px;
    background-color: #000000;
  }

  .footer-phone-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .footer-phone-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  /* A row: 1px line above, 18px above and below a 17px line = 54px. The last row also gets a line below. */
  .footer-phone-menu .footer-phone-rows > li > a,
  .footer-phone-menu .footer-accordion-toggle,
  .footer-phone-menu .footer-phone-sub a {
    display: block;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 18px 0;
    border: 0;
    border-top: 1px solid #b3b3b3;
    border-radius: 0;
    background: none;
    -webkit-appearance: none;
    appearance: none;
    font-family: inherit;
    font-size: 17px;
    font-weight: normal;
    line-height: 17px;
    letter-spacing: normal;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    color: #afafaf;
    cursor: pointer;
    transition: none;
  }

  .footer-phone-menu .footer-phone-rows > li:last-child > a {
    border-bottom: 1px solid #b3b3b3;
  }

  .footer-phone-menu .footer-phone-rows > li > a:hover,
  .footer-phone-menu .footer-phone-rows > li > a:focus,
  .footer-phone-menu .footer-accordion-toggle:hover,
  .footer-phone-menu .footer-phone-sub a:hover,
  .footer-phone-menu .footer-phone-sub a:focus {
    color: #afafaf;
    text-decoration: none;
  }

  .footer-phone-menu .footer-phone-rows > li > a:focus-visible,
  .footer-phone-menu .footer-accordion-toggle:focus-visible,
  .footer-phone-menu .footer-phone-sub a:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: -2px;
  }

  .footer-phone-menu .footer-accordion-toggle {
    position: relative;
  }

  /* The chevron is drawn with borders (no picture file): a 17px box that turns 180 degrees in 0.25 s, holding a bordered corner that points down. */
  .footer-phone-menu .footer-accordion-chevron {
    position: absolute;
    right: 15px;
    top: 15px;
    width: 17px;
    height: 17px;
    transition: transform 0.25s ease;
  }

  .footer-phone-menu .footer-accordion-chevron::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 2px;
    box-sizing: border-box;
    width: 9px;
    height: 9px;
    border-right: 2px solid #afafaf;
    border-bottom: 2px solid #afafaf;
    transform: rotate(45deg);
  }

  .footer-phone-menu .footer-accordion-toggle[aria-expanded="true"] .footer-accordion-chevron {
    transform: rotate(180deg);
  }

  /* The list: closed = no height and hidden after the slide (Tab skips its links); open = as tall as its rows (site-nav.js sets --sub-h). */
  .footer-phone-menu .footer-phone-sub {
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    background-color: #141517;
    transition: max-height 0.4s ease, visibility 0s linear 0.4s;
  }

  .footer-phone-menu .footer-accordion-toggle[aria-expanded="true"] + .footer-phone-sub {
    max-height: var(--sub-h, 600px);
    visibility: visible;
    transition: max-height 0.4s ease, visibility 0s;
  }

  /* ADO 5622 (Ken, 2026-10-24: "can you please center the text in the submenus? right now they are off center"). The left-only 50px of padding (copied from live ccolor.com)
     put every label 25px right of the middle of the row. 25px each side keeps the text area 50px narrower than the screen, so every label wraps as before, and centres the label on the row. */
  .footer-phone-menu .footer-phone-sub a {
    padding: 18px 25px;
    text-transform: none;
  }

  /* Part 3: the brand foot */
  .footer-phone-foot {
    display: block;
    padding: 25px 0 50px;
    background-color: #000000;
    text-align: center;
  }

  .footer-phone-foot .brand-foot-social {
    display: flex;
    justify-content: center;
  }

  .footer-phone-foot .brand-foot-social a {
    display: block;
    width: 30px;
    height: 30px;
    margin: 0 10px;
    padding: 0;
  }

  .footer-phone-foot .brand-foot-social img {
    display: block;
    width: 30px;
    height: 30px;
  }

  .footer-phone-foot .brand-foot-copyright {
    margin: 20px 0 0;
    font-size: 17px;
    line-height: 17px;
    color: #afafaf;
    text-transform: capitalize;
  }

  .footer-phone-foot .brand-foot-link {
    margin: 15px 0 0;
    font-size: 16px;
    line-height: 17.6px;
  }

  .footer-phone-foot .brand-foot-link a {
    font-size: 16px;
    line-height: 17.6px;
    color: #afafaf;
    text-decoration: none;
  }

  .footer-phone-foot .brand-foot-link a:hover,
  .footer-phone-foot .brand-foot-link a:focus {
    color: #afafaf;
    text-decoration: underline;
  }

  /* The wordmark keeps its own proportions (383 x 72): 240px wide is 45px tall, never above 75px, never wider than the screen. */
  .footer-phone-foot .brand-foot-logo {
    display: block;
    width: 240px;
    max-width: 100%;
    height: auto;
    max-height: 75px;
    margin: 20px auto 0;
  }

  .footer-phone-foot .brand-foot-tagline {
    margin: 15px 0 0;
    font-size: 17px;
    font-weight: 600;
    line-height: normal;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ffffff;
  }
}

/* Under prefers-reduced-motion nothing slides or turns (the open list has its own, more specific, transition rule, so it is named too). */
@media (prefers-reduced-motion: reduce) {
  .footer-phone-menu .footer-phone-sub,
  .footer-phone-menu .footer-accordion-toggle[aria-expanded="true"] + .footer-phone-sub,
  .footer-phone-menu .footer-accordion-chevron {
    transition: none;
  }
}
/* ===== Site forms: trap field, status text, pop-ups (site-forms.js) ===== */
.sf-trap {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.sf-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* The check box is hidden unless Cloudflare needs the visitor; site-forms.js adds sf-turnstile-shown while it has height,
   so a hidden box leaves no gap above the button. */
.sf-turnstile {
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.sf-turnstile.sf-turnstile-shown {
  margin-bottom: 15px;
}

.sf-turnstile:empty {
  display: none;
}

.sf-status {
  margin: 0 0 15px;
  min-height: 0;
  font-size: 16px;
  font-weight: bold;
  line-height: 1.4;
  text-align: center;
}

.sf-status:empty {
  display: none;
}

.sf-status-error {
  color: #b00020;
}

.sf-status-success {
  color: #1f7a2e;
}

.sf-status-busy {
  color: #0946c1;
}

.sf-form .sf-invalid,
.contact-form .sf-invalid {
  border-color: #b00020 !important;
  box-shadow: 0 0 0 1px #b00020;
}

.sf-form[aria-busy="true"] button[type="submit"],
.sf-form[aria-busy="true"] input[type="submit"] {
  opacity: 0.6;
  cursor: wait;
}

html.sf-modal-open {
  overflow: hidden;
}

.sf-modal[hidden] {
  display: none;
}

.sf-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.sf-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.sf-modal-box {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: 100%;
  overflow-y: auto;
  box-sizing: border-box;
  padding: 40px 30px 30px;
  background: #9cc6fb;
  color: #292b2c;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.sf-modal-box:focus {
  outline: none;
}

.sf-modal-box h2 {
  font-size: 30px;
  font-weight: bold;
  line-height: 1.3;
  margin: 0 0 10px;
}

.sf-modal-box h3 {
  font-size: 20px;
  font-weight: normal;
  margin: 0 0 25px;
}

.sf-modal-close {
  position: absolute;
  top: 6px;
  right: 10px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #0946c1;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.sf-modal-close:hover,
.sf-modal-close:focus-visible {
  color: #073799;
}

.sf-modal-close:focus-visible,
.sf-submit:focus-visible,
.sf-modal-form input:focus-visible {
  outline: 3px solid #0946c1;
  outline-offset: 2px;
}

.sf-modal-form input[type="email"] {
  padding: 13px 17px 10px;
  font-size: 18px;
  margin: 0 0 15px;
  border: 0;
  color: darkblue;
  background: #ffe29e;
  font-weight: bold;
  width: 100%;
  display: block;
  box-sizing: border-box;
}

.sf-modal-form input[type="email"]::placeholder {
  color: #00008b;
  opacity: 1;
}

.sf-submit {
  padding: 13px 17px 10px;
  font-size: 18px;
  margin-bottom: 15px;
  border: 0;
  background: #0946c1;
  color: #fff;
  font-weight: bold;
  width: 100%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.sf-submit:hover {
  background: #073799;
}

/* "Check your email" pop-up */
.sf-confirm-box {
  padding-top: 36px;
}

.sf-confirm-text {
  margin: 20px 0 6px;
  font-size: 26px;
  font-weight: bold;
  line-height: 1.35;
}

.sf-envelope {
  display: block;
  width: 150px;
  height: auto;
  margin: 0 auto;
  overflow: visible;
}

.sf-envelope .sf-env-back { fill: #0946c1; }
.sf-envelope .sf-env-letter { fill: #fff; }
.sf-envelope .sf-env-line { stroke: #9cc6fb; stroke-width: 3; stroke-linecap: round; }
.sf-envelope .sf-env-front { fill: #1d5fe0; }
.sf-envelope .sf-env-flap { stroke: #ffe29e; stroke-width: 3; stroke-linejoin: round; }

@media (prefers-reduced-motion: no-preference) {
  .sf-envelope.sf-play {
    animation: sf-bob 2.4s ease-in-out 0.9s infinite;
  }
  .sf-envelope.sf-play .sf-env-letter,
  .sf-envelope.sf-play .sf-env-line {
    animation: sf-letter-rise 0.9s ease-out both;
  }
}

@keyframes sf-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes sf-letter-rise {
  from { transform: translateY(22px); }
  to { transform: translateY(0); }
}

.home-ebook-wrapper .sf-status {
  margin-top: 0;
  color: #292b2c;
}

.home-ebook-wrapper .sf-status-error {
  color: #8a0019;
}

.sf-modal-box .sf-status-error {
  color: #8a0019;
}

/* Newsletter pop-up: live ccolor.com's photo design. "cover" keeps the photo over the whole box at any height
   (live sized it to the width only, which left black bands when errors made the box taller). The box never
   outgrows the screen and never scrolls itself; its content scrolls inside the photo (.sf-modal-body), so the
   close button always stays in the corner. */
#newsletter-modal .sf-modal-box {
  display: flex;
  flex-direction: column;
  max-width: 575px;
  padding: 0;
  overflow: hidden;
  /* ADO 7466 (Ken, 2026-11-03: "can we just do a light faded mask from the top edge?"): a soft dark layer above the photo, strongest at the top edge
     behind the white title and fading to nothing by 55% of the box height. It replaces the boxed shade ADO 6552 put on the title. 0.45 keeps white text 3:1
     over pure white. The px stop covers the title zone (the box grows with errors, so the fade is measured from the top, not the bottom); the 50% cap
     keeps it inside the fade on very short screens. */
  background: #0d153b url("../images/newsletter-popup.jpg") center / cover no-repeat; /* fallback if an engine rejects the two-layer line below */
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.45) 0, rgba(0, 0, 0, 0.45) min(160px, 50%), rgba(0, 0, 0, 0) 55%) center / 100% 100% no-repeat,
    #0d153b url("../images/newsletter-popup.jpg") center / cover no-repeat;
  color: #fff;
}

#newsletter-modal .sf-modal-body {
  position: relative; /* holds the off-screen trap field, so it cannot stretch the photo box */
  flex: 1 1 auto;
  min-height: 0;
  padding: 50px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.7) transparent;
}

#newsletter-modal .sf-modal-close {
  z-index: 1;
}

#newsletter-modal .sf-modal-box h2,
#newsletter-modal .sf-modal-box h3 {
  color: #fff;
  font-weight: 800;
  text-shadow: 2px 4px 4px rgba(40, 0, 0, 0.6);
  overflow-wrap: break-word;
}

#newsletter-modal .sf-modal-box h2 {
  font-size: 38px;
  line-height: 1.2;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 110px;
}

#newsletter-modal .sf-modal-box h3 {
  font-size: 22px;
  line-height: 1.3;
  margin: 0 0 20px;
}

#newsletter-modal .sf-modal-close {
  color: #fff;
  font-size: 40px;
  text-shadow: 1px 2px 3px rgba(0, 0, 0, 0.6);
}

#newsletter-modal .sf-modal-close:hover,
#newsletter-modal .sf-modal-close:focus-visible {
  color: #dfe7fb;
}

#newsletter-modal .sf-modal-close:focus-visible,
#newsletter-modal .sf-submit:focus-visible,
#newsletter-modal .sf-modal-form input:focus-visible {
  outline-color: #fff;
}

#newsletter-modal .sf-modal-form input[type="email"],
#newsletter-modal .sf-submit,
#newsletter-modal .sf-status {
  width: 100%;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

#newsletter-modal .sf-modal-form input[type="email"] {
  min-height: 55px;
  margin-bottom: 12px;
  padding: 12px 10px 10px;
  border: 1px solid rgba(119, 138, 193, 0.3);
  border-radius: 0;
  background: #4269c4; /* live's #6287da with white text is 3.5:1; this is 5.2:1 */
  color: #fff;
  text-align: center;
}

#newsletter-modal .sf-modal-form input[type="email"]::placeholder {
  color: #fff;
  opacity: 1;
}

#newsletter-modal .sf-submit {
  display: block;
  min-height: 55px;
  margin-bottom: 0;
  background: #0d153b;
  color: #fff;
}

#newsletter-modal .sf-submit:hover {
  background: #1d2b6b;
}

#newsletter-modal .sf-turnstile.sf-turnstile-shown {
  margin-bottom: 12px;
}

#newsletter-modal .sf-status {
  margin-bottom: 12px;
  color: #fff;
  text-shadow: 1px 2px 3px rgba(0, 0, 0, 0.7);
  overflow-wrap: anywhere;
}

#newsletter-modal .sf-status-error {
  padding: 8px 10px;
  background: #fff;
  color: #b00020;
  text-shadow: none;
}

/* Phones: 50px would leave the email box and button too narrow; the top keeps room for the close button. */
@media (max-width: 599px) {
  #newsletter-modal .sf-modal-body {
    padding: 50px 24px 24px;
  }
  #newsletter-modal .sf-modal-box h2 {
    font-size: 30px;
    margin-bottom: 80px;
  }
  #newsletter-modal .sf-modal-box h3 {
    font-size: 20px;
  }
}

/* app-launch pop-up look: start */
/* ADO 5404 round B: the app-launch pop-up, Mockup 5B as Ken and Lynette approved it (DECISIONS-5404.md items 1, 2, 6, 11, 12, 13): a full-size picture slot
   with a text card on the right, and on phones (767 px and below) the card at the bottom. Every rule is under #app-launch-modal, so no shared .sf-* rule changes.
   The font is the site's own (assets/css/base.css); nothing here sets a font family. Placed before the short-screens rule so it stays with the pop-up rules.
   PANEL COLOUR (DECISIONS item 2): #bccbe6 is the main colour of the picture (hue about 219) at HLS lightness 0.82 and saturation 0.45. For another picture, take that
   picture's main colour, keep its hue, use the same lightness 0.82 and saturation 0.45, put the result in --app-launch-panel, then re-check: dark text on it 4.5:1 or
   more, and the blue button (#0d55d2) against it 3:1 or more. The picture is set by the <style> in includes/app-launch-popup.php; the slot's grey (#bbb) shows while it loads. */
#app-launch-modal {
  --app-launch-panel: #bccbe6;
}

/* The box never outgrows the screen; the card scrolls inside it, so the close button stays in the corner (as the newsletter pop-up does). */
#app-launch-modal .sf-modal-box {
  max-width: 920px;
  height: 580px;
  max-height: 100%;
  padding: 0;
  overflow: hidden;
  background: #bbb;
  color: #0a0a0a;
  text-align: left;
}

/* Ken's approved crop: the picture sits 265 px left of the box's edge and is 1187 px wide. */
#app-launch-modal .app-launch-slot {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -265px;
  width: 1187px;
  background-color: #bbb;
  background-position: 50% 6%;
  background-repeat: no-repeat;
  background-size: cover;
}

#app-launch-modal .sf-modal-close {
  z-index: 2;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 28px;
}

#app-launch-modal .sf-modal-close:hover,
#app-launch-modal .sf-modal-close:focus-visible {
  color: #fff;
}

#app-launch-modal .sf-modal-body {
  position: absolute;
  z-index: 1;
  top: 30px;
  right: 30px;
  bottom: 30px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 400px;
  max-width: calc(100% - 60px);
  padding: 32px 34px 22px;
  background: var(--app-launch-panel);
  color: #0a0a0a;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
}

/* The two empty ends share the spare height, so short content sits in the middle and tall content scrolls from its top. */
#app-launch-modal .sf-modal-body::before,
#app-launch-modal .sf-modal-body::after {
  content: "";
  flex: 1 1 0;
}

#app-launch-modal .sf-modal-body > * {
  flex: none;
}

#app-launch-modal .app-launch-eyebrow {
  margin: 0 0 8px;
  color: #4a4a4a;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
}

#app-launch-modal .sf-modal-box h2 {
  margin: 0 0 14px;
  font-size: 34px;
  line-height: 1.15;
}

#app-launch-modal .app-launch-nw {
  white-space: nowrap;
}

#app-launch-modal .app-launch-points {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

#app-launch-modal .app-launch-points li {
  position: relative;
  margin: 0 0 9px;
  padding: 0 0 0 34px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

#app-launch-modal .app-launch-icon {
  position: absolute;
  top: -0.3em;
  left: 0;
  width: 22px;
  height: 22px;
  color: #0d55d2;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#app-launch-modal .app-launch-icon .d {
  fill: currentColor;
  stroke: none;
}

#app-launch-modal .app-launch-ask {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: normal;
  line-height: 1.35;
}

#app-launch-modal .sf-modal-form {
  display: flex;
  flex-direction: column;
  margin: 0;
}

#app-launch-modal .sf-modal-form input[type="email"] {
  min-height: 50px;
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid #4a4a4a;
  border-radius: 0;
  background: #fff;
  color: #0a0a0a;
  font-size: 16px;
  font-weight: normal;
  text-align: left;
}

#app-launch-modal .sf-modal-form input[type="email"]::placeholder {
  color: #666;
  opacity: 1;
}

/* The Cloudflare check box (compact, 150 x 140) takes room only while Cloudflare needs the visitor. */
#app-launch-modal .sf-turnstile {
  justify-content: flex-start;
  margin: 0;
}

#app-launch-modal .sf-turnstile.sf-turnstile-shown {
  margin-bottom: 12px;
}

#app-launch-modal .sf-status {
  margin: 0 0 12px;
  font-size: 14px;
  text-align: left;
}

#app-launch-modal .sf-status-error {
  color: #8a0019;
}

#app-launch-modal .sf-status-success {
  color: #145a24;
}

#app-launch-modal .sf-status-busy {
  color: #073799;
}

/* Subscribe is the site's button (.cta-btn, .cta-btn-light on this light panel). footer.css loads after components.css, so the ring is restated here. */
/* ADO 6468 (Ken, 10-28): Subscribe as wide as the email field at every size. */
#app-launch-modal .cta-btn {
  align-self: stretch;
}

/* ADO 6468: capitals centred by ADO 5994's trim and add-back (components.css:50-59), on the label span inside this button only (the button itself keeps text-box none). */
@supports (text-box: trim-both cap alphabetic) {
  #app-launch-modal .cta-btn {
    --cta-trim-pad: calc((1lh - 1cap) / 2);
  }
  #app-launch-modal .cta-btn > span {
    display: block;
    text-box: trim-both cap alphabetic;
  }
}

#app-launch-modal .cta-btn:focus-visible {
  outline: 3px solid #0946c1;
  outline-offset: 2px;
}

#app-launch-modal .app-launch-privacy {
  margin: 10px 0 0;
  color: #4a4a4a;
  font-size: 12.5px;
  line-height: 1.4;
}

#app-launch-modal .app-launch-privacy a {
  color: inherit;
  text-decoration: underline;
}

#app-launch-modal .app-launch-privacy a:focus-visible {
  outline: 3px solid #0946c1;
  outline-offset: 2px;
}

@media (max-width: 767px) { /* mobile breakpoint */
  #app-launch-modal .sf-modal-box {
    height: 640px;
  }
  #app-launch-modal .app-launch-slot {
    right: 0;
    left: 0;
    width: auto;
    background-position: 50% 0;
  }
  /* The card sits at the bottom; its top keeps room for the close button, and it scrolls inside when the screen is short. */
  #app-launch-modal .sf-modal-body {
    top: auto;
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
    max-width: none;
    max-height: calc(100% - 64px);
    padding: 18px 18px 12px;
  }
  #app-launch-modal .app-launch-eyebrow {
    margin-bottom: 5px;
    font-size: 11px;
  }
  #app-launch-modal .sf-modal-box h2 {
    margin-bottom: 8px;
    font-size: 26px;
  }
  #app-launch-modal .app-launch-points {
    margin-bottom: 10px;
  }
  #app-launch-modal .app-launch-points li {
    margin-bottom: 6px;
    padding-left: 30px;
    font-size: 14px;
  }
  #app-launch-modal .app-launch-icon {
    width: 19px;
    height: 19px;
  }
  #app-launch-modal .app-launch-ask {
    margin-bottom: 8px;
    font-size: 14px;
  }
  #app-launch-modal .sf-modal-form input[type="email"] {
    min-height: 46px;
  }
}
/* app-launch pop-up look: end */

/* Short screens (landscape phones): less gap under the title so the form is reachable. */
@media (max-height: 640px) {
  #newsletter-modal .sf-modal-box h2 {
    margin-bottom: 40px;
  }
}

/* ADO 5627 (Ken, 2026-10-24: "on the static site on mobile, the footer graphic that launches the popup should just be the popup embedded in the page itself like it is on ccolor.com"
   and "the cloudflare check should not be visible unless needed"). Phones only, 767 px and below: the sign-up form in the footer. Written after the pop-up's rules so it comes after the
   shared .sf-* rules it refines; the footer form has no .sf-modal-form, so the pop-up's field and ring rules do not reach it and are restated here. Q1 A (Ken): the pop-up's own photo behind it. */
@media (max-width: 767px) {
  .footer-phone-signup {
    display: block;
    position: relative; /* holds the off-screen trap field */
    padding: 40px 24px;
    text-align: center;
    color: #fff;
    background: #0d153b url("../images/newsletter-popup.jpg") center / cover no-repeat;
  }

  .footer-phone-signup .footer-signup-title {
    margin: 0 0 80px;
    font-size: 26px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 2px 4px 4px rgba(40, 0, 0, 0.6);
    overflow-wrap: break-word;
    /* ADO 6552 (Ken, Inbox -912: "Both"): the same soft shade as the pop-up's title. */
    background: rgba(0, 0, 0, 0.45);
    box-shadow: 0 0 20px 16px rgba(0, 0, 0, 0.45);
  }

  .footer-phone-signup .footer-signup-sub {
    margin: 0 0 20px;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 800;
    color: #fff;
    text-shadow: 2px 4px 4px rgba(40, 0, 0, 0.6);
    overflow-wrap: break-word;
  }

  .footer-phone-signup input[type="email"],
  .footer-phone-signup .sf-submit,
  .footer-phone-signup .sf-status {
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }

  .footer-phone-signup input[type="email"] {
    display: block; /* an inline-block field adds a descender gap under it */
    min-height: 55px;
    margin-bottom: 12px;
    padding: 12px 10px 10px;
    font-size: 18px;
    border: 1px solid rgba(119, 138, 193, 0.3);
    border-radius: 0;
    background: #4269c4; /* white text on it is 5.2:1 */
    color: #fff;
    text-align: center;
  }

  .footer-phone-signup input[type="email"]::placeholder {
    color: #fff;
    opacity: 1;
  }

  .footer-phone-signup input[type="email"]:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
  }

  .footer-phone-signup .sf-submit {
    display: block;
    min-height: 55px;
    margin-bottom: 0;
    font-size: 18px;
    font-weight: 700;
    background: #0d153b;
    color: #fff;
  }

  .footer-phone-signup .sf-submit:hover {
    background: #1d2b6b;
  }

  .footer-phone-signup .sf-submit:focus-visible {
    outline-color: #fff;
  }

  /* The check box takes room only while Cloudflare needs the visitor (site-forms.js sets sf-turnstile-shown). */
  .footer-phone-signup .sf-turnstile.sf-turnstile-shown {
    margin-bottom: 12px;
  }

  .footer-phone-signup .sf-status {
    margin-bottom: 12px;
    color: #fff;
    text-shadow: 1px 2px 3px rgba(0, 0, 0, 0.7);
    overflow-wrap: anywhere;
  }

  .footer-phone-signup .sf-status-error {
    padding: 8px 10px;
    background: #fff;
    color: #b00020;
    text-shadow: none;
  }
}
