@font-face {
  font-family: Mirqam;
  src: url(./plex-700.woff2) format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Mirqam;
  src: url(./plex-400.woff2) format("woff2");
  font-weight: 400;
  font-display: swap;
}
/* Mirqam blog: shared semantic palette, original wordmarks and product fonts. */
:root {
  color-scheme: light;
  --mq-canvas: #f1f6f7;
  --mq-surface: #fff;
  --mq-glass: #ffffffed;
  --mq-ink: #172740;
  --mq-muted: #556375;
  --mq-line: #d3e1e5;
  --mq-accent: #0f6f74;
  --mq-primary: #172740;
  --mq-on-primary: #fff;
  --mq-tint: #eaf4f4;
  --mq-glow: #d8ecee;
  --mq-shadow: 0 14px 40px #17274008;
  --mq-radius: 22px;
  --mq-control: 14px;
  --mq-font: Mirqam, Tahoma, Arial, sans-serif;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --mq-canvas: #0e1a29;
  --mq-surface: #172740;
  --mq-glass: #172740ed;
  --mq-ink: #eaf4f4;
  --mq-muted: #b9c9dd;
  --mq-line: #30465f;
  --mq-accent: #8ac0c4;
  --mq-primary: #177e83;
  --mq-tint: #1b3c49;
  --mq-glow: #163646;
  --mq-shadow: 0 14px 40px #030b181c;
}
html[data-product="pos"] {
  --mq-canvas: #f7faf9;
  --mq-ink: #173a43;
  --mq-muted: #586f72;
  --mq-accent: #117980;
  --mq-primary: #12868c;
  --mq-tint: #e9f2ed;
  --mq-glow: #e2efeb;
}
html[data-product="pos"][data-theme="dark"] {
  --mq-canvas: #0e1a29;
  --mq-ink: #eaf4f4;
  --mq-muted: #b9c9dd;
  --mq-accent: #8ac0c4;
  --mq-primary: #177e83;
  --mq-tint: #1b3c49;
  --mq-glow: #163646;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}
body {
  margin: 0;
  background: radial-gradient(ellipse at 90% 0, var(--mq-glow), transparent 850px), var(--mq-canvas);
  color: var(--mq-ink);
  font-family: var(--mq-font);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}
button,
input {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
a {
  color: var(--mq-accent);
  text-underline-offset: 5px;
}
button {
  cursor: pointer;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--mq-accent);
  outline-offset: 5px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.55;
}
h1 {
  font-size: clamp(34px, 4.8vw, 60px);
  letter-spacing: -1px;
}
h2 {
  font-size: 28px;
}
h3 {
  font-size: 22px;
}
.wrap {
  width: min(1160px, calc(100% - 64px));
  margin-inline: auto;
}
.skip {
  position: fixed;
  inset-block-start: -100px;
  inset-inline-start: 24px;
  z-index: 100;
  background: var(--mq-surface);
  padding: 12px 20px;
  border-radius: var(--mq-control);
}
.skip:focus {
  inset-block-start: 12px;
}
.site-header {
  width: min(1280px, calc(100% - 48px));
  margin: 16px auto 0;
  border: 1px solid var(--mq-line);
  border-radius: 24px;
  background: var(--mq-glass);
  box-shadow: var(--mq-shadow);
}
.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 78px;
  padding: 12px 26px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--mq-ink);
  text-decoration: none;
  flex-shrink: 0;
}
.wordmark {
  width: 76px;
  height: 52px;
  display: block;
  object-fit: contain;
}
.wordmark-night {
  display: none;
}
html[data-theme="dark"] .wordmark-day {
  display: none;
}
html[data-theme="dark"] .wordmark-night {
  display: block;
}
.brand-label {
  padding-inline-start: 14px;
  border-inline-start: 1px solid var(--mq-line);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.5;
}
.brand-label small {
  display: block;
  font-family: Arial, sans-serif;
  font-weight: 400;
  font-size: 8px;
  letter-spacing: 1.3px;
  margin-top: 3px;
  line-height: 1.5;
}
.nav {
  display: flex;
  align-items: center;
  gap: 25px;
}
.nav a {
  text-decoration: none;
  color: var(--mq-muted);
  font-size: 14px;
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--mq-accent);
}
.nav a[aria-current="page"] {
  position: relative;
}
.nav a[aria-current="page"]:after {
  content: "";
  display: block;
  position: absolute;
  bottom: -9px;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--mq-accent);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 21px;
  border: 1px solid transparent;
  border-radius: var(--mq-control);
  background: var(--mq-primary);
  color: var(--mq-on-primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}
