:root {
    --bg: #09131c;
    --bg-2: #0d1d2b;
    --panel: rgba(255,255,255,0.98);
    --panel-soft: rgba(247, 250, 252, 0.96);
    --text: #22303d;
    --muted: #667382;
    --line: rgba(14, 45, 74, 0.11);
    --shadow: 0 24px 60px rgba(7, 18, 29, 0.22);
    --shadow-soft: 0 14px 32px rgba(7, 18, 29, 0.10);
    --primary: #1d6fb8;
    --primary-dark: #103a63;
    --accent: #13a06f;
    --white: #ffffff;
}

* { box-sizing: border-box; }

html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset,
form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas,
details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section,
summary, time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font: inherit;
    vertical-align: baseline;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: linear-gradient(rgba(7, 18, 28, 0.82), rgba(7, 18, 28, 0.88)), url(images/bg-site.webp) center center / cover fixed no-repeat;
    line-height: 1.7;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover,
a:focus {
    color: var(--primary-dark);
}

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

.page-wrap {
    width: 1080px;
    max-width: calc(100% - 24px);
    margin: 18px auto 26px;
}

.site-hero {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--shadow);
    min-height: 230px;
}

.site-hero__backdrop {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(7, 18, 28, 0.82) 0%, rgba(7, 18, 28, 0.54) 42%, rgba(7, 18, 28, 0.15) 100%), url(images/rav4-hero.webp) center center / cover no-repeat;
}

.site-hero__content {
    position: relative;
    z-index: 1;
    padding: 14px 18px 18px;
    display: flex;
    flex-direction: column;
    min-height: 270px;
}

.site-topbar {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr) 220px;
    gap: 14px;
    align-items: start;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    max-width: 160px;
}

.site-logo img {
    width: 100%;
    height: auto;
}

.site-nav,
.navbar,
.nav-container {
    width: 100%;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

nav ul li { list-style: none; }

nav li a {
    display: block;
    padding: 10px 13px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.96);
    font-size: 12px;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

nav li a:hover,
nav li a:focus {
    background: rgba(255,255,255,0.18);
    color: #ffffff;
}

.site-search {
    padding: 8px;
    border-radius: 18px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.14);
    backdrop-filter: blur(8px);
}

#searchform {
    display: flex;
    gap: 8px;
}

#search #s {
    flex: 1;
    background: transparent;
    border: 0;
    color: #ffffff;
    padding: 12px 14px;
    font-size: 15px;
}

#search #s:focus { outline: none; }
#search #s::placeholder { color: rgba(255,255,255,0.72); }

#search button {
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #ffffff, #dfe8ef);
    color: var(--primary-dark);
    font-weight: 800;
    padding: 0 16px;
    cursor: pointer;
}

.hero-panel {
    margin-top: auto;
    width: min(440px, 100%);
    padding: 16px 18px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(7, 18, 28, 0.68), rgba(9, 22, 34, 0.40));
    border: 1px solid rgba(255,255,255,0.10);
    backdrop-filter: blur(9px);
}

.hero-kicker {
    display: inline-block;
    margin-bottom: 10px;
    color: #8be0c0;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 800;
}

.hero-panel h2 {
    color: #ffffff;
    font-size: clamp(22px, 2.4vw, 30px);
    line-height: 1.05;
    font-weight: 900;
    margin-bottom: 14px;
}

.hero-panel p {
    color: rgba(255,255,255,0.84);
    font-size: 14px;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.hero-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #1a73be, #113b63);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(15, 61, 102, 0.28);
}

.hero-actions .hero-action-alt {
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: none;
}

.hero-actions a:hover { color: #fff; }

.content-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 20px;
    margin-top: 14px;
}

.content-main,
.content-side,
.footer-card,
.note-box,
.manual-card,
.feature-card,
.side-card {
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--panel);
    box-shadow: var(--shadow-soft);
}

.content-main {
    padding: 18px;
}

.content-side {
    padding: 18px;
    background: linear-gradient(180deg, rgba(247,250,252,0.98), rgba(237,243,248,0.98));
    display: grid;
    gap: 16px;
    align-content: start;
}

.content-main h1 {
    font-size: clamp(27px, 3vw, 34px);
    line-height: 1.08;
    font-weight: 500;
    color: #132b40;
    margin-bottom: 12px;
}

