/* =========================================================================
   JHS Editorial Layer (.jhs-e)
   A second, deliberately different visual language to the .jhs-x card system:
   oversized numerals, a bento grid, sticky split reading columns and a
   horizontal step strip. Shares the same motion contract — reveal states are
   armed by jhs-experience.js only, so nothing hides without it.
   ========================================================================= */

.jhs-e {
    --ink: #001c54;
    --body: #37415c;
    --muted: #6b748d;
    --accent: #fec001;
    --line: #e3e8f2;
    --paper: #f4f2ed;
    --card: #ffffff;

    font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.jhs-e section { position: relative; }
.jhs-e-pad { padding: 96px 0; }
.jhs-e-pad-sm { padding: 64px 0; }
.jhs-e-paper { background: var(--paper); }
.jhs-e-white { background: #fff; }

/* ---- 1. Masthead: rule, kicker, oversized headline ---- */
.jhs-e-masthead { border-top: 3px solid var(--ink); padding-top: 26px; }

.jhs-e-kicker {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: var(--muted);
}

.jhs-e-kicker b { color: var(--ink); font-weight: 800; }

.jhs-e-headline {
    margin: 0;
    font-size: clamp(2.2rem, 1.3rem + 3.4vw, 4.25rem);
    line-height: 1.02;
    letter-spacing: -1.5px;
    font-weight: 800;
    color: var(--ink);
}

.jhs-e-headline em {
    font-style: normal;
    display: inline-block;
    padding: 0 .12em;
    background: linear-gradient(180deg, transparent 62%, var(--accent) 62%);
}

.jhs-e-standfirst {
    max-width: 62ch;
    margin: 26px 0 0;
    font-size: clamp(1.05rem, .96rem + .4vw, 1.3rem);
    line-height: 1.68;
    font-weight: 500;
}

.jhs-e-standfirst strong { color: var(--ink); }

/* ---- 2. Bento grid ---- */
.jhs-e-bento {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 18px;
    margin-top: 54px;
}

.jhs-e-cell {
    position: relative;
    grid-column: span 4;
    padding: 32px 30px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    transition: transform .45s cubic-bezier(.22, .61, .36, 1), box-shadow .45s ease;
}

.jhs-e-cell:hover { transform: translateY(-5px); box-shadow: 0 26px 50px rgba(0, 28, 84, .12); }
.jhs-e-cell.is-wide { grid-column: span 8; }
.jhs-e-cell.is-half { grid-column: span 6; }
.jhs-e-cell.is-full { grid-column: span 12; }
.jhs-e-cell.is-tall { grid-row: span 2; }
.jhs-e-cell.is-flat { padding: 0; }

.jhs-e-cell.is-ink { background: var(--ink); border-color: var(--ink); color: rgba(255, 255, 255, .8); }
.jhs-e-cell.is-ink h3, .jhs-e-cell.is-ink strong { color: #fff; }
.jhs-e-cell.is-accent { background: var(--accent); border-color: var(--accent); color: #4a3c00; }
.jhs-e-cell.is-accent h3, .jhs-e-cell.is-accent strong { color: var(--ink); }

.jhs-e-cell h3 { margin: 0 0 12px; font-size: 20px; font-weight: 800; color: var(--ink); }
.jhs-e-cell p { margin: 0; font-size: 15.5px; line-height: 1.75; font-weight: 500; }
.jhs-e-cell p + p { margin-top: 12px; }

.jhs-e-label {
    display: block;
    margin-bottom: 14px;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--muted);
}

.jhs-e-cell.is-ink .jhs-e-label { color: rgba(255, 255, 255, .55); }
.jhs-e-cell.is-accent .jhs-e-label { color: rgba(0, 28, 84, .6); }

/* a very large figure used as the subject of a cell */
.jhs-e-figure {
    display: block;
    font-size: clamp(2.6rem, 1.8rem + 2.6vw, 4rem);
    line-height: 1;
    letter-spacing: -2px;
    font-weight: 800;
    color: var(--ink);
}

/* ghost numeral watermark */
.jhs-e-ghost {
    position: absolute;
    right: -8px;
    bottom: -26px;
    font-size: 132px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -6px;
    color: rgba(0, 28, 84, .05);
    pointer-events: none;
}

.jhs-e-cell.is-ink .jhs-e-ghost { color: rgba(255, 255, 255, .07); }

/* ---- 3. Data table inside a cell ---- */
.jhs-e-table { width: 100%; border-collapse: collapse; }
.jhs-e-table caption {
    padding: 26px 30px 18px;
    text-align: left;
    font-size: 20px;
    font-weight: 800;
    color: var(--ink);
    caption-side: top;
}
.jhs-e-table th {
    padding: 12px 30px;
    background: var(--ink);
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: #fff;
    text-align: left;
}
.jhs-e-table td {
    padding: 12px 30px;
    border-bottom: 1px solid #eef1f7;
    font-size: 15px;
    font-weight: 600;
    color: var(--body);
}
.jhs-e-table tbody tr:last-child td { border-bottom: none; }
.jhs-e-table tbody tr { transition: background .25s ease; }
.jhs-e-table tbody tr:hover { background: #f8fafd; }
.jhs-e-table td:last-child { font-weight: 800; color: var(--ink); }

/* ---- 4. Sticky split reading column ---- */
.jhs-e-split { display: grid; grid-template-columns: 340px 1fr; gap: 72px; align-items: start; }
.jhs-e-sticky { position: sticky; top: 120px; }
.jhs-e-sticky h2 {
    margin: 0 0 16px;
    font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem);
    line-height: 1.16;
    font-weight: 800;
    color: var(--ink);
}
.jhs-e-sticky p { margin: 0; font-size: 16px; line-height: 1.75; font-weight: 500; }

.jhs-e-entry { padding: 34px 0; border-top: 1px solid var(--line); }
.jhs-e-entry:first-child { border-top: none; padding-top: 0; }
.jhs-e-entry-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 16px; }
.jhs-e-entry-head span {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.4px;
    color: var(--accent);
}
.jhs-e-entry-head h3 { margin: 0; font-size: 21px; font-weight: 800; color: var(--ink); }

.jhs-e-list { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 40px; }
.jhs-e-list.is-single { columns: 1; }
.jhs-e-list li {
    break-inside: avoid;
    position: relative;
    padding: 0 0 11px 24px;
    font-size: 15.5px;
    line-height: 1.68;
    font-weight: 500;
}
.jhs-e-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .62em;
    width: 10px;
    height: 2px;
    background: var(--accent);
}

.jhs-e-aside {
    margin-top: 18px;
    padding: 16px 20px;
    background: #fff;
    border-left: 3px solid var(--accent);
    font-size: 14.5px;
    line-height: 1.68;
    font-weight: 600;
    color: var(--muted);
}

/* ---- 5. Horizontal step strip ---- */
.jhs-e-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 48px; }
.jhs-e-step { position: relative; padding: 34px 28px 0 0; border-top: 2px solid var(--line); }
.jhs-e-step::before {
    content: "";
    position: absolute;
    left: 0;
    top: -2px;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width .9s cubic-bezier(.22, .61, .36, 1);
}
.jhs-e-step.is-in::before { width: 100%; }
.jhs-e-step span {
    display: block;
    margin-bottom: 10px;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 1.6px;
    color: var(--accent);
}
.jhs-e-step h3 { margin: 0 0 8px; font-size: 18px; font-weight: 800; color: var(--ink); }
.jhs-e-step p { margin: 0; font-size: 15px; line-height: 1.7; font-weight: 500; }

