/* One free tool per page (/tools/<slug>). Loads after /styles.css, /blog/blog.css and /tools/tools.css.
   Page shell: scripts/build-blog.mjs (toolPage) + content/tools/<slug>/. Shared behaviour: /tools/kit.js */
.tool-hero .post-hero-in { padding-bottom: 34px; }
.tool-hero h1 { max-width: 900px; }
.tool-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tool-badges span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); color: #e3e6ea; font-size: .84rem; font-weight: 600; }
.tool-badges span b { color: var(--yellow); }
.tool-who { margin: 14px 0 0; color: #c9ced6; font-size: .88rem; }
.tool-who b { color: #fff; }
.tool-who .tw-link { color: var(--yellow); }

.tool-app { padding: 26px 0 8px; }
.tool-app .tool { scroll-margin-top: calc(var(--hdr, 72px) + 12px); }
.tool-app .tool-head p { max-width: 820px; }
.tool-states { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tool-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.tool-quick li { background: var(--concrete); border-radius: 12px; padding: 12px 14px; font-size: .88rem; color: var(--ink); }
.tool-quick li b { display: block; font-family: var(--display); font-size: 1.25rem; color: var(--asphalt); letter-spacing: .01em; }

/* inputs that tools.css doesn't style */
.tool [hidden], .tool-in [hidden], .tool-out [hidden] { display: none !important; }
.tool-in input[type="text"], .tool-in input[type="email"], .tool-in input[type="tel"], .tool-in input:not([type]), .tool-in textarea { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1.5px solid var(--concrete-2); border-radius: 10px; background: var(--white); font: inherit; font-weight: 600; color: var(--ink); }
.tool-in textarea { min-height: 88px; resize: vertical; font-weight: 500; }
.tool-in fieldset { border: 1.5px solid var(--concrete-2); border-radius: 14px; padding: 12px 14px 14px; margin: 0; display: grid; gap: 12px; min-width: 0; }
.tool-in legend { padding: 0 6px; font-weight: 800; font-size: .88rem; color: var(--asphalt); }
.tool-in .row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 620px) { .tool-in .row3 { grid-template-columns: 1fr 1fr; } }
.tool-in .check { display: flex; align-items: flex-start; gap: 8px; font-weight: 600; }
.tool-in .check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--orange); flex: none; }
.tool-in .hint { margin: -4px 0 0; font-size: .8rem; color: var(--steel); font-weight: 500; }
.tool-out { min-width: 0; }
.out-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 12px 0; }
.out-scroll .out-table { margin: 0; min-width: 100%; }

