/* 101Tools Core: shared front-end styles. Themes can override the variables on :root. */
:root {
  --t101-accent: #2563eb;
  --t101-text: #111827;
  --t101-muted: #4b5563;
  --t101-surface: #ffffff;
  --t101-soft: #f3f4f6;
  --t101-border: #e5e7eb;
  --t101-radius: 12px;
}
.t101-tool { margin: 1.5rem 0; }
.t101-loading { color: var(--t101-muted); }
/* Star rating ("Let us know") */
.t101-rate { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin: 20px 0 0; padding: 20px 24px; border: 1px solid var(--t101-border); border-radius: var(--t101-radius); background: var(--t101-surface); }
.t101-rate-text { flex: 1 1 260px; }
.t101-rate-title { margin: 0 0 4px; font-size: 1.05rem; }
.t101-rate-text p { margin: 0; color: var(--t101-muted); font-size: .925rem; }
.t101-rate-form { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.t101-rate-stars { display: flex; gap: 2px; }
.t101-rate-star { appearance: none; border: 0; background: none; padding: 2px; cursor: pointer; line-height: 0; border-radius: 6px; }
.t101-rate-star svg { width: 30px; height: 30px; fill: #e5e7eb; stroke: #d1d5db; stroke-width: 1; transition: fill .1s, transform .1s; }
.t101-rate-star.is-on svg { fill: #f59e0b; stroke: #d97706; }
.t101-rate:not(.is-choosing) .t101-rate-star.is-on svg { fill: #fbbf24; }
.t101-rate-star:hover:not(:disabled) svg { transform: scale(1.12); }
.t101-rate-star:focus-visible { outline: 2px solid var(--t101-accent); outline-offset: 1px; }
.t101-rate-star:disabled { cursor: default; }
.t101-rate-summary { margin: 0; font-size: .85rem; color: var(--t101-muted); font-variant-numeric: tabular-nums; }
.t101-rate-submit { appearance: none; border: 0; border-radius: 8px; padding: 9px 22px; background: var(--t101-accent); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.t101-rate-submit:disabled { opacity: .55; cursor: default; }
.t101-rate-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 600px) { .t101-rate { padding: 16px; } .t101-rate-form { width: 100%; } .t101-rate-submit { width: 100%; } }
.t101-tool-meta { margin: 8px 0 0; text-align: right; font-size: .8rem; }
.t101-tool-meta a { color: var(--t101-muted); }
.t101-tool-meta a:hover { color: var(--t101-accent); }
.t101-unavailable { padding: 1rem 1.25rem; border: 1px solid var(--t101-border); border-left: 4px solid #d97706; border-radius: var(--t101-radius); background: var(--t101-soft); color: var(--t101-text); }

/* Ad slots: height is reserved inline; the label keeps ads distinguishable from tool controls. */
.t101-ad { display: block; margin: 2rem auto; text-align: center; overflow: hidden; contain: layout; }
.t101-ad-label { display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--t101-muted); margin-bottom: 4px; }
.t101-ad--sidebar { margin-top: 0; }
/* Google's recommended way to collapse a slot that received no ad. */
.t101-ad:has(ins.adsbygoogle[data-ad-status="unfilled"]) { display: none; }
ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }
@media (max-width: 767px) { .t101-ad--header { margin: 12px auto; } }
@media (max-width: 1023px) { .t101-ad--sidebar { display: none; } }

/* Cards: directory and related tools. */
.t101-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.t101-card a { display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; row-gap: 2px; height: 100%; box-sizing: border-box; padding: 16px; border: 1px solid var(--t101-border); border-radius: var(--t101-radius); background: var(--t101-surface); color: var(--t101-text); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.t101-card a:hover, .t101-card a:focus-visible { border-color: var(--t101-accent); box-shadow: 0 2px 10px rgba(0, 0, 0, .06); }
.t101-card-icon { grid-row: span 2; width: 40px; height: 40px; font-size: 22px; line-height: 40px; text-align: center; border-radius: 10px; background: var(--t101-soft); color: var(--t101-accent); }
.t101-card-name { font-weight: 600; line-height: 1.3; }
.t101-card-desc { font-size: .875rem; line-height: 1.45; color: var(--t101-muted); }
.t101-card.is-featured a { border-color: color-mix(in srgb, var(--t101-accent) 40%, var(--t101-border)); }
.t101-directory-group { margin: 0 0 2.5rem; }
.t101-directory-title { margin: 0 0 1rem; }
.t101-directory-title a { color: inherit; text-decoration: none; }
.t101-directory-title a:hover, .t101-directory-title a:focus-visible { color: var(--t101-accent); text-decoration: underline; }
.t101-directory-more { margin: 14px 0 0; text-align: right; }
.t101-directory-more a { font-weight: 600; color: var(--t101-accent); text-decoration: none; }
.t101-directory-more a:hover, .t101-directory-more a:focus-visible { text-decoration: underline; }
.t101-card-badge { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; font-size: .7rem; font-weight: 700; letter-spacing: .02em; vertical-align: 2px; background: #fff4cc; color: #7a5a00; }
.t101-cards.is-compact .t101-card a { align-items: center; }
.t101-cards.is-compact .t101-card-icon { grid-row: auto; }
.t101-cards.cols-1 { grid-template-columns: 1fr; }
@media (min-width: 600px) { .t101-cards.cols-2, .t101-cards.cols-3, .t101-cards.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .t101-cards.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .t101-cards.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 599px) { .t101-cards.cols-2, .t101-cards.cols-3, .t101-cards.cols-4 { grid-template-columns: 1fr; } }
.t101-related { margin: 3rem 0 1rem; }
.t101-related-title { margin: 0 0 1rem; }
