/* Ashkon Software — site stylesheet (2026 redesign)
   Palette: light blue surfaces, blue accent, navy text and footer, white;
   logo red for the order action, green for downloads. */

:root {
  --blue-soft: #e8f2fc;      /* light blue surface */
  --blue: #2f7fc4;           /* accent: borders, check marks, rules */
  --blue-deep: #1b5e99;      /* links and prices, AA contrast on white */
  --blue-tint: #f3f8fd;      /* section and hero background */
  --blue-line: #d5e4f3;      /* hairlines */
  --navy: #0f2a46;
  --ink: #0f1d2b;
  --text: #2b2b2b;
  --muted: #5a5a5a;
  --bg: #fff;
  --red: #c8141c;
  --red-dark: #a10f16;
  --green: #2e7d3a;
  --green-dark: #24642e;
  --radius: 6px;
  --shadow: 0 1px 3px rgba(0,0,0,.12), 0 4px 14px rgba(0,0,0,.06);
  --wrap: 1140px;
  --font: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 73px; } /* = sticky header height, so #anchors land flush under the navbar */

body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;               /* larger reading size, in line with filesland.com */
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; height: auto; }

a { color: var(--blue-deep); text-underline-offset: 2px; }
a:hover { color: var(--ink); }

h1, h2, h3, h4 { font-family: Arial, Helvetica, sans-serif; color: var(--ink); line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: 2.3rem; }
h2 { font-size: 1.75rem; margin-top: 1.6em; }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 1000; }
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Top navbar (light blue) ---------- */
:root {
  --nav-bg: #e8f2fc;
  --nav-line: #b9d4ee;
  --nav-ink: #0f2a46;
  --nav-hover: #cfe3f7;
  --nav-accent: #1f6fb2;
}
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-line);
  box-shadow: 0 2px 10px rgba(15, 42, 70, .08);
}
.nav-bar { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand img { display: block; width: 260px; height: auto; }

.nav-toggle {
  display: none; margin-left: auto;
  background: #fff; border: 1px solid var(--nav-line); border-radius: var(--radius);
  padding: 9px 14px; font: 700 16px/1 var(--font); color: var(--nav-ink); cursor: pointer;
}
.nav-toggle:hover { background: var(--nav-hover); }

.main-nav { margin-left: auto; }
.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.main-nav li { position: relative; }
.main-nav a, .main-nav .menu-btn {
  display: block; padding: 10px 14px;
  font: 700 17px/1.2 Arial, Helvetica, sans-serif; color: var(--nav-ink); white-space: nowrap;
  text-decoration: none; background: none; border: 0; border-radius: var(--radius); cursor: pointer;
}
.main-nav .menu-btn::after { content: ""; display: inline-block; margin-left: 6px; vertical-align: 3px;
  border: 5px solid transparent; border-top-color: currentColor; border-bottom: 0; transition: transform .15s; }
.main-nav a:hover, .main-nav .menu-btn:hover,
.main-nav .has-sub.open > .menu-btn { background: var(--nav-hover); color: var(--nav-ink); }
.main-nav a[aria-current="page"], .main-nav .menu-btn.current { color: var(--nav-accent); box-shadow: inset 0 -3px 0 var(--nav-accent); border-radius: var(--radius) var(--radius) 0 0; }
.main-nav a:focus-visible, .main-nav .menu-btn:focus-visible, .nav-toggle:focus-visible { outline: 2px solid var(--nav-accent); outline-offset: 2px; }

.main-nav .nav-order { background: var(--red); color: #fff; margin-left: 6px; box-shadow: none; border-radius: var(--radius); }
.main-nav .nav-order:hover, .main-nav .nav-order[aria-current="page"] { background: var(--red-dark); color: #fff; }

.submenu {
  list-style: none; margin: 0; padding: 6px 0;
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 270px;
  background: #fff; border: 1px solid var(--nav-line); border-top: 3px solid var(--nav-accent);
  box-shadow: 0 10px 24px rgba(15, 42, 70, .15); border-radius: 0 0 var(--radius) var(--radius);
  display: none;
}
.submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; } /* hover bridge over the gap below the button */
.has-sub.hover > .submenu { display: block; }
.submenu a { font-size: 16px; font-weight: 600; padding: 9px 16px; border-radius: 0; }
.submenu a:hover, .submenu a:focus-visible { background: var(--nav-bg); color: var(--nav-accent); outline: none; }
.submenu a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--nav-accent); border-radius: 0; background: var(--nav-bg); }
.has-sub:hover > .submenu,
.no-js .has-sub:focus-within > .submenu,
.has-sub.open > .submenu { display: block; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 15px; color: var(--muted); padding-top: 14px; padding-bottom: 0; }
.breadcrumb + main > .hero:first-child { padding-top: 24px; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--blue); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, #fff 0%, var(--blue-tint) 100%);
  border-bottom: 1px solid var(--blue-line);
  padding: 44px 0 48px;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero .lead { font-size: 1.2rem; color: #333; max-width: 40em; }
.hero-shot { background: #fff; padding: 6px; border: 1px solid var(--blue-line); border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-shot img { display: block; margin: 0 auto; }
.eyebrow { display: inline-block; font: 700 14px/1 Arial, sans-serif; letter-spacing: .06em; text-transform: uppercase;
  color: var(--blue-deep); background: #fff; border: 1px solid var(--blue-line); padding: 6px 10px; border-radius: 99px; margin-bottom: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 12px 22px; margin: 6px 10px 6px 0;
  font: 700 17px/1.2 Arial, Helvetica, sans-serif; text-decoration: none; text-align: center;
  border-radius: var(--radius); border: 1px solid transparent; box-shadow: 0 2px 3px rgba(0,0,0,.18);
}
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn-download { background: var(--green); color: #fff; border-color: var(--green-dark); }
.btn-download:hover { background: var(--green-dark); color: #fff; }
.btn-order { background: var(--red); color: #fff; border-color: var(--red-dark); }
.btn-order:hover { background: var(--red-dark); color: #fff; }
.btn-ghost { background: #fff; color: #0f2a46; border-color: #0f2a46; box-shadow: none; }
.btn-ghost:hover { background: #eef5fc; color: #0f2a46; border-color: #1f6fb2; box-shadow: 0 0 0 1px #1f6fb2 inset; }
.btn-sm { padding: 8px 14px; font-size: 15px; }
.btn small { display: block; font-weight: 400; font-size: 13px; opacity: .9; }

/* ---------- Sections & cards ---------- */
.section { padding: 40px 0; }
.section-alt { background: linear-gradient(180deg, var(--blue-tint) 0%, #eaf2fb 100%); border-top: 1px solid var(--blue-line); border-bottom: 1px solid var(--blue-line); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.section-head h2 { margin-top: 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; margin-top: 18px; }
.card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--blue-line); border-top: 4px solid var(--blue);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
}
.card-head { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; }
.card-head img { flex: 0 0 auto; border: 1px solid #ddd; border-radius: 4px; }
.card h3 { margin: 0; font-size: 1.2rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card .price { font-weight: 700; color: var(--blue-deep); font-size: 16px; }
.card p { font-size: 17px; margin-bottom: 14px; }
.card .card-actions { margin-top: auto; }

/* ---------- Product page ---------- */
.product-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.facts {
  position: sticky; top: 96px;
  background: #fff; border: 1px solid var(--blue-line); border-top: 4px solid var(--blue);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
}
.facts h2 { font-size: 1.2rem; margin: 0 0 10px; }
.facts dl { margin: 0 0 14px; font-size: 16px; }
.facts dt { font-weight: 700; color: var(--ink); }
.facts dd { margin: 0 0 8px; color: #333; }
.facts .btn { display: block; margin: 8px 0 0; }
.facts .price-big { font: 700 2rem/1 Arial, sans-serif; color: var(--ink); margin: 4px 0 12px; }

.features { list-style: none; padding: 0; margin: 0 0 1em; }
.features li { position: relative; padding: 4px 0 4px 34px; }
.features li::before {
  content: ""; position: absolute; left: 4px; top: 12px; width: 16px; height: 9px;
  border-left: 3px solid var(--blue); border-bottom: 3px solid var(--blue); transform: rotate(-45deg);
}
.features strong { color: var(--ink); }

.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin: 10px 0 24px; }
.shots figure { margin: 0; background: #fff; border: 1px solid var(--blue-line); border-radius: var(--radius); padding: 8px; box-shadow: var(--shadow); }
.shots img { display: block; margin: 0 auto; }
.shots figcaption { font-size: 15px; color: var(--muted); text-align: center; padding-top: 6px; }

.callout { background: var(--blue-tint); border-left: 5px solid var(--blue); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; margin: 20px 0; }
.callout p:last-child { margin-bottom: 0; }

/* ---------- Tables (download / order) ---------- */
.table-wrap { overflow-x: auto; margin: 14px 0 24px; border: 1px solid var(--blue-line); border-radius: var(--radius); }
table.list { width: 100%; border-collapse: collapse; font-size: 17px; background: #fff; }
table.list caption { text-align: left; font: 700 1.25rem Arial, sans-serif; padding: 14px 16px; background: var(--blue-soft); color: var(--navy); border-bottom: 2px solid var(--blue); }
table.list th, table.list td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--blue-line); vertical-align: middle; }
table.list thead th { background: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .04em; color: #4a5b6d; }
table.list tbody tr:hover { background: var(--blue-tint); }
table.list .prod { display: flex; align-items: center; gap: 12px; font-weight: 700; }
table.list .prod a { color: var(--ink); }
table.list .num { white-space: nowrap; font-weight: 700; }
table.list .old { color: var(--muted); font-weight: 400; text-decoration: line-through; margin-right: 6px; }
table.list .mirror { font-size: 15px; white-space: nowrap; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
address { font-style: normal; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #d6e2ee; margin-top: 50px; border-top: 4px solid var(--blue); font-size: 16px; }
.footer-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; padding: 36px 20px 20px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.site-footer h2 { color: #9cc8f0; font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 6px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #9cc8f0; text-decoration: underline; }
.footer-bottom { border-top: 1px solid #23415f; padding: 16px 20px; font-size: 15px; color: #aaa; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-bar { flex-wrap: wrap; }
  .main-nav { flex-basis: 100%; margin: 0; }
  .js .main-nav { display: none; }
  .js .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; padding: 6px 0 14px; }
  .main-nav .nav-order { margin: 6px 0 0; text-align: center; }
  .submenu { position: static; display: none; border: 0; border-left: 3px solid var(--nav-accent); box-shadow: none; background: #fff; border-radius: 0; margin: 2px 0 6px 14px; }
  .has-sub:hover > .submenu, .has-sub.hover > .submenu { display: none; }
  .has-sub.open > .submenu, .no-js .has-sub:focus-within > .submenu { display: block; }
  .no-js .submenu { display: block; }
  .hero-grid, .product-layout { grid-template-columns: 1fr; }
  .facts { position: static; }
  h1 { font-size: 1.9rem; }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .brand img { width: 190px; }
  .btn { display: block; margin: 8px 0; }
  table.list .mirror { display: none; }
}

@media print {
  .site-header, .site-footer, .btn, .facts .btn { display: none; }
  body { font-size: 12pt; }
}

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
table.order th:nth-child(1) { width: 50%; }
table.order th:nth-child(2) { width: 22%; }
table.dl th:nth-child(1) { width: 30%; }
table.dl th:nth-child(3) { width: 150px; }
table.dl th:nth-child(4) { width: 100px; }
.shots figure.wide { grid-column: 1 / -1; }
.product-layout h3 { margin-top: 1.2em; }

/* Products mega menu */
.nav-bar { position: relative; }
.main-nav .has-sub.mega { position: static; }
.mega-panel { left: 20px; right: 20px; top: calc(100% - 4px); display: none; padding: 18px 20px 20px;
  grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 22px; }
.has-sub.mega:hover > .mega-panel, .has-sub.mega.open > .mega-panel, .no-js .has-sub.mega:focus-within > .mega-panel { display: grid; }
.mega-panel::before { top: -18px; height: 18px; }
.has-sub.mega.hover > .mega-panel { display: grid; }
.mega-panel ul { list-style: none; margin: 0; padding: 0; }
.mega-h { margin: 0 0 6px; padding: 0 0 6px; border-bottom: 1px solid var(--nav-line); }
.main-nav .mega-h a { padding: 4px 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--nav-accent); white-space: normal; }
.mega-panel a { font-size: 15.5px; font-weight: 600; padding: 6px 8px; border-radius: 4px; white-space: normal; }
@media (max-width: 1100px) { .mega-panel { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .mega-panel { grid-template-columns: 1fr; padding: 8px 10px; }
  .has-sub.mega:hover > .mega-panel, .has-sub.mega.hover > .mega-panel { display: none; }
  .has-sub.mega.open > .mega-panel, .no-js .has-sub.mega .mega-panel { display: grid; }
}

/* ---------- Technical Analysis section ---------- */
.lead { font-size: 1.15rem; color: #333; }
.formula { overflow-x: auto; background: var(--blue-tint); border: 1px solid var(--blue-line); border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 12px 18px; margin: 10px 0 16px; }
.formula math { font-size: 1.2em; color: var(--ink); }
figure.chart { margin: 18px 0 24px; }
figure.chart img { display: block; border: 1px solid var(--blue-line); border-radius: var(--radius); box-shadow: var(--shadow); image-rendering: auto; }
article figure.chart img { width: 442px; }
figure.chart figcaption { font-size: 15px; color: var(--muted); padding-top: 8px; max-width: 40em; }
.hero-shot.chart { margin: 0; }
.hero-shot.chart img { box-shadow: none; border: 0; }
.ind-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 18px 0; }
.ind-meta div { background: #fff; border: 1px solid var(--blue-line); border-top: 3px solid var(--blue); border-radius: var(--radius); padding: 10px 14px; }
.ind-meta dt { font: 700 13px/1.3 Arial, sans-serif; text-transform: uppercase; letter-spacing: .05em; color: var(--blue-deep); }
.ind-meta dd { margin: 4px 0 0; font-size: 16px; color: var(--ink); }
.ind-nav { list-style: none; margin: 0 0 16px; padding: 0; font-size: 16px; }
.ind-nav a { display: block; padding: 5px 10px; text-decoration: none; border-radius: 4px; }
.ind-nav a:hover { background: var(--blue-soft); }
.ind-nav a[aria-current="page"] { background: var(--blue-soft); box-shadow: inset 3px 0 0 var(--blue); font-weight: 700; color: var(--ink); }
.ind-nav .ind-group { font: 700 12.5px/1.3 Arial, sans-serif; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 12px 0 4px; padding: 0 10px; }
.facts-cta { border-top: 1px solid var(--blue-line); padding-top: 14px; }
.facts-cta h2 { font-size: 1.05rem; }
.facts-cta p { font-size: 15.5px; }
.ind-side { position: static; }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--blue-line); }
.pager a { display: block; max-width: 48%; text-decoration: none; font-weight: 700; }
.pager a span { display: block; font: 400 14px/1.3 var(--font); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.pager .next { text-align: right; margin-left: auto; }
.ind-card-meta { font-size: 15px !important; color: var(--muted); }
table.ta-table td:first-child { font-weight: 700; white-space: nowrap; }

/* ---------- Help / FAQ pages ---------- */
ol.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 1.2em; }
ol.steps > li { counter-increment: step; position: relative; padding: 12px 16px 12px 58px; margin: 0 0 10px;
  background: #fff; border: 1px solid var(--blue-line); border-radius: var(--radius); }
ol.steps > li::before { content: counter(step); position: absolute; left: 14px; top: 12px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--blue); color: #fff; font: 700 16px/30px Arial, sans-serif; text-align: center; }
code { font-family: Consolas, "Courier New", monospace; font-size: .92em; background: var(--blue-tint); border: 1px solid var(--blue-line); border-radius: 4px; padding: 1px 5px; }
kbd { font-family: Consolas, "Courier New", monospace; font-size: .88em; background: #fff; border: 1px solid #b7c3cf; border-bottom-width: 2px; border-radius: 4px; padding: 1px 6px; }

/* ---- Resource lists: stock sectors and indices ---- */
.az-index { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 0 0 28px; }
.az-index a { display: inline-block; padding: 4px 10px; border: 1px solid var(--blue-line); border-radius: 999px; background: var(--blue-tint); font-size: .9em; text-decoration: none; }
.az-index a:hover { background: var(--blue-soft); border-color: var(--blue); }
.sector-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; align-items: start; }
.sector-group { border: 1px solid var(--blue-line); border-radius: var(--radius); padding: 14px 16px; background: var(--bg); }
.sector-group h3 { margin: 0 0 8px; font-size: 1.05em; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.sector-group .count { font-size: .8em; font-weight: 600; color: var(--muted); background: var(--blue-tint); border-radius: 999px; padding: 1px 8px; }
.sector-group ul { list-style: none; margin: 0; padding: 0; }
.sector-group li { padding: 3px 0; border-top: 1px solid var(--blue-tint); }
.sector-group li:first-child { border-top: 0; }
table.idx-table td:first-child { white-space: nowrap; }
.part-links { display: flex; flex-wrap: wrap; gap: 6px; }
ul.link-list { columns: 3 220px; column-gap: 28px; padding-left: 1.1em; margin: 0 0 24px; }
ul.link-list li { padding: 3px 0; break-inside: avoid; }
@media (max-width: 600px) { table.idx-table td:first-child { white-space: normal; } }

/* ---- Industry group pages (/industries/) ---- */
.ind-count { margin: 6px 0 0; color: var(--muted); }
.ind-count strong { color: var(--ink); font-size: 1.15em; }
table.stock-table td.sym { white-space: nowrap; font: 700 16px/1.4 Consolas, "Courier New", monospace; width: 1%; }
table.stock-table td.sym a { text-decoration: none; }
table.stock-table td.sym a:hover { text-decoration: underline; }
.note { font-size: 15px; color: var(--muted); }
.stock-form { display: flex; gap: 8px; margin: 0 0 20px; }
.stock-form input { flex: 1 1 auto; min-width: 0; font: inherit; font-size: 16px; padding: 7px 10px; border: 1px solid #b7c3cf; border-radius: 4px; text-transform: uppercase; }
.stock-form input::placeholder { text-transform: none; }
.stock-form input:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.facts .stock-form .btn { display: inline-block; margin: 0; flex: 0 0 auto; }
.product-layout > * { min-width: 0; }
table.stock-table td { vertical-align: top; overflow-wrap: anywhere; }
@media (max-width: 600px) { table.stock-table th, table.stock-table td { padding-left: 10px; padding-right: 10px; } }

/* ---- Sector company lists ---- */
table.sector-table tr.letter-row th { background: var(--blue-tint); color: var(--blue-deep); font: 700 15px/1.2 Arial, sans-serif; padding-top: 8px; padding-bottom: 8px; text-align: left; }
table.sector-table tbody { scroll-margin-top: 80px; }
.hero .btn + .btn { margin-left: 6px; }

/* ---- Index lists and market movers ---- */
nav.part-links { margin: 0 0 16px; }
.part-links a[aria-current="page"] { background: var(--blue-soft); border-color: var(--blue); color: var(--ink); }
.hero .part-links { margin-top: 14px; }
table.stock-table td.num, table.stock-table th.num { text-align: right; white-space: nowrap; width: 1%; }
.movers-table td.up { color: var(--green); font-weight: 700; }
.movers-table td.down { color: var(--red); font-weight: 700; }
.ind-nav li.ind-group { font: 700 12.5px/1.3 Arial, sans-serif; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 12px 0 4px; padding: 0 10px; }
.part-links .btn + .btn { margin-left: 0; }

/* One-line page title (e.g. Stock Sectors): scales with the hero column instead of wrapping */
h1.h1-fit { font-size: clamp(1.25rem, 2.9vw, 2rem); white-space: nowrap; }
@media (max-width: 860px) { h1.h1-fit { font-size: min(1.9rem, calc((100vw - 40px) / 17.2)); } }

/* Hero with a small screenshot: the image box shrinks to the image, the text column takes the rest */
.hero-grid--small-shot { grid-template-columns: minmax(0, 1fr) auto; }
.hero-grid--small-shot .hero-shot { width: fit-content; margin: 0; }
@media (max-width: 860px) { .hero-grid--small-shot { grid-template-columns: 1fr; } .hero-grid--small-shot .hero-shot { margin: 0 auto; } }
.hero-grid--small-shot .btn { margin: 0 6px 8px 0; }
.hero-grid--small-shot .btn + .btn { margin-left: 0; }
.hero-grid--small-shot { gap: 32px; }

/* ---- Traders glossary ---- */
.gloss-letter { margin-top: 1.2em; padding-bottom: 6px; border-bottom: 2px solid var(--blue); color: var(--navy); }
dl.gloss-list { margin: 0 0 12px; }
dl.gloss-list > div { padding: 12px 0; border-bottom: 1px solid var(--blue-line); }
dl.gloss-list dt { font: 700 1.1rem/1.3 Arial, Helvetica, sans-serif; margin: 0 0 4px; }
dl.gloss-list dt a { color: var(--ink); text-decoration: none; }
dl.gloss-list dt a:hover { color: var(--blue-deep); text-decoration: underline; }
dl.gloss-list dd { margin: 0; color: #333; }
.gloss-term { display: flow-root; }
.gloss-term h3 { margin-top: 1.2em; }
ul.gloss-ul { padding-left: 1.3em; margin: 0 0 1em; }
ul.gloss-ul li { margin: 0 0 8px; }
ul.gloss-ul li::marker { color: var(--blue); }
figure.gloss-fig { margin: 8px 0 20px; }
figure.gloss-fig img { display: block; border: 1px solid var(--blue-line); border-radius: var(--radius); background: #fff; }
figure.gloss-fig--side { float: right; max-width: 42%; margin: 6px 0 16px 24px; }
@media (max-width: 600px) { figure.gloss-fig--side { float: none; max-width: 100%; margin: 8px auto 20px; } figure.gloss-fig--side img { margin: 0 auto; } }

/* ---- Stock Predictor trading strategies ---- */
.formula pre { margin: 0; font: 15.5px/1.6 Consolas, "Courier New", monospace; color: var(--ink); white-space: pre; }
table.strat-table td:first-child { font-weight: 700; width: 34%; }
table.strat-table td { vertical-align: top; }

/* ---- Discontinued product pages ---- */
.disc-notice { background: #fff4e5; border-left-color: #c77700; max-width: 46em; }
.disc-notice strong { color: #8a4b00; }
a.disc-tile { display: flex; flex-direction: row; gap: 18px; align-items: center; max-width: 46em; margin-top: 16px; text-decoration: none; color: #333; }
a.disc-tile:hover { border-color: var(--blue); box-shadow: var(--shadow); }
a.disc-tile img { flex: 0 0 auto; border: 1px solid var(--blue-line); border-radius: 4px; }
a.disc-tile strong { display: block; font: 700 1.25rem/1.3 Arial, sans-serif; color: var(--ink); margin: 2px 0 4px; }
.disc-tile-k { display: block; font: 700 13px/1.2 Arial, sans-serif; text-transform: uppercase; letter-spacing: .06em; color: var(--green-dark); }
.disc-tile-go { display: block; margin-top: 8px; font-weight: 700; color: var(--blue-deep); }
@media (max-width: 600px) { a.disc-tile { flex-direction: column; align-items: flex-start; } }
h3.disc-group { margin: 1.6em 0 0; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .05em; color: var(--blue-deep); }

/* ---- User guides: sidebar stays in view while scrolling (desktop); the section list scrolls inside it if needed, the download/buy tile is always visible ---- */
@media (min-width: 861px) {
  .facts.guide-side { position: sticky; top: 90px; display: flex; flex-direction: column; max-height: calc(100vh - 110px); }
  .guide-side .ind-nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
  .guide-side .facts-cta { flex: none; }
}

/* Glossary term pages: keep the right sidebar in view while the page scrolls */
@media (min-width: 861px) {
  .gloss-term + .ind-side { position: sticky; top: 96px; max-height: calc(100vh - 116px); overflow-y: auto; }
}

/* Stock list, index, sector and industry pages: intro text uses the full page width */
.hero .wrap:has(.ind-count, .part-links) > .lead { max-width: none; }

/* Uninstall feedback form (uninstall.html -> poll.php) */
.fb-card { margin: 28px 0; border-top: 4px solid var(--blue); }
.fb-form label, .fb-form legend { display: block; font-weight: 600; color: var(--ink); margin: 14px 0 4px; }
.fb-form fieldset { border: 0; padding: 0; margin: 0; }
.fb-form fieldset label { font-weight: 400; margin: 4px 0; display: flex; gap: 8px; align-items: baseline; }
.fb-form select, .fb-form textarea, .fb-form input[type=email] { width: 100%; max-width: 560px; font: inherit; font-size: 16px; padding: 8px 10px; border: 1px solid #b7c3cf; border-radius: 4px; background: #fff; }
.fb-form textarea { resize: vertical; }
.fb-form select:focus, .fb-form textarea:focus, .fb-form input:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.fb-opt { font-weight: 400; color: var(--muted); }
.fb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Stock report pages (/stock/) ---- */
.stock-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; }
.stock-head h1 { margin-bottom: .3em; }
.stock-head h1 .sym { color: var(--blue-deep); font-weight: 400; }
.stock-logo { width: 132px; height: 132px; display: grid; place-items: center; background: #fff; border: 1px solid var(--blue-line); border-radius: 12px; box-shadow: var(--shadow); padding: 16px; }
.stock-logo img { display: block; max-height: 100%; width: auto; }
.quote-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin: 0; }
.q-price { font: 700 2.6rem/1 Arial, Helvetica, sans-serif; color: var(--ink); font-variant-numeric: tabular-nums; }
.q-price .ccy { font-size: .5em; font-weight: 400; color: var(--muted); margin-left: 4px; }
.q-chg { font: 700 1.25rem/1 Arial, Helvetica, sans-serif; font-variant-numeric: tabular-nums; padding: 6px 10px; border-radius: 999px; background: #eef1f4; color: var(--muted); }
.q-chg.up { color: var(--green-dark); background: #e7f4e9; }
.q-chg.down { color: var(--red-dark); background: #fdeaea; }
.q-time { font-size: 15px; color: var(--muted); flex-basis: 100%; }
.q-loading { color: #b7c3cf; }

.chart-card { border-top-width: 4px; padding: 18px 20px 14px; }
.chart-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 10px; }
.chart-top h2 { margin: 0; font-size: 1.35rem; }
.chart-perf { font: 700 15px/1.2 Arial, sans-serif; color: var(--muted); font-variant-numeric: tabular-nums; }
.chart-perf.up { color: var(--green-dark); }
.chart-perf.down { color: var(--red-dark); }
.range-tabs { display: inline-flex; border: 1px solid var(--blue-line); border-radius: 999px; background: var(--blue-tint); padding: 3px; gap: 2px; }
.range-tabs button { font: 700 14px/1 Arial, sans-serif; color: var(--navy); background: transparent; border: 0; border-radius: 999px; padding: 8px 13px; cursor: pointer; }
.range-tabs button:hover { background: var(--blue-soft); }
.range-tabs button[aria-pressed="true"] { background: var(--blue-deep); color: #fff; }
.range-tabs button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.price-chart { position: relative; height: 340px; }
.chart-msg { position: absolute; inset: 0; display: grid; place-items: center; font-size: 15px; color: var(--muted); pointer-events: none; }
.chart-msg[hidden] { display: none; }
@media (max-width: 520px) { .price-chart { height: 260px; } .range-tabs button { padding: 7px 9px; } }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0; margin: 12px 0 8px; border: 1px solid var(--blue-line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.stat-grid div { padding: 12px 16px; border-right: 1px solid var(--blue-line); border-bottom: 1px solid var(--blue-line); margin: 0 -1px -1px 0; }
.stat-grid dt { font: 700 12.5px/1.3 Arial, sans-serif; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.stat-grid dd { margin: 4px 0 0; font: 700 17px/1.3 Arial, sans-serif; color: var(--ink); font-variant-numeric: tabular-nums; }
.co-about { display: flow-root; }
.ticker-chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 16px; padding: 0; }
.ticker-chips a { display: inline-block; min-width: 58px; text-align: center; padding: 4px 10px; border: 1px solid var(--blue-line); border-radius: 999px; background: var(--blue-tint); font: 700 14px/1.4 Consolas, "Courier New", monospace; text-decoration: none; }
.ticker-chips a:hover { background: var(--blue-soft); border-color: var(--blue); }
.facts .ind-link { font-size: 16px; margin: 0 0 16px; }
@media (max-width: 860px) { .stock-head { grid-template-columns: minmax(0, 1fr); } .stock-logo { display: none; } .q-price { font-size: 2.2rem; } }
.stock-logo[hidden] { display: none; }
