/* ToolOdyssey site components (work with any theme; the ToolOdyssey theme sets the --toolodyssey-* variables). */
.to-tool-page, .to-card-grid, .to-consent, .to-form-contact, .to-affiliates, .to-sugg {
	--c-accent: var(--toolodyssey-accent, #0b5fd7);
	--c-bg: var(--toolodyssey-surface, #fff);
	--c-soft: var(--toolodyssey-surface-soft, #f4f6fa);
	--c-border: var(--toolodyssey-border, #cfd5df);
	--c-text: var(--toolodyssey-text, #14181f);
	--c-muted: var(--toolodyssey-muted, #4b5565);
	--c-danger: var(--toolodyssey-danger, #b3261e);
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .to-tool-page, :root:not([data-theme="light"]) .to-card-grid, :root:not([data-theme="light"]) .to-consent, :root:not([data-theme="light"]) .to-form-contact, :root:not([data-theme="light"]) .to-affiliates, :root:not([data-theme="light"]) .to-sugg {
		--c-accent: var(--toolodyssey-accent, #7db1ff); --c-bg: var(--toolodyssey-surface, #161b24); --c-soft: var(--toolodyssey-surface-soft, #1d2430); --c-border: var(--toolodyssey-border, #384255); --c-text: var(--toolodyssey-text, #eef1f6); --c-muted: var(--toolodyssey-muted, #aeb7c7); --c-danger: var(--toolodyssey-danger, #ff8a80);
	}
}
:root[data-theme="dark"] .to-tool-page, :root[data-theme="dark"] .to-card-grid, :root[data-theme="dark"] .to-consent, :root[data-theme="dark"] .to-form-contact, :root[data-theme="dark"] .to-affiliates, :root[data-theme="dark"] .to-sugg {
	--c-accent: var(--toolodyssey-accent, #7db1ff); --c-bg: var(--toolodyssey-surface, #161b24); --c-soft: var(--toolodyssey-surface-soft, #1d2430); --c-border: var(--toolodyssey-border, #384255); --c-text: var(--toolodyssey-text, #eef1f6); --c-muted: var(--toolodyssey-muted, #aeb7c7); --c-danger: var(--toolodyssey-danger, #ff8a80);
}
.to-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.to-muted { color: var(--c-muted, #4b5565); }
.to-small { font-size: .875rem; }
.to-lede { font-size: 1.125rem; line-height: 1.55; max-width: 60rem; margin: 0 0 1.25rem; }
.to-section { margin-top: 2rem; }
.to-section h2, .to-affiliates h2 { font-size: 1.35rem; margin: 0 0 .6rem; }
.to-section ul { padding-left: 1.25rem; }
.to-section li { margin-bottom: .4rem; }
.to-related { list-style: none; padding: 0; display: grid; gap: .5rem; }
.to-related li { margin: 0; padding: .6rem .8rem; border: 1px solid var(--c-border); border-radius: 8px; background: var(--c-bg); }
.to-faq { border: 1px solid var(--c-border); border-radius: 8px; margin: 0 0 .5rem; background: var(--c-bg); }
.to-faq summary { cursor: pointer; font-weight: 600; padding: .7rem .9rem; }
.to-faq p { margin: 0; padding: 0 .9rem .8rem; }
.to-report { margin-top: 1.5rem; border-top: 1px solid var(--c-border); padding-top: 1rem; }
.to-report summary { cursor: pointer; font-weight: 600; color: var(--c-accent); }
.to-error-block { background: #fff4d6; color: #7a1d17; padding: .75rem 1rem; border-radius: 8px; }
.to-badge { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: .1rem .45rem; border: 1px solid var(--c-border); border-radius: 4px; color: var(--c-muted); }
.to-affiliates { margin-top: 1.5rem; border: 1px solid var(--c-border); border-radius: 10px; padding: 1rem 1.25rem; background: var(--c-soft); }
.to-affiliates ul { margin: 0 0 .5rem; padding-left: 1.2rem; }

/* advertising: reserve space so the page does not jump */
.to-ad { margin: 1.5rem 0; min-height: 0; text-align: center; }
.to-ad.to-ad-active { min-height: 120px; }
.to-ad-label { display: none; }
.to-ad.to-ad-active .to-ad-label { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--c-muted); margin-bottom: .2rem; }
.to-ad:not(.to-ad-active) { display: none; }

/* cards and grids */
.to-card-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); list-style: none; padding: 0; margin: 0 0 2rem; }
.to-card { border: 1px solid var(--c-border); border-radius: 12px; background: var(--c-bg); transition: border-color .15s, box-shadow .15s; }
.to-card[hidden] { display: none; }
.to-card a { display: block; padding: 1rem 1.1rem; text-decoration: none; color: inherit; height: 100%; border-radius: 12px; }
.to-card:hover { border-color: var(--c-accent); box-shadow: 0 2px 10px rgba(0, 0, 0, .08); }
.to-card a:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.to-card h3, .to-card .to-card-title { margin: 0 0 .3rem; font-size: 1.05rem; color: var(--c-accent); }
.to-card p { margin: 0; font-size: .92rem; color: var(--c-muted); line-height: 1.45; }
.to-card .to-card-meta { margin-top: .5rem; font-size: .75rem; color: var(--c-muted); }
.to-prio { display: inline-block; font-size: .68rem; font-weight: 700; padding: 0 .4rem; border-radius: 4px; background: var(--c-soft); border: 1px solid var(--c-border); margin-right: .3rem; }

/* forms */
.to-form-contact { max-width: 40rem; }
.to-form-contact label { display: block; font-weight: 600; margin-bottom: .25rem; }
.to-form-contact input[type="text"], .to-form-contact input[type="email"], .to-form-contact textarea { width: 100%; font: inherit; padding: .6rem .75rem; border: 1px solid var(--c-border); border-radius: 8px; background: var(--c-bg); color: var(--c-text); min-height: 2.75rem; }
.to-form-contact .to-check label { font-weight: 400; display: flex; gap: .5rem; align-items: flex-start; }
.to-form-contact .to-check input { margin-top: .3rem; width: 1.1rem; height: 1.1rem; }
.to-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.to-req { font-weight: 400; color: var(--c-muted); font-size: .85rem; }
.to-form-status { min-height: 1.5em; font-weight: 600; }
.to-form-status.is-error { color: var(--c-danger); }
.to-form-status.is-ok { color: #1a7f37; }
.to-btn { font: inherit; font-weight: 600; cursor: pointer; border-radius: 8px; padding: .6rem 1.2rem; min-height: 2.75rem; border: 1px solid var(--c-accent); background: var(--c-bg); color: var(--c-accent); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.to-btn-primary { background: var(--c-accent); color: #fff; }
:root[data-theme="dark"] .to-btn-primary { color: #05152e; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .to-btn-primary { color: #05152e; } }
.to-linkbtn { font: inherit; background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; }

/* consent notice */
.to-consent { position: fixed; z-index: 9999; left: 1rem; right: 1rem; bottom: 1rem; max-width: 38rem; margin: 0 auto; background: var(--c-bg); color: var(--c-text); border: 1px solid var(--c-border); border-radius: 12px; padding: 1rem 1.25rem; box-shadow: 0 6px 30px rgba(0, 0, 0, .25); }
.to-consent[hidden] { display: none; }
.to-consent p { margin: 0 0 .75rem; }
.to-consent-actions { display: flex; gap: .6rem; margin: 0 !important; }

/* search suggestions */
.to-searchbox { position: relative; }
.to-sugg { position: absolute; z-index: 1000; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: .25rem; list-style: none; background: var(--c-bg); color: var(--c-text); border: 1px solid var(--c-border); border-radius: 10px; box-shadow: 0 8px 28px rgba(0, 0, 0, .18); max-height: 24rem; overflow: auto; }
.to-sugg[hidden] { display: none; }
.to-sugg li { margin: 0; }
.to-sugg a { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem .75rem; text-decoration: none; color: inherit; border-radius: 8px; }
.to-sugg li.is-active a, .to-sugg a:hover { background: var(--c-soft); }
.to-sugg-meta { color: var(--c-muted); font-size: .8rem; white-space: nowrap; }

@media print { .to-ad, .to-consent, .to-affiliates, .to-report, .to-related, .to-faq { display: none !important; } }
