/* Tunni tools (draws, secret santa, pool). Same design tokens as the blog and the calculators. Rules inside
   .entry-content repeat !important where the theme's article typography would otherwise win. */
.tunni-tool, .tfp {
  --tf-brand: var(--brand, #5a2ed3);
  --tf-brand-hover: var(--brand-hover, #4b18b8);
  --tf-brand-soft: var(--brand-soft, #f7f5ff);
  --tf-brand-line: var(--brand-line, #ddd7f9);
  --tf-brand-text: var(--brand-text, #5a2ed3);
  --tf-ink: var(--ink, #17171d);
  --tf-ink-2: var(--ink-2, #53535f);
  --tf-muted: var(--muted, #6d6d7a);
  --tf-line: var(--line, #e9e9ed);
  --tf-line-soft: var(--line-soft, #f0f0f3);
  --tf-control: var(--control, #e4e5ea);
  --tf-chip: var(--chip, #f4f4f7);
  --tf-surface: var(--surface, #fafafb);
  --tf-warn-bg: var(--warning-bg, #fff6e6);
  --tf-warn: var(--warning-text, #9a5b06);
  --tf-danger: var(--danger-text, #c43d3d);
  --tf-display: var(--font-display, 'Manrope', Arial, sans-serif);
  --tf-text: var(--font-text, 'Inter', Arial, sans-serif);
  --tf-ease: cubic-bezier(.22, 1, .36, 1);
}
.tunni-tool [hidden] { display: none !important; }
.tunni-tool { margin: 32px 0; font-family: var(--tf-text); color: var(--tf-ink); }
.tunni-tool__loading { padding: 28px; border: 1px dashed var(--tf-control); border-radius: 20px; color: var(--tf-muted); font: 500 14px/20px var(--tf-text); }
.tf-off { padding: 16px 20px; border-radius: 16px; background: var(--tf-chip); color: var(--tf-ink-2); font: 400 15px/24px var(--tf-text); }

.tf-card { border: 1px solid var(--tf-line); border-radius: 20px; background: #fff; overflow: hidden; }
.tf-form { padding: 28px; outline: none; }
.tf-fields { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 640px) { .tf-fields { grid-template-columns: 1fr 1fr; } .tf-field--wide { grid-column: 1 / -1; } }
.tf-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.tf-field__label { padding: 0; font: 500 14px/20px var(--tf-text); color: var(--tf-ink); }
.tf-field__opt { color: var(--tf-muted); font-weight: 400; }
.tf-stack { display: flex; flex-direction: column; gap: 10px; }
.tf-fields > .tf-field--wide:has(> .tf-counter) { margin-top: -12px; }

/* html body: outranks the blog's custom CSS (.page .entry-content p { margin-bottom: 1.25em !important }). */
html body .entry-content .tunni-tool p, .tunni-tool p { margin: 0 !important; }
.entry-content .tunni-tool .tf-field__help, .tf-field__help { font: 400 13px/18px var(--tf-text) !important; color: var(--tf-muted); }
.entry-content .tunni-tool .tf-field__error, .tf-field__error { font: 500 13px/18px var(--tf-text) !important; color: var(--tf-danger); }
.tf-field__error::before { content: "⚠ "; }
.entry-content .tunni-tool .tf-status, .tf-status { min-height: 20px; margin-top: 12px !important; font: 500 13px/18px var(--tf-text) !important; color: var(--tf-muted); }
.entry-content .tunni-tool .tf-text, .tf-text { font: 400 15px/24px var(--tf-text) !important; color: var(--tf-ink-2); }
.entry-content .tunni-tool .tf-section, .tf-section { margin: 24px 0 12px !important; font: 600 16px/24px var(--tf-display) !important; color: var(--tf-ink); }
.entry-content .tunni-tool .tf-counter, .tf-counter { font: 500 13px/18px var(--tf-text) !important; color: var(--tf-muted); }
.entry-content .tunni-tool .tf-note, .tf-note { margin-top: 12px !important; padding: 12px 16px; border-radius: 12px; background: var(--tf-surface); color: var(--tf-ink-2); font: 400 14px/20px var(--tf-text) !important; }
.tf-note--warning { background: var(--tf-warn-bg) !important; color: var(--tf-warn) !important; }
.entry-content .tunni-tool .tf-foot, .tf-foot { padding: 16px 28px; border-top: 1px solid var(--tf-line); background: var(--tf-surface); font: 400 13px/18px var(--tf-text) !important; color: var(--tf-muted); }
.entry-content .tunni-tool .tf-progress, .tf-progress { margin-top: 10px !important; font: 500 14px/20px var(--tf-text) !important; color: var(--tf-ink-2); }

.tunni-tool input[type=text], .tunni-tool input[type=number], .tunni-tool input[type=email], .tunni-tool input[type=date], .tunni-tool select, .tunni-tool textarea {
  box-sizing: border-box; width: 100%; min-height: 48px; margin: 0; padding: 12px 16px;
  border: 1px solid var(--tf-control); border-radius: 12px; background: #fff; color: var(--tf-ink);
  font: 400 16px/22px var(--tf-text); font-variant-numeric: tabular-nums;
  transition: border-color .2s var(--tf-ease), box-shadow .2s var(--tf-ease);
}
.tunni-tool select { appearance: auto; padding-top: 0; padding-bottom: 0; }
.tunni-tool textarea { resize: vertical; min-height: 120px; }
.tunni-tool input::placeholder, .tunni-tool textarea::placeholder { color: var(--tf-muted); }
.tunni-tool input:focus, .tunni-tool select:focus, .tunni-tool textarea:focus { outline: none; border-color: var(--tf-brand); box-shadow: 0 0 0 4px rgba(90, 46, 211, .14); }
.tunni-tool [aria-invalid="true"] { border-color: var(--danger, #d93f42) !important; }

.tf-radio { display: flex; flex-wrap: wrap; gap: 8px; }
.tf-radio__opt { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid var(--tf-control); border-radius: 9999px; cursor: pointer; font: 500 15px/20px var(--tf-text); }
.tf-radio__opt input { width: 18px; height: 18px; margin: 0; accent-color: var(--tf-brand); }
.tf-radio__opt:has(input:checked) { background: var(--tf-brand-soft); border-color: var(--tf-brand-line); color: var(--tf-brand-text); }
.tf-radio__opt:has(input:focus-visible) { outline: 2px solid var(--tf-brand); outline-offset: 3px; }
.tf-check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font: 500 15px/20px var(--tf-text); }
.tf-check input { width: 20px; height: 20px; margin: 0; accent-color: var(--tf-brand); }
.tf-check input:focus-visible { outline: 2px solid var(--tf-brand); outline-offset: 3px; }
.tf-check--sm { min-height: 44px; font-size: 13px; color: var(--tf-ink-2); }

.tf-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tf-actions--end { justify-content: flex-end; }
.tf-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border: 1px solid transparent; border-radius: 10px; font: 600 15px/20px var(--tf-display); text-decoration: none !important; cursor: pointer; transition: background-color .2s var(--tf-ease), transform .2s var(--tf-ease); }
.tf-btn:active { transform: scale(.98); }
.tf-btn:focus-visible { outline: 2px solid var(--tf-brand); outline-offset: 3px; }
.tf-btn[disabled] { opacity: .55; cursor: not-allowed; }
/* :focus is listed so the theme's button:focus grey never replaces the brand colours after a click. */
.tf-btn--primary, .tf-btn--primary:focus { background: var(--tf-brand); color: #fff !important; }
.tf-btn--primary:hover { background: var(--tf-brand-hover); }
.tf-btn--secondary, .tf-btn--secondary:focus { background: var(--tf-chip); color: var(--tf-ink) !important; }
.tf-btn--secondary:hover { background: var(--tf-control); }
.tf-btn--link, .tf-btn--link:focus { min-height: 44px; padding: 0 4px; background: none; color: var(--tf-brand-text) !important; text-decoration: underline !important; text-underline-offset: 3px; }
.tf-btn--icon, .tf-btn--icon:focus { flex: 0 0 44px; width: 44px; padding: 0; background: var(--tf-chip); color: var(--tf-ink-2); font-size: 22px; }
.tf-btn--icon:hover { background: var(--tf-control); }

.tf-result { padding: 28px; border-top: 1px solid var(--tf-line); background: var(--tf-surface); }
.entry-content .tunni-tool .tf-result__title, .tf-result__title { font: 600 13px/18px var(--tf-text) !important; letter-spacing: .06em; text-transform: uppercase; color: var(--tf-muted); }
.entry-content .tunni-tool .tf-winner, .tf-winner { margin: 12px 0 0 !important; font: 700 40px/48px var(--tf-display) !important; letter-spacing: -0.02em; color: var(--tf-brand-text); overflow-wrap: anywhere; }
.tf-winner.is-rolling { color: var(--tf-muted); }
.tf-winner--num { font-variant-numeric: tabular-nums; }
.entry-content .tunni-tool .tf-list, .tf-list { margin: 12px 0 0 !important; padding-left: 28px !important; font: 500 17px/28px var(--tf-text) !important; columns: 2 220px; column-gap: 32px; }
.entry-content .tunni-tool .tf-list li { margin: 0 !important; break-inside: avoid; }
.entry-content .tunni-tool .tf-chips, .tf-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0 !important; padding: 0 !important; list-style: none !important; }
.entry-content .tunni-tool .tf-chips li { margin: 0 !important; padding: 6px 14px; border-radius: 9999px; background: #fff; border: 1px solid var(--tf-line); font: 600 16px/24px var(--tf-display); font-variant-numeric: tabular-nums; }
.entry-content .tunni-tool .tf-stamp, .tf-stamp { margin-top: 12px !important; font: 500 13px/18px var(--tf-text) !important; color: var(--tf-muted); }

.tf-teams { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 12px; }
.tf-team { padding: 16px 18px; border: 1px solid var(--tf-line); border-radius: 16px; background: #fff; }
.entry-content .tunni-tool .tf-team__title, .tf-team__title { font: 700 16px/24px var(--tf-display) !important; color: var(--tf-ink); }
.tf-team__n { font: 500 13px/18px var(--tf-text); color: var(--tf-muted); }
.entry-content .tunni-tool .tf-team ul { margin: 8px 0 0 !important; padding-left: 18px !important; }
.entry-content .tunni-tool .tf-team li { margin: 0 !important; font: 400 15px/24px var(--tf-text) !important; }

.tf-more { margin-top: 20px; border-top: 1px solid var(--tf-line); padding-top: 4px; }
.tf-more > summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; list-style: none; font: 600 15px/20px var(--tf-display); color: var(--tf-brand-text); }
.tf-more > summary::-webkit-details-marker { display: none; }
.tf-more > summary::after { content: ""; margin-left: 8px; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.tf-more[open] > summary::after { transform: rotate(-135deg); }
.tf-more > summary:focus-visible { outline: 2px solid var(--tf-brand); outline-offset: 3px; border-radius: 8px; }
.tf-more > :not(summary) + * { margin-top: 12px; }

.entry-content .tunni-tool .tf-people, .tf-people, .entry-content .tunni-tool .tf-pool, .tf-pool, .entry-content .tunni-tool .tf-games, .tf-games { display: flex; flex-direction: column; gap: 8px; margin: 0 !important; padding: 0 !important; list-style: none !important; }
.entry-content .tunni-tool .tf-people li, .entry-content .tunni-tool .tf-pool li, .entry-content .tunni-tool .tf-games li { margin: 0 !important; }
.tf-people__row { display: flex; gap: 8px; }
.tf-paste { margin-top: 12px; }
.tf-restr__add { display: grid; grid-template-columns: 1fr; gap: 8px; align-items: center; }
@media (min-width: 640px) { .tf-restr__add { grid-template-columns: 1fr auto 1fr; } }
.tf-restr__mid { font: 500 14px/20px var(--tf-text); color: var(--tf-ink-2); text-align: center; }
.entry-content .tunni-tool .tf-restr, .tf-restr { margin: 12px 0 0 !important; padding: 0 !important; list-style: none !important; }
.entry-content .tunni-tool .tf-restr li { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 !important; border-bottom: 1px solid var(--tf-line-soft); font: 400 15px/22px var(--tf-text); }
.tf-restr li.is-stale { color: var(--tf-muted); }

.entry-content .tunni-tool .tf-links, .tf-links { margin: 16px 0 0 !important; padding: 0 !important; list-style: none !important; border-top: 1px solid var(--tf-line-soft); }
.entry-content .tunni-tool .tf-link-row, .tf-link-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 0 !important; padding: 10px 0; border-bottom: 1px solid var(--tf-line-soft); }
.tf-link-row__name { font: 600 16px/24px var(--tf-display); overflow-wrap: anywhere; }
.tf-link-row__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tf-row-status { flex-basis: 100%; min-height: 0; font: 500 12px/16px var(--tf-text); color: var(--tf-muted); }
.tf-row-status:empty { display: none; }
.tf-turnstile { margin-top: 12px; min-height: 0; }

.tf-card--ticket { border-color: var(--tf-brand-line); }
.entry-content .tunni-tool .tf-hello, .tf-hello { font: 700 28px/36px var(--tf-display) !important; letter-spacing: -0.015em; color: var(--tf-ink); overflow-wrap: anywhere; }
.tf-reveal { margin-top: 20px; padding: 24px; border-radius: 16px; background: var(--tf-brand-soft); text-align: center; animation: tf-pop .5s var(--tf-ease); }
.entry-content .tunni-tool .tf-reveal__label, .tf-reveal__label { font: 600 13px/18px var(--tf-text) !important; letter-spacing: .06em; text-transform: uppercase; color: var(--tf-ink-2); }
.entry-content .tunni-tool .tf-reveal__name, .tf-reveal__name { margin-top: 6px !important; font: 700 36px/44px var(--tf-display) !important; color: var(--tf-brand-text); overflow-wrap: anywhere; }
@keyframes tf-pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.entry-content .tunni-tool .tf-details, .tf-details { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 20px 0 0 !important; font: 400 15px/22px var(--tf-text); }
.entry-content .tunni-tool .tf-details dt { margin: 0 !important; color: var(--tf-muted); font-weight: 500; }
.entry-content .tunni-tool .tf-details dd { margin: 0 !important; color: var(--tf-ink); overflow-wrap: anywhere; white-space: pre-line; }
.entry-content .tunni-tool .tf-safety, .tf-safety { margin-top: 20px !important; padding: 12px 16px; border-radius: 12px; background: var(--tf-chip); font: 500 13px/18px var(--tf-text) !important; color: var(--tf-ink-2); }

.tf-steps { display: flex; gap: 4px; padding: 8px; overflow-x: auto; border-bottom: 1px solid var(--tf-line); background: var(--tf-surface); }
.tf-btn--step, .tf-btn--step:focus { flex: 0 0 auto; background: none; color: var(--tf-ink-2); font-size: 14px; padding: 0 14px; }
.tf-btn--step.is-current { background: #fff; color: var(--tf-brand-text); box-shadow: 0 1px 2px rgba(23, 23, 29, .08); }
.tf-pool__row { display: grid; grid-template-columns: 1fr 44px; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--tf-line-soft); }
.tf-pool__row > input[type=text] { grid-column: 1 / -1; }
.tf-pool__q { display: flex; align-items: center; gap: 8px; font: 500 13px/18px var(--tf-text); color: var(--tf-muted); }
.tf-pool__q input { width: 88px !important; }
.tf-pool__row .tf-check { grid-column: 1; }
.tf-pool__row .tf-btn--icon { grid-column: 2; grid-row: 2 / span 2; }
@media (min-width: 640px) {
  .tf-pool__row { grid-template-columns: 1fr auto auto 44px; }
  .tf-pool__row > input[type=text] { grid-column: auto; }
  .tf-pool__row .tf-check, .tf-pool__row .tf-btn--icon { grid-column: auto; grid-row: auto; }
}
.tf-games__row { display: grid; grid-template-columns: 1fr 44px; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--tf-line-soft); }
.tf-games__n { grid-column: 1 / -1; font: 600 14px/20px var(--tf-display); }
.tf-games__row select { grid-column: 1 / -1; }
.tf-games__row .tf-field__error { grid-column: 1 / -1; }
@media (min-width: 640px) { .tf-games__row { grid-template-columns: 70px 220px 1fr 44px; } .tf-games__n, .tf-games__row select { grid-column: auto; } }
.tf-totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-top: 20px; }
.tf-stat { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--tf-line); border-radius: 14px; background: var(--tf-surface); }
.tf-stat__label { font: 500 13px/18px var(--tf-text); color: var(--tf-ink-2); }
.tf-stat__value { font: 700 20px/28px var(--tf-display); font-variant-numeric: tabular-nums; color: var(--tf-ink); }
.tf-stat__note { font: 400 12px/16px var(--tf-text); color: var(--tf-muted); }
.entry-content .tunni-tool .tf-pre, .tf-pre { margin: 0 !important; padding: 16px; border-radius: 12px; background: var(--tf-surface); border: 1px solid var(--tf-line); white-space: pre-wrap; overflow-wrap: anywhere; font: 400 14px/22px var(--tf-text) !important; color: var(--tf-ink); }
.entry-content .tunni-tool .tf-hits, .tf-hits, .entry-content .tunni-tool .tf-split, .tf-split { margin: 16px 0 0 !important; padding: 0 !important; list-style: none !important; }
.entry-content .tunni-tool .tf-hits li, .entry-content .tunni-tool .tf-split li { display: flex; justify-content: space-between; gap: 12px; margin: 0 !important; padding: 8px 0; border-bottom: 1px solid var(--tf-line-soft); font: 400 15px/22px var(--tf-text); }
.entry-content .tunni-tool .tf-hits li { justify-content: flex-start; flex-wrap: wrap; }

.tf-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 639px) {
  .tf-form, .tf-result { padding: 20px; }
  .tf-foot { padding: 14px 20px; }
  .tf-card { border-radius: 16px; }
  .tf-actions > .tf-btn--primary, .tf-actions > .tf-btn--secondary { flex: 1 1 auto; }
  .entry-content .tunni-tool .tf-winner, .tf-winner { font-size: 32px !important; line-height: 40px !important; }
}
@media (prefers-reduced-motion: reduce) { .tunni-tool *, .tunni-tool *::after { transition: none !important; animation: none !important; } }
@media print { .tf-actions, .tf-status { display: none !important; } }

/* =====================================================================================
   Pages: /ferramentas/ and its children. Layout, hero, index, steps, FAQ and cards follow the calculator
   pages (tunni-calculadoras), so both families read as one product.
   ===================================================================================== */
body.tfp-page { overflow-x: clip; }
html body.tfp-page .site-main { margin-top: 0 !important; }
body.tfp-page .entry-content { max-width: none !important; }
body.tfp-page.separate-containers .inside-article { padding: 0 40px 64px; }
@media (max-width: 767px) { body.tfp-page.separate-containers .inside-article { padding: 0 16px 48px; } }
.tfp { color: var(--tf-ink); font-family: var(--tf-text); }

.tfp-hero { position: relative; isolation: isolate; margin: 0 calc(50% - 50vw); padding: 40px 0 168px; color: #fff; overflow: hidden;
  background:
    radial-gradient(60% 80% at 85% 10%, rgba(196,184,249,.35), rgba(196,184,249,0) 60%),
    radial-gradient(50% 70% at 0% 100%, rgba(26,6,76,.55), rgba(26,6,76,0) 70%),
    linear-gradient(135deg, #5a2ed3 0%, #4718b0 48%, #2a0b78 100%); }
.tfp-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.4) 70%, transparent 100%); -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.4) 70%, transparent 100%); }
.tfp-hero--hub { padding-bottom: 72px; text-align: center; }
.tfp-hero__inner { box-sizing: border-box; max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.tfp-hero__row { display: flex; align-items: flex-start; gap: 24px; }
.tfp-hero__text { min-width: 0; max-width: 820px; }
.tfp-hero__tile { display: inline-grid; place-items: center; flex: none; width: 64px; height: 64px; border-radius: 16px; background: #fff; color: var(--tf-brand); box-shadow: 0 12px 28px -12px rgba(10,4,40,.5); }
html body.tfp-page .entry-content .tfp-crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 28px !important; padding: 0 !important; list-style: none; }
.tfp-hero--hub .tfp-crumbs ol { justify-content: center; }
html body.tfp-page .entry-content .tfp-crumbs li { display: inline-flex; gap: 6px; margin: 0 !important; font: 500 13px/18px var(--tf-text) !important; color: rgba(255,255,255,.78); }
html body.tfp-page .entry-content .tfp-crumbs li + li::before { content: "/"; color: rgba(255,255,255,.45); }
html body.tfp-page .entry-content .tfp-crumbs a { color: rgba(255,255,255,.78); text-decoration: none; }
html body.tfp-page .entry-content .tfp-crumbs a:hover { color: #fff; text-decoration: underline; }
html body.tfp-page .entry-content .tfp-crumbs [aria-current] { color: #fff; }
html body.tfp-page .entry-content .tfp-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px !important; padding: 6px 14px 6px 12px; border: 1px solid rgba(255,255,255,.24); border-radius: 9999px; background: rgba(255,255,255,.12); backdrop-filter: blur(4px); font: 500 13px/18px var(--tf-text) !important; color: #fff; }
.tfp-eyebrow__dot { width: 6px; height: 6px; border-radius: 50%; background: #c4b8f9; }
html body.tfp-page .entry-content .tfp-hero__title { margin: 0 !important; max-width: 820px; font: 600 56px/64px var(--tf-display) !important; letter-spacing: -0.025em !important; color: #fff; text-wrap: balance; }
html body.tfp-page .entry-content .tfp-hero__lead { margin: 16px 0 0 !important; max-width: 640px; font: 400 18px/28px var(--tf-text) !important; color: rgba(255,255,255,.86); text-wrap: pretty; }
html body.tfp-page .entry-content .tfp-hero--hub .tfp-hero__title, html body.tfp-page .entry-content .tfp-hero--hub .tfp-hero__lead { margin-left: auto !important; margin-right: auto !important; }
html body.tfp-page .entry-content .tfp-trust { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 28px 0 0 !important; padding: 0 !important; list-style: none; }
.tfp-hero--hub .tfp-trust { justify-content: center; }
html body.tfp-page .entry-content .tfp-trust li { display: inline-flex; align-items: center; gap: 8px; margin: 0 !important; font: 500 14px/20px var(--tf-text) !important; color: #fff; }
.tfp-trust svg { color: #c4b8f9; }
.tfp-hero a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* The tool card spans the content width and overlaps the hero, like the calculator card. */
.tfp-tool { position: relative; z-index: 2; margin-top: -128px; }
.tfp-tool .tunni-tool { margin: 0; }
/* Until the module mounts, the slot keeps the card's final height and look, so the page below does not jump
   (layout shift). Heights measured per tool at 390, 768 and 1280px. */
.tfp-tool [data-tunni-tool="nomes"] { --tf-reserve: 673px; }
.tfp-tool [data-tunni-tool="numeros"] { --tf-reserve: 578px; }
.tfp-tool [data-tunni-tool="equipes"] { --tf-reserve: 667px; }
.tfp-tool [data-tunni-tool="amigo-secreto"] { --tf-reserve: 668px; }
.tfp-tool [data-tunni-tool="bolao"] { --tf-reserve: 1008px; }
@media (min-width: 768px) {
  .tfp-tool [data-tunni-tool="nomes"] { --tf-reserve: 601px; }
  .tfp-tool [data-tunni-tool="numeros"] { --tf-reserve: 482px; }
  .tfp-tool [data-tunni-tool="equipes"] { --tf-reserve: 631px; }
  .tfp-tool [data-tunni-tool="amigo-secreto"] { --tf-reserve: 632px; }
  .tfp-tool [data-tunni-tool="bolao"] { --tf-reserve: 720px; }
}
@media (min-width: 1024px) {
  .tfp-tool [data-tunni-tool="nomes"] { --tf-reserve: 635px; }
  .tfp-tool [data-tunni-tool="numeros"] { --tf-reserve: 516px; }
  .tfp-tool [data-tunni-tool="equipes"] { --tf-reserve: 699px; }
  .tfp-tool [data-tunni-tool="amigo-secreto"] { --tf-reserve: 648px; }
  .tfp-tool [data-tunni-tool="bolao"] { --tf-reserve: 736px; }
}
.tfp-tool .tunni-tool:not(.is-ready) { display: flex; min-height: var(--tf-reserve, 0px); }
.tfp-tool .tunni-tool:not(.is-ready) > .tunni-tool__loading { flex: 1; box-sizing: border-box; margin: 0 !important; padding: 36px; border: 0; border-radius: 24px; background: #fff; box-shadow: 0 30px 60px -28px rgba(26,6,76,.45), 0 2px 6px rgba(23,23,29,.04); }
@media (max-width: 639px) { .tfp-tool .tunni-tool:not(.is-ready) > .tunni-tool__loading { padding: 20px; border-radius: 16px; } }
.tfp-tool .tf-card { border-radius: 24px; box-shadow: 0 30px 60px -28px rgba(26,6,76,.45), 0 2px 6px rgba(23,23,29,.04); }
.tf-empty { display: none; }
.entry-content .tunni-tool .tf-empty__title, .tf-empty__title { font: 600 20px/28px var(--tf-display) !important; letter-spacing: -0.01em; color: var(--tf-ink); }
.entry-content .tunni-tool .tf-empty__text, .tf-empty__text { margin-top: 8px !important; font: 400 15px/24px var(--tf-text) !important; color: var(--tf-ink-2); }
.tf-empty__ghost { display: grid; gap: 14px; margin-top: 28px; padding: 24px; border: 1px dashed var(--tf-control); border-radius: 16px; background: #fff; }
.tf-empty__ghost span { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.tf-empty__ghost i, .tf-empty__ghost b { display: block; height: 10px; border-radius: 9999px; background: var(--tf-chip); }
.tf-empty__ghost i { width: 46%; }
.tf-empty__ghost b { width: 22%; }
.tf-empty__ghost span:first-child b { height: 16px; width: 34%; background: var(--tf-brand-soft); }
@media (min-width: 1024px) {
  .tfp-tool .tf-form { padding: 36px; }
  .tfp-tool .tf-card--split { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: stretch; }
  .tfp-tool .tf-card--split > .tf-form { grid-column: 1; grid-row: 1; }
  .tfp-tool .tf-card--split > .tf-empty, .tfp-tool .tf-card--split > .tf-result { grid-column: 2; grid-row: 1; padding: 36px; border-top: 0; border-left: 1px solid var(--tf-line); background: var(--tf-surface); }
  .tfp-tool .tf-card--split:has(> .tf-result[hidden]) > .tf-empty { display: block; }
  .tfp-tool .tf-card--split > .tf-empty > *, .tfp-tool .tf-card--split > .tf-result > :first-child { scroll-margin-top: 96px; }
  /* Multi-step tools (secret santa, pool) keep one column: 800px wide, centred in the card like the page text. */
  .tfp-tool .tf-card:not(.tf-card--split) > .tf-form { box-sizing: border-box; max-width: 872px; margin: 0 auto; }
  .tfp-tool .tf-card > .tf-steps { padding-inline: max(8px, calc((100% - 800px) / 2)); }
  .tfp-tool .tf-card > .tf-foot { padding-inline: max(28px, calc((100% - 800px) / 2)); }
  .tfp-tool .tf-card > .tf-note { margin-inline: max(28px, calc((100% - 800px) / 2)) !important; }
}
.tfp-hub { margin: 56px 0 0; }

/* Body: "Nesta página" index on the left, 800px reading column, as on the calculator pages (index hidden below 1024px, as there). */
.tfp-body { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: 72px; }
.tfp-toc { display: none; }
@media (min-width: 1024px) {
  .tfp-body { grid-template-columns: 220px minmax(0, 800px); justify-content: center; column-gap: 72px; margin-top: 96px; }
  .tfp-body > .tfp-sec { grid-column: 2; }
  .tfp-toc { display: block; grid-column: 1; grid-row: 1 / span 99; align-self: start; position: sticky; top: 96px; }
}
html body.tfp-page .entry-content .tfp-toc__title { margin: 0 0 12px !important; font: 600 12px/16px var(--tf-text) !important; letter-spacing: .08em; text-transform: uppercase; color: var(--tf-muted); }
html body.tfp-page .entry-content .tfp-toc ol { margin: 0 !important; padding: 0 !important; list-style: none; border-left: 1px solid var(--tf-line); }
html body.tfp-page .entry-content .tfp-toc li { margin: 0 !important; font: 500 14px/20px var(--tf-text) !important; }
html body.tfp-page .entry-content .tfp-toc a { display: block; margin-left: -1px; padding: 8px 0 8px 16px; border-left: 2px solid transparent; color: var(--tf-ink-2); text-decoration: none; transition: color .2s, border-color .2s; }
html body.tfp-page .entry-content .tfp-toc a:hover { color: var(--tf-ink); border-left-color: var(--gray-300, #d3d3db); }
html body.tfp-page .entry-content .tfp-toc a.is-active { color: var(--tf-brand-text); border-left-color: var(--tf-brand); }
html body.tfp-page .entry-content .tfp-toc a:focus-visible { outline: 2px solid var(--tf-brand); outline-offset: 2px; }

.tfp-sec { scroll-margin-top: 96px; }
.tfp-sec + .tfp-sec { margin-top: 56px; padding-top: 56px; border-top: 1px solid var(--tf-line); }
/* .page is repeated so these outrank the blog's custom CSS for page headings (html body.page .entry-content h2:not(...)). */
html body.tfp-page.page .entry-content .tfp-sec h2 { margin: 0 0 16px !important; scroll-margin-top: 96px; font: 600 32px/40px var(--tf-display) !important; letter-spacing: -0.02em !important; color: var(--tf-ink); text-wrap: balance; }
html body.tfp-page.page .entry-content .tfp-sec h3 { margin: 28px 0 8px !important; font: 600 20px/28px var(--tf-display) !important; color: var(--tf-ink); }
html body.tfp-page .entry-content .tfp-sec p, html body.tfp-page .entry-content .tfp-sec li { font: 400 17px/28px var(--tf-text) !important; color: var(--tf-ink-2); }
html body.tfp-page .entry-content .tfp-sec p { margin: 0 0 16px !important; }
html body.tfp-page .entry-content .tfp-sec strong { color: var(--tf-ink); font-weight: 600; }
html body.tfp-page .entry-content .tfp-sec a { color: var(--tf-brand-text); text-underline-offset: 3px; }
html body.tfp-page .entry-content ol.tfp-steps { counter-reset: tfp; display: grid; gap: 12px; margin: 24px 0 0 !important; padding: 0 !important; list-style: none; }
html body.tfp-page .entry-content ol.tfp-steps > li { counter-increment: tfp; position: relative; margin: 0 !important; padding: 20px 20px 20px 72px; border: 1px solid var(--tf-line-soft); border-radius: 16px; background: var(--tf-surface); }
html body.tfp-page .entry-content ol.tfp-steps > li::before { content: counter(tfp); position: absolute; left: 20px; top: 18px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--violet-100, #eeeafc); color: var(--tf-brand-text); font: 600 16px/1 var(--tf-display); }
html body.tfp-page .entry-content .tfp-uses { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 24px 0 0 !important; padding: 0 !important; list-style: none; }
@media (min-width: 640px) { html body.tfp-page .entry-content .tfp-uses { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
html body.tfp-page .entry-content .tfp-uses li { margin: 0 !important; padding: 20px; border: 1px solid var(--tf-line); border-radius: 16px; }

.tfp-faq { border-bottom: 1px solid var(--tf-line); }
.tfp-sec--faq h2 + .tfp-faq { border-top: 1px solid var(--tf-line); margin-top: 8px; }
.tfp-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; padding: 20px 0; cursor: pointer; list-style: none; }
.tfp-faq summary::-webkit-details-marker { display: none; }
.tfp-faq summary::after { content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--tf-chip) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16 11v10M11 16h10' stroke='%2317171d' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center/32px no-repeat; transition: transform .25s var(--tf-ease), background-color .2s; }
.tfp-faq[open] summary::after { transform: rotate(45deg); background-color: var(--violet-100, #eeeafc); }
.tfp-faq summary:hover::after { background-color: var(--tf-control); }
.tfp-faq summary:focus-visible { outline: 2px solid var(--tf-brand); outline-offset: 4px; border-radius: 8px; }
html body.tfp-page.page .entry-content .tfp-sec .tfp-faq h3 { margin: 0 !important; font: 600 18px/26px var(--tf-display) !important; letter-spacing: -0.01em !important; color: var(--tf-ink); }
.tfp-faq__a { padding: 0 48px 20px 0; }

/* Cards (hub and related block) use the calculator card: soft surface, white with a line on hover. */
html body.tfp-page .entry-content .tfp-cards { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 0 !important; padding: 0 !important; list-style: none; }
@media (min-width: 640px) { html body.tfp-page .entry-content .tfp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { html body.tfp-page .entry-content .tfp-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
html body.tfp-page .entry-content .tfp-card { margin: 0 !important; }
.tfp-card__link { box-sizing: border-box; display: flex; flex-direction: column; height: 100%; padding: 28px; border: 1px solid transparent; border-radius: 24px; background: var(--surface-hover, #f7f7f9); color: var(--tf-ink) !important; text-decoration: none !important; transition: transform .3s var(--tf-ease), border-color .3s, background-color .3s; }
.tfp-card__link:hover { transform: translateY(-4px); border-color: var(--tf-line); background: #fff; }
.tfp-card__link:focus-visible { outline: 2px solid var(--tf-brand); outline-offset: 3px; }
.tfp-card__tile, .tf-rel__tile { display: inline-grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--violet-100, #eeeafc); color: var(--tf-brand); }
.tfp-card__title { margin-top: 28px; font: 600 20px/28px var(--tf-display); letter-spacing: -0.01em; }
.tfp-card__draft { font: italic 400 13px/18px var(--tf-text); color: var(--tf-muted); }
.tfp-card__text { margin-top: 8px; font: 400 15px/24px var(--tf-text); color: var(--tf-ink-2); }
.tfp-card__cta, .tf-rel__cta { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 24px; font: 600 14px/20px var(--tf-display); color: var(--tf-ink); }
.tfp-card__link:hover .tfp-card__cta, a.tf-rel__card:hover .tf-rel__cta { color: var(--tf-brand-text); }
.tfp-card__cta svg, .tf-rel__cta svg { transition: transform .3s var(--tf-ease); }
.tfp-card__link:hover .tfp-card__cta svg, a.tf-rel__card:hover .tf-rel__cta svg { transform: translateX(3px); }

/* Related block: also used inside posts, where the article typography uses !important on p and headings. */
.tf-rel { margin: 96px auto 0; max-width: 1120px; }
.tf-rel__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
html body .entry-content .tf-rel p.tf-rel__heading { margin: 0 !important; font: 600 32px/40px var(--tf-display) !important; letter-spacing: -0.02em !important; color: var(--tf-ink); }
html body .entry-content .tf-rel .tf-rel__all { display: inline-flex; align-items: center; gap: 6px; font: 600 14px/20px var(--tf-display) !important; color: var(--tf-brand-text); text-decoration: none; white-space: nowrap; }
html body .entry-content .tf-rel ul.tf-rel__list { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 0 !important; padding: 0 !important; list-style: none !important; }
@media (min-width: 640px) { html body .entry-content .tf-rel ul.tf-rel__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { html body .entry-content .tf-rel ul.tf-rel__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
html body .entry-content .tf-rel ul.tf-rel__list > li { margin: 0 !important; padding: 0 !important; list-style: none !important; }
html body .entry-content .tf-rel ul.tf-rel__list > li::before, html body .entry-content .tf-rel ul.tf-rel__list > li::marker { content: none !important; }
html body .entry-content .tf-rel a.tf-rel__card { box-sizing: border-box; display: flex; flex-direction: column; height: 100%; padding: 28px; border: 1px solid transparent; border-radius: 24px; background: var(--surface-hover, #f7f7f9); color: var(--tf-ink) !important; text-decoration: none !important; transition: transform .3s var(--tf-ease), border-color .3s, background-color .3s; }
html body .entry-content .tf-rel a.tf-rel__card:hover { transform: translateY(-4px); border-color: var(--tf-line); background: #fff; }
html body .entry-content .tf-rel a.tf-rel__card:focus-visible { outline: 2px solid var(--tf-brand); outline-offset: 3px; }
.tf-rel__body { display: block; min-width: 0; margin-top: 28px; }
html body .entry-content .tf-rel p.tf-rel__title { margin: 0 !important; font: 600 20px/28px var(--tf-display) !important; letter-spacing: -0.01em !important; color: var(--tf-ink); }
html body .entry-content .tf-rel p.tf-rel__text { margin: 8px 0 0 !important; font: 400 15px/24px var(--tf-text) !important; color: var(--tf-ink-2); }

@media (prefers-reduced-motion: reduce) {
  .tfp-card__link, html body .entry-content .tf-rel a.tf-rel__card, .tfp-card__cta svg, .tf-rel__cta svg, .tfp-faq summary::after { transition: none; }
  .tfp-card__link:hover, html body .entry-content .tf-rel a.tf-rel__card:hover { transform: none; }
}

@media (max-width: 767px) {
  .tfp-hero { padding: 24px 0 112px; }
  .tfp-hero--hub { padding-bottom: 48px; }
  .tfp-hero__inner { padding: 0 16px; }
  .tfp-hero__row { flex-direction: column; gap: 16px; }
  .tfp-hero__tile { width: 52px; height: 52px; }
  .tfp-hero__tile svg { width: 26px; height: 26px; }
  html body.tfp-page .entry-content .tfp-crumbs ol { margin-bottom: 20px !important; }
  html body.tfp-page .entry-content .tfp-hero__title { font-size: 34px !important; line-height: 42px !important; }
  html body.tfp-page .entry-content .tfp-hero__lead { font-size: 16px !important; line-height: 24px !important; }
  html body.tfp-page .entry-content .tfp-trust { flex-direction: column; align-items: flex-start; margin-top: 20px !important; }
  .tfp-hero--hub .tfp-trust { align-items: center; }
  .tfp-tool { margin-top: -88px; }
  .tfp-body { margin-top: 56px; }
  .tfp-sec + .tfp-sec { margin-top: 40px; padding-top: 40px; }
  html body.tfp-page.page .entry-content .tfp-sec h2 { font-size: 24px !important; line-height: 32px !important; }
  html body.tfp-page .entry-content .tfp-sec p, html body.tfp-page .entry-content .tfp-sec li { font-size: 16px !important; line-height: 26px !important; }
  .tfp-card__link, html body .entry-content .tf-rel a.tf-rel__card { padding: 20px; border-radius: 20px; }
  .tfp-card__title, .tf-rel__body { margin-top: 20px; }
  .tf-rel { margin-top: 64px; }
  html body .entry-content .tf-rel p.tf-rel__heading { font-size: 24px !important; line-height: 32px !important; }
}
@media (max-width: 639px) {
  html body.tfp-page .entry-content ol.tfp-steps > li { padding: 64px 16px 16px; }
  html body.tfp-page .entry-content ol.tfp-steps > li::before { left: 16px; top: 16px; }
}
