/* ==========================================================================
   Wasiilah (formerly IEC Marriage) — site styles. Round 52: Wasiilah colours and Outfit headings
   Load LAST, after responsive.css.

   Scope
   - .iec-home ...      homepage only (wrapper div in main.blade.php)
   - header / footer    site-wide chrome (layouts/top-nav, layouts/footer-section)

   Signature
   - Round 4 retired the mihrab arch and lattice from the homepage (see the
     POLISH PASS block at the end): one rounded-card shape language instead.
     Inner-page banners are a plain maroon wash too.
   - Colours (round 7): maroon + cream + deep teal. The --iec-gold* tokens
     defined below are re-pointed at teal in the PALETTE block at the end.
   ========================================================================== */

:root {
    --iec-maroon: #1A7A72;
    --iec-maroon-deep: #145F59;
    --iec-cream: #FAF6EF;
    --iec-paper: #FFFDF9;
    --iec-sand: #F3EBDD;
    --iec-gold: #A8803F;
    --iec-gold-text: #84622C;   /* gold darkened for small text on cream (AA) */
    --iec-gold-soft: #E3D3B5;
    --iec-ink: #2A1F1D;
    --iec-muted: #67574F;
    --iec-line: #E6DBC9;
    --iec-night: #0C3F3B;

    --iec-serif: 'Outfit', 'Segoe UI', Arial, sans-serif;
    --iec-sans: 'Jost', 'Segoe UI', Arial, sans-serif;

    --iec-cap: 84px;            /* height of the search card's arch head */
    --iec-gutter: 24px;
    --iec-section: 112px;       /* vertical rhythm between sections */

    /* Shapes (data-URIs so this file needs no extra assets) */
    --iec-cap-fill: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 100' preserveAspectRatio='none'%3E%3Cpath d='M0 101V86C0 48 92 20 200 0C308 20 400 48 400 86V101Z'/%3E%3C/svg%3E");
    --iec-cap-line: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 100' preserveAspectRatio='none'%3E%3Cpath d='M.5 101V86C.5 48 92 20 200 1C308 20 399.5 48 399.5 86V101' fill='none' stroke='%23A8803F' stroke-width='1' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
    --iec-niche-line: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 100' preserveAspectRatio='none'%3E%3Cpath d='M.5 101V86C.5 48 92 20 200 1C308 20 399.5 48 399.5 86V101' fill='none' stroke='%23A8803F' stroke-opacity='.7' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
    /* Khatam lattice tile: two interlaced squares + joining lines */
    --iec-lattice: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='%23A8803F' stroke-width='.8'%3E%3Cpath d='M24 7l17 17-17 17L7 24z'/%3E%3Cpath d='M12 12h24v24H12z'/%3E%3Cpath d='M0 24h7M41 24h7M24 0v7M24 41v7M0 0l12 12M48 0L36 12M0 48l12-12M48 48L36 36'/%3E%3C/g%3E%3C/svg%3E");
    --iec-lattice-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='%23E3D3B5' stroke-width='.8'%3E%3Cpath d='M24 7l17 17-17 17L7 24z'/%3E%3Cpath d='M12 12h24v24H12z'/%3E%3Cpath d='M0 24h7M41 24h7M24 0v7M24 41v7M0 0l12 12M48 0L36 12M0 48l12-12M48 48L36 36'/%3E%3C/g%3E%3C/svg%3E");
    /* single eight-point star, used as a small mark */
    --iec-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='%23A8803F' stroke-width='1.1'%3E%3Cpath d='M10 1.5l8.5 8.5-8.5 8.5L1.5 10z'/%3E%3Cpath d='M4 4h12v12H4z'/%3E%3C/g%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   Base (homepage)
   -------------------------------------------------------------------------- */
body:has(.iec-home) { background: var(--iec-cream); }

.iec-home {
    background: var(--iec-cream);
    color: var(--iec-ink);
    font-family: var(--iec-sans);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
.iec-home .container {
    width: auto;
    max-width: 1240px;
    padding-left: var(--iec-gutter);
    padding-right: var(--iec-gutter);
}
.iec-home .container::before,
.iec-home .container::after { display: none; }   /* bootstrap clearfix; we use grid/flex */
.iec-home h1, .iec-home h2, .iec-home h3, .iec-home h4 {
    font-family: var(--iec-serif);
    font-weight: 400;
    color: var(--iec-ink);
    letter-spacing: -0.005em;
    margin: 0;
    text-wrap: balance;
}
.iec-home p { margin: 0; text-align: inherit; }  /* legacy mobile CSS justifies every <p> */
.iec-home a { transition: color .2s, background-color .2s, border-color .2s; }
.iec-home a:focus-visible,
.iec-home button:focus-visible,
.iec-home select:focus-visible,
header a:focus-visible,
header button:focus-visible,
footer a:focus-visible {
    outline: 2px solid var(--iec-gold);
    outline-offset: 3px;
}

.iec-home .iec-placeholder {
    font-weight: inherit;
    color: var(--iec-gold-text);
    border-bottom: 1px dashed var(--iec-gold);
}

/* Section heads */
.iec-home .iec-section-head { max-width: 640px; margin-bottom: 56px; }
.iec-home .iec-section-head h2 {
    font-size: clamp(34px, 3.4vw, 48px);
    line-height: 1.08;
}
.iec-home .iec-section-head p {
    margin-top: 16px;
    color: var(--iec-muted);
    font-size: 18px;
    max-width: 52ch;
}
.iec-home .iec-section-head--split {
    max-width: none;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
}

/* Buttons & links */
.iec-home .iec-btn {
    display: inline-block;
    padding: 15px 30px;
    min-height: 48px;
    font-family: var(--iec-sans);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: .01em;
    line-height: 1.2;
    border: 1px solid transparent;
    border-radius: 2px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
}
.iec-home .iec-btn--primary { background: var(--iec-maroon); border-color: var(--iec-maroon); color: var(--iec-cream); }
.iec-home .iec-btn--primary:hover { background: var(--iec-maroon-deep); border-color: var(--iec-maroon-deep); color: #fff; text-decoration: none; }
.iec-home .iec-btn--quiet { background: transparent; border-color: rgba(26, 122, 114, .45); color: var(--iec-maroon); }
.iec-home .iec-btn--quiet:hover { border-color: var(--iec-maroon); background: var(--iec-maroon); color: var(--iec-cream); text-decoration: none; }
.iec-home .iec-btn--cream { background: var(--iec-cream); border-color: var(--iec-cream); color: var(--iec-maroon); }
.iec-home .iec-btn--cream:hover { background: #fff; color: var(--iec-maroon-deep); text-decoration: none; }

.iec-home .iec-link {
    color: var(--iec-maroon);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid var(--iec-gold);
    padding-bottom: 2px;
}
.iec-home .iec-link:hover { color: var(--iec-maroon-deep); border-bottom-color: var(--iec-maroon); text-decoration: none; }
.iec-home .iec-link--light { color: var(--iec-cream); border-bottom-color: rgba(250, 246, 239, .45); }
.iec-home .iec-link--light:hover { color: #fff; border-bottom-color: #fff; }

/* --------------------------------------------------------------------------
   1. Hero  (.w3layouts-banner#home)
   -------------------------------------------------------------------------- */
.iec-home .w3layouts-banner.iec-hero {
    background: var(--iec-cream) !important;   /* beats the inline $slug->page_banner */
    height: auto;
    min-height: 0;
    position: relative;
    overflow: hidden;
    padding: 80px 0 104px;
}
.iec-home .iec-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: 88px;
    align-items: center;
}

.iec-home .iec-eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--iec-gold-text);
    margin-bottom: 28px;
}
.iec-home .iec-eyebrow::before {
    content: "";
    width: 40px;
    height: 1px;
    background: var(--iec-gold);
}
.iec-home .iec-hero__title {
    font-size: clamp(42px, 4.9vw, 70px);
    line-height: 1.04;
    letter-spacing: -0.018em;
}
.iec-home .iec-hero__title > span { display: block; }
.iec-home .iec-hero__lede {
    margin-top: 28px;
    font-size: 19px;
    line-height: 1.55;
    color: var(--iec-muted);
    max-width: 38ch;
    text-wrap: balance;
}
.iec-home .iec-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 38px;
}

/* Search column + the latticed niche that frames it */
.iec-home .iec-hero__search {
    position: relative;
    padding-top: var(--iec-cap);
}
.iec-home .iec-hero__search::before,
.iec-home .iec-hero__search::after {
    content: "";
    position: absolute;
    left: -48px;
    right: -48px;
    top: calc(var(--iec-cap) * -1 - 8px);
    bottom: -240px;
    pointer-events: none;
}
.iec-home .iec-hero__search::before {          /* lattice, clipped to the niche, fading downwards */
    background:
        linear-gradient(to bottom, rgba(250,246,239,0) 0%, rgba(250,246,239,0) 45%, var(--iec-cream) 92%),
        var(--iec-lattice) center top / 48px 48px repeat;
    opacity: .55;
    -webkit-mask:
        var(--iec-cap-fill) top / 100% 150px no-repeat,
        linear-gradient(#000, #000) 0 149px / 100% 100% no-repeat;
    mask:
        var(--iec-cap-fill) top / 100% 150px no-repeat,
        linear-gradient(#000, #000) 0 149px / 100% 100% no-repeat;
}
.iec-home .iec-hero__search::after {           /* niche outline */
    background:
        var(--iec-niche-line) top / 100% 150px no-repeat,
        linear-gradient(rgba(168,128,63,.7), rgba(168,128,63,.7)) left 150px / 1px 100% no-repeat,
        linear-gradient(rgba(168,128,63,.7), rgba(168,128,63,.7)) right 150px / 1px 100% no-repeat;
}
.iec-home .iec-hero__search > div { position: relative; z-index: 1; }

/* Desktop / mobile form switch — explicit so no width falls through the gaps */
.iec-home .shw-for-web { display: block; }
.iec-home .shw-for-mobl { display: none; }

/* The search card (.agileits-register) with an arch head */
.iec-home .iec-hero .agileits-register {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    float: none;
    margin: 0;
    padding: 4px 36px 36px;
    background: #fff;
    filter: drop-shadow(0 26px 44px rgba(26, 122, 114, .12)) drop-shadow(0 2px 4px rgba(42, 31, 29, .06));
}
.iec-home .iec-hero .agileits-register::before {      /* white arch head */
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(100% - 1px);                         /* 1px overlap hides the anti-aliasing seam */
    z-index: -1;                                      /* under the h3 (the filter makes the stacking context) */
    height: var(--iec-cap);
    background: #fff;
    -webkit-mask: var(--iec-cap-fill) center / 100% 100% no-repeat;
    mask: var(--iec-cap-fill) center / 100% 100% no-repeat;
}
.iec-home .iec-hero .agileits-register::after {       /* inner gold rule: sides + base */
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    top: 0;
    bottom: 12px;
    border: 1px solid var(--iec-gold-soft);
    border-top: 0;
    pointer-events: none;
}
.iec-home .iec-hero .agileits-register h3 {
    position: static;
    margin: -34px 0 26px !important;
    padding: 0 0 18px;
    background: none;
    border: 0;
    border-bottom: 1px solid var(--iec-line);
    color: var(--iec-maroon) !important;
    font-family: var(--iec-serif);
    font-size: 30px;
    line-height: 1.1;
    text-align: center;
    text-transform: none;
}
.iec-home .iec-hero .agileits-register h3::before {   /* inner gold rule: arch */
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 100%;
    height: calc(var(--iec-cap) - 12px);
    background: var(--iec-cap-line) center / 100% 100% no-repeat;
    pointer-events: none;
}
.iec-home .iec-hero .agileits-register h3::after {    /* keystone on the apex */
    content: "";
    position: absolute;
    left: 50%;
    top: calc(var(--iec-cap) * -1 + 8px);
    width: 7px;
    height: 7px;
    margin-left: -3.5px;
    background: var(--iec-gold);
    transform: rotate(45deg);
}

/* Form layout */
.iec-home .agileits-register form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 16px;
    position: relative;
    z-index: 1;
}
.iec-home .agileits-register .w3_modal_body_grid,
.iec-home .agileits-register .w3_modal_body_grid1 { margin: 0; min-width: 0; }
.iec-home .agileits-register .main_grey_btn { grid-column: 1 / -1; }

.iec-home .w3_modal_body_grid > label,
.iec-home .w3_modal_body_grid > span {
    display: block;
    float: none;
    width: auto;
    padding: 0;
    margin: 0 0 7px;
    font-family: var(--iec-sans);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: var(--iec-muted);
}
.iec-home .w3_modal_body_grid select,
.iec-home .w3_modal_body_grid .w3_country,
.iec-home .w3_modal_body_grid .bootstrap-select > .dropdown-toggle {
    display: block;
    width: 100% !important;
    height: 48px;
    padding: 0 38px 0 14px;
    font-family: var(--iec-sans);
    font-size: 16px;                   /* 16px stops iOS zooming on focus */
    color: var(--iec-ink);
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231A7A72' stroke-width='1.4'/%3E%3C/svg%3E") right 14px center / 11px 7px no-repeat;
    border: 1px solid #D9CCB8;
    border-radius: 2px;
    box-shadow: none;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.iec-home .w3_modal_body_grid select:hover,
.iec-home .w3_modal_body_grid .bootstrap-select > .dropdown-toggle:hover { border-color: var(--iec-gold); }
.iec-home .w3_modal_body_grid select:focus,
.iec-home .w3_modal_body_grid .bootstrap-select > .dropdown-toggle:focus,
.iec-home .w3_modal_body_grid .bootstrap-select.open > .dropdown-toggle {
    border-color: var(--iec-maroon);
    box-shadow: 0 0 0 3px rgba(26, 122, 114, .12);
    outline: none !important;
}

/* bootstrap-select inside the card (legacy ".w3_modal_body_grid span" rules leak into it) */
.iec-home .w3_modal_body_grid .bootstrap-select { width: 100% !important; float: none; }
.iec-home .w3_modal_body_grid .bootstrap-select > .dropdown-toggle { text-align: left; line-height: 46px; padding-top: 0; padding-bottom: 0; }
.iec-home .w3_modal_body_grid .bootstrap-select span,
.iec-home .w3_modal_body_grid .bootstrap-select .filter-option {
    float: none;
    width: auto;
    padding: 0;
    font-size: inherit;
    font-weight: 400;
    text-transform: none;
    color: inherit;
    letter-spacing: 0;
}
.iec-home .w3_modal_body_grid .bootstrap-select .bs-caret { display: none; }
.iec-home .w3_modal_body_grid .bootstrap-select .filter-option { position: static; padding: 0; }
.iec-home .w3_modal_body_grid .bootstrap-select .filter-option-inner-inner { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Dropdowns are appended to <body> (data-container="body") */
body:has(.iec-home) .bs-container .dropdown-menu { font-family: var(--iec-sans); border-color: var(--iec-line); border-radius: 2px; box-shadow: 0 14px 30px rgba(42,31,29,.12); }
body:has(.iec-home) .bs-container .dropdown-menu li a { padding: 10px 16px; color: var(--iec-ink); }
body:has(.iec-home) .bs-container .dropdown-menu li.selected a { color: var(--iec-maroon); background: var(--iec-cream); }

/* Search button (#main_search_btn / _mbl keep .main_grey_btn) */
.iec-home .agileits-register .main_grey_btn {
    float: none;
    width: 100%;
    margin: 8px 0 0;
    padding: 15px 20px;
    min-height: 52px;
    border: 0;
    border-radius: 2px;
    background: var(--iec-maroon);
    color: var(--iec-cream);
    font-family: var(--iec-sans);
    font-size: 17px;
    font-weight: 500;
    letter-spacing: .01em;
    text-transform: none;
    transition: background-color .2s;
}
.iec-home .agileits-register .main_grey_btn::after { display: none; }
.iec-home .agileits-register .main_grey_btn:hover { background: var(--iec-maroon-deep); color: #fff !important; }
.iec-home .agileits-register .main_grey_btn:active { transform: translateY(1px); }
.iec-home .agileits-register .main_grey_btn .fa { margin-right: 8px; font-size: 15px; opacity: .8; }

/* The page's single load moment: copy rises, card settles into its niche */
@media (prefers-reduced-motion: no-preference) {
    .iec-home .iec-hero__copy > *,
    .iec-home .iec-hero__search > div {
        animation: iec-rise .8s cubic-bezier(.2, .7, .2, 1) backwards;   /* backwards: no transform lingers on the filtered card once done */
    }
    .iec-home .iec-hero__title { animation-delay: .06s; }
    .iec-home .iec-hero__lede { animation-delay: .12s; }
    .iec-home .iec-hero__actions { animation-delay: .18s; }
    .iec-home .iec-hero__search > div { animation-delay: .22s; animation-duration: 1s; }
    .iec-home .iec-hero__search::before { animation: iec-fade 1.6s ease-out .1s both; }
}
@keyframes iec-rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}
@keyframes iec-fade {
    from { opacity: 0; }
    to { opacity: .55; }
}

/* --------------------------------------------------------------------------
   2. Trust strip
   -------------------------------------------------------------------------- */
.iec-home .iec-trust {
    position: relative;
    z-index: 1;
    background: var(--iec-paper);
    border-top: 1px solid var(--iec-line);
    border-bottom: 1px solid var(--iec-line);
}
.iec-home .iec-trust__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}
.iec-home .iec-trust__list li { padding: 44px 44px 46px; }
.iec-home .iec-trust__list li:first-child { padding-left: 0; }
.iec-home .iec-trust__list li:last-child { padding-right: 0; }
.iec-home .iec-trust__list li + li { border-left: 1px solid var(--iec-line); }
.iec-home .iec-trust__list h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 25px;
    color: var(--iec-maroon);
    margin-bottom: 10px;
}
.iec-home .iec-trust__list h3::before {
    content: "";
    flex: none;
    width: 18px;
    height: 18px;
    background: var(--iec-star) center / contain no-repeat;
}
.iec-home .iec-trust__list p { font-size: 16px; color: var(--iec-muted); max-width: 34ch; }

/* --------------------------------------------------------------------------
   3. How it works — a vertical thread of steps beside a live demo
   -------------------------------------------------------------------------- */
.iec-home .iec-steps { padding: var(--iec-section) 0; }
.iec-home .iec-steps__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
    gap: 96px;
    align-items: center;
}
.iec-home .iec-steps .iec-section-head { margin-bottom: 44px; }
.iec-home .iec-steps__list { list-style: none; margin: 0; padding: 0; }
.iec-home .iec-steps__list li {
    position: relative;
    display: grid;
    grid-template-columns: 56px 1fr;
    column-gap: 22px;
    padding-bottom: 30px;
}
.iec-home .iec-steps__list li:last-child { padding-bottom: 0; }
.iec-home .iec-steps__list li::before {          /* the thread */
    content: "";
    position: absolute;
    left: 19px;
    top: 66px;
    bottom: 8px;
    width: 1px;
    background: var(--iec-gold-soft);
}
.iec-home .iec-steps__list li:last-child::before { display: none; }
.iec-home .iec-steps__num {
    grid-row: 1 / span 2;
    font-family: var(--iec-serif);
    font-size: 56px;
    line-height: 1.05;
    color: var(--iec-gold);
    font-variant-numeric: lining-nums;
}
.iec-home .iec-steps__list h3 { font-size: 26px; margin: 10px 0 6px; }
.iec-home .iec-steps__list p { font-size: 17px; color: var(--iec-muted); max-width: 44ch; }

/* The demo: one example profile, before and after a swap (CSS-only toggle) */
.iec-home .iec-demo { position: relative; }
.iec-home .iec-demo > input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.iec-home .iec-demo__switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 4px;
    margin-bottom: 16px;
    background: var(--iec-sand);
    border-radius: 2px;
}
.iec-home .iec-demo__switch label {
    margin: 0;
    padding: 12px 10px;
    min-height: 44px;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    color: var(--iec-muted);
    border-radius: 2px;
    cursor: pointer;
    transition: background-color .2s, color .2s, box-shadow .2s;
}
.iec-home #iec-demo-before:checked ~ .iec-demo__switch label[for="iec-demo-before"],
.iec-home #iec-demo-after:checked ~ .iec-demo__switch label[for="iec-demo-after"] {
    background: #fff;
    color: var(--iec-maroon);
    box-shadow: 0 1px 3px rgba(42, 31, 29, .1);
}
.iec-home #iec-demo-before:focus-visible ~ .iec-demo__switch label[for="iec-demo-before"],
.iec-home #iec-demo-after:focus-visible ~ .iec-demo__switch label[for="iec-demo-after"] {
    outline: 2px solid var(--iec-gold);
    outline-offset: 2px;
}

.iec-home .iec-demo__card {
    background: #fff;
    border: 1px solid var(--iec-line);
    padding: 28px 28px 24px;
    box-shadow: 0 24px 48px rgba(26, 122, 114, .08);
}
.iec-home .iec-demo__head {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--iec-line);
}
.iec-home .iec-demo__photo {
    position: relative;
    flex: none;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--iec-sand);
    box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--iec-gold-soft);
}
.iec-home .iec-demo__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(.22) saturate(.95) blur(0);
    mix-blend-mode: multiply;
    transition: filter .35s ease;
}
.iec-home .iec-demo__photo::after {             /* lock badge */
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(250, 246, 239, .35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='5' y='11' width='14' height='10' rx='1.5' fill='%231A7A72'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3' fill='none' stroke='%231A7A72' stroke-width='2'/%3E%3C/svg%3E") center / 22px no-repeat;
    transition: opacity .35s ease;
}
.iec-home #iec-demo-before:checked ~ .iec-demo__card .iec-demo__photo img { filter: sepia(.22) saturate(.95) blur(5px); }
.iec-home #iec-demo-after:checked ~ .iec-demo__card .iec-demo__photo::after { opacity: 0; }

.iec-home .iec-demo__id { font-family: var(--iec-serif); font-size: 23px; color: var(--iec-ink); }
.iec-home .iec-demo__meta { margin-top: 2px !important; font-size: 15px; color: var(--iec-muted); }

.iec-home .iec-demo__rows { margin: 0; padding: 6px 0 0; }
.iec-home .iec-demo__rows > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px dashed var(--iec-line);
}
.iec-home .iec-demo__rows dt { font-weight: 400; font-size: 15px; color: var(--iec-muted); }
.iec-home .iec-demo__rows dd { margin: 0; font-size: 15px; text-align: right; }
.iec-home .iec-demo__locked { color: var(--iec-gold-text); }
.iec-home .iec-demo__locked::before {
    content: "";
    display: inline-block;
    width: 11px;
    height: 12px;
    margin-right: 7px;
    vertical-align: -1px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 12'%3E%3Crect x='1' y='5' width='9' height='6.5' rx='1' fill='%2384622C'/%3E%3Cpath d='M3 5V3.5a2.5 2.5 0 0 1 5 0V5' fill='none' stroke='%2384622C' stroke-width='1.2'/%3E%3C/svg%3E") center / contain no-repeat;
}
.iec-home .iec-demo__shown { color: var(--iec-ink); font-weight: 500; }
.iec-home .iec-demo__never { color: var(--iec-muted); }
.iec-home .iec-demo__shown,
.iec-home #iec-demo-after:checked ~ .iec-demo__card .iec-demo__locked { display: none; }
.iec-home #iec-demo-after:checked ~ .iec-demo__card .iec-demo__shown { display: inline; }

.iec-home .iec-demo__action {
    margin-top: 20px !important;
    padding: 14px;
    text-align: center;
    font-weight: 500;
    background: var(--iec-maroon);
    color: var(--iec-cream);
    border-radius: 2px;
}
.iec-home .iec-demo__action .iec-demo__locked { color: inherit; }
.iec-home .iec-demo__action .iec-demo__locked::before { display: none; }
.iec-home .iec-demo__action .iec-demo__shown { color: inherit; }
.iec-home .iec-demo__note { margin-top: 14px !important; font-size: 14px; color: var(--iec-muted); text-align: center; }

/* --------------------------------------------------------------------------
   4. Featured profiles  (.w3layouts_featured-profiles)
   -------------------------------------------------------------------------- */
.iec-home .w3layouts_featured-profiles.iec-featured {
    background: var(--iec-paper);
    border-top: 1px solid var(--iec-line);
    padding: var(--iec-section) 0;
}
.iec-home .agile_featured-profiles h2 {
    font-size: clamp(34px, 3.4vw, 48px);
    line-height: 1.08;
    color: var(--iec-ink);
    text-align: left;
    margin: 0;
    padding: 0;
    text-transform: none;
}
.iec-home .agile_featured-profiles h2::before,
.iec-home .agile_featured-profiles h2::after { display: none; }
.iec-home .iec-featured__all { white-space: nowrap; }

.iec-home .iec-profiles {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}
.iec-home .iec-profiles > li { min-width: 0; --iec-tint: #F1E9DC; }
.iec-home .iec-profiles > li:nth-child(4n+2) { --iec-tint: #EFE3E1; }
.iec-home .iec-profiles > li:nth-child(4n+3) { --iec-tint: #E5EAE1; }
.iec-home .iec-profiles > li:nth-child(4n+4) { --iec-tint: #E3E7EC; }
.iec-home .iec-profiles .biseller-column {
    float: none;
    width: auto;
    padding: 0;
    margin: 0;
    height: 100%;
}
.iec-home .iec-profiles .biseller-column > a {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--iec-line);
    border-radius: 16px;
    text-align: left;
    text-decoration: none;
    color: var(--iec-ink);
    box-shadow: 0 1px 2px rgba(42, 31, 29, .04);
    transition: box-shadow .25s, transform .25s, border-color .25s;
}
.iec-home .iec-profiles .biseller-column > a:hover,
.iec-home .iec-profiles .biseller-column > a:focus-visible {
    border-color: var(--iec-gold-soft);
    box-shadow: 0 16px 36px rgba(42, 31, 29, .12);
}

/* Photo area: the avatar fills a soft, softly varied tile, like a profile photo */
.iec-home .iec-profiles .profile-image {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    margin: 0;
    padding: 0;
    border-radius: 0;
    overflow: hidden;
    background: var(--iec-tint);
    box-shadow: none;
    isolation: isolate;
}
.iec-home .iec-profiles .profile-image img {
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
    border-radius: 0;
    object-fit: cover;
    transform: none;
    transform-origin: center bottom;
    filter: brightness(1.11) saturate(.95);   /* the avatars' #E6E6E6 tile becomes white... */
    mix-blend-mode: multiply;                 /* ...and white multiplies away into the tint */
    transition: transform .4s ease;
}

/* Card body */
.iec-home .iec-profiles .agile-overlay {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    height: auto;
    padding: 18px 18px 0;
    background: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    width: 100%;
}
.iec-home .iec-profiles .iec-profile__lead {
    margin: 0 0 8px !important;
    font-family: var(--iec-sans);
    font-size: 21px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--iec-ink);
    text-align: left;
}
.iec-home .iec-profiles .agile-overlay ul {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 0;
    width: auto;
    display: flex;
}
.iec-home .iec-profiles .agile-overlay ul li {
    display: inline-block;
    margin: 0;
    padding: 3px 11px 4px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--iec-ink);
    background: var(--iec-cream);
    border: 1px solid var(--iec-line);
    border-radius: 999px;
    white-space: nowrap;
}
.iec-home .iec-profiles .agile-overlay ul li span {   /* "Status" label: kept for screen readers only */
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
.iec-home .iec-profiles .iec-profile__foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: auto 0 0 !important;
    padding: 18px 0 18px;
    border: 0;
    font-size: 13px;
    text-align: left;
}
.iec-home .iec-profiles .agile-overlay ul + .iec-profile__foot { margin-top: 0 !important; }
.iec-home .iec-profiles .iec-profile__id {
    color: var(--iec-muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.iec-home .iec-profiles .iec-profile__id small { font-size: inherit; color: inherit; }
.iec-home .iec-profile__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--iec-maroon);
    border: 1px solid var(--iec-maroon);
    border-radius: 999px;
    white-space: nowrap;
    transition: background-color .2s, color .2s;
}
.iec-home .biseller-column > a:hover .iec-profile__cta,
.iec-home .biseller-column > a:focus-visible .iec-profile__cta { background: var(--iec-maroon); color: #fff; }
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
    .iec-home .iec-profiles .biseller-column > a:hover { transform: translateY(-3px); }
    .iec-home .iec-profiles .biseller-column > a:hover .profile-image img { transform: scale(1.04); }
}

.iec-home .iec-featured__more { display: none; margin-top: 32px; text-align: center; }

/* --------------------------------------------------------------------------
   5. Testimonials — one lead, two supporting
   -------------------------------------------------------------------------- */
.iec-home .iec-voices { padding: var(--iec-section) 0; }
.iec-home .iec-voices__grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-rows: auto auto;
    gap: 24px;
}
.iec-home .iec-quote {
    margin: 0;
    position: relative;
    background: #fff;
    border: 1px solid var(--iec-line);
    padding: 32px 34px 28px;
    display: flex;
    flex-direction: column;
}
.iec-home .iec-quote blockquote {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: inherit;
}
.iec-home .iec-quote blockquote p {
    font-size: 18px;
    line-height: 1.6;
    color: var(--iec-ink);
    text-wrap: pretty;
}
.iec-home .iec-quote figcaption {
    margin-top: auto;
    padding-top: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--iec-muted);
}
.iec-home .iec-quote__avatar {
    flex: none;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    font-family: var(--iec-serif);
    font-size: 18px;
    color: var(--iec-cream);
    background: var(--iec-sand);
    box-shadow: 0 0 0 1px var(--iec-gold-soft);
}
.iec-home .iec-quote__avatar img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.22) saturate(.95); mix-blend-mode: multiply; }

