/* ONEOFFICEAUTOMATION portals: one look for docs, support, downloads and store ("look A, brand site", chosen 3 Dec 2026).
   Colours, fonts and logo follow oneofficeautomation.com. Fonts and logo are served by each portal itself (brand/ next
   to this file), so the strict Content-Security-Policy ('self' only) still holds.
   Contrast (WCAG, measured): --ink on white 15.0; --ink-2 on white 10.8; --muted on white 7.7, on --soft 7.1;
   --link on white 8.1, on --soft 7.6; white on --blue 4.8; white on --navy 13.6; --on-navy on --navy 9.1; --sky on --navy 6.8;
   --ok 5.5, --warn 5.0, --bad 6.0 on white. Field and control borders (--edge) 3.6:1. Every text pair is above 4.5:1.

   Markup every portal uses (see README.md):
     <a class="skip" href="#main">Skip to content</a>
     <header class="site-header"><div class="wrap">
       <a class="logo" href="/"><img src="brand/logo.svg" alt="ONEOFFICEAUTOMATION"><span class="portal">Store</span></a>
       <nav class="site-nav" aria-label="Main">…<a aria-current="page">…</a></nav>
       <div class="site-actions">…</div></div></header>
     <section class="hero"><div class="wrap">…</div></section>       (navy band; .hero.slim for inner pages)
     <main id="main" class="wrap page">…</main>
     <footer class="site-footer">…</footer> */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("brand/fonts/inter-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("brand/fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("brand/fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("brand/fonts/poppins-latin-700-normal.woff2") format("woff2"); }

:root {
  --navy: #1F2A5C; --navy-2: #26326A; --navy-deep: #172048; --on-navy: #C9D3F2; --sky: #8FB8FF;
  --ink: #1B2350; --ink-2: #353e4c; --muted: #4A5175; --edge: #7d8797; --line: #DFE4F3;
  --soft: #F4F6FD; --tint: #EEF2FC; --white: #ffffff;
  --blue: #1F74C9; --blue-dark: #174ba6; --link: #174ba6; --violet: #6D4AD8;
  --ok: #17794a; --ok-bg: #e6f4ec; --warn: #8a5200; --warn-bg: #fdf1de; --bad: #b42318; --bad-bg: #fdecea;
  --r-sm: 6px; --r-md: 10px; --r-lg: 14px;
  --shadow: 0 1px 2px rgba(20, 28, 70, .06), 0 10px 28px -10px rgba(20, 28, 70, .18);
  --shadow-lg: 0 2px 4px rgba(10, 16, 51, .12), 0 28px 64px -18px rgba(10, 16, 51, .45);
  --display: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, Consolas, "Cascadia Mono", monospace;
  --wrap: 1200px; --ctl: 38px;
  color-scheme: light;
  /* names the earlier brand.css used, kept so older pages still read */
  --bg: var(--white); --fg: var(--ink); --card: var(--soft); --accent: var(--blue); --accent-fg: var(--white); --radius: var(--r-md); --font: var(--text);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--white); color: var(--ink); font: 15px/1.55 var(--text); text-rendering: optimizeLegibility; }
img, svg, video { max-width: 100%; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 3px; }
code, kbd, .mono { font-family: var(--mono); font-size: .88em; }
code { background: var(--tint); padding: 1px 5px; border-radius: 4px; }
pre { background: var(--navy-deep); color: #e8ecf8; padding: 14px 16px; border-radius: var(--r-md); overflow-x: auto; }
pre code { background: none; padding: 0; color: inherit; }
hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.muted { color: var(--muted); }
.ok { color: var(--ok); } .warn { color: var(--warn); } .bad { color: var(--bad); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Layout */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }
.page { padding-top: 32px; padding-bottom: 64px; }
main { display: block; }
main:not(.wrap) { max-width: var(--wrap); margin: 0 auto; padding: 32px 24px 64px; } /* older pages without .wrap */
.section { margin-top: 40px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.cols { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.cols-2 { display: grid; gap: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: flex; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
.split > .main { flex: 999 1 560px; min-width: 0; } .split > .side { flex: 1 1 260px; min-width: 0; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }

/* Type */
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); letter-spacing: -0.015em; }
h1 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12; font-weight: 700; margin: 0 0 10px; }
h2 { font-size: 22px; line-height: 1.25; font-weight: 600; margin: 0 0 10px; }
h3 { font-size: 17px; line-height: 1.3; font-weight: 600; margin: 18px 0 6px; }
h4 { font-size: 15px; font-weight: 600; margin: 14px 0 4px; }
p { margin: 0 0 12px; }
.lead { font-size: 17px; color: var(--ink-2); max-width: 62ch; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-dark); margin-bottom: 6px; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo img { height: 40px; width: auto; display: block; }
.logo .portal { font: 600 15px var(--display); border-left: 1px solid var(--line); padding-left: 12px; color: var(--ink); }
.site-nav { display: flex; gap: 22px; flex-wrap: wrap; font-weight: 500; font-size: 14px; }
.site-nav a { color: var(--ink-2); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--line); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--blue); font-weight: 600; }
.site-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.site-actions a:not(.btn) { color: var(--ink-2); text-decoration: none; }
.site-actions a:not(.btn):hover { color: var(--ink); text-decoration: underline; }
/* older pages: .topbar */
.topbar { background: var(--white); border-bottom: 1px solid var(--line); }
.topbar .in { max-width: var(--wrap); margin: 0 auto; padding: 12px 24px; display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.topbar .brand { font: 700 16px var(--display); color: var(--ink); text-decoration: none; }
.topbar nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; font-weight: 500; }
.topbar nav a { color: var(--ink-2); text-decoration: none; }
.topbar nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

