/* Concours Radar — preparation tools & guides (loaded after style.css). Same tokens, logical properties for RTL. */
.min0 { min-width: 0; }
.main-nav a.nav-m { display: none; }
@media (min-width: 981px) { .footer-grid { grid-template-columns: 1.5fr repeat(4, 1fr); gap: 30px; } }

/* page head extras */
.tool-head h1 { font-size: clamp(30px, 4.2vw, 48px); max-width: 22em; }
.tool-head .detail-alt { margin: -2px 0 10px; }

/* tool cards */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.tool-card, .cut-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--ink); text-decoration: none !important; box-shadow: var(--shadow-1); transition: transform .18s, box-shadow .18s, border-color .18s; overflow: hidden; isolation: isolate; }
.tool-card::after, .cut-card::after { content: ""; position: absolute; inset-block-start: -30px; inset-inline-end: -30px; width: 150px; height: 150px; background-image: var(--zellige); opacity: .06; z-index: -1; border-radius: 50%; }
.tool-card:hover, .cut-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.tool-card .badge-octa { width: 52px; height: 52px; margin-bottom: 8px; }
.tool-card .badge-octa .ic { width: 24px; height: 24px; }
.tool-card.is-feature { background: linear-gradient(150deg, var(--brand-tint) 0%, var(--surface) 70%); border-color: var(--brand-soft); }
.tool-card.is-feature .badge-octa { background: var(--brand); color: #fff; }
.tool-name { font: 650 19px/1.3 var(--sans) !important; letter-spacing: -.01em; margin: 0 !important; color: var(--ink); }
[dir="rtl"] .tool-name { letter-spacing: 0; line-height: 1.55 !important; }
.tool-desc { color: var(--muted); font-size: 14.5px; margin: 0 0 8px; flex: 1; line-height: 1.55; }
.tool-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.tool-link { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); font-weight: 600; font-size: 14.5px; line-height: 1.3; text-decoration: none !important; transition: border-color .15s, transform .15s; }
.tool-link:hover { border-color: var(--brand); transform: translateY(-1px); }
.tool-link .badge-octa { width: 36px; height: 36px; }
.tool-link .badge-octa .ic { width: 17px; height: 17px; }
.tool-link > .ic { margin-inline-start: auto; color: var(--brand); }
.home-prep .tool-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.home-prep .tool-card { padding: 20px; }
.home-prep .tool-desc { font-size: 14px; }
.prep-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.prep-chips .chip .ic { color: var(--brand); }

