
.auratt-history,
.auratt-history * { box-sizing: border-box; }

.auratt-history {
    --ah-navy: #061a36;
    --ah-red: #e3182d;
    --ah-bg: #f4f7fb;
    --ah-card: #ffffff;
    --ah-text: #17253b;
    --ah-muted: #637083;
    --ah-border: #dce4ef;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    color: var(--ah-text);
    font-size: 16px;
    line-height: 1.7;
}

.auratt-history a { color: #0b4f91; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.auratt-history a:hover { color: var(--ah-red); }
.auratt-history-intro {
    background: var(--ah-bg);
    border: 1px solid var(--ah-border);
    border-radius: 22px;
    padding: clamp(22px, 4vw, 46px);
    margin-bottom: 26px;
}
.auratt-history-intro__copy { max-width: 850px; }
.auratt-history-kicker,
.auratt-history-section-heading > span,
.auratt-history-conclusion > span {
    display: inline-block;
    color: var(--ah-red);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}
.auratt-history h2,
.auratt-history h3 { color: var(--ah-navy); }
.auratt-history-intro h2 {
    margin: 7px 0 10px;
    font-size: clamp(28px, 5vw, 48px);
    line-height: 1.08;
    font-weight: 850;
}
.auratt-history-lead { max-width: 820px; margin: 0; font-size: clamp(17px, 2vw, 21px); }
.auratt-history-update { color: var(--ah-muted); font-size: 14px; margin: 12px 0 0; }
.auratt-history-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 28px;
}
.auratt-history-stat {
    background: var(--ah-card);
    border: 1px solid var(--ah-border);
    border-radius: 15px;
    padding: 17px;
}
.auratt-history-stat strong { display: block; color: var(--ah-red); font-size: 24px; line-height: 1.1; }
.auratt-history-stat span { display: block; margin-top: 8px; font-size: 13px; line-height: 1.45; }
.auratt-history-method { margin-top: 22px; border-top: 1px solid var(--ah-border); padding-top: 16px; }
.auratt-history-method summary,
.auratt-history-sources summary { cursor: pointer; color: var(--ah-navy); font-weight: 800; }
.auratt-history-method p { margin-bottom: 0; }