/* Hero band */
.hero { background: var(--navy); color: var(--white); }
.hero .wrap { padding-top: 48px; padding-bottom: 52px; display: flex; gap: 40px; align-items: center; flex-wrap: wrap; }
.hero .hero-text { flex: 1 1 460px; min-width: 0; }
.hero .hero-media { flex: 1 1 420px; min-width: 0; }
.hero h1 { color: var(--white); font-size: clamp(30px, 4vw, 44px); }
.hero .lead, .hero p { color: var(--on-navy); }
.hero .eyebrow { color: var(--sky); }
.hero a:not(.btn) { color: var(--sky); }
.hero.slim .wrap { padding-top: 28px; padding-bottom: 28px; }
.hero.slim h1 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 6px; }
.hero .crumbs, .hero .crumbs a { color: var(--on-navy); }
.hero-points { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 16px; font-size: 14px; color: var(--on-navy); padding: 0; list-style: none; }
.hero-points li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--sky); margin-right: 8px; vertical-align: 1px; }

/* Breadcrumbs */
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: inherit; text-decoration: none; } .crumbs a:hover { text-decoration: underline; }
.crumbs span[aria-hidden] { margin: 0 6px; }

/* Buttons and controls: one height, one radius, one border */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--ctl); padding: 0 16px; border-radius: var(--r-sm);
  background: var(--blue); color: var(--white); border: 1px solid var(--blue); font: 600 14px/1 var(--text); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: var(--white); }
.btn.secondary, .btn.ghost { background: var(--white); color: var(--blue-dark); border-color: var(--blue); }
.btn.secondary:hover, .btn.ghost:hover { background: var(--tint); color: var(--blue-dark); }
.btn.on-navy { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn.on-navy:hover { background: var(--tint); color: var(--navy); }
.btn.danger { background: var(--white); color: var(--bad); border-color: var(--bad); }
.btn.big { min-height: 46px; padding: 0 22px; font-size: 15px; }
.btn.small { min-height: 30px; padding: 0 10px; font-size: 13px; }
.btn[disabled], .btn.is-disabled { opacity: .55; cursor: not-allowed; }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="url"], input[type="number"], input[type="date"], input:not([type]), select, textarea {
  min-height: var(--ctl); padding: 7px 12px; border: 1px solid var(--edge); border-radius: var(--r-sm); font: 14px/1.4 var(--text); color: #17202b; background: var(--white); max-width: 100%; }
textarea { min-height: 110px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(31, 116, 201, .35); outline-offset: 0; border-color: var(--blue); }
label { font-weight: 600; font-size: 14px; }
.field { display: grid; gap: 4px; margin-bottom: 14px; }
.field .hint { font-weight: 400; font-size: 13px; color: var(--muted); }
.check { font-weight: 400; display: inline-flex; gap: 8px; align-items: center; }
.search { display: flex; gap: 8px; max-width: 620px; width: 100%; }
.search input { flex: 1; min-height: 48px; font-size: 15px; padding-inline: 16px; }
.search .btn { min-height: 48px; padding: 0 22px; font-size: 15px; }

/* Cards and tiles */
.card { border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; background: var(--white); margin: 14px 0; }
.card.soft { background: var(--soft); }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.cols > .card, .cols-2 > .card, .cols-3 > .card, .cols-4 > .card { margin: 0; }
.tile { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); color: var(--ink); text-decoration: none; transition: box-shadow .15s ease, border-color .15s ease; }
a.tile:hover { border-color: var(--blue); box-shadow: var(--shadow); color: var(--ink); }
.tile .icon { flex: none; }
.tile strong { display: block; font: 600 16px/1.3 var(--display); }
.tile span.desc { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
.icon { width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--tint); color: var(--blue-dark); display: inline-flex; align-items: center; justify-content: center; }
.icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon.violet { color: var(--violet); }
.item-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--white); box-shadow: 0 1px 2px rgba(20, 28, 70, .06); color: var(--ink); text-decoration: none; }
a.item-card:hover { border-color: var(--blue); box-shadow: var(--shadow); color: var(--ink); }
.item-card .thumb { aspect-ratio: 16 / 9; background: var(--soft); border-bottom: 1px solid var(--line); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.item-card .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.item-card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.item-card h3 { margin: 0; }
.item-card .meta { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }

/* Badges and tags */
.badge, .tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 1px 9px; border-radius: 999px; background: var(--tint); color: var(--blue-dark); border: 1px solid transparent; white-space: nowrap; vertical-align: 2px; }
.tag { margin-left: 8px; }
.badge.outline { background: var(--white); border-color: var(--line); color: var(--ink-2); }
.badge.ok, .badge.good { background: var(--ok-bg); color: var(--ok); }
.badge.warn, .badge.pending { background: var(--warn-bg); color: var(--warn); }
.badge.bad, .badge.danger { background: var(--bad-bg); color: var(--bad); }
.badge.navy { background: var(--navy); color: var(--white); }