/* ---- 6. Accent closing band ---- */
.jhs-e-close {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
    padding: 46px 50px;
    background: var(--accent);
    border-radius: 22px;
}
.jhs-e-close h2 { margin: 0 0 8px; font-size: clamp(1.4rem, 1.15rem + .9vw, 1.9rem); font-weight: 800; color: var(--ink); }
.jhs-e-close p { margin: 0; font-size: 16px; line-height: 1.7; font-weight: 600; color: #4a3c00; }
.jhs-e-close-actions { display: flex; flex-wrap: wrap; gap: 12px; flex-shrink: 0; }

.jhs-e-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 14px 28px;
    border-radius: 10px;
    border: 2px solid var(--ink);
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.jhs-e-btn.is-solid { background: var(--ink); color: #fff; }
.jhs-e-btn.is-solid:hover { background: #fff; color: var(--ink); transform: translateY(-2px); }
.jhs-e-btn.is-line { background: transparent; color: var(--ink); }
.jhs-e-btn.is-line:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }

@media (max-width: 1199px) {
    .jhs-e-split { grid-template-columns: 1fr; gap: 36px; }
    .jhs-e-sticky { position: static; }
    .jhs-e-steps { grid-template-columns: repeat(2, 1fr); gap: 0 28px; }
}

@media (max-width: 991px) {
    .jhs-e-pad { padding: 62px 0; }
    .jhs-e-cell,
    .jhs-e-cell.is-wide,
    .jhs-e-cell.is-half { grid-column: span 12; }
    .jhs-e-cell.is-tall { grid-row: auto; }
    .jhs-e-close { flex-direction: column; align-items: flex-start; padding: 34px 30px; }
}

@media (max-width: 575px) {
    .jhs-e-pad { padding: 48px 0; }
    .jhs-e-list { columns: 1; }
    .jhs-e-steps { grid-template-columns: 1fr; }
    .jhs-e-step { padding-right: 0; }
    .jhs-e-table caption,
    .jhs-e-table th,
    .jhs-e-table td { padding-left: 20px; padding-right: 20px; }
    .jhs-e-close-actions { width: 100%; }
    .jhs-e-btn { flex: 1 1 100%; }
}