/* Lead quote: maroon, with a hanging gold quotation mark */
.iec-home .iec-quote--lead {
    grid-row: 1 / span 2;
    background: var(--iec-maroon);
    border: 0;
    padding: 72px 64px 48px 104px;
    color: var(--iec-cream);
    justify-content: center;
}
.iec-home .iec-quote--lead::after {           /* inner gold rule, like a stationery border */
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(227, 211, 181, .38);
    pointer-events: none;
}
.iec-home .iec-quote--lead blockquote { position: relative; }
.iec-home .iec-quote--lead blockquote::before {
    content: "\201C";
    position: absolute;
    left: -56px;
    top: -18px;
    font-family: var(--iec-serif);
    font-size: 120px;
    line-height: 1;
    color: var(--iec-gold);
}
.iec-home .iec-quote--lead blockquote p {
    font-family: var(--iec-serif);
    font-size: clamp(25px, 2.35vw, 33px);
    line-height: 1.32;
    color: var(--iec-cream);
}
.iec-home .iec-quote--lead figcaption { margin-top: 0; padding-top: 32px; color: var(--iec-gold-soft); font-size: 16px; }
.iec-home .iec-quote--lead .iec-quote__avatar { background: var(--iec-cream); box-shadow: 0 0 0 1px rgba(227, 211, 181, .6); }

/* --------------------------------------------------------------------------
   6. Who we are
   -------------------------------------------------------------------------- */
.iec-home .iec-about {
    background: var(--iec-paper);
    border-top: 1px solid var(--iec-line);
    padding: var(--iec-section) 0;
}
.iec-home .iec-about__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: 96px;
    align-items: start;
}
.iec-home .iec-about__copy h2 { font-size: clamp(34px, 3.4vw, 48px); line-height: 1.08; margin-bottom: 24px; }
.iec-home .iec-about__copy p { color: var(--iec-muted); max-width: 56ch; margin-bottom: 16px; font-size: 18px; }
.iec-home .iec-about__copy .iec-link { display: inline-block; margin-top: 12px; }

.iec-home .iec-about__advisors {
    padding: 36px 36px 28px;
    background: var(--iec-cream);
    border: 1px solid var(--iec-line);
}
.iec-home .iec-about__advisors h3 { font-size: 25px; color: var(--iec-maroon); margin-bottom: 18px !important; }
.iec-home .iec-about__note { margin: 6px 0 18px !important; font-size: 15px; color: var(--iec-muted); }
.iec-home .iec-advisors { list-style: none; margin: 0; padding: 0; }
.iec-home .iec-advisors li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-top: 1px solid var(--iec-line);
    font-size: 16px;
}
.iec-home .iec-advisors__seal {
    flex: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff var(--iec-star) center / 20px 20px no-repeat;
    box-shadow: 0 0 0 1px var(--iec-gold-soft);
}
.iec-home .iec-advisors b { display: block; font-weight: 500; margin-bottom: 2px; width: fit-content; max-width: 100%; }
.iec-home .iec-advisors li span:not(.iec-advisors__seal) { font-size: 14px; }
.iec-home .iec-guide__bio {
    margin: 4px 0 0 !important;
    padding-top: 16px;
    border-top: 1px solid var(--iec-line);
    font-size: 15px;
    line-height: 1.75;
    color: var(--iec-muted);
    text-align: left;
}

/* Mission statement (inside "Who we are") */
.iec-home .iec-mission {
    margin: 28px 0 24px;
    padding: 4px 0 4px 24px;
    border: 0;
    border-left: 2px solid var(--iec-gold);
}
.iec-home .iec-mission p {
    font-family: var(--iec-serif);
    font-size: 25px;
    line-height: 1.35;
    color: var(--iec-maroon) !important;
    max-width: 30ch;
    margin: 0 !important;
}

/* --------------------------------------------------------------------------
   7. FAQ — native <details>, no script
   -------------------------------------------------------------------------- */
.iec-home .iec-faq { padding: var(--iec-section) 0; }
.iec-home .iec-faq__inner {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 80px;
    align-items: start;
}
.iec-home .iec-faq__list { border-top: 1px solid var(--iec-line); }
.iec-home .iec-faq details { border-bottom: 1px solid var(--iec-line); }
.iec-home .iec-faq summary {
    position: relative;
    display: block;
    padding: 22px 48px 22px 0;
    font-family: var(--iec-serif);
    font-size: 22px;
    line-height: 1.3;
    color: var(--iec-ink);
    cursor: pointer;
    list-style: none;
}
.iec-home .iec-faq summary::-webkit-details-marker { display: none; }
.iec-home .iec-faq summary::after {             /* plus that turns into a minus */
    content: "";
    position: absolute;
    right: 6px;
    top: 50%;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    background:
        linear-gradient(var(--iec-maroon), var(--iec-maroon)) center / 16px 1.5px no-repeat,
        linear-gradient(var(--iec-maroon), var(--iec-maroon)) center / 1.5px 16px no-repeat;
    transition: transform .2s ease;
}
.iec-home .iec-faq details[open] summary::after {
    background: linear-gradient(var(--iec-maroon), var(--iec-maroon)) center / 16px 1.5px no-repeat;
}
.iec-home .iec-faq summary:hover { color: var(--iec-maroon); }
.iec-home .iec-faq summary:focus-visible { outline: 2px solid var(--iec-gold); outline-offset: 4px; }
.iec-home .iec-faq details > div { padding: 0 48px 24px 0; }
.iec-home .iec-faq details p { color: var(--iec-muted); font-size: 17px; max-width: 60ch; }
@media (prefers-reduced-motion: no-preference) {
    .iec-home .iec-faq details[open] > div { animation: iec-rise .25s ease-out; }
}

/* Mobile sticky "Join free" bar (shown by a small script once the hero scrolls away) */
.iec-home .iec-stickybar { display: none; }

/* --------------------------------------------------------------------------
   7. Call to action band — the niche returns, lattice at a whisper
   -------------------------------------------------------------------------- */
