/* Shared navigation and the 2026 homepage. Legacy inner-page styles stay in v5.css. */
:root { --ap-ink: #28213f; --ap-purple: #55447d; --ap-muted: #736c80; --ap-gold: #e9bb65; --ap-paper: #fbfaf8; --ap-header-height: 88px; --ap-section-space: 80px; --ap-section-tint: #f8f6fb; }
html { scroll-padding-top: calc(var(--ap-header-height) + 20px); }
.ap-site { margin: 0; }
.ap-shell { width: min(1240px, calc(100% - 80px)); margin-inline: auto; }
.ap-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.ap-site .ap-skip-link { position: fixed; top: -100px; left: 16px; z-index: 1200; padding: 12px 20px; background: white; color: #28213f; }
.ap-site .ap-skip-link:focus { top: 12px; }
.ap-header { position: sticky; top: 0; z-index: 1020; background: #101020; color: #f9f6ff; box-shadow: 0 2px 16px #0c081b18; font-family: 'Cabin', sans-serif; }
.ap-header-main { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.ap-header a { text-decoration: none; }
.ap-brand { display: flex; flex-shrink: 0; flex-direction: column; gap: 5px; width: 224px; }
.ap-brand img { width: 100%; height: auto; }
.ap-brand span { color: #dbb773; font-size: 17px; letter-spacing: 0; white-space: nowrap; }
.ap-navigation { display: flex; align-items: center; gap: 28px; }
.ap-main-nav { display: flex; align-items: center; gap: 23px; }
.ap-main-nav a { color: #f0edf6; font-size: 16px; padding-block: 15px; white-space: nowrap; border-bottom: 1px solid transparent; }
.ap-main-nav a:hover, .ap-main-nav a.is-active { color: #edc984; border-bottom-color: #edc984; }
.ap-header-actions { display: flex; align-items: center; gap: 15px; }
.ap-header .ap-login { display: flex; align-items: center; gap: 8px; border: 1px solid #797286; border-radius: 5px; padding: 9px 13px; font-size: 15px; color: white; white-space: nowrap; }
.ap-header .ap-login:hover { border-color: var(--ap-gold); color: var(--ap-gold); }
.ap-search { display: flex; align-items: center; position: relative; margin: 0; }
.ap-search input { width: 0; opacity: 0; padding: 0; border: 0; background: #252135; color: white; font: inherit; transition: width .2s; }
.ap-search:focus-within input, .ap-search:hover input { width: 130px; opacity: 1; padding: 8px 10px; }
.ap-search input::placeholder { color: #c8c0d5; }
.ap-search button { border: 0; background: transparent; color: #eee9f5; min-width: 38px; min-height: 42px; }
.ap-search input { position: absolute; right: 38px; border-radius: 4px; }
.ap-menu-toggle { display: none; align-items: center; gap: 9px; background: transparent; border: 1px solid #655e76; color: white; border-radius: 5px; padding: 9px 12px; }
.ap-membership { display: none; }
.ap-member-bar { background: #252038; border-top: 1px solid #ffffff12; }
.ap-member-nav { display: flex; align-items: center; gap: 28px; min-height: 42px; font-size: 15px; }
.ap-greeting { margin-right: auto; white-space: nowrap; }
.ap-greeting strong { color: #edc984; }
.ap-member-nav a { color: #e8e2f4; padding-block: 11px; white-space: nowrap; }
.ap-member-nav a:hover { color: #edc984; }
.ap-member-nav i { margin-right: 6px; }
.ap-mail-count { display: inline-block; border-radius: 20px; background: #5a4b78; min-width: 20px; text-align: center; margin-left: 3px; }
.ap-header :focus-visible, .ap-home :focus-visible { outline: 3px solid #c99232; outline-offset: 5px; }
.ap-home-page { background: #fff; }
.ap-home { color: var(--ap-ink); font-family: 'Cabin', sans-serif; font-size: 16px; line-height: 1.65; }
.ap-home section { margin: 0; padding: 0; }
.ap-home a { text-decoration: none; }
.ap-home img { max-width: 100%; }
.ap-home h1, .ap-home h2, .ap-home h3 { font-family: 'Lora', Georgia, serif; font-weight: 500; color: var(--ap-ink); }
.ap-home h2 { font-size: 30px; line-height: 1.3; margin: 0; }
.ap-home h3 { font-size: 18px; line-height: 1.4; margin: 0; }
.ap-home p { margin: 0 0 18px; }
.ap-home .ap-eyebrow { font-family: 'Cabin', sans-serif; text-transform: uppercase; letter-spacing: .1em; font-size: 14px; font-weight: 700; color: #887147; margin: 0 0 14px; }
.ap-home .ap-hero { background: #111020 url('../hpimages/home-2026/hero.webp') center center / cover no-repeat; min-height: 540px; display: flex; align-items: center; position: relative; padding: 65px 0 105px; }
.ap-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #0c0d1c55, transparent 65%); pointer-events: none; }
.ap-hero .ap-shell { position: relative; }
.ap-hero-copy { max-width: 640px; }
.ap-home .ap-hero .ap-eyebrow { color: #e5bf7e; }
.ap-home .ap-hero h1 { color: #fffaf1; font-size: clamp(36px, 3.65vw, 58px); line-height: 1.2; letter-spacing: -.035em; margin: 0 0 24px; font-weight: 400; }
.ap-hero h1 em { color: #edc577; font-style: normal; }
.ap-home .ap-hero-lead { color: #dfdce9; font-size: 19px; line-height: 1.65; margin-bottom: 30px; }
.ap-hero-actions { display: flex; align-items: center; gap: 28px; }
.ap-home .ap-button { display: inline-flex; align-items: center; justify-content: center; gap: 25px; padding: 13px 24px; border-radius: 5px; font-size: 15px; font-weight: 700; }
.ap-home .ap-button-gold { color: #2d2340; background: linear-gradient(115deg, #f2ce85, #e6b256); box-shadow: 0 5px 25px #dca95118; }
.ap-button-gold:hover { filter: brightness(1.08); }
.ap-home .ap-hero-secondary { color: #f5efff; font-size: 16px; }
.ap-hero-secondary span { margin-left: 12px; }
.ap-home .ap-hero-note { font-size: 15px; color: #b8b1c8; margin: 24px 0 0; }
.ap-hero-note span { color: #eac27a; margin-right: 7px; font-size: 18px; }
.ap-home .ap-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: -47px; position: relative; z-index: 1; }
.ap-feature { display: flex; flex-direction: column; align-items: flex-start; background: #fffefd; border: 1px solid #ebe6ed; box-shadow: 0 8px 25px #29203d08; border-radius: 9px; padding: 25px 25px 22px; transition: transform .2s, box-shadow .2s; }
.ap-feature:hover { transform: translateY(-5px); box-shadow: 0 12px 28px #29203d14; }
.ap-feature > div { min-width: 0; }
.ap-feature-icon { color: #66518c; background: #f2eef7; width: 53px; height: 53px; display: grid; place-items: center; border-radius: 50%; font-size: 27px; margin-bottom: 15px; }
.ap-home .ap-feature h2 { font-size: 23px; margin: 0 0 8px; }
.ap-home .ap-feature p { color: var(--ap-muted); font-size: 17px; margin: 0 0 17px; }
.ap-home .ap-text-link { color: var(--ap-purple); font-size: 15px; font-weight: 700; }
.ap-text-link > span { margin-left: 10px; }
.ap-home a.ap-text-link:hover { color: #916c2d; }
.ap-sky { display: flex; flex-direction: column; gap: 16px; align-items: center; padding: 28px 32px; margin-top: 40px; border: 1px solid #e5ddef; border-radius: 10px; background: #f3eef9; text-align: center; font-size: 16px; color: #55446e; }
.ap-sky-label { text-transform: uppercase; font-size: 14px; font-weight: 700; letter-spacing: .1em; white-space: nowrap; color: #806335; }
.ap-sky-label i { margin-right: 8px; font-size: 18px; }
.ap-sky a { display: flex; justify-content: center; align-items: center; gap: 12px 24px; color: #55446e; flex-wrap: wrap; max-width: 100%; }
.ap-sky a > span { max-width: 100%; overflow-wrap: anywhere; }
.ap-sky a:hover { color: #38224f; }
.ap-home .ap-section { padding-block: var(--ap-section-space); }
.ap-home .ap-section h2 { font-size: 36px; font-weight: 600; line-height: 1.25; color: #302440; }
.ap-home .ap-discover, .ap-home .ap-books { background: #fff; }
.ap-home .ap-courses { background: var(--ap-section-tint); border-block: 1px solid #eee9f3; }
.ap-home .ap-discover-grid { display: grid; grid-template-columns: .94fr 1.06fr; gap: 54px; }
.ap-about { background: #f2eef5; border: 1px solid #e8e1ed; border-radius: 9px; padding: 35px; position: relative; align-self: start; }
.ap-about-person { display: flex; align-items: center; gap: 20px; margin: 27px 0 23px; }
.ap-about-person img { border-radius: 50%; width: 88px; height: 88px; object-fit: cover; }
.ap-home .ap-about-person h3 { font-size: 18px; margin: 0 0 5px; }
.ap-about-person span { font-size: 15px; color: var(--ap-muted); }
.ap-home .ap-about > p:not(.ap-eyebrow) { color: #696171; font-size: 17px; line-height: 1.85; }
.ap-about-signature { border-top: 1px solid #ded6e7; padding-top: 22px; margin-top: 28px; font: italic 22px 'Lora', Georgia, serif; color: #796482; }
.ap-about-signature span { float: right; font: 13px 'Cabin', sans-serif; text-transform: uppercase; letter-spacing: .15em; padding-top: 8px; }
.ap-section-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 32px; }
.ap-section-heading > .ap-text-link { white-space: nowrap; padding-bottom: 4px; }
.ap-article { display: grid; grid-template-columns: 92px minmax(0, 1fr) 16px; gap: 17px; padding: 14px 0; border-bottom: 1px solid #e9e3ec; align-items: center; }
.ap-article-image { position: relative; background: #eee8f1; color: #715c91; border-radius: 5px; overflow: hidden; height: 76px; display: grid; place-items: center; }
.ap-article-image > img { width: 100%; height: 100%; object-fit: cover; }
.ap-article-image > i { font-size: 28px; }
.ap-home .ap-article h3 { font-size: 18px; margin: 3px 0 0; transition: color .2s; }
.ap-article:hover h3 { color: #937037; }
.ap-article time { color: #887f94; font-size: 13px; letter-spacing: .05em; }
.ap-home .ap-article p { font-size: 16px; color: var(--ap-muted); margin: 6px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.55; }
.ap-article-arrow { color: #8e7fa2; }
.ap-lock { position: absolute; right: 5px; top: 5px; background: #4f3f71; color: white; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; }
.ap-home .ap-more-articles { display: inline-flex; margin-top: 20px; font-size: 15px; }
.ap-home .ap-zodiac { text-align: center; background: var(--ap-section-tint); border-block: 1px solid #eee9f3; }
.ap-home .ap-section-intro { font-size: 17px; color: var(--ap-muted); margin: 16px 0 48px; }
.ap-sign-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 15px; }
.ap-sign { display: flex; flex-direction: column; align-items: center; padding: 15px; border-radius: 7px; border: 1px solid transparent; color: #534265; transition: background .2s, border-color .2s; }
.ap-sign:hover { background: #f0ebf4; border-color: #e8dfee; color: #362543; }
.ap-sign img { width: 112px; height: 112px; object-fit: contain; mix-blend-mode: multiply; }
.ap-sign span { font-size: 16px; margin-top: 10px; }
.ap-home .ap-banner-section { padding-block: 64px; background: #fff; }
.ap-banner-section .slider-pro { width: 100%; margin-inline: auto; }
.ap-banner-section .sp-image { width: 100%; }
.ap-banner-section .sp-buttons { padding-top: 17px; }
.ap-banner-section .sp-button { width: 7px; height: 7px; border-color: #756395; margin: 4px; }
.ap-banner-section .sp-selected-button { background: #756395; }
.ap-section-note { font-size: 17px; color: var(--ap-muted); }
.ap-course-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.ap-course { border: 1px solid #e8e1ed; border-radius: 8px; overflow: hidden; background: white; transition: box-shadow .2s; }
.ap-course:hover { box-shadow: 0 8px 26px #28213f14; }
.ap-course-image { position: relative; aspect-ratio: 16 / 10; background: #231b3a url('../hpimages/home-2026/hero.webp') 75% center / cover; display: grid; place-items: center; }
.ap-course-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 30%, #14102290); }
.ap-course-image img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.ap-play { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid #ffffffb3; background: #ffffff22; border-radius: 50%; color: white; font-size: 15px; z-index: 1; backdrop-filter: blur(3px); }
.ap-play i { margin-left: 3px; }
.ap-course-label { position: absolute; bottom: 12px; left: 15px; color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; z-index: 1; }
.ap-course-copy { padding: 20px; }
.ap-home .ap-course-copy h3 { font-size: 19px; margin-bottom: 10px; }
.ap-home .ap-course-copy p { color: var(--ap-muted); font-size: 17px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 16px; }
.ap-course-empty { display: flex; align-items: center; gap: 30px; border: 1px solid #e8e1ed; background: #f4eff7; border-radius: 8px; padding: 30px; }
.ap-course-empty > i { font-size: 40px; color: #746093; }
.ap-course-empty p { color: var(--ap-muted); margin-top: 10px; }

.ap-book-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 25px; }
.ap-book { text-align: center; }
.ap-book-cover { padding: 15px 10px; height: 240px; display: flex; align-items: end; justify-content: center; background: #f2eef3; border-radius: 6px; }
.ap-book-cover img { max-width: 100%; max-height: 100%; width: auto; height: auto; filter: drop-shadow(5px 6px 5px #28213f30); transition: transform .2s; }
.ap-book-cover > i { margin: auto; font-size: 50px; color: #78638f; }
.ap-book:hover img { transform: translateY(-5px) rotate(-2deg); }
.ap-home .ap-book h3 { font-family: 'Cabin', sans-serif; font-size: 16px; margin: 16px 0 5px; overflow-wrap: anywhere; hyphens: auto; }
.ap-home .ap-book .ap-text-link { font-size: 14px; }
.ap-home .ap-intro { background: #faf9f7; border-top: 1px solid #eeeae3; }
.ap-intro-content { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 48px; max-width: 1000px; }
.ap-intro-mark { font-size: 90px; line-height: 1; color: #b8a17f; }
.ap-cms-copy { max-width: 760px; color: var(--ap-muted); font-size: 17px; line-height: 1.85; margin-top: 20px; }
.ap-cms-copy img { max-width: 100%; height: auto; }
.ap-secondary-banner { text-align: center; padding-block: var(--ap-section-space); }
.ap-secondary-banner img { max-width: min(100%, 380px); height: auto; border-radius: 8px; }
.ap-site #footer { background: #19152b; min-height: 250px; padding: 18px 0 35px; border-top: 3px solid #b49a71; }
.ap-site #footer .container ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 24px; }
.ap-site #footer .container ul li { float: none; padding: 0; font-size: 14px; font-weight: 400; }
.ap-site #footer .container ul li a { color: #d9d0e6; text-decoration: none; }
.ap-site #footer .container ul li a:hover { color: #edc577; }
.ap-site #vonal9 { display: none; }
.ap-footer-social { display: flex; justify-content: center; align-items: center; gap: 20px; margin: 0 0 20px; }
.ap-footer-social a { color: #d9d0e6; text-decoration: none; }
.ap-footer-social i { font-size: 20px; }
@media (min-width: 1600px) { .ap-home .ap-hero { min-height: 620px; } }
@media (max-width: 1200px) { .ap-shell { width: calc(100% - 56px); } .ap-main-nav { gap: 16px; } .ap-navigation { gap: 18px; } .ap-brand { width: 210px; } .ap-brand span { font-size: 16px; } .ap-header-main { gap: 20px; } .ap-main-nav a { font-size: 16px; } .ap-home .ap-discover-grid { gap: 32px; } .ap-feature { padding: 23px 20px; } .ap-book-cover { height: 210px; } }
@media (max-width: 1200px) {
    .ap-header-main { min-height: 76px; }
    .ap-menu-toggle { display: flex; }
    .ap-navigation { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #171326; border-top: 1px solid #3d344e; padding: 22px 28px; max-height: calc(100dvh - var(--ap-header-height)); overflow-y: auto; box-shadow: 0 15px 25px #08051433; }
    .is-menu-open .ap-navigation { display: block; }
    .ap-main-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0 25px; }
    .ap-main-nav a { padding: 13px 0; font-size: 18px; border-bottom: 1px solid #ffffff10; }
    .ap-header-actions { margin-top: 20px; justify-content: space-between; }
    .ap-search { flex: 1; max-width: 350px; }
    .ap-search input, .ap-search:hover input, .ap-search:focus-within input { position: static; width: 100%; opacity: 1; padding: 10px 12px; }
    .ap-membership { display: inline-block; color: #c9bbdf; font-size: 15px; padding-top: 18px; }
    .ap-member-nav { gap: 20px; }
    .ap-home .ap-hero { min-height: 500px; background-position: 58% center; }
    .ap-home .ap-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ap-feature { flex-direction: row; gap: 20px; }
    .ap-feature-icon { flex-shrink: 0; margin: 0; }
    .ap-course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ap-book-grid { gap: 15px; }
    .ap-book-cover { height: 180px; }
}
@media (max-width: 760px) {
    .ap-shell { width: calc(100% - 36px); }
    .ap-header-main { min-height: 70px; }
    .ap-brand { width: 200px; }
    .ap-brand span { font-size: 15px; }
    .ap-member-nav { flex-wrap: wrap; gap: 0 18px; font-size: 14px; padding-block: 5px; }
    .ap-greeting { width: 100%; padding-top: 3px; }
    .ap-member-nav a { padding-block: 6px; }
    .ap-member-nav i { margin-right: 3px; }
    .ap-home .ap-hero { min-height: 535px; padding: 48px 0 94px; background-position: 62% center; }
    .ap-hero::before { background: linear-gradient(90deg, #0c0d1cef, #0c0d1c80); }
    .ap-home .ap-hero h1 { font-size: clamp(35px, 6.6vw, 49px); }
    .ap-home .ap-hero-lead { font-size: 16px; }
    .ap-home .ap-hero .ap-eyebrow { font-size: 13px; letter-spacing: .07em; }
    .ap-hero-actions { gap: 20px; flex-wrap: wrap; }
    .ap-home .ap-button { padding: 12px 18px; font-size: 14px; gap: 17px; }
    .ap-home .ap-features { gap: 12px; }
    .ap-feature { flex-direction: column; gap: 12px; padding: 19px 17px; }
    .ap-feature-icon { width: 42px; height: 42px; font-size: 23px; }
    .ap-home .ap-feature h2 { font-size: 21px; }
    .ap-home .ap-feature p { font-size: 16px; margin-bottom: 12px; }
    .ap-home .ap-feature .ap-text-link { font-size: 14px; }
    .ap-feature .ap-text-link > span { margin-left: 3px; }
    .ap-sky { gap: 14px; padding: 24px 20px; margin-top: 32px; }
    .ap-sky a { flex-direction: column; gap: 14px; }
    .ap-home { --ap-section-space: 52px; }
    .ap-home .ap-section h2 { font-size: 30px; }
    .ap-home .ap-section-intro { margin-bottom: 32px; }
    .ap-home .ap-discover-grid { grid-template-columns: 1fr; gap: 48px; }
    .ap-about { padding: 27px 23px; }
    .ap-home h2 { font-size: 27px; }
    .ap-section-heading { gap: 15px; flex-wrap: wrap; margin-bottom: 32px; }
    .ap-home .ap-eyebrow { font-size: 13px; }
    .ap-sign-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .ap-sign { padding: 12px 8px; }
    .ap-sign img { width: 94px; height: 94px; }
    .ap-home .ap-banner-section { padding-block: 48px; }
    .ap-course-grid { gap: 14px; }
    .ap-course-copy { padding: 15px; }
    .ap-home .ap-course-copy h3 { font-size: 18px; }
    .ap-home .ap-course-copy .ap-text-link { font-size: 14px; }
    .ap-course-copy .ap-text-link > span { margin-left: 3px; }
    .ap-course-label { font-size: 12px; left: 10px; bottom: 8px; }
    .ap-play { width: 37px; height: 37px; font-size: 12px; }
    .ap-book-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 12px; }
    .ap-book-cover { height: 190px; padding: 12px 8px; }
    .ap-intro-content { grid-template-columns: 1fr; gap: 24px; }
    .ap-intro-mark { font-size: 55px; }
    .ap-site #footer .container ul { gap: 14px 20px; }
}
@media (max-width: 400px) {
    .ap-book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ap-header-main { gap: 10px; }
    .ap-menu-toggle { padding-inline: 8px; }
    .ap-brand { width: 185px; }
    .ap-brand span { font-size: 14px; }
    .ap-main-nav { grid-template-columns: 1fr; }
    .ap-shell { width: calc(100% - 28px); }
    .ap-member-nav { gap: 0 11px; font-size: 13px; }
    .ap-member-nav i { display: none; }
    .ap-feature { padding: 16px 13px; }
    .ap-home .ap-feature h2 { font-size: 19px; }
    .ap-book-cover { height: 150px; }
    .ap-course-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .ap-home *, .ap-header * { transition: none !important; } }
