/* ── Reset & base ── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #f4f7fb;
    color: #14212f;
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
    overflow-x: hidden;
}

a {
    color: #1668dc;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

p {
    margin: 0;
}

/* ── Font stack (Manrope via system fallback) ── */
@supports (font-variation-settings: normal) {
    body {
        font-family: 'Manrope', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    }
}

/* ── Scrollbar hide ── */
[data-scroll] {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

[data-scroll]::-webkit-scrollbar {
    display: none;
}

/* ── Layout ── */
.app {
    max-width: 1440px;
    margin: 0 auto;
    padding: 28px 24px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 296px;
    gap: 28px;
    align-items: start;
}

.main-col {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

/* ── Sticky header (mobile) ── */
.sticky-header {
    display: none;
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid #e6ecf4;
    flex-direction: column;
}

.sticky-header .top-row {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px 16px 10px;
}

.sticky-header .top-row .logo-s {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #0b4ea0;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 14px;
    color: #fff;
    font-style: italic;
}

.sticky-header .top-row .logo-text {
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.14em;
    color: #0b4ea0;
}

.sticky-header .top-row .label {
    margin-left: auto;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #1668dc;
}

.sticky-header .chips {
    display: flex;
    gap: 8px;
    padding: 0 16px 12px;
    overflow-x: auto;
}

.sticky-header .chips a {
    flex: none;
    padding: 7px 13px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    background: #f2f6fc;
    color: #6b7c92;
    border: 1px solid #e3ebf6;
    transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.sticky-header .chips a.active {
    background: #1668dc;
    color: #fff;
    border-color: #1668dc;
}

.sticky-header .progress-track {
    height: 2px;
    background: #eaf0f8;
}

.sticky-header .progress-track .bar {
    height: 2px;
    background: #1668dc;
    width: 0%;
    transition: width 0.1s linear;
}

/* ── Sidebar ── */
.sidebar {
    position: sticky;
    top: 24px;
    background: #fff;
    border: 1px solid #e6ecf4;
    border-radius: 6px;
    padding: 26px 24px 30px;
}

.sidebar .label {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #1668dc;
    text-transform: uppercase;
}

.sidebar .label-line {
    display: block;
    width: 26px;
    height: 2px;
    background: #1668dc;
    margin-top: 8px;
    margin-bottom: 18px;
}

.sidebar .timeline {
    position: relative;
    padding-left: 26px;
}

.sidebar .timeline .track {
    position: absolute;
    left: 6px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: #e3ebf6;
}

.sidebar .timeline .fill {
    position: absolute;
    left: 6px;
    top: 4px;
    width: 2px;
    background: #1668dc;
    height: 0%;
    transition: height 0.15s linear;
}

.sidebar .timeline-item {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding-bottom: 46px;
    position: relative;
}

.sidebar .timeline-item:last-child {
    padding-bottom: 0;
}

.sidebar .timeline-item .dot {
    position: absolute;
    left: -26px;
    top: 3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #c9d6e8;
    background: #fff;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.sidebar .timeline-item .dot.active {
    background: #1668dc;
    border-color: #1668dc;
    box-shadow: 0 0 0 4px rgba(22, 104, 220, 0.16);
}

.sidebar .timeline-item .year {
    font-size: 17px;
    font-weight: 800;
    color: #8a99ad;
    transition: color 0.2s;
}

.sidebar .timeline-item .year.active {
    color: #1668dc;
}

.sidebar .timeline-item .title {
    font-size: 14px;
    font-weight: 700;
    color: #14212f;
    line-height: 1.35;
}

.sidebar .timeline-item .desc {
    font-size: 11.5px;
    line-height: 1.75;
    color: #7b8b9f;
}

/* ── Sections ── */
.section-card {
    background: #fff;
    border: 1px solid #e6ecf4;
    border-radius: 6px;
    padding: 34px 40px 30px;
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1fr);
    gap: 26px 30px;
    scroll-margin-top: 20px;
}

.section-card .era-label {
    font-size: 62px;
    font-weight: 800;
    line-height: 0.9;
    color: #dbe6f6;
    letter-spacing: -0.03em;
}

.section-card .content {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.section-card .content h2 {
    margin: 0;
    font-size: 25px;
    line-height: 1.28;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.section-card .content p {
    font-size: 13.5px;
    line-height: 1.95;
    color: #4a5b70;
    text-wrap: pretty;
}

.section-card .content p.strong {
    color: #14212f;
    font-weight: 600;
}

.section-card .media-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-content: start;
}

.section-card .media-grid .placeholder {
    position: relative;
    min-height: 172px;
    border-radius: 4px;
    background: #eef2f7;
    background-image: repeating-linear-gradient(135deg, #e3e9f2 0 8px, #eef2f7 8px 16px);
    display: flex;
    align-items: flex-end;
    padding: 10px;
    font: 11px/1.3 ui-monospace, Menlo, monospace;
    color: #7c8ca3;
}

.section-card .media-grid .placeholder.tall {
    grid-row: 1 / 3;
    min-height: 300px;
}

.section-card .media-grid .placeholder.small {
    min-height: 158px;
}

.section-card .media-grid .placeholder.med {
    min-height: 172px;
}

.section-card .media-single {
    position: relative;
    min-height: 200px;
    border-radius: 4px;
    background: #eef2f7;
    background-image: repeating-linear-gradient(135deg, #e3e9f2 0 8px, #eef2f7 8px 16px);
    display: flex;
    align-items: flex-end;
    padding: 10px;
    font: 11px/1.3 ui-monospace, Menlo, monospace;
    color: #7c8ca3;
}

.section-card .media-single.tall {
    min-height: 220px;
}

.section-card .info-box {
    grid-column: 1 / 3;
    background: #eef4fd;
    border-radius: 6px;
    padding: 20px 24px 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.section-card .info-box .label {
    font-size: 14px;
    font-weight: 700;
    color: #1668dc;
}

.section-card .info-box .row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
}

.section-card .info-box .row.three {
    grid-template-columns: repeat(3, 1fr);
}

.section-card .info-box .item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-card .info-box .item .icon {
    flex: none;
}

.section-card .info-box .item span {
    font-size: 12.5px;
    line-height: 1.6;
    color: #5a6b80;
}

.section-card .quote {
    grid-column: 3 / 4;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.section-card .quote .mark {
    font-size: 34px;
    line-height: 0.7;
    font-weight: 800;
    color: #9dbdea;
}

.section-card .quote p {
    font-size: 14px;
    line-height: 1.75;
    font-weight: 600;
    color: #1668dc;
    text-wrap: pretty;
}

/* ── Hero ── */
.hero {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    background: linear-gradient(105deg, #03204d 0%, #052f6b 42%, #0a3f8c 62%, #0e4f9e 100%);
    min-height: 470px;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.hero.hero-image {
    display: block;
    min-height: 0;
    background: none;
}

.hero.hero-image > img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.hero .pattern {
    position: absolute;
    inset: 0 0 0 46%;
    background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0 10px, rgba(255, 255, 255, 0.02) 10px 20px);
    mask-image: linear-gradient(90deg, transparent 0, #000 22%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%);
}

.hero .credit {
    position: absolute;
    right: 24px;
    bottom: 18px;
    font: 11px/1.3 ui-monospace, Menlo, monospace;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.04em;
}

.hero .content {
    position: relative;
    padding: 34px 40px 44px;
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.hero .brand {
    display: flex;
    align-items: center;
    gap: 11px;
}

.hero .brand .s {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 17px;
    color: #0b4ea0;
    font-style: italic;
}

.hero .brand .name {
    font-weight: 800;
    font-size: 19px;
    letter-spacing: 0.16em;
    color: #fff;
}

.hero .title-block {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-top: 14px;
}

.hero .title-block .num {
    font-size: 128px;
    line-height: 0.82;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.04em;
}

.hero .title-block .sub {
    font-size: 40px;
    line-height: 1.18;
    font-weight: 500;
    color: #fff;
    padding-top: 26px;
    letter-spacing: -0.01em;
}

.hero .title-block .sub strong {
    font-weight: 700;
}

.hero .content p {
    font-size: 16px;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.88);
    max-width: 460px;
    text-wrap: pretty;
}

/* ── Footer banner ── */
.footer-banner {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    background: linear-gradient(100deg, #03204d 0%, #063272 45%, #0b4693 100%);
    padding: 32px 40px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
    gap: 34px;
    align-items: center;
    margin-bottom: 28px;
}

.footer-banner .pattern {
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.05) 0 12px, rgba(255, 255, 255, 0) 12px 26px);
}

.footer-banner .left {
    position: relative;
    display: flex;
    gap: 18px;
    align-items: center;
}

.footer-banner .left .bar {
    width: 3px;
    align-self: stretch;
    background: #3f8ef7;
    border-radius: 2px;
}

.footer-banner .left .text {
    font-size: 26px;
    line-height: 1.35;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
}

.footer-banner .mid {
    position: relative;
    font-size: 12.5px;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.82);
    text-wrap: pretty;
    border-left: 1px solid rgba(255, 255, 255, 0.22);
    padding-left: 26px;
}

.footer-banner .brand {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-banner .brand .s {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 19px;
    color: #0b4ea0;
    font-style: italic;
}

.footer-banner .brand .name {
    font-weight: 800;
    font-size: 21px;
    letter-spacing: 0.14em;
    color: #fff;
}

/* ── Stats grid (today) ── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: #e6ecf4;
    border: 1px solid #e6ecf4;
    border-radius: 6px;
    overflow: hidden;
}

.stats-grid .stat {
    background: #fff;
    padding: 1px 1px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.stats-grid .stat .icon {
    flex: none;
    width: 26px;
    height: 26px;
    border: 2px solid #1668dc;
    border-radius: 4px;
}

.stats-grid .stat .icon.circle {
    border-radius: 50%;
}

.stats-grid .stat .icon.pill {
    border-radius: 12px;
}

.stats-grid .stat .icon.phone {
    border-radius: 3px;
    height: 26px;
    width: 22px;
}

.stats-grid .stat .icon.rounded {
    border-radius: 50% 4px 50% 4px;
}

.stats-grid .stat .icon.squiggle {
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
}

.stats-grid .stat .icon.filled {
    background: #1668dc;
    border: none;
    border-radius: 4px;
}

.stats-grid .stat .info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stats-grid .stat .info .val {
    font-size: 19px;
    font-weight: 800;
    color: #1668dc;
}

.stats-grid .stat .info .val.small {
    font-size: 15px;
}

.stats-grid .stat .info .lbl {
    font-size: 12px;
    line-height: 1.5;
    color: #5a6b80;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .app {
        grid-template-columns: 1fr;
        padding: 16px 12px 0;
        gap: 16px;
    }

    .sidebar {
        display: none;
    }

    .sticky-header {
        display: flex;
    }

    .section-card {
        grid-template-columns: 1fr;
        padding: 24px 18px 24px;
        gap: 16px;
        min-width: 0;
    }

    .section-card .era-label {
        font-size: 40px;
    }

    .section-card .info-box {
        grid-column: 1 / 2;
    }

    .section-card .info-box .row {
        grid-template-columns: 1fr;
    }

    .section-card .info-box .row.three {
        grid-template-columns: 1fr;
    }

    .section-card .quote {
        grid-column: 1 / 2;
    }

    .section-card .media-grid {
        grid-template-columns: 1fr 1fr;
    }

    .section-card .media-grid .placeholder.tall {
        grid-row: auto;
        min-height: 200px;
    }

    #era-today {
        grid-template-columns: 1fr !important;
    }

    .section-card .media-grid .placeholder.med {
        min-height: 140px;
    }

    .section-card .media-grid .placeholder.small {
        min-height: 130px;
    }

    .section-card .media-single.tall {
        min-height: 180px;
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero .pattern {
        display: none;
    }

    .hero .credit {
        right: 16px;
        bottom: 12px;
        font-size: 10px;
    }

    .hero .content {
        padding: 24px 18px 32px;
        gap: 18px;
    }

    .hero .title-block .num {
        font-size: 80px;
    }

    .hero .title-block .sub {
        font-size: 28px;
        padding-top: 16px;
    }

    .hero .content p {
        font-size: 14px;
        max-width: 100%;
    }

    .footer-banner {
        grid-template-columns: 1fr;
        padding: 24px 18px 28px;
        gap: 16px;
    }

    .footer-banner .mid {
        border-left: none;
        padding-left: 0;
    }

    .footer-banner .left .text {
        font-size: 20px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stats-grid .stat {
        padding: 14px 12px;
    }

    .stats-grid .stat .info .val {
        font-size: 17px;
    }

    .stats-grid .stat .info .val.small {
        font-size: 14px;
    }

    .section-card .content h2 {
        font-size: 21px;
    }

    .section-card .content p {
        font-size: 14px;
    }
}

/* ── Tablet content layout (iPad portrait and landscape) ── */
@media (min-width: 600px) and (max-width: 1024px) {
    .section-card {
        padding: 30px 28px;
        gap: 22px;
    }

    .section-card .era-label {
        font-size: 46px;
        white-space: nowrap;
    }

    .section-card .era-label br {
        display: none;
    }

    /* Image groups inside every era card */
    .section-card > .inline-style-2 {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        width: 100%;
    }

    .section-card > .inline-style-2 > * {
        min-width: 0;
    }

    .section-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .section-card .media-grid {
        gap: 12px;
    }

    .section-card .media-grid.tablet-stack {
        grid-template-columns: 1fr;
    }

    .section-card .info-box {
        padding: 22px 24px 24px;
    }

    .section-card .info-box .row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    .section-card .info-box .row.three {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .section-card .info-box .item {
        min-width: 0;
    }

    .section-card .quote {
        padding: 0 2px;
    }

    #era-today {
        gap: 26px;
    }

    #era-today .stats-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    #era-today .stats-grid .stat {
        min-width: 0;
        padding: 14px 10px;
    }
}

@media (max-width: 480px) {
    .app {
        padding: 0;
        gap: 0;
    }

    .main-col {
        gap: 0;
    }

    .section-card {
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-top: 1px solid #e6ecf4;
        padding: 20px 16px 24px;
    }

    .section-card .era-label {
        font-size: 32px;
        white-space: nowrap;
    }

    .section-card .era-label br {
        display: none;
    }

    .hero {
        border-radius: 0;
    }

    .hero .content {
        padding: 20px 16px 28px;
    }

    .hero .title-block .num {
        font-size: 64px;
    }

    .hero .title-block .sub {
        font-size: 22px;
        padding-top: 12px;
    }

    .hero .content p {
        font-size: 13.5px;
    }

    .hero .brand .name {
        font-size: 16px;
    }

    .footer-banner {
        border-radius: 0;
        margin-bottom: 0;
        padding: 20px 16px 24px;
    }

    .footer-banner .left .text {
        font-size: 18px;
    }

    .footer-banner .brand .name {
        font-size: 17px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stats-grid .stat {
        padding: 12px 10px;
        gap: 10px;
    }

    .stats-grid .stat .info .val {
        font-size: 15px;
    }

    .stats-grid .stat .info .val.small {
        font-size: 13px;
    }

    .stats-grid .stat .info .lbl {
        font-size: 11px;
    }

    .stats-grid .stat .icon {
        width: 20px;
        height: 20px;
    }

    .stats-grid .stat .icon.phone {
        height: 20px;
        width: 17px;
    }

    .section-card .media-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .section-card .media-grid .placeholder {
        min-height: 120px;
        padding: 6px;
        font-size: 10px;
    }

    .section-card .media-grid .placeholder.tall {
        min-height: 160px;
    }

    .section-card .media-grid .placeholder.med {
        min-height: 120px;
    }

    .section-card .media-single {
        min-height: 140px;
        padding: 6px;
        font-size: 10px;
    }

    .section-card .media-single.tall {
        min-height: 150px;
    }

    .section-card .info-box {
        padding: 14px 16px 16px;
        gap: 12px;
    }

    .section-card .info-box .item span {
        font-size: 12px;
    }

    #era-2005 .info-box .item,
    #era-2012 .info-box .item {
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }

    #era-2005 .info-box .item svg,
    #era-2005 .info-box .item i,
    #era-2012 .info-box .item svg,
    #era-2012 .info-box .item i {
        flex: 0 0 28px;
        width: 28px;
    }

    .section-card .content h2 {
        font-size: 19px;
    }

    .section-card .content p {
        font-size: 13.5px;
    }

    .section-card .quote p {
        font-size: 13px;
    }

    .sticky-header .top-row {
        padding: 10px 14px 8px;
    }

    .sticky-header .top-row .logo-s {
        width: 20px;
        height: 20px;
        font-size: 12px;
    }

    .sticky-header .top-row .logo-text {
        font-size: 13px;
    }

    .sticky-header .chips {
        padding: 0 14px 10px;
        gap: 6px;
    }

    .sticky-header .chips a {
        font-size: 11px;
        padding: 5px 11px;
    }
}

@media (min-width: 1025px) {
    .sticky-header {
        display: none !important;
    }
}
    

/* Styles extracted from inline HTML attributes */
.inline-style-1 { filter: invert(1); }
.inline-style-2 { display:flex;flex-direction:column;gap:10px; }
.inline-style-3 { color: #1668dc; }
.inline-style-4 { color: rgb(22, 104, 220); }
.inline-style-5 { flex-direction:column;align-items:flex-start;gap:10px; }
.inline-style-6 { align-items:flex-start;gap:12px; }
.inline-style-7 { grid-template-columns:minmax(260px,0.9fr) minmax(0,2fr); }
.inline-style-8 { display:flex;flex-direction:column;gap:16px; }
.inline-style-9 { margin:0;font-size:25px;line-height:1.28;font-weight:800;letter-spacing:-.02em; }
.inline-style-10 { font-size:13.5px;line-height:1.95;color:#4a5b70;text-wrap:pretty; }
.inline-style-11 { font-size:13.5px;line-height:1.95;color:#14212f;font-weight:600;text-wrap:pretty; }
.inline-style-12 { font-size: 12px; }
