/*
Theme Name: BIST Şirketleri
Theme URI: https://bistsirketleri.com/
Author: BIST Şirketleri
Description: BIST Şirketleri için erişilebilir ve mobil uyumlu özel tema.
Version: 1.3.1
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: bistsirketleri
*/

:root {
  --ink: #10233d;
  --ink-soft: #526174;
  --navy: #071b24;
  --navy-2: #0b3540;
  --blue: #087f6a;
  --cyan: #17b897;
  --mint: #63dfa8;
  --paper: #ffffff;
  --mist: #f4f7fb;
  --line: #dce5ef;
  --warning: #fff6df;
  --warning-line: #f1c75b;
  --radius: 20px;
  --shadow: 0 22px 60px rgba(7, 24, 46, 0.10);
  --content: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #0d4fc9; }
img { max-width: 100%; height: auto; }
.wrap { width: min(calc(100% - 40px), var(--content)); margin-inline: auto; }
.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 9999;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--paper);
  color: var(--navy);
  font-weight: 800;
}
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,.10);
  background: rgba(7, 24, 46, .94);
  backdrop-filter: blur(14px);
}
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-weight: 900; letter-spacing: -.02em; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a { color: #d8e5f5; text-decoration: none; font-size: 14px; font-weight: 700; }
.site-nav a:hover { color: #fff; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 86px;
  background:
    radial-gradient(circle at 80% 20%, rgba(26,200,212,.22), transparent 30%),
    radial-gradient(circle at 18% 80%, rgba(23,107,255,.23), transparent 36%),
    linear-gradient(135deg, var(--navy), var(--navy-2));
  color: #fff;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .13;
  background-image: linear-gradient(rgba(255,255,255,.4) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.4) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 86%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); align-items: center; gap: 64px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 18px; color: #9cecf0; font-size: 13px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--cyan); }
.hero h1 { max-width: 760px; margin: 0; font-size: clamp(3rem, 7vw, 5.8rem); line-height: .98; letter-spacing: -.065em; }
.hero-lead { max-width: 720px; margin: 26px 0 0; color: #ccdaeb; font-size: clamp(1.05rem, 2vw, 1.25rem); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 12px; font-size: 14px; font-weight: 850; text-decoration: none; }
.button-primary { background: var(--mint); color: #032719; }
.button-primary:hover { background: #72e5b9; color: #032719; }
.button-secondary { border: 1px solid rgba(255,255,255,.25); color: #fff; background: rgba(255,255,255,.06); }
.button-secondary:hover { border-color: rgba(255,255,255,.55); color: #fff; }
.market-card { position: relative; padding: 28px; border: 1px solid rgba(255,255,255,.14); border-radius: 26px; background: rgba(255,255,255,.08); box-shadow: 0 30px 90px rgba(0,0,0,.22); backdrop-filter: blur(18px); }
.market-card small { color: #9cecf0; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.market-card strong { display: block; margin-top: 8px; font-size: 34px; letter-spacing: -.04em; }
.market-line { position: relative; height: 124px; margin-top: 22px; overflow: hidden; }
.market-line svg { width: 100%; height: 100%; }
.market-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.market-meta div { padding: 11px 8px; border-radius: 12px; background: rgba(0,0,0,.16); text-align: center; }
.market-meta b { display: block; font-size: 14px; }
.market-meta span { color: #aabbd0; font-size: 11px; }

.content-shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 44px; padding: 54px 0 90px; align-items: start; }
.toc { position: sticky; top: 104px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: 0 12px 32px rgba(7,24,46,.05); }
.toc-title { margin: 0 0 14px; color: var(--ink); font-size: 13px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: grid; grid-template-columns: 24px 1fr; gap: 7px; padding: 7px 0; color: var(--ink-soft); font-size: 13px; line-height: 1.35; text-decoration: none; }
.toc a::before { content: counter(toc, decimal-leading-zero); color: var(--blue); font-size: 11px; font-weight: 900; }
.toc a:hover { color: var(--blue); }

.article { min-width: 0; padding: clamp(28px, 5vw, 64px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.article p { margin: 0 0 1.35em; color: #33465e; }
.article > p:first-of-type { color: var(--ink); font-size: 1.15rem; line-height: 1.8; }
.article h2 { scroll-margin-top: 108px; margin: 2.2em 0 .75em; color: var(--navy); font-size: clamp(1.7rem, 4vw, 2.45rem); line-height: 1.15; letter-spacing: -.035em; }
.article h3 { scroll-margin-top: 108px; margin: 1.65em 0 .55em; color: var(--ink); font-size: 1.25rem; line-height: 1.3; }
.article strong { color: var(--navy); }
.glossary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 24px 0 36px; }
.term { padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: #f9fbfd; }
.term h3 { margin: 0 0 8px; font-size: 1rem; }
.term p { margin: 0; font-size: .94rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 24px 0 32px; }
.feature { padding: 22px; border-radius: 16px; background: linear-gradient(145deg, #0b2748, #0d365f); color: #fff; }
.feature b { display: block; margin-bottom: 8px; color: #fff; font-size: 1rem; }
.feature p { margin: 0; color: #c8d9e9; font-size: .91rem; }
.table-wrap { overflow-x: auto; margin: 24px 0 34px; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; background: #fff; font-size: .94rem; }
th, td { padding: 16px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #edf4ff; color: var(--navy); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
tr:last-child td { border-bottom: 0; }
.steps { margin: 26px 0 38px; padding: 0; list-style: none; counter-reset: steps; }
.steps li { position: relative; min-height: 58px; margin: 0 0 16px; padding: 0 0 0 66px; counter-increment: steps; }
.steps li::before { content: counter(steps); position: absolute; left: 0; top: 0; display: grid; width: 44px; height: 44px; place-items: center; border-radius: 13px; background: var(--blue); color: #fff; font-weight: 900; }
.steps strong { display: block; margin-bottom: 3px; }
.faq-list { display: grid; gap: 10px; margin-top: 22px; }
.faq-list details { border: 1px solid var(--line); border-radius: 14px; background: #fbfcfe; }
.faq-list summary { cursor: pointer; padding: 17px 20px; color: var(--navy); font-weight: 850; list-style-position: outside; }
.faq-list details p { padding: 0 20px 18px; margin: 0; }
.risk-box { margin-top: 38px; padding: 22px 24px; border-left: 5px solid var(--warning-line); border-radius: 12px; background: var(--warning); color: #5a4515; }
.risk-box p { margin: 0; color: inherit; }

.ticker-board { display: grid; gap: 10px; margin-top: 22px; }
.ticker-row { display: grid; grid-template-columns: 1.1fr .8fr .7fr; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: rgba(0,0,0,.18); }
.ticker-row span { color: #d8e9e6; font-size: 13px; }
.ticker-row b { color: #fff; font-size: 14px; }
.ticker-row em { color: #74e6b2; font-size: 12px; font-style: normal; font-weight: 800; text-align: right; }
.sector-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 24px 0 36px; }
.sector { padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: #f7fbfa; }
.sector h3 { margin: 0 0 8px; font-size: 1rem; }
.sector p { margin: 0; font-size: .94rem; }
.metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 24px 0 36px; }
.metric { padding: 20px; border-radius: 15px; background: #eef8f5; border-left: 4px solid var(--cyan); }
.metric h4 { margin: 0 0 8px; color: var(--navy); font-size: 1rem; }
.metric p { margin: 0; font-size: .94rem; }

.directory-page { padding-top: 38px; padding-bottom: 74px; }
.directory-breadcrumb { margin-bottom: 30px; color: var(--ink-soft); font-size: 14px; }
.directory-breadcrumb span { margin-inline: 8px; }
.directory-intro { max-width: 820px; margin-bottom: 28px; }
.directory-intro h1 { margin: 0 0 12px; color: var(--navy); font-size: clamp(2.1rem, 6vw, 3.8rem); line-height: 1.08; letter-spacing: -.05em; }
.directory-intro p { margin: 0 0 10px; color: var(--ink-soft); }
.directory-freshness { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 14px; }
.directory-freshness strong { color: var(--blue); }
.directory-shortcuts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0 0 24px; }
.directory-shortcuts-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.directory-shortcuts a { display: grid; gap: 3px; min-width: 0; padding: 18px 20px; border: 1px solid #d3e3df; border-radius: 15px; background: #f8fcfb; color: var(--ink); text-decoration: none; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.directory-shortcuts a:hover { transform: translateY(-2px); border-color: var(--cyan); color: var(--ink); box-shadow: 0 12px 26px rgba(7, 24, 46, .07); }
.directory-shortcuts strong { color: var(--navy); font-size: 15px; }
.directory-shortcuts span { color: var(--ink-soft); font-size: 13px; line-height: 1.45; }
.directory-panel { padding: clamp(20px, 4vw, 36px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.directory-controls { display: grid; grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr); gap: 18px; }
.directory-controls-single { grid-template-columns: minmax(0, 640px); }
.directory-controls label { display: grid; gap: 8px; color: var(--navy); font-size: 14px; font-weight: 750; }
.directory-controls input, .directory-controls select { min-width: 0; width: 100%; height: 48px; padding: 0 14px; border: 1px solid #b8c8d7; border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-size: 15px; }
.directory-controls input:focus-visible, .directory-controls select:focus-visible { outline: 3px solid #3ab99b; outline-offset: 2px; }
.directory-result-count { margin: 18px 0 12px; color: var(--ink-soft); font-size: 14px; }
.directory-table-wrap { max-height: 700px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.directory-table { margin: 0; }
.directory-table thead { position: sticky; top: 0; z-index: 1; }
.directory-table th, .directory-table td { padding: 12px 14px; }
.directory-table tbody th { color: var(--blue); white-space: nowrap; }
.directory-table tbody tr:nth-child(even) { background: #f8fbfd; }
.directory-table tbody tr[hidden] { display: none; }
.directory-table-ranked td:first-child { width: 74px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.directory-no-results { margin: 18px 0 0; color: var(--ink-soft); }
.directory-source { max-width: 850px; margin: 20px 0 0; color: var(--ink-soft); font-size: 13px; }
.directory-copy { max-width: 900px; margin: 26px 0 0; padding: clamp(24px, 4vw, 38px); border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.directory-copy h2 { margin: 0 0 12px; color: var(--navy); font-size: clamp(1.35rem, 3vw, 1.9rem); line-height: 1.25; letter-spacing: -.025em; }
.directory-copy h2:not(:first-child) { margin-top: 30px; }
.directory-copy p { margin: 0 0 14px; color: #33465e; }
.directory-copy p:last-child { margin-bottom: 0; }

.download-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.download-card { padding: clamp(24px, 4vw, 36px); border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: 0 16px 38px rgba(7, 24, 46, .07); }
.download-card h2 { margin: 4px 0 12px; color: var(--navy); font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.2; letter-spacing: -.025em; }
.download-card > p { color: var(--ink-soft); }
.download-kicker { margin: 0; color: var(--blue) !important; font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.download-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 16px; }
.button-download { background: var(--blue); color: #fff; }
.button-download:hover { background: #066d5b; color: #fff; }
.button-download-secondary { border: 1px solid #b9cbc6; background: #f6fbf9; color: var(--navy); }
.button-download-secondary:hover { border-color: var(--blue); color: var(--navy); }
.download-meta { margin: 0; font-size: 13px; }

.definition-article { padding: clamp(26px, 5vw, 58px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.definition-article .directory-intro { margin-bottom: 34px; }
.definition-article section:not(.definition-grid) { max-width: 850px; }
.definition-article h2 { margin: 34px 0 12px; color: var(--navy); font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.2; letter-spacing: -.025em; }
.definition-article p { margin: 0 0 14px; color: #33465e; }
.definition-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 28px 0 8px; }
.definition-grid > div { padding: 20px; border: 1px solid #d9e8e4; border-radius: 14px; background: #f7fbfa; }
.definition-grid h3 { margin: 0 0 7px; color: var(--navy); font-size: 1rem; }
.definition-grid p { margin: 0; font-size: .94rem; }
.definition-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 34px; }
.definition-links a { display: grid; gap: 4px; padding: 18px; border-radius: 14px; background: var(--navy); color: #fff; text-decoration: none; }
.definition-links a:hover { background: var(--navy-2); color: #fff; }
.definition-links span { color: #b9cddd; font-size: 12px; line-height: 1.4; }

.hisse-page { --content: 1040px; padding-top: 28px; padding-bottom: 72px; }
.hisse-page .directory-breadcrumb { margin-bottom: 22px; }
.hisse-intro { margin-bottom: 20px; padding: clamp(24px, 4vw, 38px); border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: 18px; background: var(--paper); }
.hisse-intro h1 { max-width: 840px; margin: 0 0 12px; color: var(--navy); font-size: clamp(1.85rem, 4vw, 2.8rem); line-height: 1.16; letter-spacing: -.035em; }
.hisse-intro p { margin: 0; color: var(--ink-soft); font-size: .94rem; line-height: 1.55; overflow-wrap: anywhere; }
.hisse-intro strong { color: var(--ink); }
.hisse-panel { padding: clamp(24px, 4vw, 38px); border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: 0 14px 36px rgba(7, 24, 46, .06); }
.hisse-panel h2 { margin: 0 0 18px; color: var(--navy); font-size: clamp(1.2rem, 2.2vw, 1.45rem); line-height: 1.3; }
.hisse-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 18px; }
.hisse-metric { min-width: 0; padding: 18px; border: 1px solid #dcebe7; border-radius: 14px; background: #f6fbf9; }
.hisse-metric dt { margin-bottom: 9px; color: var(--ink-soft); font-size: 13px; font-weight: 700; line-height: 1.4; }
.hisse-metric dd { margin: 0; color: var(--navy); font-size: clamp(1.2rem, 2.2vw, 1.6rem); font-weight: 850; line-height: 1.2; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.hisse-panel .hisse-metrics + p { display: inline-block; margin: 0 0 28px; padding: 10px 15px; border-radius: 10px; background: #eaf7f1; color: #075e50; font-size: .94rem; font-variant-numeric: tabular-nums; }
.hisse-panel .hisse-metrics + p strong { color: inherit; }
.hisse-panel h2:not(:first-child) { padding-top: 24px; border-top: 1px solid var(--line); }
.hisse-panel p { margin: 0; color: #33465e; }
.company-summary { margin-top: 18px; }
.company-summary-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 20px; }
.company-summary-heading h2 { margin: 0; }
.company-summary-heading > span { flex: 0 0 auto; padding: 7px 10px; border-radius: 999px; background: #eaf7f1; color: #075e50; font-size: 12px; font-weight: 750; }
.company-summary-kicker { margin: 0 0 6px !important; color: var(--blue) !important; font-size: 12px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.company-summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.company-summary-grid > div { min-width: 0; padding: 17px 18px; border: 1px solid #dcebe7; border-radius: 13px; background: #f8fbfa; }
.company-summary-grid .company-summary-wide { grid-column: 1 / -1; }
.company-summary-grid dt { margin: 0 0 7px; color: var(--ink-soft); font-size: 12px; font-weight: 750; line-height: 1.35; }
.company-summary-grid dd { margin: 0; color: var(--navy); font-size: .94rem; font-weight: 750; line-height: 1.55; overflow-wrap: anywhere; }
.company-summary-grid a { color: var(--blue); text-underline-offset: 3px; }
.company-summary-action { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.company-summary-action p { max-width: 680px; color: var(--ink-soft); font-size: 13px; line-height: 1.6; }
.company-summary-action a { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 17px; border-radius: 11px; background: var(--navy); color: #fff; font-size: 13px; font-weight: 800; text-decoration: none; }
.company-summary-action a:hover { background: var(--blue); color: #fff; }
.hisse-source { margin: 18px 0 0; padding: 0 4px; color: var(--ink-soft); font-size: 13px; line-height: 1.65; }
.hisse-page-enriched { --content: 1100px; }
.hisse-intro-enriched { position: relative; overflow: hidden; padding: clamp(30px, 5vw, 54px); border-top: 0; background: linear-gradient(135deg, #071b24 0%, #0b3540 64%, #075e50 100%); box-shadow: 0 22px 60px rgba(7, 24, 46, .16); }
.hisse-intro-enriched::after { position: absolute; right: -80px; bottom: -150px; width: 330px; height: 330px; border: 1px solid rgba(99, 223, 168, .22); border-radius: 50%; content: ""; }
.hisse-intro-enriched h1 { position: relative; z-index: 1; max-width: 900px; color: #fff; font-size: clamp(2rem, 4.5vw, 3.35rem); }
.hisse-intro-enriched > p { position: relative; z-index: 1; max-width: 850px; color: #d2e5e3; font-size: 1rem; }
.hisse-intro-enriched > p strong { color: #fff; }
.hisse-intro-badges { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.hisse-intro-badges span { padding: 7px 11px; border: 1px solid rgba(255,255,255,.17); border-radius: 999px; background: rgba(255,255,255,.08); color: #dcf8ed; font-size: 12px; font-weight: 800; }
.hisse-intro-badges span:first-child { border-color: rgba(99,223,168,.44); background: rgba(99,223,168,.15); color: #8ff0c2; }
.hisse-jump-nav { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hisse-jump-nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 10px; background: #fff; color: var(--navy); font-size: 13px; font-weight: 800; text-decoration: none; }
.hisse-jump-nav a:hover { background: #dff8ef; color: var(--navy); }
.hisse-page-enriched .hisse-panel { scroll-margin-top: 98px; }
.share-structure { display: grid; gap: 18px; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.share-structure-row > div:first-child { display: flex; justify-content: space-between; gap: 18px; margin-bottom: 8px; color: var(--ink-soft); font-size: 13px; }
.share-structure-row strong { color: var(--ink); }
.share-structure-track { overflow: hidden; height: 12px; border-radius: 999px; background: #e9f0f4; }
.share-structure-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.share-structure-row-accent .share-structure-track span { background: linear-gradient(90deg, #c68a15, #f1c75b); }
.lot-calculator, .related-shares { margin-top: 18px; }
.section-heading-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 22px; }
.section-heading-row h2 { margin: 0; }
.section-heading-row > span { padding: 7px 10px; border-radius: 999px; background: #eef3f7; color: var(--ink-soft); font-size: 12px; font-weight: 750; }
.lot-calculator-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 20px; }
.lot-calculator-control { padding: 20px; border: 1px solid #dcebe7; border-radius: 15px; background: #f7fbfa; }
.lot-calculator-control label { display: block; margin-bottom: 8px; color: var(--navy); font-size: 13px; font-weight: 800; }
.lot-input-group { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; overflow: hidden; border: 1px solid #b9cbc6; border-radius: 12px; background: #fff; }
.lot-input-group input { min-width: 0; height: 52px; border: 0; border-inline: 1px solid #dce5ef; background: #fff; color: var(--navy); font: inherit; font-size: 1.1rem; font-weight: 850; text-align: center; }
.lot-input-group button { border: 0; background: #edf7f4; color: var(--navy); font-size: 1.2rem; font-weight: 900; cursor: pointer; }
.lot-input-group button:hover { background: #dff3ed; }
.lot-presets { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.lot-presets button { padding: 7px 10px; border: 1px solid #cfe0dc; border-radius: 999px; background: #fff; color: #355064; font-size: 12px; font-weight: 750; cursor: pointer; }
.lot-presets button:hover { border-color: var(--blue); color: var(--blue); }
.lot-calculator-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.lot-calculator-results > div { display: flex; min-width: 0; min-height: 148px; padding: 22px; border: 1px solid #dcebe7; border-radius: 15px; background: #fff; flex-direction: column; justify-content: space-between; }
.lot-calculator-results dt { color: var(--ink-soft); font-size: 13px; font-weight: 750; line-height: 1.45; }
.lot-calculator-results dd { margin: 18px 0 0; color: var(--navy); font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 900; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.lot-calculator-note { margin-top: 16px !important; color: var(--ink-soft) !important; font-size: 12px; line-height: 1.6; }
.company-index-list { margin-top: 18px; padding: 18px; border: 1px solid #dcebe7; border-radius: 13px; background: #f8fbfa; }
.company-index-list > strong { display: block; margin-bottom: 10px; color: var(--navy); font-size: 13px; }
.company-index-list > div { display: flex; flex-wrap: wrap; gap: 7px; }
.company-index-list span { padding: 6px 9px; border-radius: 999px; background: #e6f4f0; color: #075e50; font-size: 11px; font-weight: 800; }
.company-index-list small { display: block; margin-top: 12px; color: var(--ink-soft); font-size: 11px; }
.related-shares-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.related-shares-grid a { display: flex; min-width: 0; min-height: 150px; padding: 18px; border: 1px solid #dcebe7; border-radius: 14px; background: #f8fbfa; color: var(--navy); text-decoration: none; flex-direction: column; }
.related-shares-grid a:hover { border-color: var(--blue); background: #f1faf7; color: var(--navy); transform: translateY(-2px); }
.related-shares-grid strong { font-size: 1rem; }
.related-shares-grid span { margin-top: 7px; color: var(--ink-soft); font-size: 12px; line-height: 1.45; }
.related-shares-grid small { margin-top: auto; padding-top: 14px; color: var(--blue); font-weight: 800; }

.site-footer { padding: 36px 0; background: var(--navy); color: #aebed0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.footer-inner p { margin: 0; font-size: 13px; }
.footer-brand { color: #fff; font-weight: 850; }

@media (max-width: 920px) {
  .hero-grid, .content-shell { grid-template-columns: 1fr; }
  .market-card { max-width: 580px; }
  .toc { position: static; }
  .toc ol { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 18px; }
  .feature-grid { grid-template-columns: 1fr; }
  .site-nav { gap: 14px; }
  .directory-shortcuts, .definition-links { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .wrap { width: min(calc(100% - 24px), var(--content)); }
  .site-nav { display: none; }
  .header-inner { min-height: 66px; }
  .hero { padding: 68px 0 62px; }
  .hero-grid { gap: 38px; }
  .market-meta { grid-template-columns: 1fr; }
  .content-shell { gap: 20px; padding: 26px 0 56px; }
  .toc ol { grid-template-columns: 1fr; }
  .article { padding: 25px 20px; border-radius: 16px; }
  .glossary, .sector-grid, .metric-grid { grid-template-columns: 1fr; }
  th, td { min-width: 150px; padding: 13px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .directory-controls { grid-template-columns: 1fr; }
  .directory-shortcuts-compact, .download-grid, .definition-grid { grid-template-columns: 1fr; }
  .directory-table th, .directory-table td { min-width: 0; padding: 10px 12px; font-size: 13px; }
  .directory-table th:nth-child(2), .directory-table td:nth-child(2) { min-width: 240px; }
  .hisse-page { padding-top: 22px; padding-bottom: 52px; }
  .hisse-metrics { grid-template-columns: 1fr; }
  .hisse-metric { padding: 16px 18px; }
  .company-summary-heading { display: grid; }
  .company-summary-heading > span { justify-self: start; }
  .company-summary-grid { grid-template-columns: 1fr; }
  .company-summary-grid .company-summary-wide { grid-column: auto; }
  .company-summary-action { align-items: flex-start; flex-direction: column; }
  .hisse-jump-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hisse-jump-nav a { justify-content: center; }
  .lot-calculator-grid, .lot-calculator-results { grid-template-columns: 1fr; }
  .lot-calculator-results > div { min-height: 120px; }
  .section-heading-row { display: grid; }
  .section-heading-row > span { justify-self: start; }
  .related-shares-grid { grid-template-columns: 1fr; }
  .related-shares-grid a { min-height: 128px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