/* result extras (the result panel is dark: tools.css .tool-out) */
.big.good b { color: #86efac; } .big.alert b { color: #ff8f84; } .big.warn b { color: #fdba74; }
.tw-pill { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 99px; font-size: .78rem; font-weight: 800; background: rgba(255,255,255,.1); color: #fff; letter-spacing: .01em; }
.tw-pill.good { background: rgba(34,197,94,.2); color: #bbf7d0; } .tw-pill.alert { background: rgba(229,50,45,.25); color: #ffd0c8; } .tw-pill.warn { background: rgba(255,106,0,.22); color: #fed7aa; } .tw-pill.dark { background: var(--yellow); color: var(--asphalt); }
.tw-verdict { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; font-weight: 600; line-height: 1.4; }
.tw-verdict b { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 1rem; }
.tw-verdict.good { background: rgba(34,197,94,.14); border: 1px solid rgba(34,197,94,.4); color: #dcfce7; } .tw-verdict.good b { background: #16a34a; }
.tw-verdict.alert { background: rgba(229,50,45,.16); border: 1px solid rgba(229,50,45,.45); color: #ffe4e0; } .tw-verdict.alert b { background: var(--red); }
.tw-meter { height: 10px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; }
.tw-meter i { display: block; height: 100%; border-radius: inherit; background: var(--orange); }
.tw-meter.good i { background: var(--green); } .tw-meter.alert i { background: var(--red); }
.tw-src { margin: 0; font-size: .76rem; color: #aab0ba; }
.tw-src a { color: inherit; text-decoration: underline; }
.out-h { margin: 4px 0 -4px; font-family: var(--body); text-transform: none; font-size: .95rem; font-weight: 800; color: var(--yellow); letter-spacing: 0; }
.out-list { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: .88rem; color: #e3e6ea; }
.tool-out a { color: var(--yellow); }
.tw-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; border-top: 1px dashed rgba(255,255,255,.16); }
.tw-actions button { border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06); color: #fff; border-radius: 10px; padding: 8px 13px; font: inherit; font-weight: 700; font-size: .84rem; cursor: pointer; }
.tw-actions button:hover { border-color: var(--yellow); color: var(--yellow); }
.gps { display: grid; gap: 8px; }.tw-link { color: var(--yellow); }

.tool-app { padding: 26px 0 8px; }
.tool-app .tool { scroll-margin-top: calc(var(--hdr, 72px) + 12px); }
.tool-app .tool-head p { max-width: 820px; }
.tool-states { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tool-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.tool-quick li { background: var(--concrete); border-radius: 12px; padding: 12px 14px; font-size: .88rem; color: var(--ink); }
.tool-quick li b { display: block; font-family: var(--display); font-size: 1.25rem; color: var(--asphalt); letter-spacing: .01em; }

/* inputs that tools.css doesn't style */
.tool-in [hidden], .tool-out [hidden] { display: none !important; }
.tool-in input[type="text"], .tool-in input[type="email"], .tool-in input[type="tel"], .tool-in input:not([type]), .tool-in textarea { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1.5px solid var(--concrete-2); border-radius: 10px; background: var(--white); font: inherit; font-weight: 600; color: var(--ink); }
.tool-in textarea { min-height: 88px; resize: vertical; font-weight: 500; }
.tool-in fieldset { border: 1.5px solid var(--concrete-2); border-radius: 14px; padding: 12px 14px 14px; margin: 0; display: grid; gap: 12px; min-width: 0; }
.tool-in legend { padding: 0 6px; font-weight: 800; font-size: .88rem; color: var(--asphalt); }
.tool-in .row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 620px) { .tool-in .row3 { grid-template-columns: 1fr 1fr; } }
.tool-in .check { display: flex; align-items: flex-start; gap: 8px; font-weight: 600; }
.tool-in .check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--orange); flex: none; }
.tool-in .hint { margin: -4px 0 0; font-size: .8rem; color: var(--steel); font-weight: 500; }
.tool-out { min-width: 0; }
.out-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 12px 0; }
.out-scroll .out-table { margin: 0; min-width: 100%; }


/* the free sign-up gate */
.tool-out.is-gated { position: relative; }
.tw-gate-wrap { position: relative; min-height: 340px; border-radius: 16px; overflow: hidden; }
.tw-gate-blur { filter: blur(7px) saturate(.8); opacity: .55; pointer-events: none; user-select: none; max-height: 560px; overflow: hidden; }
.tw-gate-card { position: absolute; inset: 0; margin: auto; height: fit-content; max-width: 400px; width: calc(100% - 28px); background: var(--white); border: 1px solid var(--concrete-2); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 22px 22px 18px; text-align: center; display: grid; gap: 10px; justify-items: center; }
.tw-gate-card b { font-size: 1.2rem; font-weight: 800; color: var(--ink); line-height: 1.25; }
.tw-gate-card p { margin: 0; color: var(--steel); font-size: .92rem; }
.tw-gate-card p strong { color: var(--ink); }
.tw-gate-card small { color: var(--steel); font-size: .78rem; }
.tw-gate-card .btn { width: 100%; justify-content: center; }
.tw-gate-free { display: inline-block; padding: 4px 10px; border-radius: 99px; background: #dcfce7; color: #166534; font-weight: 800; font-size: .74rem; letter-spacing: .06em; }

.tw-modal-on { overflow: hidden; }
.tw-modal-bg { position: fixed; inset: 0; z-index: 1000; background: rgba(15,17,21,.62); display: grid; place-items: center; padding: 16px; overflow-y: auto; animation: twFade .16s ease; }
.tw-modal { position: relative; width: 100%; max-width: 460px; background: var(--white); border-radius: 20px; padding: 26px 24px 22px; box-shadow: var(--shadow-lg); animation: twPop .2s ease; }
.tw-modal h2 { font-family: var(--body); text-transform: none; font-size: 1.45rem; font-weight: 800; margin: 10px 0 6px; letter-spacing: -.01em; }
.tw-modal-x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--concrete); font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--ink); }
.tw-su-lead { margin: 0 0 14px; color: var(--steel); font-size: .92rem; }
.tw-su-form, .tw-su-code { display: grid; gap: 11px; }
.tw-su-form label, .tw-su-code label { display: grid; gap: 5px; font-weight: 700; font-size: .88rem; }
.tw-su-form .u { font-weight: 500; color: var(--steel); font-size: .78rem; }
.tw-su-form input:not([type=checkbox]), .tw-su-form select, .tw-su-code input { height: 46px; padding: 0 12px; border: 1.5px solid var(--concrete-2); border-radius: 10px; font: inherit; font-weight: 600; width: 100%; min-width: 0; background: var(--white); color: var(--ink); }
.tw-su-form input:focus, .tw-su-form select:focus, .tw-su-code input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,106,0,.18); }
.tw-su-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 10px; }
.tw-su-check { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 8px; font-weight: 500 !important; font-size: .82rem !important; color: var(--steel); }
.tw-su-check input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--orange); flex: none; }
.tw-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0; }
.tw-su-err { margin: 0; padding: 10px 12px; border-radius: 10px; background: #fef2f2; color: #991b1b; font-weight: 600; font-size: .88rem; }
.tw-su-fine { color: var(--steel); font-size: .76rem; line-height: 1.45; }
.tw-su-fine a { color: inherit; }
.tw-code-in { font-size: 1.5rem !important; letter-spacing: .4em; text-align: center; font-family: var(--display) !important; }
.tw-su-code .tw-link { justify-self: center; font-size: .88rem; }
@keyframes twFade { from { opacity: 0; } } @keyframes twPop { from { transform: translateY(10px) scale(.98); opacity: 0; } }

/* guide under the tool */
.tool-guide { padding-top: 10px; }
.tool-sources { margin-top: 28px; padding: 18px 20px; background: var(--concrete); border-radius: 14px; font-size: .9rem; }
.tool-sources h2 { font-size: 1.1rem !important; margin: 0 0 8px !important; }
.tool-sources ul { margin: 0; padding-left: 18px; }
.tool-more { padding: 10px 0 56px; }
.tool-more h2 { margin-bottom: 16px; }
.tool-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.tool-card { display: grid; gap: 6px; align-content: start; padding: 18px; border-radius: 16px; background: var(--white); border: 1px solid var(--concrete-2); color: var(--ink); text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s; }
.tool-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--asphalt); }
.tool-card .tc-cat { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); }
.tool-card b { font-size: 1.05rem; font-weight: 800; line-height: 1.25; }
.tool-card span:last-child { color: var(--steel); font-size: .88rem; }
.tools-hub-cards { padding: 6px 0 4px; }
.tools-hub-cards h2 { margin: 0 0 6px; }
.tools-hub-cards > p { margin: 0 0 16px; color: var(--steel); }
.tools-hub-group { margin: 18px 0 8px; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--steel); }

