/* EP tools inside articles ([ep_tool] shortcode). Built 2 Dec 2026.
   Same family as the article's quick-answer panel and note strip: cream ground, thin line, maroon accents.
   No new colours: the variables come from page-article-v2.php, with fallbacks. */
.ept-tool { --ept-maroon: var(--maroon, #910048); --ept-deep: var(--maroon-deep, #6B0035); --ept-ink: var(--ink, #17171B); --ept-grey: var(--grey, #5D5D66); --ept-line: var(--line, #E9E4E7); --ept-cream: var(--cream, #FAF5EE); --ept-tint: var(--pink-tint, #FDF0F5);
  background: var(--ept-cream); border: 1px solid var(--ept-line); border-radius: 16px; padding: 24px 26px 20px; margin: 34px 0; font-size: 16px; line-height: 1.55; color: #2b2b2b; }
.ept-tool * { box-sizing: border-box; }
.ept-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 6px; }
.ept-label { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ept-maroon); }
.ept-title { font-size: 21px; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; color: var(--ept-ink); margin: 2px 0 6px; }
.ept-intro { margin: 0 0 16px; color: #3a3a42; font-size: 15.5px; }
.ept-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin: 0 0 18px; }
.ept-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ept-field.ept-wide { grid-column: 1 / -1; }
.ept-field > span { font-size: 13px; font-weight: 700; color: var(--ept-ink); letter-spacing: .01em; }
.ept-field small { font-size: 12.5px; color: var(--ept-grey); line-height: 1.4; }
.ept-tool input[type="number"], .ept-tool input[type="search"], .ept-tool input[type="text"], .ept-tool select {
  width: 100%; font: inherit; font-size: 16px; color: var(--ept-ink); background: #fff; border: 1px solid #DCD4D8; border-radius: 12px; padding: 11px 13px; min-height: 46px; outline: none;
  box-shadow: inset 0 1px 2px rgba(23,23,27,.05); -webkit-appearance: none; appearance: none; }
.ept-tool select { background-image: linear-gradient(45deg, transparent 50%, var(--ept-maroon) 50%), linear-gradient(135deg, var(--ept-maroon) 50%, transparent 50%); background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.ept-tool input:focus, .ept-tool select:focus { border-color: var(--ept-maroon); box-shadow: 0 0 0 3px rgba(145,0,72,.14); }
.ept-seg { display: flex; flex-wrap: wrap; gap: 8px; }
.ept-seg label { position: relative; display: inline-flex; }
.ept-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ept-seg label span { display: inline-block; font-size: 14.5px; font-weight: 600; color: var(--ept-ink); background: linear-gradient(#fff, #f6f0f3); border: 1px solid #DCD4D8; border-radius: 11px; padding: 9px 13px; cursor: pointer; line-height: 1.3;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 -2px 0 rgba(23,23,27,.06), 0 1px 2px rgba(23,23,27,.08); }
.ept-seg input:checked + span { background: var(--ept-maroon); border-color: var(--ept-maroon); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), inset 0 -2px 0 rgba(0,0,0,.2), 0 1px 2px rgba(23,23,27,.16), 0 8px 22px -8px rgba(145,0,72,.55); }
.ept-seg input:focus-visible + span { outline: 3px solid rgba(145,0,72,.3); outline-offset: 2px; }
.ept-result { background: #fff; border: 1px solid var(--ept-line); border-radius: 14px; padding: 18px 20px; margin: 0 0 14px; }
.ept-verdict { display: flex; align-items: flex-start; gap: 12px; }
.ept-dot { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 16px; color: #fff; background: var(--ept-grey); margin-top: 2px; }
.ept-ok .ept-dot { background: var(--teal, #004645); }
.ept-no .ept-dot { background: var(--ept-maroon); }
.ept-big { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; color: var(--ept-ink); }
.ept-sub { font-size: 15px; color: #3a3a42; margin-top: 4px; }
.ept-rows { margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--ept-line); display: grid; gap: 6px; }
.ept-row { display: flex; justify-content: space-between; gap: 14px; font-size: 15px; }
.ept-row b { font-weight: 700; color: var(--ept-ink); white-space: nowrap; }
.ept-row.ept-total { border-top: 1px solid var(--ept-line); padding-top: 8px; margin-top: 4px; font-weight: 700; color: var(--ept-ink); }
.ept-note { font-size: 13.5px; color: var(--ept-grey); line-height: 1.5; margin: 0 0 6px; }
.ept-src { font-size: 12.5px; color: var(--ept-grey); line-height: 1.45; margin: 8px 0 0; }
.ept-src a { color: var(--ept-maroon); }
.ept-tool details { margin: 10px 0 0; }
.ept-tool summary { cursor: pointer; font-size: 14px; font-weight: 700; color: var(--ept-maroon); }
.ept-tool .ept-static table { margin: 12px 0 6px; font-size: 14.5px; }
.ept-tool .ept-static thead th { padding: 10px 12px; font-size: 12px; }
.ept-tool .ept-static tbody td { padding: 9px 12px; }
.ept-occ-list { max-height: 360px; overflow: auto; border-radius: 14px; }
.ept-hide { display: none !important; }
.ept-js .ept-nojs { display: none; }
@media (max-width: 640px) {
  .ept-tool { padding: 20px 16px 16px; border-radius: 14px; margin: 28px -4px; }
  .ept-form { grid-template-columns: 1fr; }
  .ept-big { font-size: 22px; }
  .ept-row { font-size: 14.5px; }
}