.iec-home .iec-cta {
    position: relative;
    overflow: hidden;
    background: var(--iec-maroon);
    color: var(--iec-cream);
    padding: 176px 0 120px;
    text-align: center;
}
.iec-home .iec-cta::before,
.iec-home .iec-cta::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 40px;
    bottom: -40px;
    width: min(760px, 92%);
    transform: translateX(-50%);
    pointer-events: none;
}
.iec-home .iec-cta::before {
    opacity: .13;
    background:
        linear-gradient(to bottom, rgba(26, 122, 114,0) 30%, var(--iec-maroon) 95%),
        var(--iec-lattice-light) center top / 48px 48px repeat;
    -webkit-mask:
        var(--iec-cap-fill) top / 100% 150px no-repeat,
        linear-gradient(#000, #000) 0 149px / 100% 100% no-repeat;
    mask:
        var(--iec-cap-fill) top / 100% 150px no-repeat,
        linear-gradient(#000, #000) 0 149px / 100% 100% no-repeat;
}
.iec-home .iec-cta::after {
    background:
        var(--iec-niche-line) top / 100% 150px no-repeat,
        linear-gradient(rgba(168,128,63,.7), rgba(168,128,63,.7)) left 150px / 1px 100% no-repeat,
        linear-gradient(rgba(168,128,63,.7), rgba(168,128,63,.7)) right 150px / 1px 100% no-repeat;
}
.iec-home .iec-cta__inner { position: relative; z-index: 1; }
.iec-home .iec-cta h2 {
    color: var(--iec-cream);
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1.06;
}
.iec-home .iec-cta p {
    margin: 20px auto 0;
    max-width: 40ch;
    font-size: 18px;
    color: rgba(250, 246, 239, .84);
    text-wrap: balance;
}
.iec-home .iec-cta__actions {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px 32px;
}

/* ==========================================================================
   Site-wide chrome: header (layouts/top-nav)
   ========================================================================== */
header {
    position: relative;
    z-index: 40;
    padding: 0;
    background: var(--iec-cream);
    border-bottom: 1px solid var(--iec-line);
    font-family: var(--iec-sans);
}
header .navbar-inverse-blue,
header .navbar-inner { background: transparent; border: 0; min-height: 0; margin: 0; }
header .navbar-inner > .container {
    width: auto;
    max-width: 1240px;
    padding: 14px var(--iec-gutter);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
header .navbar-inner > .container::before,
header .navbar-inner > .container::after,
header .navbar-inner > .container > .clearfix,
header .navbar-inner > .container > br { display: none; }
header .menu { float: none; }
header .logo { float: none; }
header .logo img { display: block; width: 112px !important; height: auto; }
header .pull-right { float: none !important; margin-left: auto; }
header .nav_bottom { min-height: 0; margin: 0; border: 0; background: transparent; }
header .navbar-collapse { padding: 0; border: 0; box-shadow: none; }

header .nav_1 { display: flex; align-items: center; float: none; margin: 0; }
header .nav_1 > li { float: none; margin: 0 !important; }
header .nav_1 > li > a,
header .nav_1 > li > a.nav-link {
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 400;
    color: var(--iec-ink);
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    text-transform: none;
    letter-spacing: 0;
}
header .nav_1 > li > a:hover,
header .nav_1 > li > a:focus {
    color: var(--iec-maroon) !important;
    background: transparent !important;
    text-decoration: underline;
    text-decoration-color: var(--iec-gold);
    text-underline-offset: 6px;
}
header .nav_1 .dropdown-menu { border-color: var(--iec-line); border-radius: 2px; box-shadow: 0 14px 30px rgba(42,31,29,.12); }
header .nav_1 .dropdown-menu > li > a { padding: 10px 18px; font-family: var(--iec-sans); color: var(--iec-ink); }
header .nav_1 .dropdown-menu > li > a:hover { background: var(--iec-cream); color: var(--iec-maroon); }

/* Signed-in links carry inline maroon backgrounds: calm them to text links */
header .nav_1 > li > a[style] { color: var(--iec-maroon) !important; font-weight: 500; }

header .nav_1 > li.iec-nav-signin { margin-left: 12px !important; padding-left: 12px; border-left: 1px solid var(--iec-line); }
header .nav_1 > li.iec-nav-signin > a { color: var(--iec-maroon); font-weight: 500; }
header .nav_1 > li.iec-nav-join > a,
header .nav_1 > li.iec-nav-join > a:hover,
header .nav_1 > li.iec-nav-join > a:focus {
    margin-left: 6px;
    padding: 12px 22px;
    background: var(--iec-maroon) !important;
    color: var(--iec-cream) !important;
    font-weight: 500;
    border-radius: 2px !important;
    text-decoration: none;
}
header .nav_1 > li.iec-nav-join > a:hover { background: var(--iec-maroon-deep) !important; }

/* Keyword quick-search row: hidden on the homepage (the hero has search), refined elsewhere */
header .navbar-inner > .container > .col-md-12 { flex: 0 0 100%; padding: 12px 0 2px; float: none; }
body:has(.iec-home) header .navbar-inner > .container > .col-md-12 { display: none; }
header .form-styled .input-group { max-width: 560px; margin: 0 auto; }
header .form-styled .input-group-addon { background: #fff; border-color: #D9CCB8; color: var(--iec-gold-text); border-radius: 2px 0 0 2px; }
header .form-styled input.login-w3ls { height: 44px; width: 100%; border: 1px solid #D9CCB8; border-left: 0; padding: 0 14px; font-family: var(--iec-sans); font-size: 16px; border-radius: 0 2px 2px 0; background: #fff; }

/* Mobile toggle */
header .navbar-toggle.navbar-toggle1,
header button.navbar-toggle.navbar-toggle1.collapsed {
    display: none;
    position: relative;
    float: none;
    margin: 0;
    min-height: 44px;
    padding: 0 14px 0 16px;
    border: 1px solid var(--iec-line) !important;
    border-radius: 2px;
    background: #fff !important;
    color: var(--iec-maroon) !important;
    font-family: var(--iec-sans);
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
}
header .navbar-toggle1 .icon-bar { display: none; }
header .navbar-toggle1::after {
    content: "";
    display: inline-block;
    width: 16px;
    height: 10px;
    margin-left: 10px;
    vertical-align: 1px;
    background: linear-gradient(var(--iec-maroon), var(--iec-maroon)) top / 100% 1.5px no-repeat,
                linear-gradient(var(--iec-maroon), var(--iec-maroon)) center / 100% 1.5px no-repeat,
                linear-gradient(var(--iec-maroon), var(--iec-maroon)) bottom / 100% 1.5px no-repeat;
}

/* ==========================================================================
   Site-wide chrome: footer (layouts/footer-section)
   ========================================================================== */
footer { background: var(--iec-night); font-family: var(--iec-sans); color: #CDBFB4; }
footer .footer { padding: 80px 0 56px; background: transparent; }
footer .container { width: auto; max-width: 1240px; padding-left: var(--iec-gutter); padding-right: var(--iec-gutter); }
footer .footer-info { display: grid; grid-template-columns: 1.2fr 1.4fr 1fr; gap: 48px; }
footer .footer-info::before,
footer .footer-info::after { display: none; }
footer .footer-grids { float: none; width: auto; padding: 0; text-align: left !important; }
footer .footer-grids .logo { float: none; display: inline-block !important; width: auto !important; max-width: max-content; margin: 0 !important; padding: 12px 14px; background: var(--iec-cream); border-radius: 2px; }
footer .footer-grids .logo img { display: block; width: 104px !important; }
footer p { text-align: left; }
footer .iec-footer-note { margin-top: 20px; max-width: 30ch; font-size: 15px; line-height: 1.6; color: #A99A90; }
footer .footer h3 {
    font-family: var(--iec-serif);
    font-size: 21px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: var(--iec-cream);
    margin: 0 0 16px;
}
footer .footer-grids .row { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
footer .footer-grids .row::before,
footer .footer-grids .row::after { display: none; }
footer .footer-grids .row > div { float: none; width: auto; padding: 0; }
footer .footer-grids ul li { margin: 0; font-size: 15px; }
footer .footer-grids ul li a { display: inline-block; padding: 10px 0; color: #CDBFB4; text-decoration: none; }   /* 44px tap rows */
footer .footer-grids ul li a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--iec-gold); text-underline-offset: 4px; }

footer .social { margin: 0; }
footer .social ul { display: flex; gap: 12px; }
footer .social ul li { margin: 0; }
footer .social a,
footer .social a.icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    line-height: 0;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(168, 128, 63, .55);
    color: var(--iec-cream);
    overflow: visible;
}
footer .social a::before,
footer .social a::after { display: none !important; }
footer .social a .fa { display: block; width: auto; height: auto; margin: 0; padding: 0; font-size: 16px; line-height: 1; color: inherit; }
footer .social a:hover { background: var(--iec-gold); border-color: var(--iec-gold); color: var(--iec-night); }

footer .copy-right { background: transparent; border-top: 1px solid rgba(205, 191, 180, .14); padding: 22px 0; text-align: left; }
footer .copy-right p { font-size: 14px; color: #A99A90; font-weight: 400; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
    header .nav_1 > li > a, header .nav_1 > li > a.nav-link { padding: 12px 12px; }
    .iec-home .iec-hero__inner { gap: 64px; }
}

@media (max-width: 991px) {
    :root { --iec-section: 96px; }
    .iec-home .iec-hero__inner { grid-template-columns: 1fr; gap: 64px; }
    .iec-home .iec-hero__copy { max-width: 640px; }
    .iec-home .iec-hero__search { max-width: 560px; }
    .iec-home .iec-steps__inner { grid-template-columns: 1fr; gap: 56px; }
    .iec-home .iec-demo { max-width: 480px; }
    .iec-home .iec-faq__inner { grid-template-columns: 1fr; gap: 8px; }
    .iec-home .iec-profiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .iec-home .iec-about__inner { grid-template-columns: 1fr; gap: 56px; }
    footer .footer-info { grid-template-columns: 1fr 1fr; }
    footer .footer-grids:first-child { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
    :root { --iec-cap: 62px; --iec-gutter: 20px; --iec-section: 72px; }

    .iec-home { font-size: 16px; }
    .iec-home .shw-for-web { display: none; }
    .iec-home .shw-for-mobl { display: block; }
    .iec-home .shw-for-mobl .agileits-register { width: auto !important; margin: 0 !important; left: 0 !important; right: auto !important; }

    /* Header */
    header .navbar-inner > .container { padding-top: 12px; padding-bottom: 12px; }
    header .logo img { width: 96px !important; }
    header .pull-right,
    header .navbar-header { float: none !important; width: auto !important; margin: 0 0 0 auto !important; }
    header .nav_bottom { position: static; }
    header .navbar-toggle.navbar-toggle1,
    header button.navbar-toggle.navbar-toggle1.collapsed { display: inline-flex; align-items: center; }
    header .navbar-collapse {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        margin: 0 !important;
        background: var(--iec-cream);
        border-bottom: 1px solid var(--iec-line) !important;
        box-shadow: 0 18px 30px rgba(42, 31, 29, .10) !important;
    }
    header .navbar-collapse.in { overflow-y: auto !important; }
    header .nav_1 { display: block; padding: 8px var(--iec-gutter) 20px; text-align: left; }
    header .nav_1 > li { text-align: left; }
    header .nav_1 > li > a, header .nav_1 > li > a.nav-link { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--iec-line) !important; }
    header .nav_1 > li.iec-nav-signin { margin: 0 !important; padding: 0; border: 0; }
    header .nav_1 > li.iec-nav-join > a,
    header .nav_1 > li.iec-nav-join > a:hover { display: block; margin: 16px 0 0; text-align: center; border-bottom: 0 !important; }

    /* Hero */
    .iec-home .w3layouts-banner.iec-hero { padding: 44px 0 0; }
    .iec-home .iec-hero__inner { gap: 40px; }
    .iec-home .iec-eyebrow { font-size: 12px; letter-spacing: .18em; margin-bottom: 18px; gap: 10px; }
    .iec-home .iec-eyebrow::before { width: 24px; }
    .iec-home .iec-hero__title { font-size: clamp(30px, 9.4vw, 52px); line-height: 1.08; }
    .iec-home .iec-hero__lede { font-size: 17px; margin-top: 18px; }
    .iec-home .iec-hero__actions { margin-top: 28px; gap: 10px; }
    .iec-home .iec-hero__actions .iec-btn { flex: 1 1 auto; padding: 15px 16px; }

    /* On phones the latticed niche becomes the backdrop the card sits in, edge to edge */
    .iec-home .iec-hero__search { max-width: none; margin: 0 calc(var(--iec-gutter) * -1); padding: calc(var(--iec-cap) + 36px) var(--iec-gutter) 48px; }
    .iec-home .iec-hero__search::before,
    .iec-home .iec-hero__search::after { left: 0; right: 0; top: 0; bottom: 0; }
    .iec-home .iec-hero__search::before {
        background: var(--iec-lattice) center top / 40px 40px repeat;
        -webkit-mask: var(--iec-cap-fill) top / 100% 70px no-repeat, linear-gradient(#000, #000) 0 69px / 100% 100% no-repeat;
        mask: var(--iec-cap-fill) top / 100% 70px no-repeat, linear-gradient(#000, #000) 0 69px / 100% 100% no-repeat;
        opacity: .4;
    }
    .iec-home .iec-hero__search::after { display: none; }
    @keyframes iec-fade { from { opacity: 0; } to { opacity: .4; } }

    .iec-home .iec-hero .agileits-register { padding: 0 22px 26px; }
    .iec-home .iec-hero .agileits-register h3 { font-size: 26px; margin: -22px 0 20px !important; padding-bottom: 14px; }
    .iec-home .agileits-register form { gap: 16px 12px; }
    .iec-home #profile_search_form_mbl > .w3_modal_body_grid:nth-child(1),
    .iec-home #profile_search_form_mbl > .w3_modal_body_grid:nth-child(2),
    .iec-home #profile_search_form_mbl > .w3_modal_body_grid:nth-child(5),
    .iec-home #profile_search_form_mbl > .w3_modal_body_grid:nth-child(6) { grid-column: 1 / -1; }

    /* Trust */
    .iec-home .iec-trust__list { grid-template-columns: 1fr; }
    .iec-home .iec-trust__list li,
    .iec-home .iec-trust__list li:first-child,
    .iec-home .iec-trust__list li:last-child { padding: 26px 0; }
    .iec-home .iec-trust__list li + li { border-left: 0; border-top: 1px solid var(--iec-line); }
    .iec-home .iec-trust__list h3 { font-size: 23px; margin-bottom: 6px; }
    .iec-home .iec-trust__list p { font-size: 16px; padding-left: 30px; }

    .iec-home .iec-section-head { margin-bottom: 36px; }
    .iec-home .iec-section-head h2,
    .iec-home .agile_featured-profiles h2,
    .iec-home .iec-about__copy h2 { font-size: 34px; }
    .iec-home .iec-section-head p { font-size: 17px; }

    /* Steps */
    .iec-home .iec-steps__list li { grid-template-columns: 44px 1fr; column-gap: 16px; }
    .iec-home .iec-steps__list li::before { left: 14px; top: 56px; }
    .iec-home .iec-steps__num { font-size: 46px; }
    .iec-home .iec-steps__list h3 { font-size: 23px; margin-top: 8px; }
    .iec-home .iec-steps__list p { font-size: 16px; }
    .iec-home .iec-demo__card { padding: 22px 18px 18px; }
    .iec-home .iec-demo__rows dt, .iec-home .iec-demo__rows dd { font-size: 14px; }
    .iec-home .iec-mission p { font-size: 22px; }

    /* FAQ */
    .iec-home .iec-faq summary { font-size: 19px; padding: 18px 40px 18px 0; }
    .iec-home .iec-faq details > div { padding-right: 0; }
    .iec-home .iec-faq details p { font-size: 16px; }

    /* Sticky join bar */
    .iec-home .iec-stickybar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 60;
        padding: 10px var(--iec-gutter) calc(10px + env(safe-area-inset-bottom));
        background: rgba(250, 246, 239, .97);
        border-top: 1px solid var(--iec-line);
        box-shadow: 0 -8px 24px rgba(42, 31, 29, .08);
        font-size: 14px;
        color: var(--iec-muted);
        transform: translateY(110%);
        transition: transform .3s ease;
    }
    .iec-home .iec-stickybar.is-visible { transform: none; }
    .iec-home .iec-stickybar .iec-btn { flex: none; padding: 12px 22px; min-height: 44px; }
    body:has(.iec-stickybar.is-visible) footer .copy-right { padding-bottom: 88px; }

    /* Profiles: 2-up */
    .iec-home .iec-featured__all { display: none; }
    .iec-home .iec-featured__more { display: block; }
    .iec-home .iec-featured__more .iec-btn { display: block; }
    .iec-home .iec-profiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .iec-home .iec-profiles .biseller-column > a { border-radius: 14px; }
    .iec-home .iec-profiles .agile-overlay { padding: 14px 12px 0; }
    .iec-home .iec-profiles .iec-profile__lead { font-size: 18px; margin-bottom: 6px !important; }
    .iec-home .iec-profiles .agile-overlay ul li { padding: 2px 10px 3px; font-size: 12.5px; }
    .iec-home .iec-profiles .iec-profile__foot { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 0 14px; }
    .iec-home .iec-profiles .iec-profile__id { font-size: 12px; }
    .iec-home .iec-profile__cta { min-height: 40px; font-size: 14px; }

    /* Testimonials */
    .iec-home .iec-voices__grid { grid-template-columns: 1fr; gap: 16px; }
    .iec-home .iec-quote--lead { grid-row: auto; padding: 64px 28px 36px; }
    .iec-home .iec-quote--lead blockquote::before { left: 0; top: -62px; font-size: 88px; }
    .iec-home .iec-quote--lead blockquote p { font-size: 24px; }
    .iec-home .iec-quote:not(.iec-quote--lead) { padding: 26px 22px 22px; }   /* :not() so it can't override the lead's padding */
    .iec-home .iec-quote blockquote p { font-size: 17px; }

    /* About */
    .iec-home .iec-about__copy p { font-size: 17px; }
    .iec-home .iec-about__advisors { padding: 28px 22px 18px; margin: 0 calc(var(--iec-gutter) * -1); border-left: 0; border-right: 0; }

    /* CTA */
    .iec-home .iec-cta { padding: 136px 0 88px; }
    .iec-home .iec-cta::before,
    .iec-home .iec-cta::after { width: calc(100% - 40px); top: 28px; }
    .iec-home .iec-cta h2 { font-size: 36px; }
    .iec-home .iec-cta p { font-size: 17px; padding: 0 12px; }
    .iec-home .iec-cta__actions .iec-btn { min-width: 240px; }

    /* Footer */
    footer .footer { padding: 56px 0 36px; }
    footer .footer-info { grid-template-columns: 1fr; gap: 36px; }
    footer .copy-right { padding: 18px 0 24px; }
}

@media (prefers-reduced-motion: reduce) {
    .iec-home *, .iec-home *::before, .iec-home *::after, header *, footer * { animation: none !important; }
    .iec-home .iec-stickybar { transition: opacity .2s ease !important; }
}


/* ==========================================================================
   INNER PAGES
   Scoped by classes added to existing wrappers:
   - .iec-page .iec-auth     auth/login.blade.php (Login / Register)
   - .iec-page .iec-listing  profiles, profileSearch, profileFullSearch
   - .iec-page .iec-cms      slug.blade.php (How it works, About IEC, policies)
   Other member pages (My Matches, Starred, Meetings…) are untouched.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Shared page head: banner + breadcrumbs
   -------------------------------------------------------------------------- */
body:has(.iec-page) { background: var(--iec-cream); }

body:has(.iec-page) .w3layouts-inner-banner {
    position: relative;
    min-height: 0;
    height: 190px;
    padding: 0;
    background-attachment: scroll !important;
    overflow: hidden;
}
body:has(.iec-page) .w3layouts-inner-banner::before,
body:has(.iec-page) .w3layouts-inner-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}
body:has(.iec-page) .w3layouts-inner-banner::before {   /* maroon wash over the admin's banner photo */
    background: linear-gradient(180deg, rgba(26, 122, 114, .9), rgba(86, 22, 32, .95));
}
body:has(.iec-page) .w3layouts-inner-banner::after {    /* the lattice, as on the homepage */
    background: var(--iec-lattice-light) center / 48px 48px repeat;
    opacity: .16;
}

body:has(.iec-page) .w3layouts-breadcrumbs {
    background: var(--iec-paper);
    border-bottom: 1px solid var(--iec-line);
    padding: 14px 0;
    text-align: left !important;
    font-family: var(--iec-sans);
}
body:has(.iec-page) .w3layouts-breadcrumbs .container {
    width: auto;
    max-width: 1240px;
    padding: 0 var(--iec-gutter);
}
body:has(.iec-page) span.agile-breadcrumbs { font-size: 14px; color: var(--iec-muted); }
body:has(.iec-page) span.agile-breadcrumbs a { color: var(--iec-maroon); margin: 0 4px 0 0; text-decoration: none; }
body:has(.iec-page) span.agile-breadcrumbs a:hover { text-decoration: underline; text-decoration-color: var(--iec-gold); text-underline-offset: 4px; }
body:has(.iec-page) span.agile-breadcrumbs > span { color: var(--iec-ink); margin-left: 4px; }

/* Shared form controls on inner pages */
.iec-page { font-family: var(--iec-sans); color: var(--iec-ink); -webkit-font-smoothing: antialiased; }
.iec-page p { text-align: inherit; }   /* legacy mobile CSS justifies every <p>; inline text-align in CMS content still wins */
.iec-page .container { width: auto; max-width: 1240px; padding-left: var(--iec-gutter); padding-right: var(--iec-gutter); }
.iec-page a:focus-visible,
.iec-page button:focus-visible,
.iec-page select:focus-visible,
.iec-page input:focus-visible { outline: 2px solid var(--iec-gold); outline-offset: 3px; }

.iec-auth input[type="text"],
.iec-auth input[type="email"],
.iec-auth input[type="password"],
.iec-auth select,
.iec-listing select.login-w3ls,
.iec-listing .login-w3ls-custom .btn-default,
.iec-listing .bootstrap-select > .dropdown-toggle {
    display: block;
    width: 100% !important;
    height: 48px;
    margin: 0;
    padding: 0 14px;
    font-family: var(--iec-sans);
    font-size: 16px;                       /* stops iOS zooming on focus */
    letter-spacing: 0;
    color: var(--iec-ink);
    background: #fff;
    border: 1px solid #D9CCB8;
    border-radius: 2px;
    box-shadow: none;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.iec-auth select,
.iec-listing select.login-w3ls,
.iec-listing .login-w3ls-custom .btn-default,
.iec-listing .bootstrap-select > .dropdown-toggle {
    padding-right: 38px;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231A7A72' stroke-width='1.4'/%3E%3C/svg%3E") right 14px center / 11px 7px no-repeat;
    text-align: left;
}
.iec-auth input:hover, .iec-auth select:hover,
.iec-listing select.login-w3ls:hover,
.iec-listing .bootstrap-select > .dropdown-toggle:hover { border-color: var(--iec-gold); }
.iec-auth input:focus, .iec-auth select:focus,
.iec-listing select.login-w3ls:focus,
.iec-listing .bootstrap-select > .dropdown-toggle:focus,
.iec-listing .bootstrap-select.open > .dropdown-toggle {
    border-color: var(--iec-maroon);
    box-shadow: 0 0 0 3px rgba(26, 122, 114, .12);
    outline: none !important;
}
.iec-listing .bootstrap-select .bs-caret { display: none; }
.iec-listing .bootstrap-select .filter-option { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iec-listing .bootstrap-select > .dropdown-toggle { line-height: 46px; padding-top: 0; padding-bottom: 0; }

/* Primary button (.main_grey_btn) inside these pages */
.iec-page .main_grey_btn {
    float: none;
    width: 100%;
    min-height: 52px;
    margin: 24px 0 0;
    padding: 15px 22px;
    border: 0;
    border-radius: 2px;
    background: var(--iec-maroon);
    color: var(--iec-cream);
    font-family: var(--iec-sans);
    font-size: 17px;
    font-weight: 500;
    letter-spacing: .01em;
    text-transform: none;
    transition: background-color .2s;
}
.iec-page .main_grey_btn::after { display: none; }
.iec-page .main_grey_btn:hover { background: var(--iec-maroon-deep); color: #fff !important; }
.iec-page .main_grey_btn .fa { margin-right: 8px; font-size: 15px; opacity: .8; }
.iec-page .main_grey_btn.disabled { opacity: 1; }   /* the validator marks it "disabled" until valid; clicking still shows what's missing */

/* --------------------------------------------------------------------------
   Login / Register  (.iec-auth)
   -------------------------------------------------------------------------- */
.w3l_about.iec-auth { background: var(--iec-cream); padding: 64px 0 104px; }
.iec-auth .container { max-width: 1120px; }
.iec-auth .row.login-w3ls {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 32px;
    align-items: start;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    width: auto;
}
.iec-auth .row.login-w3ls::before,
.iec-auth .row.login-w3ls::after { display: none; }
.iec-auth .row.login-w3ls > .col-md-6 {
    position: relative;
    float: none;
    width: auto;
    padding: 40px 40px 36px;
    background: #fff;
    border: 1px solid var(--iec-line);
}
.iec-auth .row.login-w3ls > .col-md-6::after {      /* stationery inner rule */
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid var(--iec-gold-soft);
    pointer-events: none;
}
.iec-auth .row.login-w3ls > .col-md-6:last-child { box-shadow: 0 24px 48px rgba(26, 122, 114, .08); }
.iec-auth h3 {
    margin: 0 0 6px;
    font-family: var(--iec-serif);
    font-size: 34px;
    font-weight: 400;
    line-height: 1.1;
    color: var(--iec-maroon);
    text-transform: none;
}
.iec-auth .iec-auth__intro {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.55;
    letter-spacing: 0;
    color: var(--iec-muted);
}
.iec-auth form { position: relative; z-index: 1; }
.iec-auth .form-group { margin: 0; }
.iec-auth .login-w3ls label,
.iec-auth label {
    display: block;
    margin: 18px 0 7px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.4;
    color: var(--iec-muted);
}
.iec-auth .fa-question-circle { color: var(--iec-gold) !important; margin-left: 4px; cursor: help; }
.iec-auth .help-block { margin: 6px 0 0; font-size: 13px; }
.iec-auth .has-error input,
.iec-auth .has-error select { border-color: #A23B3B; }
.iec-auth .has-error .help-block { color: #A23B3B; }
.iec-auth .form-control-feedback { display: none; }

/* Gender: the hidden radios drawn as two selectable options */
.iec-auth .w3_modal_body_grid > label { margin-bottom: 8px; }
.iec-auth .w3_gender { width: auto; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.iec-auth .w3_gender > .clearfix { display: none; }
.iec-auth .w3_gender .colr { float: none; margin: 0; }
.iec-auth label.radio {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    margin: 0;
    padding: 0 14px;
    font-size: 16px;
    font-weight: 400;
    color: var(--iec-ink);
    background: #fff;
    border: 1px solid #D9CCB8;
    border-radius: 2px;
    cursor: pointer;
    transition: border-color .15s, background-color .15s;
}
.iec-auth label.radio:hover { border-color: var(--iec-gold); }
.iec-auth label.radio:has(input:checked) { border-color: var(--iec-maroon); background: var(--iec-cream); }
.iec-auth label.radio:has(input:focus-visible) { outline: 2px solid var(--iec-gold); outline-offset: 2px; }
.iec-auth .radio i {
    position: relative;
    top: auto;
    left: auto;
    flex: none;
    width: 18px;
    height: 18px;
    background: #D9CCB8;
}
.iec-auth .radio input + i::after { top: 3px; left: 3px; width: 12px; height: 12px; }
.iec-auth .radio input:checked + i { background: var(--iec-maroon); }

/* Terms checkbox */
.iec-auth .w3-agree { margin: 22px 0 0; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; }
.iec-auth .w3-agree input[type="checkbox"] {
    flex: none;
    width: 20px;
    height: 20px;
    margin: 1px 0 0;
    accent-color: var(--iec-maroon);
    cursor: pointer;
}
.iec-auth .w3-agree label.agileits-agree { flex: 1; margin: 0 !important; font-size: 15px; color: var(--iec-ink); }
.iec-auth .w3-agree .help-block { flex-basis: 100%; }
.iec-auth a { color: var(--iec-maroon); }
.iec-auth .w3-agree a { text-decoration: underline; text-decoration-color: var(--iec-gold); text-underline-offset: 3px; }

.iec-auth .w3ls-loginr { margin: 14px 0 0; text-align: right; }
.iec-auth .w3ls-loginr a {
    float: none;
    display: inline-block;
    padding: 6px 0;
    font-size: 15px;
    color: var(--iec-maroon);
    text-decoration: underline;
    text-decoration-color: var(--iec-gold);
    text-underline-offset: 4px;
}
.iec-auth .custom_errors { margin: 16px 0 0; border-radius: 2px; }

/* --------------------------------------------------------------------------
   Profiles + search results  (.iec-listing)
   -------------------------------------------------------------------------- */
.w3ls-list.iec-listing { background: var(--iec-cream); padding: 48px 0 8px !important; }
.iec-listing #profile_search_form {
    position: relative;
    padding: 30px 32px 32px;
    background: #fff;
    border: 1px solid var(--iec-line);
}
.iec-listing #profile_search_form .row { margin-left: -8px; margin-right: -8px; }
.iec-listing #profile_search_form .row > [class*="col-md"] { padding-left: 8px; padding-right: 8px; }
.iec-listing #profile_search_form h3 {
    margin: 0;
    font-family: var(--iec-serif);
    font-size: 30px;
    font-weight: 400;
    color: var(--iec-maroon);
    text-align: left;
    text-transform: none;
}
.iec-listing #profile_search_form hr { margin: 16px 0 6px; border-top: 1px solid var(--iec-line); }
.iec-listing #profile_search_form .form-group { margin: 12px 0 0; }
.iec-listing #profile_search_form label {
    display: block;
    margin: 0 0 7px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--iec-muted);
}
.iec-listing #profile_search_form .main_grey_btn { width: auto; min-width: 260px; margin-top: 12px; }

/* Results */
.w3l_find-soulmate.iec-listing { background: var(--iec-cream) !important; padding: 0 !important; text-align: left; }
.iec-listing .w3layouts_all-profiles { padding: 8px 0 104px; }
.w3ls-list.iec-listing .w3layouts_all-profiles { padding: 0; }
.iec-listing .profiles-list-agileits { float: none; width: auto; padding: 0; }
.iec-listing .resp-tabs-container { background: transparent; border: 0; padding: 0; }
.iec-listing .profiles-list-agileits h3 {
    margin: 0 0 24px !important;
    font-family: var(--iec-serif);
    font-size: 28px;
    font-weight: 400;
    color: var(--iec-ink);
    text-align: left;
    text-transform: none;
}
.iec-listing .match-profile {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}
.iec-listing .match-profile > .clearfix { display: none; }
.iec-listing .one-w3-profile { float: none; width: auto; min-width: 0; padding: 0; --iec-tint: #F1E9DC; }
.iec-listing .one-w3-profile:nth-of-type(4n+2) { --iec-tint: #EFE3E1; }
.iec-listing .one-w3-profile:nth-of-type(4n+3) { --iec-tint: #E5EAE1; }
.iec-listing .one-w3-profile:nth-of-type(4n+4) { --iec-tint: #E3E7EC; }

/* Card: same as the homepage's featured cards. The .w3-prfr wrapper is
   flattened (display: contents) so its text and buttons join the card grid:
   photo / "Male, 29" / status / Profile ID + badge / buttons */
.iec-listing .profile-details {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) auto 18px;
    align-content: start;
    height: 100%;
    margin: 0;
    padding: 0 0 18px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--iec-line);
    border-radius: var(--iec-r-card, 16px);
    box-shadow: 0 1px 2px rgba(42, 31, 29, .04);
    text-align: left;
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s var(--iec-ease-out, ease-out);
}
.iec-listing .profile-details::before {          /* soft tint behind the avatar */
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    aspect-ratio: 1 / 1;
    background: var(--iec-tint);
    z-index: -1;
}
.iec-listing .profile-details > .clearfix { display: none; }
.iec-listing .w3-prfr { display: contents; }

.iec-listing img.prf-img {
    grid-column: 1 / -1;
    grid-row: 1;
    float: none;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    max-width: none;
    margin: 0 0 16px;
    border-radius: 0;
    object-fit: cover;
    background: none;
    box-shadow: none;
    filter: brightness(1.11) saturate(.95);   /* the avatars' #E6E6E6 tile becomes white... */
    mix-blend-mode: multiply;                 /* ...and white multiplies away into the tint */
}
.iec-listing .w3-prfr p.iec-card__lead {
    grid-column: 2 / 4;
    grid-row: 2;
    margin: 0 0 8px;
    font-family: var(--iec-sans);
    font-size: 21px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--iec-ink);
}
.iec-listing .w3-prfr p.iec-card__status {
    grid-column: 2 / 4;
    grid-row: 3;
    justify-self: start;
    margin: 0 0 14px;
    padding: 3px 11px 4px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--iec-ink);
    background: var(--iec-cream);
    border: 1px solid var(--iec-line);
    border-radius: 999px;
    white-space: nowrap;
}
.iec-listing .w3-prfr p:empty { display: none; }

.iec-listing .profile-details h5 {
    grid-column: 2 / 4;
    grid-row: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 14px;
    padding: 0;
    background: none;
    border: 0;
    font-family: var(--iec-sans);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.4;
    color: var(--iec-muted);
    text-transform: none;
    font-variant-numeric: tabular-nums;
}
.iec-listing .profile-details h5 .label {
    float: none;
    display: inline-block;
    flex: 0 0 auto;
    width: auto;
    margin: 0;
    padding: 3px 9px;
    font-family: var(--iec-sans);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0;
    border-radius: 999px;
}
.iec-listing .profile-details h5 .label-info { background: var(--iec-sand); color: var(--iec-gold-text); }
.iec-listing .profile-details h5 .label-danger { background: #F6E3E3; color: #8E2E2E; }

.iec-listing .w3-prfr a {
    grid-row: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0 16px;
    min-height: 40px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.2;
    border: 1px solid transparent;
    text-decoration: none;
}
.iec-listing .w3-prfr a.view-profile-btn { grid-column: 2; }
.iec-listing .w3-prfr a.prof-view-details-btn { grid-column: 2 / 4; }
.iec-listing .w3-prfr a.view-profile-btn,
.iec-listing .w3-prfr a.prof-view-details-btn { background: #fff; color: var(--iec-maroon); border-color: var(--iec-maroon); border-radius: 999px !important; }
.iec-listing .w3-prfr a.view-profile-btn:hover,
.iec-listing .w3-prfr a.prof-view-details-btn:hover,
.iec-listing .w3-prfr a.view-profile-btn:focus-visible,
.iec-listing .w3-prfr a.prof-view-details-btn:focus-visible { background: var(--iec-maroon); color: #fff; }
.iec-listing .w3-prfr a.dismiss-profile-btn { grid-column: 3; margin-left: 8px; padding: 0 6px; color: var(--iec-muted); background: none; }
.iec-listing .w3-prfr a.dismiss-profile-btn:hover { color: var(--iec-maroon); background: none; text-decoration: underline; text-decoration-color: var(--iec-gold); text-underline-offset: 4px; }

/* Star: a round "save" button on the photo, like a dating-app favourite */
.iec-listing .star-profile-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    font-size: 18px;
    background: rgba(255, 255, 255, .92);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(42, 31, 29, .12);
    color: var(--iec-gold) !important;
    text-decoration: none;
}
.iec-listing .star-profile-btn:hover { color: var(--iec-maroon) !important; }

@media (hover: hover) and (pointer: fine) {
    .iec-listing .profile-details:hover { border-color: var(--iec-gold-soft); box-shadow: 0 16px 36px rgba(42, 31, 29, .12); }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
    .iec-listing .profile-details:hover { transform: translateY(-3px); }
}

/* Empty results + pagination */
.iec-listing .alert-danger {
    float: none;
    width: auto;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--iec-line);
    border-radius: 2px;
    color: var(--iec-ink);
    font-size: 17px;
}
.iec-listing .pagination { margin: 40px 0 0; display: inline-flex; flex-wrap: wrap; gap: 6px; }
.iec-listing .pagination > li > a,
.iec-listing .pagination > li > span {
    float: none;
    min-width: 44px;
    height: 44px;
    margin: 0;
    padding: 0 12px;
    display: grid;
    place-items: center;
    font-size: 15px;
    color: var(--iec-maroon);
    background: #fff;
    border: 1px solid var(--iec-line);
    border-radius: 2px !important;
}
.iec-listing .pagination > li > a:hover { border-color: var(--iec-gold); background: var(--iec-cream); color: var(--iec-maroon-deep); }
.iec-listing .pagination > .active > a,
.iec-listing .pagination > .active > span,
.iec-listing .pagination > .active > span:hover {
    background-color: var(--iec-maroon) !important;
    border-color: var(--iec-maroon) !important;
    color: var(--iec-cream);
}
.iec-listing .pagination > .disabled > span { color: #B9ABA0; background: transparent; }

/* --------------------------------------------------------------------------
   CMS pages  (.iec-cms) — How it works, About IEC, policies.
   The content is written in the admin panel with inline colours, fonts and
   sizes; these rules calm them into the site's type without editing content.
   -------------------------------------------------------------------------- */
.w3l_about.iec-cms { background: var(--iec-cream); padding: 64px 0 104px; }
.iec-cms > .container { max-width: 880px; }
.iec-cms > .container > .row { margin: 0; }
.iec-cms .container .container { width: auto; padding: 0; margin: 0 !important; }
.iec-cms [style*="margin-left"] { margin-left: 0 !important; }
.iec-cms,
.iec-cms p, .iec-cms div, .iec-cms span, .iec-cms font, .iec-cms li, .iec-cms td {
    font-family: var(--iec-sans) !important;
}
.iec-cms [style*="color"],
.iec-cms font[color] { color: inherit !important; }
.iec-cms span[style*="font-size"],
.iec-cms p[style*="font-size"],
.iec-cms font[size] { font-size: inherit !important; }

.iec-cms p,
.iec-cms div,
.iec-cms li {
    font-size: 17px;
    line-height: 1.7;
    letter-spacing: 0;
    color: var(--iec-ink);
}
.iec-cms p { margin: 0 0 12px; }
.iec-cms ul, .iec-cms ol { margin: 0 0 16px; padding-left: 22px; }

/* Headings (content often types them in capitals; kept, set as engraved caps) */
.iec-cms h1, .iec-cms h2, .iec-cms h3, .iec-cms h4,
.iec-cms h1 *, .iec-cms h2 *, .iec-cms h3 *, .iec-cms h4 * {
    font-family: var(--iec-serif) !important;
    font-weight: 400 !important;
    color: var(--iec-maroon) !important;
}
.iec-cms h1 { margin: 40px 0 16px; font-size: 36px; line-height: 1.15; letter-spacing: .02em; }
.iec-cms h2, .iec-cms h3, .iec-cms h4 { margin: 28px 0 10px; font-size: 25px; line-height: 1.25; letter-spacing: .03em; }
.iec-cms .text-yellow { color: var(--iec-maroon) !important; }
/* An oversized line used as the page title (e.g. "HOW IT WORKS" at 30px+) */
.iec-cms span[style*="font-size: 3"],
.iec-cms span[style*="font-size: 4"],
.iec-cms span[style*="font-size:3"],
.iec-cms span[style*="font-size:4"] {
    display: block;
    font-family: var(--iec-serif) !important;
    font-size: 44px !important;
    font-weight: 400 !important;
    line-height: 1.1;
    letter-spacing: .02em;
    color: var(--iec-ink) !important;
}

/* Emphasis: bold terms become maroon */
.iec-cms b, .iec-cms strong,
.iec-cms span[style*="font-weight: bold"],
.iec-cms span[style*="font-weight:bold"] { font-weight: 600 !important; color: var(--iec-maroon) !important; }
.iec-cms b *, .iec-cms strong * { color: inherit !important; }
.iec-cms a { color: var(--iec-maroon); text-decoration: underline; text-decoration-color: var(--iec-gold); text-underline-offset: 3px; }

/* Bordered tables used as boxes become cards */
.iec-cms table.table {
    display: block;
    width: 100%;
    margin: 12px 0 28px;
    background: none;
    border: 0;
}
.iec-cms table.table > tbody,
.iec-cms table.table > tbody > tr { display: block; }
.iec-cms table.table > tbody > tr > td {
    position: relative;
    display: block;
    padding: 32px 36px 24px;
    background: #fff;
    border: 1px solid var(--iec-line) !important;
}
.iec-cms table.table > tbody > tr > td::after {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid var(--iec-gold-soft);
    pointer-events: none;
}
.iec-cms table.table td > :first-child { margin-top: 0; }
.iec-cms img { max-width: 100%; height: auto; }

/* --------------------------------------------------------------------------
   Inner pages: responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1199px) {
    .iec-listing .match-profile { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
    .iec-listing .match-profile { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
    .iec-auth .row.login-w3ls { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
    .iec-listing #profile_search_form .form-group.col-md-3 { float: left; width: 50%; }
}
@media (max-width: 767px) {
    body:has(.iec-page) .w3layouts-inner-banner { height: 96px; }
    .w3l_about.iec-auth { padding: 32px 0 72px; }
    .iec-auth .row.login-w3ls { gap: 20px; }
    .iec-auth .row.login-w3ls > .col-md-6 { padding: 28px 22px 26px; }
    .iec-auth h3 { font-size: 30px; }

    .w3ls-list.iec-listing { padding: 24px 0 0 !important; }
    .iec-listing #profile_search_form { padding: 22px 18px 22px; margin: 0 calc(var(--iec-gutter) * -1 + 4px); }
    .iec-listing #profile_search_form h3 { font-size: 26px; }
    .iec-listing #profile_search_form .main_grey_btn { width: 100%; min-width: 0; }
    .iec-listing .w3layouts_all-profiles { padding: 28px 0 72px; }
    .iec-listing .profiles-list-agileits h3 { font-size: 24px; margin-bottom: 16px !important; }
    .iec-listing .match-profile { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .iec-listing .profile-details { grid-template-columns: 12px minmax(0, 1fr) auto 12px; padding-bottom: 12px; border-radius: 14px; }
    .iec-listing img.prf-img { margin-bottom: 12px; }
    .iec-listing .w3-prfr p.iec-card__lead { font-size: 18px; margin-bottom: 6px; }
    .iec-listing .w3-prfr p.iec-card__status { padding: 2px 10px 3px; font-size: 12.5px; margin-bottom: 10px; }
    .iec-listing .profile-details h5 { flex-wrap: wrap; font-size: 12px; margin-bottom: 10px; }
    .iec-listing .w3-prfr a.view-profile-btn,
    .iec-listing .w3-prfr a.prof-view-details-btn { grid-column: 2 / 4; }
    .iec-listing .w3-prfr a.dismiss-profile-btn { grid-column: 2 / 4; grid-row: 6; margin: 4px 0 0; min-height: 36px; }
    .iec-listing .star-profile-btn { top: 8px; right: 8px; width: 36px; height: 36px; font-size: 16px; }

    .w3l_about.iec-cms { padding: 36px 0 72px; }
    .iec-cms p, .iec-cms div, .iec-cms li { font-size: 16px; }
    .iec-cms span[style*="font-size: 3"],
    .iec-cms span[style*="font-size: 4"],
    .iec-cms span[style*="font-size:3"],
    .iec-cms span[style*="font-size:4"] { font-size: 34px !important; }
    .iec-cms h1 { font-size: 30px; }
    .iec-cms h2, .iec-cms h3, .iec-cms h4 { font-size: 22px; }
    .iec-cms table.table > tbody > tr > td { padding: 26px 20px 18px; }
}
@media (max-width: 380px) {
    .iec-listing #profile_search_form .form-group.col-md-3 { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .iec-page *, .iec-page *::before, .iec-page *::after { animation: none !important; }
}

/* ==========================================================================
   POLISH PASS (round 4)
   One shape language across the site: soft rounded corners, no domes,
   no lattice behind content. Plus motion fixes: press feedback, one
   strong ease-out curve, hover effects only on devices that can hover.
   Everything above this block is unchanged except where noted in CHANGES.md.
   ========================================================================== */
:root {
    --iec-ease-out: cubic-bezier(.23, 1, .32, 1);      /* strong ease-out for UI */
    --iec-ease-drawer: cubic-bezier(.32, .72, 0, 1);   /* iOS-like sheet curve */
    --iec-r-control: 10px;                             /* buttons, inputs, selects */
    --iec-r-card: 16px;                                /* cards */
    --iec-r-panel: 20px;                               /* large panels */
    --iec-shadow-panel: 0 1px 2px rgba(42, 31, 29, .05), 0 28px 56px -18px rgba(42, 31, 29, .22);
}

/* ---- Buttons: rounded, and they answer a press ---- */
.iec-home .iec-btn,
.iec-home .agileits-register .main_grey_btn,
.iec-home .iec-demo__action,
.iec-page .main_grey_btn,
.iec-listing .w3-prfr a,
header .nav_1 > li.iec-nav-join > a,
header .nav_1 > li.iec-nav-join > a:focus {
    border-radius: var(--iec-r-control) !important;
    transition: background-color .16s ease, color .16s ease, border-color .16s ease, transform .16s var(--iec-ease-out);
}
@media (prefers-reduced-motion: no-preference) {
    .iec-home .iec-btn:active,
    .iec-home .agileits-register .main_grey_btn:active,
    .iec-home .iec-demo__action:active,
    .iec-page .main_grey_btn:active,
    .iec-listing .w3-prfr a:active,
    .iec-home .iec-demo__switch label:active,
    header .nav_1 > li.iec-nav-join > a:active { transform: scale(.97); }
}
.iec-home .iec-profiles .biseller-column > a:active .iec-profile__cta { transform: scale(.97); }
.iec-home .iec-profile__cta { transition: background-color .16s ease, color .16s ease, transform .16s var(--iec-ease-out); }

/* ---- Inputs and selects ---- */
.iec-home .w3_modal_body_grid select,
.iec-home .w3_modal_body_grid .w3_country,
.iec-home .w3_modal_body_grid .bootstrap-select > .dropdown-toggle,
.iec-auth input[type="text"],
.iec-auth input[type="email"],
.iec-auth input[type="password"],
.iec-auth select,
.iec-listing select.login-w3ls,
.iec-listing .login-w3ls-custom .btn-default,
.iec-listing .bootstrap-select > .dropdown-toggle,
.iec-listing .alert-danger,
.iec-auth .custom_errors,
header button.navbar-toggle.navbar-toggle1.collapsed { border-radius: var(--iec-r-control); }
.iec-home .w3_modal_body_grid .bootstrap-select > .dropdown-toggle,
.iec-listing .bootstrap-select > .dropdown-toggle { border-radius: var(--iec-r-control) !important; }   /* bootstrap's .btn-group rules zero these on phones */
body:has(.iec-home) .bs-container .dropdown-menu,
header .nav_1 .dropdown-menu { border-radius: 12px; overflow: hidden; }
.iec-auth label.radio { border-radius: var(--iec-r-control); }
.iec-listing .pagination > li > a,
.iec-listing .pagination > li > span { border-radius: 8px !important; }
.iec-home .iec-demo__switch { border-radius: 12px; }
.iec-home .iec-demo__switch label { border-radius: 8px; }
footer .footer-grids .logo { border-radius: 8px; }

/* ---- Hero search: a clean floating card, no arch or lattice ---- */
.iec-home .iec-hero__search { padding-top: 0; }
.iec-home .iec-hero__search::before,
.iec-home .iec-hero__search::after,
.iec-home .iec-hero .agileits-register::before,
.iec-home .iec-hero .agileits-register::after,
.iec-home .iec-hero .agileits-register h3::before,
.iec-home .iec-hero .agileits-register h3::after { display: none; }
.iec-home .iec-hero .agileits-register {
    padding: 32px 32px 32px;
    border: 1px solid var(--iec-line);
    border-radius: var(--iec-r-panel);
    filter: none;
    box-shadow: var(--iec-shadow-panel);
}
.iec-home .iec-hero .agileits-register h3 {
    margin: 0 0 24px !important;
    padding: 0 0 18px;
    font-size: 28px;
    text-align: left;
}

/* ---- Cards and panels share one radius scale ---- */
.iec-home .iec-demo__card,
.iec-home .iec-quote,
.iec-listing .profile-details,
.iec-auth .row.login-w3ls > .col-md-6 { border-radius: var(--iec-r-card); }
.iec-home .iec-about__advisors { border-radius: var(--iec-r-panel); }
.iec-listing #profile_search_form { border-radius: var(--iec-r-panel); box-shadow: var(--iec-shadow-panel); }
.iec-home .iec-quote--lead { border-radius: var(--iec-r-panel); }
.iec-home .iec-quote--lead::after,
.iec-auth .row.login-w3ls > .col-md-6::after { display: none; }   /* inner "stationery" rules read dated next to rounded corners */
.iec-home .iec-demo__card { box-shadow: var(--iec-shadow-panel); }

/* ---- Trust strip: a plain check instead of the eight-point star ---- */
.iec-home .iec-trust__list h3::before {
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%23F3EBDD'/%3E%3Cpath d='M6 10.3l2.6 2.6L14 7.5' fill='none' stroke='%231A7A72' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---- Closing call to action: flat maroon with a soft light, no dome ---- */
.iec-home .iec-cta {
    padding: 128px 0;
    background:
        radial-gradient(ellipse 60% 70% at 50% 0%, rgba(255, 255, 255, .08), rgba(255, 255, 255, 0) 70%),
        var(--iec-maroon);
}
.iec-home .iec-cta::before,
.iec-home .iec-cta::after { display: none; }
/* Inner pages: no banner strip at all (round 8). The header leads straight into the breadcrumb
   and the page's own content, like a modern listing page. The admin's banner image is ignored. */
body:has(.iec-page) .w3layouts-inner-banner { display: none !important; }
body:has(.iec-page) .w3layouts-breadcrumbs { border-top: 1px solid var(--iec-line); }

/* ---- Hover lifts only where a real pointer can hover ---- */
.iec-home .iec-profiles .biseller-column > a { transition: box-shadow .25s ease, transform .25s var(--iec-ease-out), border-color .25s ease; }
.iec-home .iec-profiles .profile-image img { transition: transform .3s var(--iec-ease-out); }

/* ---- Mobile sticky bar slides like a sheet ---- */
.iec-home .iec-stickybar { transition: transform .32s var(--iec-ease-drawer); }

/* ---- Demo photo un-blurs a touch quicker ---- */
.iec-home .iec-demo__photo img { transition: filter .25s ease; }
.iec-home .iec-demo__photo::after { transition: opacity .2s ease; }

@media (max-width: 767px) {
    .iec-home .iec-hero__search { margin: 0; padding: 0 0 8px; }
    .iec-home .iec-hero .agileits-register { padding: 24px 20px 22px; border-radius: 18px; }
    .iec-home .iec-hero .agileits-register h3 { font-size: 24px; margin: 0 0 18px !important; padding-bottom: 14px; }
    .iec-home .iec-cta { padding: 88px 0; }
    .iec-home .iec-quote--lead,
    .iec-home .iec-about__advisors { border-radius: var(--iec-r-card); }
}

/* ---- FAQ page (/faqs): same calm accordion as the homepage FAQ ---- */
.iec-faqpage.faq { padding: 72px 0 104px; background: var(--iec-paper); }
.iec-faqpage > .container { max-width: 880px; }
.iec-faqpage h2.w3-head {
    margin: 0 0 12px;
    padding: 0;
    font-family: var(--iec-serif);
    font-size: clamp(34px, 3.4vw, 48px);
    line-height: 1.08;
    text-align: left;
    color: var(--iec-ink);
    text-transform: none;
}
.iec-faqpage h2.w3-head::before,
.iec-faqpage h2.w3-head::after { display: none; }
.iec-faqpage .iec-faqpage__intro { margin: 0 0 36px; max-width: 60ch; font-size: 17px; line-height: 1.6; color: var(--iec-muted); text-align: left; }
.iec-faqpage .iec-faqpage__intro a { color: var(--iec-maroon); font-weight: 500; text-decoration: underline; text-decoration-color: var(--iec-gold); text-underline-offset: 4px; }

.iec-faqpage .container > div { position: relative; border-bottom: 1px solid var(--iec-line); }
.iec-faqpage .container > div:first-of-type { border-top: 1px solid var(--iec-line); }

/* The checkbox drives open/closed. Keep it focusable for keyboard users (it was display:none). */
.iec-faqpage .questions {
    display: block;
    position: absolute;
    top: 24px;
    left: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
}
.iec-faqpage label.question {
    display: block;
    margin: 0;
    padding: 22px 56px 22px 0;
    background: none;
    color: var(--iec-ink);
    font-family: var(--iec-serif);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.35;
    cursor: pointer;
    transition: color .16s ease;
}
.iec-faqpage label.question:hover { color: var(--iec-maroon); }
.iec-faqpage .questions:focus-visible ~ label.question { outline: 2px solid var(--iec-gold); outline-offset: 4px; border-radius: 4px; }

/* Plus / minus, drawn in CSS like the homepage */
.iec-faqpage .plus {
    position: absolute;
    top: 30px;
    right: 6px;
    left: auto;
    width: 16px;
    height: 16px;
    margin: 0;
    font-size: 0;
    color: transparent;
    pointer-events: none;          /* clicks pass through to the question */
    background:
        linear-gradient(var(--iec-maroon), var(--iec-maroon)) center / 16px 1.5px no-repeat,
        linear-gradient(var(--iec-maroon), var(--iec-maroon)) center / 1.5px 16px no-repeat;
    transition: none;
}
.iec-faqpage .questions:checked ~ .plus {
    transform: none;
    background: linear-gradient(var(--iec-maroon), var(--iec-maroon)) center / 16px 1.5px no-repeat;
}

.iec-faqpage .answers {
    height: 0;
    padding: 0 56px 0 0;
    background: none;
    font-weight: 400;
    opacity: 0;
    transition: opacity .2s ease;
}
.iec-faqpage .questions:checked ~ .answers { height: auto; padding: 0 56px 24px 0; opacity: 1; }
.iec-faqpage .answers,
.iec-faqpage .answers p,
.iec-faqpage .answers li {
    font-family: var(--iec-sans);
    font-size: 17px;
    line-height: 1.65;
    color: var(--iec-muted);
    text-align: left;
}
.iec-faqpage .answers p { margin: 0 0 12px; max-width: 65ch; }
.iec-faqpage .answers p:empty { display: none; }
.iec-faqpage .answers ul,
.iec-faqpage .answers ol { margin: 0 0 12px; padding-left: 22px; }
.iec-faqpage .answers b,
.iec-faqpage .answers strong { color: var(--iec-ink); font-weight: 500; }
.iec-faqpage .answers a { color: var(--iec-maroon); font-weight: 500; text-decoration: underline; text-decoration-color: var(--iec-gold); text-underline-offset: 4px; }

@media (max-width: 767px) {
    .iec-faqpage.faq { padding: 44px 0 72px; }
    .iec-faqpage .iec-faqpage__intro { margin-bottom: 24px; font-size: 16px; }
    .iec-faqpage label.question { padding: 18px 40px 18px 0; font-size: 18px; }
    .iec-faqpage .plus { top: 25px; right: 2px; }
    .iec-faqpage .questions:checked ~ .answers { padding: 0 8px 20px 0; }
    .iec-faqpage .answers, .iec-faqpage .answers p, .iec-faqpage .answers li { font-size: 16px; }
}

/* ---- Home-screen install card (layouts/master.blade.php + footer.blade.php) ----
   Phones only, a small sheet at the bottom instead of a full-width overlay at the top. */
.iec-install[hidden] { display: none !important; }
.iec-install {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 1050;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px 14px;
    align-items: center;
    max-width: 480px;
    margin: 0 auto;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--iec-line);
    border-radius: 18px;
    box-shadow: 0 20px 48px -12px rgba(42, 31, 29, .35), 0 2px 6px rgba(42, 31, 29, .08);
    font-family: var(--iec-sans);
    color: var(--iec-ink);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .2s ease, transform .32s var(--iec-ease-drawer);
}
.iec-install.is-open { opacity: 1; transform: none; }
.iec-install__icon { width: 44px; height: 44px; object-fit: contain; border-radius: 10px; background: var(--iec-cream); padding: 4px; }
.iec-install__text { min-width: 0; }
.iec-install p { margin: 0; text-align: left; }
.iec-install__title { font-size: 16px; font-weight: 500; line-height: 1.3; color: var(--iec-ink); }
.iec-install__sub { margin-top: 2px !important; font-size: 14px; line-height: 1.45; color: var(--iec-muted); }
.iec-install__share { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; }
.iec-install__actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }
.iec-install__actions button {
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    font-family: var(--iec-sans);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color .16s ease, color .16s ease, transform .16s var(--iec-ease-out);
}
.iec-install__later { background: none; border: 1px solid transparent; color: var(--iec-muted); }
.iec-install__go { background: var(--iec-maroon); border: 1px solid var(--iec-maroon); color: #fff; }
@media (prefers-reduced-motion: no-preference) {
    .iec-install__actions button:active { transform: scale(.97); }
}
@media (prefers-reduced-motion: reduce) {
    .iec-install { transform: none; transition: opacity .2s ease; }
}
/* The homepage's sticky "Join free" bar steps aside while the card is up */
body.iec-install-open .iec-home .iec-stickybar { transform: translateY(110%) !important; }

/* ==========================================================================
   PALETTE (round 7): maroon + cream + deep teal
   Maroon = main actions and brand. Cream = ground. Teal = everything
   secondary: second buttons, status pills, step numbers, ticks, link
   underlines, focus rings. Teal sits opposite maroon on the colour wheel,
   so each makes the other stand out.
   The old gold tokens now point at teal, so every rule above follows.
   ========================================================================== */
:root {
    --iec-teal: #1A7A72;          /* 5.9:1 on white */
    --iec-teal-deep: #145F59;     /* small text, 8.9:1 on white */
    --iec-teal-soft: #E1EFEC;     /* pill and panel fills */
    --iec-teal-line: #C6E0DB;     /* soft borders */
    --iec-teal-light: #8FCFC6;    /* teal on dark grounds (footer, maroon panels) */

    --iec-gold: var(--iec-teal);
    --iec-gold-text: var(--iec-teal-deep);
    --iec-gold-soft: var(--iec-teal-line);
}

/* Secondary buttons */
.iec-home .iec-btn--quiet { color: var(--iec-teal-deep); border-color: var(--iec-teal); }
.iec-home .iec-btn--quiet:hover { background: var(--iec-teal); border-color: var(--iec-teal); color: #fff; }
.iec-home .iec-profile__cta,
.iec-listing .w3-prfr a.view-profile-btn,
.iec-listing .w3-prfr a.prof-view-details-btn { color: var(--iec-teal-deep); border-color: var(--iec-teal); }
.iec-home .biseller-column > a:hover .iec-profile__cta,
.iec-home .biseller-column > a:focus-visible .iec-profile__cta,
.iec-listing .w3-prfr a.view-profile-btn:hover,
.iec-listing .w3-prfr a.prof-view-details-btn:hover,
.iec-listing .w3-prfr a.view-profile-btn:focus-visible,
.iec-listing .w3-prfr a.prof-view-details-btn:focus-visible { background: var(--iec-teal); border-color: var(--iec-teal); color: #fff; }

/* Status pills and badges */
.iec-home .iec-profiles .agile-overlay ul li,
.iec-listing .w3-prfr p.iec-card__status { background: var(--iec-teal-soft); border-color: transparent; color: var(--iec-teal-deep); }
.iec-listing .profile-details h5 .label-info { background: var(--iec-teal-soft); color: var(--iec-teal-deep); }

/* Icons with the colour baked in */
.iec-home .iec-trust__list h3::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%23E1EFEC'/%3E%3Cpath d='M6 10.3l2.6 2.6L14 7.5' fill='none' stroke='%231A7A72' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.iec-home .iec-demo__locked::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 12'%3E%3Crect x='1' y='5' width='9' height='6.5' rx='1' fill='%23145F59'/%3E%3Cpath d='M3 5V3.5a2.5 2.5 0 0 1 5 0V5' fill='none' stroke='%23145F59' stroke-width='1.2'/%3E%3C/svg%3E");
}
.iec-home .iec-advisors__seal {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='%231A7A72' stroke-width='1.1'%3E%3Cpath d='M10 1.5l8.5 8.5-8.5 8.5L1.5 10z'/%3E%3Cpath d='M4 4h12v12H4z'/%3E%3C/g%3E%3C/svg%3E");
}

/* "Our guidance" panel takes the soft teal */
.iec-home .iec-about__advisors { background: var(--iec-teal-soft); border-color: transparent; }
.iec-home .iec-about__advisors h3 { color: var(--iec-teal-deep); }
.iec-home .iec-advisors li { border-top-color: var(--iec-teal-line); }
.iec-home .iec-guide__bio { border-top-color: var(--iec-teal-line); color: #3F524F; }

/* Dark grounds: the lighter teal so it still reads */
.iec-home .iec-quote--lead blockquote::before { color: var(--iec-teal-light); }
.iec-home .iec-quote--lead figcaption { color: rgba(250, 246, 239, .78); }
.iec-home .iec-quote--lead .iec-quote__avatar { box-shadow: 0 0 0 1px rgba(143, 207, 198, .6); }
.iec-home .iec-link--light { border-bottom-color: var(--iec-teal-light); }
footer a:focus-visible { outline-color: var(--iec-teal-light); }
footer .footer-grids ul li a:hover { text-decoration-color: var(--iec-teal-light); }
footer .social a { border-color: rgba(143, 207, 198, .5); }
footer .social a:hover { background: var(--iec-teal-light); border-color: var(--iec-teal-light); color: var(--iec-night); }

/* ==========================================================================
   ROUND 9: hero video, town + job on cards, member (logged-in) pages
   Templates: main, profiles/profileSearch/profileFullSearch (cards),
   profileDetails + profileFullDetails (.iec-pv), myMatches, meetings,
   staredProfiles, dismissedProfiles (.iec-listing.iec-member),
   settings (.iec-settings), essentialDetails + completeProfile (.iec-form).
   ========================================================================== */

/* ---- 1. Hero: copy + video on top, search card as a wide bar below ---- */
.iec-home .iec-hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    grid-template-areas: "copy media" "search search";
    gap: 56px 64px;
}
.iec-home .iec-hero__copy { grid-area: copy; }
.iec-home .iec-hero__media { grid-area: media; }
.iec-home .iec-hero__search { grid-area: search; max-width: none; }

.iec-home .iec-hero__media {
    position: relative;
    margin: 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--iec-sand);
    border: 1px solid var(--iec-line);
    border-radius: var(--iec-r-panel);
    box-shadow: var(--iec-shadow-panel);
}
.iec-home .iec-hero__video { display: block; width: 100%; height: 100%; object-fit: cover; }
.iec-home .iec-hero__vidbtn {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 253, 249, .92);
    color: var(--iec-maroon);
    box-shadow: 0 4px 14px rgba(42, 31, 29, .18);
    cursor: pointer;
    transition: transform .16s var(--iec-ease-out), background-color .16s ease;
}
.iec-home .iec-hero__vidbtn:hover { background: #fff; }
.iec-home .iec-hero__vidbtn:active { transform: scale(.94); }
.iec-home .iec-hero__vidbtn:focus-visible { outline: 2px solid var(--iec-teal); outline-offset: 3px; }
.iec-home .iec-hero__vidicon { position: relative; display: block; width: 14px; height: 14px; }
.iec-home .iec-hero__vidbtn[data-state="playing"] .iec-hero__vidicon {      /* pause bars */
    background: linear-gradient(90deg, currentColor 0 35%, transparent 35% 65%, currentColor 65%);
}
.iec-home .iec-hero__vidbtn[data-state="paused"] .iec-hero__vidicon {       /* play triangle */
    left: 2px;
    background: currentColor;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

/* Search card becomes a single row of fields on wide screens */
@media (min-width: 1200px) {
    .iec-home .iec-hero .shw-for-web .agileits-register { display: grid; grid-template-columns: 170px minmax(0, 1fr); align-items: center; gap: 28px; padding: 26px 28px; }
    .iec-home .iec-hero .shw-for-web .agileits-register h3 { margin: 0 !important; padding: 0 24px 0 0; border: 0; border-right: 1px solid var(--iec-line); font-size: 26px; line-height: 1.15; }
    .iec-home .iec-hero .shw-for-web form { grid-template-columns: repeat(6, minmax(0, 1fr)) auto; align-items: end; gap: 14px; }
    .iec-home .iec-hero .shw-for-web .main_grey_btn { grid-column: auto; width: auto; white-space: nowrap; padding-left: 22px; padding-right: 22px; }
}
@media (min-width: 992px) and (max-width: 1199px) {
    .iec-home .iec-hero .shw-for-web form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
    .iec-home .iec-hero__inner { grid-template-columns: 1fr; grid-template-areas: "copy" "media" "search"; gap: 36px; }
    .iec-home .iec-hero__media { max-width: 640px; }
}
@media (max-width: 767px) {
    .iec-home .iec-hero__inner { gap: 28px; }
    .iec-home .iec-hero__media { border-radius: var(--iec-r-card); }
    .iec-home .iec-hero__vidbtn { right: 10px; bottom: 10px; width: 40px; height: 40px; }
}

/* ---- 2. Town + job line on cards ---- */
.iec-meta__town, .iec-meta__job { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iec-meta__town { font-weight: 500; color: var(--iec-ink); }
.iec-meta__town::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 13px;
    margin: 0 6px -1px 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 13'%3E%3Cpath d='M5 12.3S1 7.9 1 5a4 4 0 0 1 8 0c0 2.9-4 7.3-4 7.3z' fill='none' stroke='%231A7A72' stroke-width='1.3'/%3E%3Ccircle cx='5' cy='5' r='1.4' fill='%231A7A72'/%3E%3C/svg%3E") center / contain no-repeat;
}
.iec-meta__job { color: var(--iec-muted); }

.iec-home .iec-profiles .iec-profile__meta {
    width: 100%;
    min-width: 0;
    margin: -2px 0 10px !important;
    font-size: 14px;
    line-height: 1.45;
    text-align: left;
}

/* listing cards: meta takes row 3, the rows below move down one */
.iec-listing .w3-prfr p.iec-card__meta {
    grid-column: 2 / 4;
    grid-row: 3;
    min-width: 0;
    margin: -2px 0 10px;
    font-size: 14px;
    line-height: 1.45;
}
.iec-listing .w3-prfr p.iec-card__status { grid-row: 4; }
.iec-listing .profile-details h5 { grid-row: 5; }
.iec-listing .w3-prfr a { grid-row: 6; }
@media (max-width: 767px) {
    .iec-listing .w3-prfr p.iec-card__meta { font-size: 13px; margin-bottom: 8px; }
    .iec-listing .w3-prfr a.dismiss-profile-btn { grid-row: 7; }
}

/* ---- 3. Member pages: shared ---- */
.iec-member { background: transparent !important; }
.iec-member.w3ls-list, .iec-member.w3l_find-soulmate { padding: 32px 0 104px !important; }
.iec-member .w3layouts_all-profiles { background: transparent; padding: 0; }
.iec-member h3.w3_special {
    margin: 0 0 24px !important;
    font-family: var(--iec-serif);
    font-size: 36px;
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.15;
    color: var(--iec-ink);
    text-align: left;
    text-transform: none;
}
.iec-member h3.w3_special::after { display: none; }
.iec-member .profiles-list-agileits { float: none; width: auto; padding: 0; }
.iec-member .alert { border-radius: var(--iec-r-card); border: 1px solid transparent; font-size: 15px; box-shadow: none; }
.iec-member .alert-success { background: var(--iec-teal-soft); color: var(--iec-teal-deep); border-color: var(--iec-teal-line); }
.iec-member .alert-danger { background: #F8ECEC; color: #8E2E2E; border-color: #EBCFCF; }
.iec-member .alert.col-md-12 { float: none; width: auto; }

/* Tabs (My SWAPs, My MEETs, Settings): a soft segmented control.
   The tab script writes inline colours, hence the !important. */
.iec-member ul.resp-tabs-list {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0 0 24px;
    padding: 4px;
    background: var(--iec-sand);
    border: 0;
    border-radius: 12px;
}
.iec-member ul.resp-tabs-list li.resp-tab-item {
    float: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 !important;
    padding: 9px 18px !important;
    font-family: var(--iec-sans);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: var(--iec-muted);
    background: transparent !important;
    border: 0 !important;
    border-radius: 9px;
    list-style: none;
    cursor: pointer;
    transition: background-color .16s ease, color .16s ease;
}
.iec-member ul.resp-tabs-list li.resp-tab-item:hover { color: var(--iec-ink); }
.iec-member ul.resp-tabs-list li.resp-tab-active {
    color: var(--iec-maroon) !important;
    background: #fff !important;
    box-shadow: 0 1px 2px rgba(42, 31, 29, .08), 0 4px 12px -4px rgba(42, 31, 29, .12);
}
.iec-member .resp-tabs-container { clear: both; background: transparent !important; border: 0 !important; padding: 0; }
.iec-member .resp-tab-content { border: 0 !important; padding: 0 !important; }
.iec-member h2.resp-accordion {
    margin: 0 0 8px;
    padding: 14px 18px !important;
    font-family: var(--iec-sans);
    font-size: 16px;
    font-weight: 500;
    color: var(--iec-ink);
    background: #fff !important;
    border: 1px solid var(--iec-line) !important;
    border-radius: 12px;
}
.iec-member h2.resp-accordion.resp-tab-active { color: var(--iec-maroon); border-color: var(--iec-maroon) !important; }
.iec-member .resp-accordion + .resp-tab-content { margin-bottom: 16px; }
.iec-member .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 7px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    color: #fff;
    background: var(--iec-maroon);
    border-radius: 999px;
    vertical-align: middle !important;
}

/* Member list cards reuse the Profiles cards. Extra links ("View details" on
   swaps/meets) become the same outline button. */
.iec-member .w3-prfr > a:not(.dismiss-profile-btn):not(.star-profile-btn):not(.view-profile-btn):not(.prof-view-details-btn) {
    grid-column: 2 / 4;
    color: var(--iec-teal-deep);
    background: #fff;
    border-color: var(--iec-teal);
    border-radius: 999px !important;
}
.iec-member .w3-prfr > a:not(.dismiss-profile-btn):not(.star-profile-btn):hover,
.iec-member .w3-prfr > a:not(.dismiss-profile-btn):not(.star-profile-btn):focus-visible { background: var(--iec-teal); border-color: var(--iec-teal); color: #fff; }
.iec-member .profile-details h5 .badge { margin-left: auto; }
.iec-listing.iec-member .match-profile:not(:has(.one-w3-profile))::after {
    content: "Nothing here yet.";
    grid-column: 1 / -1;
    padding: 28px;
    font-size: 15px;
    color: var(--iec-muted);
    text-align: center;
    background: #fff;
    border: 1px dashed var(--iec-line);
    border-radius: var(--iec-r-card);
}

/* ---- 4. Profile view (/profile/{id} and full details after a swap) ---- */
.iec-pv > .container { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.iec-pv > .container::before, .iec-pv > .container::after, .iec-pv > .container > .clearfix { display: none; }
.iec-pv .profiles-list-agileits,
.iec-pv .w3ls-aside { float: none; width: auto; min-width: 0; padding: 0; }

.iec-pv .single_w3_profile,
.iec-pv .profile_w3layouts_details,
.iec-pv .view_profile {
    margin: 0 0 20px;
    background: #fff;
    border: 1px solid var(--iec-line);
    border-radius: var(--iec-r-panel);
    box-shadow: 0 1px 2px rgba(42, 31, 29, .04);
}
.iec-pv .single_w3_profile {
    display: grid;
    grid-template-columns: 168px minmax(0, 1fr);
    gap: 32px;
    align-items: center;
    padding: 28px 32px;
}
.iec-pv .single_w3_profile > .clearfix { display: none; }
.iec-pv .agileits_profile_image { float: none; width: auto; padding: 0; margin: 0; }
.iec-pv .agileits_profile_image img {
    display: block;
    width: 168px;
    height: 168px;
    max-width: none;
    border-radius: 50%;
    background: #F1E9DC;
    filter: brightness(1.11) saturate(.95);
    mix-blend-mode: multiply;
    box-shadow: none;
    border: 0;
}
.iec-pv .w3layouts_details { float: none; width: auto; padding: 0; margin: 0; --iec-btn-h: 46px; }
.iec-pv .w3layouts_details h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 6px;
    padding: 0;
    border: 0;
    font-family: var(--iec-sans);
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0;
    color: var(--iec-muted);
    text-transform: none;
    font-variant-numeric: tabular-nums;
}
.iec-pv .w3layouts_details h4::after { display: none; }
.iec-pv .iec-pv__idlabel { font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.iec-pv .star-profile-btn {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-left: auto;
    font-size: 17px;
    color: var(--iec-teal) !important;
    background: var(--iec-teal-soft);
    border-radius: 999px;
    transition: transform .16s var(--iec-ease-out);
}
.iec-pv .star-profile-btn:active { transform: scale(.92); }
.iec-pv p.iec-pv__lead {
    margin: 0 0 10px;
    font-family: var(--iec-serif);
    font-size: 40px;
    line-height: 1.1;
    color: var(--iec-ink);
}
.iec-pv p.iec-pv__meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; font-size: 15px; }
.iec-pv p.iec-pv__meta > span {
    padding: 4px 12px 5px;
    background: var(--iec-cream);
    border: 1px solid var(--iec-line);
    border-radius: 999px;
    white-space: normal;
}
.iec-pv .w3layouts_details .alert { display: block; margin: 4px 0 0 !important; padding: 12px 16px; text-align: left !important; }
.iec-pv .w3layouts_details .alert p { color: inherit; font-size: 15px; }

/* Action buttons: SEND / SWAP / NO SWAP / MEET / Meeting successful */
.iec-pv a.act-a,
.iec-pv a.act-a2,
.iec-pv a.full_details_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    min-height: var(--iec-btn-h);
    margin: 10px 8px 0 0;
    padding: 0 24px;
    font-family: var(--iec-sans);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: .02em;
    line-height: 1.2;
    text-decoration: none;
    vertical-align: middle;
    color: #fff;
    background: var(--iec-maroon);
    border: 1px solid var(--iec-maroon);
    border-radius: var(--iec-r-control);
    box-shadow: none;
    transition: background-color .16s ease, color .16s ease, transform .16s var(--iec-ease-out);
}
.iec-pv a.act-a span, .iec-pv a.act-a2 span { color: inherit; background: none; padding: 0; }
.iec-pv a.act-a::before, .iec-pv a.act-a::after, .iec-pv a.act-a2::before, .iec-pv a.act-a2::after { display: none; }
.iec-pv a.act-a:hover, .iec-pv a.act-a2:hover, .iec-pv a.full_details_btn:hover { background: var(--iec-maroon-deep); color: #fff; }
.iec-pv a.act-a + a.act-a,                                   /* the second choice (NO SWAP / NO MEET) is quieter */
.iec-pv a.act-a2 + a.act-a2 { background: #fff; color: var(--iec-maroon); }
.iec-pv a.act-a + a.act-a:hover,
.iec-pv a.act-a2 + a.act-a2:hover { background: var(--iec-cream); color: var(--iec-maroon); }
.iec-pv a.act-a:active, .iec-pv a.act-a2:active, .iec-pv a.full_details_btn:active { transform: scale(.97); }
.iec-pv a.act-a:focus-visible, .iec-pv a.act-a2:focus-visible, .iec-pv a.full_details_btn:focus-visible { outline: 2px solid var(--iec-teal); outline-offset: 3px; }
.iec-pv a.info-a {
    display: inline-grid;
    place-items: center;
    width: var(--iec-btn-h);
    height: var(--iec-btn-h);
    margin: 10px 8px 0 0;
    padding: 0;
    vertical-align: middle;
    font-size: 19px;
    color: var(--iec-teal) !important;
    background: var(--iec-teal-soft);
    border: 0;
    border-radius: var(--iec-r-control);
}
.iec-pv a.info-a span { color: inherit; background: none; padding: 0; }

/* Detail rows */
.iec-pv .profile_w3layouts_details { padding: 6px 32px 18px; }
.iec-pv .agileits_aboutme { margin: 0; padding: 0; border: 0; background: none; }
.iec-pv .agileits_aboutme.row { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 32px; margin: 0; }
.iec-pv .agileits_aboutme.row::before, .iec-pv .agileits_aboutme.row::after { display: none; }
.iec-pv .agileits_aboutme.row > [class*="col-md"] { float: none; width: auto; left: auto; right: auto; padding: 0; min-width: 0; }
.iec-pv .agileits_aboutme.row > .col-md-push-6 { grid-column: 2; grid-row: 1; }
.iec-pv .agileits_aboutme.row > .col-md-pull-6 { grid-column: 1; grid-row: 1; }
.iec-pv .agileits_aboutme h5 {
    margin: 22px 0 6px;
    padding: 0;
    border: 0;
    font-family: var(--iec-serif);
    font-size: 26px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: var(--iec-ink);
}
.iec-pv .agileits_aboutme h5::after { display: none; }
.iec-pv .agileits_aboutme img.img-responsive {
    width: 100% !important;
    margin: 6px 0 0 !important;
    border: 0 !important;
    border-radius: var(--iec-r-card);
    background: var(--iec-sand);
}
.iec-member .form_but1 {
    display: grid;
    grid-template-columns: minmax(140px, 34%) minmax(0, 1fr);
    gap: 16px;
    margin: 0;
    padding: 13px 0;
    border-bottom: 1px solid var(--iec-line);
}
.iec-member .form_but1 > .clearfix { display: none; }
.iec-member .form_but1 label.control-label1,
.iec-member .form_but1 .w3_details { float: none; width: auto; min-width: 0; padding: 0; margin: 0; text-align: left; }
.iec-member .form_but1 label.control-label1 {
    font-family: var(--iec-sans);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.5;
    color: var(--iec-muted);
    text-transform: none;
}
.iec-member .form_but1 .w3_details {
    font-family: var(--iec-sans);
    font-size: 16px;
    line-height: 1.5;
    color: var(--iec-ink);
    overflow-wrap: anywhere;
}

/* "You may also like" */
.iec-pv .view_profile { padding: 22px 20px 12px; }
.iec-pv .view_profile h3 {
    margin: 0 0 10px;
    padding: 0;
    border: 0;
    font-family: var(--iec-serif);
    font-size: 24px;
    font-weight: 400;
    text-transform: none;
    color: var(--iec-ink);
}
.iec-pv .view_profile h3::after { display: none; }
.iec-pv ul.profile_item { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--iec-line); }
.iec-pv ul.profile_item > a {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    margin: 0 -10px;
    padding: 12px 10px;
    color: var(--iec-ink);
    text-decoration: none;
    border-radius: 12px;
    transition: background-color .16s ease;
}
.iec-pv ul.profile_item > a:hover { background: var(--iec-cream); }
.iec-pv ul.profile_item > a > .clearfix { display: none; }
.iec-pv .profile_item-img, .iec-pv .profile_item-desc { float: none; width: auto; padding: 0; margin: 0; list-style: none; min-width: 0; }
.iec-pv .profile_item-img img { width: 56px; height: 56px; max-width: none; border-radius: 50%; background: #F1E9DC; filter: brightness(1.11); mix-blend-mode: multiply; }
.iec-pv .profile_item-desc h6 { margin: 0 0 2px; font-family: var(--iec-sans); font-size: 12px; font-weight: 400; color: var(--iec-muted); letter-spacing: 0; text-transform: none; }
.iec-pv .profile_item-desc p { margin: 0; font-size: 14px; line-height: 1.4; color: var(--iec-ink); }
.iec-pv .profile_item-desc p.iec-card__lead { font-size: 16px; font-weight: 500; }
.iec-pv .profile_item-desc p.iec-card__meta { font-size: 13px; }
.iec-pv .profile_item-desc p.iec-card__meta .iec-meta__job { display: none; }     /* town is enough in the side list */
.iec-pv .profile_item-desc p.iec-card__status { display: inline-block; margin-top: 4px; padding: 1px 9px 2px; font-size: 12px; color: var(--iec-teal-deep); background: var(--iec-teal-soft); border-radius: 999px; }

@media (max-width: 991px) {
    .iec-pv > .container { grid-template-columns: minmax(0, 1fr); }
    .iec-pv .agileits_aboutme.row { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .iec-pv .agileits_aboutme.row > .col-md-push-6,
    .iec-pv .agileits_aboutme.row > .col-md-pull-6 { grid-column: 1; grid-row: auto; }
}
@media (max-width: 767px) {
    .iec-member.w3ls-list, .iec-member.w3l_find-soulmate { padding: 20px 0 72px !important; }
    .iec-member h3.w3_special { font-size: 28px; }
    .iec-pv .single_w3_profile { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 22px 20px; text-align: left; }
    .iec-pv .agileits_profile_image img { width: 112px; height: 112px; }
    .iec-pv p.iec-pv__lead { font-size: 32px; }
    .iec-pv .profile_w3layouts_details { padding: 4px 20px 14px; }
    .iec-pv a.act-a, .iec-pv a.act-a2, .iec-pv a.full_details_btn { padding: 0 18px; }
    .iec-member .form_but1 { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 11px 0; }

}

/* ---- 5. Member forms: settings, essential details, complete profile ---- */
.iec-form .single_w3_profile,
.iec-settings .resp-tab-content > div {
    float: none;
    margin: 0;
    padding: 28px 32px;
    background: #fff;
    border: 1px solid var(--iec-line);
    border-radius: var(--iec-r-panel);
    box-shadow: 0 1px 2px rgba(42, 31, 29, .04);
}
.iec-form .single_w3_profile::after,
.iec-settings .match-profile::after { content: ""; display: table; clear: both; }
.iec-form .single_w3_profile > [class*="col-md-"],
.iec-settings .match-profile > [class*="col-md-"] { padding-left: 0; padding-right: 0; }
@media (min-width: 992px) {
    .iec-form .single_w3_profile > .col-md-3, .iec-form .single_w3_profile > .col-md-4,
    .iec-settings .match-profile > .col-md-3, .iec-settings .match-profile > .col-md-4 { padding-right: 32px; }
    .iec-form .single_w3_profile > .col-md-9, .iec-form .single_w3_profile > .col-md-8,
    .iec-settings .match-profile > .col-md-9, .iec-settings .match-profile > .col-md-8 { padding-left: 32px; border-left: 1px solid var(--iec-line); }
}
.iec-form h4 {
    font-family: var(--iec-serif);
    font-size: 26px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: var(--iec-ink);
}
.iec-form p, .iec-settings p { font-size: 15px; color: var(--iec-muted); }
.iec-form p b, .iec-settings p b { color: var(--iec-ink); font-weight: 500; }

/* Avatar + picker */
.iec-member img.user_avatar {
    display: block;
    width: 160px;
    height: 160px;
    max-width: 100%;
    margin: 4px auto 14px;
    border-radius: 50%;
    background: #F1E9DC;
    filter: brightness(1.11);
    mix-blend-mode: multiply;
    object-fit: cover;
}
.iec-member .select_profiles { margin: 0 0 8px; overflow: visible; }
.iec-member .profile_avtars {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    width: auto !important;
    padding: 4px 0 6px;
    border: 0;
    background: none;
}
.iec-member img.avatar_img {
    flex: 0 0 48px;
    width: 48px !important;
    height: 48px !important;
    margin: 0 !important;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 50%;
    background: #F1E9DC;
    cursor: pointer;
    transition: border-color .16s ease, transform .16s var(--iec-ease-out);
}
.iec-member img.avatar_img:hover { border-color: var(--iec-teal); }
.iec-member img.avatar_img:active { transform: scale(.94); }

/* Fields: same look as Login / Register */
.iec-member label:not(.control-label1):not(.radio) {
    display: block;
    margin: 18px 0 7px;
    font-family: var(--iec-sans);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.4;
    color: var(--iec-muted);
    text-transform: none;
}
.iec-member .form-group { margin: 0; }
.iec-member input.login-w3ls,
.iec-member select.login-w3ls,
.iec-member textarea.login-w3ls {
    display: block;
    width: 100% !important;
    height: 48px;
    margin: 0;
    padding: 0 14px;
    font-family: var(--iec-sans);
    font-size: 16px;
    color: var(--iec-ink);
    background: #fff;
    border: 1px solid #D9CCB8;
    border-radius: var(--iec-r-control);
    box-shadow: none;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.iec-member textarea.login-w3ls { height: auto; min-height: 140px; padding: 12px 14px; line-height: 1.55; resize: vertical; }
.iec-member select.login-w3ls {
    padding-right: 38px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231A7A72' stroke-width='1.4'/%3E%3C/svg%3E") right 14px center / 11px 7px no-repeat;
}
.iec-member .login-w3ls:hover { border-color: var(--iec-teal); }
.iec-member .login-w3ls:focus { border-color: var(--iec-teal); box-shadow: 0 0 0 3px var(--iec-teal-soft); }
.iec-member .has-error .login-w3ls { border-color: #A23B3B; }
.iec-member .help-block { margin: 6px 0 0; font-size: 13px; }
.iec-member .has-error .help-block { color: #A23B3B; }
.iec-member .form-control-feedback { display: none; }
.iec-member .fa-question-circle { color: var(--iec-teal) !important; margin-left: 4px; cursor: help; }

.iec-member .main_log_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    min-height: 50px;
    margin: 26px 0 0;
    padding: 0 30px;
    font-family: var(--iec-sans);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: .01em;
    text-transform: none;
    color: #fff;
    background: var(--iec-maroon);
    border: 0;
    border-radius: var(--iec-r-control);
    box-shadow: none;
    cursor: pointer;
    transition: background-color .16s ease, transform .16s var(--iec-ease-out);
}
.iec-member .main_log_btn:hover { background: var(--iec-maroon-deep); color: #fff; }
.iec-member .main_log_btn:active { transform: scale(.97); }
.iec-member .main_log_btn:focus-visible { outline: 2px solid var(--iec-teal); outline-offset: 3px; }
.iec-member .main_log_btn.accept_btn { background: #fff; color: #8E2E2E; border: 1px solid #D9B8B8; }   /* Close account */
.iec-member .main_log_btn.accept_btn:hover { background: #F8ECEC; color: #8E2E2E; }
.iec-member .btn-danger { border-radius: var(--iec-r-control); }

/* Photo upload (dropzone) */
.iec-member form.dropzone {
    min-height: 0;
    margin: 8px 0 0;
    padding: 22px;
    background: var(--iec-cream);
    border: 1.5px dashed #D9CCB8;
    border-radius: var(--iec-r-card);
    transition: border-color .16s ease;
}
.iec-member form.dropzone:hover { border-color: var(--iec-teal); }
.iec-member .dropzone .dz-message { margin: 0; font-size: 14px; line-height: 1.5; color: var(--iec-muted); }

@media (max-width: 991px) {
    .iec-form .single_w3_profile > [class*="col-md-"],
    .iec-settings .match-profile > [class*="col-md-"] { float: none; width: auto; }
    .iec-form .single_w3_profile > .col-md-3, .iec-form .single_w3_profile > .col-md-4,
    .iec-settings .match-profile > .col-md-3, .iec-settings .match-profile > .col-md-4 { padding-bottom: 20px; margin-bottom: 8px; border-bottom: 1px solid var(--iec-line); }
}
@media (max-width: 767px) {
    .iec-form .single_w3_profile,
    .iec-settings .resp-tab-content > div { padding: 22px 18px; border-radius: var(--iec-r-card); }
    .iec-member .main_log_btn { width: 100%; }
    .iec-member img.user_avatar { width: 128px; height: 128px; }
}
@media (prefers-reduced-motion: reduce) {
    .iec-member *, .iec-home .iec-hero__vidbtn { transition: none !important; }
}
.iec-pv a.info-a::before, .iec-pv a.info-a::after, .iec-pv a.full_details_btn::before, .iec-pv a.full_details_btn::after { display: none; }
.iec-pv a.info-a .fa { font-size: 20px; }
.iec-pv .w3ls-aside { background: none; box-shadow: none; border: 0; }
/* the old theme styles every span in a card (.w3-prfr span): reset it for the town/job line */
.iec-listing .w3-prfr .iec-card__meta span,
.iec-pv .iec-card__meta span { margin: 0; padding: 0; font-size: inherit; letter-spacing: 0; text-transform: none; color: inherit; }
.iec-listing .w3-prfr .iec-card__meta .iec-meta__town,
.iec-pv .iec-card__meta .iec-meta__town { font-weight: 500; color: var(--iec-ink); }
.iec-listing .w3-prfr .iec-card__meta .iec-meta__job,
.iec-pv .iec-card__meta .iec-meta__job { font-weight: 400; color: var(--iec-muted); }
.iec-member .profile_avtars { overflow: visible !important; height: auto !important; }
.iec-settings .match-profile h4 { margin: 16px 0 8px; font-family: var(--iec-sans); font-size: 17px; font-weight: 500; line-height: 1.35; color: var(--iec-ink); }
.iec-member .main_log_btn::before, .iec-member .main_log_btn::after { display: none !important; }
@media (min-width: 992px) { .iec-home .iec-hero__title { font-size: clamp(40px, 4.1vw, 60px); } }
@media (max-width: 768px) {
    .iec-member ul.resp-tabs-list { display: none; }        /* the tab script shows an accordion on phones */
    .iec-member h2.resp-accordion { text-align: left; }
}
.iec-member.w3l_find-soulmate .w3layouts_all-profiles { padding: 32px 0 104px; }
@media (max-width: 767px) { .iec-member.w3l_find-soulmate .w3layouts_all-profiles { padding: 20px 0 72px; } }

/* ==========================================================================
   ROUND 10: card tags (New / Active this week / Seen), "about me" line on
   cards, profile page tidy-up (About first, grouped details, hints,
   floating action bar on phones).
   Partials: inc/iecCardBadges, inc/iecCardAbout, inc/iecProfileScript.
   ========================================================================== */

/* ---- A, B, C: tags on the photo ---- */
.iec-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 58px;                       /* leaves room for the star on listing cards */
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 !important;
    padding: 0;
    pointer-events: none;
    text-align: left;
}
.iec-home .iec-badges { right: 10px; }
.iec-badges .iec-badge,
.iec-listing .w3-prfr .iec-badges span.iec-badge {     /* beats the old ".w3-prfr span" rule */
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 4px 10px 5px;
    font-family: var(--iec-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .01em;
    line-height: 1.2;
    text-transform: none;
    white-space: nowrap;
    border-radius: 999px;
    box-shadow: 0 1px 2px rgba(42, 31, 29, .12);
}
.iec-badges .iec-badge--new,
.iec-listing .w3-prfr .iec-badges span.iec-badge--new { color: #fff; background: var(--iec-maroon); }
.iec-badges .iec-badge--active,
.iec-listing .w3-prfr .iec-badges span.iec-badge--active { color: var(--iec-teal-deep); background: rgba(255, 253, 249, .94); }
.iec-badges .iec-badge--seen,
.iec-listing .w3-prfr .iec-badges span.iec-badge--seen { color: var(--iec-muted); background: rgba(255, 253, 249, .94); font-weight: 500; }
.iec-badges .iec-badge__dot,
.iec-listing .w3-prfr .iec-badges span.iec-badge__dot {
    width: 7px;
    height: 7px;
    margin: 0;
    padding: 0;
    border-radius: 50%;
    background: #2E9E6A;
    box-shadow: 0 0 0 2px rgba(46, 158, 106, .22);
}
.iec-badges .iec-badge__eye,
.iec-listing .w3-prfr .iec-badges span.iec-badge__eye {
    width: 13px;
    height: 9px;
    margin: 0;
    padding: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 9'%3E%3Cpath d='M.8 4.5C2.2 2 4.2.8 6.5.8s4.3 1.2 5.7 3.7c-1.4 2.5-3.4 3.7-5.7 3.7S2.2 7 .8 4.5z' fill='none' stroke='%2367574F' stroke-width='1.2'/%3E%3Ccircle cx='6.5' cy='4.5' r='1.6' fill='%2367574F'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Seen: the photo steps back a little so unseen profiles stand out.
   The old "Viewed" text label is now the "Seen" tag, so it's hidden (Not Responded stays). */
.iec-listing .profile-details:has(.iec-badge--seen) img.prf-img,
.iec-home .iec-profiles .biseller-column:has(.iec-badge--seen) .profile-image img { opacity: .55; }
.iec-listing .profile-details:has(.iec-badge--seen)::before,
.iec-home .iec-profiles .biseller-column:has(.iec-badge--seen) .profile-image { filter: saturate(.6); }
.iec-listing .profile-details h5 .label-info { display: none; }

/* ---- D: "about me" line on cards ---- */
.iec-listing .w3-prfr p.iec-card__about,
.iec-home .iec-profiles p.iec-profile__about {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-width: 0;
    margin: 0 0 10px !important;
    font-family: var(--iec-sans);
    font-size: 13.5px;
    font-style: italic;
    line-height: 1.45;
    color: var(--iec-muted);
    text-align: left;
    text-transform: none;
    letter-spacing: 0;
}
.iec-listing .w3-prfr p.iec-card__about { grid-column: 2 / 4; grid-row: 4; }

/* listing rows shift down one for the about line */
.iec-listing .w3-prfr p.iec-card__status { grid-row: 5; }
.iec-listing .profile-details h5 { grid-row: 6; }
.iec-listing .w3-prfr a { grid-row: 7; }
@media (max-width: 767px) {
    .iec-listing .w3-prfr a.dismiss-profile-btn { grid-row: 8; }
    .iec-listing .w3-prfr p.iec-card__about { font-size: 12.5px; margin-bottom: 8px !important; }
    .iec-badges { top: 8px; left: 8px; right: 50px; gap: 4px; }
    .iec-badges .iec-badge,
    .iec-listing .w3-prfr .iec-badges span.iec-badge { padding: 3px 8px 4px; font-size: 11px; }
}
@media (max-width: 420px) {                    /* 2-up cards are narrow: shorten "Active this week" to a dot + "Active" */
    .iec-badges .iec-badge--active { font-size: 0 !important; gap: 0; padding: 7px !important; }
    .iec-badges .iec-badge--active::after { content: "Active"; font-size: 11px; margin-left: 5px; }
}

/* ---- E: profile page ---- */
.iec-pv [hidden] { display: none !important; }

.iec-pv .iec-pv__about {
    margin: 20px 0 6px;
    padding: 18px 20px;
    background: var(--iec-cream);
    border: 1px solid var(--iec-line);
    border-radius: var(--iec-r-card);
}
.iec-pv .iec-pv__about h5 { margin: 0 0 6px !important; font-size: 22px !important; }
.iec-pv .iec-pv__about p {
    margin: 0;
    font-family: var(--iec-serif);
    font-size: 19px;
    line-height: 1.55;
    color: var(--iec-ink);
    white-space: pre-line;
    overflow-wrap: anywhere;
}
.iec-pv .iec-pv__group { margin-top: 8px; }
.iec-pv .iec-pv__group > h5 {
    margin: 20px 0 2px !important;
    font-family: var(--iec-sans) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: .12em !important;
    text-transform: uppercase !important;
    color: var(--iec-teal-deep) !important;
}
.iec-pv .iec-pv__group .form_but1:last-child { border-bottom: 0; }

.iec-pv .iec-pv__hint {
    max-width: 52ch;
    margin: 12px 0 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--iec-muted);
}

/* the countdown notes are information, not errors: amber instead of red */
.iec-pv .iec-pv__actions .alert-danger { background: #FBF3E4; color: #7A5418; border-color: #EEDDBB; }

/* Phones: the action buttons float at the bottom once the header card scrolls away */
.iec-pv .iec-pv__actions.is-floating {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 253, 249, .97);
    border-top: 1px solid var(--iec-line);
    box-shadow: 0 -8px 24px rgba(42, 31, 29, .10);
    animation: iec-pv-rise .28s var(--iec-ease-drawer) both;
}
.iec-pv .iec-pv__actions.is-floating > :not(a) { display: none; }   /* notes and hints stay in the card */
.iec-pv .iec-pv__actions.is-floating a { margin: 0 !important; }
.iec-pv .iec-pv__actions.is-floating a.act-a,
.iec-pv .iec-pv__actions.is-floating a.act-a2 { flex: 1 1 0; min-width: 0; padding: 0 10px; white-space: nowrap; }
.iec-pv .iec-pv__actions.is-floating a.info-a { flex: 0 0 auto; }
body.iec-install-open .iec-pv .iec-pv__actions.is-floating { display: none; }
@keyframes iec-pv-rise { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
    .iec-pv .iec-pv__actions.is-floating { animation: none; }
}
@media (min-width: 768px) {
    .iec-pv .iec-pv__actions-spot { display: none; }
}
body.iec-pv-floating #toTop { bottom: calc(84px + env(safe-area-inset-bottom)) !important; }   /* lift "back to top" above the action bar */

/* ==========================================================================
   ROUND 11: Daily Discover (inc/iecDiscover.blade.php, Profiles page)
   ========================================================================== */
.iec-listing .one-w3-profile[hidden] { display: none !important; }

/* ---- launcher card above the results ---- */
.iec-dl {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 4px 0 28px;
    padding: 18px 20px;
    background: linear-gradient(120deg, #fff 0%, #fff 45%, var(--iec-teal-soft) 100%);
    border: 1px solid var(--iec-teal-line);
    border-radius: var(--iec-r-panel);
    box-shadow: 0 1px 2px rgba(42, 31, 29, .04), 0 18px 36px -24px rgba(31, 111, 107, .45);
    text-align: left;
}
.iec-dl__faces { display: flex; flex: 0 0 auto; padding-left: 10px; }
.iec-dl__faces img {
    width: 48px;
    height: 48px;
    margin-left: -12px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #F1E9DC;
    box-shadow: 0 2px 6px rgba(42, 31, 29, .12);
}
.iec-dl__faces img:nth-child(2) { background: #EFE3E1; }
.iec-dl__faces img:nth-child(3) { background: #E5EAE1; }
.iec-dl__text { flex: 1; min-width: 0; }
.iec-listing .iec-dl p { margin: 0; text-align: left; }
.iec-listing .iec-dl .iec-dl__eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--iec-teal-deep);
}
.iec-listing .iec-dl .iec-dl__title,
.iec-listing .iec-dl .iec-dl__done-text {
    margin-top: 2px;
    font-family: var(--iec-serif);
    font-size: 22px;
    line-height: 1.25;
    color: var(--iec-ink);
}
.iec-listing .iec-dl .iec-dl__done-text { font-size: 19px; color: var(--iec-muted); }
.iec-dl [hidden] { display: none !important; }
.iec-dl__start {
    flex: 0 0 auto;
    min-height: 46px;
    padding: 0 26px;
    font-family: var(--iec-sans);
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    background: var(--iec-maroon);
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color .16s ease, transform .16s var(--iec-ease-out);
}
.iec-dl__start:hover { background: var(--iec-maroon-deep); }
.iec-dl__start:active { transform: scale(.96); }
.iec-dl__start:focus-visible { outline: 2px solid var(--iec-teal); outline-offset: 3px; }
.iec-dl.is-done { background: #fff; border-color: var(--iec-line); box-shadow: none; }
.iec-dl.is-done .iec-dl__faces img { filter: grayscale(.6); opacity: .7; }
.iec-dl.is-done .iec-dl__start { color: var(--iec-teal-deep); background: #fff; border: 1px solid var(--iec-teal); }

/* ---- the deck ---- */
body.iec-dc-open { overflow: hidden; }
.iec-dc {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(35, 25, 23, .55);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity .22s ease;
    font-family: var(--iec-sans);
    color: var(--iec-ink);
}
.iec-dc.is-open { opacity: 1; }
.iec-dc[hidden], .iec-dc [hidden] { display: none !important; }
.iec-dc p { margin: 0; text-align: left; }
.iec-dc__panel {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 430px;
    height: min(780px, calc(100dvh - 32px));
    padding: 18px 18px 14px;
    background: var(--iec-paper);
    border-radius: 26px;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .45);
    transform: translateY(18px) scale(.98);
    transition: transform .32s var(--iec-ease-drawer);
}
.iec-dc.is-open .iec-dc__panel { transform: none; }

.iec-dc__head { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 12px; margin-bottom: 14px; }
.iec-dc .iec-dc__eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--iec-teal-deep); }
.iec-dc .iec-dc__progress { font-family: var(--iec-serif); font-size: 20px; line-height: 1.2; }
.iec-dc__bar { grid-column: 1 / -1; grid-row: 2; height: 4px; background: var(--iec-sand); border-radius: 99px; overflow: hidden; }
.iec-dc__bar span { display: block; height: 100%; width: 0; background: var(--iec-teal); border-radius: inherit; transition: width .35s var(--iec-ease-out); }
.iec-dc__close {
    width: 40px;
    height: 40px;
    padding: 0;
    font-size: 26px;
    line-height: 1;
    color: var(--iec-muted);
    background: var(--iec-sand);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}
.iec-dc__close:hover { color: var(--iec-ink); }

/* stacked cards */
.iec-dc__stack { position: relative; flex: 1; min-height: 0; margin: 0 0 14px; padding: 0; list-style: none; }
.iec-dc__card {
    position: absolute;
    inset: 0 0 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--iec-line);
    border-radius: 22px;
    box-shadow: 0 2px 4px rgba(42, 31, 29, .05), 0 18px 40px -18px rgba(42, 31, 29, .30);
    touch-action: none;
    user-select: none;
    cursor: grab;
    transform-origin: 50% 90%;
    transition: transform .3s var(--iec-ease-out), opacity .3s ease;
    --iec-tint: #F1E9DC;
}
.iec-dc__card:active { cursor: grabbing; }
.iec-dc__card:nth-child(4n+2) { --iec-tint: #EFE3E1; }
.iec-dc__card:nth-child(4n+3) { --iec-tint: #E5EAE1; }
.iec-dc__card:nth-child(4n+4) { --iec-tint: #E3E7EC; }
.iec-dc__card[data-depth="1"] { transform: translateY(12px) scale(.955); }
.iec-dc__card[data-depth="2"] { transform: translateY(24px) scale(.91); opacity: .8; }
.iec-dc__card[data-depth="3"] { transform: translateY(24px) scale(.91); opacity: 0; }
.iec-dc__card[data-depth]:not([data-depth="0"]) { pointer-events: none; }

.iec-dc__photo { position: relative; flex: 1 1 auto; min-height: 120px; background: var(--iec-tint); overflow: hidden; }
.iec-dc__photo img {
    position: absolute;
    left: 50%;
    bottom: 0;
    height: 100%;
    max-height: 340px;
    width: auto;
    transform: translateX(-50%);
    filter: brightness(1.11) saturate(.95);
    mix-blend-mode: multiply;
    pointer-events: none;
}
.iec-dc .iec-badges { right: 10px; }
.iec-dc__stamp {
    position: absolute;
    top: 22px;
    padding: 6px 14px 7px;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    border: 3px solid currentColor;
    border-radius: 12px;
    background: rgba(255, 253, 249, .85);
    opacity: 0;
    pointer-events: none;
}
.iec-dc__stamp--star { left: 18px; top: 52px; color: var(--iec-teal); transform: rotate(-12deg); }
.iec-dc__stamp--pass { right: 18px; top: 52px; color: var(--iec-maroon); transform: rotate(12deg); }

.iec-dc__body { flex: 0 0 auto; padding: 16px 18px 16px; }
.iec-dc .iec-dc__lead { font-family: var(--iec-serif); font-size: 30px; line-height: 1.1; }
.iec-dc .iec-dc__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: 15px; }
.iec-dc .iec-dc__meta .iec-meta__town, .iec-dc .iec-dc__meta .iec-meta__job { display: inline; white-space: normal; }
.iec-dc .iec-dc__about {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    margin-top: 10px;
    font-size: 15px;
    font-style: italic;
    line-height: 1.5;
    color: var(--iec-muted);
}
.iec-dc .iec-dc__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--iec-muted); }
.iec-dc__status { padding: 3px 11px 4px; font-weight: 500; color: var(--iec-teal-deep); background: var(--iec-teal-soft); border-radius: 999px; }

/* controls */
.iec-dc__controls { display: flex; align-items: flex-end; justify-content: center; gap: 14px; }
.iec-dc__act {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 0;
    font-family: var(--iec-sans);
    color: var(--iec-muted);
    background: none;
    border: 0;
    cursor: pointer;
}
.iec-dc__icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    font-size: 22px;
    line-height: 1;
    background: #fff;
    border: 1px solid var(--iec-line);
    border-radius: 50%;
    box-shadow: 0 4px 12px -4px rgba(42, 31, 29, .18);
    transition: transform .16s var(--iec-ease-out), background-color .16s ease, color .16s ease;
}
.iec-dc__act--pass .iec-dc__icon,
.iec-dc__act--star .iec-dc__icon { width: 64px; height: 64px; font-size: 30px; }
.iec-dc__act--pass .iec-dc__icon { color: var(--iec-maroon); }
.iec-dc__act--star .iec-dc__icon { color: #fff; background: var(--iec-teal); border-color: var(--iec-teal); }
.iec-dc__act:hover .iec-dc__icon { transform: translateY(-2px); }
.iec-dc__act:active .iec-dc__icon { transform: scale(.92); }
.iec-dc__act--pass:hover .iec-dc__icon { background: #F8ECEC; }
.iec-dc__act--star:hover .iec-dc__icon { background: var(--iec-teal-deep); }
.iec-dc__act:focus-visible { outline: none; }
.iec-dc__act:focus-visible .iec-dc__icon { outline: 2px solid var(--iec-teal); outline-offset: 3px; }
.iec-dc__act:disabled { opacity: .4; cursor: default; }
.iec-dc__act:disabled .iec-dc__icon { transform: none; }
.iec-dc__label { font-size: 12.5px; font-weight: 500; }
.iec-dc__icon--undo,
.iec-dc__icon--view { color: var(--iec-ink); }
.iec-dc__icon--undo::before,
.iec-dc__icon--view::before { content: ""; width: 18px; height: 18px; background: center / contain no-repeat; }
.iec-dc__icon--undo::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M6 4.5L2.5 8 6 11.5M3 8h8a4.5 4.5 0 0 1 0 9H8' fill='none' stroke='%232A1F1D' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.iec-dc__icon--view::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M1.5 9C3.3 5.6 5.9 4 9 4s5.7 1.6 7.5 5c-1.8 3.4-4.4 5-7.5 5S3.3 12.4 1.5 9z' fill='none' stroke='%232A1F1D' stroke-width='1.5'/%3E%3Ccircle cx='9' cy='9' r='2.3' fill='%232A1F1D'/%3E%3C/svg%3E"); }
.iec-dc .iec-dc__hint { margin-top: 10px; font-size: 12.5px; color: var(--iec-muted); text-align: center; }

/* end screen */
.iec-dc__end { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px 12px 24px; text-align: center; }
.iec-dc .iec-dc__end p { text-align: center; }
.iec-dc .iec-dc__end-icon {
    width: 76px;
    height: 76px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: var(--iec-teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M9 16.5l4.6 4.6L23.5 11' fill='none' stroke='%231A7A72' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 38px no-repeat;
}
.iec-dc__end-title { margin: 0 0 8px; font-family: var(--iec-serif); font-size: 30px; font-weight: 400; color: var(--iec-ink); }
.iec-dc .iec-dc__end-text { max-width: 30ch; font-size: 16px; line-height: 1.55; color: var(--iec-muted); }
.iec-dc__end-actions { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 280px; margin-top: 24px; }
.iec-dc__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    font-family: var(--iec-sans);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none !important;
    border-radius: var(--iec-r-control);
    cursor: pointer;
}
.iec-dc__btn--primary { color: #fff !important; background: var(--iec-maroon); border: 0; }
.iec-dc__btn--primary:hover { background: var(--iec-maroon-deep); }
.iec-dc__btn--quiet { color: var(--iec-teal-deep); background: #fff; border: 1px solid var(--iec-teal); }
.iec-dc .iec-dc__end-note { margin-top: 16px; font-size: 13px; color: var(--iec-muted); }

@media (max-width: 767px) {
    .iec-dl { flex-wrap: wrap; gap: 12px 14px; padding: 16px; }
    .iec-dl__faces img { width: 40px; height: 40px; }
    .iec-listing .iec-dl .iec-dl__title { font-size: 19px; }
    .iec-dl__start { width: 100%; }
    .iec-dc { padding: 0; }
    .iec-dc__panel { max-width: none; height: 100dvh; border-radius: 0; padding: calc(14px + env(safe-area-inset-top)) 14px calc(12px + env(safe-area-inset-bottom)); }
    .iec-dc .iec-dc__lead { font-size: 26px; }
}
@media (max-height: 640px) {
    .iec-dc .iec-dc__about { -webkit-line-clamp: 2; }
    .iec-dc .iec-dc__hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .iec-dc, .iec-dc__panel, .iec-dc__card, .iec-dc__bar span, .iec-dc__icon { transition: none !important; }
    .iec-dc__panel { transform: none; }
}
.iec-dc__panel { -webkit-user-select: none; user-select: none; }   /* dragging a card with a mouse shouldn't select text */

/* ==========================================================================
   Round 16: hero = option C mock (fanned example cards), all screen sizes;
   the video moved out of the hero into its own full-width section (.iec-video);
   "back to top" arrow removed. Markup in main.blade.php.
   ========================================================================== */
.iec-home .iec-hero__inner::before,
.iec-home .iec-hero__inner::after { display: none; }           /* Bootstrap clearfix: not needed in a grid */
.iec-home .iec-hero__cta { grid-area: cta; }
.iec-home .iec-hero__stack { grid-area: stack; position: relative; width: 100%; }
.iec-home .iec-hero__note { margin: 14px 0 0 !important; font-size: 14px; color: var(--iec-muted); }

/* Example cards: a front card with two fanned behind it */
.iec-home .iec-hcard {
    position: absolute;
    top: 0;
    left: 50%;
    width: 256px;
    margin-left: -128px;
    padding: 18px 14px 16px;
    background: var(--iec-paper);
    border: 1px solid var(--iec-line);
    border-radius: 18px;
    box-shadow: 0 1px 2px rgba(42, 31, 29, .05), 0 14px 34px -8px rgba(42, 31, 29, .18);
    text-align: center;
}
.iec-home .iec-hcard--l { transform: rotate(-7deg) translate(-58px, 22px); opacity: .92; }
.iec-home .iec-hcard--r { transform: rotate(7deg) translate(58px, 22px); opacity: .92; }
.iec-home .iec-hcard--front { z-index: 2; box-shadow: 0 1px 2px rgba(42, 31, 29, .05), 0 22px 44px -12px rgba(42, 31, 29, .26); }
.iec-home .iec-hcard p { margin: 0 !important; text-align: center !important; }
.iec-home .iec-hcard__img { display: block; width: 74px; height: 74px; margin: 0 auto 12px; border-radius: 50%; }
.iec-home .iec-hcard__who { font-family: var(--iec-serif); font-size: 24px; line-height: 1.15; color: var(--iec-ink); }
.iec-home .iec-hcard__meta { margin-top: 4px !important; font-size: 13.5px; line-height: 1.4; color: var(--iec-muted); }
.iec-home .iec-hcard__lock {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    margin-top: 12px !important;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--iec-teal-soft);
    color: var(--iec-teal-deep);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
}
.iec-home .iec-hcard__lock::before {                            /* small padlock */
    content: "";
    flex: none;
    width: 10px;
    height: 12px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 12'%3E%3Cpath d='M2.5 5V3.5a2.5 2.5 0 015 0V5' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3Crect x='.5' y='5' width='9' height='7' rx='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 12'%3E%3Cpath d='M2.5 5V3.5a2.5 2.5 0 015 0V5' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3Crect x='.5' y='5' width='9' height='7' rx='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.iec-home .iec-hero__stack-note {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0 !important;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-align: center !important;
    color: var(--iec-muted);
}

/* ---- Desktop: words + buttons on the left, cards on the right, search bar below ---- */
@media (min-width: 992px) {
    .iec-home .iec-hero__inner {
        grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
        grid-template-areas: "copy stack" "cta stack" "search search";
        gap: 0 64px;
    }
    .iec-home .iec-hero__copy { align-self: end; }
    .iec-home .iec-hero__cta { align-self: start; }
    .iec-home .iec-hero__stack { height: 340px; max-width: 460px; justify-self: center; align-self: center; }
    .iec-home .iec-hcard { top: 8px; width: 280px; margin-left: -140px; padding: 22px 16px 18px; border-radius: 20px; }
    .iec-home .iec-hcard--l { transform: rotate(-7deg) translate(-74px, 28px); }
    .iec-home .iec-hcard--r { transform: rotate(7deg) translate(74px, 28px); }
    .iec-home .iec-hcard__img { width: 84px; height: 84px; }
    .iec-home .iec-hcard__who { font-size: 27px; }
    .iec-home .iec-hcard__meta { font-size: 14px; }
    .iec-home .iec-hcard__lock { font-size: 12.5px; padding: 6px 12px; }
    .iec-home .iec-hero__search { margin-top: 64px; }
}

/* ---- Tablet and phone: one centred column ---- */
@media (max-width: 991px) {
    .iec-home .iec-hero__inner { grid-template-areas: "copy" "stack" "cta" "search"; gap: 0; }
    .iec-home .iec-hero__copy { text-align: center; max-width: none; }
    .iec-home .iec-hero__copy .iec-eyebrow { justify-content: center; }
    .iec-home .iec-hero__copy .iec-eyebrow::before { display: none; }
    .iec-home .iec-hero__title > span + span { color: var(--iec-maroon); }
    .iec-home .iec-hero__copy .iec-hero__lede { margin: 16px auto 0 !important; }    /* !important: responsive.css forces p margins to 0 */
    .iec-home .iec-hero__stack { height: 340px; max-width: 420px; justify-self: center; margin-top: 32px; }
    .iec-home .iec-hero__cta { width: 100%; max-width: 420px; justify-self: center; text-align: center; }
    .iec-home .iec-hero__actions { flex-direction: column; margin-top: 18px; gap: 10px; }
    .iec-home .iec-hero__actions .iec-btn { width: 100%; min-height: 52px; font-size: 16px; }
    .iec-home .iec-hero__note { margin-top: 12px !important; font-size: 13.5px; text-align: center !important; }
    .iec-home .iec-hero__search { margin-top: 48px; }
    .iec-home .w3layouts-banner.iec-hero { padding-bottom: 56px; }
}

/* ---- Phone ---- */
@media (max-width: 767px) {
    .iec-home .w3layouts-banner.iec-hero { padding: 22px 0 40px; }
    .iec-home .iec-hero__copy .iec-eyebrow { font-size: 11.5px; letter-spacing: .12em; margin-bottom: 12px; }
    .iec-home .iec-hero__title { font-size: clamp(36px, 11vw, 46px); line-height: 1.04; }
    .iec-home .iec-hero__copy .iec-hero__lede { display: none; }   /* option C: headline straight into the cards */
    .iec-home .iec-hero__stack { height: 292px; margin-top: 22px; }
    .iec-home .iec-hero__actions { margin-top: 10px; }
    .iec-home .iec-hero__search { margin-top: 36px; }
}

/* Load: buttons rise with the copy; the back cards fan out once */
@media (prefers-reduced-motion: no-preference) {
    .iec-home .iec-hero__cta,
    .iec-home .iec-hero__stack { animation: iec-rise .8s cubic-bezier(.2, .7, .2, 1) backwards; }
    .iec-home .iec-hero__stack { animation-delay: .1s; }
    .iec-home .iec-hero__cta { animation-delay: .18s; }
    .iec-home .iec-hcard--l { animation: iec-fan-in .7s var(--iec-ease-out) .4s backwards; }
    .iec-home .iec-hcard--r { animation: iec-fan-in .7s var(--iec-ease-out) .4s backwards; }
}
@keyframes iec-fan-in { from { transform: rotate(0) translate(0, 8px); } }

/* ---- "See how a swap works": the video in its own full-width band ---- */
.iec-home .iec-video { background: var(--iec-sand); padding: 96px 0; border-bottom: 1px solid var(--iec-line); }
.iec-home .iec-video__head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.iec-home .iec-video__head p { margin: 14px auto 0 !important; text-align: center !important; }
.iec-home .iec-video__media { width: 100%; max-width: 1040px; margin: 0 auto; }
@media (max-width: 991px) {
    .iec-home .iec-video { padding: 72px 0; }
}
@media (max-width: 767px) {
    .iec-home .iec-video { padding: 56px 0 0; border-bottom: 0; }
    .iec-home .iec-video__head { margin-bottom: 28px; }
    .iec-home .iec-video__head p { font-size: 16px; }
    .iec-home .iec-video__media {                               /* edge to edge on phones */
        width: 100vw;
        max-width: none;
        margin-left: calc(50% - 50vw);
        border-radius: 0;
        border-left: 0;
        border-right: 0;
        box-shadow: none;
    }
}

/* "Back to top" arrow (move-top.js): removed at the owner's request */
#toTop { display: none !important; }

/* ==========================================================================
   Round 17: the fanned back cards now show their details on the edge that
   peeks out (left card left-aligned, right card right-aligned); the video
   section is hidden for now (remove the .iec-video rule to bring it back).
   ========================================================================== */
.iec-home .w3layouts-banner.iec-hero { overflow-x: hidden; overflow-x: clip; }   /* cards may fan past the screen edge */

.iec-home .iec-hcard--l,
.iec-home .iec-hcard--r { opacity: 1; min-height: 214px; padding: 16px 14px; }
.iec-home .iec-hcard--l,
.iec-home .iec-hcard--l p { text-align: left !important; }
.iec-home .iec-hcard--r,
.iec-home .iec-hcard--r p { text-align: right !important; }
.iec-home .iec-hcard--l .iec-hcard__img { width: 48px; height: 48px; margin: 0 0 10px; }
.iec-home .iec-hcard--r .iec-hcard__img { width: 48px; height: 48px; margin: 0 0 10px auto; }
.iec-home .iec-hcard--l .iec-hcard__who,
.iec-home .iec-hcard--r .iec-hcard__who { font-size: 17px; white-space: nowrap; }
.iec-home .iec-hcard--l .iec-hcard__meta,
.iec-home .iec-hcard--r .iec-hcard__meta { font-size: 12.5px; line-height: 1.35; margin-top: 3px !important; }
.iec-home .iec-hcard--l .iec-hcard__lock,
.iec-home .iec-hcard--r .iec-hcard__lock { font-size: 11px; padding: 4px 8px; gap: 5px; margin-top: 10px !important; }
.iec-home .iec-hcard--l .iec-hcard__lock::before,
.iec-home .iec-hcard--r .iec-hcard__lock::before { width: 8px; height: 10px; }

/* Tablet (and the base): front 256, back cards 236 fanned 110px out */
.iec-home .iec-hcard { width: 256px; margin-left: -128px; }
.iec-home .iec-hcard--l,
.iec-home .iec-hcard--r { width: 236px; margin-left: -118px; }
.iec-home .iec-hcard--l { transform: rotate(-6deg) translate(-110px, 24px); }
.iec-home .iec-hcard--r { transform: rotate(6deg) translate(110px, 24px); }

/* Desktop: more room, so bigger cards and a wider fan */
@media (min-width: 992px) {
    .iec-home .iec-hcard { width: 280px; margin-left: -140px; }
    .iec-home .iec-hcard--l,
    .iec-home .iec-hcard--r { width: 260px; margin-left: -130px; min-height: 236px; padding: 18px 16px; }
    .iec-home .iec-hcard--l { transform: rotate(-6deg) translate(-128px, 28px); }
    .iec-home .iec-hcard--r { transform: rotate(6deg) translate(128px, 28px); }
    .iec-home .iec-hcard--l .iec-hcard__img,
    .iec-home .iec-hcard--r .iec-hcard__img { width: 56px; height: 56px; }
    .iec-home .iec-hcard--l .iec-hcard__who,
    .iec-home .iec-hcard--r .iec-hcard__who { font-size: 19px; }
    .iec-home .iec-hcard--l .iec-hcard__meta,
    .iec-home .iec-hcard--r .iec-hcard__meta { font-size: 13px; }
}

/* Phone: a narrower front card leaves a strip either side for the back cards' details */
@media (max-width: 767px) {
    .iec-home .iec-hcard { width: 216px; margin-left: -108px; }
    .iec-home .iec-hcard__img { width: 68px; height: 68px; }
    .iec-home .iec-hcard--l,
    .iec-home .iec-hcard--r { width: 200px; margin-left: -100px; min-height: 200px; padding: 14px 12px; }
    .iec-home .iec-hcard--l { transform: rotate(-6deg) translate(-90px, 22px); }
    .iec-home .iec-hcard--r { transform: rotate(6deg) translate(90px, 22px); }
    .iec-home .iec-hcard--l .iec-hcard__img,
    .iec-home .iec-hcard--r .iec-hcard__img { width: 42px; height: 42px; margin-bottom: 8px; }
    .iec-home .iec-hcard--l .iec-hcard__who,
    .iec-home .iec-hcard--r .iec-hcard__who { font-size: 15px; }
    .iec-home .iec-hcard--l .iec-hcard__meta,
    .iec-home .iec-hcard--r .iec-hcard__meta { font-size: 11.5px; }
}

@media (max-width: 374px) {                                    /* small phones: tuck the back cards in a little */
    .iec-home .iec-hcard { width: 204px; margin-left: -102px; padding-left: 10px; padding-right: 10px; }
    .iec-home .iec-hcard--l,
    .iec-home .iec-hcard--r { width: 196px; margin-left: -98px; }
    .iec-home .iec-hcard--l { transform: rotate(-6deg) translate(-84px, 22px); }
    .iec-home .iec-hcard--r { transform: rotate(6deg) translate(84px, 22px); }
    .iec-home .iec-hcard--l .iec-hcard__who,
    .iec-home .iec-hcard--r .iec-hcard__who { font-size: 14px; }
}

@keyframes iec-fan-in { from { transform: rotate(0) translate(0, 8px); } }

/* Video section hidden for now */
.iec-home .iec-video { display: none; }

/* --------------------------------------------------------------------------
   Round 18: How it works page content (.iec-hiw)
   The markup is pasted into the admin page editor (HOW-IT-WORKS-CONTENT.html).
   Only applies inside .iec-cms, so other CMS pages are untouched.
   -------------------------------------------------------------------------- */
.iec-cms .iec-hiw { color: #2A1F1D; }
.iec-cms .iec-hiw p.iec-hiw__eyebrow {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #145F59;
}
.iec-cms .iec-hiw h1 { margin: 0 0 16px; font-size: 44px; line-height: 1.12; letter-spacing: 0; }
.iec-cms .iec-hiw p.iec-hiw__lead { margin: 0 0 40px; font-size: 19px; line-height: 1.65; color: #67574F; }
.iec-cms .iec-hiw h2 { margin: 0 0 14px; font-size: 28px; letter-spacing: 0; }
.iec-cms .iec-hiw h3 { margin: 0; font-size: 28px; letter-spacing: 0; }
.iec-cms .iec-hiw b { color: #1A7A72 !important; font-weight: 600 !important; }

/* Cards */
.iec-cms .iec-hiw .iec-hiw__card {
    margin: 0 0 24px;
    padding: 32px 36px 22px;
    background: #FFFDF9;
    border: 1px solid #E6DBC9;
    border-radius: 20px;
    box-shadow: 0 1px 2px rgba(42, 31, 29, .04), 0 12px 32px -18px rgba(42, 31, 29, .18);
}
.iec-cms .iec-hiw .iec-hiw__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 0 0 24px; }
.iec-cms .iec-hiw .iec-hiw__pair > .iec-hiw__card { margin: 0; }
.iec-cms .iec-hiw p.iec-hiw__tag {
    display: inline-block;
    margin: 0 0 12px;
    padding: 3px 12px 4px;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.5;
    color: #145F59;
    background: #E1EFEC;
    border-radius: 999px;
}
.iec-cms .iec-hiw p.iec-hiw__note { font-size: 15px; line-height: 1.6; color: #67574F; }

/* Terms */
.iec-cms .iec-hiw .iec-hiw__terms { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; margin: 0 0 10px; }
.iec-cms .iec-hiw .iec-hiw__term { padding: 12px 0; border-top: 1px solid #E6DBC9; font-size: 16px; line-height: 1.55; }
.iec-cms .iec-hiw .iec-hiw__term b { display: block; margin-bottom: 2px; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.iec-cms .iec-hiw .iec-hiw__term span { color: #67574F; }

/* Steps */
.iec-cms .iec-hiw h2.iec-hiw__title { margin: 56px 0 24px; font-size: 36px; text-align: center; }
.iec-cms .iec-hiw .iec-hiw__step { position: relative; margin: 0 0 48px; padding-left: 64px; }
.iec-cms .iec-hiw .iec-hiw__step::before {
    content: "";
    position: absolute;
    left: 21px;
    top: 52px;
    bottom: -40px;
    width: 2px;
    background: #E1EFEC;
}
.iec-cms .iec-hiw .iec-hiw__step:last-of-type::before,
.iec-cms .iec-hiw .iec-hiw__step:has(+ .iec-hiw__next)::before { display: none; }
.iec-cms .iec-hiw .iec-hiw__head { display: flex; align-items: center; gap: 14px; margin: 0 0 12px -64px; }
.iec-cms .iec-hiw .iec-hiw__num {
    display: inline-flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: 6px;
    font-family: var(--iec-sans) !important;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    background: #1A7A72;
    border-radius: 50%;
}
.iec-cms .iec-hiw p.iec-hiw__shot { margin: 16px 0 20px; }
.iec-cms .iec-hiw .iec-hiw__shot img {
    display: block;
    width: 100% !important;
    height: auto !important;
    border: 1px solid #E6DBC9;
    border-radius: 16px;
    box-shadow: 0 14px 36px -20px rgba(42, 31, 29, .28);
}
.iec-cms .iec-hiw ul.iec-hiw__list { margin: 0 0 16px; padding: 0; list-style: none; }
.iec-cms .iec-hiw ul.iec-hiw__list li { position: relative; margin: 0 0 10px; padding-left: 22px; }
.iec-cms .iec-hiw ul.iec-hiw__list li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: .7em;
    width: 8px;
    height: 8px;
    background: #1A7A72;
    border-radius: 50%;
}

/* What next + buttons */
.iec-cms .iec-hiw .iec-hiw__next { margin-top: 8px; background: #F3EBDD; border-color: #E6DBC9; }
.iec-cms .iec-hiw p.iec-hiw__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 10px; }
.iec-cms .iec-hiw a.iec-hiw__btn {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0 26px;
    font-size: 16px;
    font-weight: 500;
    color: #FAF6EF;
    text-decoration: none;
    background: #1A7A72;
    border: 1px solid #1A7A72;
    border-radius: 10px;
    transition: background-color .15s ease;
}
.iec-cms .iec-hiw a.iec-hiw__btn:hover { background: #145F59; color: #FAF6EF; }
.iec-cms .iec-hiw a.iec-hiw__btn--ghost { color: #1A7A72; background: transparent; }
.iec-cms .iec-hiw a.iec-hiw__btn--ghost:hover { color: #145F59; background: #FFFDF9; }
.iec-cms .iec-hiw a.iec-hiw__btn:focus-visible { outline: 3px solid #1A7A72; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .iec-cms .iec-hiw a.iec-hiw__btn { transition: none; } }

@media (max-width: 767px) {
    .iec-cms .iec-hiw h1 { font-size: 34px; }
    .iec-cms .iec-hiw p.iec-hiw__lead { font-size: 17px; margin-bottom: 28px; }
    .iec-cms .iec-hiw .iec-hiw__card { padding: 24px 20px 14px; border-radius: 16px; }
    .iec-cms .iec-hiw .iec-hiw__pair,
    .iec-cms .iec-hiw .iec-hiw__terms { grid-template-columns: 1fr; gap: 16px; }
    .iec-cms .iec-hiw .iec-hiw__terms { gap: 0; }
    .iec-cms .iec-hiw h2.iec-hiw__title { margin-top: 40px; font-size: 30px; }
    .iec-cms .iec-hiw .iec-hiw__step { padding-left: 0; margin-bottom: 36px; }
    .iec-cms .iec-hiw .iec-hiw__step::before { display: none; }
    .iec-cms .iec-hiw .iec-hiw__head { margin-left: 0; }
    .iec-cms .iec-hiw .iec-hiw__shot img { border-radius: 12px; }
    .iec-cms .iec-hiw a.iec-hiw__btn { flex: 1 1 auto; justify-content: center; }
}

/* Round 18b: Daily Discover + privacy blocks on How it works */
.iec-cms .iec-hiw .iec-hiw__discover {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 32px;
    align-items: center;
    margin: 28px 0 0;
}
.iec-cms .iec-hiw .iec-hiw__discover h3 { margin: 0 0 10px; }
.iec-cms .iec-hiw p.iec-hiw__phone { margin: 0 0 10px; }
.iec-cms .iec-hiw .iec-hiw__phone img {
    display: block;
    width: 100% !important;
    height: auto !important;
    border: 6px solid #2A1F1D;
    border-radius: 28px;
    box-shadow: 0 18px 40px -22px rgba(42, 31, 29, .45);
}
.iec-cms .iec-hiw .iec-hiw__privacy { margin-top: 8px; }
.iec-cms .iec-hiw ul.iec-hiw__checks { margin: 4px 0 14px; padding: 0; list-style: none; }
.iec-cms .iec-hiw ul.iec-hiw__checks li {
    position: relative;
    margin: 0;
    padding: 12px 0 12px 38px;
    border-top: 1px solid #E6DBC9;
}
.iec-cms .iec-hiw ul.iec-hiw__checks li:first-child { border-top: 0; }
.iec-cms .iec-hiw ul.iec-hiw__checks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #E1EFEC url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%231A7A72' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.iec-cms .iec-hiw ul.iec-hiw__checks li b { color: #2A1F1D !important; }
@media (max-width: 767px) {
    .iec-cms .iec-hiw .iec-hiw__discover { grid-template-columns: 1fr; gap: 8px; }
    .iec-cms .iec-hiw p.iec-hiw__phone { justify-self: center; width: 240px; max-width: 100%; margin: 4px auto 16px; }
}

/* ==========================================================================
   Round 19: pop-ups and confirmation boxes
   Two kinds of box, both rendered outside the page wrappers (so not scoped
   to .iec-page): the Bootstrap modals in resources/views/modals/ (SWAP,
   MEET, close account, payment, declaration) and the SweetAlert v1 boxes
   ("Are you sure?", "SWAP request sent"). custom.css only loads on the
   main site, so these rules never reach the back office. CSS only.
   ========================================================================== */

/* ---- Bootstrap modals ---- */
.modal-backdrop { background: var(--iec-night); }
.modal-backdrop.in { opacity: .5; }

/* centred vertically (Bootstrap 3 pins dialogs to the top) */
.modal { text-align: center; padding: 0 !important; }
.modal::before { content: ""; display: inline-block; height: 100%; vertical-align: middle; }
.modal .modal-dialog,
#stripeModal .modal-dialog,
.modal .modal-dialog[style] {
    display: inline-block;
    vertical-align: middle;
    width: calc(100% - 32px) !important;
    max-width: 480px;
    margin: 24px auto;
    text-align: left;
}
.modal .modal-dialog[style] { max-width: 680px; }   /* the two declaration boxes (inline width: 900px) */
#stripeModal .modal-dialog { max-width: 520px; }

.modal.fade .modal-dialog {
    opacity: 0;
    transform: translateY(12px) scale(.98);
    transition: opacity .2s ease, transform .24s var(--iec-ease-out);
}
.modal.fade.in .modal-dialog { opacity: 1; transform: none; }

.modal .modal-content {
    position: relative;
    background: var(--iec-paper);
    border: 0;
    border-radius: var(--iec-r-panel);
    box-shadow: var(--iec-shadow-panel);
    font-family: var(--iec-sans);
    color: var(--iec-ink);
    overflow: hidden;
}
.modal .modal-header {
    padding: 26px 64px 6px 28px;
    border: 0;
}
.modal .modal-title {
    font-family: var(--iec-serif);
    font-size: 25px;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: 0;
    text-transform: none;
    text-align: left;
    color: var(--iec-ink);
}

/* close (x): a round, easy-to-hit button */
.modal .modal-header .close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    float: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--iec-sans);
    font-size: 26px;
    font-weight: 400;
    line-height: 1;
    color: var(--iec-muted);
    text-shadow: none;
    opacity: 1;
    background: transparent;
    border: 0;
    border-radius: 50%;
    transition: background-color .16s ease, color .16s ease;
}
.modal .modal-header .close:hover { background: var(--iec-sand); color: var(--iec-ink); }
.modal .modal-header .close:focus { outline: none; }
.modal .modal-header .close:focus-visible { outline: 2px solid var(--iec-teal); outline-offset: 2px; }

.modal .modal-body {
    padding: 10px 28px 8px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--iec-muted);
}
.modal .modal-body p { margin: 0 0 12px; text-align: left; font-size: 16px; line-height: 1.6; color: var(--iec-muted); letter-spacing: 0; }
.modal .modal-body p b { color: var(--iec-ink); font-weight: 500; }
.modal .modal-body > br { display: none; }   /* old <br> spacers in the declaration */
.modal .modal-body h5 {
    margin: 4px 0 6px;
    font-family: var(--iec-sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--iec-teal-deep);
}
.modal .modal-body h5 b { font-weight: 600; }
.modal .modal-body hr { margin: 16px 0; border: 0; border-top: 1px solid var(--iec-line); }
.modal .modal-body ul,
.modal .modal-body .modal_ul { margin: 4px 0 12px; padding: 0 0 0 20px !important; }
.modal .modal-body li { margin: 0 0 6px; color: var(--iec-muted); }
.modal .modal-body li::marker { color: var(--iec-teal); }

.modal .modal-footer {
    padding: 14px 28px 28px;
    border: 0;
    text-align: center;
}

/* actions: same rounded maroon button as the member pages */
.modal .main_log_btn,
.modal .main_grey_btn_payment,
.modal .main_checkout_btn_payment {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    float: none;
    width: auto;
    max-width: none;
    min-width: 200px;
    min-height: 50px;
    margin: 0 !important;
    padding: 0 30px;
    overflow: visible;
    font-family: var(--iec-sans);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: .01em;
    text-transform: none;
    text-decoration: none;
    color: #fff;
    background: var(--iec-maroon);
    border: 0;
    border-radius: var(--iec-r-control);
    box-shadow: none;
    cursor: pointer;
    transition: background-color .16s ease, transform .16s var(--iec-ease-out);
}
.modal .main_log_btn::after,
.modal .main_grey_btn_payment::after,
.modal .main_checkout_btn_payment::after { display: none; }   /* old diagonal wipe */
.modal .main_log_btn span,
.modal .main_grey_btn_payment span,
.modal .main_checkout_btn_payment span { display: inline-flex; align-items: center; gap: 8px; }
.modal .main_log_btn:hover,
.modal .main_log_btn:focus,
.modal .main_grey_btn_payment:hover,
.modal .main_grey_btn_payment:focus,
.modal .main_checkout_btn_payment:hover,
.modal .main_checkout_btn_payment:focus { background: var(--iec-maroon-deep); color: #fff !important; text-decoration: none; outline: none; }
.modal .main_log_btn:active,
.modal .main_grey_btn_payment:active,
.modal .main_checkout_btn_payment:active { transform: scale(.97); }
.modal .main_log_btn:focus-visible,
.modal .main_grey_btn_payment:focus-visible,
.modal .main_checkout_btn_payment:focus-visible { outline: 2px solid var(--iec-teal); outline-offset: 3px; }
.modal .modal-body .main_grey_btn_payment,
.modal .modal-body .main_checkout_btn_payment { margin: 8px 0 12px !important; }

/* close account: a quieter, red-outlined button */
.modal #close_account_btn {
    margin: 6px 0 0 !important;
    background: #fff;
    color: #8E2E2E;
    border: 1px solid #D9B8B8;
}
.modal #close_account_btn:hover,
.modal #close_account_btn:focus { background: #F8ECEC; color: #8E2E2E !important; }

/* close account: reasons as tappable option rows */
.modal #close_account_form .w3_modal_body_grid,
.modal #close_account_form .w3_gender { margin: 0; padding: 0; width: auto; float: none; }
.modal #close_account_form .colr { float: none; margin: 0 0 8px; }
.modal #close_account_form label.radio {
    position: relative;
    display: block;
    margin: 0;
    padding: 13px 16px 13px 46px;
    font-family: var(--iec-sans);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--iec-ink);
    background: #fff;
    border: 1px solid var(--iec-line);
    border-radius: var(--iec-r-control);
    cursor: pointer;
    transition: border-color .16s ease, background-color .16s ease;
}
.modal #close_account_form label.radio:hover { border-color: var(--iec-teal-line); }
.modal #close_account_form label.radio:has(input:checked) { border-color: var(--iec-teal); background: var(--iec-teal-soft); }
.modal #close_account_form .radio i {
    top: 50%;
    left: 16px;
    width: 18px;
    height: 18px;
    margin-top: -9px;
    background: #fff;
    border: 1.5px solid #B9A994;
    border-radius: 50%;
}
.modal #close_account_form .radio input + i::after {
    top: 3px;
    left: 3px;
    width: 9px;
    height: 9px;
    background-color: var(--iec-teal) !important;
    opacity: 0;
}
.modal #close_account_form .radio input:checked + i { border-color: var(--iec-teal); }
.modal #close_account_form .radio input:checked + i::after { opacity: 1; }
.modal #close_account_form .radio input:focus-visible + i { outline: 2px solid var(--iec-teal); outline-offset: 2px; }
.modal #close_account_form .help-block { color: #A23B3B; font-size: 14px; }
.modal .alert-danger {
    margin: 14px 0 0;
    padding: 12px 16px;
    font-size: 14px;
    color: #8E2E2E;
    background: #F8ECEC;
    border: 1px solid #E6CACA;
    border-radius: var(--iec-r-control);
}
.modal .alert-danger ul { margin: 0; padding-left: 18px; }
.modal #close_account_form + br { display: none; }

@media (max-width: 600px) {
    .modal .modal-dialog,
    #stripeModal .modal-dialog,
    .modal .modal-dialog[style] { width: calc(100% - 24px) !important; margin: 12px auto; }
    .modal .modal-header { padding: 22px 60px 4px 22px; }
    .modal .modal-header .close { top: 12px; right: 12px; }
    .modal .modal-title { font-size: 22px; }
    .modal .modal-body { padding: 8px 22px 6px; max-height: calc(100vh - 190px); overflow-y: auto; }
    .modal .modal-footer { padding: 12px 22px 22px; }
    .modal .modal-footer .main_log_btn,
    .modal #close_account_btn,
    .modal .main_grey_btn_payment,
    .modal .main_checkout_btn_payment { width: 100%; min-width: 0; }
}

/* ---- SweetAlert boxes ---- */
.sweet-overlay { background-color: rgba(35, 25, 23, .5); }
.sweet-alert {
    box-sizing: border-box;
    width: 440px;
    margin-left: -220px;
    padding: 30px 28px 28px;
    font-family: var(--iec-sans);
    background-color: var(--iec-paper);
    border-radius: var(--iec-r-panel);
    box-shadow: var(--iec-shadow-panel);
}
.sweet-alert h2 {
    margin: 4px 0 8px;
    font-family: var(--iec-serif);
    font-size: 26px;
    font-weight: 400;
    line-height: 1.25;
    color: var(--iec-ink);
}
.sweet-alert p {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.55;
    color: var(--iec-muted);
}
.sweet-alert .sa-icon { margin: 4px auto 18px; }

/* icon colours: teal for good news, maroon to ask, muted red for errors */
.sweet-alert .sa-icon.sa-success { border-color: var(--iec-teal); }
.sweet-alert .sa-icon.sa-success .sa-placeholder { border-color: rgba(31, 111, 107, .2); }
.sweet-alert .sa-icon.sa-success .sa-line { background-color: var(--iec-teal); }
.sweet-alert .sa-icon.sa-success::before,
.sweet-alert .sa-icon.sa-success::after,
.sweet-alert .sa-icon.sa-success .sa-fix { background: var(--iec-paper); }
.sweet-alert .sa-icon.sa-warning { border-color: rgba(26, 122, 114, .35); }
.sweet-alert .sa-icon.sa-warning .sa-body,
.sweet-alert .sa-icon.sa-warning .sa-dot { background-color: var(--iec-maroon); }
.sweet-alert .sa-icon.sa-warning,
.sweet-alert .sa-icon.sa-warning .sa-body,
.sweet-alert .sa-icon.sa-warning .sa-dot { animation: none !important; }   /* the stock pulse flashed orange */
.sweet-alert .sa-icon.sa-error { border-color: #C98A8A; }
.sweet-alert .sa-icon.sa-error .sa-line { background-color: #A23B3B; }
.sweet-alert .sa-icon.sa-info { border-color: var(--iec-teal-line); }
.sweet-alert .sa-icon.sa-info::before,
.sweet-alert .sa-icon.sa-info::after { background-color: var(--iec-teal); }

.sweet-alert .sa-button-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.sweet-alert .sa-confirm-button-container { display: block; }
.sweet-alert button {
    min-width: 140px;
    min-height: 48px;
    margin: 0;
    padding: 0 26px;
    font-family: var(--iec-sans);
    font-size: 16px;
    font-weight: 500;
    border-radius: var(--iec-r-control);
    transition: background-color .16s ease, transform .16s var(--iec-ease-out);
}
/* SweetAlert writes the confirm colour (and hover/focus shades) inline, hence !important */
.sweet-alert button.confirm { background-color: var(--iec-maroon) !important; color: #fff; box-shadow: none !important; }
.sweet-alert button.confirm:hover { background-color: var(--iec-maroon-deep) !important; }
.sweet-alert button.cancel { background-color: #fff !important; color: var(--iec-ink); border: 1px solid var(--iec-line); box-shadow: none !important; }
.sweet-alert button.cancel:hover { background-color: var(--iec-sand) !important; }
.sweet-alert button:active { transform: scale(.97); }
.sweet-alert button:focus { outline: none; box-shadow: none !important; }
.sweet-alert button:focus-visible { outline: 2px solid var(--iec-teal) !important; outline-offset: 3px; }

/* calmer entrance than the stock bounce */
@keyframes iecAlertIn { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
.sweet-alert.showSweetAlert[data-animation=pop] { animation: iecAlertIn .24s var(--iec-ease-out); }

@media (max-width: 540px) {
    .sweet-alert { width: auto; margin-left: 0; left: 16px; right: 16px; padding: 26px 20px 20px; }
    .sweet-alert h2 { font-size: 23px; }
    .sweet-alert .sa-button-container { flex-direction: column-reverse; }
    .sweet-alert .sa-confirm-button-container,
    .sweet-alert button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .modal.fade .modal-dialog { transition: none; transform: none; }
    .sweet-alert.showSweetAlert[data-animation=pop] { animation: none; }
    .sweet-alert .sa-icon,
    .sweet-alert .sa-icon * { animation: none !important; }
}

/* ---- Toast notices (toastr: small top-right messages after an action) ---- */
#toast-container { z-index: 100000; }
#toast-container.toast-top-right { top: 16px; right: 16px; }
#toast-container > div {
    width: 340px;
    margin: 0 0 10px;
    padding: 14px 40px 14px 54px;
    font-family: var(--iec-sans);
    font-size: 15px;
    line-height: 1.45;
    color: var(--iec-ink);
    background-color: var(--iec-paper);
    background-position: 16px 14px;
    background-size: 24px 24px;
    border: 1px solid var(--iec-line);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(42, 31, 29, .06), 0 14px 32px -12px rgba(42, 31, 29, .28);
    opacity: 1;
}
#toast-container > div:hover { box-shadow: 0 1px 2px rgba(42, 31, 29, .06), 0 18px 36px -12px rgba(42, 31, 29, .34); opacity: 1; }
#toast-container .toast-title { font-weight: 600; margin-bottom: 2px; }
#toast-container .toast-message a { color: var(--iec-teal-deep); text-decoration: underline; }
#toast-container > .toast-error   { border-left: 4px solid #A23B3B; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23A23B3B'/%3E%3Cpath d='M12 6.5v7' stroke='%23fff' stroke-width='2.2' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='17.3' r='1.3' fill='%23fff'/%3E%3C/svg%3E") !important; }
#toast-container > .toast-success { border-left: 4px solid var(--iec-teal); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%231A7A72'/%3E%3Cpath d='M7 12.4l3.2 3.2L17 8.8' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important; }
#toast-container > .toast-info,
#toast-container > .toast-warning { border-left: 4px solid var(--iec-maroon); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%231A7A72'/%3E%3Ccircle cx='12' cy='7' r='1.3' fill='%23fff'/%3E%3Cpath d='M12 10.5v7' stroke='%23fff' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") !important; }
#toast-container .toast-close-button {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    float: none;
    font-family: var(--iec-sans);
    font-size: 20px;
    font-weight: 400;
    line-height: 28px;
    color: var(--iec-muted);
    text-shadow: none;
    opacity: 1;
    border-radius: 50%;
}
#toast-container .toast-close-button:hover { background: var(--iec-sand); color: var(--iec-ink); }
#toast-container .toast-close-button:focus-visible { outline: 2px solid var(--iec-teal); outline-offset: 1px; }
#toast-container .toast-progress { height: 3px; background-color: var(--iec-ink); opacity: .15; }
@media (max-width: 480px) {
    #toast-container.toast-top-right { top: 12px; left: 12px; right: 12px; }
    #toast-container > div { width: 100%; padding: 13px 40px 13px 52px; background-position: 14px 13px; }
}

/* ==========================================================================
   ROUND 20: Daily Discover extras + "waiting for your reply" banner
   (inc/iecDiscover.blade.php, inc/iecWaiting.blade.php, Profiles page)
   ========================================================================== */
/* ---- "in common" chips on Discover cards ---- */
.iec-dc .iec-dc__why { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.iec-dc__chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px 4px;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--iec-teal-deep);
    background: #fff;
    border: 1px solid var(--iec-teal-line);
    border-radius: 999px;
}
.iec-dc__chip::before {
    content: "";
    width: 10px;
    height: 10px;
    flex: 0 0 auto;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 5.2l2 2L8 3' fill='none' stroke='%231A7A72' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---- end screen: room for the nudges ---- */
.iec-dc__end { overflow-y: auto; justify-content: safe center; }
.iec-dc__nudge {
    width: 100%;
    max-width: 320px;
    margin-top: 16px;
    padding: 14px 16px;
    text-align: left;
    border-radius: var(--iec-r-card);
}
.iec-dc .iec-dc__nudge p { text-align: left; }
.iec-dc__nudge--swap { background: var(--iec-teal-soft); }
.iec-dc__nudge--about { background: #fff; border: 1px dashed var(--iec-line); }
.iec-dc .iec-dc__nudge-title { font-family: var(--iec-serif); font-size: 18px; line-height: 1.3; color: var(--iec-ink); }
.iec-dc .iec-dc__nudge-text { margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--iec-muted); }
.iec-dc__nudge--swap .iec-dc__nudge-title b { color: var(--iec-teal-deep); font-weight: 600; }
.iec-dc__nudge-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--iec-teal-deep) !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
}
.iec-dc__nudge-link:focus-visible { outline: 2px solid var(--iec-teal); outline-offset: 3px; border-radius: 4px; }
.iec-dc__end-actions { margin-top: 20px; }

/* ---- first-time coach: the top card sways right then left ---- */
.iec-dc__coach {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: -4px 0 10px;
    font-size: 13px;
    font-weight: 600;
}
.iec-dc__coach-pass { color: var(--iec-maroon); }
.iec-dc__coach-star { color: var(--iec-teal-deep); }
.iec-dc__coach-mid { font-weight: 500; color: var(--iec-muted); }
.iec-dc__card.is-coaching { animation: iecDcCoach 2.4s cubic-bezier(.45, 0, .2, 1) 1; }
.iec-dc__card.is-coaching .iec-dc__stamp--star { animation: iecDcCoachStar 2.4s ease 1; }
.iec-dc__card.is-coaching .iec-dc__stamp--pass { animation: iecDcCoachPass 2.4s ease 1; }
@keyframes iecDcCoach {
    0%, 100% { transform: none; }
    22%, 32% { transform: translateX(64px) rotate(4deg); }
    50% { transform: none; }
    70%, 80% { transform: translateX(-64px) rotate(-4deg); }
}
@keyframes iecDcCoachStar { 0%, 10%, 45%, 100% { opacity: 0; } 22%, 32% { opacity: .8; } }
@keyframes iecDcCoachPass { 0%, 58%, 92%, 100% { opacity: 0; } 70%, 80% { opacity: .8; } }
@media (prefers-reduced-motion: reduce) {
    .iec-dc__card.is-coaching,
    .iec-dc__card.is-coaching .iec-dc__stamp { animation: none; }
}

/* ---- "waiting for your reply" banner ---- */
.iec-wait {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 4px 0 16px;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid var(--iec-line);
    border-left: 4px solid var(--iec-maroon);
    border-radius: var(--iec-r-card);
    box-shadow: 0 1px 2px rgba(42, 31, 29, .04);
    text-align: left;
}
.iec-wait__icon {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #F6ECEC url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 6.5h16v11H4z' fill='none' stroke='%231A7A72' stroke-width='1.6' stroke-linejoin='round'/%3E%3Cpath d='M4.5 7l7.5 6 7.5-6' fill='none' stroke='%231A7A72' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat;
}
.iec-wait__text { flex: 1; min-width: 0; }
.iec-listing .iec-wait p { margin: 0; text-align: left; }
.iec-listing .iec-wait .iec-wait__title { font-family: var(--iec-serif); font-size: 20px; line-height: 1.3; color: var(--iec-ink); }
.iec-listing .iec-wait .iec-wait__sub { margin-top: 2px; font-size: 14px; line-height: 1.5; color: var(--iec-muted); }
.iec-wait__actions { display: flex; flex-wrap: wrap; gap: 8px; flex: 0 0 auto; }
.iec-wait__btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 6px 18px;
    font-family: var(--iec-sans);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    color: #fff !important;
    background: var(--iec-maroon);
    border-radius: var(--iec-r-control);
    text-decoration: none !important;
    transition: background-color .16s ease, transform .16s var(--iec-ease-out);
}
.iec-wait__btn:hover { background: var(--iec-maroon-deep); }
.iec-wait__btn:active { transform: scale(.97); }
.iec-wait__btn:focus-visible { outline: 2px solid var(--iec-teal); outline-offset: 3px; }
.iec-wait__where { font-size: 11.5px; font-weight: 400; opacity: .85; }
@media (max-width: 767px) {
    .iec-wait { flex-wrap: wrap; gap: 12px 14px; padding: 16px; }
    .iec-wait__icon { width: 38px; height: 38px; background-size: 19px; }
    .iec-listing .iec-wait .iec-wait__title { font-size: 18px; }
    .iec-wait__actions { width: 100%; }
    .iec-wait__btn { flex: 1 1 140px; padding: 6px 10px; font-size: 14.5px; text-align: center; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
    .iec-wait__btn { transition: none; }
}
/* Round 20b: the left-swipe stamp now reads "Dismiss" (was "Pass"), matching the site's Dismiss link and Dismissed profiles page */
.iec-dc__stamp--pass { font-size: 19px; letter-spacing: .1em; white-space: nowrap; }

/* ==========================================================================
   ROUND 24: home-screen app prompts, iPhone steps, notifications card,
   Discover end-screen nudge, My Profile "Get the app" card, /app page
   ========================================================================== */
/* ---- install card: reassurance ticks ---- */
.iec-install__icon { width: 48px; height: 48px; padding: 0; border-radius: 12px; background: none; box-shadow: 0 1px 3px rgba(42, 31, 29, .15); }
.iec-install { grid-template-columns: 48px minmax(0, 1fr); }
.iec-install__title { font-family: var(--iec-serif); font-size: 18px; font-weight: 400; }
.iec-install__ticks { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px !important; font-size: 12.5px; font-weight: 500; color: var(--iec-teal-deep); }
.iec-install__ticks span { display: inline-flex; align-items: center; gap: 5px; }
.iec-install__ticks span::before {
    content: "";
    width: 12px;
    height: 12px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.3l2.3 2.3L9.5 3.6' fill='none' stroke='%231A7A72' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.iec-install__go:hover { background: var(--iec-maroon-deep); border-color: var(--iec-maroon-deep); }
.iec-install__later:hover { color: var(--iec-ink); }
.iec-install__actions button:focus-visible,
.iec-install__x:focus-visible { outline: 2px solid var(--iec-teal); outline-offset: 3px; }

/* ---- iPhone / iPad steps sheet ---- */
.iec-install--ios { display: block; padding: 20px 18px 18px; z-index: 2100; }
.iec-install--ios[hidden] { display: none !important; }
.iec-install__x {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    padding: 0;
    font-size: 26px;
    line-height: 1;
    color: var(--iec-muted);
    background: var(--iec-sand);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}
.iec-install--ios .iec-install__title { padding-right: 44px; font-size: 20px; }
.iec-install .iec-ios__lead { margin-top: 4px !important; }
.iec-ios__steps { margin: 14px 0 0; padding: 0; list-style: none; counter-reset: iecstep; }
.iec-ios__step { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--iec-line); font-size: 15px; line-height: 1.45; }
.iec-ios__step:first-child { border-top: 0; }
.iec-ios__icon { position: relative; width: 40px; height: 40px; border-radius: 10px; background: var(--iec-teal-soft) center / 22px no-repeat; }
.iec-ios__icon::after {
    counter-increment: iecstep;
    content: counter(iecstep);
    position: absolute;
    top: -6px;
    left: -6px;
    width: 18px;
    height: 18px;
    font-size: 11px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
    color: #fff;
    background: var(--iec-maroon);
    border-radius: 50%;
}
.iec-ios__icon--share { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3v12M8 7l4-4 4 4' fill='none' stroke='%23007AFF' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M8.5 10.5H6.5v10h11v-10h-2' fill='none' stroke='%23007AFF' stroke-width='1.9' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.iec-ios__icon--add { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='4' y='4' width='16' height='16' rx='4' fill='none' stroke='%232A1F1D' stroke-width='1.8'/%3E%3Cpath d='M12 8.5v7M8.5 12h7' stroke='%232A1F1D' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); }
.iec-ios__icon--done { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%231A7A72' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.iec-install .iec-ios__other,
.iec-install .iec-ios__safari { margin-top: 10px !important; padding: 10px 12px; font-size: 14px; line-height: 1.45; background: var(--iec-sand); border-radius: var(--iec-r-control); }
.iec-ios__ok {
    display: block;
    width: 100%;
    min-height: 48px;
    margin-top: 14px;
    font-family: var(--iec-sans);
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    background: var(--iec-maroon);
    border: 0;
    border-radius: 999px;
    cursor: pointer;
}
/* on iPhone Safari, point down at the toolbar where Share lives */
.iec-install--ios.has-arrow { bottom: calc(58px + env(safe-area-inset-bottom)); }
.iec-ios__arrow { display: none; }
.iec-install--ios.has-arrow .iec-ios__arrow {
    display: block;
    position: absolute;
    left: 50%;
    bottom: -48px;
    width: 30px;
    height: 40px;
    margin-left: -15px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 40'%3E%3Cpath d='M15 3v31M5 25l10 11 10-11' fill='none' stroke='%23FFFFFF' stroke-width='7' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M15 3v31M5 25l10 11 10-11' fill='none' stroke='%231A7A72' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (prefers-reduced-motion: no-preference) {
    .iec-install--ios.has-arrow.is-open .iec-ios__arrow { animation: iecArrowNudge 1.4s ease-in-out 3; }
}
@keyframes iecArrowNudge { 0%, 100% { transform: none; } 50% { transform: translateY(7px); } }

/* ---- notifications card (overrides the old full-width sheet in style.css) ---- */
.installBannerAllow.iec-install {
    left: 12px;
    right: 12px;
    width: auto;
    padding: 16px;
    text-align: left;
    transform: translateY(16px);
    box-shadow: 0 20px 48px -12px rgba(42, 31, 29, .35), 0 2px 6px rgba(42, 31, 29, .08);
}
.installBannerAllow.iec-install.is-open { transform: none; }
.installBannerAllow.iec-install button { float: none; margin: 0; padding: 0 18px; }
.installBannerAllow .iec-install__later { color: var(--iec-muted); }
.installBannerAllow .iec-install__go { color: #fff; }
.iec-install__icon--bell {
    display: block;
    box-shadow: none;
    background: var(--iec-teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 16.5V11a5.5 5.5 0 0 1 11 0v5.5l1.5 1.5H5z' fill='none' stroke='%23145F59' stroke-width='1.7' stroke-linejoin='round'/%3E%3Cpath d='M10 20.5a2 2 0 0 0 4 0' fill='none' stroke='%23145F59' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E") center / 24px no-repeat;
}
@media (min-width: 768px) {
    .iec-install { left: auto; right: 24px; bottom: 24px; width: 400px; margin: 0; }
    .installBannerAllow.iec-install { left: auto; right: 24px; width: 400px; }
}
@media (prefers-reduced-motion: reduce) {
    .installBannerAllow.iec-install { transform: none; }
}

/* ---- Discover end screen: install nudge ---- */
.iec-dc__nudge--app { background: #fff; border: 1px solid var(--iec-teal-line); }
.iec-dc__nudge-btn {
    margin-top: 10px;
    min-height: 42px;
    padding: 0 18px;
    font-family: var(--iec-sans);
    font-size: 14.5px;
    font-weight: 500;
    color: #fff;
    background: var(--iec-teal);
    border: 0;
    border-radius: 999px;
    cursor: pointer;
}
.iec-dc__nudge-btn:hover { background: var(--iec-teal-deep); }
.iec-dc__nudge-btn:focus-visible { outline: 2px solid var(--iec-teal); outline-offset: 3px; }

/* ---- My Profile: "Get the app" card ---- */
.iec-getapp[hidden] { display: none !important; }
.iec-getapp {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 20px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--iec-teal-line);
    border-radius: var(--iec-r-card);
    text-align: left;
}
.iec-getapp__icon { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 12px; box-shadow: 0 1px 3px rgba(42, 31, 29, .15); }
.iec-getapp__text { flex: 1; min-width: 0; }
.iec-page .iec-getapp p { margin: 0; text-align: left; }
.iec-page .iec-getapp .iec-getapp__title { font-family: var(--iec-serif); font-size: 18px; line-height: 1.3; color: var(--iec-ink); }
.iec-page .iec-getapp .iec-getapp__sub { margin-top: 2px; font-size: 14px; line-height: 1.45; color: var(--iec-muted); }
.iec-getapp__btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 18px;
    font-size: 15px;
    font-weight: 500;
    color: #fff !important;
    background: var(--iec-teal);
    border-radius: 999px;
    text-decoration: none !important;
}
.iec-getapp__btn:hover { background: var(--iec-teal-deep); }
.iec-getapp__btn:focus-visible { outline: 2px solid var(--iec-teal); outline-offset: 3px; }
@media (max-width: 560px) {
    .iec-getapp { flex-wrap: wrap; }
    .iec-getapp__btn { width: 100%; justify-content: center; }
}

/* ---- /app page ---- */
.iec-appage { padding: 8px 0 56px; font-family: var(--iec-sans); color: var(--iec-ink); }
.iec-appage .container { max-width: 880px; }
.iec-appage p { text-align: left; }
.iec-appage__hero { padding: 28px 24px 30px; text-align: center; background: #fff; border: 1px solid var(--iec-line); border-radius: var(--iec-r-panel); box-shadow: 0 1px 2px rgba(42, 31, 29, .04); }
.iec-appage__icon { width: 104px; height: 104px; border-radius: 24px; box-shadow: 0 10px 28px -10px rgba(42, 31, 29, .35); }
.iec-appage__title { margin: 18px 0 8px; font-family: var(--iec-serif); font-size: 38px; font-weight: 400; line-height: 1.15; color: var(--iec-ink); text-transform: none; letter-spacing: 0; }
.iec-appage .iec-appage__lead { max-width: 34em; margin: 0 auto; font-size: 17px; line-height: 1.6; color: var(--iec-muted); text-align: center; }
.iec-appage__cta { margin-top: 22px; }
.iec-appage__cta[hidden] { display: none; }
.iec-appage .iec-appage__cta p { text-align: center; }
.iec-appage__btn {
    min-height: 52px;
    padding: 0 30px;
    font-family: var(--iec-sans);
    font-size: 17px;
    font-weight: 500;
    color: #fff;
    background: var(--iec-maroon);
    border: 0;
    border-radius: 999px;
    cursor: pointer;
}
.iec-appage__btn:hover { background: var(--iec-maroon-deep); }
.iec-appage__btn:focus-visible, .iec-appage__link:focus-visible { outline: 2px solid var(--iec-teal); outline-offset: 3px; }
.iec-appage .iec-appage__small { margin-top: 8px; font-size: 14px; color: var(--iec-muted); }
.iec-appage .iec-appage__done { display: inline-block; padding: 10px 18px; font-weight: 500; color: var(--iec-teal-deep); background: var(--iec-teal-soft); border-radius: 999px; }
.iec-appage__qr { display: inline-flex; align-items: center; gap: 20px; padding: 16px 22px 16px 16px; text-align: left; background: var(--iec-cream); border-radius: var(--iec-r-card); }
.iec-appage__qr img { width: 168px; height: 168px; border-radius: 10px; background: #fff; }
.iec-appage .iec-appage__qr p { text-align: left; }
.iec-appage .iec-appage__qr-title { font-family: var(--iec-serif); font-size: 21px; line-height: 1.25; }
.iec-appage__link { margin-top: 10px; padding: 0; font: inherit; font-size: 14.5px; font-weight: 500; color: var(--iec-teal-deep); background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.iec-appage__link[hidden] { display: none; }
.iec-appage__perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 22px 0 0; padding: 0; list-style: none; }
.iec-appage__perks li { padding: 18px; background: #fff; border: 1px solid var(--iec-line); border-radius: var(--iec-r-card); }
.iec-appage__perks b { display: block; font-family: var(--iec-serif); font-size: 18px; font-weight: 400; line-height: 1.3; }
.iec-appage__perks span { display: block; margin-top: 4px; font-size: 14.5px; line-height: 1.5; color: var(--iec-muted); }
.iec-appage__how { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.iec-appage__os { padding: 20px 22px; background: #fff; border: 1px solid var(--iec-line); border-radius: var(--iec-r-card); }
.iec-appage__os h2 { margin: 0 0 10px; font-family: var(--iec-serif); font-size: 22px; font-weight: 400; color: var(--iec-ink); text-transform: none; letter-spacing: 0; text-align: left; }
.iec-appage__os ol { margin: 0; padding-left: 20px; font-size: 15px; line-height: 1.6; }
.iec-appage__os li { margin: 4px 0; }
.iec-appage__share { display: inline-block; width: 16px; height: 16px; vertical-align: -3px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3v12M8 7l4-4 4 4' fill='none' stroke='%23007AFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M8.5 10.5H6.5v10h11v-10h-2' fill='none' stroke='%23007AFF' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.iec-appage .iec-appage__note { margin-top: 18px; font-size: 14px; line-height: 1.55; color: var(--iec-muted); text-align: center; }
@media (max-width: 767px) {
    .iec-appage__hero { padding: 24px 16px; }
    .iec-appage__title { font-size: 30px; }
    .iec-appage__perks, .iec-appage__how { grid-template-columns: 1fr; }
    .iec-appage__btn { width: 100%; }
    .iec-appage__qr { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
    .iec-dc__nudge-btn, .iec-getapp__btn, .iec-appage__btn { transition: none; }
}

/* Round 25: "Get the app" links in the member menu and footer; not needed inside the installed app */
.iec-installed .iec-link-getapp { display: none !important; }

/* Round 27: "Best match / Newest" switch above the profile list */
.iec-listing .profiles-list-agileits h3 + .iec-sort { margin-top: -12px; }
.iec-listing .iec-sort {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    margin: 0 0 10px;
    background: #F3EBDD;
    border: 1px solid var(--iec-line);
    border-radius: 999px;
    font-family: var(--iec-sans);
}
.iec-listing .iec-sort__opt {
    display: inline-block;
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--iec-muted);
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
}
.iec-listing .iec-sort__opt:hover { color: var(--iec-ink); text-decoration: none; }
.iec-listing .iec-sort__opt:focus-visible { outline: 2px solid #1A7A72; outline-offset: 2px; }
.iec-listing .iec-sort__opt.is-on {
    background: #FFFDF9;
    color: #145F59;
    box-shadow: 0 1px 3px rgba(42,31,29,.12);
}
.iec-listing .iec-sort__note {
    margin: 0 0 22px;
    font-size: 14px;
    color: var(--iec-muted);
}
@media (prefers-reduced-motion: reduce) {
    .iec-listing .iec-sort__opt { transition: none; }
}

/* ==========================================================================
   ROUND 28: My SWAPs / My MEETs as one page in sections (was four tabs that
   became four closed accordions on phones), compact member rows, and a
   bottom tab bar for signed-in members on phones (layouts/master.blade.php).
   ========================================================================== */
.iec-mpage .container { max-width: 960px; }
.iec-mpage h3.w3_special { margin-bottom: 4px; }
.iec-mpage__intro { margin: 0 0 24px; font-size: 15px; color: var(--iec-muted); text-align: center; }

.iec-msec {
    margin: 0 0 16px;
    padding: 18px 20px 20px;
    background: var(--iec-paper);
    border: 1px solid var(--iec-line);
    border-radius: var(--iec-r-card);
}
.iec-msec--action { border-color: rgba(26, 122, 114, .35); box-shadow: 0 6px 20px -12px rgba(26, 122, 114, .35); }
.iec-msec__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-family: var(--iec-sans);
}
.iec-msec .iec-msec__title {
    margin: 0;
    font-family: var(--iec-sans);
    font-size: 17px;
    font-weight: 500;
    font-style: normal;
    line-height: 1.3;
    letter-spacing: 0;
    text-transform: none;
    color: var(--iec-ink);
}
.iec-msec--action .iec-msec__title { color: var(--iec-maroon); }
.iec-msec .iec-msec__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 22px;
    padding: 0 8px;
    font-size: 13px;
    font-weight: 500;
    font-style: normal;
    color: var(--iec-teal-deep);
    background: var(--iec-teal-soft);
    border-radius: 999px;
}
.iec-msec--action .iec-msec__count { color: #fff; background: var(--iec-maroon); }
.iec-msec__head .badge { margin: 0; background: var(--iec-maroon); }
.iec-msec__hint, .iec-msec__empty { margin: 6px 0 14px; font-size: 14px; line-height: 1.5; color: var(--iec-muted); }
.iec-msec__empty { margin-bottom: 0; }
.iec-mpage .iec-msec p.iec-msec__sub { margin: 16px 0 8px; font-size: 13px; font-weight: 500; letter-spacing: .02em; color: var(--iec-muted); }

/* folded sections (Sent, Declined) */
.iec-msec--fold { padding: 0; }
.iec-msec--fold > summary {
    padding: 16px 20px;
    cursor: pointer;
    list-style: none;
    border-radius: var(--iec-r-card);
}
.iec-msec--fold > summary::-webkit-details-marker { display: none; }
.iec-msec--fold > summary::after {
    content: "";
    width: 9px;
    height: 9px;
    margin: -4px 4px 0 auto;
    border-right: 2px solid var(--iec-muted);
    border-bottom: 2px solid var(--iec-muted);
    transform: rotate(45deg);
    transition: transform .2s var(--iec-ease-out);
}
.iec-msec--fold[open] > summary::after { margin-top: 4px; transform: rotate(-135deg); }
.iec-msec--fold > summary:hover .iec-msec__title { color: var(--iec-maroon); }
.iec-msec--fold > summary:focus-visible { outline: 2px solid var(--iec-teal); outline-offset: 2px; }
.iec-msec--fold > :not(summary) { margin-left: 20px; margin-right: 20px; }
.iec-msec--fold > .iec-mlist:last-child { margin-bottom: 20px; }
.iec-mpage .iec-msec--fold > summary + p.iec-msec__sub { margin-top: 0; }
.iec-mpage .iec-msec--fold > p.iec-msec__sub { margin-left: 20px; margin-right: 20px; }

/* rows */
.iec-mlist {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.iec-mrow {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid var(--iec-line);
    border-radius: 14px;
    transition: border-color .16s ease, box-shadow .16s ease;
}
.iec-mrow:has(.iec-mrow__btn):hover { border-color: #D6C6AD; box-shadow: 0 6px 18px -10px rgba(42, 31, 29, .25); }
.iec-mrow.is-new { border-color: rgba(26, 122, 114, .4); }
.iec-mrow__av {
    flex: none;
    width: 52px;
    height: 52px;
    object-fit: cover;
    background: var(--iec-sand);
    border-radius: 50%;
}
.iec-mrow__body { flex: 1; min-width: 0; }
.iec-mrow p { margin: 0; }
.iec-mrow__lead { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 500; line-height: 1.3; color: var(--iec-ink); }
.iec-mrow__new {
    padding: 1px 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .03em;
    color: #fff;
    background: var(--iec-maroon);
    border-radius: 999px;
}
.iec-mrow__meta { display: flex; flex-wrap: wrap; gap: 0 6px; margin-top: 2px !important; font-size: 14px; line-height: 1.4; color: var(--iec-muted); }
.iec-mrow__meta > span { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iec-mrow__meta .iec-meta__town { font-weight: 500; color: var(--iec-ink); }
.iec-mrow__meta .iec-meta__town + .iec-meta__job::before { content: "\00B7"; margin-right: 6px; color: var(--iec-muted); }
.iec-mrow__sub { margin-top: 2px !important; font-size: 13px; color: var(--iec-muted); }
.iec-mrow__btn {
    flex: none;
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--iec-teal-deep);
    background: var(--iec-teal-soft);
    border-radius: var(--iec-r-control);
    text-decoration: none !important;
    transition: background-color .16s ease, color .16s ease, transform .12s var(--iec-ease-out);
}
.iec-mrow__btn::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }   /* whole row is the tap target */
.iec-mrow__btn:hover, .iec-mrow__btn:focus { color: #fff; background: var(--iec-teal); }
.iec-mrow__btn.is-primary { color: #fff; background: var(--iec-maroon); }
.iec-mrow__btn.is-primary:hover, .iec-mrow__btn.is-primary:focus { background: var(--iec-maroon-deep); }
.iec-mrow__btn:focus-visible { outline: none; }
.iec-mrow__btn:focus-visible::after { outline: 2px solid var(--iec-teal); outline-offset: 2px; }
.iec-mrow__btn:active { transform: scale(.97); }

/* nothing at all yet */
.iec-mempty { margin: 0 auto 16px; max-width: 520px; padding: 32px 24px; text-align: center; background: var(--iec-paper); border: 1px solid var(--iec-line); border-radius: var(--iec-r-card); }
.iec-mempty p { margin: 0 0 16px; color: var(--iec-muted); }
.iec-mempty .iec-mempty__title { margin-bottom: 6px; font-family: var(--iec-serif); font-size: 22px; color: var(--iec-ink); }
.iec-mempty__btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; color: #fff !important; background: var(--iec-maroon); border-radius: var(--iec-r-control); text-decoration: none !important; }
.iec-mempty__btn:hover, .iec-mempty__btn:focus { background: var(--iec-maroon-deep); }

@media (max-width: 767px) {
    .iec-mpage__intro { margin-bottom: 16px; font-size: 14px; }
    .iec-msec { padding: 14px 14px 16px; border-radius: 14px; }
    .iec-msec--fold { padding: 0; }
    .iec-msec--fold > summary { padding: 14px; }
    .iec-msec--fold > :not(summary) { margin-left: 14px; margin-right: 14px; }
    .iec-msec--fold > .iec-mlist:last-child { margin-bottom: 14px; }
    .iec-mpage .iec-msec--fold > p.iec-msec__sub { margin-left: 14px; margin-right: 14px; }
    .iec-mrow { gap: 12px; padding: 10px 12px; }
    .iec-mrow__av { width: 44px; height: 44px; }
    .iec-mrow__lead { font-size: 15px; }
    .iec-mrow__btn { padding: 0 12px; font-size: 13px; }
}

/* ---- bottom tab bar (phones) ---- */
.iec-tabbar { display: none; }
@media (max-width: 767px) {
    .iec-tabbar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1020;
        display: flex;
        padding: 4px 4px env(safe-area-inset-bottom);
        background: var(--iec-paper);
        border-top: 1px solid var(--iec-line);
        box-shadow: 0 -6px 18px -12px rgba(42, 31, 29, .25);
    }
    .iec-tabbar__item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        min-width: 0;
        min-height: 56px;
        padding: 6px 2px 4px;
        font-size: 11.5px;
        font-weight: 500;
        line-height: 1.2;
        color: var(--iec-muted) !important;
        text-decoration: none !important;
        border-radius: 12px;
        -webkit-tap-highlight-color: transparent;
    }
    .iec-tabbar__item.is-active { color: var(--iec-maroon) !important; }
    .iec-tabbar__item.is-active .iec-tabbar__icon { background: #F3E6E3; }
    .iec-tabbar__item:focus-visible { outline: 2px solid var(--iec-teal); outline-offset: -2px; }
    .iec-tabbar__icon {
        position: relative;
        display: grid;
        place-items: center;
        width: 52px;
        height: 30px;
        border-radius: 999px;
        transition: background-color .16s ease;
    }
    .iec-tabbar__dot {
        position: absolute;
        top: -2px;
        left: 30px;
        min-width: 18px;
        height: 18px;
        padding: 0 5px;
        font-size: 11px;
        font-weight: 600;
        line-height: 18px;
        text-align: center;
        color: #fff;
        background: var(--iec-maroon);
        border: 2px solid var(--iec-paper);
        border-radius: 999px;
        box-sizing: content-box;
    }
    body.iec-has-tabbar { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
    body.iec-has-tabbar .iec-install { bottom: calc(76px + env(safe-area-inset-bottom)); }
    /* the hamburger no longer needs its own copies of these links or the total badge */
    body.iec-has-tabbar header .navbar-toggle .badge { display: none; }
    body.iec-has-tabbar header .nav_1 > li:has(> a[href$="/my-matches"]),
    body.iec-has-tabbar header .nav_1 > li:has(> a[href$="/meetings"]),
    body.iec-has-tabbar header .nav_1 > li:has(> a[href$="/starred-profiles"]) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .iec-msec--fold > summary::after, .iec-mrow, .iec-mrow__btn, .iec-tabbar__icon { transition: none; }
    .iec-mrow__btn:active { transform: none; }
}

/* Round 30: "Get the app" links (menu, footer) and the My Profile card show on phones and tablets only.
   Laptops and desktops (a mouse or trackpad as the main pointer) don't get them. */
@media (hover: hover) and (pointer: fine) {
    .iec-link-getapp, .iec-getapp { display: none !important; }
}

/* Round 33: "We've filled in your last search. Clear" note above the search button
   (added by searchScript.js when the form is refilled from this browser). */
.iec-last-search {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    grid-column: 1 / -1;          /* full width inside the homepage's two-column form grid */
    margin: 0 0 12px;
    padding: 8px 12px;
    border-radius: var(--iec-r-control, 10px);
    background: var(--iec-teal-soft, #E1EFEC);
    color: var(--iec-teal-deep, #145F59);
    font-family: var(--iec-sans);
    font-size: 14px;
    line-height: 1.4;
    text-align: left;
}
.iec-last-search__clear {
    padding: 2px 0;
    border: 0;
    background: none;
    color: var(--iec-teal-deep, #145F59);
    font: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}
.iec-last-search__clear:hover { color: var(--iec-ink, #2A1F1D); }
.iec-last-search__clear:focus-visible {
    outline: 2px solid var(--iec-teal, #1A7A72);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ==========================================================================
   Round 35 (2026-11-12): Essential details + Upgrade (complete profile) forms
   Grouped sections, visible hints, photo card, progress steps, price box.
   ========================================================================== */
.iec-form .iec-form__eyebrow {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--iec-teal-deep, #145F59);
}
.iec-form p.iec-form__lead { margin: 0 0 6px; font-size: 15px; line-height: 1.55; }
.iec-form p.iec-form__note { margin: 10px auto 0; max-width: 260px; font-size: 13px; line-height: 1.5; }
.iec-form--essential .iec-form__aside { text-align: center; }
.iec-form--upgrade .iec-form__eyebrow { max-width: 280px; margin-left: auto; margin-right: auto; }

/* chosen avatar + keyboard focus */
.iec-member img.avatar_img.is-chosen { border-color: var(--iec-teal); box-shadow: 0 0 0 2px var(--iec-teal-soft); }
.iec-member img.avatar_img:focus { outline: none; }
.iec-member img.avatar_img:focus-visible { outline: 2px solid var(--iec-teal); outline-offset: 2px; }

/* sections */
.iec-form fieldset.iec-fs {
    min-width: 0;
    margin: 26px 0 0;
    padding: 22px 0 0;
    border: 0;
    border-top: 1px solid var(--iec-line);
}
.iec-form fieldset.iec-fs legend.iec-fs__title {
    float: left;               /* keeps the legend inside the box, under the line */
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    font-family: var(--iec-serif);
    font-size: 20px;
    line-height: 1.3;
    color: var(--iec-ink);
}
.iec-form p.iec-fs__note { clear: both; margin: 0; padding-top: 6px; font-size: 14px; line-height: 1.5; }
.iec-form .iec-fs__grid { clear: both; display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 20px; }
@media (min-width: 768px) {
    .iec-form .iec-fs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .iec-form .iec-fs__grid > .iec-fs__full { grid-column: 1 / -1; }
}
/* label, then the box, then the hint: boxes line up across the two columns */
.iec-form .iec-fs .form-group { display: flex; flex-direction: column; min-width: 0; }
.iec-form .iec-fs .form-group > * { order: 2; }
.iec-form .iec-fs .form-group > label { order: 1; }
.iec-form .iec-fs .form-group > .iec-hint,
.iec-form .iec-fs .form-group > .iec-count { order: 3; }
.iec-form .iec-fs .form-group > .help-block { order: 4; }
.iec-form .iec-fs .iec-fs__full > .iec-hint { order: 1; }   /* long fields: guidance before you type */
.iec-form p.iec-hint { margin: 6px 0 0; font-size: 13px; line-height: 1.45; color: var(--iec-muted); }
.iec-form .iec-fs__full > p.iec-hint { margin: -2px 0 8px; }
.iec-form p.iec-count { margin: 6px 0 0; font-size: 12.5px; text-align: right; color: var(--iec-muted); font-variant-numeric: tabular-nums; }
.iec-form .iec-fs .help-block:empty { display: none; }

/* progress steps */
.iec-form ol.iec-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: iec-step;
}
.iec-form .iec-steps li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--iec-muted);
    counter-increment: iec-step;
}
.iec-form .iec-steps li::before {
    content: counter(iec-step);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 12.5px;
    font-weight: 600;
    border: 1px solid #D9CCB8;
    background: #fff;
    color: var(--iec-muted);
}
.iec-form .iec-steps li.is-done::before { content: "\2713"; border-color: transparent; background: var(--iec-teal-soft); color: var(--iec-teal-deep, #145F59); }
.iec-form .iec-steps li.is-current { color: var(--iec-ink); font-weight: 500; }
.iec-form .iec-steps li.is-current::before { border-color: transparent; background: var(--iec-maroon); color: #fff; }

/* photo card (Upgrade page) */
.iec-form .iec-photo .add_image_pre_block { position: relative; max-width: 280px; margin: 0 auto; }
.iec-form .iec-photo #add_image_pre {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--iec-r-card);
    background: var(--iec-sand);
    border: 1px solid var(--iec-line);
}
.iec-form .iec-photo #delete_uploaded_image_btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(42, 31, 29, .72);
    color: #fff;
    font-size: 16px;
    line-height: 38px;
}
.iec-form .iec-photo #delete_uploaded_image_btn:hover { background: var(--iec-maroon); }
.iec-form .iec-photo #delete_uploaded_image_btn:focus-visible { outline: 2px solid var(--iec-teal); outline-offset: 2px; }
.iec-form .iec-photo__drop { max-width: 280px; margin: 12px auto 0; }
.iec-member form.dropzone .dz-message { cursor: pointer; text-align: center; }
.iec-member .dropzone .dz-message span { display: block; }
.iec-member .dropzone .iec-dz__title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    border-radius: var(--iec-r-control);
    background: var(--iec-teal);
    color: #fff;
    font-size: 15px;
    font-weight: 500;
}
.iec-member .dropzone .iec-dz__title::before { content: "\f030"; font-family: FontAwesome; margin-right: 8px; font-weight: 400; }
.iec-member form.dropzone:hover .iec-dz__title { background: var(--iec-teal-deep, #145F59); }
.iec-member .dropzone .iec-dz__hint { display: block; margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--iec-muted); }
.iec-member form.dropzone.iec-dz--busy { pointer-events: none; }
.iec-member form.dropzone.iec-dz--busy .dz-message { opacity: .45; }
.iec-member form.dropzone.iec-dz--busy::after {
    content: "Uploading your photo\2026";
    display: block;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    color: var(--iec-teal-deep, #145F59);
}
.iec-form .iec-photo .add_image_errors { max-width: 280px; margin: 12px auto 0; font-size: 14px; text-align: left; }
.iec-form .iec-photo .add_image_errors ul { margin: 0; padding-left: 18px; }
.iec-form ul.iec-photo__tips { max-width: 280px; margin: 16px auto 0; padding: 0; list-style: none; text-align: left; }
.iec-form .iec-photo__tips li { position: relative; margin: 0 0 6px; padding-left: 22px; font-size: 13.5px; line-height: 1.45; color: var(--iec-muted); }
.iec-form .iec-photo__tips li::before { content: "\2713"; position: absolute; left: 2px; top: 0; font-weight: 600; color: var(--iec-teal); }

/* price box before payment */
.iec-form .iec-paybox {
    margin: 30px 0 0;
    padding: 22px 24px;
    border-radius: var(--iec-r-card);
    background: var(--iec-cream);
    border: 1px solid var(--iec-line);
}
.iec-form .iec-paybox__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.iec-form .iec-paybox__amount { font-family: var(--iec-serif); font-size: 32px; line-height: 1.1; color: var(--iec-maroon); }
.iec-form .iec-paybox__term { font-size: 15px; font-weight: 500; color: var(--iec-ink); }
.iec-form p.iec-paybox__text { margin: 8px 0 0; font-size: 14px; line-height: 1.55; }
.iec-form .iec-paybox__text a { color: var(--iec-teal-deep, #145F59); text-decoration: underline; text-underline-offset: 2px; }
.iec-form .iec-paybox .main_log_btn { margin-top: 18px; }

@media (max-width: 767px) {
    .iec-form fieldset.iec-fs { margin-top: 22px; padding-top: 18px; }
    .iec-form .iec-paybox { padding: 18px; }
    .iec-form ol.iec-steps { gap: 8px 14px; }
    .iec-form .iec-steps li { font-size: 13px; }
}

/* ==========================================================================
   Round 36: Reopen your account  (reopenAccount.blade.php, .iec-auth .iec-reopen)
   One centred card on the login page's styles.
   ========================================================================== */
.iec-auth .row.login-w3ls.iec-reopen { grid-template-columns: minmax(0, 1fr); max-width: 640px; margin: 0 auto; }
.iec-reopen .iec-reopen__group { margin: 22px 0 0; padding: 0; border: 0; min-width: 0; }
.iec-reopen .iec-reopen__group legend {
    margin: 0 0 10px;
    padding: 0;
    border: 0;
    font-family: var(--iec-sans);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--iec-ink);
}
.iec-reopen .iec-reopen__hint { font-size: 13px; font-weight: 400; color: var(--iec-muted); }
.iec-reopen label.iec-reopen__option {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    margin: 0 0 8px;
    padding: 10px 14px;
    font-size: 16px;
    font-weight: 400;
    color: var(--iec-ink);
    background: #fff;
    border: 1px solid #D9CCB8;
    border-radius: var(--iec-r-control);
    cursor: pointer;
    transition: border-color .15s, background-color .15s;
}
.iec-reopen label.iec-reopen__option:hover { border-color: var(--iec-teal); }
.iec-reopen label.iec-reopen__option:has(input:checked) { border-color: var(--iec-teal); background: var(--iec-teal-soft); }
.iec-reopen .iec-reopen__option input {
    flex: none;
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--iec-teal);
    cursor: pointer;
}
.iec-reopen .iec-reopen__option input:focus-visible { outline: 2px solid var(--iec-teal); outline-offset: 2px; }
.iec-reopen textarea {
    display: block;
    width: 100%;
    min-height: 96px;
    padding: 12px 14px;
    font: 16px/1.5 var(--iec-sans);
    color: var(--iec-ink);
    background: #fff;
    border: 1px solid #D9CCB8;
    border-radius: var(--iec-r-control);
    resize: vertical;
}
.iec-reopen textarea:focus { outline: 2px solid var(--iec-teal); outline-offset: 1px; border-color: var(--iec-teal); }
.iec-reopen .iec-reopen__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 12px 26px;
    font: 500 16px/1.2 var(--iec-sans);
    color: #fff;
    background: var(--iec-maroon);
    border: 1px solid var(--iec-maroon);
    border-radius: var(--iec-r-control);
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s, border-color .15s, color .15s;
}
.iec-reopen .iec-reopen__btn:hover { background: var(--iec-maroon-deep); border-color: var(--iec-maroon-deep); color: #fff; text-decoration: none; }
.iec-reopen .iec-reopen__btn:focus-visible { outline: 2px solid var(--iec-teal); outline-offset: 3px; }
.iec-reopen .iec-reopen__btn[disabled] { opacity: .6; cursor: default; }
.iec-reopen .iec-reopen__btn--quiet { color: var(--iec-teal-deep); background: transparent; border-color: var(--iec-teal); }
.iec-reopen .iec-reopen__btn--quiet:hover { color: #fff; background: var(--iec-teal); border-color: var(--iec-teal); }
.iec-reopen .iec-reopen__submit { width: 100%; margin: 24px 0 0; }
.iec-reopen .iec-reopen__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 0; }
.iec-reopen .iec-reopen__note { margin: 14px 0 0; font-size: 15px; line-height: 1.55; color: var(--iec-muted); }
.iec-reopen .iec-reopen__note--small { font-size: 14px; text-align: center; }
.iec-reopen .custom_errors { margin: 18px 0 0; }
.iec-reopen .custom_errors ul { margin: 0; padding-left: 18px; }
@media (max-width: 600px) {
    .iec-reopen .iec-reopen__actions .iec-reopen__btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .iec-reopen label.iec-reopen__option, .iec-reopen .iec-reopen__btn { transition: none; }
}

/* ==========================================================================
   Round 37: Report an issue  (reportIssue.blade.php, .iec-auth .iec-reopen .iec-issue)
   Uses the Round 36 reopen card; adds the topic select and the instant-help box.
   ========================================================================== */
.iec-issue select#issue_topic {
    display: block;
    width: 100%;
    height: 50px;
    padding: 0 14px;
    font: 16px/1.2 var(--iec-sans);
    color: var(--iec-ink);
    background-color: #fff;
    border: 1px solid #D9CCB8;
    border-radius: var(--iec-r-control);
}
.iec-issue select#issue_topic:focus { outline: 2px solid var(--iec-teal); outline-offset: 1px; border-color: var(--iec-teal); }
.iec-issue .iec-issue__help > [data-topic] {
    margin: 14px 0 4px;
    padding: 16px 18px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--iec-ink);
    background: var(--iec-teal-soft);
    border: 1px solid var(--iec-teal-line);
    border-radius: var(--iec-r-control);
}
.iec-issue .iec-issue__help > [hidden] { display: none; }
.iec-issue .iec-issue__help strong { display: block; margin: 0 0 4px; font-weight: 600; color: var(--iec-teal-deep); }
.iec-issue .iec-issue__help p { margin: 0 0 10px; font-size: 15px; line-height: 1.55; letter-spacing: 0; color: var(--iec-ink); }
.iec-issue .iec-issue__help .iec-reopen__btn { min-height: 44px; padding: 10px 20px; font-size: 15px; }
.iec-issue .iec-issue__help p.iec-issue__small { margin: 10px 0 0; font-size: 14px; color: var(--iec-muted); }
.iec-issue input[type="email"] { width: 100%; }
.iec-issue textarea#issue_issue {
    display: block;
    width: 100%;
    min-height: 120px;
    padding: 12px 14px;
    font: 16px/1.5 var(--iec-sans);
    color: var(--iec-ink);
    background: #fff;
    border: 1px solid #D9CCB8;
    border-radius: var(--iec-r-control);
    resize: vertical;
}
.iec-issue textarea#issue_issue:focus { outline: 2px solid var(--iec-teal); outline-offset: 1px; border-color: var(--iec-teal); }

/* Round 46: note above the free members' editable Essential details (inc/profileEssentialEdit) */
.iec-locked-note { margin: 0 0 18px; padding: 12px 14px; border-radius: 10px; background: #E1EFEC; color: #145F59; font-size: 14px; line-height: 1.5; }
.iec-locked-note a { color: #145F59; font-weight: 600; text-decoration: underline; }
.iec-locked-note a:focus-visible { outline: 3px solid #1A7A72; outline-offset: 2px; border-radius: 4px; }

/* Round 58 (2026-11-30): bigger header logo. The logo image has wide white margins, so it is drawn larger and the margins are pulled in. */
header .logo img { width: 220px !important; margin: -20px 0 -20px -18px; }
@media (max-width: 767px) {
    header .logo img { width: 160px !important; margin: -14px 0 -14px -13px; }
}

/* Round 58: "Wasiilah means the link" line under the homepage headline (shown on phones too) */
.iec-home .iec-hero__copy .iec-hero__link { margin: 20px 0 0 !important; font-family: var(--iec-serif); font-weight: 500; font-size: 21px; line-height: 1.4; color: var(--iec-ink, #2A1F1D); max-width: 34ch; text-wrap: balance; }
.iec-home .iec-hero__link strong { color: var(--iec-teal-deep); font-weight: 600; }
.iec-home .iec-hero__copy .iec-hero__link + .iec-hero__lede { margin-top: 14px; }
@media (max-width: 991px) {
    .iec-home .iec-hero__copy .iec-hero__link { margin: 14px auto 0 !important; }
}
@media (max-width: 767px) {
    .iec-home .iec-hero__copy .iec-hero__link { font-size: 16.5px; max-width: 30ch; }
}
@media (prefers-reduced-motion: no-preference) {
    .iec-home .iec-hero__link { animation-delay: .09s; }
}

/* ==========================================================================
   Round 59 (2026-11-30): motion from the brand video
   1. Header logo is now drawn as shapes (top-nav.blade.php), not logo.png.
      Once per visit (html.wsl-logo-in) the two people step in, the i's settle
      and the teal + terracotta threads tie the knot.
   2. App-opening intro (master.blade.php, html.wsl-intro): only in the
      installed app, once per visit, about 2.5 seconds, tap to skip.
   Both are switched on by a tiny script in header.blade.php and are skipped
   when the phone asks for reduced motion. The figures stay upright and apart.
   ========================================================================== */
.wsl-wm { font-family: Nunito, 'Arial Rounded MT Bold', Arial, sans-serif; font-weight: 800; letter-spacing: -.02em; line-height: 1; color: #2A1F1D; position: relative; display: inline-block; white-space: nowrap; }
.wsl-wm .ii { display: inline-block; position: relative; width: .172em; height: .516em; margin: 0 .029em -.0156em .047em; padding: 0; border-radius: .086em; background: currentColor; font-style: normal; vertical-align: baseline; }
.wsl-wm .ii.a { margin-right: .09em; }
.wsl-wm .ii.b { height: .423em; }
.wsl-wm .ii::before { content: ""; position: absolute; left: 50%; bottom: calc(100% + .05em); width: .19em; height: .19em; border-radius: 50%; transform: translateX(-50%); background: #1A7A72; }
.wsl-wm .ii.b::before { background: #C8664F; }
.wsl-knot { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.wsl-knot path, .wsl-kp { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.wsl-pa, .wsl-pb { transform-box: fill-box; }

/* header lockup */
header .logo .wsl-lock { display: inline-flex; align-items: center; gap: 10px; padding: 2px 0 8px; color: #2A1F1D; text-decoration: none; }
header .logo .wsl-lock:hover, header .logo .wsl-lock:focus { text-decoration: none; }
header .logo .wsl-lock:focus-visible { outline: 3px solid var(--iec-teal, #1A7A72); outline-offset: 4px; border-radius: 8px; }
header .logo .wsl-tile { display: block; width: 42px; height: 42px; flex: none; }
header .logo .wsl-wm { font-size: 33px; }
@media (max-width: 767px) {
    header .logo .wsl-lock { gap: 8px; padding-bottom: 6px; }
    header .logo .wsl-tile { width: 34px; height: 34px; }
    header .logo .wsl-wm { font-size: 26px; }
}

/* logo build, once per visit */
@keyframes wslInL { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
@keyframes wslInR { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@keyframes wslAppL { from { opacity: 0; transform: translateX(-46px); } to { opacity: 1; transform: none; } }
@keyframes wslAppR { from { opacity: 0; transform: translateX(46px); } to { opacity: 1; transform: none; } }
@keyframes wslIiL { from { opacity: 0; transform: translateX(-.3em); } to { opacity: 1; transform: none; } }
@keyframes wslIiR { from { opacity: 0; transform: translateX(.3em); } to { opacity: 1; transform: none; } }
@keyframes wslDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes wslUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes wslOut { to { opacity: 0; visibility: hidden; } }
html.wsl-logo-in header .wsl-tile .wsl-pa { animation: wslInL .7s cubic-bezier(.2,.8,.2,1) both; }
html.wsl-logo-in header .wsl-tile .wsl-pb { animation: wslInR .7s cubic-bezier(.2,.8,.2,1) .06s both; }
html.wsl-logo-in header .wsl-wm .ii.a { animation: wslIiL .5s cubic-bezier(.2,.8,.2,1) .3s both; }
html.wsl-logo-in header .wsl-wm .ii.b { animation: wslIiR .5s cubic-bezier(.2,.8,.2,1) .4s both; }
html.wsl-logo-in header .wsl-knot path { animation: wslDraw .9s ease-in-out .5s both; }

/* app-opening intro */
.wsl-intro-screen { display: none; }
html.wsl-intro .wsl-intro-screen[hidden] { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 2147483000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: #FAF6EF; cursor: pointer; animation: wslOut .45s ease 2.3s forwards; }
html.wsl-intro, html.wsl-intro body { overflow: hidden; }
.wsl-intro-mark { width: min(58vw, 230px); height: auto; }
.wsl-intro-mark .wsl-kp { stroke-width: 4; }
.wsl-intro-word { font-size: clamp(34px, 10vw, 44px); }
html.wsl-intro .wsl-intro-mark .wsl-pa { animation: wslAppL .75s cubic-bezier(.2,.8,.2,1) both; }
html.wsl-intro .wsl-intro-mark .wsl-pb { animation: wslAppR .75s cubic-bezier(.2,.8,.2,1) .08s both; }
html.wsl-intro .wsl-intro-mark .wsl-kp { animation: wslDraw .7s ease-in-out .7s both; }
html.wsl-intro .wsl-intro-word { animation: wslUp .5s cubic-bezier(.2,.8,.2,1) 1.15s both; }
@media (prefers-reduced-motion: reduce) {
    html.wsl-intro .wsl-intro-screen[hidden] { display: none; }
    html.wsl-logo-in header .wsl-tile .wsl-pa, html.wsl-logo-in header .wsl-tile .wsl-pb,
    html.wsl-logo-in header .wsl-wm .ii, html.wsl-logo-in header .wsl-knot path { animation: none; }
}

/* ==========================================================================
   Round 60 (2026-11-30): motion fixes requested by the owner
   1. Header logo: the knot loop was being cut off. An old site rule
      (svg:not(:root) { overflow: hidden }) outranks .wsl-knot, so the loop
      below the line was clipped. Force it visible.
   2. App-opening intro: one set of i's from start to finish. The phone first
      shows the app icon (two people on cream). The intro now starts with the
      same two people already in place, centred where the icon was (no fade-in
      from the sides), then they come a little closer while the thread ties
      and the name appears below.
   ========================================================================== */
header .wsl-wm svg.wsl-knot { overflow: visible !important; }

/* intro: figures centred on screen (they sit above the middle of the drawing) */
html.wsl-intro .wsl-intro-screen[hidden] { display: block; }
.wsl-intro-mark { position: absolute; left: 50%; top: 50%; width: min(58vw, 230px); transform: translate(-50%, -40.4%); overflow: visible !important; }
.wsl-intro-word { position: absolute; left: 0; right: 0; text-align: center; top: calc(50% + min(58vw, 230px) * .7 * .54 + 8px); }
@keyframes wslCloserL { from { transform: none; } to { transform: translateX(7px); } }
@keyframes wslCloserR { from { transform: none; } to { transform: translateX(-7px); } }
html.wsl-intro .wsl-intro-mark .wsl-pa { animation: wslCloserL .85s cubic-bezier(.45,0,.2,1) .2s both; }
html.wsl-intro .wsl-intro-mark .wsl-pb { animation: wslCloserR .85s cubic-bezier(.45,0,.2,1) .2s both; }
html.wsl-intro .wsl-intro-mark .wsl-kp { animation: wslDraw .75s ease-in-out .55s both; }
html.wsl-intro .wsl-intro-word { animation: wslUp .5s cubic-bezier(.2,.8,.2,1) 1.1s both; }
