/* ============================================================
   Your Success — shared component styles
   Ported from the approved design mockup. All classes are
   emitted by the plugin's custom Elementor widgets.
   ============================================================ */

/* ============ TOKENS ============ */
:root {
  --ys-navy: #1b2a4e;
  --ys-navy-deep: #142042;
  --ys-cream: #f5efe0;
  --ys-cream-light: #faf6ec;
  --ys-cream-warm: #ece0c4;
  --ys-gold: #c9a961;
  --ys-gold-light: #e2c280;
  --ys-gold-dark: #8a6f2e;
  --ys-serif: 'Cormorant Garamond', Georgia, serif;
  --ys-sans: 'Open Sans', system-ui, sans-serif;
  --ys-gold-gradient: linear-gradient(180deg, #f0d391 0%, #d6b878 35%, #c9a961 65%, #a8884a 100%);

  /* Purpose-based tokens (accessibility pass).
     Bright gold (#c9a961/#b89240) stays for borders & ornament only.
     Small text links on cream use a darker gold/brown that meets 4.5:1. */
  --ys-link-on-light: #7a5f24;   /* ≥4.5:1 on cream surfaces */
  --ys-text-muted: #4a4433;      /* muted body text on cream */
  --ys-focus-on-light: #142042;  /* focus ring on cream/light */
  --ys-focus-on-dark: #ffffff;   /* focus ring on navy */
}

/* Scope helpers so we don't fight the theme globally */
.ys-block, .ys-block *, .ys-block *::before, .ys-block *::after { box-sizing: border-box; }
.ys-block { font-family: var(--ys-sans); }
.ys-block img { display: block; max-width: 100%; }
.ys-block ul { list-style: none; margin: 0; padding: 0; }
.ys-block a { text-decoration: none; color: inherit; }
.ys-container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* ------------------------------------------------------------
   Full-bleed layout: on the Elementor Canvas homepage our widgets
   own their own inner width (.ys-container / *-inner), so we strip
   Elementor's boxed container + column padding and let every
   section background span the whole viewport.
   ------------------------------------------------------------ */
html.ys-canvas, .page-template-elementor_canvas { overflow-x: hidden; }
.page-template-elementor_canvas .elementor-section > .elementor-container {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.page-template-elementor_canvas .elementor-row { margin-left: 0 !important; margin-right: 0 !important; }
.page-template-elementor_canvas .elementor-column-gap-default > .elementor-column > .elementor-element-populated { padding: 0 !important; }
.page-template-elementor_canvas .elementor-widget-wrap { align-content: flex-start; }
.page-template-elementor_canvas .elementor-widget:not(:last-child) { margin-bottom: 0; }

/* ============ HEADER ============ */
.ys-site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ys-cream-light);
  border-bottom: 1px solid rgba(201,169,97,0.18);
}
.ys-header-inner {
  max-width: 1320px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 40px; gap: 40px;
}
.ys-brand { display: flex; align-items: center; flex-shrink: 0; }
.ys-site-header .ys-brand-logo {
  display: block;
  height: 56px !important;
  width: auto !important;
  max-width: 100%;
  object-fit: contain;
}
.ys-site-nav { display: flex; gap: 38px; flex: 1; justify-content: flex-end; padding-right: 30px; }
.ys-site-nav a {
  font-family: var(--ys-sans);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em;
  color: var(--ys-navy); padding: 6px 0; transition: color .2s;
}
.ys-site-nav a:hover { color: #b89240; }
.ys-phone-pill {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1.5px solid #b89240; border-radius: 999px;
  padding: 10px 22px; font-weight: 700; font-size: 0.9rem;
  color: var(--ys-navy); background: transparent;
  transition: background .2s, color .2s; flex-shrink: 0;
}
.ys-phone-pill svg { color: #b89240; flex-shrink: 0; }
.ys-phone-pill:hover { background: #b89240; color: #fff; }
.ys-phone-pill:hover svg { color: #fff; }

/* Hamburger toggle — hidden on desktop, shown on mobile.
   Scoped to .ys-site-header for specificity over theme `button` rules. */
.ys-site-header .ys-menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 1.5px solid #b89240;
  border-radius: 8px;
  color: var(--ys-navy);
  padding: 9px 14px;
  cursor: pointer;
  font-family: var(--ys-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.ys-menu-toggle-bars { display: inline-flex; flex-direction: column; gap: 4px; width: 18px; }
.ys-menu-toggle-bars span { height: 2px; background: #b89240; border-radius: 2px; transition: transform .2s, opacity .2s; }
.ys-nav-open .ys-menu-toggle-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.ys-nav-open .ys-menu-toggle-bars span:nth-child(2) { opacity: 0; }
.ys-nav-open .ys-menu-toggle-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Phone link that lives inside the mobile drawer */
.ys-nav-phone { display: none; }

@media (max-width: 980px) {
  .ys-header-inner {
    flex-wrap: nowrap;
    gap: 16px;
    padding: 12px 20px;
    /* Positioning context for the drop-down drawer. */
    position: relative;
  }
  .ys-site-header .ys-menu-toggle { display: inline-flex; margin-left: auto; }
  .ys-phone-pill { display: none; }

  /* Drawer: a full-width panel that drops below the header bar.
     Absolutely positioned so it never fights the flex row for space. */
  .ys-site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    flex: none;
    padding: 0 20px;
    background: var(--ys-cream-light);
    border-bottom: 1px solid rgba(184,146,64,0.25);
    box-shadow: 0 14px 26px rgba(20,30,50,0.10);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height .3s ease, opacity .2s ease, visibility .3s ease;
  }
  .ys-site-nav.is-open {
    max-height: calc(100vh - 68px);
    opacity: 1;
    visibility: visible;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .ys-site-nav a {
    padding: 15px 4px;
    border-bottom: 1px solid rgba(184,146,64,0.18);
    font-size: 0.85rem;
  }
  .ys-site-nav a:last-child { border-bottom: 0; }
  .ys-nav-phone {
    display: inline-flex; align-items: center; gap: 10px;
    color: #7a5f24; font-weight: 700; letter-spacing: 0.02em;
  }
  .ys-nav-phone svg { color: #b89240; }
}

/* ============ CONTACT ============ */
.ys-contact {
  background: linear-gradient(180deg, #efe5cc 0%, #e9ddbf 100%);
  padding: 60px 0 80px;
  position: relative;
}
.ys-contact-inner { max-width: 720px; }
.ys-contact-title { justify-content: flex-start; }
.ys-contact-form { display: flex; flex-direction: column; gap: 18px; max-width: 520px; }
.ys-field-row { display: flex; flex-direction: column; gap: 6px; }
.ys-field-label {
  font-family: var(--ys-sans);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ys-navy);
  letter-spacing: 0.01em;
}
.ys-req { color: #a8442f; }
.ys-field {
  width: 100%;
  border: 1px solid rgba(27,42,78,0.3);
  background: #fbf7ee;
  border-radius: 4px;
  padding: 13px 16px;
  font-family: var(--ys-sans);
  font-size: 0.95rem;
  color: var(--ys-navy);
  transition: border-color .2s, box-shadow .2s;
}
.ys-field::placeholder { color: rgba(27,42,78,0.45); }
.ys-field:focus-visible {
  outline: none;
  border-color: #7a5f24;
  box-shadow: 0 0 0 3px rgba(184,146,64,0.35);
}
.ys-field[aria-invalid="true"] {
  border-color: #a8442f;
  box-shadow: 0 0 0 3px rgba(168,68,47,0.15);
}
.ys-field-area { resize: vertical; min-height: 110px; }
.ys-field-error {
  margin: 0;
  color: #8a2c1c;
  font-size: 0.82rem;
  font-weight: 600;
}
.ys-contact-consent {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--ys-navy);
  opacity: 0.8;
  max-width: 520px;
  margin: 0;
}
.ys-contact-consent a { color: var(--ys-link-on-light); text-decoration: underline; }
.ys-contact-form .ys-btn-gold { align-self: flex-start; border: none; }
.ys-contact-form .ys-btn-gold[aria-busy="true"] { opacity: 0.7; cursor: progress; }
.ys-contact-status:empty { display: none; }
.ys-contact-thanks {
  background: rgba(90,140,80,0.14);
  border: 1px solid #5a8c50;
  color: #2f5a2a;
  padding: 12px 18px; border-radius: 4px; margin: 0 0 18px;
  font-weight: 600; max-width: 520px;
}
.ys-contact-error-summary {
  background: rgba(168,68,47,0.12);
  border: 1px solid #a8442f;
  color: #8a2c1c;
  padding: 12px 18px; border-radius: 4px; margin: 0 0 18px;
  font-weight: 600; max-width: 520px;
}

/* ============ SHARED GOLD BUTTON ============ */
.ys-btn-gold {
  display: inline-block;
  background: var(--ys-gold-gradient);
  color: var(--ys-navy-deep);
  font-family: var(--ys-sans);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 13px 34px;
  border-radius: 4px;
  border: 1px solid var(--ys-gold-dark);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 4px 10px rgba(0,0,0,0.18);
  transition: transform .15s, filter .15s;
}
.ys-btn-gold:hover { transform: translateY(-1px); filter: brightness(1.05); }

.ys-btn-outline-gold {
  display: inline-flex; align-items: center; gap: 12px;
  border: 1.5px solid #b89240;
  border-radius: 999px;
  padding: 13px 30px;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: #b89240;
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: color .25s, background .25s, box-shadow .25s, transform .2s;
  text-transform: uppercase;
}
.ys-btn-outline-gold::before {
  content: ""; position: absolute; inset: 3px;
  border: 1px solid rgba(184,146,64,0.35);
  border-radius: 999px; pointer-events: none;
}
.ys-btn-outline-gold .arr { font-size: 1.4em; line-height: 0.5; transition: transform .25s; }
.ys-btn-outline-gold:hover {
  background: #b89240; color: #fff;
  box-shadow: 0 8px 22px rgba(184,146,64,0.4);
  transform: translateY(-2px);
}
.ys-btn-outline-gold:hover .arr { transform: translateX(4px); }

/* ============ HERO ============ */
.ys-hero {
  position: relative;
  min-height: 580px;
  display: flex; align-items: center;
  color: #fff;
  overflow: hidden;
}
.ys-hero-bg {
  position: absolute; inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.ys-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,32,66,0.78) 0%, rgba(20,32,66,0.5) 35%, rgba(20,32,66,0.1) 60%, rgba(20,32,66,0) 80%);
}
.ys-hero-inner { position: relative; z-index: 2; padding: 90px 28px; width: 100%; max-width: 1180px; margin: 0 auto; }
.ys-hero-copy { max-width: 560px; }
.ys-hero-copy h1 {
  font-family: var(--ys-serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 5.2vw, 4.2rem);
  line-height: 1.05;
  margin: 0 0 28px;
  letter-spacing: 0.005em;
  color: #fff;
}
.ys-hero-copy p {
  font-size: 1.05rem;
  margin: 0 0 36px;
  opacity: 0.95;
  line-height: 1.6;
  max-width: 34em;
}
.ys-hero-actions { display: flex; align-items: center; gap: 14px 26px; flex-wrap: wrap; }
.ys-hero-secondary {
  display: inline-flex; align-items: center; gap: 6px;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255,255,255,0.5);
  padding: 4px 2px;
  transition: border-color .2s, gap .2s;
}
.ys-hero-secondary .arr { font-size: 1.3em; line-height: 0.6; }
.ys-hero-secondary:hover { border-color: #fff; gap: 10px; }

/* ============ AUDIENCE CHOOSER ============ */
.ys-audience {
  background: var(--ys-cream-light);
  padding: 56px 0 60px;
  border-bottom: 1px solid rgba(184,146,64,0.18);
}
.ys-audience-head { text-align: center; margin-bottom: 34px; }
.ys-audience-eyebrow {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em;
  color: var(--ys-link-on-light); margin-bottom: 10px;
}
.ys-audience-title {
  font-family: var(--ys-serif);
  font-weight: 600;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: var(--ys-navy);
  margin: 0;
}
.ys-audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.ys-audience-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  background: #fff;
  border: 1px solid rgba(27,42,78,0.10);
  border-radius: 8px;
  padding: 24px 22px 44px;
  color: var(--ys-navy);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ys-audience-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px -12px rgba(20,32,66,0.4);
  border-color: #b89240;
}
.ys-audience-ico { width: 40px; height: 40px; color: #b89240; }
.ys-audience-label { font-family: var(--ys-serif); font-weight: 700; font-size: 1.3rem; color: var(--ys-navy); }
.ys-audience-desc { font-size: 0.86rem; color: var(--ys-text-muted); line-height: 1.4; }
.ys-audience-arrow {
  position: absolute; right: 18px; bottom: 14px;
  color: #b89240; font-size: 1.6rem; line-height: 1;
  transition: transform .2s ease;
}
.ys-audience-card:hover .ys-audience-arrow { transform: translateX(4px); }

/* ============ OUTCOMES / REASSURANCE ============ */
.ys-outcomes {
  background: var(--ys-cream-light);
  padding: 64px 0 70px;
}
.ys-outcomes-title { justify-content: flex-start; }
.ys-outcomes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px 34px;
  margin-bottom: 30px;
}
.ys-outcome { display: flex; gap: 16px; align-items: flex-start; }
.ys-outcome-ico { width: 36px; height: 36px; flex-shrink: 0; color: #b89240; }
.ys-outcome-h {
  font-family: var(--ys-serif);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--ys-navy);
  margin: 0 0 4px;
}
.ys-outcome-t { font-size: 0.9rem; line-height: 1.55; color: var(--ys-text-muted); margin: 0; }
.ys-outcomes-promise {
  display: inline-block;
  background: rgba(184,146,64,0.12);
  border-left: 3px solid #b89240;
  padding: 12px 18px;
  font-weight: 600;
  color: var(--ys-navy);
  border-radius: 0 4px 4px 0;
  margin: 0;
}

/* ============ NAVY-BG SECTIONS ============ */
.ys-navy-section {
  position: relative;
  background-color: var(--ys-navy);
  background-image: url("../images/navy-texture.png");
  background-repeat: repeat;
  background-size: 500px 500px;
  color: var(--ys-cream);
  overflow: hidden;
}
.ys-navy-section.ys-sectors { padding: 70px 0 90px; }
.ys-navy-section.ys-support { padding: 30px 0 80px; }

/* ============ SECTION TITLE ============ */
.ys-section-title {
  display: flex; align-items: center; justify-content: center;
  gap: 26px;
  font-family: var(--ys-serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  color: var(--ys-cream);
  margin: 0 0 50px;
  position: relative; z-index: 2;
  text-align: center;
}
.ys-section-title.ys-on-light { color: var(--ys-navy); }
.ys-section-title .ys-rule {
  height: 1.5px; width: 90px;
  background: var(--ys-gold);
  display: inline-block;
}
.ys-section-title.ys-on-light .ys-rule { background: #b89240; }

/* ============ SECTOR CARDS ============ */
.ys-sector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 44px;
  margin-top: 70px;
  position: relative; z-index: 2;
  align-items: stretch;
}
.ys-sector-card {
  background: radial-gradient(ellipse at top, #fbf6e7 0%, #f5efe0 55%, #ebe0c4 100%);
  padding: 84px 30px 28px;
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 24px 50px -10px rgba(0,0,0,0.55),
    0 8px 18px rgba(0,0,0,0.25),
    inset 0 1px 0 rgba(255,255,255,0.6);
  transition: transform .4s ease, box-shadow .4s ease;
  isolation: isolate;
}
/* Single framing device: one whisper-quiet inner rule (corner brackets removed).
   Demoted from bright gold to a faint hairline so the frame reads as premium
   restraint, not ornament. */
.ys-sector-card::before {
  content: "";
  position: absolute; inset: 7px;
  border: 1px solid rgba(184,146,64,0.18);
  pointer-events: none;
  z-index: 4;
}
.ys-sector-card::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(ellipse at 30% 20%, rgba(138,111,46,0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(138,111,46,0.06) 0%, transparent 55%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80'><g fill='none' stroke='%238a6f2e' stroke-width='0.25' opacity='0.07'><circle cx='40' cy='40' r='30'/><circle cx='40' cy='40' r='20'/><circle cx='40' cy='40' r='10'/></g></svg>");
  background-size: auto, auto, 140px 140px;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: multiply;
}
.ys-sector-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 36px 70px -10px rgba(0,0,0,0.6),
    0 12px 24px rgba(0,0,0,0.3),
    0 0 0 1px rgba(184,146,64,0.4),
    inset 0 1px 0 rgba(255,255,255,0.7);
}
.ys-sector-card.is-featured {
  transform: translateY(-14px);
  background: radial-gradient(ellipse at top, #fdf9eb 0%, #f7f1e3 55%, #ede2c7 100%);
}
.ys-sector-card.is-featured:hover { transform: translateY(-22px); }

.ys-card-bracket { position: absolute; width: 28px; height: 28px; z-index: 5; pointer-events: none; }
.ys-card-bracket::before, .ys-card-bracket::after { content: ""; position: absolute; background: #b89240; }
.ys-card-bracket::before { width: 14px; height: 1.5px; }
.ys-card-bracket::after  { width: 1.5px; height: 14px; }
.ys-card-bracket--tl { top: 12px; left: 12px; }
.ys-card-bracket--tl::before { top: 0; left: 0; }
.ys-card-bracket--tl::after  { top: 0; left: 0; }
.ys-card-bracket--tr { top: 12px; right: 12px; }
.ys-card-bracket--tr::before { top: 0; right: 0; }
.ys-card-bracket--tr::after  { top: 0; right: 0; }
.ys-card-bracket--bl { bottom: 12px; left: 12px; }
.ys-card-bracket--bl::before { bottom: 0; left: 0; }
.ys-card-bracket--bl::after  { bottom: 0; left: 0; }
.ys-card-bracket--br { bottom: 12px; right: 12px; }
.ys-card-bracket--br::before { bottom: 0; right: 0; }
.ys-card-bracket--br::after  { bottom: 0; right: 0; }

.ys-card-emblem {
  position: absolute;
  top: -54px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 130px;
  filter: drop-shadow(0 14px 16px rgba(0,0,0,0.4)) drop-shadow(0 2px 4px rgba(0,0,0,0.3));
  z-index: 6;
  transition: transform .4s ease;
}
.ys-card-emblem svg { width: 100%; height: 100%; }
.ys-sector-card:hover .ys-card-emblem { transform: translateX(-50%) translateY(-4px); }

.ys-sector-card h3 {
  font-family: 'Cinzel', Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  color: var(--ys-navy);
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative; z-index: 3;
  min-height: 2.6em;
  display: flex; align-items: center; justify-content: center;
  white-space: nowrap;
  margin: 4px 0 0;
}
.ys-sector-card h3.wrap { white-space: normal; }
.ys-card-sub {
  font-family: var(--ys-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: #6b5424;
  margin-top: 6px;
  position: relative; z-index: 3;
  min-height: 1.4em;
  line-height: 1.2;
  letter-spacing: 0.01em;
}
.ys-ornament-divider {
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  margin: 22px auto 20px;
  width: 86%;
  position: relative; z-index: 3;
}
.ys-orn-line {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, #b89240 30%, #b89240 70%, transparent);
  opacity: 0.4;
}
/* Diamond ornament removed — the two hairlines read as one calm centered rule. */
.ys-orn-mark { display: none; }

.ys-sector-card ul {
  text-align: left;
  margin: 2px 0 22px;
  position: relative; z-index: 3;
  padding: 0 6px;
  flex: 1;
}
.ys-sector-card li {
  font-family: var(--ys-sans);
  font-size: 0.9rem;
  padding: 11px 0 11px 26px;
  position: relative;
  color: var(--ys-navy);
  line-height: 1.45;
  border-bottom: 1px solid rgba(27,42,78,0.07);
}
.ys-sector-card li:last-child { border-bottom: none; }
/* Benefit check instead of a heraldic diamond — reads "you get this",
   the educational tone, and keeps gold as a small warm accent. */
.ys-sector-card li::before {
  content: "\2713";
  position: absolute; left: 3px; top: 10px;
  color: var(--ys-link-on-light);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
}
.ys-card-cta {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  font-family: var(--ys-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ys-link-on-light);
  padding: 12px 20px;
  min-height: 44px;
  margin: 0 auto;
  position: relative; z-index: 3;
  transition: color .25s, gap .2s;
  width: fit-content;
  min-width: 44px;
}
.ys-card-cta .arr { font-family: serif; font-size: 1.4em; line-height: 0.6; transition: transform .25s; }
.ys-card-cta:hover { color: var(--ys-navy); gap: 12px; }
.ys-card-cta:hover .arr { transform: translateX(4px); }

/* "Popular" badge for the featured card (explains the emphasis). */
.ys-featured-badge {
  position: absolute;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  background: var(--ys-gold-gradient);
  color: var(--ys-navy-deep);
  font-family: var(--ys-sans);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 999px;
  border: 1px solid var(--ys-gold-dark);
  white-space: nowrap;
}

/* ============ IMAGE CARDS ============ */
.ys-image-card-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative; z-index: 2;
}
.ys-image-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
  display: block;
}
.ys-image-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ys-image-card:hover img { transform: scale(1.04); }
.ys-image-card-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(20,32,66,0.92) 0%, rgba(20,32,66,0.78) 70%, rgba(20,32,66,0.55) 100%);
  color: var(--ys-cream-light);
  text-align: center;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ys-image-card-title {
  font-family: var(--ys-serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.ys-image-card-action {
  font-family: var(--ys-sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: #f0d391;
  letter-spacing: 0.02em;
}
.ys-image-card-action .arr { font-size: 1.2em; line-height: 0.6; }

/* ============ TESTIMONIALS ============ */
.ys-testimonials {
  background: linear-gradient(180deg, #f3ebd6 0%, #efe5cc 100%);
  padding: 60px 0 70px;
  position: relative;
}
.ys-testimonials::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100'><g fill='none' stroke='%238a6f2e' stroke-width='0.3' opacity='0.07'><path d='M50 10 Q70 30 50 50 Q30 30 50 10 Z'/></g></svg>");
  background-size: 160px 160px;
  pointer-events: none;
}
.ys-testimonials .ys-container { position: relative; z-index: 2; max-width: 880px; }
.ys-block-title {
  display: flex; align-items: center; gap: 18px;
  font-family: var(--ys-serif);
  font-weight: 500;
  font-size: clamp(2rem, 3vw, 2.5rem);
  color: var(--ys-navy);
  margin: 0 0 22px;
  line-height: 1.15;
}
.ys-block-rule { display: inline-block; height: 1.5px; width: 70px; background: #b89240; }
.ys-testimonials blockquote {
  font-family: var(--ys-serif);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--ys-navy);
  position: relative;
  margin: 0;
}
.ys-guill {
  color: #b89240; font-size: 1.5em; font-weight: 600;
  margin-right: 4px; font-style: normal;
  display: inline-block; vertical-align: -2px;
}
.ys-testimonial-figure { margin: 0; }
.ys-testimonial-cite {
  margin-top: 16px;
  font-family: var(--ys-sans);
  font-style: normal;
  line-height: 1.4;
}
.ys-testimonial-cite strong { display: block; font-weight: 700; color: var(--ys-navy); font-size: 0.95rem; }
.ys-testimonial-role { display: block; color: var(--ys-text-muted); font-size: 0.85rem; }
.ys-testimonials-cta {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 24px;
  color: var(--ys-link-on-light);
  font-family: var(--ys-sans);
  font-weight: 700;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(122,95,36,0.4);
  padding-bottom: 3px;
  transition: gap .2s, border-color .2s;
}
.ys-testimonials-cta .arr { font-size: 1.3em; line-height: 0.6; }
.ys-testimonials-cta:hover { gap: 10px; border-color: var(--ys-link-on-light); }
.ys-testimonials blockquote strong { font-weight: 600; color: var(--ys-navy); }

/* ============ WHY / STATS ============ */
.ys-why {
  position: relative;
  padding: 100px 0 110px;
  background: radial-gradient(ellipse at top, #ffffff 0%, #faf6ec 50%, #f3ebd6 100%);
  overflow: hidden;
}
.ys-why::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'><g fill='none' stroke='%23b89240' stroke-width='0.35' opacity='0.07'><path d='M70 30 C 88 48 88 72 70 90 C 52 72 52 48 70 30 Z'/><circle cx='70' cy='60' r='3'/><path d='M70 90 L70 100'/><path d='M62 98 C 66 102 74 102 78 98'/></g></svg>");
  background-size: 200px 200px;
  pointer-events: none;
}
.ys-why-corner { position: absolute; width: 60px; height: 60px; z-index: 3; pointer-events: none; }
.ys-why-corner--tl { top: 28px; left: 28px; }
.ys-why-corner--tr { top: 28px; right: 28px; }
.ys-why-corner--bl { bottom: 28px; left: 28px; }
.ys-why-corner--br { bottom: 28px; right: 28px; }
.ys-why-grid {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 1.6fr;
  gap: 80px;
  align-items: center;
}
.ys-why-intro { position: relative; }
.ys-why-eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.18em;
  color: var(--ys-link-on-light); margin-bottom: 22px;
}
.ys-eyebrow-line { width: 32px; height: 1px; background: #b89240; display: inline-block; }
.ys-why-title {
  font-family: var(--ys-serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  color: var(--ys-navy);
  line-height: 1.05; margin: 0 0 18px; letter-spacing: 0.005em;
}
.ys-why-title em {
  font-style: italic;
  background: linear-gradient(180deg, #d6b878 0%, #b89240 60%, #7a5f24 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; font-weight: 600;
}
.ys-why-title-mark { color: #b89240; font-style: normal; font-weight: 400; opacity: 0.85; }
.ys-why-flourish { margin: 4px 0 22px; }
.ys-why-flourish svg { width: 180px; height: 22px; display: block; }
.ys-why-lead {
  font-family: var(--ys-sans);
  font-size: 0.98rem; line-height: 1.7;
  color: var(--ys-navy); opacity: 0.82;
  margin: 0 0 30px; max-width: 380px; font-weight: 300;
}
.ys-stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px 8px; position: relative;
}
.ys-stats-grid::before, .ys-stats-grid::after {
  content: ""; position: absolute; top: 12%; bottom: 12%; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(184,146,64,0.4) 20%, rgba(184,146,64,0.4) 80%, transparent);
}
.ys-stats-grid::before { left: 33.33%; }
.ys-stats-grid::after  { left: 66.66%; }
/* Statistics are informational, not interactive — no hover motion. */
.ys-stat-cell { position: relative; text-align: center; padding: 18px 14px; }
.ys-stat-cell:nth-child(-n+3)::after {
  content: ""; position: absolute; left: 15%; right: 15%; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184,146,64,0.4) 20%, rgba(184,146,64,0.4) 80%, transparent);
}
.ys-stat-ico { width: 40px; height: 40px; margin: 0 auto 12px; display: block; opacity: 0.9; }
.ys-stat-num {
  font-family: 'Cinzel', Georgia, serif;
  font-weight: 600;
  font-size: clamp(2.6rem, 4.5vw, 3.8rem);
  line-height: 1; letter-spacing: 0.01em;
  background: linear-gradient(180deg, #e2c280 0%, #c9a961 35%, #b89240 65%, #8a6f2e 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ys-stat-num .num-large { font-size: 0.88em; letter-spacing: 0; }
.ys-stat-num .num-mixed { display: inline-flex; align-items: baseline; gap: 4px; }
.ys-stat-num .num-mixed em { font-style: italic; font-size: 0.45em; font-weight: 500; font-family: var(--ys-serif); letter-spacing: 0.02em; }
.ys-stat-underline { display: block; width: 32px; height: 1px; background: #b89240; margin: 12px auto 10px; position: relative; }
.ys-stat-underline::before, .ys-stat-underline::after {
  content: ""; position: absolute; width: 4px; height: 4px; background: #b89240;
  transform: rotate(45deg); top: 50%; margin-top: -2px;
}
.ys-stat-underline::before { left: -7px; }
.ys-stat-underline::after { right: -7px; }
.ys-stat-label {
  font-family: var(--ys-sans); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.03em; color: var(--ys-navy); opacity: 0.9; line-height: 1.35;
}
.ys-stat-note {
  font-family: var(--ys-sans); font-size: 0.72rem; font-weight: 600;
  color: var(--ys-link-on-light); margin-top: 4px; letter-spacing: 0.01em;
}
.ys-stats-methodology {
  grid-column: 1 / -1;
  text-align: center;
  margin: 10px 0 0;
  font-size: 0.82rem;
}
.ys-stats-methodology a { color: var(--ys-link-on-light); text-decoration: underline; }

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .ys-image-card-grid { grid-template-columns: 1fr; }
  .ys-section-title { gap: 14px; font-size: clamp(1.7rem, 5vw, 2.2rem); }
  .ys-section-title .ys-rule { width: 50px; }
  .ys-why-grid { grid-template-columns: 1fr; gap: 50px; text-align: center; }
  .ys-why-intro { display: flex; flex-direction: column; align-items: center; }
  .ys-why-lead { text-align: center; }
  .ys-why-eyebrow { justify-content: center; }
  .ys-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .ys-stats-grid::before { left: 50%; }
  .ys-stats-grid::after { display: none; }
  .ys-stat-cell:nth-child(-n+3)::after { display: none; }
  .ys-stat-cell:nth-child(-n+4)::after {
    content: ""; position: absolute; left: 15%; right: 15%; bottom: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(184,146,64,0.4) 20%, rgba(184,146,64,0.4) 80%, transparent);
  }
}
@media (max-width: 560px) {
  .ys-stats-grid { grid-template-columns: 1fr; }
  .ys-stats-grid::before { display: none; }
  .ys-stat-cell:nth-child(-n+4)::after { display: none; }
  .ys-stat-cell { border-bottom: 1px solid rgba(184,146,64,0.3); }
  .ys-stat-cell:last-child { border-bottom: none; }
  .ys-hero { min-height: 520px; }
  .ys-hero-inner { padding: 70px 24px; }
  .ys-container { padding: 0 20px; }
}

/* ============================================================
   ACCESSIBILITY BASELINE (P2)
   ============================================================ */

/* Visible keyboard focus for every interactive control.
   Ring color adapts to the surface it sits on. */
.ys-site-nav a:focus-visible,
.ys-phone-pill:focus-visible,
.ys-nav-phone:focus-visible,
.ys-menu-toggle:focus-visible,
.ys-btn-gold:focus-visible,
.ys-btn-outline-gold:focus-visible,
.ys-card-cta:focus-visible,
.ys-image-card:focus-visible,
.ys-audience-card:focus-visible,
.ys-brand:focus-visible,
.ys-testimonials-cta:focus-visible {
  outline: 3px solid var(--ys-focus-on-light);
  outline-offset: 3px;
  border-radius: 3px;
}
/* On navy / dark backgrounds, use a light ring for contrast. */
.ys-navy-section .ys-card-cta:focus-visible,
.ys-navy-section .ys-image-card:focus-visible,
.ys-hero .ys-btn-gold:focus-visible,
.ys-site-header.ys-nav-open .ys-site-nav a:focus-visible {
  outline-color: var(--ys-focus-on-dark);
}

/* Respect reduced-motion requests: kill non-essential animation. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ys-sector-card,
  .ys-card-emblem,
  .ys-image-card img,
  .ys-stat-ico,
  .ys-btn-gold,
  .ys-btn-outline-gold,
  .ys-card-cta,
  .ys-card-cta .arr,
  .ys-btn-outline-gold .arr,
  .ys-site-nav,
  .ys-menu-toggle-bars span {
    transition: none !important;
    animation: none !important;
  }
  .ys-sector-card:hover,
  .ys-sector-card.is-featured,
  .ys-sector-card.is-featured:hover,
  .ys-image-card:hover img,
  .ys-sector-card:hover .ys-card-emblem,
  .ys-btn-gold:hover,
  .ys-btn-outline-gold:hover,
  .ys-card-cta:hover .arr {
    transform: none !important;
  }
}

/* ============================================================
   STUDENT ACCESS (login / register) + DASHBOARD
   Navy-led surfaces; gold reserved for the primary action.
   ============================================================ */

.ys-auth { padding: 64px 0; background: var(--ys-cream-light); }
.ys-auth-inner { display: flex; justify-content: center; }
.ys-auth-card {
  width: 100%;
  max-width: 460px;
  background: #fff;
  border: 1px solid rgba(201,169,97,0.28);
  border-radius: 10px;
  padding: 40px 36px;
  box-shadow: 0 18px 50px rgba(20,32,66,0.10);
}
.ys-auth-title {
  font-family: var(--ys-serif);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--ys-navy);
  margin: 0 0 6px;
  text-align: center;
}
.ys-auth-subtitle {
  font-size: 0.92rem;
  color: var(--ys-text-muted);
  text-align: center;
  margin: 0 0 24px;
  line-height: 1.5;
}

/* Honeypot — visually removed, still in the DOM for bots. */
.ys-hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

/* Status alerts */
.ys-auth-status:empty { display: none; }
.ys-auth-alert {
  padding: 12px 16px; border-radius: 6px; margin: 0 0 20px;
  font-size: 0.9rem; font-weight: 600; line-height: 1.4;
}
.ys-auth-alert-error { background: rgba(168,68,47,0.10); border: 1px solid #a8442f; color: #8a2c1c; }
.ys-auth-alert-ok { background: rgba(90,140,80,0.14); border: 1px solid #5a8c50; color: #2f5a2a; }

/* Tabs */
.ys-auth-tabs {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4px; margin: 0 0 26px;
  border-bottom: 1px solid rgba(27,42,78,0.14);
}
.ys-auth-tab {
  background: none; border: none; cursor: pointer;
  padding: 12px 8px; margin-bottom: -1px;
  font-family: var(--ys-sans); font-size: 0.9rem; font-weight: 700;
  letter-spacing: 0.02em; color: rgba(27,42,78,0.55);
  border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.ys-auth-tab:hover { color: var(--ys-navy); }
.ys-auth-tab.is-active { color: var(--ys-navy); border-bottom-color: var(--ys-gold); }

/* Forms (reuse .ys-field / .ys-field-row / .ys-field-error from the contact form) */
.ys-auth-form { display: flex; flex-direction: column; gap: 18px; }
.ys-auth-form .ys-btn-gold { width: 100%; text-align: center; border: none; margin-top: 4px; }
.ys-auth-form .ys-btn-gold[aria-busy="true"] { opacity: 0.7; cursor: progress; }

/* Password field with reveal toggle */
.ys-pass-wrap { position: relative; display: flex; }
.ys-pass-wrap .ys-field { padding-right: 92px; }
.ys-pass-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  font-family: var(--ys-sans); font-size: 0.78rem; font-weight: 700;
  color: var(--ys-link-on-light); padding: 6px 10px; border-radius: 4px;
}
.ys-pass-toggle:hover { text-decoration: underline; }

/* Checkbox rows */
.ys-check { display: flex; align-items: flex-start; gap: 10px; font-size: 0.86rem; color: var(--ys-navy); line-height: 1.45; cursor: pointer; }
.ys-check input { margin-top: 2px; width: 17px; height: 17px; accent-color: var(--ys-navy); flex-shrink: 0; }
.ys-check-consent { font-size: 0.82rem; color: var(--ys-text-muted); }
.ys-auth-row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ys-auth-inline-link { color: var(--ys-link-on-light); text-decoration: underline; font-size: 0.84rem; font-weight: 600; }

/* Signed-in mini panel */
.ys-auth-signedin { text-align: center; }
.ys-auth-hello { font-size: 1.05rem; color: var(--ys-navy); margin: 0 0 18px; }
.ys-auth-actions { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ys-auth-logout { margin: 0; }
.ys-auth-link-btn {
  background: none; border: none; cursor: pointer;
  font-family: var(--ys-sans); font-size: 0.86rem; font-weight: 600;
  color: var(--ys-link-on-light); text-decoration: underline; padding: 4px 6px;
}

/* Shared navy outline button (secondary action, e.g. logout in dashboard) */
.ys-btn-outline-navy {
  display: inline-block;
  background: transparent;
  color: var(--ys-navy);
  border: 1.5px solid rgba(27,42,78,0.35);
  border-radius: 4px;
  padding: 11px 24px;
  font-family: var(--ys-sans); font-weight: 700; font-size: 0.88rem;
  cursor: pointer; transition: background .2s, border-color .2s;
}
.ys-btn-outline-navy:hover { background: var(--ys-navy); color: #fff; border-color: var(--ys-navy); }

/* ---------- Dashboard ---------- */
.ys-dash { padding: 60px 0; background: var(--ys-cream-light); }
.ys-dash-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: 28px;
}
.ys-dash-title { font-family: var(--ys-serif); font-size: 2.2rem; font-weight: 700; color: var(--ys-navy); margin: 0 0 6px; }
.ys-dash-intro { font-size: 1rem; color: var(--ys-text-muted); margin: 0; max-width: 640px; line-height: 1.55; }

.ys-dash-account {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px;
  background: #fff; border: 1px solid rgba(201,169,97,0.28);
  border-radius: 8px; padding: 16px 22px; margin-bottom: 30px;
}
.ys-dash-account-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ys-gold-dark); }
.ys-dash-account-name { font-weight: 700; color: var(--ys-navy); }
.ys-dash-account-email { color: var(--ys-text-muted); font-size: 0.92rem; }

.ys-dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.ys-dash-tile {
  background: #fff; border: 1px solid rgba(201,169,97,0.28);
  border-radius: 10px; padding: 26px 24px;
  box-shadow: 0 10px 30px rgba(20,32,66,0.06);
}
.ys-dash-tile-title { font-family: var(--ys-serif); font-size: 1.3rem; font-weight: 700; color: var(--ys-navy); margin: 0 0 10px; }
.ys-dash-tile-text { font-size: 0.94rem; color: var(--ys-text-muted); line-height: 1.55; margin: 0 0 14px; }
.ys-dash-tile-link { font-weight: 700; font-size: 0.88rem; color: var(--ys-link-on-light); }
.ys-dash-tile-link:hover { text-decoration: underline; }

/* Signed-out gate */
.ys-dash-gate {
  max-width: 480px; margin: 0 auto; text-align: center;
  background: #fff; border: 1px solid rgba(201,169,97,0.28);
  border-radius: 10px; padding: 48px 36px;
  box-shadow: 0 18px 50px rgba(20,32,66,0.10);
}
.ys-dash-gate-title { font-family: var(--ys-serif); font-size: 1.7rem; font-weight: 700; color: var(--ys-navy); margin: 0 0 10px; }
.ys-dash-gate-text { color: var(--ys-text-muted); margin: 0 0 22px; line-height: 1.55; }

/* Focus rings for new interactive controls */
.ys-auth-tab:focus-visible,
.ys-pass-toggle:focus-visible,
.ys-auth-link-btn:focus-visible,
.ys-btn-outline-navy:focus-visible,
.ys-auth-inline-link:focus-visible,
.ys-dash-tile-link:focus-visible {
  outline: 3px solid var(--ys-focus-on-light);
  outline-offset: 2px;
  border-radius: 3px;
}

@media (max-width: 560px) {
  .ys-auth-card { padding: 30px 22px; }
  .ys-dash-head { flex-direction: column; }
}

/* ------------------------------------------------------------------
   Elementor global-kit overrides.
   The active kit styles bare <button>, <a> and form controls — including
   :hover/:focus/:active — at specificity up to (0,2,1) (e.g.
   `.elementor-kit-N button:hover`), which outranks our component rules
   and repaints them the kit's accent colour. We reach (0,3,0) via the
   `.ys-block.ys-auth` / `.ys-block.ys-dash` compound (both classes sit
   on the same <section>) and re-assert every interaction state.
   The contact form is deliberately left untouched.
   ------------------------------------------------------------------ */
.ys-block.ys-auth .ys-field,
.ys-block.ys-dash .ys-field { border: 1px solid rgba(27,42,78,0.3); background: #fbf7ee; color: var(--ys-navy); }
.ys-block.ys-auth .ys-field:focus,
.ys-block.ys-auth .ys-field:focus-visible,
.ys-block.ys-dash .ys-field:focus,
.ys-block.ys-dash .ys-field:focus-visible { border-color: #7a5f24; box-shadow: 0 0 0 3px rgba(184,146,64,0.35); outline: none; }
.ys-block.ys-auth .ys-field[aria-invalid="true"],
.ys-block.ys-dash .ys-field[aria-invalid="true"] { border-color: #a8442f; }

.ys-block.ys-auth .ys-auth-tab,
.ys-block.ys-auth .ys-auth-tab:hover,
.ys-block.ys-auth .ys-auth-tab:focus,
.ys-block.ys-auth .ys-auth-tab.is-active { background: none; box-shadow: none; }
.ys-block.ys-auth .ys-auth-tab { border: 0; border-bottom: 2px solid transparent; color: rgba(27,42,78,0.55); }
.ys-block.ys-auth .ys-auth-tab:hover { color: var(--ys-navy); }
.ys-block.ys-auth .ys-auth-tab.is-active { color: var(--ys-navy); border-bottom-color: var(--ys-gold); }

.ys-block.ys-auth .ys-btn-gold,
.ys-block.ys-dash .ys-btn-gold,
.ys-block.ys-auth .ys-btn-gold:hover,
.ys-block.ys-auth .ys-btn-gold:focus,
.ys-block.ys-dash .ys-btn-gold:hover,
.ys-block.ys-dash .ys-btn-gold:focus { color: var(--ys-navy-deep); background: var(--ys-gold-gradient); border: 1px solid var(--ys-gold-dark); }
.ys-block.ys-auth .ys-auth-form .ys-btn-gold { border: none; }

.ys-block.ys-auth .ys-pass-toggle,
.ys-block.ys-auth .ys-pass-toggle:hover,
.ys-block.ys-auth .ys-pass-toggle:focus { border: 0; background: none; box-shadow: none; color: var(--ys-link-on-light); }
.ys-block.ys-auth .ys-auth-link-btn,
.ys-block.ys-auth .ys-auth-link-btn:hover,
.ys-block.ys-auth .ys-auth-link-btn:focus { background: none; box-shadow: none; border: 0; color: var(--ys-link-on-light); }
.ys-block.ys-auth .ys-auth-inline-link,
.ys-block.ys-dash .ys-dash-tile-link { color: var(--ys-link-on-light); }

.ys-block.ys-dash .ys-btn-outline-navy { color: var(--ys-navy); border: 1.5px solid rgba(27,42,78,0.35); background: transparent; box-shadow: none; }
.ys-block.ys-dash .ys-btn-outline-navy:hover,
.ys-block.ys-dash .ys-btn-outline-navy:focus { color: #fff; background: var(--ys-navy); border-color: var(--ys-navy); }

/* ============================================================
   LOGIN SCREEN — full-bleed split layout (library photo + card)
   Appended last so it outranks the kit-override block above.
   ============================================================ */
.ys-login {
  position: relative;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--ys-navy-deep);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}
.ys-login-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(102deg, rgba(11,18,40,1) 0%, rgba(15,24,50,0.86) 42%, rgba(22,34,70,0.52) 100%);
  opacity: var(--ys-login-ov, 0.62);
  z-index: 0;
}

/* ---- Top bar ---- */
.ys-login-topbar { position: relative; z-index: 1; padding: 22px 40px 0; }
.ys-login-topbar-inner {
  max-width: 1240px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(201,169,97,0.38);
}
.ys-login-logo { height: 48px; width: auto; display: block; }
.ys-login-brand-txt { font-family: var(--ys-serif); font-size: 1.5rem; font-weight: 700; color: var(--ys-cream); }
.ys-login-tagline {
  margin: 0; color: rgba(245,239,224,0.82);
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em;
}

/* ---- Grid ---- */
.ys-login-grid {
  position: relative; z-index: 1;
  flex: 1 1 auto;
  display: grid; grid-template-columns: 1.02fr 0.98fr;
  align-items: center; gap: 48px;
  width: 100%; max-width: 1240px; margin: 0 auto;
  padding: 40px 40px 60px;
}
.ys-login-grid--center { grid-template-columns: 1fr; justify-items: center; }

/* ---- Brand panel (left) ---- */
.ys-login-brand-panel { color: var(--ys-cream); max-width: 560px; }
.ys-login-eyebrow {
  margin: 0 0 22px; color: var(--ys-gold-light);
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; line-height: 1.7;
}
.ys-login-heading {
  font-family: var(--ys-serif); font-weight: 700;
  font-size: clamp(2.4rem, 4.6vw, 3.6rem); line-height: 1.08;
  color: #fff; margin: 0 0 22px;
  text-shadow: 0 2px 24px rgba(6,10,26,0.5);
}
.ys-login-rule { display: block; width: 62px; height: 3px; background: var(--ys-gold-gradient); border-radius: 2px; margin: 0 0 24px; }
.ys-login-lead {
  font-size: 1.06rem; line-height: 1.6; color: rgba(245,239,224,0.9);
  margin: 0 0 30px; max-width: 460px;
}
.ys-login-quote {
  font-family: var(--ys-serif); font-style: italic;
  font-size: 1.18rem; line-height: 1.5; color: rgba(245,239,224,0.86);
  border-left: 3px solid var(--ys-gold); padding: 4px 0 4px 20px; margin: 0; max-width: 380px;
}

/* ---- Card side (right) ---- */
.ys-login-cardside { display: flex; justify-content: center; width: 100%; }
.ys-login .ys-auth-card {
  width: 100%; max-width: 448px;
  background: linear-gradient(180deg, #fbf6ea 0%, #f4ecd7 100%);
  border: 1px solid rgba(201,169,97,0.55);
  border-radius: 18px;
  padding: 40px 40px 32px;
  box-shadow: 0 34px 80px rgba(6,11,30,0.55);
}
.ys-auth-crest { text-align: center; margin: 0 0 14px; }
.ys-auth-crest svg { width: 74px; height: auto; display: inline-block; }
.ys-login .ys-auth-title { font-size: 2rem; margin: 0 0 8px; }
.ys-auth-divider { text-align: center; margin: 0 0 12px; }
.ys-login .ys-orn-mark { display: inline-block; width: 66px; height: auto; }
.ys-login .ys-auth-subtitle { margin: 0 0 24px; }

/* ---- Segmented tabs ---- */
.ys-login .ys-auth-tabs {
  border: 1px solid rgba(201,169,97,0.45);
  background: rgba(27,42,78,0.05);
  border-radius: 12px; padding: 5px; gap: 5px; margin: 0 0 24px;
}
.ys-block.ys-login .ys-auth-tab {
  border: 0; border-radius: 9px; margin: 0;
  padding: 12px 8px; color: var(--ys-text-muted); background: transparent;
  transition: background .2s, color .2s, box-shadow .2s;
}
.ys-block.ys-login .ys-auth-tab:hover { color: var(--ys-navy); background: rgba(27,42,78,0.06); }
.ys-block.ys-login .ys-auth-tab.is-active {
  color: var(--ys-navy-deep); background: var(--ys-gold-gradient);
  box-shadow: 0 4px 12px rgba(138,111,46,0.35);
}

/* ---- Inputs with leading icons ---- */
.ys-input { position: relative; display: flex; align-items: center; }
.ys-input-ico {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  display: flex; color: rgba(27,42,78,0.5); pointer-events: none;
}
.ys-field--ico { padding-left: 44px; }
.ys-login .ys-pass-wrap .ys-field { padding-right: 48px; }

/* Eye toggle (icon) */
.ys-block.ys-login .ys-pass-toggle--icon {
  right: 8px; left: auto; padding: 6px; border-radius: 6px;
  display: flex; align-items: center; color: rgba(27,42,78,0.55);
}
.ys-block.ys-login .ys-pass-toggle--icon:hover { color: var(--ys-navy); text-decoration: none; }
.ys-pass-toggle--icon svg:nth-of-type(2) { display: none; }
.ys-pass-toggle--icon[aria-pressed="true"] svg:nth-of-type(1) { display: none; }
.ys-pass-toggle--icon[aria-pressed="true"] svg:nth-of-type(2) { display: inline; }

/* ---- Submit button with arrow ---- */
.ys-login .ys-auth-form .ys-btn-gold {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 18px; font-size: 0.98rem; border-radius: 10px; margin-top: 6px;
}

/* ---- Footer prompt ---- */
.ys-auth-foot {
  text-align: center; margin: 22px 0 0; padding-top: 18px;
  border-top: 1px solid rgba(27,42,78,0.12);
  font-size: 0.86rem; color: var(--ys-text-muted);
}
.ys-block.ys-login .ys-auth-foot-link {
  display: inline-block; margin-top: 4px; width: auto;
  background: none; border: 0; box-shadow: none; cursor: pointer;
  font-family: var(--ys-sans); font-weight: 700; font-size: 0.92rem;
  color: var(--ys-link-on-light); text-decoration: underline;
}
.ys-block.ys-login .ys-auth-foot-link:hover { color: var(--ys-navy); }

/* ---- Signed-in card crest spacing ---- */
.ys-login .ys-auth-signedin { text-align: center; }

/* ---- Decorative side rail ---- */
.ys-login-siderail {
  position: absolute; right: 30px; top: 50%; transform: translateY(-50%);
  z-index: 1; display: flex; flex-direction: column; gap: 12px; text-align: right;
}
.ys-login-siderail span {
  color: rgba(245,239,224,0.55); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase;
}
/* Only room for the side rail on wide screens (else it tucks under the card). */
@media (max-width: 1339px) { .ys-login-siderail { display: none; } }

/* ---- Focus rings ---- */
.ys-block.ys-login .ys-pass-toggle--icon:focus-visible,
.ys-block.ys-login .ys-auth-foot-link:focus-visible {
  outline: 3px solid var(--ys-focus-on-light); outline-offset: 2px; border-radius: 6px;
}

/* ---- Tablet ---- */
@media (max-width: 991px) {
  .ys-login { min-height: 100vh; }
  .ys-login-overlay { opacity: calc(var(--ys-login-ov, 0.62) + 0.12); }
  .ys-login-grid {
    grid-template-columns: 1fr; gap: 30px; justify-items: center;
    padding: 34px 26px 48px; align-content: center;
  }
  .ys-login-brand-panel { text-align: center; max-width: 620px; }
  .ys-login-eyebrow { margin-bottom: 16px; }
  .ys-login-heading { margin-bottom: 18px; }
  .ys-login-rule { margin-left: auto; margin-right: auto; }
  .ys-login-lead { margin-left: auto; margin-right: auto; margin-bottom: 22px; }
  .ys-login-quote { border-left: 0; padding: 0; margin: 0 auto; max-width: 460px; }
  .ys-login-siderail { display: none; }
}

/* ---- Phone ---- */
@media (max-width: 600px) {
  .ys-login-topbar { padding: 16px 20px 0; }
  .ys-login-topbar-inner { flex-direction: column; gap: 10px; padding-bottom: 14px; }
  .ys-login-logo { height: 42px; }
  .ys-login-tagline { display: none; }
  .ys-login-grid { padding: 26px 16px 40px; gap: 24px; }
  .ys-login .ys-auth-card { padding: 30px 22px 26px; border-radius: 14px; }
  .ys-login-quote { display: none; }
  .ys-login-lead { font-size: 1rem; margin-bottom: 4px; }
  .ys-auth-crest svg { width: 64px; }
  .ys-login .ys-auth-title { font-size: 1.7rem; }
}