/* eligibility */
.el-layout { display: grid; grid-template-columns: 384px minmax(0, 1fr); gap: 32px; padding-block: 30px 40px; align-items: start; }
.el-form { position: sticky; top: 90px; display: grid; gap: 16px; padding: 20px; }
.el-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.el-form legend { font: 650 12px/1 var(--sans); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
[dir="rtl"] .el-form legend { text-transform: none; letter-spacing: 0; font-size: 13.5px; }
.opt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.opt { position: relative; display: flex; align-items: center; gap: 9px; padding: 10px 12px; min-height: 54px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); cursor: pointer; font-size: 13.5px; font-weight: 560; line-height: 1.3; color: var(--ink-2); transition: border-color .12s, background .12s; }
.opt::before { content: ""; width: 12px; height: 12px; flex: none; clip-path: var(--octa); background: var(--line-2); transition: background .12s; }
.opt:hover { border-color: var(--brand); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); color: var(--brand-ink); box-shadow: 0 0 0 3px var(--brand-soft); }
.opt:has(input:checked)::before { background: var(--brand); }
.opt:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.el-when[hidden] { display: none; }
.el-summary { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; margin-bottom: 22px; }
.el-profile { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 14px; }
.el-h { display: flex; align-items: center; gap: 10px; font-size: clamp(22px, 2.4vw, 28px); }
.el-h .ic { color: var(--c-open); width: 26px; height: 26px; }
.el-h-maybe { margin-top: 34px; }
.el-h-maybe .ic { color: var(--c-expected); }
.el-cat { display: flex; align-items: center; gap: 10px; font: 650 15px/1.2 var(--sans) !important; margin: 26px 0 12px !important; color: var(--ink-2); }
.el-cat .badge-octa { width: 32px; height: 32px; }
.el-cat .badge-octa .ic { width: 15px; height: 15px; }
.el-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.el-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow-1); border-top: 3px solid var(--c-open); }
.el-card h4 { font: 650 16.5px/1.38 var(--sans); margin: 0; }
.el-sel { color: var(--ink-2); font-size: 14.5px; margin: 0; line-height: 1.55; }
.el-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.el-facts li { display: flex; gap: 8px; align-items: flex-start; }
.el-facts .ic { width: 15px; height: 15px; color: var(--faint); margin-top: 2px; }
.el-links { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 0; }
.el-links .ic { width: 15px; height: 15px; }
.el-live, .side-live { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.el-live { padding-top: 12px; border-top: 1px solid var(--line); }
.el-live li, .side-live li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px 10px; align-items: baseline; font-size: 13.5px; }
.el-live .pill, .side-live .pill { font-size: 11px; padding: 4px 8px; }
.el-live a, .side-live a { color: var(--ink); font-weight: 600; line-height: 1.38; }
.el-live small, .side-live small { grid-column: 2; color: var(--muted); }
.el-mini { list-style: none; padding: 0; margin: 0 0 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.el-mini li { display: grid; gap: 2px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 14.5px; }
.el-mini li:first-child { border-top: 0; }
.el-mini span { color: var(--muted); font-size: 13.5px; }
.el-no { margin: 26px 0; }
.el-no summary { cursor: pointer; font-weight: 650; padding: 12px 0; display: flex; align-items: center; gap: 4px; color: var(--ink-2); }
.el-how { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 12px; }
.el-how li { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.el-how p { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; }
.step-n { display: grid; place-items: center; width: 34px; height: 34px; flex: none; clip-path: var(--octa); background: var(--brand); color: #fff; font: 700 14px/1 var(--sans); }

/* calculators */
.calc-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px; padding-block: 28px 10px; align-items: start; }
.calc-layout.is-compact { padding-block: 0; }
.calc-form { display: grid; gap: 18px; padding: 22px; }
.calc-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 14px; }
.calc-form fieldset[hidden] { display: none; }
.notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.note { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; cursor: text; transition: border-color .12s, box-shadow .12s, background .12s; }
.note-l { font: 600 14px/1.3 var(--sans); color: var(--ink); }
.note-l small { display: block; font-weight: 500; color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.note-i { display: flex; align-items: baseline; gap: 6px; }
.note-i input { width: 100%; min-width: 0; border: 0; background: transparent; font: 560 32px/1.1 var(--serif); color: var(--ink); padding: 0; outline: none; font-variant-numeric: tabular-nums lining-nums; }
[dir="rtl"] .note-i input { font-family: "Inter", var(--sans); font-weight: 600; font-size: 28px; }
.note-i i { font-style: normal; color: var(--faint); font-weight: 600; font-size: 14px; }
.note:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); background: var(--surface); }
.note input.is-auto { color: var(--brand); }
.note:has(.is-bad), .subj input.is-bad { border-color: var(--c-closing); }
.is-bad { color: var(--c-closing) !important; }
.detail-toggle { font-weight: 600; }
.subjects { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.subjects[hidden] { display: none; }
.subj-group { border: 1px solid var(--line) !important; border-radius: 14px; padding: 8px 14px 14px !important; gap: 8px !important; }
.subj-group legend { font: 650 12px/1 var(--sans); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 0 6px; }
[dir="rtl"] .subj-group legend { text-transform: none; letter-spacing: 0; font-size: 13px; }
.subj { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; line-height: 1.3; }
.subj small { color: var(--faint); white-space: nowrap; }
.subj input { width: 74px; flex: none; font: 600 15px/1 var(--sans); text-align: center; padding: 8px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--surface); color: var(--ink); outline: none; }
.subj input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.calc-result { position: sticky; top: 90px; }
.res-k { font: 650 12px/1.2 var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 8px; }
[dir="rtl"] .res-k { text-transform: none; letter-spacing: 0; font-size: 13.5px; }
.res-big { display: flex; align-items: baseline; gap: 6px; margin: 0 0 10px; }
.res-big b { font: 520 66px/1 var(--serif); letter-spacing: -.03em; color: var(--brand); font-variant-numeric: tabular-nums lining-nums; }
[dir="rtl"] .res-big b { font-family: "Inter", var(--sans); font-weight: 600; letter-spacing: -.02em; }
.res-big span { font: 600 18px/1 var(--sans); color: var(--faint); }
.res-mention, .res-verdict { display: inline-flex; align-items: center; gap: 6px; font: 650 14px/1.2 var(--sans); padding: 7px 12px; border-radius: 999px; margin: 0 0 6px; color: var(--c-open); background: var(--c-open-soft); }
.res-verdict.is-down { color: var(--c-closing); background: var(--c-closing-soft); }
.res-verdict.is-mid { color: var(--c-expected); background: var(--c-expected-soft); }
.res-mention[hidden], .res-verdict[hidden] { display: none; }
.res-warn { color: var(--c-closing); font-size: 14px; margin: 6px 0; }
.res-hint { font-size: 14px; margin: 0; }
.res-mini { display: grid; grid-template-columns: repeat(3, 1fr); margin: 18px 0 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.res-mini div { padding: 10px 12px; border-inline-start: 1px solid var(--line); min-width: 0; }
.res-mini div:first-child { border-inline-start: 0; }
.res-mini dt { font-size: 12px; color: var(--muted); line-height: 1.3; }
.res-mini dd { margin: 3px 0 0; font: 650 17px/1.2 var(--sans); font-variant-numeric: tabular-nums; }
.res-h { font: 650 15px/1.3 var(--sans) !important; margin: 24px 0 4px !important; letter-spacing: 0 !important; }
.res-sub { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.res-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.res-table th, .res-table td { padding: 9px 8px; border-top: 1px solid var(--line); text-align: start; font-variant-numeric: tabular-nums; }
.res-table thead th { font-size: 12px; color: var(--muted); font-weight: 650; border-top: 0; }
.res-table th[scope=row] { font-weight: 650; }
.res-table small { color: var(--muted); }
.res-table tr.is-up [data-o=score], .res-table tbody[data-out=hist] tr.is-up td:last-child { color: var(--c-open); font-weight: 700; }
.res-table tr.is-down [data-o=score], .res-table tbody[data-out=hist] tr.is-down td:last-child { color: var(--c-closing); font-weight: 700; }
.res-table tr.is-mid [data-o=score], .res-table tbody[data-out=hist] tr.is-mid td:last-child { color: var(--c-expected); font-weight: 650; }
.formula-box { background: var(--brand-tint); border: 1px solid var(--brand-soft); border-radius: 12px; padding: 12px 14px; font-size: 14.5px; color: var(--ink-2); margin: 0; line-height: 1.55; }
.mention-list { list-style: none; padding: 0; margin: 0 0 10px; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.mention-list li { display: flex; justify-content: space-between; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-size: 15px !important; }
.mention-list span { color: var(--muted); font-variant-numeric: tabular-nums; }
.coef-faq summary { font-size: 15.5px; padding: 15px 0; }
.coef-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 0 0 18px; }
.coef-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.coef-table caption { text-align: start; font: 650 12.5px/1.2 var(--sans); color: var(--muted); padding-bottom: 6px; }
.coef-table th, .coef-table td { padding: 6px 0; border-bottom: 1px solid var(--line); text-align: start; font-weight: 500; color: var(--ink-2); }
.coef-table td { text-align: end; font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; }
.src-line { font-size: 13.5px !important; color: var(--muted) !important; margin-top: 18px; }

/* cut-offs */
.cut-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.cut-card { padding: 20px; }
.cut-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 4px; }
.cut-card .tool-name { font-size: 22px !important; }
.cut-latest { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 4px 0 8px; }
.cut-latest div { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 8px 6px; text-align: center; min-width: 0; }
.cut-latest dt { font: 650 11.5px/1.2 var(--sans); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cut-latest dd { margin: 5px 0 0; font: 560 18px/1 var(--serif); color: var(--ink); font-variant-numeric: tabular-nums lining-nums; }
.cut-latest dd small { font: 500 11px/1 var(--sans); color: var(--muted); }
.cut-latest-side { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 14px; }
.cut-latest-side dt small { font-weight: 500; color: var(--faint); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); margin-bottom: 16px; box-shadow: var(--shadow-1); }
.cut-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 360px; }
.cut-table th, .cut-table td { padding: 12px 14px; text-align: center; white-space: nowrap; font-variant-numeric: tabular-nums lining-nums; }
.cut-table th:first-child { text-align: start; }
.cut-table thead th { background: var(--bg-2); font: 650 13px/1.2 var(--sans); color: var(--ink-2); }
.cut-table tbody tr + tr { border-top: 1px solid var(--line); }
.cut-table tbody th { font-weight: 650; }
.cut-table .is-latest { background: var(--brand-tint); }
.cut-table .is-latest td { font-weight: 700; color: var(--brand-ink); }
.table-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--muted); margin: 0; }
.table-legend b { color: var(--ink-2); }
.trend { display: grid; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.trend-row { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 14px; align-items: end; }
.trend-l { font-size: 14px; font-weight: 600; color: var(--ink-2); align-self: center; line-height: 1.35; }
.trend-bars { display: flex; gap: 10px; align-items: flex-end; height: 100px; }
.bar { flex: 1; max-width: 76px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.bar i { display: block; width: 100%; height: calc(var(--h) * 58px + 6px); background: var(--brand-soft); border-radius: 8px 8px 3px 3px; }
.bar:last-child i { background: var(--brand); }
.bar b { font: 650 12.5px/1 var(--sans); font-variant-numeric: tabular-nums; }
.bar small { font-size: 11.5px; color: var(--muted); }
.side-panel .kicker, .panel-quiet .kicker { margin-bottom: 12px; }

.prep-panel .cta-stack { margin: 0; }
.prep-panel .btn .ic { width: 16px; height: 16px; }
.prep-panel .btn { white-space: normal; text-align: center; line-height: 1.25; }
.detail-aside { grid-template-columns: minmax(0, 1fr); }
.prep-band { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(150deg, #FFFFFF 0%, var(--brand-tint) 100%); border: 1px solid var(--line); border-radius: 28px; padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow-1); }
.prep-band::before { content: ""; position: absolute; inset-block: 0; inset-inline-end: 0; width: 42%; background-image: var(--zellige); opacity: .06; z-index: -1; mask-image: linear-gradient(90deg, transparent, #000); -webkit-mask-image: linear-gradient(90deg, transparent, #000); }
[dir="rtl"] .prep-band::before { mask-image: linear-gradient(270deg, transparent, #000); -webkit-mask-image: linear-gradient(270deg, transparent, #000); }
.section + .section.home-prep { padding-top: clamp(20px, 3vw, 36px); }
.prep-band .sub-head { margin-top: 30px; }

/* responsive */
@media (max-width: 1120px) {
 .home-prep .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } 
}
@media (max-width: 980px) {
  .main-nav a.nav-m { display: flex; }
  .el-layout, .calc-layout, .calc-layout.is-compact { grid-template-columns: minmax(0, 1fr); }
  .el-form, .calc-result { position: static; }
  .el-layout.has-res .el-results { order: -1; }
  .detail-aside.cut-aside { order: 0; }
}
@media (max-width: 720px) {
  .tool-grid, .home-prep .tool-grid, .cut-grid, .prep-grid, .el-list, .mock-list { grid-template-columns: minmax(0, 1fr); }
  .tool-card { padding: 20px; }
  .subjects, .checks-2, .coef-grid { grid-template-columns: minmax(0, 1fr); }
  .trend-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .res-big b { font-size: 54px; }
  .cut-latest { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .el-form { padding: 16px; }
  .opt { font-size: 13px; min-height: 50px; padding: 9px 10px; }
}