/* Notices */
.notice { border: 1px solid var(--line); border-left-width: 1px; border-radius: var(--r-md); padding: 12px 14px; background: var(--soft); margin: 14px 0; display: flex; gap: 10px; }
.notice.ok { background: var(--ok-bg); border-color: #b5dcc6; color: var(--ink); }
.notice.warn { background: var(--warn-bg); border-color: #f0cf9a; color: var(--ink); }
.notice.bad { background: var(--bad-bg); border-color: #f3b8b2; color: var(--ink); }

/* Tables: dense, lined, a header row */
.scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
.scroll > table { border: 0; }
th { text-align: left; font-weight: 600; font-size: 13px; color: var(--ink-2); background: var(--soft); border-bottom: 1px solid var(--line); padding: 9px 12px; white-space: nowrap; }
td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fafbfe; }
th.num, td.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Screenshot frame */
.shot { margin: 16px 0; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); }
.hero .shot { border-color: rgba(255, 255, 255, .18); box-shadow: var(--shadow-lg); margin: 0; }
.shot .bar { height: 26px; background: var(--soft); border-bottom: 1px solid var(--line); display: flex; gap: 6px; align-items: center; padding: 0 10px; }
.shot .bar i { width: 9px; height: 9px; border-radius: 50%; background: #c9cfdd; display: block; }
.shot img { display: block; width: 100%; height: auto; }
figure { margin: 0; } figcaption { font-size: 13px; color: var(--muted); padding: 8px 2px 0; }

/* Steps, timeline, empty state, pager */
.steps { counter-reset: step; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); padding: 0; list-style: none; }
.steps li { counter-increment: step; background: var(--tint); border-radius: var(--r-lg); padding: 16px 18px; }
.steps li::before { content: counter(step); display: inline-flex; width: 30px; height: 30px; border-radius: 8px; background: var(--white); color: var(--violet); font: 700 15px var(--display); align-items: center; justify-content: center; margin-bottom: 8px; }
.steps li strong { display: block; font: 600 16px var(--display); margin-bottom: 2px; }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.timeline > li { position: relative; padding: 0 0 18px 20px; }
.timeline > li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--white); border: 2px solid var(--blue); }
.empty { text-align: center; padding: 40px 20px; border: 1px dashed var(--edge); border-radius: var(--r-lg); color: var(--ink-2); background: var(--soft); }
.empty .icon { margin-bottom: 10px; }
.pager { display: flex; gap: 14px; align-items: center; margin-top: 14px; }

/* Side menu (help centre, docs-like pages, admin) */
.side-nav { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.side-nav .head { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); padding: 14px 12px 4px; }
.side-nav a { padding: 7px 12px; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; }
.side-nav a:hover { background: var(--soft); }
.side-nav a[aria-current="page"] { background: var(--tint); color: var(--blue-dark); font-weight: 600; }

/* Footer */
.site-footer { background: var(--navy-deep); color: var(--on-navy); font-size: 14px; margin-top: 0; }
.site-footer .wrap { display: grid; gap: 28px; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); padding-top: 40px; padding-bottom: 28px; }
.site-footer .logo-pill { display: inline-block; background: var(--white); border-radius: var(--r-sm); padding: 6px 10px; }
.site-footer .logo-pill img { height: 30px; display: block; }
.site-footer h2 { color: var(--white); font: 600 14px var(--text); margin: 0 0 10px; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--on-navy); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer .legal { border-top: 1px solid rgba(255, 255, 255, .14); }
.site-footer .legal .wrap { display: flex; gap: 18px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 18px; font-size: 13px; grid-template-columns: none; }

/* Phones and tablets */
@media (max-width: 900px) {
  .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .wrap, main:not(.wrap) { padding-inline: 16px; }
  .cols-2, .cols-3, .cols-4 { grid-template-columns: minmax(0, 1fr); }
  .site-header { position: static; }
  .site-header .wrap { gap: 10px 18px; }
  .site-actions { margin-left: 0; }
  .logo img { height: 34px; }
  .hero .wrap { padding-top: 32px; padding-bottom: 36px; }
  .search { flex-direction: column; } .search .btn { width: 100%; }
  .site-footer .wrap { grid-template-columns: minmax(0, 1fr); }
}
@media print { .site-header, .site-footer, .hero .hero-media { display: none; } .hero { background: none; color: var(--ink); } .hero h1 { color: var(--ink); } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
