/* === İSG Hesap · Mühendislik El Kitabı sürümü ===
   Cormorant Garamond + krem kağıt + ince hairline + bölüm işaretçileri (§).
   Tüm seçiciler ".isg-hesap-app" altına alındı.
   Tailwind CDN preflight kapalı, important: '.isg-hesap-app'.
*/

/* === Base — kağıt zemini, sıcak mürekkep === */
.isg-hesap-app {
  background: #faf6ec;
  color: #2a2520;
  font-family: 'Crimson Pro', 'EB Garamond', Georgia, 'Times New Roman', serif;
  font-size: 18px;
  line-height: 1.7;
  font-weight: 500;
  font-feature-settings: 'liga' 1, 'kern' 1;
  font-variant-numeric: oldstyle-nums;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  /* Hafif kağıt grain (data URI noise) */
  background-image:
    radial-gradient(at 20% 10%, rgba(166,29,36,0.025) 0%, transparent 50%),
    radial-gradient(at 80% 90%, rgba(43,37,32,0.025) 0%, transparent 50%);
}
.isg-hesap-app * { box-sizing: border-box; }
.isg-hesap-app a { color: #a61d24; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 100ms; }
.isg-hesap-app a:hover { border-bottom-color: #a61d24; }
.isg-hesap-app .hidden { display: none !important; }

/* Tipografik vurgu */
.isg-hesap-app em, .isg-hesap-app i { font-style: italic; }
.isg-hesap-app strong, .isg-hesap-app b { font-weight: 600; }

/* === Sidebar — İçindekiler tablosu === */
.isg-hesap-app .adm-sidebar {
  background: transparent;
  border: 0;
  border-right: 1px solid #d8cdb6;
  border-radius: 0;
  box-shadow: none;
  padding-right: 4px;
  position: relative;
}
.isg-hesap-app .adm-sidebar::before {
  content: '';
  position: absolute; top: 0; right: -1px; width: 4px; height: 100%;
  border-right: 1px solid #d8cdb6;
  pointer-events: none;
}
.isg-hesap-app .adm-sidebar-header {
  padding: 24px 22px 20px 4px;
  border-bottom: 1px solid #d8cdb6;
  display: block;
  text-align: left;
}
.isg-hesap-app .adm-sidebar-header .logo {
  display: inline-block;
  font-family: 'Cormorant SC', 'Crimson Pro', serif;
  color: #a61d24;
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 4px;
}
.isg-hesap-app .adm-sidebar-header .title {
  font-size: 28px; font-weight: 600; color: #2a2520;
  line-height: 1.05; letter-spacing: -0.01em;
  margin: 4px 0 6px;
}
.isg-hesap-app .adm-sidebar-header .subtitle {
  font-size: 13px; color: #6b6354; font-style: italic;
  font-variant-caps: normal;
}
.isg-hesap-app .adm-sidebar-header .subtitle::before { content: '— '; }

/* Search — gömülü stil, ince alt çizgi */
.isg-hesap-app .adm-search-box {
  padding: 14px 22px 14px 4px;
  border-bottom: 1px solid #d8cdb6;
  position: relative;
}
.isg-hesap-app .adm-search-box input {
  width: 100%;
  padding: 6px 26px 6px 0;
  border: 0;
  border-bottom: 1px solid #d8cdb6;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  color: #2a2520;
  font-style: italic;
  outline: none;
}
.isg-hesap-app .adm-search-box input:focus {
  border-bottom-color: #a61d24;
}
.isg-hesap-app .adm-search-box input::placeholder {
  color: #9a9182; font-style: italic;
}
.isg-hesap-app .adm-search-box svg {
  position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px; color: #9a9182; pointer-events: none;
}

/* === Collapsible nav group === */
.isg-hesap-app .nav-group {
  position: relative;
}
.isg-hesap-app .nav-list {
  overflow: hidden;
  max-height: 1200px;
  opacity: 1;
  transition: max-height 280ms ease-out, opacity 220ms ease-out;
}
.isg-hesap-app .nav-group.collapsed .nav-list {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}

/* Kategori başlıkları — Roman sayı + small caps + tıklanabilir */
.isg-hesap-app .nav-cat {
  display: flex; align-items: baseline; gap: 12px;
  padding: 14px 22px 6px 4px;
  font-family: 'Cormorant SC', 'Crimson Pro', serif;
  font-size: 12px; font-weight: 500;
  color: #6b6354;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: transparent;
  border: 0;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: color 100ms;
}
.isg-hesap-app .nav-cat:hover { color: #a61d24; }
.isg-hesap-app .nav-cat:focus-visible {
  outline: 1px solid #a61d24;
  outline-offset: 2px;
}
.isg-hesap-app .nav-cat .cat-label { flex: 1; }
.isg-hesap-app .nav-cat .count {
  font-family: 'Crimson Pro', serif;
  font-style: italic;
  font-weight: normal;
  font-size: 12px;
  color: #9a9182;
  letter-spacing: 0;
  text-transform: none;
  margin-left: auto;
  font-variant-numeric: oldstyle-nums;
}
.isg-hesap-app .nav-cat .toggle-icon {
  display: inline-block;
  font-family: 'Crimson Pro', serif;
  font-size: 16px;
  font-style: italic;
  color: #a61d24;
  letter-spacing: 0;
  margin-left: 6px;
  width: 12px;
  text-align: center;
  transform: rotate(90deg);
  transition: transform 220ms ease-out;
  text-transform: none;
}
.isg-hesap-app .nav-group.collapsed .nav-cat .toggle-icon {
  transform: rotate(0deg);
}
.isg-hesap-app .nav-cat .num {
  display: inline-block;
  min-width: 28px;
  font-family: 'Crimson Pro', serif;
  font-style: italic;
  font-variant-caps: normal;
  font-weight: 500;
  color: #a61d24;
  font-size: 13px;
  letter-spacing: 0;
  text-align: right;
  background: transparent;
  padding: 0;
}

/* Modül linkleri — book TOC stili, leader dots */
.isg-hesap-app .nav-link {
  display: flex; align-items: baseline; gap: 8px;
  padding: 6px 22px 6px 18px;
  font-size: 16px; color: #2a2520; font-weight: 500;
  text-decoration: none;
  border-left: 1px solid transparent;
  transition: color 100ms, border-color 100ms;
  position: relative;
}
.isg-hesap-app .nav-link:hover { color: #a61d24; }
.isg-hesap-app .nav-link.active {
  color: #a61d24;
  border-left-color: #a61d24;
  font-style: italic;
}
.isg-hesap-app .nav-link .idx {
  font-family: 'Crimson Pro', serif;
  font-size: 13px;
  font-style: italic;
  color: #9a9182;
  width: 26px; flex-shrink: 0;
  font-variant-numeric: oldstyle-nums;
}
.isg-hesap-app .nav-link.active .idx { color: #a61d24; }

/* Sidebar footer */
.isg-hesap-app .adm-sidebar-footer {
  padding: 18px 22px 8px 4px;
  margin-top: 16px;
  border-top: 1px solid #d8cdb6;
  font-size: 12px;
  color: #6b6354;
  font-style: italic;
}
.isg-hesap-app .adm-sidebar-footer button {
  background: none; border: 0; padding: 0;
  color: #a61d24;
  font: inherit;
  cursor: pointer;
  border-bottom: 1px solid #d8cdb6;
  transition: border-color 100ms;
}
.isg-hesap-app .adm-sidebar-footer button:hover { border-bottom-color: #a61d24; }

/* === Content panel === */
.isg-hesap-app .adm-content {
  background: transparent;
  border: 0;
  padding: 24px 36px 36px 36px;
  min-height: 600px;
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}

/* Modül başlık alanı */
.isg-hesap-app .module-card { }
.isg-hesap-app .section-heading {
  font-family: 'Cormorant SC', 'Crimson Pro', serif;
  font-size: 11px; font-weight: 500;
  color: #6b6354;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.isg-hesap-app .stencil-num {
  display: inline-block;
  font-family: 'Crimson Pro', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 13px;
  color: #a61d24;
  background: transparent;
  padding: 0;
  letter-spacing: 0;
  border: 0;
  text-transform: none;
}
.isg-hesap-app .stencil-num::before { content: '§ '; }

/* Modül başlığı (h1/h2) — drop cap'lı, klasik */
.isg-hesap-app h1, .isg-hesap-app h2, .isg-hesap-app h3 {
  font-family: 'Crimson Pro', serif;
  color: #2a2520;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  font-weight: 600;
}
.isg-hesap-app h1 { font-size: 32px; line-height: 1.1; font-weight: 600; }
.isg-hesap-app h2 { font-size: 22px; line-height: 1.2; font-weight: 600; }
.isg-hesap-app h3 { font-size: 17px; line-height: 1.3; font-weight: 600; font-style: italic; }
.isg-hesap-app .desc, .isg-hesap-app p { font-size: 17px; line-height: 1.7; color: #2a2520; font-weight: 500; text-align: justify; hyphens: auto; }

/* === Formula box === */
.isg-hesap-app .formula-box {
  background: transparent;
  border: 0;
  border-top: 1px solid #d8cdb6;
  border-bottom: 1px solid #d8cdb6;
  padding: 18px 24px 22px;
  margin: 22px 0;
  position: relative;
  text-align: center;
}
.isg-hesap-app .formula-box::before {
  content: var(--isg-label-formula, 'denklem');
  position: absolute; top: -10px; left: 24px;
  background: #faf6ec; padding: 0 8px;
  font-family: 'Cormorant SC', serif;
  font-size: 10px; font-weight: 500; color: #a61d24;
  letter-spacing: 0.22em; text-transform: uppercase;
}
.isg-hesap-app .formula-box::after {
  content: '(' counter(eqcount) '.' counter(eqsub) ')';
  position: absolute; bottom: -10px; right: 24px;
  background: #faf6ec; padding: 0 8px;
  font-family: 'Crimson Pro', serif;
  font-style: italic;
  font-size: 12px; color: #6b6354;
}
.isg-hesap-app { counter-reset: eqcount 1 eqsub 0; }
.isg-hesap-app .formula-box { counter-increment: eqsub; }
.isg-hesap-app .formula-inner { color: #2a2520; line-height: 1.8; padding: 8px 0; }
.isg-hesap-app .formula-box .katex { color: #2a2520; font-size: 1.2em; }
.isg-hesap-app .formula-box .katex .mfrac line { stroke: #2a2520; }

/* === Diagram box === */
.isg-hesap-app .diagram-box {
  background: transparent;
  border-top: 1px solid #d8cdb6;
  border-bottom: 1px solid #d8cdb6;
  padding: 18px 0;
  margin: 22px 0;
  position: relative;
  text-align: center;
}
.isg-hesap-app .diagram-box::before {
  content: var(--isg-label-diagram, 'figür');
  position: absolute; top: -10px; left: 24px;
  background: #faf6ec; padding: 0 8px;
  font-family: 'Cormorant SC', serif;
  font-size: 10px; font-weight: 500; color: #6b6354;
  letter-spacing: 0.22em; text-transform: uppercase;
}
.isg-hesap-app .diagram-box svg { display: block; max-width: 100%; height: auto; margin: 0 auto; }

/* === Form / inputs — klasik, alt çizgi === */
.isg-hesap-app .field {
  margin-bottom: 14px;
}
.isg-hesap-app .field-label {
  display: block;
  font-family: 'Crimson Pro', serif;
  font-size: 15px; font-weight: 500; color: #2a2520;
  margin-bottom: 4px;
  font-style: italic;
}
.isg-hesap-app .field-label .sym {
  color: #a61d24;
  font-style: italic;
  margin-right: 6px;
  font-weight: 500;
}
.isg-hesap-app .field-input {
  display: flex; align-items: stretch;
  border: 0;
  border-bottom: 1px solid #d8cdb6;
  background: transparent;
  transition: border-color 150ms;
}
.isg-hesap-app .field-input:focus-within {
  border-bottom-color: #a61d24;
}
.isg-hesap-app .field-input input,
.isg-hesap-app .field-input select {
  flex: 1;
  border: 0; outline: none;
  padding: 6px 0;
  font-family: inherit; font-size: 18px;
  color: #2a2520;
  background: transparent;
  font-variant-numeric: oldstyle-nums tabular-nums;
  min-width: 0;
}
.isg-hesap-app .field-input .unit-toggle {
  padding: 6px 12px;
  background: transparent;
  border: 0;
  border-left: 1px solid #d8cdb6;
  font-family: 'Cormorant SC', serif;
  font-size: 11px; color: #6b6354;
  letter-spacing: 0.15em; text-transform: uppercase;
  cursor: pointer;
}
.isg-hesap-app .field-input .unit-toggle:hover { color: #a61d24; }

/* === Result box === */
.isg-hesap-app .result-box {
  background: transparent;
  border: 0;
  border-top: 2px double #2a2520;
  border-bottom: 2px double #2a2520;
  padding: 18px 24px;
  margin: 22px 0;
  position: relative;
  display: flex; align-items: baseline; gap: 16px;
  justify-content: center;
}
.isg-hesap-app .result-box::before {
  content: var(--isg-label-result, 'sonuç');
  position: absolute; top: -10px; left: 24px;
  background: #faf6ec; padding: 0 8px;
  font-family: 'Cormorant SC', serif;
  font-size: 10px; font-weight: 500; color: #2a2520;
  letter-spacing: 0.22em; text-transform: uppercase;
}
.isg-hesap-app .result-value {
  font-family: 'Crimson Pro', serif;
  font-size: 42px; font-weight: 500;
  color: #2a2520;
  font-variant-numeric: oldstyle-nums tabular-nums;
  line-height: 1;
  font-style: italic;
}
.isg-hesap-app .result-unit {
  font-family: 'Cormorant SC', serif;
  font-size: 13px; color: #6b6354;
  letter-spacing: 0.15em; text-transform: uppercase;
}
.isg-hesap-app .result-flash { animation: flash 350ms ease-out; }
@keyframes flash {
  0%   { color: #a61d24; }
  100% { color: #2a2520; }
}

/* === Threshold — klasik segment göstergesi === */
.isg-hesap-app .threshold-track {
  height: 3px;
  background: #d8cdb6;
  margin: 14px 0 8px;
  position: relative;
}
.isg-hesap-app .threshold-fill {
  height: 100%;
  background: #2a2520;
  transition: width 300ms ease, background 200ms;
}
.isg-hesap-app .threshold-fill.lvl-ok    { background: #3d6b3a; }
.isg-hesap-app .threshold-fill.lvl-warn  { background: #a87b1f; }
.isg-hesap-app .threshold-fill.lvl-danger{ background: #a61d24; }
.isg-hesap-app .threshold-label {
  font-family: 'Cormorant SC', serif;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
}
.isg-hesap-app .threshold-label.lvl-ok    { color: #3d6b3a; }
.isg-hesap-app .threshold-label.lvl-warn  { color: #a87b1f; }
.isg-hesap-app .threshold-label.lvl-danger{ color: #a61d24; }

/* === Risk matrix — typographic table === */
.isg-hesap-app .risk-matrix {
  display: grid; grid-template-columns: 60px repeat(5, 1fr);
  margin: 18px 0;
  border-top: 2px solid #2a2520;
  border-bottom: 2px solid #2a2520;
}
.isg-hesap-app .risk-cell {
  padding: 10px 6px;
  text-align: center;
  font-family: 'Crimson Pro', serif;
  font-size: 16px; font-weight: 500;
  font-variant-numeric: oldstyle-nums;
  cursor: pointer;
  border-right: 1px solid #d8cdb6;
  border-bottom: 1px solid #d8cdb6;
  background: transparent;
}
.isg-hesap-app .risk-cell:hover { background: #f0eadc; }
.isg-hesap-app .risk-cell.head {
  background: transparent;
  font-family: 'Cormorant SC', serif;
  font-size: 11px;
  color: #6b6354;
  letter-spacing: 0.18em; text-transform: uppercase;
  border-bottom: 2px solid #2a2520;
  font-weight: 500;
}
.isg-hesap-app .risk-cell.head:hover { background: transparent; }
.isg-hesap-app .risk-cell.lvl-low    { color: #3d6b3a; }
.isg-hesap-app .risk-cell.lvl-med    { color: #a87b1f; }
.isg-hesap-app .risk-cell.lvl-high   { color: #a61d24; font-style: italic; }
.isg-hesap-app .risk-cell.selected {
  background: #f0eadc;
  font-style: italic;
  font-weight: 700;
  position: relative;
}
.isg-hesap-app .risk-cell.selected::after {
  content: '☞';
  position: absolute; top: 2px; right: 4px;
  font-size: 10px; color: #a61d24;
}

/* === Reference tables — typographic === */
.isg-hesap-app .ref-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-family: 'Crimson Pro', serif;
  font-size: 15px;
  border: 0;
  border-top: 2px solid #2a2520;
  border-bottom: 2px solid #2a2520;
}
.isg-hesap-app .ref-table th,
.isg-hesap-app .ref-table td {
  padding: 7px 12px;
  border: 0;
  text-align: left;
  font-variant-numeric: oldstyle-nums tabular-nums;
}
.isg-hesap-app .ref-table th {
  font-family: 'Cormorant SC', serif;
  font-weight: 500; color: #6b6354;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  border-bottom: 1px solid #2a2520;
}
.isg-hesap-app .ref-table tbody tr { border: 0; }
.isg-hesap-app .ref-table tbody tr:hover { background: #f0eadc; }
.isg-hesap-app .ref-table tbody tr td { border-top: 1px solid #d8cdb6; }
.isg-hesap-app .ref-table tbody tr:first-child td { border-top: 0; }

/* === Notes — printed footnote === */
.isg-hesap-app .note {
  background: transparent;
  border: 0;
  border-left: 2px solid #a61d24;
  color: #2a2520;
  padding: 4px 0 4px 14px;
  margin: 18px 0;
  font-size: 15px;
  font-style: italic;
  font-weight: 500;
  line-height: 1.65;
}
.isg-hesap-app .note strong {
  color: #a61d24;
  font-style: normal;
  font-family: 'Cormorant SC', serif;
  letter-spacing: 0.18em; text-transform: uppercase;
  font-size: 11px; font-weight: 500;
  margin-right: 4px;
}
.isg-hesap-app .note strong::before { content: '†  '; font-family: serif; letter-spacing: 0; }

/* === Buttons === */
.isg-hesap-app button.btn-primary,
.isg-hesap-app .btn-primary {
  background: #2a2520; color: #faf6ec;
  border: 0;
  padding: 8px 18px;
  font-family: 'Cormorant SC', serif;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  cursor: pointer; transition: background 100ms;
}
.isg-hesap-app button.btn-primary:hover,
.isg-hesap-app .btn-primary:hover { background: #a61d24; }
.isg-hesap-app button.btn-default,
.isg-hesap-app .btn-default {
  background: transparent;
  color: #2a2520;
  border: 1px solid #d8cdb6;
  padding: 7px 18px;
  font-family: 'Cormorant SC', serif;
  font-size: 12px;
  letter-spacing: 0.18em; text-transform: uppercase;
  cursor: pointer;
}
.isg-hesap-app button.btn-default:hover,
.isg-hesap-app .btn-default:hover { border-color: #2a2520; }

.isg-hesap-app .copy-btn {
  background: transparent; color: #6b6354;
  border: 0;
  border-bottom: 1px solid #d8cdb6;
  padding: 4px 0;
  font-family: 'Cormorant SC', serif;
  font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  cursor: pointer;
}
.isg-hesap-app .copy-btn:hover { color: #a61d24; border-bottom-color: #a61d24; }

.isg-hesap-app .row-add {
  background: transparent; color: #3d6b3a;
  border: 1px dashed #3d6b3a;
  padding: 6px 14px;
  font-family: 'Cormorant SC', serif;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  cursor: pointer;
}
.isg-hesap-app .row-add:hover { background: rgba(61,107,58,0.06); }
.isg-hesap-app .row-del {
  background: transparent; color: #9a9182;
  border: 0;
  padding: 4px 8px;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
}
.isg-hesap-app .row-del:hover { color: #a61d24; }

/* === Modal === */
.isg-hesap-app #isg-legal-modal {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(42,37,32,0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.isg-hesap-app #isg-legal-modal.hidden { display: none; }
.isg-hesap-app #isg-legal-modal .modal-dialog {
  background: #faf6ec;
  max-width: 640px; width: 100%;
  border: 1px solid #2a2520;
  box-shadow: 6px 6px 0 #2a2520;
  position: relative;
}
.isg-hesap-app #isg-legal-modal .modal-dialog::before {
  content: '';
  position: absolute; top: 6px; left: 6px; right: 6px; bottom: 6px;
  border: 1px solid #d8cdb6;
  pointer-events: none;
}
.isg-hesap-app #isg-legal-modal .modal-header {
  padding: 28px 32px 8px;
  font-family: 'Crimson Pro', serif;
  font-size: 26px; font-weight: 600; color: #2a2520;
  letter-spacing: -0.01em;
}
.isg-hesap-app #isg-legal-modal .modal-header::after {
  content: ''; display: block;
  width: 40px; height: 1px; background: #a61d24;
  margin-top: 10px;
}
.isg-hesap-app #isg-legal-modal .modal-body {
  padding: 14px 32px 8px;
  font-size: 17px; line-height: 1.7; color: #2a2520; font-weight: 500;
  text-align: justify; hyphens: auto;
}
.isg-hesap-app #isg-legal-modal .modal-body p { margin: 0 0 12px; }
.isg-hesap-app #isg-legal-modal .modal-footer {
  padding: 12px 32px 28px;
  text-align: right;
}

/* === Fade in === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.isg-hesap-app .fade-stagger > * {
  animation: fadeUp 400ms ease-out backwards;
}

/* === Mobile === */
@media (max-width: 1023px) {
  .isg-hesap-app .adm-sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; width: 300px;
    background: #faf6ec;
    z-index: 9998;
    transform: translateX(-100%);
    transition: transform 200ms ease;
    border-right: 1px solid #2a2520;
    padding: 20px 0;
    overflow-y: auto;
  }
  .isg-hesap-app .adm-sidebar.open {
    transform: translateX(0);
    box-shadow: 6px 0 0 rgba(42,37,32,0.06);
  }
  .isg-hesap-app .mobile-burger {
    display: inline-flex !important;
    position: fixed; top: 18px; right: 18px; z-index: 9997;
    width: 40px; height: 40px;
    align-items: center; justify-content: center;
    background: #2a2520; color: #faf6ec;
    border: 0;
    cursor: pointer;
    box-shadow: 3px 3px 0 #a61d24;
  }
}
.isg-hesap-app .mobile-burger { display: none; }

/* === PWA install button (sidebar footer) === */
.isg-hesap-app .install-btn {
  display: block;
  margin-top: 14px;
  padding: 8px 14px;
  background: #a61d24;
  color: #faf6ec;
  border: 0;
  font-family: 'Cormorant SC', 'Crimson Pro', serif;
  font-size: 11px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  cursor: pointer;
  font-style: normal;
  font-weight: 500;
  transition: background 100ms;
  text-align: center;
  width: 100%;
}
.isg-hesap-app .install-btn:hover { background: #7a1419; }
.isg-hesap-app .install-btn.hidden { display: none !important; }

/* === Lang switcher (sidebar footer · TR/EN/ES/FR/DE) === */
.isg-hesap-app .lang-switch {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #d8cdb6;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  font-style: normal;
}
.isg-hesap-app .lang-switch .label {
  font-family: 'Cormorant SC', serif;
  font-size: 10px;
  color: #6b6354;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-right: 4px;
  font-style: normal;
}
.isg-hesap-app .lang-toggle {
  background: transparent;
  border: 1px solid #d8cdb6;
  color: #6b6354;
  font-family: 'Cormorant SC', serif;
  font-size: 10px;
  padding: 2px 7px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  font-style: normal;
  transition: background 100ms, border-color 100ms, color 100ms;
}
.isg-hesap-app .lang-toggle:hover { border-color: #2a2520; color: #2a2520; }
.isg-hesap-app .lang-toggle.active {
  background: #a61d24;
  border-color: #a61d24;
  color: #faf6ec;
}
.isg-hesap-app .lang-toggle.active:hover { color: #faf6ec; }

/* === Unit system switcher (sidebar footer · MS / US) === */
.isg-hesap-app .unit-system-switch {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #d8cdb6;
  display: flex;
  align-items: center;
  gap: 6px;
  font-style: normal;
}
.isg-hesap-app .unit-system-switch .label {
  font-family: 'Cormorant SC', serif;
  font-size: 10px;
  color: #6b6354;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-right: 4px;
  font-style: normal;
}
.isg-hesap-app .us-toggle {
  background: transparent;
  border: 1px solid #d8cdb6;
  color: #6b6354;
  font-family: 'Cormorant SC', serif;
  font-size: 11px;
  padding: 3px 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  font-style: normal;
  transition: background 100ms, border-color 100ms, color 100ms;
}
.isg-hesap-app .us-toggle:hover { border-color: #2a2520; color: #2a2520; }
.isg-hesap-app .us-toggle.active {
  background: #2a2520;
  border-color: #2a2520;
  color: #faf6ec;
}
.isg-hesap-app .us-toggle.active:hover { color: #faf6ec; }

/* Hazard-tape (kalın) ve blueprint bg gizli — handbook editorial */
.isg-hesap-app .hazard-tape, .isg-hesap-app .blueprint-bg { display: none !important; }

/* Hazard-tape-thin → editorial hairline rule (ana sayfa hero altında) */
.isg-hesap-app .hazard-tape-thin {
  height: 5px !important;
  background: transparent !important;
  border-top: 1px solid #2a2520 !important;
  border-bottom: 1px solid #2a2520 !important;
  margin: 18px 0 !important;
  position: relative;
}
.isg-hesap-app .hazard-tape-thin::before {
  content: '§';
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: #faf6ec; padding: 0 12px;
  color: #a61d24;
  font-family: 'Crimson Pro', serif;
  font-style: italic; font-size: 16px; font-weight: 500;
}

/* === Home / Category grid cards — kütüphane fişi stili === */
.isg-hesap-app section.grid > a {
  background: #fcfaf0 !important;
  border: 1px solid #d8cdb6 !important;
  padding: 22px 22px 18px !important;
  text-decoration: none !important;
  position: relative;
  display: block;
  transition: transform 150ms ease-out, box-shadow 150ms ease-out, border-color 150ms;
  box-shadow: 2px 2px 0 #e8dfc8;
  overflow: visible !important;
}
.isg-hesap-app section.grid > a::before {
  content: '';
  position: absolute; top: -1px; left: -1px; right: -1px;
  height: 3px;
  background: #a61d24;
  opacity: 0;
  transition: opacity 150ms;
  pointer-events: none;
}
.isg-hesap-app section.grid > a:hover {
  border-color: #2a2520 !important;
  box-shadow: 4px 4px 0 #2a2520;
  transform: translate(-2px, -2px);
}
.isg-hesap-app section.grid > a:hover::before {
  opacity: 1;
}
.isg-hesap-app section.grid > a:hover .section-heading,
.isg-hesap-app section.grid > a:hover h3 {
  color: #a61d24 !important;
}
/* Card içi tipografi tutarlılığı — Tailwind utility'ler üzerine */
.isg-hesap-app section.grid > a .stencil-num {
  font-size: 12px;
}

/* Hero sayfa başlığı — handbook için biraz daha klasik */
.isg-hesap-app section.relative h1 {
  font-family: 'Crimson Pro', serif !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
  line-height: 1 !important;
  text-transform: none !important;
}
.isg-hesap-app section.relative h1 .text-accent {
  font-style: italic;
  font-weight: 500;
}