.auratt-history-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 9px;
    margin: 0 0 24px;
    background: var(--ah-navy);
    border-radius: 15px;
    scrollbar-width: thin;
    z-index: 20;
}
.auratt-history--sticky-nav .auratt-history-nav { position: sticky; top: 12px; }
.admin-bar .auratt-history--sticky-nav .auratt-history-nav { top: 44px; }
.auratt-history-nav a {
    flex: 0 0 auto;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 750;
    padding: 8px 12px;
    border-radius: 9px;
}
.auratt-history-nav a:hover,
.auratt-history-nav a:focus { background: rgba(255,255,255,.13); color: #fff; }

.auratt-history-tools {
    padding: 20px;
    margin-bottom: 34px;
    background: #fff;
    border: 1px solid var(--ah-border);
    border-radius: 17px;
}
.auratt-history-tools label { display: block; color: var(--ah-navy); font-weight: 800; margin-bottom: 8px; }
.auratt-history-tools__row { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 9px; }
.auratt-history-tools input {
    min-width: 0;
    width: 100%;
    border: 1px solid #aebbd0;
    border-radius: 11px;
    padding: 11px 13px;
    font: inherit;
}
.auratt-history-tools button,
.auratt-history-timeline-filters button {
    border: 1px solid var(--ah-border);
    border-radius: 10px;
    background: var(--ah-bg);
    color: var(--ah-navy);
    padding: 10px 13px;
    font: inherit;
    font-size: 14px;
    font-weight: 750;
    cursor: pointer;
}
.auratt-history-tools button:hover,
.auratt-history-tools button:focus,
.auratt-history-timeline-filters button:hover,
.auratt-history-timeline-filters button:focus,
.auratt-history-timeline-filters button.is-active { background: var(--ah-navy); color: #fff; border-color: var(--ah-navy); }
.auratt-history-results { min-height: 1.4em; margin: 8px 0 0; color: var(--ah-muted); font-size: 13px; }

.auratt-history-group { scroll-margin-top: 90px; margin: 0 0 48px; }
.auratt-history-section-heading { margin-bottom: 18px; }
.auratt-history-section-heading h2,
.auratt-history-conclusion h2 { margin: 4px 0 0; font-size: clamp(25px, 4vw, 38px); line-height: 1.15; }
.auratt-history-section-intro { max-width: 800px; margin-top: -8px; }
.auratt-history-chapters { display: grid; gap: 13px; }
.auratt-history-chapter {
    background: #fff;
    border: 1px solid var(--ah-border);
    border-radius: 16px;
    overflow: clip;
}
.auratt-history-chapter[hidden] { display: none; }
.auratt-history-chapter > summary {
    display: grid;
    grid-template-columns: 115px minmax(0,1fr) 24px;
    gap: 14px;
    align-items: center;
    cursor: pointer;
    list-style: none;
    padding: 19px 21px;
}
.auratt-history-chapter > summary::-webkit-details-marker { display: none; }
.auratt-history-chapter[open] > summary { background: var(--ah-navy); color: #fff; }
.auratt-history-period {
    justify-self: start;
    color: var(--ah-red);
    background: #fff1f3;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
}
.auratt-history-chapter[open] .auratt-history-period { background: rgba(255,255,255,.12); color: #fff; }
.auratt-history-chapter-title { color: var(--ah-navy); font-size: 18px; font-weight: 850; line-height: 1.3; }
.auratt-history-chapter[open] .auratt-history-chapter-title { color: #fff; }
.auratt-history-chevron { width: 11px; height: 11px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s ease; }
.auratt-history-chapter[open] .auratt-history-chevron { transform: rotate(225deg); }
.auratt-history-chapter__content { padding: clamp(20px, 4vw, 36px); }
.auratt-history-chapter__content > p:first-child { margin-top: 0; }
.auratt-history-subsection { scroll-margin-top: 95px; margin-top: 27px; }
.auratt-history-subsection:first-child { margin-top: 0; }
.auratt-history-subsection h3 { margin: 0 0 9px; font-size: clamp(20px, 3vw, 27px); line-height: 1.25; }
.auratt-history-subsection p { margin: 0 0 14px; }
.auratt-history-cite { margin-left: 2px; font-size: .72em; }
.auratt-history-callout {
    border-left: 5px solid var(--ah-red);
    background: var(--ah-bg);
    border-radius: 0 13px 13px 0;
    padding: 17px 19px;
    margin: 22px 0;
}
.auratt-history-callout strong { color: var(--ah-navy); }
.auratt-history-callout p { margin: 5px 0 0; }
.auratt-history-figure { margin: 25px 0; }
.auratt-history-figure img { display: block; width: 100%; max-height: 660px; object-fit: contain; background: var(--ah-bg); border-radius: 15px; }
.auratt-history-figure figcaption { color: var(--ah-muted); font-size: 13px; line-height: 1.5; margin-top: 8px; }

.auratt-history-rules { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.auratt-history-rule { background: #fff; border: 1px solid var(--ah-border); border-radius: 15px; padding: 19px; }
.auratt-history-rule > span { display: inline-block; color: var(--ah-red); font-size: 13px; font-weight: 850; }
.auratt-history-rule h3 { margin: 7px 0; font-size: 18px; line-height: 1.35; }
.auratt-history-rule p { margin: 0; color: var(--ah-muted); font-size: 14px; }

.auratt-history-timeline-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.auratt-history-timeline {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(210px, 260px);
    gap: 11px;
    overflow-x: auto;
    padding: 4px 2px 14px;
    scroll-snap-type: x proximity;
}
.auratt-history-event {
    scroll-snap-align: start;
    text-align: left;
    background: #fff;
    border: 1px solid var(--ah-border);
    border-radius: 14px;
    padding: 16px;
    cursor: pointer;
    font: inherit;
    color: var(--ah-text);
}
.auratt-history-event[hidden] { display: none; }
.auratt-history-event:hover,
.auratt-history-event:focus,
.auratt-history-event.is-active { border-color: var(--ah-red); box-shadow: inset 0 0 0 1px var(--ah-red); }
.auratt-history-event span { display: block; color: var(--ah-red); font-size: 20px; font-weight: 900; }
.auratt-history-event strong { display: block; margin: 5px 0 12px; color: var(--ah-navy); font-size: 14px; line-height: 1.45; }
.auratt-history-event small { color: var(--ah-muted); }
.auratt-history-timeline-detail { margin-top: 12px; padding: 18px 21px; background: var(--ah-navy); color: #fff; border-radius: 14px; }
.auratt-history-timeline-detail span { color: #ff8b97; font-weight: 900; }
.auratt-history-timeline-detail p { margin: 4px 0 0; }

.auratt-history-conclusion { background: var(--ah-navy); color: #fff; border-radius: 20px; padding: clamp(24px, 5vw, 48px); margin: 0 0 34px; }
.auratt-history-conclusion h2 { color: #fff; }
.auratt-history-conclusion p:last-child { margin-bottom: 0; }
.auratt-history-sources { border: 1px solid var(--ah-border); border-radius: 16px; padding: 20px; background: #fff; }
.auratt-history-sources ol { margin: 20px 0 0; padding-left: 24px; }
.auratt-history-sources li { scroll-margin-top: 100px; margin-bottom: 15px; }
.auratt-history-sources li p { margin: 3px 0 0; color: var(--ah-muted); font-size: 14px; }

@media (max-width: 900px) {
    .auratt-history-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .auratt-history-rules { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 700px) {
    .auratt-history { font-size: 15px; }
    .auratt-history--sticky-nav .auratt-history-nav { top: 6px; }
    .admin-bar .auratt-history--sticky-nav .auratt-history-nav { top: 52px; }
    .auratt-history-tools__row { grid-template-columns: 1fr 1fr; }
    .auratt-history-tools input { grid-column: 1 / -1; }
    .auratt-history-chapter > summary { grid-template-columns: 1fr 22px; gap: 9px; }
    .auratt-history-period { grid-column: 1; }
    .auratt-history-chapter-title { grid-column: 1; }
    .auratt-history-chevron { grid-column: 2; grid-row: 1 / span 2; }
}
@media (max-width: 520px) {
    .auratt-history-intro { border-radius: 16px; padding: 20px; }
    .auratt-history-stats,
    .auratt-history-rules { grid-template-columns: 1fr; }
    .auratt-history-tools__row { grid-template-columns: 1fr; }
    .auratt-history-tools input { grid-column: auto; }
    .auratt-history-nav { border-radius: 12px; }
    .auratt-history-chapter > summary { padding: 16px; }
    .auratt-history-chapter__content { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .auratt-history-chevron { transition: none; }
    html:focus-within { scroll-behavior: auto; }
}
