:root {
    --navy: #102033;
    --ink: #1f2937;
    --muted: #667085;
    --teal: #0f766e;
    --emerald: #047857;
    --gold: #b7791f;
    --gold-soft: #f2b84b;
    --soft: #f6f8fb;
    --line: #d9e2ec;
    --white: #ffffff;
    --font-body: "Segoe UI", Arial, Helvetica, sans-serif;
    --font-display: "Trebuchet MS", "Segoe UI", Arial, Helvetica, sans-serif;
}

/* Final public-page polish: About, Authors, Submit, Contact */
.page-hero.premium {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: 28px;
    align-items: center;
    padding: clamp(52px, 7vw, 86px) clamp(20px, 6vw, 78px);
    color: #fff;
    background:
        linear-gradient(135deg, rgba(16,32,51,.98), rgba(15,118,110,.92)),
        linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
    background-size: auto, 56px 56px;
}
.page-hero.premium h1 {
    margin: 0 0 16px;
    max-width: 900px;
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(38px, 5vw, 68px);
    line-height: 1.04;
}
.page-hero.premium p:not(.eyebrow) {
    max-width: 760px;
    color: #e6fffb;
    font-size: 20px;
}
.hero-proof-panel {
    padding: 24px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 8px;
    background: rgba(255,255,255,.1);
    box-shadow: 0 22px 60px rgba(0,0,0,.18);
}
.hero-proof-panel span {
    display: block;
    margin-bottom: 10px;
    color: var(--gold-soft);
    font-weight: 900;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: .05em;
}
.hero-proof-panel strong {
    display: block;
    color: #fff;
    font-family: var(--font-display);
    font-size: 24px;
    line-height: 1.25;
}
.hero-proof-panel a { color: #fff; }
.split-feature,
.contact-layout,
.submit-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, .75fr);
    gap: 28px;
    align-items: start;
}
.quality-card,
.submission-guide {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, #f8fafc, #fff);
    box-shadow: 0 16px 42px rgba(16,32,51,.07);
}
.quality-card strong,
.submission-guide h2 {
    display: block;
    margin: 0 0 12px;
    color: var(--navy);
    font-family: var(--font-display);
    font-size: 26px;
    line-height: 1.15;
}
.quality-card ul,
.submission-guide ol {
    margin: 0;
    padding-left: 20px;
    color: #475467;
}
.quality-card li,
.submission-guide li { margin: 8px 0; }
.section.tinted {
    background: var(--soft);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.feature-grid.compact .feature-card {
    min-height: 190px;
}
.contact-layout {
    grid-template-columns: minmax(0, .85fr) minmax(320px, 1.15fr);
}
.request-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.request-grid article {
    min-height: 150px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(16,32,51,.06);
}
.request-grid strong {
    display: block;
    margin-bottom: 8px;
    color: var(--navy);
    font-family: var(--font-display);
    font-size: 22px;
}
.request-grid span {
    display: block;
    color: #475467;
}
.submit-layout {
    grid-template-columns: minmax(280px, .55fr) minmax(0, 1fr);
}
.submission-guide {
    position: sticky;
    top: 92px;
}
.submission-guide p {
    color: #475467;
}
.enhanced-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.enhanced-form .full { grid-column: 1 / -1; }
.premium-authors {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.author-card.profile {
    min-height: 160px;
}
@media (max-width: 860px) {
    .page-hero.premium,
    .split-feature,
    .contact-layout,
    .submit-layout {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 760px) {
    .page-hero.premium,
    .split-feature,
    .contact-layout,
    .submit-layout {
        display: block;
        width: 100%;
    }
    .page-hero.premium {
        padding: 42px 18px;
    }
    .page-hero.premium h1 {
        max-width: 100%;
        font-size: clamp(32px, 10vw, 46px);
        line-height: 1.1;
    }
    .page-hero.premium p:not(.eyebrow) {
        max-width: 100%;
        font-size: 17px;
        line-height: 1.65;
    }
    .hero-proof-panel,
    .quality-card,
    .submission-guide {
        margin-top: 18px;
        padding: 18px;
    }
    .request-grid,
    .enhanced-form {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .submission-guide {
        position: static;
    }
    .premium-authors {
        grid-template-columns: 1fr;
    }
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--white);
    line-height: 1.6;
}
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--emerald); }
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    gap: 24px;
    padding: 12px clamp(18px, 5vw, 64px);
    background: rgba(255,255,255,.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}
.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--navy); min-width: 116px; }
.brand-mark {
    display: grid;
    place-items: center;
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    color: #fff;
    font-weight: 800;
    box-shadow: none;
}
.brand-logo { width: auto; height: 76px; max-width: 132px; display: block; object-fit: contain; }
.brand strong { display: block; font-family: var(--font-display); font-size: 18px; line-height: 1.1; }
.brand small { display: block; color: var(--muted); font-size: 12px; }
.nav { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--navy); font-weight: 700; }
.nav a.active { color: var(--teal); }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.menu-button { display: none; }
.menu-button span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px 0;
    border-radius: 99px;
    background: var(--navy);
}
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
    gap: 42px;
    align-items: center;
    min-height: 620px;
    padding: clamp(54px, 8vw, 96px) clamp(20px, 6vw, 78px);
    background:
        linear-gradient(135deg, rgba(16,32,51,.96), rgba(15,118,110,.9)),
        repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0, rgba(255,255,255,.08) 1px, transparent 1px, transparent 46px);
    color: #fff;
}
.eyebrow {
    margin: 0 0 10px;
    color: var(--gold);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: .04em;
}
.hero h1, .page-hero h1 {
    margin: 0 0 18px;
    max-width: 860px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.04;
    letter-spacing: 0;
}
.hero p { max-width: 720px; font-size: 20px; color: #e6fffb; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 18px;
    border-radius: 7px;
    border: 1px solid var(--teal);
    font-weight: 800;
    cursor: pointer;
}
.button.primary { background: linear-gradient(135deg, var(--teal), #0b8a72); color: #fff; box-shadow: 0 12px 26px rgba(15,118,110,.18); }
.button.secondary { border-color: rgba(255,255,255,.58); color: #fff; }
.button.tertiary { border-color: rgba(255,255,255,.28); color: #fff; background: rgba(255,255,255,.08); }
.button.light { background: #fff; color: var(--navy); border-color: #fff; }
.button.outline-dark { color: var(--navy); border-color: var(--line); background: #fff; }
.button.secondary-dark { color: var(--navy); border-color: var(--line); background: #fff; margin-bottom: 10px; }
.hero-panel {
    padding: 28px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 8px;
    background: rgba(255,255,255,.1);
    box-shadow: 0 26px 70px rgba(0,0,0,.24);
}
.panel-label { display: block; margin-bottom: 18px; font-weight: 800; }
.index-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.index-grid span {
    padding: 14px;
    border-radius: 7px;
    background: rgba(255,255,255,.16);
    font-weight: 700;
}
.section { padding: 58px clamp(20px, 6vw, 78px); }
.section.narrow { max-width: 860px; margin: 0 auto; }
.catalog-intro,
.submission-note {
    display: grid;
    gap: 14px;
    margin-bottom: 24px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(135deg, #fff, #f3f7fb);
    box-shadow: 0 12px 28px rgba(16,32,51,.05);
}
.catalog-intro {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}
.catalog-intro strong,
.submission-note strong { color: var(--navy); font-family: var(--font-display); font-size: 22px; }
.catalog-intro p,
.submission-note p { margin: 4px 0 0; color: #475467; }
.catalog-intro div:last-child {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}
.catalog-intro span {
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 999px;
    background: #e6fffb;
    color: var(--teal);
    font-weight: 800;
    font-size: 13px;
}
.rich-copy h2 { margin-top: 30px; color: var(--navy); }
.rich-copy h2:first-child { margin-top: 0; }
.rich-copy p, .rich-copy li { color: #344054; font-size: 17px; }
.rich-copy ul { padding-left: 20px; }
.section-heading { margin-bottom: 24px; }
.section-heading.centered { max-width: 860px; margin: 0 auto 30px; text-align: center; }
.section-heading.centered p:not(.eyebrow) { color: var(--muted); font-size: 17px; }
.section h2 { color: var(--navy); font-family: var(--font-display); font-size: 34px; margin: 0 0 12px; line-height: 1.12; }
.book-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}
.book-card {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 28px rgba(16,32,51,.07);
}
.cover-link {
    display: grid;
    place-items: center;
    min-height: 240px;
    background: linear-gradient(135deg, #eef4f8, #fff);
}
.cover-link img { max-width: 110px; max-height: 172px; border-radius: 5px; box-shadow: 0 12px 26px rgba(16,32,51,.18); }
.cover-placeholder {
    display: grid;
    place-items: center;
    width: 150px;
    height: 220px;
    border-radius: 5px;
    background: var(--navy);
    color: #fff;
    font-size: 38px;
    font-weight: 800;
}
.cover-placeholder.large { width: 230px; height: 330px; }
.book-card-body { padding: 22px; }
.book-card-topline {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 8px;
}
.mini-badge {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    background: #fff7e6;
    color: #9a6700;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}
.book-card h3 { margin: 0 0 8px; line-height: 1.25; font-family: var(--font-display); font-size: clamp(23px, 2.4vw, 31px); }
.book-card h3 a { color: var(--navy); }
.book-meta, .tag { color: var(--muted); font-size: 14px; }
.card-authors { margin: 0 0 16px; color: #344054; font-size: 17px; }
.card-abstract {
    max-width: 820px;
    margin: 0 0 16px;
    color: #475467;
    font-size: 16px;
}
.card-meta-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.tag {
    display: inline-flex;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 5px 9px;
}
.details-link {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 6px;
    background: var(--teal);
    color: #fff;
    font-weight: 800;
}
.details-link:hover { color: #fff; background: var(--emerald); }
.trust-band {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    padding: 42px clamp(20px, 6vw, 78px);
    background: var(--navy);
    color: #fff;
}
.trust-band p { color: #d7dee8; max-width: 760px; }
.page-hero {
    padding: 54px clamp(20px, 6vw, 78px);
    background: var(--soft);
    border-bottom: 1px solid var(--line);
}
.page-hero.compact h1 { font-family: var(--font-display); font-size: clamp(38px, 5vw, 62px); color: var(--navy); }
.page-hero p:not(.eyebrow) { max-width: 760px; color: var(--muted); font-size: 18px; }
.search-bar { display: flex; gap: 12px; margin-bottom: 26px; }
input, select, textarea {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid var(--line);
    border-radius: 7px;
    font: inherit;
}
textarea { min-height: 140px; resize: vertical; }
.form-card {
    display: grid;
    gap: 16px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(16,32,51,.07);
}
label { font-weight: 800; color: var(--navy); }
label input, label textarea, label select { margin-top: 6px; font-weight: 400; color: var(--ink); }
.honeypot { position: absolute; left: -9999px; }
.notice { padding: 14px 16px; border-radius: 7px; margin-bottom: 18px; }
.notice.success { background: #ecfdf3; color: #027a48; }
.notice.error { background: #fff1f3; color: #b42318; }
.empty-state {
    padding: 28px;
    border: 1px dashed var(--line);
    border-radius: 8px;
    color: var(--muted);
    background: var(--soft);
}
.book-detail-hero {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: clamp(28px, 5vw, 58px);
    padding: 54px clamp(20px, 6vw, 78px);
    background:
        linear-gradient(180deg, rgba(246,248,251,.92), rgba(255,255,255,.98)),
        linear-gradient(90deg, rgba(15,118,110,.07) 1px, transparent 1px);
    background-size: auto, 54px 54px;
}
.book-cover-large {
    display: grid;
    place-items: center;
    min-height: 390px;
    border-radius: 8px;
    background: radial-gradient(circle at center, rgba(15,118,110,.15), transparent 62%);
}
.book-cover-large img { max-width: 240px; border-radius: 7px; box-shadow: 0 24px 60px rgba(16,32,51,.22); }
.book-detail-hero h1 { margin: 0 0 12px; color: var(--navy); font-family: var(--font-display); font-size: clamp(36px, 4.4vw, 56px); line-height: 1.08; letter-spacing: 0; }
.subtitle, .authors-line { color: var(--muted); font-size: 18px; }
.hero-authors {
    display: grid;
    gap: 4px;
    margin: 18px 0 0;
    padding: 14px 16px;
    border-left: 4px solid var(--teal);
    background: #ffffff;
    border-radius: 0 7px 7px 0;
    box-shadow: 0 8px 22px rgba(16,32,51,.06);
}
.hero-authors strong { color: var(--navy); }
.hero-authors span { color: #344054; font-size: 18px; }
.metadata-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
    margin-top: 22px;
}
.book-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}
.metadata-grid span {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
}
.metadata-grid strong { display: block; color: var(--navy); }
.book-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    padding: 46px clamp(20px, 6vw, 78px);
}
.content-panel, .side-panel, .contact-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 24px;
}
.content-panel h2 { color: var(--navy); font-size: 26px; margin-top: 0; }
.content-panel h2:not(:first-child) { margin-top: 28px; }
.content-panel p { font-size: 17px; color: #344054; }
.side-panel { align-self: start; background: var(--soft); position: sticky; top: 92px; }
.toc-box { padding: 16px; background: var(--soft); border-radius: 7px; }
.keyword-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.keyword-list span {
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 999px;
    background: #e6fffb;
    color: var(--teal);
    font-weight: 800;
    font-size: 14px;
}
.metadata-list {
    display: grid;
    gap: 10px;
    margin: 0 0 22px;
}
.metadata-list div {
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}
.metadata-list dt {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}
.metadata-list dd {
    margin: 2px 0 0;
    color: var(--navy);
    font-weight: 700;
}
.citation-actions {
    display: grid;
    gap: 8px;
    margin: 12px 0 18px;
}
.author-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.author-card {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 14px;
    align-items: start;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
}
.author-card.profile {
    background: #fff;
    box-shadow: 0 12px 28px rgba(16,32,51,.06);
}
.author-photo, .author-initial {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--navy);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 26px;
}
.author-card span { display: block; color: var(--muted); }
.author-card small { display: block; margin-top: 6px; color: var(--teal); font-weight: 700; }
.empty-inline { padding: 16px; border: 1px dashed var(--line); border-radius: 7px; background: var(--soft); color: var(--muted); }
.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 34px clamp(20px, 6vw, 78px);
    color: #d7dee8;
    background: var(--navy);
}
.site-footer a { color: #99f6e4; }
.footer-brand { display: flex; gap: 18px; max-width: 760px; align-items: center; }
.footer-logo { width: auto; height: 108px; max-width: 172px; flex: 0 0 auto; padding: 8px; border-radius: 8px; background: #fff; object-fit: contain; }
.legal-name { margin-top: 10px; color: #b8c4d6; font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; }
.install-page { display: grid; place-items: center; min-height: 100vh; background: var(--soft); }
.install-card { width: min(760px, calc(100% - 32px)); padding: 28px; border-radius: 8px; background: #fff; box-shadow: 0 18px 60px rgba(16,32,51,.14); }
.install-card form { display: grid; gap: 14px; }
.help-text { color: var(--muted); font-size: 14px; }
@media (max-width: 860px) {
    .trust-band, .site-footer { align-items: flex-start; flex-direction: column; }
    .site-header { position: relative; }
    .hero, .home-hero, .home-intro, .featured-book-section, .metadata-band, .book-detail-hero, .book-layout, .book-card { grid-template-columns: 1fr; }
    .search-bar { flex-direction: column; }
    .cover-link { min-height: 220px; }
    .cover-link img { max-width: 120px; max-height: 180px; }
    .catalog-intro { grid-template-columns: 1fr; }
    .catalog-intro div:last-child { justify-content: flex-start; }
}

.home-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr);
    gap: clamp(28px, 5vw, 70px);
    align-items: center;
    min-height: 690px;
    padding: clamp(58px, 8vw, 104px) clamp(20px, 6vw, 78px);
    color: #fff;
    background:
        linear-gradient(135deg, rgba(16,32,51,.98), rgba(21,74,86,.96) 48%, rgba(15,118,110,.92)),
        linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: auto, 64px 64px, 64px 64px;
}
.home-hero:after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 5px;
    background: linear-gradient(90deg, #b7791f, #f7c66a, #14b8a6, #102033);
}
.home-hero .hero-copy { position: relative; z-index: 1; }
.home-hero h1 {
    margin: 0 0 20px;
    max-width: 900px;
    font-family: var(--font-display);
    font-size: clamp(44px, 6.4vw, 82px);
    line-height: 1;
    letter-spacing: 0;
}
.home-hero .hero-copy > p:not(.eyebrow) {
    max-width: 760px;
    color: #e6fffb;
    font-size: clamp(18px, 2vw, 23px);
}
.hero-stat-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}
.hero-stat-row span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 9px 14px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 8px;
    background: rgba(255,255,255,.08);
    color: #eefdfb;
}
.hero-stat-row strong { color: #f7c66a; font-size: 22px; }
.hero-showcase {
    position: relative;
    z-index: 1;
    min-height: 510px;
}
.showcase-console {
    width: min(430px, 90vw);
    margin: 0 auto;
    padding: 22px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.08));
    box-shadow: 0 32px 90px rgba(0,0,0,.26);
    animation: floatSoft 7s ease-in-out infinite;
}
.console-top {
    display: grid;
    grid-template-columns: 62px 1fr;
    gap: 14px;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,.16);
}
.console-top img { width: 62px; height: 62px; border-radius: 14px; background: #fff; object-fit: contain; }
.console-top strong { display: block; color: #fff; font-family: var(--font-display); font-size: 22px; }
.console-top span { display: block; color: #d7dee8; font-size: 14px; }
.record-preview { padding-top: 18px; }
.record-line {
    display: block;
    height: 12px;
    width: 72%;
    margin: 0 0 11px;
    border-radius: 99px;
    background: rgba(255,255,255,.72);
}
.record-line.wide { width: 92%; }
.record-line.short { width: 48%; background: rgba(247,198,106,.88); }
.record-book {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 14px;
    align-items: center;
    margin-top: 20px;
    padding: 14px;
    border-radius: 8px;
    background: rgba(7,21,37,.54);
}
.record-book img { width: 82px; border-radius: 6px; box-shadow: 0 12px 28px rgba(0,0,0,.24); }
.record-book b { display: block; color: #fff; }
.record-book small { display: block; color: #d7dee8; line-height: 1.4; }
.metadata-ledger {
    position: absolute;
    right: 0;
    bottom: 2px;
    width: min(390px, 92%);
    padding: 22px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 8px;
    background: rgba(10,28,42,.82);
    box-shadow: 0 22px 52px rgba(0,0,0,.26);
    backdrop-filter: blur(12px);
}
.ledger-line {
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid rgba(255,255,255,.13);
}
.ledger-line b { color: #f7c66a; }
.ledger-line span { color: #e6fffb; }
.floating-tags {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.floating-tags span {
    position: absolute;
    display: inline-flex;
    padding: 8px 11px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    animation: fadeUp 900ms ease both;
}
.floating-tags span:nth-child(1) { top: 24px; left: 20px; }
.floating-tags span:nth-child(2) { top: 108px; right: 8px; animation-delay: 120ms; }
.floating-tags span:nth-child(3) { bottom: 88px; left: 4px; animation-delay: 240ms; }
.floating-tags span:nth-child(4) { bottom: 0; right: 76px; animation-delay: 360ms; }
.home-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
    gap: 28px;
    align-items: stretch;
    padding: 46px clamp(20px, 6vw, 78px);
    background: #fff;
}
.home-intro h2,
.featured-book-section h2,
.metadata-band h2,
.home-cta h2 {
    margin: 0 0 14px;
    color: var(--navy);
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.08;
}
.home-intro p, .featured-copy p, .metadata-band p, .home-cta p { color: #344054; font-size: 18px; }
.intro-card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, #f8fafc, #fff);
    box-shadow: 0 16px 42px rgba(16,32,51,.07);
}
.intro-card strong { color: var(--navy); font-size: 22px; }
.featured-book-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: clamp(24px, 5vw, 70px);
    align-items: center;
    padding: clamp(44px, 6vw, 70px) clamp(20px, 6vw, 78px);
    background: linear-gradient(180deg, #f3f7fb, #fff);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.featured-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin: 24px 0;
}
.featured-facts span {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}
.featured-facts strong { display: block; color: var(--navy); }
.featured-cover {
    display: grid;
    place-items: center;
    min-height: 380px;
    border-radius: 8px;
    background: radial-gradient(circle at center, rgba(15,118,110,.16), transparent 62%);
}
.featured-cover img {
    width: min(245px, 68vw);
    max-height: 350px;
    object-fit: cover;
    border-radius: 7px;
    box-shadow: 0 26px 70px rgba(16,32,51,.24);
    transform: rotate(-1.5deg);
    transition: transform 220ms ease;
}
.featured-cover:hover img { transform: rotate(0deg) translateY(-4px); }
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.feature-card {
    position: relative;
    overflow: hidden;
    min-height: 230px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(16,32,51,.06);
}
.feature-card:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--teal), #f7c66a);
}
.feature-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    border-radius: 8px;
    color: var(--navy);
    background: linear-gradient(135deg, #fff7e6, #dff7f2);
    border: 1px solid #f0d398;
    font-weight: 900;
    letter-spacing: .04em;
}
.feature-card h3 { margin: 0 0 10px; color: var(--navy); font-size: 23px; }
.feature-card p { margin: 0; color: #475467; }
.metadata-band {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
    gap: 28px;
    align-items: center;
    padding: clamp(46px, 7vw, 78px) clamp(20px, 6vw, 78px);
    background: #102033;
    color: #fff;
}
.metadata-band h2 { color: #fff; }
.metadata-band p { color: #d7dee8; }
.discovery-map {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.discovery-card {
    position: relative;
    min-height: 118px;
    padding: 18px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 8px;
    background: rgba(255,255,255,.08);
    overflow: hidden;
}
.discovery-card:after {
    content: "";
    position: absolute;
    right: 18px;
    bottom: 18px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid rgba(247,198,106,.7);
    box-shadow: -24px -18px 0 -16px rgba(157,245,223,.85), -48px 6px 0 -18px rgba(255,255,255,.6);
}
.discovery-card.main {
    grid-column: 1 / -1;
    min-height: 150px;
    background: linear-gradient(135deg, rgba(255,255,255,.14), rgba(15,118,110,.22));
}
.discovery-card strong,
.discovery-card b { display: block; color: #fff; font-family: var(--font-display); font-size: 24px; margin-bottom: 8px; }
.discovery-card span { display: block; max-width: 78%; color: #d7dee8; }
.workflow-line {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.workflow-line article {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
}
.workflow-line strong { color: var(--navy); font-size: 22px; }
.workflow-line p { color: #475467; margin-bottom: 0; }
.home-cta {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    align-items: center;
    padding: clamp(46px, 7vw, 76px) clamp(20px, 6vw, 78px);
    color: #fff;
    background:
        linear-gradient(135deg, rgba(15,118,110,.94), rgba(16,32,51,.98)),
        linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
    background-size: auto, 54px 54px;
}
.home-cta h2 { color: #fff; }
.home-cta p { max-width: 760px; color: #e6fffb; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.reveal-up { animation: fadeUp 800ms ease both; }
.delay-1 { animation-delay: 150ms; }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes floatSoft {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@media (max-width: 1080px) {
    .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .workflow-line { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
    .home-hero { min-height: auto; padding-top: 44px; }
    .home-hero h1 { font-size: clamp(40px, 12vw, 58px); }
    .hero-showcase { min-height: auto; }
    .showcase-console { width: 100%; }
    .record-book { grid-template-columns: 74px 1fr; }
    .record-book img { width: 66px; }
    .metadata-ledger { position: relative; right: auto; bottom: auto; margin: 20px auto 0; }
    .floating-tags span { position: static; margin: 8px 6px 0 0; }
    .floating-tags { position: relative; margin-top: 12px; }
    .feature-grid, .workflow-line, .discovery-map { grid-template-columns: 1fr; }
    .discovery-card.main { grid-column: auto; }
    .featured-cover { min-height: 300px; }
    .home-cta { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 760px) {
    html, body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    body {
        font-size: 16px;
        line-height: 1.55;
    }
    .site-header {
        position: sticky;
        top: 0;
        display: block;
        padding: 12px 16px;
    }
    .header-row { width: 100%; }
    .brand {
        min-width: 0;
        width: auto;
        margin-bottom: 0;
    }
    .brand-logo {
        height: 62px;
        max-width: 108px;
    }
    .brand strong {
        font-size: 17px;
    }
    .menu-button {
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: #fff;
        box-shadow: 0 8px 18px rgba(16,32,51,.08);
        cursor: pointer;
        flex: 0 0 auto;
    }
    .nav {
        display: none;
        width: 100%;
        grid-template-columns: 1fr;
        gap: 8px;
        margin-top: 12px;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: #fff;
        box-shadow: 0 18px 34px rgba(16,32,51,.12);
    }
    .nav-toggle:checked ~ .menu-button span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle:checked ~ .menu-button span:nth-child(2) { opacity: 0; }
    .nav-toggle:checked ~ .menu-button span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .header-row:has(.nav-toggle:checked) + .nav {
        display: grid;
    }
    .nav a {
        display: block;
        padding: 10px 9px;
        border: 1px solid var(--line);
        border-radius: 7px;
        background: #fff;
        text-align: center;
        font-size: 14px;
    }
    .home-hero,
    .hero,
    .home-intro,
    .featured-book-section,
    .metadata-band,
    .book-detail-hero,
    .book-layout,
    .book-card,
    .catalog-intro {
        display: block;
        width: 100%;
    }
    .home-hero {
        min-height: 0;
        padding: 38px 18px 46px;
    }
    .home-hero h1 {
        max-width: 100%;
        font-size: clamp(38px, 13vw, 52px);
        line-height: 1.03;
        overflow-wrap: normal;
        word-break: normal;
    }
    .home-hero .hero-copy > p:not(.eyebrow),
    .home-intro p,
    .featured-copy p,
    .metadata-band p,
    .home-cta p,
    .page-hero p:not(.eyebrow),
    .rich-copy p,
    .rich-copy li,
    .content-panel p {
        max-width: 100%;
        font-size: 17px;
        line-height: 1.65;
        word-break: normal;
        overflow-wrap: normal;
    }
    .hero-actions,
    .hero-stat-row,
    .cta-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .button {
        width: 100%;
        min-height: 46px;
    }
    .book-hero-actions { display: grid; grid-template-columns: 1fr; }
    .hero-showcase {
        min-height: 0;
        margin-top: 28px;
    }
    .showcase-console,
    .metadata-ledger {
        position: static;
        width: 100%;
        margin: 0;
    }
    .metadata-ledger {
        margin-top: 14px;
    }
    .console-top,
    .record-book,
    .ledger-line {
        grid-template-columns: 1fr;
    }
    .console-top img {
        width: 58px;
        height: 58px;
    }
    .record-book img {
        width: 82px;
    }
    .floating-tags {
        position: static;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 14px;
    }
    .floating-tags span {
        position: static;
        margin: 0;
    }
    .home-intro,
    .section,
    .featured-book-section,
    .metadata-band,
    .home-cta,
    .book-detail-hero,
    .book-layout,
    .page-hero {
        padding-left: 18px;
        padding-right: 18px;
    }
    .home-intro h2,
    .featured-book-section h2,
    .metadata-band h2,
    .home-cta h2,
    .section h2,
    .page-hero.compact h1,
    .book-detail-hero h1 {
        max-width: 100%;
        font-size: clamp(30px, 9vw, 42px);
        line-height: 1.12;
        word-break: normal;
        overflow-wrap: normal;
    }
    .intro-card,
    .feature-card,
    .content-panel,
    .side-panel,
    .contact-card,
    .submission-note,
    .catalog-intro {
        margin-top: 18px;
        padding: 18px;
    }
    .feature-grid,
    .workflow-line,
    .discovery-map,
    .metadata-grid,
    .featured-facts,
    .author-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .discovery-card.main {
        grid-column: auto;
    }
    .discovery-card span {
        max-width: 100%;
    }
    .featured-cover {
        min-height: 0;
        margin-top: 24px;
        padding: 20px 0;
    }
    .featured-cover img {
        width: min(220px, 78vw);
        max-height: none;
    }
    .book-card {
        overflow: hidden;
    }
    .cover-link {
        min-height: 240px;
    }
    .cover-link img {
        max-width: 128px;
        max-height: 190px;
    }
    .book-card-body {
        padding: 18px;
    }
    .book-card h3 {
        font-size: 24px;
    }
    .book-cover-large {
        display: grid;
        place-items: center;
        margin-bottom: 24px;
        min-height: 0;
        padding: 18px 0;
    }
    .book-cover-large img {
        width: min(230px, 72vw);
        max-width: 100%;
    }
    .side-panel { position: static; }
    .site-footer,
    .footer-brand {
        display: block;
    }
    .footer-logo {
        margin-bottom: 12px;
        height: 92px;
        max-width: 150px;
    }
}

/* Final public-page polish overrides after all responsive rules */
.page-hero.premium {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: 28px;
    align-items: center;
    padding: clamp(52px, 7vw, 86px) clamp(20px, 6vw, 78px);
    color: #fff;
    background:
        linear-gradient(135deg, rgba(16,32,51,.98), rgba(15,118,110,.92)),
        linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
    background-size: auto, 56px 56px;
}
.page-hero.premium h1 {
    margin: 0 0 16px;
    max-width: 900px;
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(38px, 5vw, 68px);
    line-height: 1.04;
}
.page-hero.premium p:not(.eyebrow) {
    max-width: 760px;
    color: #e6fffb;
    font-size: 20px;
}
.hero-proof-panel {
    padding: 24px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 8px;
    background: rgba(255,255,255,.1);
    box-shadow: 0 22px 60px rgba(0,0,0,.18);
}
.hero-proof-panel span {
    display: block;
    margin-bottom: 10px;
    color: var(--gold-soft);
    font-weight: 900;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: .05em;
}
.hero-proof-panel strong {
    display: block;
    color: #fff;
    font-family: var(--font-display);
    font-size: 24px;
    line-height: 1.25;
}
.hero-proof-panel a { color: #fff; }
.split-feature,
.contact-layout,
.submit-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, .75fr);
    gap: 28px;
    align-items: start;
}
.quality-card,
.submission-guide {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, #f8fafc, #fff);
    box-shadow: 0 16px 42px rgba(16,32,51,.07);
}
.quality-card strong,
.submission-guide h2 {
    display: block;
    margin: 0 0 12px;
    color: var(--navy);
    font-family: var(--font-display);
    font-size: 26px;
    line-height: 1.15;
}
.quality-card ul,
.submission-guide ol {
    margin: 0;
    padding-left: 20px;
    color: #475467;
}
.quality-card li,
.submission-guide li { margin: 8px 0; }
.section.tinted {
    background: var(--soft);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.feature-grid.compact .feature-card { min-height: 190px; }
.contact-layout {
    grid-template-columns: minmax(0, .85fr) minmax(320px, 1.15fr);
}
.request-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.request-grid article {
    min-height: 150px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(16,32,51,.06);
}
.request-grid strong {
    display: block;
    margin-bottom: 8px;
    color: var(--navy);
    font-family: var(--font-display);
    font-size: 22px;
}
.request-grid span { display: block; color: #475467; }
.submit-layout {
    grid-template-columns: minmax(280px, .55fr) minmax(0, 1fr);
}
.submission-guide {
    position: sticky;
    top: 92px;
}
.submission-guide p { color: #475467; }
.enhanced-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.enhanced-form .full { grid-column: 1 / -1; }
.premium-authors { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.author-card.profile { min-height: 160px; }
@media (max-width: 860px) {
    .page-hero.premium,
    .split-feature,
    .contact-layout,
    .submit-layout {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 760px) {
    .page-hero.premium,
    .split-feature,
    .contact-layout,
    .submit-layout {
        display: block;
        width: 100%;
    }
    .page-hero.premium {
        padding: 42px 18px;
    }
    .page-hero.premium h1 {
        max-width: 100%;
        font-size: clamp(32px, 10vw, 46px);
        line-height: 1.1;
    }
    .page-hero.premium p:not(.eyebrow) {
        max-width: 100%;
        font-size: 17px;
        line-height: 1.65;
    }
    .hero-proof-panel,
    .quality-card,
    .submission-guide {
        margin-top: 18px;
        padding: 18px;
    }
    .request-grid,
    .enhanced-form {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .submission-guide { position: static; }
    .premium-authors { grid-template-columns: 1fr; }
}

/* Final logo and homepage framing fix */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(18px, 3vw, 36px);
    min-height: 88px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.header-row {
    flex: 0 0 auto;
    min-width: 0;
}

.brand {
    min-width: 0;
}

.brand-mark {
    overflow: hidden;
}

.brand-logo {
    height: 78px;
    max-width: 150px;
    object-fit: contain;
    object-position: center;
}

.nav {
    justify-content: flex-end;
    min-width: 0;
}

.home-hero {
    width: 100%;
    max-width: 100vw;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 540px);
    gap: clamp(28px, 4vw, 58px);
}

.home-hero > * {
    min-width: 0;
}

.hero-copy {
    min-width: 0;
}

.hero-showcase {
    width: 100%;
    max-width: 600px;
    justify-self: center;
    overflow: visible;
}

.showcase-console {
    width: min(430px, 100%);
}

.metadata-ledger {
    right: 0;
    max-width: 390px;
}

.floating-tags {
    inset: 0;
    overflow: hidden;
}

.floating-tags span:nth-child(2) {
    right: 0;
}

.floating-tags span:nth-child(4) {
    right: 34px;
}

@media (max-width: 900px) {
    .site-header {
        min-height: 78px;
    }

    .brand-logo {
        height: 66px;
        max-width: 128px;
    }

    .home-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .site-header {
        display: block;
        min-height: 0;
        padding: 10px 16px;
    }

    .brand-logo {
        height: 58px;
        max-width: 118px;
    }

    .header-row {
        width: 100%;
    }

    .hero-showcase {
        max-width: 100%;
        overflow: hidden;
    }
}
