/*
Theme Name: PolarOne Fast
Theme URI: https://www.polarone.co.uk/
Author: PolarOne
Description: A lightweight, purpose-built WordPress theme for the PolarOne platform and marketing website. No frameworks, no external fonts and no unnecessary front-end assets.
Version: 1.0.2
Requires at least: 6.2
Tested up to: 6.6
Requires PHP: 8.0
Text Domain: polarone-fast
License: GPL-2.0-or-later
*/

:root {
  --po-theme-navy: #0b2348;
  --po-theme-blue: #0877ef;
  --po-theme-cyan: #61d8ff;
  --po-theme-text: #102342;
  --po-theme-muted: #617493;
  --po-theme-bg: #f4f8fd;
  --po-theme-white: #fff;
  --po-theme-border: #d9e5f3;
  --po-theme-radius: 22px;
  --po-theme-width: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--po-theme-bg);
  color: var(--po-theme-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--po-theme-blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  clip: auto !important; width: auto; height: auto; margin: 0; padding: 12px 16px;
  left: 12px; top: 12px; z-index: 100000; background: #fff; color: #111;
}
.po-theme-container { width: min(calc(100% - 40px), var(--po-theme-width)); margin-inline: auto; }
.po-theme-site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--po-theme-border); backdrop-filter: blur(12px);
}
.po-theme-header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.po-theme-brand { color: var(--po-theme-navy); font-size: 27px; font-weight: 850; letter-spacing: -1.2px; text-decoration: none; }
.po-theme-brand span { color: var(--po-theme-blue); }
.po-theme-nav { display: flex; align-items: center; gap: 28px; }
.po-theme-nav ul { display: flex; align-items: center; gap: 24px; list-style: none; margin: 0; padding: 0; }
.po-theme-nav a { color: var(--po-theme-text); font-weight: 650; text-decoration: none; }
.po-theme-nav a:hover, .po-theme-nav .current-menu-item > a { color: var(--po-theme-blue); }
.po-theme-menu-toggle { display: none; border: 0; border-radius: 12px; padding: 10px; background: #edf5ff; color: var(--po-theme-navy); cursor: pointer; }
.po-theme-main { min-height: 60vh; }
.po-theme-content { padding: 72px 0; }
.po-theme-article { max-width: 860px; margin-inline: auto; background: #fff; border: 1px solid var(--po-theme-border); border-radius: var(--po-theme-radius); padding: clamp(26px, 5vw, 58px); }
.po-theme-entry-title { margin: 0 0 24px; font-size: clamp(36px, 5vw, 64px); line-height: 1.03; letter-spacing: -2px; }
.po-theme-entry-content > *:first-child { margin-top: 0; }
.po-theme-entry-content > *:last-child { margin-bottom: 0; }
.po-theme-entry-content h2, .po-theme-entry-content h3 { color: var(--po-theme-navy); line-height: 1.15; }
.po-theme-entry-content h2 { margin-top: 2em; font-size: clamp(28px, 4vw, 42px); }
.po-theme-entry-content h3 { margin-top: 1.7em; font-size: clamp(22px, 3vw, 30px); }
.po-theme-entry-content p, .po-theme-entry-content li { color: #405779; }
.po-theme-entry-content blockquote { margin: 32px 0; padding: 20px 24px; border-left: 4px solid var(--po-theme-blue); background: #f5f9ff; border-radius: 0 16px 16px 0; }
.po-theme-site-footer { background: var(--po-theme-navy); color: rgba(255,255,255,.72); padding: 42px 0; }
.po-theme-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.po-theme-site-footer .po-theme-brand { color: #fff; }
.po-theme-site-footer p { margin: 0; }

/* PolarOne owns the complete shell on its generated pages. The theme stays out of the way. */
body.polarone-ui-page { background: #f4f8fd; }
body.polarone-ui-page .po-theme-site-header,
body.polarone-ui-page .po-theme-site-footer { display: none !important; }
body.polarone-ui-page .po-theme-main { min-height: 100vh; }
body.polarone-ui-page .po-theme-content { padding: 0; }
body.polarone-ui-page .po-theme-container { width: 100%; max-width: none; }
body.polarone-ui-page .po-theme-article { max-width: none; padding: 0; margin: 0; border: 0; border-radius: 0; background: transparent; }
body.polarone-ui-page .po-theme-entry-title { display: none; }

/* Prevent common theme defaults from changing PolarOne layouts. */
body.polarone-ui-page .po-page,
body.polarone-ui-page .po-app-layout,
body.polarone-ui-page .po-auth-page,
body.polarone-ui-page .po-customer-portal,
body.polarone-ui-page .po-engineer-portal { width: 100%; max-width: none; margin: 0; }
body.polarone-ui-page .entry-content { margin: 0; padding: 0; }

@media (max-width: 820px) {
  .po-theme-container { width: min(calc(100% - 28px), var(--po-theme-width)); }
  .po-theme-menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .po-theme-nav { display: none; position: absolute; inset: 76px 14px auto; padding: 18px; background: #fff; border: 1px solid var(--po-theme-border); border-radius: 18px; box-shadow: 0 20px 50px rgba(16,35,66,.15); }
  .po-theme-nav.is-open { display: block; }
  .po-theme-nav ul { align-items: stretch; flex-direction: column; gap: 0; }
  .po-theme-nav a { display: block; padding: 11px 8px; }
  .po-theme-footer-inner { align-items: flex-start; flex-direction: column; }
  .po-theme-content { padding: 40px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Primary PolarOne wordmark — transparent, fast and consistent with the plugin. */
.po-theme-brand{display:inline-flex;align-items:baseline;gap:0;font-family:Arial,Helvetica,sans-serif;font-size:26px;font-weight:900;letter-spacing:-1.45px;line-height:1;text-transform:uppercase;color:#102743;text-decoration:none;white-space:nowrap}
.po-theme-brand span{color:#12b7ec}
.site-footer .po-theme-brand{color:#fff}


/* v1.0.2 — keep sticky theme chrome below the WordPress admin toolbar. */
body.admin-bar .po-theme-site-header{top:32px}
@media(max-width:782px){body.admin-bar .po-theme-site-header{top:46px}}
