/*!
 * True Makeup Theme — accordion page layout
 *
 * Shared stylesheet for pages built around a two-column "content +
 * sticky help sidebar" layout where the main column is a stack of
 * collapsible accordion groups. Used by the Careers and
 * Work-With-Us pages and anywhere else the same editorial pattern
 * is reused.
 *
 * The sidebar card styles are intentionally close to legal.css so
 * the two page families feel like siblings without duplicating the
 * rules — legal.css handles legal pages, this file handles everything
 * else that wants the same card rhythm.
 */

.tmt-acc-page                  { background: #fff; padding: 70px 0 80px; }
.tmt-acc-page__inner           { max-width: var(--layout-max-width, 1700px); margin: 0 auto; }

/* -------- Heading strip ----------------------------------------- */

.tmt-acc-page-hero {
    position: relative;
    overflow: hidden;
    padding: 48px 40px;
    margin-bottom: 40px;
    background: #F4F4F5;
    background-size: cover;
    background-position: center;
}
.tmt-acc-page-hero__title {
    font-family: var(--font-secondary);
    font-size: 40px;
    font-weight: 400;
    color: #000;
    margin: 0;
    text-transform: uppercase;
}
.tmt-acc-page-hero__desc {
    font-family: var(--font-primary);
    font-size: 14px;
    color: #000;
    opacity: 0.6;
    margin: 8px 0 0;
    line-height: 1.6;
}

/* -------- Two-column layout ------------------------------------- */

.tmt-acc-page-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: start;
}
@media (max-width: 1023px) {
    .tmt-acc-page-grid { grid-template-columns: 1fr; }
}

.tmt-acc-page-grid__sidebar { position: sticky; top: 120px; }

/* -------- Accordion group --------------------------------------- */

