/*
 * Eagles Nest — company website additions.
 *
 * These are the components the CMS pages, Help Center, Community and Careers
 * need that the base stylesheet did not already provide. Everything here is
 * built from the existing brand tokens (--en-gold, --en-ink, --en-soft,
 * --en-line …) so the new pages read as part of the same site rather than
 * something bolted on.
 */

/* ---- Breadcrumbs ------------------------------------------------------- */
.en-crumbs {
    background: var(--en-soft, #F7F6F3);
    border-bottom: 1px solid var(--en-line, #E7E5E0);
    padding: 0.7rem 0;
}
.en-crumbs ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    margin: 0;
    padding: 0;
    font-size: 0.82rem;
}
.en-crumbs li + li::before {
    content: "\F285";                       /* bi-chevron-right */
    font-family: "bootstrap-icons";
    font-size: 0.62rem;
    color: var(--en-muted, #767E88);
    margin-right: 0.5rem;
}
.en-crumbs a { color: var(--en-muted, #767E88); text-decoration: none; }
.en-crumbs a:hover { color: var(--en-gold-700, #8A6410); }
.en-crumbs li[aria-current] { color: var(--en-ink, #0E1013); font-weight: 600; }

/* ---- Cards that are entirely a link ------------------------------------ */
.en-card-link { color: inherit; transition: transform .16s ease, box-shadow .16s ease; }
.en-card-link:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(14, 16, 19, .08); color: inherit; }
.en-card-link h6 { color: var(--en-ink, #0E1013); }

/* ---- Numbered steps ------------------------------------------------------ */
.en-step-no {
    width: 40px; height: 40px; border-radius: 12px;
    display: grid; place-items: center;
    background: var(--en-gold-50, #FDF7E6);
    color: var(--en-gold-700, #8A6410);
    font-weight: 800; font-size: 1.05rem;
}

/* ---- Statistics ----------------------------------------------------------- */
.en-stat-value {
    font-size: 2.2rem; font-weight: 900; letter-spacing: -0.02em; line-height: 1.1;
    color: var(--en-gold-700, #8A6410);
}

/* ---- Accordion, in the site's palette --------------------------------------- */
.en-accordion .accordion-item {
    border: 1px solid var(--en-line, #E7E5E0);
    border-radius: 14px !important;
    margin-bottom: 0.6rem;
    overflow: hidden;
}
.en-accordion .accordion-button {
    font-weight: 650; font-size: 0.95rem;
    background: #fff; color: var(--en-ink, #0E1013);
    box-shadow: none;
}
.en-accordion .accordion-button:not(.collapsed) {
    background: var(--en-gold-50, #FDF7E6);
    color: var(--en-gold-700, #8A6410);
}
.en-accordion .accordion-button:focus { box-shadow: 0 0 0 3px rgba(217, 165, 33, .18); }

/* ---- Long-form CMS copy -------------------------------------------------------- */
.cms-prose { color: var(--en-slate, #3A4048); line-height: 1.75; font-size: 0.98rem; }
.cms-prose > :last-child { margin-bottom: 0; }
.cms-prose h2, .cms-prose h3, .cms-prose h4 {
    color: var(--en-ink, #0E1013); font-weight: 800; margin: 1.6rem 0 0.7rem;
}
.cms-prose h2 { font-size: 1.5rem; }
.cms-prose h3 { font-size: 1.2rem; }
.cms-prose h4 { font-size: 1.03rem; }
.cms-prose p { margin-bottom: 1rem; }
.cms-prose ul, .cms-prose ol { padding-left: 1.2rem; margin-bottom: 1rem; }
.cms-prose li { margin-bottom: 0.4rem; }
.cms-prose a { color: var(--en-gold-700, #8A6410); text-decoration: underline; }
.cms-prose img { max-width: 100%; height: auto; border-radius: 14px; margin: 1rem 0; }
.cms-prose blockquote {
    border-left: 3px solid var(--en-gold, #D9A521);
    padding: 0.2rem 0 0.2rem 1rem; margin: 1.2rem 0;
    color: var(--en-muted, #767E88); font-style: italic;
}
.cms-prose pre {
    background: var(--en-soft, #F7F6F3); border: 1px solid var(--en-line, #E7E5E0);
    border-radius: 12px; padding: 0.9rem 1rem; overflow-x: auto; font-size: 0.85rem;
}
.cms-prose code { font-size: 0.86em; }
.cms-prose table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.9rem; }
.cms-prose th, .cms-prose td { border: 1px solid var(--en-line, #E7E5E0); padding: 0.55rem 0.7rem; text-align: left; }
.cms-prose th { background: var(--en-soft, #F7F6F3); font-weight: 700; }

/* ---- Search bar used by the Help Center and Community --------------------------- */
.en-search {
    display: flex; align-items: center; gap: 0.5rem;
    background: #fff; border: 1px solid var(--en-line, #E7E5E0);
    border-radius: 999px; padding: 0.45rem 0.5rem 0.45rem 1rem;
    box-shadow: 0 8px 26px rgba(14, 16, 19, .06);
}
.en-search input { border: 0; outline: 0; flex: 1 1 auto; font-size: 0.95rem; background: transparent; min-width: 0; }
.en-search input:focus { box-shadow: none; }

/* ---- Small meta chips ------------------------------------------------------------- */
.en-chip {
    display: inline-flex; align-items: center; gap: 0.35rem;
    background: var(--en-soft, #F7F6F3); border: 1px solid var(--en-line, #E7E5E0);
    border-radius: 999px; padding: 0.2rem 0.65rem;
    font-size: 0.74rem; font-weight: 600; color: var(--en-slate, #3A4048);
    text-decoration: none;
}
a.en-chip:hover { background: var(--en-gold-50, #FDF7E6); color: var(--en-gold-700, #8A6410); }
.en-chip.is-gold { background: var(--en-gold-50, #FDF7E6); color: var(--en-gold-700, #8A6410); border-color: var(--en-gold-100, #F6E6BC); }
.en-chip.is-green { background: #E7F6EC; color: #1E7C41; border-color: #CBEBD6; }
.en-chip.is-muted { color: var(--en-muted, #767E88); }

/* ---- Community & Help Center list rows ---------------------------------------------- */
.en-row-card {
    display: block; background: #fff; border: 1px solid var(--en-line, #E7E5E0);
    border-radius: 16px; padding: 1.1rem 1.25rem; margin-bottom: 0.75rem;
    text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.en-row-card:hover {
    border-color: var(--en-gold-100, #F6E6BC);
    box-shadow: 0 10px 28px rgba(14, 16, 19, .06);
    transform: translateY(-2px); color: inherit;
}
.en-row-card h3, .en-row-card h6 { color: var(--en-ink, #0E1013); }

/* ---- Author line ----------------------------------------------------------------------- */
.en-avatar {
    width: 38px; height: 38px; border-radius: 50%; flex: 0 0 auto;
    display: grid; place-items: center; font-weight: 800; font-size: 0.85rem;
    background: var(--en-gold-50, #FDF7E6); color: var(--en-gold-700, #8A6410);
}
.en-avatar.is-staff { background: var(--en-ink, #0E1013); color: var(--en-gold-2, #EBC66A); }

/* ---- Community thread ------------------------------------------------------------------- */
.en-post {
    background: #fff; border: 1px solid var(--en-line, #E7E5E0);
    border-radius: 16px; padding: 1.15rem 1.25rem; margin-bottom: 1rem;
}
.en-post.is-accepted { border-color: #CBEBD6; box-shadow: 0 0 0 1px #CBEBD6 inset; }
.en-post-body { color: var(--en-slate, #3A4048); line-height: 1.7; font-size: 0.94rem; white-space: pre-wrap; }
.en-reply { margin-left: 2.6rem; border-left: 2px solid var(--en-line, #E7E5E0); padding-left: 1rem; }
@media (max-width: 575.98px) { .en-reply { margin-left: 0.75rem; padding-left: 0.75rem; } }

/* ---- Sticky sidebar for article / job pages ------------------------------------------------ */
@media (min-width: 992px) {
    .en-sticky { position: sticky; top: 96px; }
}

/* ---- Empty state ------------------------------------------------------------------------------ */
.en-empty {
    text-align: center; padding: 3rem 1.5rem;
    background: #fff; border: 1px dashed var(--en-line, #E7E5E0); border-radius: 18px;
}
.en-empty i { font-size: 2rem; color: var(--en-muted, #767E88); }
.en-empty h5 { margin: 0.75rem 0 0.4rem; font-weight: 800; color: var(--en-ink, #0E1013); }
.en-empty p { color: var(--en-muted, #767E88); font-size: 0.9rem; margin: 0 auto; max-width: 420px; }

/* ---- Respect a reduced-motion preference --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .en-card-link, .en-row-card, .en-mega-link { transition: none; }
    .en-card-link:hover, .en-row-card:hover { transform: none; }
}

/* The navbar (including its mega menus) now lives in en-navbar.css, so it is
   styled on every layout that renders the component. */

/* ---- Error pages --------------------------------------------------------- */
.en-404-code {
    font-size: clamp(5.5rem, 18vw, 11rem);
    font-weight: 900;
    line-height: .9;
    letter-spacing: -0.05em;
    margin-bottom: .5rem;
    /* The brand gold, fading out — reads as artwork rather than as text. */
    background: linear-gradient(180deg, var(--en-gold, #D8A31A) 0%, var(--en-gold-100, #FBF3DC) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* The 404 quick links reuse the mega-menu link, boxed. */
.en-quick-link {
    border: 1px solid var(--en-line, #E7E5E0);
    border-radius: 14px;
    background: #fff;
    padding: 14px 16px;
    text-decoration: none;
}
.en-quick-link:hover { border-color: var(--en-gold, #D8A31A); }

@media (max-width: 575.98px) {
    .en-404-code { font-size: 5rem; }
}
