/*
Theme Name: OnzeCollega Digital
Description: Technisch digitaal uitgeven en leren met OnzeCollega.
Version: 0.3.1
Requires PHP: 8.2
Text Domain: onzecollega-digital
*/

:root {
    --navy: #102540;
    --deep: #09192e;
    --blue: #174ca4;
    --orange: #df8955;
    --ink: #14283e;
    --muted: #455a70;
    --line: #d9e3ee;
    --paper: #f2f6fb;
    --radius: 12px;
    --wrap: min(100% - 2rem, 72rem);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 system-ui, sans-serif; }
body.admin-bar .oc-sticky { z-index: 100; }
a { color: var(--blue); text-underline-offset: .2em; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible {
    outline: 3px solid #e38849; outline-offset: 3px;
}
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.025em; margin-block: 0 .65em; }
h1 { font-size: clamp(2.4rem, 6vw, 5.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
.oc-wrap { width: var(--wrap); margin-inline: auto; }
.oc-skip { position: absolute; left: 1rem; top: -10rem; padding: .6rem; background: white; z-index: 20000; }
.oc-skip:focus { top: 1rem; }
.oc-header { color: white; background: var(--deep); border-bottom: 1px solid #ffffff20; }
.oc-header-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; align-items: center; min-height: 4.5rem; padding-block: .65rem; }
.oc-brand { display: inline-flex; align-items: center; gap: .65rem; color: inherit; text-decoration: none; font-weight: 800; line-height: 1.1; padding-block: .25rem; }
.oc-brand small { display: block; font-size: .8rem; font-weight: 500; color: #c2d4e9; }
.oc-brand-icon { width: 1.75rem; height: 1.2rem; border: 2px solid #d5e5f9; border-radius: 2px; background: linear-gradient(90deg, transparent 45%, #d5e5f9 45% 55%, transparent 55%); }
.oc-nav, .oc-nav ul, .oc-library-nav { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; align-items: center; }
.oc-nav ul { margin: 0; padding: 0; list-style: none; }
.oc-nav a { color: #e1ecfb; font-size: .9rem; text-decoration: none; display: inline-block; padding-block: .35rem; }
.oc-nav a:hover { text-decoration: underline; }
.oc-default { padding-block: clamp(2rem, 7vw, 5rem); min-height: 65vh; overflow-wrap: anywhere; }
.oc-default article + article { border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 2rem; }
.oc-default h1 { font-size: clamp(2.15rem, 5vw, 3.75rem); }
.oc-footer { background: var(--deep); color: #e1ecfb; padding-block: 2rem; }
.oc-footer .oc-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.oc-footer a { color: inherit; }
.oc-hero {
    background: radial-gradient(ellipse at 85% 45%, #244c7e 0, transparent 55%), var(--navy);
    color: white;
}
.oc-hero-inner { display: grid; align-items: center; gap: 2.5rem; padding-block: clamp(3rem, 8vw, 7rem); }
.oc-hero h1 { margin-bottom: .25em; max-width: 13ch; overflow-wrap: anywhere; }
.oc-lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: #d0e1f6; max-width: 44ch; }
.oc-cover { display: grid; place-items: center; }
.oc-cover img { border-radius: var(--radius); max-height: 30rem; object-fit: contain; }
.oc-mockup { min-height: 15rem; display: grid; place-items: center; perspective: 48rem; }
.oc-book {
    color: white; width: min(72%, 19rem); aspect-ratio: 4 / 5; padding: 10% 8%; position: relative;
    display: grid; grid-template-rows: auto 1fr 28%; border-radius: 3px 10px 10px 3px;
    background: linear-gradient(110deg, #143353, #23558c); border-left: 6px solid #386598;
    transform: rotateY(-17deg) rotateZ(5deg);
    box-shadow: 7px 2px 0 #d1deef, 12px 4px 0 #a6bbd5, 23px 27px 44px #030b1caa;
    overflow: hidden;
}
.oc-book span { font-weight: 700; font-size: .75rem; letter-spacing: .13em; color: #d7e8fb; }
.oc-book strong { align-self: center; font-size: clamp(1.3rem, 4vw, 2.45rem); line-height: 1.04; overflow-wrap: anywhere; }
.oc-book-lines {
    border-top: 3px solid var(--orange);
    background: repeating-linear-gradient(90deg, #a4c4e742 0 1px, transparent 1px 16px),
        repeating-linear-gradient(0deg, #a4c4e742 0 1px, transparent 1px 16px);
}
.oc-sales-main { padding-block: clamp(2.25rem, 6vw, 5rem); }
.oc-intro { max-width: 67ch; font-size: 1.1rem; }
.oc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr)); gap: 1rem; }
.oc-sections:not(:empty), .oc-offer, .oc-faq { margin-top: 2rem; }
.oc-card, .oc-reader { border: 1px solid var(--line); border-radius: var(--radius); background: white; padding: clamp(1rem, 3vw, 1.75rem); }
.oc-card p:last-child { margin-bottom: 0; }
.oc-offer {
    display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between;
    padding: clamp(1.5rem, 5vw, 3rem); border-left: .3rem solid var(--orange); border-radius: var(--radius); background: var(--navy); color: white;
}
.oc-price { font-size: 1.5rem; font-weight: 800; }
.oc-button, .woocommerce button.button, .woocommerce a.button, .woocommerce input.button, .oc-reader button, .oc-bump button {
    background: var(--blue); color: white; text-decoration: none; border: 0; cursor: pointer;
    display: inline-block; font: inherit; font-weight: 700; border-radius: .45rem; padding: .65rem 1rem;
}
.oc-hero .oc-button, .oc-offer .oc-button { background: var(--orange); color: var(--deep); }
.oc-faq details { border-bottom: 1px solid var(--line); padding: .8rem 0; }
.oc-faq summary { cursor: pointer; font-weight: 700; }
.oc-faq details p { margin: .6rem 0 0; }
.oc-sticky {
    position: sticky; bottom: 0; z-index: 3; background: white; border-top: 1px solid var(--line);
    padding: .65rem max(1rem, env(safe-area-inset-right)) max(.65rem, env(safe-area-inset-bottom));
    display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-weight: 700;
}
.oc-library-nav { padding-bottom: 1rem; border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; }
.oc-library > .oc-card, .oc-reader, .oc-bump { margin-bottom: 1.25rem; }
.oc-library h2 { margin-top: 1.5rem; }
.oc-reader h2 { margin-top: 0; }
.oc-reader-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.oc-reader-tools input { width: 4.5rem; padding: .3rem; }
.oc-reader button:disabled { opacity: .55; cursor: default; }
.oc-paper { padding: .5rem; overflow: auto; background: #e5edf7; }
.oc-paper canvas { display: block; margin-inline: auto; }
.oc-reader [role="status"] { margin: .5rem 0; }
.oc-modules small { color: var(--muted); }
.woocommerce form input.input-text, .woocommerce form textarea { padding: .5rem; border: 1px solid #8294a7; border-radius: .35rem; }
.woocommerce-account .woocommerce-MyAccount-navigation ul { padding-left: 1.1rem; }
@media (min-width: 48rem) {
    :root { --wrap: min(100% - 4rem, 72rem); }
    .oc-hero-inner { grid-template-columns: 1.15fr 1fr; }
    .oc-sticky { display: none; }
}
