/* Calibration's blueprint palette, drawn from the exam study studio. */
@font-face {
  font-family: "Poiret One";
  src: url("/assets/PoiretOne-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --studio-display: "Poiret One", "Century Gothic", "Avenir Next", system-ui, sans-serif;
  --studio-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --studio-mono: "IBM Plex Mono", ui-monospace, monospace;
  --studio-paper: #f4f8fa;
  --studio-card: #fff;
  --studio-recess: #e8f1f7;
  --studio-ink: #102e4a;
  --studio-muted: #49657b;
  --studio-blue: #145581;
  --studio-line: #a7c0d2;
  --studio-grid: #28658b16;
  --studio-sun: #fecc02;
  --studio-gold-ink: #765500;
  --studio-control: #fff;
  --studio-control-line: #789bb6;
  --studio-focus: #236caa;
  --studio-radius: 9px;
  --studio-shadow: 3px 3px 0 #8daec52b;
  --studio-shell: #f8fbfd;
  --studio-blueprint: linear-gradient(112deg, #0a2948 12%, #0e3659 55%, #14446b);
  --studio-gradient: linear-gradient(103deg, #8dd0f6, #d5dca0 48%, #ffcf27);
  --studio-canvas: radial-gradient(ellipse at 86% 8%, #fecc0223, transparent 45%),
                   linear-gradient(122deg, #f7fbff, #e6f0f8 60%, #f3f8fb);
}
html[data-theme="dark"] {
  --studio-paper: #071f39;
  --studio-card: #0b345a;
  --studio-recess: #143b5e;
  --studio-ink: #f4faff;
  --studio-muted: #d5eaf7;
  --studio-blue: #9bd6ff;
  --studio-line: #6388a4;
  --studio-grid: #9bc6df24;
  --studio-gold-ink: #ffdc60;
  --studio-control: #143b5e;
  --studio-control-line: #82a9c4;
  --studio-focus: #ffdc60;
  --studio-shadow: 3px 3px 0 #fecc0230;
  --studio-shell: #071f39;
  --studio-canvas: radial-gradient(ellipse at 86% 8%, #fecc0230, transparent 45%),
                   radial-gradient(ellipse at 0 63%, #246cbc50, transparent 55%),
                   linear-gradient(122deg, #051e3b, #124979 60%, #163756);
}

/* The saved Light preference selects the portfolio's Miami Neon palette. */
html[data-theme="light"] {
  color-scheme: dark !important;
  --studio-paper: #15052f;
  --studio-card: #25134a;
  --studio-recess: #331957;
  --studio-shell: #1e1040;
  --studio-ink: #fff6fd;
  --studio-muted: #e8cee9;
  --studio-blue: #5ceeff;
  --studio-line: #b64ecd;
  --studio-grid: #5ceeff26;
  --studio-sun: #ffe44d;
  --studio-gold-ink: #ffe44d;
  --studio-control: #2e1750;
  --studio-control-line: #b64ecd;
  --studio-focus: #5ceeff;
  --studio-shadow: 4px 4px 0 #ff3d9150, 0 0 20px #00e5f41c;
  --studio-blueprint: linear-gradient(120deg,#24113f,#6e164e 72%,#812455);
  --studio-gradient: linear-gradient(100deg,#00e5f4,#ff3d91 58%,#ffe44d);
  --studio-canvas: radial-gradient(ellipse at 86% 6%,#c52a908a,transparent 48%),
                   radial-gradient(ellipse at 0% 56%,#263c9bb8,transparent 52%),
                   linear-gradient(122deg,#15052f,#48146a 55%,#610d55);
  --studio-stripe: linear-gradient(90deg,#00e5f4,#ff3d91 58%,#ffe44d);
  --studio-selected: #582568;
}

@media screen {
  html body {
    --ink: var(--studio-ink);
    --paper: var(--studio-card);
    --cream: var(--studio-card);
    --white: var(--studio-card);
    --navy: var(--studio-ink);
    --navy2: #0a2948;
    --deep: #0e3659;
    --deep2: #071f39;
    --teal: var(--studio-blue);
    --teal2: var(--studio-blue);
    --sky: var(--studio-recess);
    --mint: var(--studio-recess);
    --soft: var(--studio-paper);
    --line: var(--studio-line);
    --muted: var(--studio-muted);
    --gold: var(--studio-gold-ink);
    --neon-coral: var(--studio-sun);
    --neon-aqua: #8dd0f6;
    --coral: var(--studio-sun);
    --aqua: #8dd0f6;
    --shadow: var(--studio-shadow);
    --cn-control-bg: var(--studio-control);
    --cn-control-ink: var(--studio-ink);
    --cn-control-border: var(--studio-control-line);
    --cn-control-focus: var(--studio-focus);
    background-color: var(--studio-paper) !important;
    background-image: var(--studio-canvas) !important;
    color: var(--studio-ink);
    font-family: var(--studio-body);
  }
  html body:is(.crm-body,.aec-designer,.aec-finance) {
    --aec-navy: #0e3659;
    --aec-deep: #071f39;
    --aec-steel: #244f74;
    --aec-teal: var(--studio-blue);
    --aec-gold: var(--studio-sun);
    --aec-paper: var(--studio-paper);
    --aec-line: var(--studio-line);
    --aec-ink: var(--studio-ink);
    --crm-ink: var(--studio-ink);
    --crm-teal: var(--studio-blue);
    --crm-mint: var(--studio-recess);
    --crm-pink: var(--studio-gold-ink);
    --crm-line: var(--studio-line);
    --crm-bg: var(--studio-paper);
    --crm-muted: var(--studio-muted);
    --crm-card: var(--studio-card);
  }
  html body :is(.site-header,.cn-dropdown-nav,.site-footer,.footer) {
    background: var(--studio-shell) !important;
    color: var(--studio-ink) !important;
    border-color: var(--studio-line) !important;
  }
  html body :is(.site-header,.cn-dropdown-nav,.site-footer,.footer) a {
    color: var(--studio-ink);
  }
  html body .topline {
    background: linear-gradient(90deg,#071f39,#357aab 60%,#fecc02) !important;
  }
  html body:is(.crm-body,.aec-designer,.aec-finance)::before {
    background: linear-gradient(90deg,#071f39,#357aab 60%,#fecc02);
  }
  html body .site-header .mark {
    background: linear-gradient(135deg,#194873,#0c304e) !important;
    color: var(--studio-sun) !important;
    border: 1px solid #82a9c4;
    border-radius: 6px;
    box-shadow: none;
  }
  html body .brand-copy small { color: var(--studio-blue); }
  html body :is(.cn-primary-links,.studio-tabs) [aria-current="page"] {
    border-bottom-color: var(--studio-sun) !important;
  }
  html body :is(.hero,.workspace-hero,.crm-hero,.dashboard-hero,.crm-brand-row,.crm-wd-hero,.dw-heading) {
    background: #0e3659 var(--studio-blueprint) !important;
    border-color: #7693a7 !important;
    color: #f4faff !important;
    box-shadow: 3px 3px 0 #fecc0230;
  }
  html body :is(.hero,.workspace-hero,.crm-hero,.dashboard-hero,.crm-brand-row,.crm-wd-hero,.dw-heading) :is(h1,h2,p) {
    color: #f4faff !important;
  }
  html body :is(.hero,.crm-brand-row,.dw-heading) :is(h1 em,.eyebrow,.crm-eyebrow) { color: #ffdc60 !important; }
  html body :is(main,.v5-page,.dash-body,.auth-body) :is(h1,h2),
  html body.crm-body .crm-brand-row h1 {
    font-family: var(--studio-display);
    letter-spacing: -.025em;
    text-wrap: balance;
  }
  html body :is(.eyebrow,.crm-eyebrow) {
    color: var(--studio-gold-ink);
    font-family: var(--studio-mono);
    letter-spacing: .12em;
  }
  html body .eyebrow::before { border-color: var(--studio-gold-ink); }
  html body :is(.v5-page,.dash-body,.auth-body,.section.soft-block) {
    background: transparent;
    color: var(--studio-ink);
  }
  html body :is(.plan,.panel,.card,.workspace-card,.v5-card,.v5-panel,.v5-card-directory,.project-card,.news-card,.home-news-card,.metric,.form-card,.auth-panel,.signin-card,.design-card,.crm-panel,.crm-card,.crm-metric,.crm-stage,.crm-table-wrap,.crm-template-preview,.cn-menu-links,.cn-menu-dropdown,.dropdown-menu,dialog) {
    background-color: var(--studio-card);
    color: var(--studio-ink);
    border-color: var(--studio-line);
    border-radius: var(--studio-radius);
    box-shadow: var(--studio-shadow);
  }
  html body .v5-card-directory .top {
    background: var(--studio-blueprint);
  }
  html body :is(.btn.neon-primary,.btn.dark,.btn.primary,.signin-primary,.signin-card button[type="submit"],.crm-btn:not(.secondary):not(.danger),.cn-menu-dropdown>summary) {
    background: #ffcf27 var(--studio-gradient) !important;
    color: #071f39 !important;
    border: 1px solid #bc9a30 !important;
    border-radius: 5px;
    box-shadow: none !important;
  }
  html body :is(.btn.outline,.btn.neon-outline,.btn.light,.crm-btn.secondary,.cn-theme-bar .cn-theme-switch) {
    background: var(--studio-control) !important;
    color: var(--studio-ink) !important;
    border-color: var(--studio-control-line) !important;
  }
  html body .cn-theme-track,
  html body .cn-theme-switch[aria-checked="true"] .cn-theme-track { background: #337aad; }
  html body .cn-theme-switch[aria-checked="true"] .cn-theme-track>span { background: #fecc02; }
  html body :is(input:not([type="color"],[type="checkbox"],[type="radio"],[type="range"]),select,textarea) {
    background-color: var(--studio-control);
    color: var(--studio-ink);
    border-color: var(--studio-control-line);
  }
  html body :is(a,button,input,select,textarea,summary):focus-visible {
    outline: 3px solid var(--studio-focus) !important;
    outline-offset: 3px;
  }
  html body :is(.v5-top,.v5-panel,.signin-card,.design-intro,.crm-panel) :is(p,.signin-note,.signin-divider,.crm-small,.crm-muted) {
    color: var(--studio-muted);
  }
  html body :is(.v5-top,.v5-panel,.signin-card,.design-intro) :is(h1,h2,h3) {
    color: var(--studio-ink);
  }
  html body :is(.cn-help-panel,.cn-subscribe) {
    background: var(--studio-card);
    color: var(--studio-ink);
    border-color: var(--studio-line);
    border-radius: var(--studio-radius);
    font-family: var(--studio-body);
  }
  html body .cn-help-head {
    background: var(--studio-blueprint);
    color: #f4faff;
  }
  html body :is(.cn-help-launch,.cn-help-form button,.cn-help-human-form>button) {
    background: #ffcf27 var(--studio-gradient);
    color: #071f39;
    font-family: var(--studio-body);
  }
  html body :is(.cn-help-bubble,.cn-help-bubble.user,.cn-help-topic,.cn-help-panel .cn-help-close) {
    background: var(--studio-recess);
    color: var(--studio-ink);
    border-color: var(--studio-control-line);
  }
  html body :is(.cn-help-intro,.cn-help-bottom) a { color: var(--studio-blue); }
  html body :is(.site-footer,.footer) a:hover,
  html body :is(main,.v5-page) :is(.text-link,.back-link) { color: var(--studio-blue); }
}

.cn-exam-main{padding-block:clamp(2rem,6vw,5rem);max-width:1180px;margin:auto}
.cn-exam-main section{margin:3rem 0;scroll-margin-top:5rem}
.cn-exam-intro,.cn-exam-offer>.wrap{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);align-items:center;gap:clamp(1.5rem,5vw,5rem)}
.cn-exam-intro h1,.cn-exam-offer h2{font-size:clamp(2.2rem,5.4vw,4.9rem);line-height:1.03;letter-spacing:-.045em;margin:.35em 0}
.cn-exam-main p,.cn-exam-offer p{line-height:1.65;max-width:62ch}
.cn-exam-offer{padding:clamp(2rem,5vw,4.8rem) 0;background:var(--studio-blueprint);color:#f5faff}
.cn-exam-offer h2,.cn-exam-offer h3,.cn-exam-offer p{color:#f5faff!important}
.cn-exam-offer .cn-offer-actions{border-inline-start:4px solid #ffdc72;padding-inline-start:1.5rem}
.cn-study-sheet,.cn-prep-grid article{background:var(--studio-card);color:var(--studio-ink);border:1px solid var(--studio-line);border-radius:var(--studio-radius);padding:clamp(1.2rem,3vw,2rem)}
.cn-study-sheet{border-top:6px solid var(--studio-sun);background-image:linear-gradient(135deg,transparent 83%,var(--studio-grid) 83%)}
.cn-study-sheet summary{font-weight:700;cursor:pointer;color:var(--studio-blue)}
.cn-prep-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:1rem}
.cn-exam-main :is(section,aside,.cn-exam-intro) a:not(.btn){color:var(--studio-blue);text-underline-offset:.2em}
@media(max-width:720px){.cn-exam-intro,.cn-exam-offer>.wrap{grid-template-columns:1fr}.cn-exam-main{padding-inline:1rem}.cn-exam-offer .cn-offer-actions{padding-inline-start:1rem}}
.cn-exam-offer .cn-free-preview{display:inline-block;color:#fff4bf;text-decoration:underline;margin:.8rem}
#sample-question .cn-study-sheet{max-width:52rem}
#sample-question form{display:flex;flex-wrap:wrap;gap:1rem;align-items:end;margin-top:1.5rem}
#sample-question label{display:grid;gap:.4rem}
#sample-question input,#section{font:inherit;min-height:44px;padding:.4rem .65rem;max-width:100%}
.cn-sample-values{text-align:left;border-collapse:collapse;width:auto}.cn-sample-values :is(td,th){padding:.4rem .85rem;border-bottom:1px solid var(--studio-line)}.cn-sample-values caption{text-align:left;font-weight:700}

@media screen {
  html[data-theme="light"] body :is(.hero,.workspace-hero,.crm-hero,.dashboard-hero,.crm-brand-row,.crm-wd-hero,.dw-heading) {
    background: #24113f var(--studio-blueprint) !important;
    border-color: var(--studio-line) !important;
    box-shadow: var(--studio-shadow);
  }
  html[data-theme="light"] body :is(.topline,.site-header .mark,.cn-theme-track) {
    background: var(--studio-stripe) !important;
  }
  html[data-theme="light"] body .site-header .mark { color: #170a32 !important; }
  html[data-theme="light"] body:is(.crm-body,.aec-designer,.aec-finance)::before {
    background: var(--studio-stripe);
  }
  html[data-theme="light"] body :is(.btn.neon-primary,.btn.dark,.btn.primary,.signin-primary,.signin-card button[type="submit"],.crm-btn:not(.secondary):not(.danger),.cn-menu-dropdown>summary,.cn-help-launch,.cn-help-form button,.cn-help-human-form>button) {
    background: #ff3d91 var(--studio-gradient) !important;
    color: #170a32 !important;
    border-color: #ff75ba !important;
  }
  html[data-theme="light"] body :is(.hero,.crm-brand-row,.dw-heading) :is(h1 em,.eyebrow,.crm-eyebrow) {
    color: var(--studio-sun) !important;
  }
  html[data-theme="light"] body .hero h1 em { text-decoration-color: #ff3d91; }
}

@media screen {
  html body.crm-body .crm-btn.secondary {
    color: var(--studio-ink) !important;
  }
  html[data-theme="light"] body {
    min-height: 100vh;
    background-attachment: fixed;
  }
  html[data-theme="light"] body :is(#cn-privacy-banner,.crm-private) {
    background: var(--studio-card);
    color: var(--studio-ink);
    border-color: var(--studio-line);
  }
  html[data-theme="light"] body #cn-privacy-banner {
    background: var(--studio-card) !important;
    border-color: var(--studio-line) !important;
  }
  html[data-theme="light"] body #cn-privacy-banner :is(button,a) {
    color: var(--studio-blue);
    border-color: var(--studio-line);
  }
}