.button:hover {
  filter: brightness(1.08);
}
.button.secondary {
  background: var(--mq-surface);
  color: var(--mq-ink);
  border-color: var(--mq-line);
}
.theme-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--mq-line);
  border-radius: var(--mq-control);
  color: var(--mq-ink);
  background: var(--mq-surface);
}
.icon {
  width: 23px;
  height: 23px;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex-shrink: 0;
}
.sun {
  display: none;
}
html[data-theme="dark"] .moon {
  display: none;
}
html[data-theme="dark"] .sun {
  display: block;
}
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 70px;
  align-items: center;
  padding-block: 72px 66px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--mq-accent);
  font-size: 13px;
  font-weight: 700;
}
.eyebrow:before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.hero h1 {
  margin: 18px 0;
}
.hero h1 span {
  color: var(--mq-accent);
}
.lead {
  color: var(--mq-muted);
  font-size: 18px;
  line-height: 2;
  max-width: 680px;
}
.hero-actions {
  margin-top: 25px;
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}
.hero-note {
  font-size: 12px;
  color: var(--mq-muted);
}
.featured {
  position: relative;
  overflow: hidden;
  padding: 32px;
  border: 1px solid #4a6879;
  border-radius: 28px;
  background: linear-gradient(135deg, #172740, #204c59);
  color: #fff;
  box-shadow: 0 25px 60px #163f441c;
}
.featured:before,
.featured:after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  border: 1px solid #8ac0c42b;
  border-radius: 50%;
  inset-inline-end: -95px;
  top: -90px;
  pointer-events: none;
}
.featured:after {
  width: 300px;
  height: 300px;
  inset-inline-end: -125px;
  top: -120px;
}
.featured-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  color: #d7e9ea;
  font-size: 12px;
}
.feature-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid #ffffff25;
  background: #ffffff0d;
  border-radius: 16px;
}
.feature-icon .icon {
  width: 28px;
  height: 28px;
}
.featured h2 {
  margin: 30px 0 14px;
  font-size: 27px;
  position: relative;
}
.featured p {
  font-size: 15px;
  color: #d7e9ea;
  line-height: 1.9;
}
.featured a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  margin-top: 25px;
  border-bottom: 1px solid #8ac0c4;
  padding-bottom: 6px;
}
.featured a:hover {
  color: #b3d6d8;
}
.section-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  border-top: 1px solid var(--mq-line);
  padding-top: 28px;
  margin-bottom: 28px;
}
.section-top h2 {
  font-size: 29px;
  margin-top: 5px;
}
.count {
  color: var(--mq-muted);
  font-size: 12px;
  white-space: nowrap;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 64px;
}
.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--mq-glass);
  border: 1px solid var(--mq-line);
  border-radius: var(--mq-radius);
  padding: 28px;
  box-shadow: var(--mq-shadow);
  transition:
    transform 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--mq-accent);
  box-shadow: 0 15px 35px #1727400d;
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.card-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--mq-line);
  border-radius: 14px;
  background: var(--mq-tint);
  color: var(--mq-accent);
}
.num {
  font-family: Arial, sans-serif;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  color: var(--mq-muted);
}
.card h3 {
  margin-bottom: 12px;
  font-size: 24px;
}
.card h3 a {
  color: var(--mq-ink);
  text-decoration: none;
}
.card h3 a:hover {
  color: var(--mq-accent);
}
.card p {
  font-size: 15px;
  color: var(--mq-muted);
  line-height: 2;
  margin-bottom: 24px;
}
.card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--mq-line);
  margin-top: auto;
}
.read {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}
.reading-time {
  color: var(--mq-muted);
  font-size: 12px;
  white-space: nowrap;
}
.end-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 35px;
  border: 1px solid var(--mq-line);
  border-radius: var(--mq-radius);
  background: var(--mq-tint);
  margin-bottom: 70px;
}
.end-cta h2 {
  font-size: 27px;
  margin-bottom: 8px;
}
.end-cta p {
  font-size: 15px;
  color: var(--mq-muted);
}
.end-cta .button {
  flex-shrink: 0;
}
.site-footer {
  background: #172740;
  color: #eaf4f4;
  padding: 44px 0 22px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 50px;
}
.site-footer .brand {
  color: white;
}
.site-footer .brand-label {
  border-color: #3a5265;
}
.site-footer .wordmark-day {
  display: none;
}
.site-footer .wordmark-night {
  display: block;
}
.site-footer p {
  color: #b9c9dd;
  font-size: 14px;
  line-height: 2;
  margin-top: 17px;
  max-width: 380px;
}
.site-footer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: start;
  font-size: 14px;
}
.site-footer strong {
  margin-bottom: 5px;
}
.site-footer a:not(.brand) {
  color: #b9c9dd;
  text-decoration: none;
}
.site-footer a:hover {
  color: #fff;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #30465f;
  margin-top: 35px;
  padding-top: 20px;
  font-size: 12px;
  color: #b9c9dd;
}
.crumb {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--mq-muted);
  padding-top: 32px;
}
.crumb a {
  text-decoration: none;
}
.article-hero {
  padding-block: 30px 36px;
  max-width: 900px;
}
.article-hero h1 {
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.65;
  letter-spacing: -0.6px;
  margin: 18px 0;
}
.article-hero .lead {
  max-width: 850px;
  font-size: 18px;
}
.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--mq-muted);
  margin-top: 20px;
}
.author-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--mq-line);
  border-radius: 9px;
  background: var(--mq-surface);
}
.author-icon .icon {
  width: 18px;
  height: 18px;
}
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 800px) minmax(240px, 1fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 65px;
}
.article {
  min-width: 0;
  background: var(--mq-surface);
  border: 1px solid var(--mq-line);
  border-radius: var(--mq-radius);
  padding: 40px;
  font-size: 18px;
  line-height: 2.2;
  box-shadow: var(--mq-shadow);
}
.article section {
  scroll-margin-top: 30px;
}
.article p {
  margin-block: 18px;
}
.article > .intro {
  font-size: 19px;
  margin-top: 0;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--mq-line);
}
.article h2 {
  font-size: 26px;
  margin-top: 30px;
  line-height: 1.8;
}
.article h2:before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 20px;
  border-radius: 4px;
  background: var(--mq-accent);
  margin-inline-end: 10px;
  vertical-align: -1px;
}
.article li {
  margin-block: 8px;
}
.article ul {
  padding-inline-start: 24px;
}
.check {
  background: var(--mq-tint);
  padding: 20px 25px;
  border: 1px solid var(--mq-line);
  border-radius: 18px;
  margin-block: 28px;
}
.check h2 {
  margin: 0;
}
.check ul {
  margin-bottom: 0;
}
.sources {
  font-size: 15px;
}
.sources a {
  overflow-wrap: anywhere;
}
.article .cta {
  background: #172740;
  color: #eaf4f4;
  padding: 26px;
  border-radius: 18px;
  margin-block: 30px;
}
.article .cta h2 {
  margin: 0;
  font-size: 24px;
}
.article .cta h2:before {
  display: none;
}
.article .cta p {
  color: #b9c9dd;
  font-size: 15px;
  margin-block: 12px 20px;
}
.article .cta a {
  background: #fff;
  color: #172740;
}
.toc {
  position: sticky;
  top: 25px;
  background: var(--mq-glass);
  border: 1px solid var(--mq-line);
  border-radius: var(--mq-radius);
  padding: 24px;
  font-size: 14px;
}
.toc summary {
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.toc ol {
  padding-inline-start: 20px;
  margin: 18px 0;
}
.toc li {
  margin: 10px 0;
  color: var(--mq-muted);
  padding-inline-start: 3px;
}
.toc a {
  text-decoration: none;
}
.toc li a {
  color: var(--mq-muted);
}
.toc a:hover {
  color: var(--mq-accent);
}
.toc-bottom {
  border-top: 1px solid var(--mq-line);
  padding-top: 16px;
  margin-top: 16px;
}
.related {
  border-top: 1px solid var(--mq-line);
  padding-top: 5px;
}
.related li {
  font-size: 16px;
}
.related a {
  text-decoration: none;
}
.tnum {
  font-family: Arial, sans-serif;
  font-variant-numeric: tabular-nums;
}
@media (min-width: 1600px) {
  .wrap {
    width: min(1220px, calc(100% - 80px));
  }
}
@media (max-width: 1000px) {
  .bar {
    gap: 16px;
    padding-inline: 20px;
  }
  .nav {
    gap: 18px;
  }
  .nav .nav-family {
    display: none;
  }
  .hero {
    gap: 35px;
  }
  .hero h1 {
    font-size: 46px;
  }
  .featured {
    padding: 27px;
  }
  .featured h2 {
    font-size: 25px;
  }
  .article-layout {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 22px;
  }
  .article {
    padding: 30px;
  }
  .footer-grid {
    gap: 30px;
  }
}
@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 36px);
  }
  .site-header {
    width: calc(100% - 24px);
    margin-top: 12px;
    border-radius: 20px;
  }
  .bar {
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 16px;
  }
  .brand {
    gap: 10px;
  }
  .wordmark {
    width: 61px;
    height: 43px;
  }
  .brand-label {
    font-size: 18px;
    padding-inline-start: 10px;
  }
  .brand-label small {
    font-size: 6px;
    letter-spacing: 0.7px;
  }
  .header-actions {
    margin-inline-start: auto;
    gap: 8px;
  }
  .header-actions .button {
    min-height: 42px;
    font-size: 12px;
    padding: 8px 13px;
  }
  .theme-button {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }
  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
    border-top: 1px solid var(--mq-line);
    padding-top: 11px;
    gap: 30px;
  }
  .nav a {
    font-size: 13px;
  }
  .nav .nav-family {
    display: inline;
  }
  .nav a[aria-current="page"]:after {
    bottom: -5px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-block: 36px 38px;
  }
  .hero h1 {
    font-size: 43px;
    line-height: 1.5;
    letter-spacing: -0.5px;
    margin-block: 17px;
  }
  .lead {
    font-size: 16px;
  }
  .hero-actions {
    margin-top: 20px;
  }
  .hero-note {
    font-size: 11px;
  }
  .featured {
    padding: 25px;
    border-radius: 23px;
  }
  .featured h2 {
    font-size: 25px;
    margin-top: 20px;
  }
  .featured p {
    font-size: 14px;
  }
  .featured-top {
    font-size: 11px;
  }
  .feature-icon {
    height: 43px;
    width: 43px;
    border-radius: 13px;
  }
  .featured a {
    margin-top: 20px;
  }
  .section-top {
    padding-top: 22px;
    margin-bottom: 22px;
  }
  .section-top h2 {
    font-size: 25px;
  }
  .section-top .eyebrow {
    font-size: 11px;
  }
  .grid {
    gap: 17px;
    margin-bottom: 35px;
  }
  .card {
    padding: 23px;
  }
  .card h3 {
    font-size: 21px;
  }
  .card p {
    font-size: 14px;
  }
  .card-top {
    margin-bottom: 15px;
  }
  .end-cta {
    padding: 25px;
    display: block;
    margin-bottom: 40px;
  }
  .end-cta h2 {
    font-size: 25px;
  }
  .end-cta .button {
    margin-top: 22px;
  }
  .site-footer {
    padding-top: 34px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .footer-about {
    grid-column: 1 / -1;
  }
  .site-footer nav {
    font-size: 13px;
  }
  .footer-bottom {
    flex-wrap: wrap;
    gap: 12px;
    line-height: 2;
  }
  .article-hero {
    padding-block: 22px 28px;
  }
  .article-hero h1 {
    font-size: 32px;
    line-height: 1.7;
  }
  .article-hero .lead {
    font-size: 16px;
  }
  .meta {
    gap: 9px;
    font-size: 11px;
  }
  .crumb {
    padding-top: 25px;
    font-size: 12px;
  }
  .article-layout {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
  }
  .toc {
    grid-row: 1;
    position: static;
    padding: 20px;
  }
  .article {
    padding: 25px;
    font-size: 17px;
  }
  .article > .intro {
    font-size: 18px;
  }
  .article h2 {
    font-size: 24px;
    line-height: 1.8;
  }
  .article .cta {
    padding: 22px;
  }
  .check {
    padding: 20px;
  }
  .related li {
    font-size: 15px;
  }
}
@media (max-width: 580px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .card h3 {
    font-size: 23px;
  }
  .reading-time {
    font-size: 11px;
  }
  .count {
    font-size: 11px;
  }
  .article {
    padding: 22px;
  }
  .article h2 {
    font-size: 22px;
  }
  .article .cta h2 {
    font-size: 22px;
  }
  .article-hero h1 {
    font-size: 30px;
  }
}
@media (max-width: 360px) {
  .bar {
    padding-inline: 12px;
  }
  .header-actions .button {
    padding-inline: 10px;
    font-size: 11px;
  }
  .brand-label small {
    display: none;
  }
  .brand-label {
    font-size: 16px;
  }
  .wordmark {
    width: 52px;
  }
  .nav {
    gap: 22px;
  }
  .hero h1 {
    font-size: 38px;
  }
  .wrap {
    width: calc(100% - 28px);
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .card {
    transition: none;
  }
  .card:hover {
    transform: none;
  }
}
@media print {
  .site-header,
  .site-footer,
  .toc,
  .cta,
  .related,
  .crumb {
    display: none;
  }
  .article-layout {
    display: block;
  }
  .article {
    border: 0;
    padding: 0;
    box-shadow: none;
  }
  .wrap {
    width: 100%;
  }
  body {
    background: #fff;
    color: #172740;
  }
  .article-hero h1 {
    font-size: 28px;
  }
}

/* Keep the product wordmark and actions together on narrow screens. */
html[data-product="pos"] .brand-label small {
  font-family: var(--mq-font);
  font-size: 10px;
  letter-spacing: 0;
}
@media (max-width: 760px) {
  .bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .brand-label small {
    display: none;
  }
  .nav {
    grid-column: 1 / -1;
  }
}
