/* Current AP content layer: scoped to the refreshed page. */
.ap-current-page {
    --ap-navy: #171d35;
    --ap-red: #e3121a;
    --ap-ink: #252a3a;
    --ap-muted: #687083;
    --ap-line: #dfe2e8;
    --ap-soft: #f5f6f8;
}

.ap-current-page .hero { height: 52vh; min-height: 400px; max-height: 570px; }
.ap-current-page .hero-overlay { background: linear-gradient(90deg, rgba(11,15,29,.85), rgba(11,15,29,.5) 60%, rgba(11,15,29,.22)); }
.ap-current-page .hero-content { bottom: 78px; left: max(40px, calc((100% - 1200px) / 2)); max-width: 760px; }
.ap-current-page .hero-kicker,
.ap-current-page .section-kicker { margin: 0 0 10px; color: var(--ap-red); font-size: .68rem; font-weight: 800; letter-spacing: 1.7px; line-height: 1.3; }
.ap-current-page .hero-title { margin: 0 0 16px; font-size: clamp(2rem, 3.7vw, 3.15rem); letter-spacing: 0; line-height: 1.08; }
.ap-current-page .hero-accent-line { width: 64px; height: 3px; margin-bottom: 16px; }
.ap-current-page .hero-text { max-width: 690px; color: rgba(255,255,255,.9); font-size: .92rem; line-height: 1.65; }
.ap-current-page .hero-breadcrumb { left: max(40px, calc((100% - 1200px) / 2)); }

.ap-inner { width: min(1200px, calc(100% - 80px)); margin: 0 auto; }
.ap-current-page main h2,
.ap-current-page .ap-intro h2,
.ap-current-page .ap-process h2 { margin: 0; color: var(--ap-navy); font-size: clamp(1.55rem, 2.5vw, 2.15rem); font-weight: 800; letter-spacing: 0; line-height: 1.2; }