/* printing one report (kit.js printReport) */
#tw-print { display: none; }
@media print {
  body.tw-printing > *:not(#tw-print) { display: none !important; }
  body.tw-printing #tw-print { display: block; color: #000; font: 11pt/1.45 Inter, Arial, sans-serif; }
  #tw-print .twp-head { display: flex; justify-content: space-between; gap: 20px; border-bottom: 3px solid #ffc20e; padding-bottom: 10px; margin-bottom: 16px; }
  #tw-print .twp-head b { font-size: 16pt; } #tw-print .twp-head b span { color: #ff6a00; }
  #tw-print .twp-head small { display: block; color: #555; font-size: 8.5pt; }
  #tw-print .twp-meta { text-align: right; } #tw-print .twp-meta b { font-size: 12pt; }
  #tw-print .twp-foot { margin-top: 18px; padding-top: 8px; border-top: 1px solid #ccc; font-size: 8pt; color: #555; }
  #tw-print *:not(.tw-keep):not(.tw-keep *) { color: #000 !important; background: none !important; border-color: #bbb !important; }
  #tw-print .tw-actions, #tw-print button, #tw-print .tw-meter { display: none !important; }
  #tw-print .kv { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; } #tw-print .kv span { color: #555 !important; }
  #tw-print table { border-collapse: collapse; width: 100%; } #tw-print th, #tw-print td { border: 1px solid #bbb; padding: 4px 6px; text-align: left; font-size: 9pt; }
  #tw-print .big b { font-size: 20pt; } #tw-print tr, #tw-print .kv > div { break-inside: avoid; }
  #tw-print img { max-width: 100%; }
  @page { size: A4; margin: 14mm; }
}

/* ---------------------------------------------------------------- page layout: hero with CTAs, member band, article + sticky sidebar */
.tool-hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(400px, 460px); gap: 40px; align-items: center; }
.tool-hero-text { min-width: 0; max-width: 780px; }
.tool-hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.tool-hero-cta .btn svg { width: 18px; height: 18px; }
.tool-hero-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; justify-self: end; align-self: center; width: 100%; }
.tool-hero-facts li { padding: 16px 18px; min-height: 118px; align-content: start; }
.tool-hero-facts li { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 12px 14px; display: grid; gap: 3px; min-width: 0; }
.tool-hero-facts b { font-family: var(--display); font-size: 1.3rem; color: var(--yellow); letter-spacing: .01em; line-height: 1.1; overflow-wrap: anywhere; }
.tool-hero-facts span { color: #c9ced6; font-size: .8rem; line-height: 1.35; }
@media (max-width: 960px) { .tool-hero-in { grid-template-columns: 1fr; } .tool-hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.tool-band { margin: 18px 0 6px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 22px 24px; border-radius: 20px; color: #fff;
  background: radial-gradient(120% 140% at 0% 0%, #2b3039 0%, var(--asphalt) 60%); border: 1px solid #2b3039; position: relative; overflow: hidden; }
.tool-band::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 10px; background: repeating-linear-gradient(-45deg, var(--yellow) 0 10px, var(--asphalt) 10px 20px); }
.tool-band-copy { display: grid; gap: 6px; justify-items: start; }
.tool-band-copy b { font-size: 1.35rem; font-weight: 800; line-height: 1.2; }
.tool-band-copy p { margin: 0; color: #c9ced6; font-size: .92rem; }
.tool-band-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .9rem; color: #e3e6ea; }
.tool-band-steps li { display: flex; align-items: center; gap: 10px; }
.tool-band-steps li b { width: 26px; height: 26px; border-radius: 50%; background: var(--yellow); color: var(--asphalt); display: grid; place-items: center; font-weight: 800; flex: none; }
.tool-band .btn { margin-right: 12px; white-space: nowrap; }
@media (max-width: 960px) { .tool-band { grid-template-columns: 1fr; } .tool-band .btn { justify-self: start; } }

.tool-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 40px; align-items: start; padding: 34px 0 56px; }
.tool-main { min-width: 0; max-width: 780px; }
.tool-side { position: sticky; top: calc(var(--hdr, 80px) + 16px); display: grid; gap: 14px; max-height: calc(100vh - var(--hdr, 80px) - 28px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 2px 4px 8px 2px; }
@media (max-width: 1060px) { .tool-layout { grid-template-columns: minmax(0, 1fr); } .tool-side { position: static; max-height: none; overflow: visible; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } .side-toc { display: none; } }
.side-card { background: var(--white); border: 1px solid var(--concrete-2); border-radius: 18px; padding: 18px; display: grid; gap: 10px; align-content: start; box-shadow: 0 1px 2px rgba(15,17,21,.04); }
.side-card > b, .side-h { font-weight: 800; font-size: 1.02rem; line-height: 1.25; color: var(--ink); }
.side-h { font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--steel); }
.side-card p { margin: 0; color: var(--steel); font-size: .86rem; line-height: 1.45; }
.side-card small { color: var(--steel); font-size: .76rem; }
.side-ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: .86rem; color: var(--ink); }
.side-ticks li { position: relative; padding-left: 24px; line-height: 1.35; }
.side-ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 17px; height: 17px; border-radius: 50%; background: #dcfce7; color: #15803d; font-size: .7rem; font-weight: 900; display: grid; place-items: center; }
.side-join { background: linear-gradient(180deg, #fffbea 0%, #fff 70%); border-color: #f5d76e; justify-items: stretch; }
.side-join .tw-gate-free, .side-join > b { justify-self: start; }
.side-join.is-member { background: linear-gradient(180deg, #f0fdf4 0%, #fff 70%); border-color: #86efac; }
.side-join .tw-link { justify-self: start; font-size: .84rem; }
.side-toc ol { margin: 0; padding: 0 0 0 18px; display: grid; gap: 6px; font-size: .88rem; }
.side-toc a { color: var(--ink); } .side-toc a:hover { color: var(--orange); }
.side-news input { height: 44px; padding: 0 12px; border: 1.5px solid var(--concrete-2); border-radius: 10px; font: inherit; width: 100%; min-width: 0; }
.side-news input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,106,0,.18); }
.side-msg { padding: 8px 10px; border-radius: 9px; background: #fef2f2; color: #991b1b !important; font-weight: 600; }
.side-msg.ok { background: #f0fdf4; color: #166534 !important; }
.side-trial { background: var(--asphalt); border-color: var(--asphalt); color: #fff; }
.side-trial > b { color: #fff; font-size: 1.15rem; }
.side-trial .side-ticks li { color: #e3e6ea; } .side-trial .side-ticks li::before { background: rgba(34,197,94,.25); color: #86efac; }
.side-badge { justify-self: start; padding: 3px 9px; border-radius: 99px; background: rgba(255,194,14,.16); color: var(--yellow); font-size: .68rem; font-weight: 800; letter-spacing: .07em; }
.side-tools ul { list-style: none; margin: 0; padding: 0; display: grid; }
.side-tools li a { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--concrete); color: var(--ink); font-size: .88rem; font-weight: 600; }
.side-tools li a small { color: var(--steel); font-weight: 500; white-space: nowrap; }
.side-tools li a:hover span { color: var(--orange); }
.side-all { font-weight: 700; color: #b45309; font-size: .88rem; }
.side-app { text-decoration: none; background: linear-gradient(135deg, #1d2026, #2b3039); border-color: #2b3039; }
.side-app b { color: #fff; } .side-app span { color: #c9ced6; font-size: .84rem; } .side-app em { font-style: normal; color: var(--yellow); font-weight: 700; font-size: .86rem; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.tool-inline-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 30px 0; padding: 18px 20px; border-radius: 16px; background: #fffbea; border: 1px solid #f5d76e; }
.tool-inline-cta b { display: block; font-size: 1.02rem; } .tool-inline-cta p { margin: 2px 0 0; color: var(--steel); font-size: .9rem; }
.tool-card-all { background: var(--asphalt); color: #fff; border-color: var(--asphalt); } .tool-card-all .tc-cat { color: var(--yellow); } .tool-card-all span:last-child { color: #c9ced6; }

.tool-joinbar { display: none; }
@media (max-width: 760px) {
  .tool-joinbar { display: flex; position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 40; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 10px 10px 16px; border-radius: 16px; background: var(--asphalt); color: #fff; box-shadow: 0 14px 34px rgba(15,17,21,.4); font-size: .88rem; }
  .tool-joinbar[hidden] { display: none; }
  .tool-joinbar b { color: var(--yellow); }
  body.tool-page { padding-bottom: 76px; }
}
/* countries: hub grid, "this tool in other countries", and the in-tool country picker (world.js) */
.tools-countries > p { margin: 0 0 14px; color: var(--steel); }
.country-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.country-card { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--white); border: 1px solid var(--concrete-2); color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.country-card:hover { border-color: var(--asphalt); transform: translateY(-1px); }
.cc-flag { grid-row: 1 / span 2; font-size: 1.7rem; line-height: 1; }
.country-card b { font-weight: 800; font-size: .95rem; }
.country-card small { color: var(--steel); font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tool-elsewhere { padding-bottom: 0; }
.tw-cp { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.tw-cp label { display: grid; gap: 5px; font-weight: 700; font-size: .86rem; flex: 1 1 200px; min-width: 0; }
.tw-cp select { height: 44px; padding: 0 10px; border: 1.5px solid var(--concrete-2); border-radius: 10px; font: inherit; font-weight: 600; background: var(--white); width: 100%; }
.tw-cp select:disabled { background: var(--concrete); color: var(--ink); opacity: 1; }
.tw-cp-other { font-size: .84rem; font-weight: 700; color: #b45309; padding-bottom: 12px; }
[dir="rtl"] .tool-band::after { right: auto; left: 0; } [dir="rtl"] .side-ticks li { padding-left: 0; padding-right: 24px; } [dir="rtl"] .side-ticks li::before { left: auto; right: 0; }
/* shared extras the tools use */
.tw-meter.warn i { background: var(--orange); }
.btn-line { border: 1.5px solid var(--asphalt); background: var(--white); color: var(--asphalt); }
.btn-line:hover { background: var(--asphalt); color: var(--yellow); }
.tool-in input[type="datetime-local"], .tool-in input[type="month"], .tool-in input[type="week"] { width: 100%; min-width: 0; height: 44px; padding: 0 12px; border: 1.5px solid var(--concrete-2); border-radius: 10px; background: var(--white); font: inherit; font-weight: 600; color: var(--ink); }
@media print { #tw-print .tw-keep, #tw-print .tw-keep * { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* client-facing printouts (quotes, dockets): slim brand line, the document's own header leads */
@media print { #tw-print.twp-small .twp-head { border-bottom-width: 1px; padding-bottom: 4px; margin-bottom: 10px; } #tw-print.twp-small .twp-head b { font-size: 9pt; } #tw-print.twp-small .twp-meta { display: none; } }
.tool-out { grid-template-columns: minmax(0, 1fr); }
.tw-actions button, .out-actions button { min-height: 44px; }
/* hero call to action: split card, yellow = use the tool, white = free membership (+ 100% FREE badge) */
.hero-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-width: 600px; margin-top: 22px; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 0 -4px rgba(0,0,0,.35); }
.hero-split > a, .hero-split > button { display: grid; gap: 4px; align-content: center; padding: 16px 20px; min-height: 86px; text-align: left; border: 0; font: inherit; cursor: pointer; text-decoration: none; transition: filter .15s; }
.hero-split > a:hover, .hero-split > button:hover { filter: brightness(.96); }
.hero-split small { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .82rem; font-weight: 600; }
.hero-split b { display: inline-flex; align-items: center; gap: 8px; font-size: 1.12rem; font-weight: 800; line-height: 1.2; }
.hero-split svg { width: 20px; height: 20px; flex: none; }
.hs-go { background: var(--yellow); color: var(--asphalt); }
.hs-go small { color: rgba(21,23,27,.72); }
.hs-join { background: #fff; color: var(--asphalt); }
.hs-label { color: #15803d; }
.hs-free { padding: 2px 8px; border-radius: 99px; background: #dcfce7; color: #166534; font-size: .68rem; font-weight: 800; letter-spacing: .06em; }
.hs-on { display: none !important; color: #15803d; }
.hero-split.is-member .hs-off { display: none !important; } .hero-split.is-member .hs-on { display: inline-flex !important; }
.hero-split.is-member .hs-free { display: none; }
.hs-note { margin: 12px 0 0; color: #c9ced6; font-size: .88rem; }
.hero-split.is-member ~ .hs-note { display: none; }
@media (max-width: 520px) { .hero-split { grid-template-columns: 1fr; } .hero-split > a, .hero-split > button { min-height: 74px; } }
[dir="rtl"] .hero-split > a, [dir="rtl"] .hero-split > button { text-align: right; } [dir="rtl"] .hero-split svg { transform: scaleX(-1); }
/* hero facts: more room between the four boxes, pushed to the right edge */
.tool-hero-facts { gap: 24px 22px; max-width: 500px; justify-self: end; margin-right: 0; }
/* hero facts, design 1 "warning signs": hazard stripe on top, yellow diamond sign, short text */
.tool-hero-facts li { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; min-height: 0; padding: 22px 18px 16px; background: #1d2026; border: 1px solid #2b3039; border-radius: 16px; overflow: hidden; }
.tool-hero-facts li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: repeating-linear-gradient(-45deg, var(--yellow) 0 11px, #15171b 11px 22px); }
.hf-sign { width: 46px; height: 46px; display: grid; place-items: center; }
.hf-sign > span { width: 32px; height: 32px; background: var(--yellow); transform: rotate(45deg); border-radius: 3px; display: grid; place-items: center; box-shadow: 0 0 0 2px #15171b, 0 0 0 4px var(--yellow); }
.hf-sign > span > * , .hf-sign > span { font-family: var(--display); font-weight: 800; font-size: .95rem; color: #15171b; line-height: 1; }
.hf-sign > span > svg, .hf-sign > span > i { transform: rotate(-45deg); }
.hf-sign > span { overflow: visible; }
.hf-sign > span:not(:has(svg)):not(:has(i)) { font-size: .82rem; }
.hf-sign svg { width: 17px; height: 17px; }
.hf-flag { font-style: normal; font-size: 1.05rem; }
.tool-hero-facts li b { display: block; font-family: var(--body); font-size: 1.12rem; font-weight: 800; color: var(--yellow); letter-spacing: 0; line-height: 1.2; }
.tool-hero-facts li div > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: #d6dae0; font-size: .88rem; line-height: 1.35; margin-top: 2px; }
/* the diamond is drawn behind the content, so numbers and icons stay upright */
.hf-sign > span { position: relative; transform: none; background: none; box-shadow: none; width: 46px; height: 46px; z-index: 0; }
.hf-sign > span::before { content: ""; position: absolute; inset: 7px; background: var(--yellow); transform: rotate(45deg); border-radius: 3px; box-shadow: 0 0 0 2px #15171b, 0 0 0 4px var(--yellow); z-index: -1; }
.hf-sign > span > svg, .hf-sign > span > i { transform: none; }

/* hero facts: wider gap between the two rows (top pair up, bottom pair down) and between the two columns */
.tool-hero-facts { row-gap: 40px; column-gap: 32px; max-width: 520px; }