.tmt-acc-group { margin-bottom: 8px; background: #fff; }

.tmt-acc-group__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    cursor: pointer;
    background: #F4F4F5;
    border: 1px solid transparent;
    transition: border-color 0.2s, background 0.2s;
}
.tmt-acc-group__toggle:hover       { border-color: #000; }
.tmt-acc-group__toggle.is-active   { background: #000; border-color: #000; }

.tmt-acc-group__toggle h2 {
    font-family: var(--font-primary) !important;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #000;
    margin: 0;
    transition: color 0.2s;
}
.tmt-acc-group__toggle.is-active h2 { color: #fff; }

.tmt-acc-group__toggle svg              { transition: transform 0.3s; flex-shrink: 0; }
.tmt-acc-group__toggle.is-active svg    { transform: rotate(180deg); }
.tmt-acc-group__toggle.is-active svg polyline { stroke: #fff; }

.tmt-acc-group__panel              { display: none; }
.tmt-acc-group__panel.is-open      { display: block; }

/* -------- Nested items (Careers) -------------------------------- *
 * A single group can contain multiple collapsible job items. */

.tmt-acc-item              { border-bottom: 1px solid #eaeaea; }
.tmt-acc-item:last-child   { border-bottom: none; }

.tmt-acc-item__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px;
    cursor: pointer;
    transition: background 0.2s;
}
.tmt-acc-item__head:hover            { background: #F4F4F5; }
.tmt-acc-item__head p {
    font-family: var(--font-primary) !important;
    font-size: 14px;
    color: #000;
    margin: 0;
    font-weight: 400;
    line-height: 1.4;
    transition: font-weight 0.15s;
}
.tmt-acc-item__head.is-active p      { font-weight: 700; }
.tmt-acc-item__head svg              { transition: transform 0.3s; flex-shrink: 0; }
.tmt-acc-item__head.is-active svg    { transform: rotate(180deg); }

.tmt-acc-item__body {
    display: none;
    font-family: var(--font-primary) !important;
    font-size: 14px;
    color: #000;
    line-height: 1.8;
    opacity: 0.7;
    padding: 0 24px 20px;
}
.tmt-acc-item__body.is-open { display: block; }

/* -------- Flat body (Work-With-Us) ------------------------------ *
 * Groups that render a single prose block instead of nested items. */

.tmt-acc-body {
    padding: 24px 24px 28px;
    font-family: var(--font-primary) !important;
    font-size: 14px;
    color: #000;
    line-height: 1.8;
    opacity: 0.8;
}
.tmt-acc-body p              { margin: 0 0 12px; }
.tmt-acc-body p:last-child   { margin-bottom: 0; }
.tmt-acc-body strong         { font-weight: 700; opacity: 1; }
.tmt-acc-body a {
    color: #000;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* -------- Sidebar help cards ------------------------------------ *
 * BEM mirror of the legal-card rules. Kept local instead of
 * sharing legal.css so the two files stay independent and only
 * load on the pages that need them. */

.tmt-acc-card {
    padding: 40px 32px;
    text-align: center;
    margin-bottom: 8px;
    position: relative;
    overflow: hidden;
}
.tmt-acc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #554350, #B07B5F, #CC9E80, #E0BAB2, #FAE8DD, #E0BAB2, #CC9E80, #B07B5F, #554350);
    background-size: 200% 100%;
    animation: tmt-gradient-flow 4s ease infinite;
}
.tmt-acc-card--grey          { background: #F4F4F5; }
.tmt-acc-card--blush         { background: #FFF0EF; }
.tmt-acc-card--dark          { background: #000; }
.tmt-acc-card--dark h4,
.tmt-acc-card--dark h4 strong { color: #fff !important; }
.tmt-acc-card--dark p         { color: rgba(255, 255, 255, 0.6) !important; }


/* ─── Careers list (flat external-link rows) ───────────────
   Used by views/page-careers.twig. Each row is a single
   anchor that opens the third-party job ad in a new tab. */

.tmt-careers-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
}

.tmt-careers-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 28px;
    background: #F4F4F5;
    color: #000;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}
.tmt-careers-item:hover {
    background: #FFF0EF;
    transform: translateX(2px);
}
.tmt-careers-item__title {
    font-family: var(--font-secondary);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.2;
}
.tmt-careers-item__icon {
    flex-shrink: 0;
    transition: transform 0.2s;
}
.tmt-careers-item:hover .tmt-careers-item__icon {
    transform: translate(2px, -2px);
}
.tmt-careers-item--inactive {
    cursor: default;
    opacity: 0.7;
}
.tmt-careers-item--inactive:hover {
    background: #F4F4F5;
    transform: none;
}
.tmt-careers-item__note {
    font-family: var(--font-primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.5);
}

@media (max-width: 1023px) {
    .tmt-careers-item            { padding: 20px 22px; }
    .tmt-careers-item__title     { font-size: 18px; }
}


.tmt-acc-card h4 {
    font-family: var(--font-secondary);
    font-size: 20px;
    font-weight: 400;
    margin: 0 0 8px;
}
.tmt-acc-card p {
    font-family: var(--font-primary);
    font-size: 13px;
    color: #000;
    opacity: 0.6;
    margin: 0 0 24px;
    line-height: 1.5;
}

.tmt-acc-cta {
    display: inline-block;
    background: #000;
    color: #fff;
    border: 1px solid #000;
    padding: 14px 36px;
    font-family: var(--font-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.tmt-acc-cta:hover              { background: #FFF0EF; color: #000; border-color: #FFF0EF; }
.tmt-acc-cta--outline           { background: transparent; color: #000; }
.tmt-acc-cta--outline:hover     { background: #FFF0EF; color: #000; border-color: #FFF0EF; }
.tmt-acc-cta--inverse           { background: #fff; color: #000; border-color: #fff; }
.tmt-acc-cta--inverse:hover     { background: #FFF0EF; color: #000; border-color: #FFF0EF; }

/* -------- Empty state ------------------------------------------- */

.tmt-acc-empty {
    background: #F4F4F5;
    padding: 48px 32px;
    text-align: center;
}
.tmt-acc-empty h3 {
    font-family: var(--font-secondary);
    font-size: 24px;
    color: #000;
    margin: 0 0 12px;
    font-weight: 400;
}
.tmt-acc-empty p {
    font-family: var(--font-primary);
    font-size: 14px;
    color: #000;
    opacity: 0.6;
    margin: 0 0 24px;
    line-height: 1.6;
}
