/* AllMapSoft \2014 shared stylesheet (2026 redesign, teal + lime brand, responsive) */
:root {
  --brand: #66cccc;        /* original brand teal */
  --brand-deep: #0b7d7d;   /* accessible primary: buttons / links */
  --brand-darker: #076060; /* hover */
  --brand-soft: #eaf7f7;   /* light section background */
  --brand-tint: #f5fbfb;
  --lime: #ccff33;         /* original brand lime */
  --lime-deep: #b8e61f;
  --ink: #17292e;
  --muted: #5d6f74;
  --bg: #ffffff;
  --border: #d9e8e8;
  --radius: 12px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { color: var(--brand-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Header */
header { border-bottom: 1px solid var(--border); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 9px; font-size: 21px; font-weight: 700; color: #000; letter-spacing: -.2px; }
.logo:hover { text-decoration: none; }
.logo-icon { width: 24px; height: 24px; display: block; }
nav ul { display: flex; gap: 24px; list-style: none; }
nav a { color: var(--muted); font-size: 15px; font-weight: 500; }
nav a:hover, nav a.active { color: var(--brand-deep); text-decoration: none; }

/* Buttons */
.btn { display: inline-block; padding: 12px 26px; border-radius: 8px; font-size: 16px; font-weight: 600; transition: all .15s; cursor: pointer; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand-deep); color: #fff; }
.btn-primary:hover { background: var(--brand-darker); }
.btn-outline { border: 2px solid var(--border); color: var(--ink); background: #fff; padding: 10px 24px; }
.btn-outline:hover { border-color: var(--brand-deep); color: var(--brand-deep); }
.btn-lime { background: var(--lime); color: #1c2b04; }
.btn-lime:hover { background: var(--lime-deep); }

/* Hero */
.hero { background: linear-gradient(180deg, var(--brand-soft) 0%, #fff 100%); padding: 68px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 40px; line-height: 1.2; margin-bottom: 18px; letter-spacing: -.5px; }
.hero h1 em { font-style: normal; color: var(--brand-deep); }
.hero p.lead { font-size: 18px; color: var(--muted); margin-bottom: 26px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.hero-note { font-size: 14px; color: var(--muted); }
.usp-list { list-style: none; margin-top: 20px; }
.usp-list li { padding: 4px 0; font-size: 15px; }
.usp-list li::before { content: "\2714 "; color: var(--brand-deep); font-weight: 700; margin-right: 10px; }

/* Hero visual: cascading product windows (every layer stays visible) */
.cascade { display: grid; padding-bottom: 208px; }
.cascade-card {
  grid-area: 1 / 1;
  justify-self: start;
  width: calc(100% - 120px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #eef7f7;
  box-shadow: 0 10px 24px rgba(11,90,90,.14);
}
.cascade-card img { display: block; width: 100%; height: auto; }
.win-bar { display: flex; align-items: center; gap: 6px; padding: 8px 11px; background: #f2f8f8; border-bottom: 1px solid var(--border); }
.win-bar i { width: 9px; height: 9px; border-radius: 50%; background: #c3dede; display: block; flex: 0 0 auto; }
.win-bar b { margin-left: 8px; font-size: 11.5px; font-weight: 600; color: var(--muted); letter-spacing: .3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cascade-card.c0 { transform: translate(0, 0);         z-index: 1; }
.cascade-card.c1 { transform: translate(30px, 52px);   z-index: 2; }
.cascade-card.c2 { transform: translate(60px, 104px);  z-index: 3; }
.cascade-card.c3 { transform: translate(90px, 156px);  z-index: 4; }
.cascade-card.c4 { transform: translate(120px, 208px); z-index: 5; box-shadow: 0 18px 40px rgba(11,90,90,.24); }
.cascade-card.c4 .win-bar b { color: var(--brand-deep); }

/* Stats band */
.stats { background: var(--brand-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 34px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat b { display: block; font-size: 30px; font-weight: 800; color: var(--brand-deep); line-height: 1.2; }
.stat span { font-size: 14px; color: var(--muted); }

/* Sections */
section { padding: 64px 0; }
section.soft { background: var(--brand-tint); }
h2.section-title { font-size: 30px; text-align: center; margin-bottom: 10px; letter-spacing: -.4px; }
p.section-sub { text-align: center; color: var(--muted); margin-bottom: 44px; font-size: 17px; }

/* Product cards — 2 per row, each card shows two screenshots side by side */
.prod-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.prod-card { min-width: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; }
.prod-card:hover { box-shadow: 0 10px 28px rgba(11,90,90,.13); transform: translateY(-2px); }
section.soft .prod-card { background: #fff; }
.prod-shot { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; background: #eef7f7; border-bottom: 1px solid var(--border); padding: 12px; }
.prod-shot a { display: block; min-width: 0; }
.prod-shot img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); background: #fff; }
.prod-body { padding: 20px 20px 18px; display: flex; flex-direction: column; flex: 1; }
.prod-top { text-align: center; margin-bottom: 8px; }
.prod-body h3 { font-size: 18px; line-height: 1.3; text-align: center; }
.prod-body h3 a { color: var(--ink); }
.prod-desc { color: var(--muted); font-size: 14.5px; flex: 1; margin-bottom: 14px; }
.prod-meta { font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.prod-actions { display: flex; gap: 10px; }
.prod-actions .btn { flex: 1; text-align: center; padding: 10px 8px; font-size: 14.5px; }

/* Feature cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; }
section.soft .card { background: #fff; }
.card .icon { width: 48px; height: 48px; border-radius: 10px; background: #dff2f2; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 14px; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }

/* Tiles strip */
.tiles-strip { display: block; max-width: 980px; margin: 0 auto; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 26px rgba(11,90,90,.12); }
.tiles-strip img { display: block; width: 100%; height: auto; }
.tiles-strip:hover { box-shadow: 0 14px 34px rgba(11,90,90,.2); }

/* Trial note / disclaimer */
.notice { max-width: 900px; margin: 0 auto; background: #fffbe8; border: 1px solid #ecdfa0; border-left: 5px solid var(--lime-deep); border-radius: 10px; padding: 26px 28px; }
.notice h3 { font-size: 17px; margin-bottom: 10px; }
.notice p { font-size: 14.5px; color: #4a4326; margin-bottom: 10px; }
.notice p:last-child { margin-bottom: 0; }
.notice a { color: var(--brand-deep); font-weight: 600; }

/* FAQ */
.faq { max-width: 800px; margin: 0 auto; }
details { border: 1px solid var(--border); border-radius: 8px; background: #fff; margin-bottom: 12px; }
summary { padding: 15px 20px; font-weight: 600; cursor: pointer; font-size: 15.5px; }
details p { padding: 0 20px 16px; color: var(--muted); font-size: 15px; }

/* CTA band */
.cta-band { background: var(--brand-deep); color: #fff; text-align: center; padding: 54px 24px; border-radius: var(--radius); }
.cta-band h2 { font-size: 28px; margin-bottom: 10px; }
.cta-band p { opacity: .92; margin-bottom: 24px; }
.cta-band .btn { background: var(--lime); color: #1c2b04; }
.cta-band .btn:hover { background: var(--lime-deep); }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 34px 0 30px; text-align: center; color: var(--muted); font-size: 14px; background: var(--brand-tint); }
footer nav { margin-bottom: 12px; }
footer a { margin: 0 12px; color: var(--brand-deep); }
footer .fineprint { max-width: 820px; margin: 18px auto 0; font-size: 13px; color: var(--muted); line-height: 1.7; }

/* Responsive */
@media (max-width: 980px) {
  .prod-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .hero-grid, .cards, .stats-grid { grid-template-columns: 1fr; }
  .hero { padding: 44px 0 40px; }
  .hero h1 { font-size: 30px; }
  nav ul { gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
  nav a { font-size: 13px; }
  h2.section-title { font-size: 24px; }
  .cascade { padding-bottom: 136px; }
  .cascade-card { width: calc(100% - 64px); }
  .cascade-card.c1 { transform: translate(16px, 34px); }
  .cascade-card.c2 { transform: translate(32px, 68px); }
  .cascade-card.c3 { transform: translate(48px, 102px); }
  .cascade-card.c4 { transform: translate(64px, 136px); }
  .nav { flex-direction: column; height: auto; padding: 12px 0; gap: 8px; }
}

/* ============================================================
   Features matrix page  (features_matrix.html)
   ============================================================ */
:root { --nav-h: 64px; --bar-h: 96px; }

.fm-hero { background: linear-gradient(180deg, var(--brand-soft) 0%, #fff 100%); padding: 46px 0 30px; }
.fm-hero h1 { font-size: 36px; letter-spacing: -.6px; margin-bottom: 12px; }
.fm-hero p { color: var(--muted); font-size: 16.5px; max-width: 820px; }
.fm-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.fm-fact { background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 6px 15px; font-size: 13.5px; font-weight: 600; color: var(--brand-deep); }

/* ---------- sticky toolbar ---------- */
.fm-toolbar { position: sticky; top: var(--nav-h); z-index: 9; background: rgba(255,255,255,.97); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 9px 0; }
.fm-toolbar-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.fm-search { position: relative; flex: 1 1 300px; max-width: 430px; display: block; }
.fm-search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; fill: var(--muted); pointer-events: none; }
.fm-search input { width: 100%; font-family: inherit; font-size: 14.5px; padding: 9px 13px 9px 34px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--ink); }
.fm-search input:focus { outline: none; border-color: var(--brand-deep); box-shadow: 0 0 0 3px rgba(11,125,125,.13); }
.fm-count { font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.fm-count b { color: var(--ink); font-weight: 700; }
.fm-reset { font-family: inherit; font-size: 13.5px; font-weight: 600; color: var(--brand-deep); background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 8px 14px; cursor: pointer; }
.fm-reset:hover { border-color: var(--brand-deep); }
.fm-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.fm-chip { display: inline-flex; align-items: center; gap: 7px; font-family: inherit; font-size: 12.5px; font-weight: 600; color: var(--muted); background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 4px 13px 4px 9px; cursor: pointer; }
.fm-chip i { width: 9px; height: 9px; border-radius: 50%; display: block; flex: 0 0 auto; border: 1px solid rgba(0,0,0,.12); }
.fm-chip:hover { border-color: var(--brand-deep); color: var(--ink); }
.fm-chip.on { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.fm-chip.on i { box-shadow: 0 0 0 2px rgba(255,255,255,.65); }

/* ---------- matrix ---------- */
.fm-scroll { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; margin-top: 20px; }
.fm-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 13.5px; }
.fm-table col.c-name { width: 30%; }
.fm-table col.c-p { width: 8.75%; }
.fm-table th, .fm-table td { padding: 6px 8px; border-bottom: 1px solid #edf3f3; vertical-align: middle; }
.fm-table thead th { position: sticky; top: calc(var(--nav-h) + var(--bar-h)); z-index: 6; background: #fff; text-align: center; padding: 10px 5px 9px; border-bottom: 1px solid var(--border); box-shadow: inset 0 3px 0 var(--fmp, var(--brand)); font-size: 11px; line-height: 1.3; font-weight: 700; }
.fm-table thead th.fm-corner { z-index: 8; text-align: left; padding-left: 12px; font-size: 12.5px; color: var(--muted); box-shadow: inset 0 3px 0 var(--brand-deep); vertical-align: top; }
/* th contents: product names are different lengths, so pin the name to the top
   and let price + Buy/Download sink to the bottom - that way all eight columns
   line up on the same baseline even though the names wrap differently */
.fm-th { display: flex; flex-direction: column; min-height: 104px; }
.fm-ph { display: block; }
.fm-ph a { color: var(--ink); display: block; }
.fm-ph a:hover { color: var(--brand-deep); }
.fm-pr { display: block; font-size: 12px; color: var(--brand-deep); font-weight: 800; margin-top: auto; padding-top: 8px; }
.fm-pa { display: block; font-size: 10.5px; font-weight: 600; margin-top: 2px; }
.fm-pa a { color: var(--muted); }
.fm-pa a:hover { color: var(--brand-deep); }

.fm-table tbody td { text-align: center; }
.fm-table td.fm-n { text-align: left; color: var(--ink); word-break: break-word; }
.fm-table td.fm-n a { color: var(--brand-deep); border-bottom: 1px dotted #a9cfcf; }
.fm-table td.fm-n a:hover { border-bottom-style: solid; text-decoration: none; }
.fm-table td.y { background: #eff9f9; }
.fm-table td.y::after { content: ""; display: block; width: 13px; height: 13px; margin: 1px auto; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.6 8.6l3.3 3.4 7.5-8.4' fill='none' stroke='%230b7d7d' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.fm-table tbody tr:nth-child(even) td { background: #fafcfc; }
.fm-table tbody tr:nth-child(even) td.y { background: #e9f6f6; }
.fm-table tbody tr:hover td { background: #e6f5f5; }
.fm-table tbody tr:hover td.y { background: #dcf1f1; }
.fm-table tr.fm-grp th { background: var(--brand-soft); color: var(--brand-deep); text-align: left; padding: 8px 12px; font-size: 12.5px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); scroll-margin-top: 210px; }
.fm-table tr.fm-grp th span { float: right; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--muted); font-size: 12px; }
.fm-caption { caption-side: top; text-align: left; padding: 12px 14px 10px; font-size: 12.5px; color: var(--muted); line-height: 1.5; background: #fff; border-bottom: 1px solid var(--border); }
.fm-empty { text-align: center; color: var(--muted); font-size: 15px; padding: 28px 0 0; }

/* ---------- buy strip ---------- */
.fm-buy { padding: 62px 0 10px; }
.fm-buy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.fm-buy-card { border: 1px solid var(--border); border-top: 4px solid var(--fmp, var(--brand)); border-radius: 10px; padding: 16px 16px 14px; background: #fff; }
.fm-buy-card h3 { font-size: 15px; line-height: 1.3; min-height: 38px; }
.fm-buy-card h3 a { color: var(--ink); }
.fm-buy-price { font-size: 17px; font-weight: 800; color: var(--brand-deep); margin: 4px 0 10px; }
.fm-buy-actions { display: flex; flex-direction: column; gap: 7px; }
.fm-buy-actions .btn { padding: 8px 10px; font-size: 13.5px; text-align: center; }

/* ---------- back to top ---------- */
.fm-top { position: fixed; right: 20px; bottom: 22px; z-index: 12; background: var(--brand-deep); color: #fff; font-size: 13px; font-weight: 600; padding: 9px 15px; border-radius: 999px; box-shadow: 0 8px 20px rgba(11,90,90,.3); }
.fm-top:hover { background: var(--brand-darker); text-decoration: none; }

html { scroll-behavior: smooth; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .fm-buy-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1023px) {
  .fm-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .fm-table { min-width: 860px; }
  /* the x-scroll container is the nearest scrollport here, so vertical sticky
     for the thead is meaningless and would displace the header - turn it off */
  .fm-table thead th { top: 0; }
  .fm-table td.fm-n { position: sticky; left: 0; z-index: 3; background: #fff; box-shadow: 1px 0 0 var(--border); }
  .fm-table tbody tr:nth-child(even) td.fm-n { background: #fafcfc; }
  .fm-table tbody tr:hover td.fm-n { background: #e6f5f5; }
  .fm-table th.fm-corner { position: sticky; left: 0; }
}
@media (max-width: 860px) {
  .fm-hero { padding: 30px 0 22px; }
  .fm-hero h1 { font-size: 28px; }
  .fm-hero p { font-size: 15px; }
  .fm-search { max-width: none; flex-basis: 100%; }
  .fm-count, .fm-reset { font-size: 13px; }
  .fm-buy-grid { grid-template-columns: 1fr; }
  .fm-table tr.fm-grp th { scroll-margin-top: 150px; }
}

/* ============================================================
   Map tile samples page  (tilesample.html)
   ============================================================ */

.ts-hero { background: linear-gradient(180deg, var(--brand-soft) 0%, #fff 100%); padding: 46px 0 30px; }
.ts-hero h1 { font-size: 36px; letter-spacing: -.6px; margin-bottom: 12px; }
.ts-hero p { color: var(--muted); font-size: 16.5px; max-width: 820px; }
.ts-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.ts-fact { background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 6px 15px; font-size: 13.5px; color: var(--muted); }
.ts-fact b { color: var(--brand-deep); font-weight: 800; }

/* ---------- sticky toolbar ---------- */
.ts-toolbar { position: sticky; top: var(--nav-h); z-index: 9; background: rgba(255,255,255,.97); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 10px 0; }
.ts-toolbar-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ts-search { position: relative; flex: 1 1 300px; max-width: 430px; display: block; }
.ts-search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; fill: var(--muted); pointer-events: none; }
.ts-search input { width: 100%; font-family: inherit; font-size: 14.5px; padding: 9px 13px 9px 34px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--ink); }
.ts-search input:focus { outline: none; border-color: var(--brand-deep); box-shadow: 0 0 0 3px rgba(11,125,125,.13); }
.ts-select { display: block; flex: 0 1 auto; }
.ts-select select { font-family: inherit; font-size: 13.5px; font-weight: 600; color: var(--brand-deep); background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 9px 30px 9px 12px; cursor: pointer;
  appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230b7d7d' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 11px; }
.ts-select select:focus { outline: none; border-color: var(--brand-deep); box-shadow: 0 0 0 3px rgba(11,125,125,.13); }
.ts-count { font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.ts-count b { color: var(--ink); font-weight: 700; }
.ts-reset { font-family: inherit; font-size: 13.5px; font-weight: 600; color: var(--brand-deep); background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 8px 14px; cursor: pointer; }
.ts-reset:hover { border-color: var(--brand-deep); }

/* ---------- provider table ---------- */
/* NOTE: no overflow-x on the desktop wrapper - an overflow container becomes the
   nearest scrollport and breaks the sticky thead (it renders over the first row).
   Horizontal scroll is enabled only in the narrow-screen media query below. */
.ts-scroll { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; margin-top: 20px; }
.ts-table { width: 100%; min-width: 620px; border-collapse: separate; border-spacing: 0; font-size: 14px; table-layout: fixed; }
.ts-table col.c-p { width: 46%; }
.ts-table col.c-c { width: 20%; }
.ts-table col.c-m { width: 21%; }
.ts-table col.c-i { width: 13%; }
.ts-caption { caption-side: top; text-align: left; padding: 13px 15px 11px; font-size: 12.5px; color: var(--muted); line-height: 1.55; background: #fff; border-bottom: 1px solid var(--border); }
.ts-table th, .ts-table td { padding: 11px 15px; border-bottom: 1px solid #edf3f3; vertical-align: middle; text-align: left; }
.ts-table thead th { position: sticky; top: calc(var(--nav-h) + var(--bar-h)); z-index: 6; background: #fff; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; border-bottom: 1px solid var(--border); box-shadow: inset 0 3px 0 var(--brand-deep); }
.ts-table tbody tr:nth-child(even) td { background: #fafcfc; }
.ts-table tbody tr:hover td { background: #e9f5f5; }
.ts-p { color: var(--ink); font-weight: 600; word-break: break-word; }
.ts-p a { color: var(--ink); }
.ts-p a:hover { color: var(--brand-deep); }
.ts-p a::after { content: "\2197"; font-size: 10px; margin-left: 5px; color: var(--muted); opacity: .55; }
.ts-id { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.ts-m a { display: inline-flex; align-items: baseline; gap: 5px; white-space: nowrap; }
.ts-m a b { font-size: 15px; font-weight: 800; color: var(--brand-deep); font-variant-numeric: tabular-nums; }
.ts-m a span { font-size: 12px; font-weight: 600; color: var(--muted); }
.ts-m a i { font-style: normal; font-size: 13px; color: var(--brand-deep); transition: transform .15s; }
.ts-m a:hover { text-decoration: none; }
.ts-m a:hover i { transform: translateX(3px); }

/* coverage badge */
.ts-cov { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 11px; border-radius: 999px; background: #f1f5f5; color: #4a6363; }
.ts-cov-world { background: var(--brand-soft); color: var(--brand-deep); }
.ts-cov-none { background: transparent; border: 1px dashed var(--border); color: var(--muted); font-style: italic; }

/* totals row */
.ts-table tfoot td { border-bottom: none; border-top: 2px solid var(--border); background: #f7fbfb; font-size: 13.5px; color: var(--muted); padding: 13px 15px; }
.ts-table tfoot td b { color: var(--ink); }
.ts-table tfoot td.ts-m a b { font-size: 15px; }

.ts-empty { text-align: center; color: var(--muted); font-size: 15px; padding: 28px 0 0; }

/* ---------- CTA ---------- */
.ts-cta { padding: 58px 0 6px; text-align: center; }
.ts-cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .ts-hero { padding: 30px 0 22px; }
  .ts-hero h1 { font-size: 28px; }
  .ts-hero p { font-size: 15px; }
  .ts-search { max-width: none; flex-basis: 100%; }
  .ts-select { flex: 1 1 auto; }
  .ts-select select { width: 100%; }
  .ts-count, .ts-reset { font-size: 13px; }
  .ts-table th, .ts-table td { padding: 10px 11px; }
  .ts-table { font-size: 13.5px; }
  /* narrow screens: horizontal scroll; inside a scroll container the vertical
     sticky offset is meaningless and would displace the header - turn it off */
  .ts-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .ts-table { min-width: 620px; }
  .ts-table thead th { top: 0; }
}

/* ============================================================
   Provider detail pages  (providers/*.htm)
   ============================================================ */

.pv-crumb { font-size: 13px; color: var(--muted); padding: 22px 0 0; }
.pv-crumb a { color: var(--muted); }
.pv-crumb a:hover { color: var(--brand-deep); }
.pv-crumb i { font-style: normal; margin: 0 8px; color: #c9dcdc; }

.pv-head { padding: 12px 0 4px; }
.pv-head h1 { font-size: 31px; line-height: 1.2; letter-spacing: -.5px; margin-bottom: 8px; }
.pv-meta { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.pv-pill { display: inline-flex; align-items: center; gap: 7px; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 6px 15px; font-size: 13.5px; color: var(--muted); max-width: 100%; min-width: 0; }
.pv-pill b { color: var(--brand-deep); font-weight: 800; font-variant-numeric: tabular-nums; }
.pv-pill .pv-k { font-weight: 700; color: var(--ink); }
.pv-pill a { color: var(--brand-deep); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-pill a::after { content: "\2197"; font-size: 10px; margin-left: 5px; opacity: .55; }

/* ---------- toolbar ---------- */
.pv-toolbar { position: sticky; top: var(--nav-h); z-index: 9; background: rgba(255,255,255,.97); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 10px 0; margin-top: 22px; }
.pv-toolbar-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pv-search { position: relative; flex: 1 1 300px; max-width: 430px; display: block; }
.pv-search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; fill: var(--muted); pointer-events: none; }
.pv-search input { width: 100%; font-family: inherit; font-size: 14.5px; padding: 9px 13px 9px 34px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--ink); }
.pv-search input:focus { outline: none; border-color: var(--brand-deep); box-shadow: 0 0 0 3px rgba(11,125,125,.13); }
.pv-count { font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.pv-count b { color: var(--ink); font-weight: 700; }
.pv-reset { font-family: inherit; font-size: 13.5px; font-weight: 600; color: var(--brand-deep); background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 8px 14px; cursor: pointer; }
.pv-reset:hover { border-color: var(--brand-deep); }

/* ---------- samples table ---------- */
/* No overflow-x on the desktop wrapper: an overflow container becomes the nearest
   scrollport and breaks the sticky thead. Horizontal scroll only in the media
   query at the bottom, where vertical stickiness is switched off. */
.pv-scroll { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; margin-top: 18px; }
.pv-table { width: 100%; min-width: 900px; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 14px; }
.pv-table col.c-n { width: 5%; }
.pv-table col.c-t { width: 38%; }
.pv-table col.c-id { width: 7%; }
.pv-table col.c-i { width: 16%; }
.pv-table col.c-s { width: 17%; }
.pv-table col.c-e { width: 17%; }
.pv-table th, .pv-table td { padding: 10px 12px; border-bottom: 1px solid #edf3f3; vertical-align: middle; text-align: left; }
.pv-table thead th { position: sticky; top: calc(var(--nav-h) + var(--bar-h)); z-index: 6; background: #fff; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; border-bottom: 1px solid var(--border); box-shadow: inset 0 3px 0 var(--brand-deep); }
.pv-table tbody tr:nth-child(even) td { background: #fafcfc; }
.pv-table tbody tr:hover td { background: #e9f5f5; }
/* The software emits plain <td>s with no classes, so style them positionally -
   that way the table looks right even before samples.js runs. */
.pv-table tbody td:nth-child(1) { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.pv-table tbody td:nth-child(2) { color: var(--ink); font-weight: 600; word-break: break-word; overflow-wrap: anywhere; }
.pv-table tbody td:nth-child(3) { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.pv-table tbody td:nth-child(4) { font-size: 12.5px; color: #46666a; }
.pv-table tbody td:nth-child(5),
.pv-table tbody td:nth-child(6) { text-align: center; }
/* tile format / zoom / size pulled out of the raw text by samples.js */
.pv-mi { display: flex; flex-wrap: wrap; gap: 4px; }
.pv-mi i { font-style: normal; font-size: 11px; font-weight: 700; color: #46666a; background: #eef5f5; border-radius: 5px; padding: 2px 7px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pv-mi i.pv-fmt { background: var(--brand-soft); color: var(--brand-deep); }
.pv-table tbody td:nth-child(5) a,
.pv-table tbody td:nth-child(6) a { display: inline-block; line-height: 0; border-radius: 8px; }
.pv-table tbody td:nth-child(5) img,
.pv-table tbody td:nth-child(6) img { height: 64px; width: auto; max-width: none; display: block; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.pv-table tbody td:nth-child(5) a:hover,
.pv-table tbody td:nth-child(6) a:hover { text-decoration: none; }
.pv-table tbody td:nth-child(5) a:hover img,
.pv-table tbody td:nth-child(6) a:hover img { border-color: var(--brand-deep); box-shadow: 0 4px 14px rgba(11,125,125,.22); }
.pv-none { text-align: center; color: var(--muted); font-size: 15px; padding: 26px 0 0; }

/* ============================================================
   All map types page  (tilesampleall.html)
   ============================================================ */

.ta-hero { background: linear-gradient(180deg, var(--brand-soft) 0%, #fff 100%); padding: 44px 0 28px; }
.ta-hero h1 { font-size: 36px; letter-spacing: -.6px; margin-bottom: 12px; }
.ta-hero p { color: var(--muted); font-size: 16.5px; max-width: 840px; }
.ta-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.ta-fact { background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 6px 15px; font-size: 13.5px; color: var(--muted); }
.ta-fact b { color: var(--brand-deep); font-weight: 800; font-variant-numeric: tabular-nums; }
.ta-hint { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.ta-hint svg { width: 15px; height: 15px; fill: var(--brand-deep); flex: 0 0 auto; }

.ta-toolbar { position: sticky; top: var(--nav-h); z-index: 9; background: rgba(255,255,255,.97); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 10px 0; }
.ta-toolbar-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ta-search { position: relative; flex: 1 1 300px; max-width: 430px; display: block; }
.ta-search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; fill: var(--muted); pointer-events: none; }
.ta-search input { width: 100%; font-family: inherit; font-size: 14.5px; padding: 9px 13px 9px 34px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--ink); }
.ta-search input:focus { outline: none; border-color: var(--brand-deep); box-shadow: 0 0 0 3px rgba(11,125,125,.13); }
.ta-select { display: block; flex: 0 1 auto; }
.ta-select select { font-family: inherit; font-size: 13.5px; font-weight: 600; color: var(--brand-deep); background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 9px 30px 9px 12px; cursor: pointer; max-width: 260px;
  appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230b7d7d' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 11px; }
.ta-select select:focus { outline: none; border-color: var(--brand-deep); box-shadow: 0 0 0 3px rgba(11,125,125,.13); }
.ta-count { font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.ta-count b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.ta-reset { font-family: inherit; font-size: 13.5px; font-weight: 600; color: var(--brand-deep); background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 8px 14px; cursor: pointer; }
.ta-reset:hover { border-color: var(--brand-deep); }

/* ---------- all-samples table ---------- */
.ta-scroll { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; margin-top: 18px; }
.ta-table { width: 100%; min-width: 1040px; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 13.5px; }
.ta-table col.c-n { width: 4%; }
.ta-table col.c-t { width: 29%; }
.ta-table col.c-id { width: 5%; }
.ta-table col.c-i { width: 13.5%; }
.ta-table col.c-s { width: 7.5%; }
.ta-table col.c-e { width: 10%; }
.ta-table col.c-c { width: 11%; }
.ta-table col.c-o { width: 20%; }
.ta-table th, .ta-table td { padding: 8px 11px; border-bottom: 1px solid #edf3f3; vertical-align: middle; text-align: left; }
.ta-table thead th { position: sticky; top: calc(var(--nav-h) + var(--bar-h)); z-index: 6; background: #fff; font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; border-bottom: 1px solid var(--border); box-shadow: inset 0 3px 0 var(--brand-deep); }
.ta-table tbody tr:nth-child(even) td { background: #fafcfc; }
.ta-table tbody tr:hover td { background: #e9f5f5; }
/* positional styling: the rows are produced by the site owner's generator and
   carry no classes, so nothing here may depend on samples.js having run. */
.ta-table tbody td:nth-child(1) { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.ta-table tbody td:nth-child(2) { color: var(--ink); font-weight: 600; word-break: break-word; overflow-wrap: anywhere; }
.ta-table tbody td:nth-child(3) { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.ta-table tbody td:nth-child(4) { font-size: 12.5px; color: #46666a; }
.ta-table tbody td:nth-child(5),
.ta-table tbody td:nth-child(6) { text-align: center; }
.ta-table tbody td:nth-child(8) { overflow: hidden; }
.ta-table tbody td:nth-child(5) a,
.ta-table tbody td:nth-child(6) a { display: inline-block; line-height: 0; border-radius: 7px; }
.ta-table tbody td:nth-child(5) img,
.ta-table tbody td:nth-child(6) img { height: 60px; width: auto; max-width: none; display: block; border: 1px solid var(--border); border-radius: 7px; background: #fff; }
.ta-table tbody td:nth-child(5) a:hover,
.ta-table tbody td:nth-child(6) a:hover { text-decoration: none; }
.ta-table tbody td:nth-child(5) a:hover img,
.ta-table tbody td:nth-child(6) a:hover img { border-color: var(--brand-deep); box-shadow: 0 4px 14px rgba(11,125,125,.22); }
.ta-table tbody td:nth-child(8) a { color: var(--brand-deep); font-weight: 600; }
.ta-table tbody td:nth-child(8) a::after { content: "\2197"; font-size: 10px; margin-left: 4px; opacity: .55; }
.ta-dash { color: #b9caca; }
.ta-none { text-align: center; color: var(--muted); font-size: 15px; padding: 26px 0 0; }

/* back to top */
.ta-top { position: fixed; right: 20px; bottom: 22px; z-index: 12; background: var(--brand-deep); color: #fff; font-size: 13px; font-weight: 600; padding: 9px 15px; border-radius: 999px; box-shadow: 0 8px 20px rgba(11,90,90,.3); }
.ta-top:hover { background: var(--brand-darker); text-decoration: none; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .pv-head h1 { font-size: 25px; }
  .pv-search { max-width: none; flex-basis: 100%; }
  .pv-count, .pv-reset { font-size: 13px; }
  .pv-table th, .pv-table td { padding: 9px 10px; }
  .pv-table { font-size: 13px; }
  .pv-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .pv-table thead th { top: 0; }

  .ta-hero { padding: 30px 0 22px; }
  .ta-hero h1 { font-size: 27px; }
  .ta-hero p { font-size: 15px; }
  .ta-search { max-width: none; flex-basis: 100%; }
  .ta-select { flex: 1 1 auto; }
  .ta-select select { width: 100%; max-width: none; }
  .ta-count, .ta-reset { font-size: 13px; }
  .ta-table th, .ta-table td { padding: 8px 9px; }
  .ta-table { font-size: 13px; }
  .ta-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .ta-table thead th { top: 0; }
}
@supports not (position: sticky) {
  .pv-table thead th, .ta-table thead th { position: static; }
}

/* ============================================================
   All providers list  (generated from list_template.html)
   Reuses the .pv-* toolbar; only the table differs.
   ============================================================ */
.pl-table { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 14px; }
.pl-table col.c-n { width: 5%; }
.pl-table col.c-p { width: 51%; }
.pl-table col.c-id { width: 9%; }
.pl-table col.c-c { width: 19%; }
.pl-table col.c-m { width: 16%; }
.pl-table th, .pl-table td { padding: 10px 12px; border-bottom: 1px solid #edf3f3; vertical-align: middle; text-align: left; }
.pl-table thead th { position: sticky; top: calc(var(--nav-h) + var(--bar-h)); z-index: 6; background: #fff; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; border-bottom: 1px solid var(--border); box-shadow: inset 0 3px 0 var(--brand-deep); }
.pl-table tbody tr:nth-child(even) td { background: #fafcfc; }
.pl-table tbody tr:hover td { background: #e9f5f5; }
.pl-table tbody td:nth-child(1) { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.pl-table tbody td:nth-child(2) { color: var(--ink); font-weight: 600; word-break: break-word; overflow-wrap: anywhere; }
.pl-table tbody td:nth-child(2) a { color: var(--ink); }
.pl-table tbody td:nth-child(2) a:hover { color: var(--brand-deep); }
.pl-table tbody td:nth-child(2) a::after { content: "\2197"; font-size: 10px; margin-left: 5px; opacity: .55; }
.pl-table tbody td:nth-child(3) { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.pl-table tbody td:nth-child(5) { font-weight: 800; color: var(--brand-deep); font-variant-numeric: tabular-nums; }
@media (max-width: 860px) {
  .pl-table th, .pl-table td { padding: 9px 10px; }
  .pl-table { font-size: 13px; }
  .pl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .pl-table thead th { top: 0; }
}

/* ============================================================
   Policies page  (policys.html)
   Terms of Service / Privacy Policy / Refund Policy
   ============================================================ */

.pol-hero { background: linear-gradient(180deg, var(--brand-soft) 0%, #fff 100%); padding: 46px 0 34px; }
.pol-hero h1 { font-size: 34px; letter-spacing: -.6px; margin-bottom: 12px; }
.pol-hero p { color: var(--muted); font-size: 16.5px; max-width: 780px; }
.pol-updated { display: inline-block; margin-top: 18px; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 6px 16px; font-size: 13px; color: var(--muted); }
.pol-updated b { color: var(--brand-deep); font-weight: 700; }

/* three-at-a-glance pills, each one backed by a clause below */
.pol-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.pol-fact { display: flex; align-items: center; gap: 9px; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 11px 17px 11px 14px; font-size: 14px; color: var(--muted); }
.pol-fact b { color: var(--ink); font-weight: 700; }
.pol-fact svg { width: 17px; height: 17px; flex: 0 0 auto; fill: var(--brand-deep); }

.pol-wrap { padding: 40px 0 24px; }
.pol-layout { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 44px; align-items: start; }

/* ---------- on-this-page rail ---------- */
.pol-toc { position: sticky; top: calc(var(--nav-h) + 22px); }
.pol-toc > h2 { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .7px; margin-bottom: 12px; }
.pol-toc ol { list-style: none; counter-reset: toc; }
.pol-toc li { counter-increment: toc; }
.pol-toc a { display: flex; align-items: baseline; gap: 10px; padding: 9px 12px; border-radius: 8px; font-size: 14.5px; font-weight: 600; color: var(--muted); border-left: 3px solid transparent; }
.pol-toc a::before { content: counter(toc); font-size: 12px; font-weight: 800; color: #b4cbcc; font-variant-numeric: tabular-nums; }
.pol-toc a:hover { background: var(--brand-tint); color: var(--brand-deep); text-decoration: none; }
.pol-toc a.current { background: var(--brand-soft); color: var(--brand-deep); border-left-color: var(--brand-deep); }
.pol-toc a.current::before { color: var(--brand-deep); }
.pol-toc .pol-toc-foot { margin-top: 14px; padding: 12px 13px; background: var(--brand-tint); border: 1px solid var(--border); border-radius: 10px; font-size: 13px; color: var(--muted); line-height: 1.6; }
.pol-toc .pol-toc-foot a { display: inline; padding: 0; font-size: 13px; font-weight: 600; border: 0; }
.pol-toc .pol-toc-foot a::before { content: none; }

/* ---------- policy cards ---------- */
.pol-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 34px 32px; margin-bottom: 24px; scroll-margin-top: calc(var(--nav-h) + 20px); }
.pol-card:last-of-type { margin-bottom: 0; }
.pol-card > h2 { font-size: 23px; letter-spacing: -.3px; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 11px; }
.pol-card > h2 svg { width: 21px; height: 21px; flex: 0 0 auto; fill: var(--brand-deep); }
.pol-kicker { display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--brand-deep); background: var(--brand-soft); border-radius: 5px; padding: 3px 9px; margin-bottom: 12px; }
.pol-card p { color: #33454a; font-size: 15.5px; margin-bottom: 13px; }
.pol-card p:last-child { margin-bottom: 0; }
.pol-card a { font-weight: 600; }

/* "you agree to ..." clauses */
.pol-list { list-style: none; margin: 4px 0 0; }
.pol-list li { position: relative; padding: 0 0 0 31px; margin-bottom: 12px; color: #33454a; font-size: 15.5px; }
.pol-list li:last-child { margin-bottom: 0; }
.pol-list li::before { content: "\2714"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-deep); font-size: 11.5px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.pol-list li.no::before { content: "\2716"; background: #fdeeee; color: #b5473f; }

/* highlighted statement (privacy promise) */
.pol-callout { background: var(--brand-soft); border-left: 5px solid var(--brand-deep); border-radius: 0 10px 10px 0; padding: 18px 22px; margin: 16px 0 0; }
.pol-callout p { color: #29484c; font-size: 15.5px; margin-bottom: 8px; }
.pol-callout p:last-child { margin-bottom: 0; }
.pol-callout b { color: var(--brand-darker); }

/* refund steps */
.pol-steps { list-style: none; counter-reset: step; margin: 6px 0 0; }
.pol-steps li { counter-increment: step; position: relative; padding: 0 0 0 40px; margin-bottom: 14px; color: #33454a; font-size: 15.5px; }
.pol-steps li:last-child { margin-bottom: 0; }
.pol-steps li::before { content: counter(step); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 8px; background: var(--brand-soft); border: 1px solid #cfe6e6; color: var(--brand-deep); font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.pol-steps li b { color: var(--ink); }

/* processing timeline */
.pol-timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.pol-tl { background: var(--brand-tint); border: 1px solid var(--border); border-radius: 10px; padding: 15px 16px; }
.pol-tl b { display: block; font-size: 19px; font-weight: 800; color: var(--brand-deep); line-height: 1.25; margin-bottom: 3px; }
.pol-tl span { font-size: 13px; color: var(--muted); }

/* contact strip */
.pol-contact { background: var(--brand-tint); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 24px; }
.pol-contact h3 { font-size: 17px; margin-bottom: 4px; }
.pol-contact p { color: var(--muted); font-size: 14.5px; }

@media (max-width: 960px) {
  .pol-layout { grid-template-columns: 1fr; gap: 24px; }
  .pol-toc { position: static; }
  .pol-toc ol { display: flex; flex-wrap: wrap; gap: 8px; }
  .pol-toc a { border-left: 0; border: 1px solid var(--border); border-radius: 999px; padding: 7px 15px; background: #fff; }
  .pol-toc a.current { background: var(--brand-soft); border-color: var(--brand-deep); }
  .pol-toc .pol-toc-foot { display: none; }
  .pol-card { padding: 24px 22px 26px; }
  .pol-timeline { grid-template-columns: 1fr; }
  .pol-hero h1 { font-size: 27px; }
  .pol-hero { padding: 34px 0 26px; }
}

/* ============================================================
   Product detail pages  (umd/index.html and the other products)
   Class prefix .pd- is shared by every product page.
   ============================================================ */

/* ---------- compact product bar under the site header ---------- */
.pd-bar { position: sticky; top: var(--nav-h); z-index: 9; background: #fff; border-bottom: 1px solid var(--border); }
.pd-bar ul { display: flex; align-items: center; gap: 4px; list-style: none; flex-wrap: wrap; padding: 7px 0; }
.pd-bar a { display: block; padding: 7px 14px; border-radius: 8px; font-size: 14.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.pd-bar a:hover { background: var(--brand-tint); color: var(--brand-deep); text-decoration: none; }
.pd-bar a.active { background: var(--brand-soft); color: var(--brand-deep); }
/* the bar opens with the product's own name - it is the way back to the
   product home page, so it reads as a title, not as another page link */
.pd-bar li.pd-bar-name { border-right: 1px solid var(--border); margin-right: 8px; padding-right: 16px; }
.pd-bar li.pd-bar-name > a { color: var(--ink); font-weight: 800; letter-spacing: -.1px; }

/* ---------- hero ---------- */
.pd-hero { background: linear-gradient(180deg, var(--brand-soft) 0%, #fff 100%); padding: 40px 0 44px; }
.pd-crumbs { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.pd-crumbs a { color: var(--muted); }
.pd-crumbs a:hover { color: var(--brand-deep); }
.pd-crumbs span { margin: 0 7px; opacity: .55; }
.pd-hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 44px; align-items: center; }
.pd-hero h1 { font-size: 38px; line-height: 1.18; letter-spacing: -.7px; margin-bottom: 14px; }
.pd-hero p.lead { font-size: 17.5px; color: var(--muted); margin-bottom: 18px; max-width: 560px; }
.pd-meta { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 20px; }
.pd-pill { background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 5px 14px; font-size: 13px; color: var(--muted); }
.pd-pill b { color: var(--brand-deep); font-weight: 700; }
.pd-pill.pd-pill-new { background: var(--lime); border-color: var(--lime-deep); color: #1c2b04; }
.pd-pill.pd-pill-new b { color: #1c2b04; }
.pd-ctas { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.pd-price { font-size: 15px; color: var(--muted); }
.pd-price b { font-size: 26px; font-weight: 800; color: var(--brand-deep); letter-spacing: -.5px; }

/* hero screenshot in a window frame (shares .win-bar with the home page) */
.pd-shot { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #eef7f7; box-shadow: 0 14px 34px rgba(11,90,90,.16); }
.pd-shot img { display: block; width: 100%; height: auto; }
.pd-shot a { display: block; line-height: 0; }
.pd-shot a:hover img { opacity: .96; }
.pd-shot-cap { margin: 0; padding: 9px 14px 10px; background: #fff; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }

/* ---------- generic section bits ---------- */
.pd-section { padding: 52px 0; }
.pd-section.soft { background: var(--brand-tint); }
.pd-h2 { font-size: 27px; letter-spacing: -.4px; margin-bottom: 8px; }
.pd-sub { color: var(--muted); font-size: 16.5px; margin-bottom: 32px; max-width: 780px; }
.pd-prose { max-width: 860px; color: #33454a; font-size: 16px; }
.pd-prose p { color: #33454a; font-size: 16px; margin-bottom: 14px; overflow-wrap: anywhere; }
.pd-prose p:last-child { margin-bottom: 0; }
.pd-prose strong, .pd-prose b { color: var(--ink); }
.pd-prose ul { list-style: none; margin: 4px 0 18px; padding: 0; }
.pd-prose li { position: relative; padding-left: 26px; margin-bottom: 9px; font-size: 16px; color: #33454a; overflow-wrap: anywhere; }
.pd-prose li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--brand-soft); border: 2px solid var(--brand-deep); }
.pd-prose hr { display: none; }

/* two-column "what it does" */
.pd-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pd-panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 28px; }
.pd-panel h3 { font-size: 18px; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.pd-panel h3 svg { width: 19px; height: 19px; flex: 0 0 auto; fill: var(--brand-deep); }
.pd-panel p { color: var(--muted); font-size: 15px; }
.pd-panel p + p { margin-top: 10px; }

/* ---------- map source chips ---------- */
.pd-src-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.pd-src-search { position: relative; flex: 1 1 300px; max-width: 420px; display: block; }
.pd-src-search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; fill: var(--muted); pointer-events: none; }
.pd-src-search input { width: 100%; font-family: inherit; font-size: 14.5px; padding: 9px 13px 9px 34px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--ink); }
.pd-src-search input:focus { outline: none; border-color: var(--brand-deep); box-shadow: 0 0 0 3px rgba(11,125,125,.13); }
.pd-src-count { font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.pd-src-count b { color: var(--ink); font-weight: 700; }
.pd-src-toggle { font-family: inherit; font-size: 13.5px; font-weight: 600; color: var(--brand-deep); background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 8px 14px; cursor: pointer; }
.pd-src-toggle:hover { border-color: var(--brand-deep); }

.pd-src-wrap { position: relative; }
.pd-src-list { display: flex; flex-wrap: wrap; gap: 7px; padding: 18px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); max-height: 302px; overflow: hidden; }
.pd-src-wrap.open .pd-src-list { max-height: none; }
.pd-src-wrap::after { content: ""; position: absolute; left: 1px; right: 1px; bottom: 1px; height: 96px; border-radius: 0 0 var(--radius) var(--radius); background: linear-gradient(180deg, rgba(255,255,255,0), #fff 78%); pointer-events: none; }
.pd-src-wrap.open::after { display: none; }
.pd-src-list a { display: inline-block; font-size: 13px; font-weight: 500; color: #3c5459; background: var(--brand-tint); border: 1px solid #e3eeee; border-radius: 7px; padding: 4px 10px; white-space: nowrap; }
/* the .pd-src-list a rule above out-specifies the UA [hidden] rule */
.pd-src-list a[hidden], .pd-src-toggle[hidden], .pd-src-empty[hidden] { display: none; }
.pd-src-list a:hover { background: var(--brand-soft); border-color: var(--brand-deep); color: var(--brand-deep); text-decoration: none; }
.pd-src-list a.pd-src-custom { background: #f7fbe9; border-color: #dbeec0; color: #4a5a1a; }
.pd-src-list a.pd-src-custom:hover { border-color: var(--lime-deep); background: #eff8d8; color: #3d4a12; }
.pd-src-etc { align-self: center; font-size: 13px; color: var(--muted); }
.pd-src-empty { color: var(--muted); font-size: 14.5px; padding: 6px 2px; }

/* ---------- screenshot gallery ---------- */
.pd-gal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.pd-gal-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.pd-gal-item.wide { grid-column: 1 / -1; }
.pd-gal-shot { display: grid; grid-template-rows: minmax(0, 1fr); background: #eef7f7; border-bottom: 1px solid var(--border); padding: 12px; }
/* the two shots sharing a row always get a panel of the same shape, so the
   images line up; the picture is stretched to fill its panel. The build script
   writes the exact ratio of each row inline, 16/10 is only the fallback.
   min-height:0 is needed because a flex item would otherwise refuse to shrink
   below the natural height of the screenshot inside it. */
.pd-gal-item:not(.wide) .pd-gal-shot { aspect-ratio: 16 / 10; min-height: 0; }
.pd-gal-item.wide .pd-gal-shot { display: block; }
.pd-gal-shot img { display: block; width: 100%; height: 100%; object-fit: fill; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.pd-gal-item.wide .pd-gal-shot img { height: auto; }
.pd-gal-item figcaption { padding: 15px 18px 17px; }
.pd-gal-item h3 { font-size: 16px; margin-bottom: 4px; }
.pd-gal-item p { font-size: 13.5px; color: var(--muted); }
.pd-zoom { display: inline-flex; align-items: center; gap: 6px; margin-top: 9px; font-size: 13px; font-weight: 600; color: var(--brand-deep); }
.pd-zoom svg { width: 13px; height: 13px; fill: currentColor; }

/* ---------- city example grids (More examples) ---------- */
.pd-ex { display: grid; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: 14px; }
.pd-ex-item { margin: 0; background: #fff; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.pd-ex-item a { display: block; line-height: 0; background: #eef7f7; }
.pd-ex-item img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.pd-ex-item figcaption { padding: 9px 12px 10px; font-size: 13px; font-weight: 600; color: #3c5459; border-top: 1px solid var(--border); }
.pd-ex-item:hover { border-color: var(--brand-deep); box-shadow: 0 8px 22px rgba(11,125,125,.14); }
.pd-ex-item a:hover { text-decoration: none; }

/* ---------- pricing / trial ---------- */
.pd-buy { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 34px; display: grid; grid-template-columns: 1.4fr auto; gap: 28px; align-items: center; }
.pd-buy h2 { font-size: 25px; margin-bottom: 8px; }
.pd-buy p { color: var(--muted); font-size: 15.5px; }
.pd-buy .pd-buy-act { display: flex; flex-direction: column; gap: 10px; min-width: 220px; }
.pd-buy .pd-buy-act .btn { text-align: center; }
.pd-buy-price { display: flex; align-items: baseline; gap: 8px; margin: 14px 0 4px; }
.pd-buy-price b { font-size: 34px; font-weight: 800; color: var(--brand-deep); letter-spacing: -1px; }
.pd-buy-price span { font-size: 14px; color: var(--muted); }

.pd-note { background: #fffbe8; border: 1px solid #ecdfa0; border-left: 5px solid var(--lime-deep); border-radius: 10px; padding: 18px 22px; margin-top: 20px; font-size: 14.5px; color: #4a4326; }
.pd-note b { color: #3a3516; }

/* support line */
.pd-support { text-align: center; padding: 40px 0 8px; }
.pd-support p { color: var(--muted); font-size: 15px; margin-bottom: 6px; }
.pd-support a { font-weight: 700; }

/* ============================================================
   Documentation sub-pages of a product
   (download.html, buy.htm, faq.htm, support.htm, commandline.htm,
    history*.htm and the "how to" pages)
   Their body markup is carried over from the old pages as it is, so the
   legacy classes .bold18 / .blue / .orangebold are re-styled here.
   ============================================================ */

/* the page head has no screenshot, so it can be shorter */
.pd-hero-doc { padding: 36px 0 30px; }
.pd-hero-doc h1 { font-size: 33px; }
.pd-hero-doc .lead { margin-bottom: 0; }

/* ---------- the running text ---------- */
.pd-doc { max-width: 906px; color: #33454a; font-size: 16px; }
.pd-doc-wide { max-width: none; }
.pd-doc p { margin-bottom: 13px; overflow-wrap: anywhere; }
.pd-doc > p:last-child, .pd-doc > div:last-child > p:last-child { margin-bottom: 0; }
.pd-doc strong, .pd-doc b { color: var(--ink); }
.pd-doc a { font-weight: 600; }
.pd-doc ul, .pd-doc ol { margin: 0 0 14px; padding-left: 22px; }
.pd-doc li { margin-bottom: 7px; }
.pd-doc hr { border: 0; border-top: 1px solid var(--border); margin: 28px 0; clear: both; }
.pd-doc img { max-width: 100%; height: auto; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.pd-doc a > img { transition: box-shadow .15s, border-color .15s; }
.pd-doc a:hover > img { border-color: var(--brand-deep); box-shadow: 0 8px 22px rgba(11,125,125,.14); }

/* headings the old pages wrote inline */
.pd-doc .bold18 { display: block; font-size: 19px; font-weight: 800; color: var(--ink); letter-spacing: -.2px; margin: 4px 0 13px; }
.pd-doc .blue { color: var(--brand-deep); }
.pd-doc .orangebold { color: var(--brand-deep); font-weight: 700; }
.pd-doc .style1 { color: #1f7a3d; }

/* the year switcher keeps its own look (name-only anchors stay invisible) */
.pd-doc .bold18 a[href] { display: inline-block; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 5px 14px; margin: 0 8px 8px 0; font-size: 13.5px; font-weight: 700; color: var(--brand-deep); }
.pd-doc .bold18 a[href]:hover { border-color: var(--brand-deep); text-decoration: none; }

/* ---------- tables ---------- */
.pd-doc table.pd-tbl { width: 100%; border-collapse: collapse; border-spacing: 0; border: 1px solid var(--border); background: #fff; font-size: 14.5px; }
.pd-doc table.pd-tbl > tbody > tr > td, .pd-doc table.pd-tbl > tr > td { border: 1px solid #e6eeee; padding: 9px 13px; vertical-align: top; color: #33454a; }
.pd-doc table.pd-tbl > tbody > tr > td > p:last-child { margin-bottom: 0; }
.pd-doc table.pd-tbl > tbody > tr:hover > td { background: #f7fbfb; }

/* price / buy links.  the price cell spans two rows, so the row after it
   holds the second buy link alone - that lone td is :first-child of its row
   too and must NOT get the big price type. */
.pd-doc table.pd-buy-tbl > tbody > tr:first-child > td { background: var(--brand-tint); font-weight: 700; color: var(--ink); }
.pd-doc table.pd-buy-tbl > tbody > tr:nth-child(2) > td:first-child { width: 90px; font-size: 19px; font-weight: 800; color: var(--brand-deep); vertical-align: middle; }

/* download versions.  the size sits in a tall row next to two download
   links, so it is centred in the cell instead of hugging the top. */
.pd-doc table.pd-dl-tbl > tbody > tr:first-child > td { background: var(--brand-tint); font-weight: 700; color: var(--ink); text-align: center; }
.pd-doc table.pd-dl-tbl > tbody > tr > td:last-child { width: 130px; }
.pd-doc table.pd-dl-tbl > tbody > tr + tr > td:last-child { vertical-align: middle; text-align: center; }

/* release history: version, date, details */
.pd-doc table.pd-hist > tbody > tr > td:nth-child(1) { width: 96px; font-weight: 800; color: var(--brand-deep); white-space: nowrap; }
.pd-doc table.pd-hist > tbody > tr > td:nth-child(2) { width: 118px; color: var(--muted); font-size: 13.5px; white-space: nowrap; }
.pd-doc table.pd-hist > tbody > tr > td:nth-child(3) table { font-size: 14px; }
.pd-doc table.pd-hist > tbody > tr > td:nth-child(3) table > tbody > tr > td:last-child { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* the long maps type index on the command line page */
.pd-doc table.pd-idx > tbody > tr:first-child > td { background: var(--brand-tint); font-weight: 700; color: var(--ink); }
.pd-doc table.pd-idx > tbody > tr > td:last-child { width: 130px; color: var(--muted); white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- tables the old pages brought along ----------
   Anything the builder could not unwrap keeps its own table; it only takes the
   new palette, so a reference table inside a page still looks like part of it. */
.pd-doc table.pd-wrap { width: 100%; border: 0; border-collapse: collapse; background: transparent; }
.pd-doc table.pd-wrap > tbody > tr > td { border: 0; padding: 0 0 12px; vertical-align: top; }
.pd-doc table[border] { border-collapse: collapse; }
.pd-doc table[border] > tbody > tr > td,
.pd-doc table[border] > tbody > tr > th { border-color: #e6eeee; }

/* ---------- picture grids (the examples pages) ----------
   The old markup is a table of thumbnails with a blank spacer row between the
   picture rows; the builder drops those rows and this turns what is left into
   a real grid that reflows on a phone. */
.pd-doc table.pd-ex { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; width: 100%; border: 0; background: transparent; }
.pd-doc table.pd-ex3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pd-doc table.pd-ex > tbody,
.pd-doc table.pd-ex > tbody > tr { display: contents; }
.pd-doc table.pd-ex > tbody > tr > td { width: auto; padding: 0; border: 0; vertical-align: top; }
.pd-doc table.pd-ex > tbody > tr > td > div { text-align: left; }
.pd-doc table.pd-ex strong { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); margin-bottom: 8px; line-height: 1.35; }
.pd-doc table.pd-ex a { display: block; }
.pd-doc table.pd-ex img { display: block; width: 100%; height: auto; }

/* ---------- "on this page" box ---------- */
.pd-toc { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px 20px; margin-bottom: 26px; }
.pd-toc h2 { font-size: 12px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.pd-toc ol { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 26px; }
.pd-toc li { counter-increment: pdtoc; }
.pd-toc { counter-reset: pdtoc; }
.pd-toc a { display: flex; align-items: baseline; gap: 10px; padding: 7px 10px; border-radius: 8px; font-size: 14.5px; font-weight: 600; color: #3c5459; }
.pd-toc a::before { content: counter(pdtoc); font-size: 12px; font-weight: 800; color: #b4cbcc; font-variant-numeric: tabular-nums; }
.pd-toc a:hover { background: var(--brand-tint); color: var(--brand-deep); text-decoration: none; }

@media (max-width: 980px) {
  .pd-hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .pd-hero h1 { font-size: 29px; }
  .pd-cols { grid-template-columns: 1fr; }
  .pd-gal { grid-template-columns: 1fr; }
  .pd-buy { grid-template-columns: 1fr; padding: 26px 22px; }
  .pd-toc ol { grid-template-columns: 1fr; }
  .pd-hero-doc h1 { font-size: 27px; }
  .pd-doc table.pd-tbl { font-size: 13.5px; }
  .pd-doc table.pd-tbl > tbody > tr > td, .pd-doc table.pd-tbl > tr > td { padding: 8px 10px; overflow-wrap: anywhere; }
  /* the reference tables have to be able to shrink to a phone width */
  .pd-doc table.pd-hist > tbody > tr > td:nth-child(1),
  .pd-doc table.pd-hist > tbody > tr > td:nth-child(2),
  .pd-doc table.pd-idx > tbody > tr > td:last-child { width: auto; white-space: normal; }
  .pd-doc table.pd-hist > tbody > tr > td:nth-child(3) table > tbody > tr > td:last-child { white-space: normal; }
  .pd-doc table.pd-ex3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .pd-doc table.pd-ex { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  /* legacy tables keep a hardcoded width="…" attribute; a phone has to win */
  .pd-doc table[width] { width: 100%; }
  .pd-doc table[width] > tbody > tr > td,
  .pd-doc table[width] > tbody > tr > th { overflow-wrap: anywhere; }
}
@media (max-width: 860px) {
  /* two stacked sticky bars waste too much of a phone screen */
  .pd-bar { position: static; }
  .pd-bar ul { gap: 2px; padding: 6px 0; }
  .pd-bar a { padding: 6px 10px; font-size: 13.5px; }
  /* the bar wraps at this width, so the divider would dangle at a line end */
  .pd-bar li.pd-bar-name { border-right: 0; margin-right: 0; padding-right: 2px; }
  .pd-bar li.pd-bar-name > a { white-space: normal; }
  .pd-section { padding: 38px 0; }
  .pd-src-list { max-height: 260px; padding: 13px; }
  .pd-hero { padding: 30px 0 34px; }
}
@media (max-width: 620px) {
  /* the product name reads as a heading over its own links */
  .pd-bar li.pd-bar-name { flex-basis: 100%; padding-right: 0; }
}
