/* Alətlər (/aletler/), qızıl kalkulyatoru, Bazar monitoru, Nümunələr.
   Data rəngi Xəzər (qrafik, seçilmiş sıra, artım), enmə Nar; nəticə paneli Neft (tünd).
   Kartlar kvadrat, idarəetmə elementləri yumşaq radiusla (--radius-btn). */

.tool { padding-bottom: 72px; }
.tool .crumbs { padding-top: 24px; }
.tool-head { max-width: 860px; display: flex; flex-direction: column; gap: 12px; padding: 20px 0 28px; }
.tool-head .a-title { margin: 0; }
.tool-head__lede { margin: 0; font-family: var(--font-serif); font-size: 20px; line-height: 31px; color: var(--ink); text-wrap: pretty; }
.tool-head__lede b { font-family: var(--font-mono); font-weight: 500; font-size: 0.92em; white-space: nowrap; }

/* Dəyişmə nişanı (lentdəki kimi): artım Xəzər, enmə Nar. */
.chg { display: inline-block; font-family: var(--font-mono); font-size: 12px; line-height: 18px; font-weight: 500; padding: 1px 6px; border-radius: 3px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.chg--up { color: var(--data-strong); background: rgba(13, 115, 119, 0.12); }
.chg--down { color: var(--brand-nar-700); background: rgba(193, 18, 31, 0.08); }
.chg--flat { color: var(--ink-muted); background: rgba(17, 18, 20, 0.06); }
[data-theme="dark"] .chg--up { color: var(--data-strong); background: rgba(61, 181, 172, 0.16); }
[data-theme="dark"] .chg--down { color: #F37C83; background: rgba(240, 70, 79, 0.14); }

/* KPI zolağı */
.tool-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.tool-kpis--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tool-kpi { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 18px 0; min-width: 0; color: var(--ink); text-decoration: none; }
.tool-kpi + .tool-kpi { padding-left: 20px; border-left: 1px solid var(--line); }
a.tool-kpi:hover b { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.tool-kpi b { font-size: 32px; line-height: 38px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.tool-kpis--5 .tool-kpi b { font-size: 26px; line-height: 32px; }
.tool-kpi__note { font-size: 13px; line-height: 18px; color: var(--ink-muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tool-live { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 28px; font-size: 13px; color: var(--ink-muted); }
.tool-live b { color: var(--ink); font-weight: 500; }
.tool-live__dot { width: 7px; height: 7px; border-radius: var(--radius-full); background: var(--data); flex: none; }
@media (prefers-reduced-motion: no-preference) { .tool-live__dot { animation: azb-pulse 1.6s ease-in-out infinite; } }

/* ---------- Kalkulyator ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); background: var(--surface); border: 1px solid var(--line); scroll-margin-top: 16px; }
.calc__form { padding: 28px 32px 32px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.calc__title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 30px; }
.calc__tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.calc__tabs::-webkit-scrollbar { display: none; }
.calc__tabs button { flex: none; appearance: none; background: none; border: 0; padding: 10px 0 12px; font: 500 15px/22px var(--font-brand); color: var(--ink-muted); cursor: pointer; box-shadow: inset 0 -2px 0 transparent; }
.calc__tabs button:hover { color: var(--ink); }
.calc__tabs button[aria-selected="true"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); }
.calc__tabs button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.calc__panel { display: flex; flex-direction: column; gap: 14px; }
.calc__hint { margin: 0; font-size: 14px; line-height: 21px; color: var(--ink-muted); max-width: 560px; }
.calc__rows { display: flex; flex-direction: column; gap: 12px; }
.calc-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.calc-row + .calc-row .cf__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.cf { display: flex; flex-direction: column; gap: 6px; min-width: 150px; flex: 0 1 190px; }
.cf--grow { flex: 1 1 200px; }
.cf__label { font-size: 13px; font-weight: 500; line-height: 18px; color: var(--ink-muted); }
.cf__box { display: flex; align-items: stretch; height: 54px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-btn); transition: border-color 140ms ease-out, box-shadow 140ms ease-out; }
.cf__box:hover { border-color: var(--ink); }
.cf__box:focus-within { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.cf__box input { flex: 1; min-width: 0; height: auto; border: 0; background: transparent; padding: 0 14px; color: var(--ink); font: 500 21px/1 var(--font-mono); font-variant-numeric: tabular-nums; outline: none; }
.cf__box input::placeholder { color: var(--line-strong); }
.cf__box select {
  appearance: none; -webkit-appearance: none; border: 0; border-left: 1px solid var(--line); border-radius: 0 var(--radius-btn) var(--radius-btn) 0; background-color: transparent; color: var(--ink);
  padding: 0 34px 0 14px; font: 500 15px var(--font-brand); cursor: pointer; outline: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat;
}
.cf__box--select select { flex: 1; width: 100%; border-left: 0; border-radius: var(--radius-btn); font-size: 16px; }
.cf__suffix { display: flex; align-items: center; padding: 0 14px; font-size: 16px; color: var(--ink-muted); }
.cf__note { font-size: 12px; line-height: 17px; color: var(--ink-muted); }
.calc-row__remove { width: 54px; height: 54px; flex: none; display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--line); border-radius: var(--radius-btn); color: var(--ink-muted); cursor: pointer; }
.calc-row__remove:hover { color: var(--ink); border-color: var(--ink); }
.calc-row__arrow { height: 54px; display: inline-flex; align-items: center; color: var(--ink-muted); }
.calc__add { align-self: flex-start; padding: 0; background: none; border: 0; font: 500 14px/22px var(--font-brand); color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; cursor: pointer; }
.calc__add:hover { text-decoration-thickness: 2px; }
.calc__more { border-top: 1px solid var(--line); padding-top: 16px; }
.calc__more summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; }
.calc__more summary::-webkit-details-marker { display: none; }
.calc__more summary::before { content: "+"; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: var(--radius-sm, 4px); font: 500 15px/1 var(--font-mono); color: var(--ink-muted); }
.calc__more[open] summary::before { content: "−"; }
.calc__more .calc-row { margin-top: 16px; align-items: flex-start; }

.calc__result { background: var(--bg); color: var(--ink); padding: 28px 32px 28px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.calc__cur { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.calc__cur button { min-width: 42px; height: 36px; padding: 0 10px; background: transparent; color: var(--ink-muted); border: 1px solid var(--line); border-radius: var(--radius-btn); font: 500 16px var(--font-brand); cursor: pointer; }
.calc__cur button:hover { color: var(--ink); border-color: var(--line-strong); }
.calc__cur button[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.calc__cur button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.calc__result-label { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.calc__big { display: block; font: 500 52px/1.05 var(--font-brand); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.calc__sub { min-height: 22px; font-size: 15px; line-height: 22px; color: var(--ink-muted); }
.calc__lines { margin: 16px 0 0; border-top: 1px solid var(--line); }
.calc__lines > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 20px; }
.calc__lines dt { color: var(--ink-muted); }
.calc__lines dd { margin: 0; font-family: var(--font-mono); font-weight: 500; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.calc__lines .em dt { color: var(--ink); font-weight: 500; }
.calc__lines .em dd { font-size: 16px; }
.calc__lines .sep { border-top: 1px solid var(--line-strong); }
.calc__foot { margin: auto 0 0; padding-top: 20px; font-size: 12px; line-height: 18px; color: var(--ink-muted); }

/* ---------- Kartlar, cədvəllər ---------- */
.tool-card { background: var(--surface); border: 1px solid var(--line); padding: 24px; display: flex; flex-direction: column; gap: 16px; min-width: 0; scroll-margin-top: 16px; }
.tool-card__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; }
.tool-card__head h2 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 28px; }
.tool-card__note { margin: 0; font-size: 12px; line-height: 17px; color: var(--ink-muted); }

.gold-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; margin-top: 24px; align-items: start; }
.karats__table { width: 100%; border-collapse: collapse; font-size: 14px; }
.karats__table th, .karats__table td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.karats__table thead th { padding-top: 0; font-size: 11px; line-height: 16px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.karats__table .tnum { text-align: right; white-space: nowrap; }
.karats__table td.data { font-size: 15px; }
.karats__table tbody tr { cursor: pointer; transition: background-color 120ms ease-out; }
.karats__table tbody tr:hover { background: var(--bg); }
.karats__table tbody tr[aria-current] { background: var(--data-soft); box-shadow: inset 3px 0 0 var(--data); }
.karats__table tbody th button { padding: 0; background: none; border: 0; font: 500 16px var(--font-mono); color: var(--ink); cursor: pointer; }
.karats__table tbody th small { display: block; font-size: 12px; line-height: 16px; color: var(--ink-muted); font-weight: 400; }
.karats__table tbody td:nth-child(2) { color: var(--ink-muted); font-size: 13px; }

/* Seqment düymələri (dövr, vahid) */
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-btn); overflow: hidden; }
.seg button { padding: 6px 12px; background: transparent; border: 0; font: 500 13px/18px var(--font-brand); color: var(--ink-muted); cursor: pointer; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.seg button:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.seg--sm button { padding: 4px 10px; font-size: 12px; }

/* Qrafik: tək seriya (Xəzər), 2px xətt, 10% sahə, recessiv şəbəkə, crosshair + tooltip. */
.gchart__meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px 24px; }
.gchart__stats { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; }
.gchart__stats dt { font-size: 11px; line-height: 16px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.gchart__stats dd { margin: 3px 0 0; display: flex; flex-direction: column; gap: 1px; font-size: 15px; }
.gchart__stats dd small { font-family: var(--font-brand); font-size: 11px; color: var(--ink-muted); }
.gchart__plot { position: relative; min-height: 220px; }
.gchart__svg { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; cursor: crosshair; }
.gchart__svg:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.gchart__grid { stroke: var(--line); stroke-width: 1; shape-rendering: crispEdges; }
.gchart__tick { fill: var(--ink-muted); font: 11px var(--font-mono); font-variant-numeric: tabular-nums; }
.gchart__line { fill: none; stroke: var(--data); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.gchart__area { fill: var(--data); opacity: 0.1; }
.gchart__dot { fill: var(--data); stroke: var(--surface); stroke-width: 2; }
.gchart__cross { stroke: var(--ink-muted); stroke-width: 1; shape-rendering: crispEdges; }
.gchart__tip { position: absolute; z-index: 2; pointer-events: none; display: flex; flex-direction: column; gap: 2px; padding: 6px 10px; background: var(--ink); color: var(--surface); border-radius: var(--radius-btn); box-shadow: var(--shadow-float); white-space: nowrap; }
.gchart__tip b { font: 500 14px/18px var(--font-mono); }
.gchart__tip span { font-size: 11px; line-height: 14px; opacity: 0.75; }

/* İzahlar, FAQ, mənbələr */
.tool-explain { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--ink); }
.tool-explain h2 { margin: 0 0 10px; font-family: var(--font-display); font-weight: 700; font-size: 21px; line-height: 26px; }
.tool-explain p { margin: 0; font-family: var(--font-serif); font-size: 16px; line-height: 26px; }
.tool-explain .tool-explain__calc { margin-top: 12px; padding: 12px 14px; background: var(--surface-sunken); font-family: var(--font-mono); font-size: 13px; line-height: 22px; }
.tool-faq { max-width: 860px; margin-top: 56px; }
.tool-sources { max-width: 860px; margin: 32px 0 0; font-size: 13px; line-height: 21px; color: var(--ink-muted); }
.tool-sources b { color: var(--ink); font-weight: 500; }
.tool-sources a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.tool-share { max-width: 860px; margin-top: 28px; }

/* ---------- Bazar monitoru ---------- */
.mk-nav { position: sticky; top: 0; z-index: 5; display: flex; gap: 6px; padding: 10px 0; margin-bottom: 16px; background: var(--bg); overflow-x: auto; scrollbar-width: none; }
.mk-nav::-webkit-scrollbar { display: none; }
.mk-nav a { flex: none; padding: 7px 14px; border: 1px solid var(--line); border-radius: var(--radius-btn); font-size: 14px; color: var(--ink); text-decoration: none; background: var(--surface); }
.mk-nav a:hover { border-color: var(--ink); }
.mk-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: start; }
.mk-col { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.mk--crypto { margin-top: 24px; }
.mk-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.mk-table th, .mk-table td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.mk-table tr > :first-child { padding-left: 0; }
.mk-table tr > :last-child { padding-right: 0; }
.mk-table thead th { padding-top: 0; font-size: 11px; line-height: 16px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.mk-table .tnum { text-align: right; white-space: nowrap; }
.mk-table td.data { font-size: 14.5px; }
.mk-table tbody tr { scroll-margin-top: 72px; }
.mk-table tbody tr:target { background: var(--data-soft); box-shadow: inset 3px 0 0 var(--data); }
@media (prefers-reduced-motion: no-preference) { .mk-table tbody tr:target { animation: mk-flash 2.4s ease-out 1; } }
@keyframes mk-flash { 0%, 40% { background: rgba(13, 115, 119, 0.24); } }
.mk-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mk-name b { font-weight: 600; font-size: 14.5px; }
.mk-name small { color: var(--ink-muted); font-size: 12.5px; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-name--plain { flex-direction: column; align-items: flex-start; gap: 1px; }
.mk-name a { color: inherit; }
.mk-name small a { color: var(--ink-muted); text-decoration: underline; text-underline-offset: 2px; }
.fx-flag { width: 20px; height: 15px; flex: none; box-shadow: 0 0 0 1px rgba(17, 18, 20, 0.08); }
.fx-flag--none { display: inline-block; background: var(--surface-sunken); }
.mk-sub { margin: 8px 0 -6px; font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.mk-more summary { cursor: pointer; padding: 10px 0; font-size: 14px; font-weight: 500; color: var(--ink); }
.mk-spark { width: 104px; }
.spark { display: block; overflow: visible; }
.spark polyline { fill: none; stroke: var(--data); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.spark circle { fill: var(--data); }
.mk-rank { width: 28px; color: var(--ink-muted); }
.mk-nominal { display: block; font-family: var(--font-brand); font-size: 11px; font-weight: 400; color: var(--ink-muted); }
.mk-scroll { overflow-x: auto; }

/* ---------- Hub ---------- */
.hub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.hub-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color 160ms ease-out, box-shadow 160ms ease-out; }
.hub-card:hover { border-color: var(--ink); box-shadow: var(--shadow-float); text-decoration: none; }
.hub-card:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.hub-card__visual { min-height: 190px; padding: 24px; background: var(--data-soft); display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.hub-card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.hub-card__body h2 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 28px; line-height: 32px; }
.hub-card__body p { margin: 0; font-size: 15px; line-height: 23px; color: var(--ink-muted); }
.hub-card__go { margin-top: auto; padding-top: 12px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; }
.hub-card:hover .hub-card__go { text-decoration: underline; text-underline-offset: 4px; }
.hub-card__icon { color: var(--data); }
.hub-gold { display: flex; align-items: center; gap: 20px; }
.hub-gold__bar { flex: none; }
.hub-gold__bar path { fill: none; stroke: var(--data-strong); stroke-width: 1.5; stroke-linejoin: round; }
.hub-gold__price { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.hub-gold__price b { font-size: 36px; line-height: 40px; font-weight: 500; }
.hub-gold__karats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgba(13, 115, 119, 0.2); }
.hub-gold__karats li { display: flex; flex-direction: column; gap: 2px; padding-top: 10px; }
.hub-gold__karats li + li { padding-left: 14px; border-left: 1px solid rgba(13, 115, 119, 0.2); }
.hub-gold__karats span { font-size: 12px; color: var(--ink-muted); }
.hub-gold__karats b { font-size: 15px; }
.hub-ticker { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.hub-ticker li { display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 12px; font-size: 14px; }
.hub-ticker li span { color: var(--ink-muted); }
.hub-ticker li b { font-size: 16px; }
.hub-spark { display: flex; flex-direction: column; gap: 4px; }
.hub-spark span { font-size: 11px; color: var(--ink-muted); }
.hub-card .spark--fluid { width: 100%; height: 40px; }
.hub-note { margin: 28px 0 0; font-size: 15px; color: var(--ink-muted); }
.hub-note a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Nümunələr ---------- */
.sample-types { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.sample-types a { padding: 7px 14px; border: 1px solid var(--line); border-radius: var(--radius-btn); font-size: 14px; color: var(--ink-muted); text-decoration: none; background: var(--surface); }
.sample-types a[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.sample-types small { opacity: 0.7; margin-left: 4px; }
.sample-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.sample-card { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.sample-card:hover { border-color: var(--ink); text-decoration: none; }
.sample-card__type { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.sample-card h2 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 27px; }
.sample-card p { margin: 0; font-size: 14px; line-height: 21px; color: var(--ink-muted); }
.sample-empty { max-width: 760px; padding: 28px 32px; background: var(--surface); border: 1px solid var(--line); }
.sample-empty h2 { margin: 0 0 8px; font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 30px; }
.sample-empty p { margin: 0; color: var(--ink-muted); }
.sample-planned { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.sample-planned li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }

/* ---------- Nümunə sənədi (kağız) ---------- */
.prose figure.doc { margin: 32px 0; padding: 0; scroll-margin-top: 16px; }
.doc__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 14px; background: var(--surface-sunken); border: 1px solid var(--line); border-bottom: 0; border-radius: var(--radius-btn) var(--radius-btn) 0 0; font-family: var(--font-brand); }
.doc__label { flex: 1 1 200px; font-size: 14px; line-height: 20px; }
.doc__label b { font-weight: 600; }
.doc__btns { display: flex; gap: 6px; }
.prose .doc__btn, .doc__btn { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-btn); font: 500 14px var(--font-brand); color: var(--ink); text-decoration: none; cursor: pointer; }
.prose .doc__btn:hover, .doc__btn:hover { border-color: var(--ink); text-decoration: none; }
.doc__btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.doc__status { font-size: 13px; color: var(--data-strong); min-width: 1px; }
.doc__page { padding: 48px 56px 56px; background: #FFFFFF; color: #111214; border: 1px solid var(--line); box-shadow: 0 1px 0 var(--line), 0 12px 32px -18px rgba(17, 18, 20, 0.28); font-family: "Times New Roman", Literata, Georgia, serif; font-size: 17px; line-height: 1.6; }
.prose .doc__page p { margin: 0 0 12px; font-family: inherit; font-size: inherit; line-height: inherit; text-indent: 2.2em; text-align: justify; hyphens: manual; }
.prose .doc__page p.doc__to { margin: 0 0 20px auto; max-width: 52%; text-indent: 0; text-align: left; }
.prose .doc__page p.doc__title { margin: 28px 0 20px; text-indent: 0; text-align: center; font-weight: 700; letter-spacing: 0.12em; font-size: 19px; }
.prose .doc__page p.doc__sign { margin-top: 36px; text-indent: 0; text-align: left; }
.prose .doc__page h3 { margin: 22px 0 8px; font-family: inherit; font-size: 17px; font-weight: 700; text-indent: 0; }
.prose .doc__page ol, .prose .doc__page ul { margin: 0 0 12px; padding-left: 1.6em; }
.prose .doc__page li { margin: 0 0 6px; font-family: inherit; font-size: inherit; line-height: inherit; }
.ph { background: #FFF0B3; box-shadow: 0 0 0 1px #F1D873 inset; border-radius: 2px; padding: 0 3px; font-style: normal; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.prose figure.doc figcaption { margin-top: 10px; font-size: 13px; color: var(--ink-muted); font-family: var(--font-brand); }
.doc-index { margin: 4px 0 8px; padding: 16px 20px; background: var(--surface); border: 1px solid var(--line); }
.doc-index ol { margin: 8px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.doc-index a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.side-samples ul { list-style: none; margin: 8px 0 12px; padding: 0; }
.side-samples li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 21px; }
.side-samples li a { color: var(--ink); }
.side-samples__all { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink); }

/* Çap: yalnız seçilmiş sənəd (sample.js html.print-doc və .is-print qoyur) */
@media print {
  html.print-doc body * { visibility: hidden !important; }
  html.print-doc .doc.is-print .doc__page, html.print-doc .doc.is-print .doc__page * { visibility: visible !important; }
  html.print-doc .doc.is-print .doc__page { position: absolute; left: 0; top: 0; width: 100%; padding: 0; border: 0; box-shadow: none; }
  html.print-doc .ph { background: none; box-shadow: none; border-bottom: 1px dotted #777; }
  @page { size: A4; margin: 20mm 18mm 20mm 25mm; }
}

/* Qızıl KPI: masaüstündə 5 sütun (999, 750, 585, unsiya, AMB); mobildə yuxarıda 3, aşağıda 2 — yığcam. */
.tool .tool-kpis--gold { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tool .tool-kpis--gold .tool-kpi b { font-size: 28px; line-height: 34px; }
@media (max-width: 900px) {
  .tool .tool-kpis--gold { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .tool .tool-kpis--gold .tool-kpi, .tool .tool-kpis--gold .tool-kpi + .tool-kpi, .tool .tool-kpis--gold .tool-kpi:nth-child(even) { grid-column: span 2; gap: 2px; padding: 9px 8px; border: 0; border-bottom: 1px solid var(--line); }
  .tool .tool-kpis--gold .tool-kpi:nth-child(n+4) { grid-column: span 3; border-bottom: 0; }
  .tool .tool-kpis--gold .tool-kpi:not(:nth-child(1)):not(:nth-child(4)) { border-left: 1px solid var(--line); }
  .tool .tool-kpis--gold .tool-kpi:nth-child(1), .tool .tool-kpis--gold .tool-kpi:nth-child(4) { padding-left: 0; }
  .tool .tool-kpis--gold .label { font-size: 10.5px; line-height: 14px; letter-spacing: 0.06em; }
  .tool .tool-kpis--gold .kpi-long { display: none; }
  .tool .tool-kpis--gold .tool-kpi b { font-size: 19px; line-height: 24px; }
  .tool .tool-kpis--gold .tool-kpi__note { font-size: 11.5px; line-height: 16px; gap: 6px; }
  .tool .tool-kpis--gold .chg { font-size: 11px; padding: 0 4px; }
}
@media (max-width: 380px) { .tool .tool-kpis--gold .tool-kpi b { font-size: 17px; } }

/* ---------- Mobil ---------- */
@media (max-width: 1100px) {
  .tool-kpis--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tool-kpis--5 .tool-kpi:nth-child(4) { padding-left: 0; border-left: 0; }
  .tool-kpis--5 .tool-kpi:nth-child(n+4) { border-top: 1px solid var(--line); }
  .mk-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .tool-head__lede { font-size: 18px; line-height: 28px; }
  .tool-kpis, .tool-kpis--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-kpi, .tool-kpi + .tool-kpi, .tool-kpis--5 .tool-kpi:nth-child(4) { padding: 14px 12px 14px 0; border-left: 0; border-top: 0; border-bottom: 1px solid var(--line); }
  .tool-kpi:nth-child(even) { padding-left: 12px; border-left: 1px solid var(--line); }
  .tool-kpi b, .tool-kpis--5 .tool-kpi b { font-size: 24px; line-height: 30px; }
  .calc, .gold-grid, .tool-explain, .hub-grid, .sample-grid { grid-template-columns: minmax(0, 1fr); }
  .calc__form, .calc__result { padding: 20px; }
  .calc__big { font-size: 40px; }
  .calc__tabs { gap: 20px; }
  .tool-card { padding: 18px; }
  .tool-explain { gap: 24px; margin-top: 40px; }
  .mk-hide-sm { display: none; }
  .mk-name small { white-space: normal; }
  .mk-name:not(.mk-name--plain) { flex-wrap: wrap; gap: 2px 8px; }
  .mk-name:not(.mk-name--plain) small { flex-basis: 100%; padding-left: 28px; }
  .mk-table th, .mk-table td { padding-left: 6px; padding-right: 6px; }
  .sample-planned { grid-template-columns: minmax(0, 1fr); }
  .doc__page { padding: 24px 18px 28px; font-size: 15.5px; }
  .prose .doc__page p { text-align: left; text-indent: 0; }
  .prose .doc__page p.doc__to { max-width: none; margin-left: 0; padding-left: 30%; }

}
@media (max-width: 480px) {
  .cf, .cf--grow { flex: 1 1 100%; }
  .calc-row { gap: 10px; }
  .calc-row[data-row] { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .calc-row[data-row] .cf { grid-column: 1; }
  .calc-row[data-row] .calc-row__remove { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .calc-row--convert .calc-row__arrow { display: none; }
  .karats__table tbody th small { display: none; }
  .calc__tabs { gap: 16px; }
  .calc__tabs button { font-size: 14px; }
  .tool-kpi b, .tool-kpis--5 .tool-kpi b { font-size: 21px; line-height: 26px; }
  .hub-gold__price b { font-size: 30px; }
}