.ap-intro { padding: 58px 0 46px; background: #fff; }
.ap-intro .intro-lead { max-width: 850px; margin: 16px 0 28px; color: #485061; font-size: .9rem; line-height: 1.75; }
.ap-scanline { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ap-line); border-bottom: 1px solid var(--ap-line); }
.ap-scanline > div { display: grid; grid-template-columns: 34px 1fr; gap: 4px 12px; min-width: 0; padding: 20px 22px; border-right: 1px solid var(--ap-line); }
.ap-scanline > div:last-child { border-right: 0; }
.ap-scanline span { grid-row: 1 / 3; color: var(--ap-red); font-size: .68rem; font-weight: 800; }
.ap-scanline strong { color: var(--ap-navy); font-size: .8rem; }
.ap-scanline small { color: var(--ap-muted); font-size: .69rem; line-height: 1.5; }

.ap-tabs-section { padding: 54px 0 60px; background: var(--ap-soft); }
.tabs-heading { margin-bottom: 27px; }
.ap-current-page .tabs-nav { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border: 1px solid var(--ap-line); border-bottom: 0; }
.ap-current-page .tab-btn { min-height: 62px; padding: 16px 20px; border: 0; border-right: 1px solid var(--ap-line); background: #e9ebef; color: #555d70; font-size: .7rem; letter-spacing: .7px; text-align: center; }
.ap-current-page .tab-btn:last-child { border-right: 0; }
.ap-current-page .tab-btn.active { background: var(--ap-navy); color: #fff; box-shadow: inset 0 3px 0 var(--ap-red); }
.ap-current-page .tab-btn:hover { background: #e1e4e9; color: var(--ap-navy); }
.ap-current-page .tab-btn.active:hover { background: var(--ap-navy); color: #fff; }
.ap-current-page .tabs-panels { padding: 34px; border: 1px solid var(--ap-line); background: #fff; }
.ap-current-page .tab-panel h3 { margin: 0 0 9px; color: var(--ap-navy); font-size: 1.08rem; letter-spacing: 0; }
.panel-heading { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; align-items: start; margin-bottom: 24px; }
.panel-heading p { margin: 0; color: #4d5567; font-size: .82rem; line-height: 1.7; }
.panel-heading.compact { margin-bottom: 18px; }

.planning-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--ap-line); }
.planning-grid article { min-width: 0; padding: 20px; border-right: 1px solid var(--ap-line); }
.planning-grid article:last-child { border-right: 0; }
.planning-grid span { display: block; margin-bottom: 12px; color: var(--ap-red); font-size: .68rem; font-weight: 800; }
.planning-grid h4 { margin: 0 0 7px; color: var(--ap-navy); font-size: .76rem; text-transform: uppercase; }
.planning-grid p { margin: 0; color: var(--ap-muted); font-size: .69rem; line-height: 1.55; }

.ap-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 20px; background: var(--ap-navy); }
.ap-facts > div { padding: 20px; border-right: 1px solid rgba(255,255,255,.18); }
.ap-facts > div:last-child { border-right: 0; }
.ap-facts strong { display: block; color: #fff; font-size: 1.25rem; line-height: 1.1; }
.ap-facts span { display: block; margin-top: 7px; color: rgba(255,255,255,.65); font-size: .65rem; font-weight: 700; text-transform: uppercase; }

.current-note { display: grid; grid-template-columns: 165px 1fr; gap: 25px; margin-top: 20px; padding: 19px 22px; border-left: 3px solid var(--ap-red); background: var(--ap-soft); }
.current-note span { color: var(--ap-red); font-size: .64rem; font-weight: 800; letter-spacing: .8px; }
.current-note p { margin: 0; color: #525a6b; font-size: .74rem; line-height: 1.6; }

.delivery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 20px; }
.delivery-grid article { padding: 18px; border: 1px solid var(--ap-line); border-top: 3px solid var(--ap-red); border-radius: 4px; }
.delivery-grid h4 { margin: 0 0 7px; color: var(--ap-navy); font-size: .75rem; }
.delivery-grid p { margin: 0; color: var(--ap-muted); font-size: .69rem; line-height: 1.55; }

.score-scale { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--ap-line); }
.score-scale > div { min-width: 0; padding: 19px 15px; border-right: 1px solid var(--ap-line); }
.score-scale > div:last-child { border-right: 0; }
.score-scale strong { display: block; color: var(--ap-red); font-size: 1.5rem; }
.score-scale span { display: block; margin-top: 5px; color: var(--ap-navy); font-size: .66rem; font-weight: 700; line-height: 1.45; }
.credit-panel { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 24px; }
.credit-panel > div { padding: 20px; border-left: 3px solid var(--ap-red); background: var(--ap-soft); }
.credit-panel h4 { margin: 0 0 8px; color: var(--ap-navy); font-size: .8rem; }
.credit-panel p { margin: 0; color: #545c6d; font-size: .73rem; line-height: 1.65; }

.course-accordions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.course-accordions details { border: 1px solid var(--ap-line); background: #fff; }
.course-accordions summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 18px; cursor: pointer; list-style: none; }
.course-accordions summary::-webkit-details-marker { display: none; }
.course-accordions summary::after { content: "+"; color: var(--ap-red); font-size: 1rem; font-weight: 800; }
.course-accordions details[open] summary::after { content: "−"; }
.course-accordions summary span { color: var(--ap-navy); font-size: .76rem; font-weight: 800; }
.course-accordions summary b { margin-left: auto; color: var(--ap-muted); font-size: .62rem; font-weight: 700; }
.course-accordions ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 18px; margin: 0; padding: 0 18px 18px; list-style: none; }
.course-accordions li { position: relative; padding-left: 12px; color: #596174; font-size: .68rem; line-height: 1.45; }
.course-accordions li::before { content: ""; position: absolute; top: .55em; left: 0; width: 4px; height: 4px; background: var(--ap-red); }

.ap-process { padding: 54px 0 58px; background: #fff; }
.process-heading { margin-bottom: 24px; }
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ap-line); border-bottom: 1px solid var(--ap-line); }
.process-steps > div { min-width: 0; padding: 21px; border-right: 1px solid var(--ap-line); }
.process-steps > div:last-child { border-right: 0; }
.process-steps span { display: block; margin-bottom: 11px; color: var(--ap-red); font-size: .67rem; font-weight: 800; }
.process-steps strong { display: block; margin-bottom: 6px; color: var(--ap-navy); font-size: .78rem; }
.process-steps p { margin: 0; color: var(--ap-muted); font-size: .69rem; line-height: 1.55; }

.official-source-band { padding: 22px 0; border-top: 1px solid var(--ap-line); border-bottom: 1px solid var(--ap-line); background: var(--ap-soft); }
.official-source-band .ap-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.official-source-band .ap-inner > span { color: var(--ap-muted); font-size: .62rem; font-weight: 800; letter-spacing: 1.2px; }
.source-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 22px; }
.source-links a { color: var(--ap-navy); font-size: .67rem; font-weight: 700; }
.source-links a:hover { color: var(--ap-red); }
.source-links b { color: var(--ap-red); }
.ap-current-page .related-section { padding-top: 54px; }

@media (max-width: 920px) {
    .panel-heading { grid-template-columns: 1fr; gap: 10px; }
    .planning-grid { grid-template-columns: repeat(2, 1fr); }
    .planning-grid article:nth-child(2) { border-right: 0; }
    .planning-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--ap-line); }
    .process-steps { grid-template-columns: repeat(2, 1fr); }
    .process-steps > div:nth-child(2) { border-right: 0; }
    .process-steps > div:nth-child(-n+2) { border-bottom: 1px solid var(--ap-line); }
}

@media (max-width: 768px) {
    .ap-current-page .hero { height: 49vh; min-height: 365px; }
    .ap-current-page .hero-content { left: 20px; right: 20px; bottom: 64px; max-width: none; }
    .ap-current-page .hero-title { font-size: 1.82rem; }
    .ap-current-page .hero-text { font-size: .79rem; line-height: 1.55; }
    .ap-current-page .hero-breadcrumb { left: 20px; }
    .ap-inner { width: calc(100% - 40px); }
    .ap-intro, .ap-tabs-section, .ap-process { padding: 44px 0; }
    .ap-scanline { grid-template-columns: 1fr; }
    .ap-scanline > div { border-right: 0; border-bottom: 1px solid var(--ap-line); }
    .ap-scanline > div:last-child { border-bottom: 0; }
    .ap-current-page .tabs-nav { grid-template-columns: 1fr; border-bottom: 1px solid var(--ap-line); }
    .ap-current-page .tab-btn { min-height: 48px; border-right: 0; border-bottom: 1px solid var(--ap-line); text-align: left; }
    .ap-current-page .tab-btn:last-child { border-bottom: 0; }
    .ap-current-page .tab-btn.active { box-shadow: inset 3px 0 0 var(--ap-red); }
    .ap-current-page .tabs-panels { padding: 24px 20px; }
    .current-note { grid-template-columns: 1fr; gap: 8px; }
    .delivery-grid, .credit-panel, .course-accordions { grid-template-columns: 1fr; }
    .score-scale { grid-template-columns: 1fr; }
    .score-scale > div { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: center; padding: 12px 15px; border-right: 0; border-bottom: 1px solid var(--ap-line); }
    .score-scale > div:last-child { border-bottom: 0; }
    .score-scale span { margin: 0; }
    .official-source-band .ap-inner { display: block; }
    .source-links { display: grid; justify-content: start; gap: 10px; margin-top: 14px; }
    .ap-current-page .side-buttons { display: none !important; }
}

@media (max-width: 520px) {
    .ap-current-page .hero-title { font-size: 1.58rem; }
    .ap-current-page .ap-intro h2,
    .ap-current-page .ap-process h2 { font-size: 1.48rem; }
    .planning-grid, .ap-facts, .process-steps { grid-template-columns: 1fr; }
    .planning-grid article,
    .planning-grid article:nth-child(2),
    .process-steps > div,
    .process-steps > div:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--ap-line); }
    .planning-grid article:last-child,
    .process-steps > div:last-child { border-bottom: 0; }
    .ap-facts > div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
    .ap-facts > div:last-child { border-bottom: 0; }
    .course-accordions ul { grid-template-columns: 1fr; }
}