.breadcrumbs {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(17, 59, 99, 0.10);
}

.content-text p { margin: 0 0 16px; }

.content-text h2 {
    margin: 34px 0 18px;
    font-size: clamp(21px, 2vw, 27px);
    line-height: 1.18;
    font-weight: 450;
    color: #17354f;
}

.content-text h3 {
    margin: 22px 0 14px;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 400;
    color: #1d537c;
}

.content-text ul,
.content-text ol {
    margin: 0 0 18px 22px;
}

.content-text li {
    margin: 9px 0;
}

.content-text table {
    border-collapse: collapse;
    width: 100%;
    margin: 20px 0;
    font-size: 14px;
}

.content-text th,
.content-text td {
    border: 1px solid rgba(17, 59, 99, 0.16);
    padding: 8px 10px;
}

.hero-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
    gap: 20px;
    align-items: center;
    margin-bottom: 8px;
    padding: 20px;
    border-radius: 28px;
    background: linear-gradient(135deg, #f4f8fb, #eef4f8);
    border: 1px solid rgba(17, 59, 99, 0.08);
}

.hero-intro .eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--accent);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 800;
}

.hero-intro-visual img {
    width: 100%;
    border-radius: 22px;
    box-shadow: var(--shadow-soft);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.feature-card {
    overflow: hidden;
}

.feature-card img,
.side-card img,
.manual-card-visual img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    width: 100%;
}

.feature-card h3,
.feature-card p {
    padding-left: 20px;
    padding-right: 20px;
}

.feature-card h3 { margin-top: 18px; }
.feature-card p { margin-bottom: 20px; }

.manual-card {
    margin: 28px 0;
    padding: 20px;
}

