/* Bakkwo: navy structure, red actions, clear white working surfaces. */
:root,body,body.home-page,body.studio-site,body.tool-studio {
  --brand-navy:#09285e; --brand-red:#e31537; --brand-paper:#f6f7fa;
  /* A 1.2 CSS-pixel blend antialiases the diagonal without a broad color fade. */
  --brand-edge-aa:.6px;
  --brand-action-fill:linear-gradient(180deg,#2a5cb8 0%,#0d3274 55%,#061b45 100%);
  --brand-action-hover:linear-gradient(180deg,#3468c8 0%,#123c88 55%,#08235a 100%);
  --brand-ink:#14243e; --brand-muted:#59677c; --brand-line:#dce1e9;
  --ink:var(--brand-ink); --muted:var(--brand-muted); --line:var(--brand-line);
  --blue:var(--brand-navy); --accent:var(--brand-navy); --bg:var(--brand-paper);
  --home-blue:var(--brand-navy); --home-ink:var(--brand-ink); --home-muted:var(--brand-muted);
  --studio-blue:var(--brand-navy); --studio-ink:var(--brand-ink);
  --studio-muted:var(--brand-muted); --studio-line:var(--brand-line);
  --bakkwo-secondary:var(--brand-muted); --bakkwo-muted:#68758a;
  --bakkwo-logo-fill:linear-gradient(135deg,#09285e 49%,#e31537 49%);
  accent-color:var(--brand-navy);
}
body.tool-studio { --tool-ink:#09285e!important; --tool-tint:#edf1f7!important; --tool-border:#d7dfeb!important; }
body.tool-studio[data-studio-kind="pdf"] { --tool-ink:#b51836!important; --tool-tint:#fff0f2!important; --tool-border:#efd7de!important; }
html { background:var(--brand-paper); }
body,body.home-page,body.studio-site { background:var(--brand-paper); color:var(--brand-ink); }
body.home-page::before,body.studio-site::before { display:none; }
body :is(a,button,input,select,textarea,summary):focus-visible {
  outline:3px solid #5478ae; outline-offset:4px;
}
body .home-header { padding-top:20px; background:transparent; border:0; }
body .home-header-inner,body.studio-site .home-header-inner {
  min-height:72px; border:1px solid var(--brand-line); border-radius:20px;
  background:#fff; box-shadow:0 4px 18px #09285e05;
  padding:10px 14px 10px 22px;
}
body .home-header .home-brand,body .home-footer .home-brand { color:var(--brand-navy); }
body .home-brand-dot,body .brand-dot { color:var(--brand-red)!important; }
body .home-header nav>a { color:#46546c; font-weight:650; }
body .home-header nav>a:is(:hover,[aria-current="page"]) {
  color:var(--brand-navy)!important; text-decoration-color:var(--brand-red)!important;
  text-decoration-thickness:3px; text-underline-offset:8px;
}
body .home-header [data-tool-finder] {
  color:#fff!important; background:var(--brand-action-fill) border-box!important;
  border:1px solid transparent!important; border-radius:12px!important;
  box-shadow:inset 0 1px 0 #ffffff59,0 2px 0 #041230,0 6px 14px #09285e33!important; text-shadow:none!important;
}
body .home-header [data-tool-finder]:hover:not(:disabled) { background:var(--brand-action-hover) border-box!important; }
/* Shared actions replace the previous glossy button finish. */
body :is(.home-submit,.guide-search button,.home-empty button,.primary,.office-primary,
  #office-download,.office-file-button,.id-file-button,.guide-tool-links a) {
  background:var(--brand-action-fill) border-box!important; color:#fff!important; border:1px solid transparent!important;
  box-shadow:inset 0 1px 0 #ffffff59,0 2px 0 #041230,0 8px 18px #09285e38!important; text-shadow:none!important;
  border-radius:12px!important; font-weight:700; transition:background .16s,transform .16s;
}
body :is(.home-submit,.guide-search button,.home-empty button,.primary,.office-primary,
  #office-download,.office-file-button,.id-file-button,.guide-tool-links a):hover:not(:disabled) {
  background:var(--brand-action-hover) border-box!important; border-color:transparent!important; box-shadow:inset 0 1px 0 #ffffff66,0 2px 0 #041230,0 10px 22px #09285e47!important; transform:translateY(-1px);
}
body :is(.home-filters button[aria-pressed="true"],.guide-tabs a[aria-current="page"],
  .find-tabs button[aria-pressed="true"],.finder-tabs button[aria-pressed="true"],
  .presets button.active) {
  background:var(--brand-navy)!important; color:#fff!important;
  border-color:var(--brand-navy)!important; box-shadow:inset 0 1px 0 #ffffff59,0 2px 0 #041230,0 6px 14px #09285e33!important; text-shadow:none!important;
}
body .home-filters button[aria-pressed="true"] span { color:#dce5f5; }
body :is(.home-filters button,.catalog-jumps a,.guide-tabs a,.home-suggestions button) {
  border-radius:10px; border-color:var(--brand-line); box-shadow:none;
}
body :is(.secondary,.office-secondary,.quiet,.download-button,.home-more) {
  color:var(--brand-navy); background:#fff; border-color:#cbd4e2;
  border-radius:11px; box-shadow:none;
}
body :is(.home-eyebrow,.eyebrow,.office-kicker,.id-eyebrow,.guide-eyebrow) {
  color:var(--brand-navy); background:#fff; border-color:var(--brand-line);
  border-radius:8px; box-shadow:none;
}
body :is(.home-eyebrow>span,.eyebrow::before,.office-kicker::before,.id-eyebrow::before,.guide-eyebrow::before) {
  background:var(--brand-red); box-shadow:none;
}
body :is(.studio-accent,.home-hero h1 em) {
  color:var(--brand-navy)!important; background:none; -webkit-text-fill-color:currentColor;
}
body :is(.section-kicker,.home-kicker,.small-label) { color:#64738a; }
body .home-search {
  border-color:#d4dbe6; border-radius:14px; box-shadow:0 5px 18px #09285e06;
}
body .home-search:focus-within { border-color:#627da7; box-shadow:0 0 0 3px #09285e14; }
body .home-submit { min-height:46px; min-width:72px; }
body :is(.home-tool,.directory-card,.office-card,.guide-card,.guide-card-v2) {
  background:#fff; border:1px solid var(--brand-line); border-radius:18px;
  box-shadow:none; transition:border-color .16s,transform .16s,box-shadow .16s;
}
body :is(.home-tool,.directory-card,.office-card,.guide-card,.guide-card-v2):hover {
  border-color:#94a5c0; box-shadow:0 8px 24px #09285e0a; transform:translateY(-2px);
}
body .home-tool { min-height:112px; padding:20px; }
body .home-tool h3 { color:var(--brand-navy); font-weight:700; }
body .home-tool p { color:var(--brand-muted); }
body .home-tool-category { color:#68758a; }
body .home-tool-arrow { color:var(--brand-red); }
body :is(.home-tool-icon,.directory-mark,.office-icon,.office-format-icon) {
  background:#edf1f7; border-color:#dce4ee; color:var(--brand-navy); box-shadow:none;
}
body .home-tool-icon.pdf { background:#fff0f2; border-color:#f0d8de; color:#b51836; }
body .home-tool-icon.document { background:#edf1f7; border-color:#dce4ee; color:var(--brand-navy); }
body .home-toolbox { padding-top:34px; padding-bottom:40px; }
body .home-confidence {
  background:#edf1f7; border:1px solid #dce4ee; border-radius:20px; box-shadow:none;
}
body .home-confidence :is(h2,a),body .home-lock { color:var(--brand-navy); }
body .home-confidence p { color:var(--brand-muted); }
body .home-lock { background:#fff; border-color:#dce4ee; }
body .home-how li>span { background:#fff; border:1px solid #d7dfeb; color:var(--brand-red); border-radius:12px; }
body .tool-guide-entry { background:transparent; border-color:var(--brand-line); color:var(--brand-navy); }
body .home-footer,body.studio-site .home-footer {
  background:transparent; border-top:1px solid #ccd5e2; color:var(--brand-muted); padding-top:28px;
}
/* Homepage: the logo's two colors form a calm, bold opening. */
body.brand-home .home-hero {
  display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr); align-items:center;
  gap:24px; width:min(calc(100% - var(--gutter)*2),var(--shell)); max-width:1120px;
  margin:22px auto 0; padding:40px 48px 28px; border-radius:28px;
  background:#09285e; text-align:left; overflow:hidden; color:#fff;
}
.brand-home .hero-copy { position:relative; z-index:1; min-width:0; }
body.brand-home .home-eyebrow {
  color:#fff; background:#ffffff0d; border-color:#ffffff30; padding:5px 10px;
  letter-spacing:.01em; font-size:12px;
}
body.brand-home .home-eyebrow>span { background:#ff5472; width:6px; height:6px; }
body.brand-home .home-hero h1 {
  font-size:clamp(43px,4.2vw,60px); line-height:1.17; letter-spacing:-.065em;
  color:#fff; margin:16px 0;
}
body.brand-home .home-hero h1 em { color:#fff!important; background:none; -webkit-text-fill-color:#fff; }
.brand-home .hero-copy>p { font-size:15px; line-height:1.8; color:#c8d5e9; margin:0; letter-spacing:-.025em; }
body.brand-home .home-search { margin:20px 0 0; max-width:100%; min-height:64px; border:1px solid #fff; box-shadow:0 8px 20px #00000012; }
body.brand-home .home-search:focus-within { box-shadow:0 0 0 4px #94b8ee60; }
body.brand-home .home-search>svg { color:#718099; }
body.brand-home .home-suggestions { justify-content:flex-start; gap:7px; margin-top:14px; }
body.brand-home .home-suggestions>span { color:#bdcce3; font-size:11px; }
body.brand-home .home-suggestions button {
  color:#e0e8f6; border:1px solid #ffffff2b; background:#ffffff08; font-size:12px; padding:5px 10px;
}
body.brand-home .home-suggestions button:hover { background:#ffffff15; border-color:#b9c9e1; }
.brand-exchange { position:relative; height:310px; width:100%; max-width:360px; margin:auto; }
.brand-exchange::before {
  content:""; position:absolute; inset:18px 7px 13px; border:1px solid #ffffff16;
  border-radius:46px; transform:rotate(-12deg);
}
.brand-exchange::after {
  content:""; position:absolute; width:220px; height:1px; background:#ffffff35;
  top:155px; left:50%; transform:translateX(-50%) rotate(37deg); z-index:0;
}
.exchange-mark {
  position:absolute; z-index:2; width:148px; height:148px; left:50%; top:50%;
  transform:translate(-50%,-50%); border-radius:31px; box-shadow:0 17px 35px #00112c40;
}
.exchange-file {
  position:absolute; z-index:3; display:flex; flex-direction:column; justify-content:space-between;
  width:100px; height:118px; padding:16px; border-radius:17px; box-sizing:border-box;
  font-family:"Bakkwo Sans",sans-serif; box-shadow:0 12px 24px #00112c20;
}
.exchange-file svg { width:28px; height:28px; flex-shrink:0; stroke:currentColor; stroke-width:1.6; fill:none; }
.exchange-file strong { font-size:22px; line-height:1; letter-spacing:-.03em; }
.exchange-file small { font-size:11px; font-weight:600; letter-spacing:0; margin-top:5px; white-space:nowrap; }
.exchange-file.source { left:2px; top:7px; background:#fff; color:#09285e; transform:rotate(-10deg); }
.exchange-file.target { right:0; bottom:4px; background:#e31537; color:#fff; transform:rotate(9deg); }
.exchange-note { position:absolute; right:4px; top:18px; color:#bacbe5; font-size:11px; line-height:1.6; letter-spacing:.02em; }
.exchange-spark { position:absolute; left:28px; bottom:30px; font:300 35px/1 Arial,sans-serif; color:#dce6f5; }
.brand-home .brand-promise {
  grid-column:1/-1; display:flex; align-items:center; flex-wrap:wrap; gap:12px 26px;
  margin-top:0; padding-top:20px; border-top:1px solid #ffffff20; color:#cbd8ec; font-size:12px;
}
.brand-promise span { display:inline-flex; align-items:center; gap:7px; }
.brand-promise svg { width:15px; height:15px; fill:none; stroke:#ff7289; stroke-width:1.8; }
/* Directory and upload screens keep the focus on the next action. */
body.directory-studio .home-hero { padding-top:44px; padding-bottom:26px; }
body.directory-studio .home-hero :is(.directory-illustration,.format-fan) { display:none; }
body.directory-studio .home-hero h1 { color:var(--brand-navy); }
body.directory-studio .home-hero h1 em { color:var(--brand-red)!important; }
body.directory-studio { --category:#09285e; --tint:#edf1f7; --rule:#d7dfeb; }
body.directory-studio[data-section="pdf"] { --category:#b51836; --tint:#fff0f2; --rule:#efd7de; }
body .catalog-jumps a:hover { color:var(--brand-navy); border-color:#8da1c1; background:#edf1f7; }
body :is(.pdf-workspace,.workspace,.office-workspace,.id-workspace,.up-workspace,
  .studio-preview-panel,.studio-control-panel,.studio-existing-controls) {
  border-color:#d8dfe9; background:#fff; box-shadow:0 8px 26px #09285e06;
}
body.tool-studio :is(.dropzone,.pdf-dropzone,.office-upload,.id-upload) {
  background:#f5f7fb!important; border-color:#9aaecb!important; box-shadow:none!important;
}
body.tool-studio :is(.dropzone,.pdf-dropzone,.office-upload,.id-upload):hover {
  border-color:var(--brand-navy)!important; background:#eef2f8!important;
}
body.tool-studio :is(.dropzone,.pdf-dropzone,.office-upload,.id-upload).dragging {
  background:#e6edf8!important; border-color:var(--brand-red)!important;
}
body.tool-studio :is(.file-art,.office-upload-icon,.id-upload-icon) svg { background:var(--brand-navy)!important; }
body .steps .current { color:var(--brand-navy); }
body .steps .current b { color:#fff; background:var(--brand-navy); border-color:var(--brand-navy); }
body :is(.format-badge,.pdf-nav-link,.group-count) { color:var(--brand-navy); background:#edf1f7; border-color:#d7dfeb; }
body :is(.text-button,.home-text-link,.guide-back,.guide-aside a) { color:var(--brand-navy); }
body :is(.guide-tabs a:hover,.find-item:hover,.finder-items a:hover) { background:#edf1f7; border-color:#c5d1e3; }
body :is(.guide-card h2,.guide-article h1,.guide-article h2,.guide-group h2) { color:var(--brand-navy); }
body :is(.guide-aside,.guide-bottom,.guide-sources,.guide-directory-intro) { border-color:#d7dfeb; }
body .find-brand { color:var(--brand-navy); }
body dialog:is(.site-bookmark-dialog,.finder-studio) { background:#fff; border-color:var(--brand-line); color:var(--brand-ink); }
body .finder-studio .find-head { background:#edf1f7; border-bottom-color:#d7dfeb; }
body .finder-studio #finder-title em { color:var(--brand-navy); }
body :is(.bookmark-icon,.bookmark-home-step,.bookmark-tip) { background:#edf1f7; color:var(--brand-navy); border-color:#d7dfeb; box-shadow:none; }
body .bookmark-home-step a { background:var(--brand-navy); color:#fff; border-color:var(--brand-navy); box-shadow:none; }
body .site-bookmark-dialog .bookmark-copy { background:var(--brand-navy); color:#fff; border-color:var(--brand-navy); }
/* Admin shares the palette without changing any data or authentication flow. */
body.brand-stats .auth-intro { background:#09285e; }
body.brand-stats :is(.auth-intro h1>span,.heading h1>span) { color:#f13352; }
body.brand-stats .auth-stage { border:1px solid var(--brand-line); box-shadow:0 16px 48px #09285e09; }
body.brand-stats .metric { border-color:var(--brand-line); box-shadow:none; }
body.brand-stats :is(.product-name,.header-nav a.active,.section-heading h2) { color:var(--brand-navy); }
body.brand-stats .intro-badge { background:#ffffff0c; border-color:#ffffff30; }
body.brand-stats .auth-lock { color:var(--brand-navy); background:#edf1f7; }
body.brand-stats .journey>div>span { background:#ffffff10; color:#fff; }
@media(max-width:1000px) {
  body.brand-home .home-hero { padding:38px 32px 30px; gap:22px; }
  .brand-exchange { transform:scale(.88); transform-origin:center; }
  body.brand-home .home-hero h1 { font-size:52px; }
}
@media(max-width:710px) {
  body .home-header { padding-top:12px; }
  body .home-header-inner,body.studio-site .home-header-inner { min-height:0; border-radius:18px; padding:11px 13px 5px; }
  body .home-header nav { border-top-color:#e4e8ef; }
  body .home-header [data-tool-finder] { top:12px!important; right:12px; min-height:32px; }
  body.brand-home .home-hero { display:block; margin-top:16px; padding:29px 24px 23px; border-radius:22px; }
  body.brand-home .home-hero h1 { font-size:clamp(39px,7.3vw,52px); margin:18px 0 14px; }
  .brand-home .hero-copy>p { font-size:14px; }
  .brand-exchange { display:none; }
  body.brand-home .home-search { margin-top:22px; min-height:60px; padding:6px 6px 6px 13px; gap:9px; }
  body.brand-home .home-search input { font-size:15px; }
  body.brand-home .home-submit { min-width:62px; min-height:44px; }
  body.brand-home .home-suggestions { gap:6px; }
  body.brand-home .home-suggestions>span { width:100%; margin-bottom:1px; }
  .brand-home .brand-promise { margin-top:23px; padding-top:18px; gap:10px 16px; font-size:11px; }
  body .home-toolbox { padding-top:28px; padding-bottom:28px; }
  body .home-tool { min-height:100px; padding:17px; border-radius:15px; }
  body .home-tool p { font-size:13px; }
  body.directory-studio .home-hero { padding-top:28px; padding-bottom:18px; }
}
@media(prefers-reduced-motion:reduce) {
  body :is(.home-tool,.directory-card,.office-card,.guide-card,.guide-card-v2) { transition:none; }
}
/* Larger labels and measured padding keep the diagonal behind readable text. */
body :is(.home-submit,.guide-search button,.home-empty button,.primary,.office-primary,
  #office-download,.office-file-button,.id-file-button,.guide-tool-links a) {
  font-size:16px!important; font-weight:700!important; line-height:1.5!important;
  letter-spacing:.01em!important; min-height:48px!important;
  text-shadow:0 1px 1px rgb(0 10 32 / .32)!important;
}
body :is(.home-submit,.guide-search button) { min-width:80px!important; padding-inline:16px!important; }
html body .home-header nav button#site-bookmark-trigger[data-site-bookmark] {
  width:124px; min-width:124px; max-width:124px; height:44px; min-height:44px; max-height:44px;
  padding:8px 16px; font-size:15px; line-height:1.5; letter-spacing:.01em;
  text-shadow:0 1px 1px rgb(0 10 32 / .32)!important;
}
@media(max-width:710px) {
  body :is(.home-submit,.guide-search button,.home-empty button,.primary,.office-primary,
    #office-download,.office-file-button,.id-file-button,.guide-tool-links a) {
    font-size:15px!important; min-height:46px!important;
  }
  body :is(.home-submit,.guide-search button) { min-width:72px!important; padding-inline:13px!important; }
  html body .home-header nav button#site-bookmark-trigger[data-site-bookmark] {
    width:108px; min-width:108px; max-width:108px; height:36px; min-height:36px; max-height:36px;
    padding:5px 11px; font-size:14px; line-height:1.5;
  }
}
@media(forced-colors:active) {
  body :is(.primary,.office-primary,.home-submit,.office-file-button,.id-file-button,.home-header [data-tool-finder]) {
    background:ButtonFace!important; color:ButtonText!important; border-color:ButtonText!important; text-shadow:none!important;
  }
  body.brand-home .home-hero { border:1px solid CanvasText; }
}

/* navy 3D press (2026-11-13) */
body :is(.home-header [data-tool-finder],.home-submit,.guide-search button,.home-empty button,.primary,.office-primary,#office-download,.office-file-button,.id-file-button,.guide-tool-links a):active:not(:disabled){transform:translateY(2px)!important;box-shadow:inset 0 1px 0 #ffffff40,0 0 0 #041230,0 3px 8px #09285e38!important}
body :is(.primary,.office-primary,.home-submit):disabled{box-shadow:none!important;filter:saturate(.55) brightness(1.25)}

/* 2026-11-14: small grey labels were below the 4.5:1 contrast guideline (Google speed test, accessibility) */
body :is(.section-kicker,.home-kicker,.small-label){color:#566379}
body :is(.steps,.pdf-steps){color:#566379}
body .steps span:not(.current):not(.active):not([aria-current]) b{color:#4d5a70}
body .office-flow li:not([data-state=current]):not([data-state=done]):not([aria-current]){color:#566379}
body .office-flow li:not([data-state=current]):not([data-state=done]):not([aria-current])>span{color:#4d5a70}
body .suite-upload-steps li:not(:first-child){color:#566379}
body .suite-upload-steps li:not(:first-child)>span{color:#4d5a70}
body :is(#pdf-limits,.suite-upload-subtitle,.pdf-choice-copy small,.how-grid article p,.faq-list details p){color:#566379}