.manual-card-head {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.manual-card-visual img { border-radius: 20px; }
.manual-card-copy h2 { margin-top: 0; }

.manual-links {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(17, 59, 99, 0.10);
}

.manual-links-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.manual-card-action { margin-top: 18px !important; }
.manual-card-action a {
    display: inline-flex;
    align-items: center;
    padding: 12px 18px;
    border-radius: 999px;
    color: #fff;
    font-weight: 800;
    background: linear-gradient(135deg, #1d6fb8, #113b63);
}
.manual-card-action a:hover { color: #fff; }

.note-box {
    margin-top: 30px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #eef8f4, #f8fbfd);
}

.side-summary { display: grid; gap: 18px; }
.side-card { overflow: hidden; }
.side-card a { color: var(--text); display: block; }
.side-card h2 {
    padding: 14px 15px 6px;
    font-size: 19px;
    line-height: 1.15;
    font-weight: 850;
    color: #17354f;
}
.side-card h2 span {
    display: block;
    margin-top: 6px;
    font-size: 15px;
    color: var(--primary);
    font-weight: 700;
}
.side-card p {
    padding: 0 15px 15px;
    font-size: 15px;
    color: var(--muted);
}


.sidebar-panel {
    border: 1px solid rgba(17, 59, 99, 0.10);
    border-radius: 22px;
    background: linear-gradient(135deg, #ffffff, #f3f7fb);
    box-shadow: var(--shadow-soft);
    padding: 16px;
}

.sidebar-panel h3 {
    font-size: 17px;
    line-height: 1.2;
    font-weight: 850;
    color: #17354f;
    margin-bottom: 12px;
}

.sidebar-panel p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--muted);
}

.side-link-list {
    list-style: none;
    display: grid;
    gap: 10px;
}

.side-link-list li {
    list-style: none;
}

.side-link-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 14px;
    background: #eff5fa;
    border: 1px solid rgba(17, 59, 99, 0.08);
    color: #17354f;
    font-weight: 700;
}

.side-link-list a::after {
    content: "›";
    font-size: 20px;
    line-height: 1;
    color: var(--primary);
}

.side-link-list a:hover {
    background: #e6f0f8;
    color: #12385f;
}

.sidebar-banner {
    display: block;
}

.sidebar-banner:empty {
    display: none;
}

.sidebar-banner > * {
    width: 100%;
    max-width: 100%;
}

.sidebar-banner img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

.side-card--featured {
    position: relative;
}

.mobilenavigation {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 26px;
}

.prev_button,
.next_button {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 88px;
    padding: 18px 18px 18px 58px;
    border-radius: 20px;
    background: linear-gradient(135deg, #f7fbfe, #edf4f8);
    border: 1px solid rgba(17, 59, 99, 0.12);
    color: #17354f;
    font-weight: 800;
    line-height: 1.45;
    box-shadow: var(--shadow-soft);
}

.next_button {
    padding: 18px 58px 18px 18px;
    justify-content: flex-end;
    text-align: right;
}

.prev_button::before,
.next_button::before {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1d6fb8, #113b63);
    color: #fff;
    font-size: 20px;
    box-shadow: 0 10px 22px rgba(17, 59, 99, 0.22);
}

.prev_button::before {
    content: "←";
    left: 16px;
}

.next_button::before {
    content: "→";
    right: 16px;
}

.prev_button::after,
.next_button::after {
    position: absolute;
    top: 14px;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 800;
}

.prev_button::after {
    content: "Previous section";
    left: 58px;
}

.next_button::after {
    content: "Next section";
    right: 58px;
}

.prev_button:hover,
.next_button:hover {
    color: #12385f;
    transform: translateY(-1px);
}

.site-footer { margin-top: 26px; }
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.footer-card {
    padding: 20px;
    background: linear-gradient(135deg, rgba(9,19,28,0.92), rgba(14,33,48,0.92));
    border-color: rgba(255,255,255,0.08);
}

.footer-card h2 {
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 12px;
}

.footer-card ul { list-style: none; }
.footer-card li + li { margin-top: 10px; }
.footer-card a { color: rgba(255,255,255,0.78); }
.footer-card a:hover { color: #fff; }

.copyright-bar {
    margin-top: 18px;
    border-radius: 20px;
    padding: 16px 20px;
    text-align: center;
    color: rgba(255,255,255,0.74);
    background: rgba(9,19,28,0.94);
    box-shadow: var(--shadow-soft);
}

.copyright-bar a { color: #fff; }


.prev_imgbutton,
.prev_imgbutton1,
.next_imgbutton,
.next_imgbutton1 { display: none; }


/* V7 final layout corrections */
.page-wrap {
    width: 1240px;
    max-width: calc(100% - 32px);
    margin: 16px auto 24px;
}

.site-hero {
    min-height: 300px;
    border-radius: 26px;
}

.site-hero__content {
    min-height: 300px;
    padding: 16px 24px 22px;
}

.site-topbar {
    grid-template-columns: 230px minmax(470px, 1fr) 270px;
    gap: 18px;
    align-items: center;
}

.site-logo {
    max-width: 220px;
    height: 64px;
    overflow: visible;
}

.site-logo img {
    width: 220px;
    height: 64px;
    object-fit: contain;
    object-position: left center;
}

.site-search {
    width: 270px;
    padding: 6px;
    overflow: visible;
}

#searchform {
    width: 100%;
    min-width: 0;
}

#search #s {
    min-width: 0;
    width: 100%;
    padding: 10px 10px;
    font-size: 13px;
}

#search button {
    flex: 0 0 auto;
    min-width: 70px;
    min-height: 38px;
    padding: 0 13px;
    white-space: nowrap;
}

.hero-panel {
    width: 500px;
    padding: 18px 20px;
}

.hero-panel h2 {
    font-size: 29px;
    line-height: 1.08;
    margin-bottom: 10px;
}

.hero-panel p {
    font-size: 13px;
    line-height: 1.55;
}

.content-shell {
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 18px;
    margin-top: 12px;
}

.content-main {
    padding: 20px 22px 22px;
}

.content-side {
    padding: 16px;
}

.content-main h1 {
    max-width: 100%;
    font-size: 22px;
    line-height: 1.16;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
}

.breadcrumbs {
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 18px;
    padding-bottom: 14px;
}

.content-text {
    font-size: 14px;
    line-height: 1.68;
}

.content-text p {
    margin-bottom: 13px;
}

.content-text h2 {
    margin: 26px 0 12px;
    font-size: 22px;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.content-text h3 {
    margin: 20px 0 10px;
    font-size: 18px;
    line-height: 1.3;
}

.content-text h4 {
    margin: 16px 0 8px;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 800;
    color: #274a67;
}

.toc-card {
    margin: 14px 0 22px;
    padding: 16px;
    border: 1px solid rgba(17, 59, 99, 0.10);
    border-radius: 18px;
    background: linear-gradient(135deg, #f7fbfe, #eef4f8);
}

.toc-card-title {
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: #557087;
}

.page-toc {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    margin: 0 !important;
    list-style: none;
}

.page-toc li {
    margin: 0 !important;
    list-style: none;
}

.page-toc a {
    display: flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 11px;
    border-radius: 11px;
    background: rgba(255,255,255,0.78);
    border: 1px solid rgba(17, 59, 99, 0.08);
    font-size: 13px;
    line-height: 1.35;
}

.page-toc a::before {
    content: "";
    width: 6px;
    height: 6px;
    margin-right: 9px;
    border-radius: 50%;
    background: var(--primary);
    flex: 0 0 auto;
}

.page-side-card {
    overflow: hidden;
    border: 1px solid rgba(17, 59, 99, 0.10);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.page-side-cover {
    display: block;
    padding: 12px 12px 14px;
    color: #17354f;
    font-size: 14px;
    font-weight: 800;
    text-align: center;
}

.page-side-cover img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 13px;
    margin-bottom: 10px;
}

.page-side-cover span {
    display: block;
    line-height: 1.4;
}

.page-side-toc {
    padding: 14px;
    border-top: 1px solid rgba(17, 59, 99, 0.10);
    background: #f6f9fc;
}

.page-side-toc h3 {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 850;
    color: #17354f;
}

.page-side-toc ul {
    margin: 0;
    list-style: none;
}

.page-side-toc li {
    margin: 0;
    list-style: none;
}

.page-side-toc a {
    display: block;
    padding: 7px 0;
    border-bottom: 1px solid rgba(17, 59, 99, 0.07);
    font-size: 13px;
    line-height: 1.4;
}

.mobilenavigation {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.page-nav-card {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-height: 78px;
    padding: 13px 15px;
    border-radius: 17px;
    background: linear-gradient(135deg, #f8fbfd, #edf4f8);
    border: 1px solid rgba(17, 59, 99, 0.12);
    color: #17354f;
    box-shadow: 0 8px 20px rgba(7, 18, 29, 0.08);
}

.page-nav-card--next {
    grid-template-columns: minmax(0, 1fr) 38px;
    text-align: right;
}

.page-nav-icon {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #1d6fb8, #113b63);
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 19px;
    line-height: 1;
    padding-bottom: 4px;
}

.page-nav-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.page-nav-copy small {
    font-size: 10px;
    line-height: 1.2;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6b7d8d;
    font-weight: 800;
}

.page-nav-copy strong {
    display: block;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.page-nav-card:hover {
    color: #12385f;
    border-color: rgba(29, 111, 184, 0.28);
    transform: translateY(-1px);
}

/* Inner pages use a compact header; full hero remains on the home page. */
.inner-page .site-hero {
    min-height: 92px;
}

.inner-page .site-hero__content {
    min-height: 92px;
    padding: 13px 22px;
    justify-content: center;
}

.inner-page .hero-panel {
    display: none;
}

.inner-page .site-hero__backdrop {
    background-position: center 42%;
}

.inner-page .content-shell {
    margin-top: 10px;
}

.home-page .site-hero {
    min-height: 300px;
}

.home-page .site-hero__content {
    min-height: 300px;
}

@media screen and (min-width: 1001px) {
    .page-wrap {
        width: 1240px !important;
        max-width: 1240px !important;
    }
}

@media screen and (max-width: 1268px) {
    .page-wrap {
        width: calc(100% - 24px) !important;
        max-width: none !important;
    }

    .site-topbar {
        grid-template-columns: 205px minmax(430px, 1fr) 250px;
    }

    .site-search {
        width: 250px;
    }
}

@media screen and (max-width: 1000px) {
    .site-topbar {
        grid-template-columns: 1fr;
    }

    .site-search {
        width: 100%;
    }

    .content-shell {
        grid-template-columns: 1fr;
    }

    .content-side {
        order: 0;
    }
}

@media screen and (max-width: 720px) {
    .page-toc,
    .mobilenavigation {
        grid-template-columns: 1fr;
    }

    .content-main h1 {
        font-size: 24px;
    }

    .content-text h2 {
        font-size: 20px;
    }
}
