/* Tootekriitika 1.2 — warm paper, quiet green landscape, local light/dark mode. */
:root {
  color-scheme: light;
  --tk-paper:#fcf8f1; --tk-panel:#fffdf9; --tk-ink:#173d35;
  --tk-muted:#52655e; --tk-link:#145e4e; --tk-border:#d9dfd4;
  --tk-control:#81998d; --tk-soft:#e1e7d9; --tk-green:#17634f;
  --tk-plus-bg:#f0f6ee; --tk-plus-border:#cadcc9;
  --tk-minus-bg:#faf1e8; --tk-minus-border:#e6d5c1; --tk-minus-ink:#92602f;
  --tk-neutral-bg:#f0f1ed; --tk-focus:#9b6027;
  --tk-card-shadow:0 14px 32px -8px #2f3b2724;
  --tk-wave-top:url("landscape-top.svg"); --tk-wave-bottom:url("landscape-bottom.svg");
  --bg:var(--tk-paper); --surface:var(--tk-panel); --surface-2:var(--tk-soft);
  --text:var(--tk-ink); --text-muted:var(--tk-muted); --line:var(--tk-border);
  --line-strong:var(--tk-control); --accent:var(--tk-link); --accent-strong:#104c3e;
  --accent-soft:var(--tk-soft); --neutral-soft:var(--tk-neutral-bg);
  --wp--preset--color--paper:var(--tk-paper); --wp--preset--color--ink:var(--tk-ink);
  --wp--preset--color--accent:var(--tk-link);
}
:root[data-tk-theme="dark"] {
  color-scheme:dark;
  --tk-paper:#101b18; --tk-panel:#192923; --tk-ink:#e5efe7;
  --tk-muted:#adbbb2; --tk-link:#8ed9b8; --tk-border:#354a3e;
  --tk-control:#778e80; --tk-soft:#293e31; --tk-green:#8ed9b8;
  --tk-plus-bg:#1b3026; --tk-plus-border:#365642;
  --tk-minus-bg:#322b22; --tk-minus-border:#5c4c35; --tk-minus-ink:#efc58b;
  --tk-neutral-bg:#222e29; --tk-focus:#efc58b;
  --tk-card-shadow:0 18px 42px -10px #0007;
  --tk-wave-top:url("landscape-top-dark.svg"); --tk-wave-bottom:url("landscape-bottom-dark.svg");
  --accent-strong:#b3f0d3; --caution-soft:#392f1f; --caution-line:#9a7a45;
  --caution-text:#f2d29c; --contrast-soft:#322c3b; --contrast-line:#a796bc; --contrast-text:#ddd1ee;
}
@media(prefers-color-scheme:dark) {
  :root:not([data-tk-theme]) {
    color-scheme:dark;
    --tk-paper:#101b18; --tk-panel:#192923; --tk-ink:#e5efe7;
    --tk-muted:#adbbb2; --tk-link:#8ed9b8; --tk-border:#354a3e;
    --tk-control:#778e80; --tk-soft:#293e31; --tk-green:#8ed9b8;
    --tk-plus-bg:#1b3026; --tk-plus-border:#365642;
    --tk-minus-bg:#322b22; --tk-minus-border:#5c4c35; --tk-minus-ink:#efc58b;
    --tk-neutral-bg:#222e29; --tk-focus:#efc58b;
    --tk-card-shadow:0 18px 42px -10px #0007;
    --tk-wave-top:url("landscape-top-dark.svg"); --tk-wave-bottom:url("landscape-bottom-dark.svg");
    --accent-strong:#b3f0d3; --caution-soft:#392f1f; --caution-line:#9a7a45;
    --caution-text:#f2d29c; --contrast-soft:#322c3b; --contrast-line:#a796bc; --contrast-text:#ddd1ee;
  }
}
html,body {background:var(--tk-paper);color:var(--tk-ink)}
body {font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.wp-site-blocks {min-height:100svh;display:flex;flex-direction:column}
body.admin-bar .wp-site-blocks {min-height:calc(100svh - 32px)}
.wp-site-blocks>main {flex:1;min-height:0;padding:32px 0 48px}
.wrap {width:min(100% - 64px,1280px);max-width:1280px}
.tk-review {
  --ink:var(--tk-ink);--accent:var(--tk-link);--line:var(--tk-border);
  color:var(--tk-ink);
}
.site-head {position:relative;top:auto!important;background:#185d4e;color:#fff;z-index:5}
.site-head .site-head-row {min-height:60px;gap:20px;flex-wrap:nowrap}
.site-head .site-logo img {width:240px;min-width:0;max-width:100%;height:auto}
.site-head .wp-block-site-title {font-size:23px}
.site-head .site-nav {margin-left:auto!important}
.site-head .wp-block-navigation {font-size:15px!important;line-height:22px;flex-wrap:nowrap}
.site-head .wp-block-navigation__container {gap:24px;flex-wrap:nowrap}
.site-head .site-nav a {min-height:44px;white-space:nowrap}
.site-head .tk-language-switch {gap:7px}
.site-head .tk-language-switch a {font-size:15px}
.site-head .tk-language-switch a[aria-current] {text-decoration:underline;text-underline-offset:4px}
.site-head .site-logo a:focus-visible,.site-head .site-nav a:focus-visible {outline:2px solid #fff;outline-offset:4px;border-radius:3px}

/* The button is deliberately outside editorial content/translation hashes. */
.tk-color-mode {
  position:relative;flex:0 0 60px;width:60px;height:44px;padding:0;border:0;
  background:transparent;color:#164e40;border-radius:24px;cursor:pointer;
  display:inline-flex;align-items:center;justify-content:center;touch-action:manipulation;
}
.tk-color-mode::before {content:"";position:absolute;inset:7px 0;background:#d9e8d7;border-radius:999px;box-shadow:inset 0 0 0 1px #fff3}
.tk-color-mode::after {content:"";position:absolute;width:24px;height:24px;left:3px;top:10px;background:#fffdf8;border-radius:50%;box-shadow:0 1px 4px #0003;transition:transform .18s ease}
.tk-color-mode svg {position:absolute;z-index:1;pointer-events:none}
.tk-color-mode-sun {right:6px}
.tk-color-mode-moon {left:6px;display:none}
.tk-color-mode:hover::before {filter:brightness(1.06)}
.tk-color-mode:focus-visible {outline:2px solid #fff;outline-offset:3px}
[data-tk-theme="dark"] .tk-color-mode::before {background:#61d7aa}
[data-tk-theme="dark"] .tk-color-mode::after {background:#142a23;transform:translateX(30px)}
[data-tk-theme="dark"] .tk-color-mode-moon {display:block}
[data-tk-theme="dark"] .tk-color-mode-sun {display:none}

/* Home layout: the card is a grid background, so all existing controls stay native. */
.wp-site-blocks>main:has(.tk-search-home) {position:relative;isolation:isolate;display:flex;flex-direction:column;padding:50px 0 230px}
.wp-site-blocks>main:has(.tk-search-home)::before,
.wp-site-blocks>main:has(.tk-search-home)::after {content:"";position:absolute;pointer-events:none;z-index:-1;background-repeat:no-repeat;background-size:100% 100%}
.wp-site-blocks>main:has(.tk-search-home)::before {top:0;left:0;width:min(30vw,430px);height:200px;background-image:var(--tk-wave-top)}
.wp-site-blocks>main:has(.tk-search-home)::after {bottom:0;right:0;width:min(76vw,1120px);height:235px;background-image:var(--tk-wave-bottom)}
main:has(.tk-search-home)>.entry-content {width:100%}
.tk-search-home {display:grid;grid-template-columns:minmax(0,1fr);max-width:1040px;position:relative;isolation:isolate;padding:0;margin:0 auto;text-align:center}
.tk-search-home>* {min-width:0;grid-column:1;z-index:1}
.tk-search-home::before {content:"";grid-area:4/1/7/2;background:var(--tk-panel);border:1px solid color-mix(in srgb,var(--tk-border) 45%,transparent);border-radius:30px;box-shadow:var(--tk-card-shadow);z-index:0}
.tk-review.tk-search-home .tk-kicker {grid-row:1;justify-self:center;color:var(--tk-ink);background:var(--tk-soft);font-size:16px;font-weight:650;line-height:24px;letter-spacing:-.02em;padding:7px 18px;border-radius:999px;margin:0 0 18px}
.tk-search-home h1 {grid-row:2;font-size:clamp(28px,3.1vw,42px);font-weight:750;line-height:1.17;letter-spacing:-.04em;margin:0 0 14px;text-wrap:balance}
.tk-search-home .tk-intro-text {grid-row:3;font-size:20px;line-height:1.5;max-width:none;margin:0 auto 30px!important;text-wrap:balance}
.tk-search-home .tk-product-search {grid-row:4;margin:30px 28px 0}
.tk-product-search>div {padding:0;border:1px solid var(--tk-control);background:var(--tk-panel);border-radius:14px;gap:0}
.tk-product-search input {border-radius:14px 0 0 14px;color:var(--tk-ink);padding:13px 18px;font-size:16px;line-height:24px}
.tk-product-search input::placeholder {color:var(--tk-muted);opacity:1}
.tk-product-search button {background:#185d4e;color:#fff;border-radius:13px;padding:13px 24px;font-size:16px;font-weight:600;line-height:24px;min-height:50px;flex-shrink:0}
.tk-product-search button:hover {background:#104a3d}
.tk-search-home .tk-product-search input {min-height:62px;font-size:19px;padding:16px 22px}
.tk-search-home .tk-product-search button {min-height:62px;font-size:19px;padding:16px 30px}
.tk-product-search>div:focus-within {border-color:var(--tk-link);box-shadow:0 0 0 2px var(--tk-link)}
.tk-search-home .tk-model-picker {grid-row:5;flex-wrap:wrap;gap:12px;margin:24px 28px 0}
.tk-model-picker select {background-color:var(--tk-panel);color:var(--tk-ink);border-color:var(--tk-control);border-radius:11px;min-height:48px;padding:10px 34px 10px 16px;font-size:16px}
.tk-search-home .tk-model-picker select {width:280px;min-height:54px;font-size:18px;padding:12px 38px 12px 18px}
.tk-search-home .tk-model-picker [data-tk-model] {width:350px}
.tk-search-home .tk-catalog-link {grid-row:6;font-size:18px;line-height:26px;margin:18px 28px 28px}
.tk-search-home .tk-catalog-link a {color:var(--tk-link);text-underline-offset:4px;text-decoration-thickness:1px;padding:5px 0;display:inline-block}

/* Shared surfaces and text, including expanded evidence and mobile controls. */
.site-foot {background:var(--tk-paper);border-top:1px solid var(--tk-border);padding:21px 0 25px;font-size:14px;line-height:1.5}
.site-foot .small,.site-foot .muted {font-size:14px;color:var(--tk-muted)}
.site-foot p {color:var(--tk-ink)}
.site-foot a {color:var(--tk-link)}
.site-foot [data-tk-footer-links] {gap:6px 24px;margin-top:12px}
.site-foot [data-tk-footer-links] a {padding:3px 0;text-underline-offset:3px}
.tk-review .tk-small,.tk-review small,.tk-review .tk-meta,.tk-review .tk-refs,
.tk-product-review .tk-variant-text,.tk-point-short,
.tk-point-body .tk-point-scope,.tk-context-row>summary>span,.tk-feedback-short {color:var(--tk-muted)}
.tk-review details {background:var(--tk-panel);border-color:var(--tk-border);border-radius:9px}
.tk-review details.tk-point {background:var(--tk-plus-bg);border-color:var(--tk-plus-border);border-radius:9px}
.tk-review details.tk-point--minus {background:var(--tk-minus-bg);border-color:var(--tk-minus-border)}
.tk-review details.tk-point--neutral {background:var(--tk-neutral-bg);border-color:var(--tk-border)}
.tk-point-body {background:var(--tk-panel)}
.tk-point-symbol {color:var(--tk-link)}
.tk-point--minus .tk-point-symbol {color:var(--tk-minus-ink)}
.tk-point--neutral .tk-point-symbol {color:var(--tk-muted)}
.tk-point-toggle {
  position:relative;align-self:center;flex:0 0 24px;height:24px;border-radius:6px;
  font-size:0;line-height:0;color:var(--tk-link);
  background:var(--tk-plus-border);
  background:color-mix(in srgb,var(--tk-plus-border) 64%,var(--tk-plus-bg));
}
.tk-point-toggle::before {
  content:"";position:absolute;inset:0;margin:auto;width:9px;height:9px;box-sizing:border-box;
  border:solid currentColor;border-width:0 2.5px 2.5px 0;transform:translateY(-1px) rotate(45deg);
}
.tk-point--minus .tk-point-toggle {
  color:var(--tk-minus-ink);
  background:var(--tk-minus-border);
  background:color-mix(in srgb,var(--tk-minus-border) 64%,var(--tk-minus-bg));
}
.tk-point--neutral .tk-point-toggle {color:var(--tk-muted);background:var(--tk-soft)}
.tk-point>summary:is(:hover,:focus-visible) .tk-point-toggle {box-shadow:inset 0 0 0 1px currentColor}
.tk-points-grid h2 {border-color:var(--tk-plus-border)}
.tk-points-grid .tk-minus-heading {border-color:var(--tk-minus-border)}
.tk-review .tk-point[open]>summary,.tk-point-source,.tk-evidence,.tk-research-highlight {border-color:var(--tk-border)}
.tk-review details.tk-context-row,.tk-review details.tk-feedback-topic,.tk-review details.tk-feedback-extra {border-radius:0;background:transparent}
.tk-review .tk-empty {background:var(--tk-soft)}
.tk-review a:focus-visible,.tk-review input:focus-visible,.tk-review button:focus-visible,
.tk-review summary:focus-visible,.tk-model-picker select:focus-visible {outline-color:var(--tk-focus)}
.tk-review .tk-product-search button:focus-visible {outline-color:#fff}
.tk-point:target,.tk-review .tk-source:target,.tk-review-issue:target {outline-color:var(--tk-link)}
.tk-skip-link {background:var(--tk-panel);color:var(--tk-link);border-color:var(--tk-link)}
.tk-search-results,.tk-product-review {padding-top:2px}
.tk-search-results h1,.tk-product-review h1,.tk-method-page h1 {font-size:26px;letter-spacing:-.03em}
.tk-model-list a:hover {background:var(--tk-soft)}
.tk-model-list a {padding-inline:8px;border-radius:6px}
.tk-model-list a > :first-child {min-width:0;overflow-wrap:anywhere}
.tk-review table,.tk-review th,.tk-review td {border-color:var(--tk-border)}
.tk-review th {background:var(--tk-soft)}
.tk-review td {background:var(--tk-panel)}

@media(min-width:1000px) {
  .tk-search-results:has(.tk-model-list:not([data-tk-single-column]) > li:nth-child(12)) {max-width:1200px}
  .tk-search-results .tk-product-search {max-width:850px}
  /* Preserve DOM order as the reader moves down each column. */
  .tk-model-list:not([data-tk-single-column]):has(> li:nth-child(12)) {columns:2;column-gap:28px}
  .tk-model-list > li {break-inside:avoid}
  .tk-model-list a {padding-block:5px}
}

@media(max-width:800px) {
  .wrap {width:calc(100% - 40px)}
  .site-head .site-logo img {width:210px}
  .site-head .site-head-row {gap:14px}
  .site-head .wp-block-navigation__container {gap:16px}
  .tk-search-home .tk-intro-text {font-size:18px}
  .wp-site-blocks>main:has(.tk-search-home) {padding-top:42px;padding-bottom:180px}
  .wp-site-blocks>main:has(.tk-search-home)::after {height:175px;width:90vw}
  .tk-search-home .tk-product-search {margin-inline:22px}
  .tk-search-home .tk-product-search input,.tk-search-home .tk-product-search button {font-size:17px;padding-inline:16px}
  .tk-search-home .tk-model-picker {margin-inline:22px}
}
@media(max-width:650px) {
  .wrap {width:100%;max-width:none;padding-inline:16px;box-sizing:border-box}
  .site-head .site-head-row {display:grid;grid-template-columns:minmax(0,1fr) 60px;gap:0 12px;padding-block:9px 5px}
  .site-head .site-logo {grid-column:1;grid-row:1}
  .site-head .site-logo img {width:220px;min-width:0}
  .site-head .tk-color-mode {grid-column:2;grid-row:1}
  .site-head .site-nav {grid-column:1/-1;grid-row:2;justify-self:end;margin-left:0!important}
  .site-head .wp-block-navigation {font-size:14px!important}
  .site-head .site-nav a {min-height:36px}
  .site-head .wp-block-navigation__container {gap:20px}
  .site-head .tk-nav-full {display:inline}
  .site-head .tk-nav-short,.site-head .tk-nav-mobile-label {display:none!important}
  .wp-site-blocks>main {padding:16px 0 24px}
  .tk-product-page .wp-site-blocks>main {padding:12px 0 20px}
  .wp-site-blocks>main:has(.tk-search-home) {padding-top:24px;padding-bottom:110px}
  .wp-site-blocks>main:has(.tk-search-home)::before {width:38vw;height:120px;opacity:.7}
  .wp-site-blocks>main:has(.tk-search-home)::after {height:106px;width:100%}
  .tk-search-home h1 {font-size:27px;line-height:1.2;letter-spacing:-.035em;margin-bottom:8px}
  .tk-search-home .tk-intro-text {font-size:16px;line-height:1.5;margin-bottom:14px!important}
  .tk-review.tk-search-home .tk-kicker {font-size:13px;line-height:20px;padding:5px 12px;margin-bottom:8px}
  .tk-search-home::before {border-radius:22px}
  .tk-search-home .tk-product-search {margin:14px 12px 0}
  .tk-review .tk-product-search>div {border-radius:11px}
  .tk-review .tk-product-search input {min-height:44px;padding:0 10px;font-size:16px;border-radius:11px 0 0 11px}
  /* The existing localized button text remains its accessible name. */
  .tk-review .tk-product-search button {min-height:44px;min-width:44px;padding:0 10px;font-size:0;border-radius:10px}
  .tk-review .tk-product-search button>span {font-size:21px;line-height:1}
  .tk-search-home .tk-model-picker {margin:8px 12px 0;gap:6px;flex-direction:column;align-items:stretch}
  .tk-review .tk-model-picker select {min-height:44px;padding:7px 30px 7px 12px;font-size:16px}
  .tk-search-home .tk-model-picker select,.tk-search-home .tk-model-picker [data-tk-model] {width:100%}
  .tk-search-home .tk-catalog-link {font-size:14px;line-height:22px;margin:10px 12px 16px}
  .tk-search-home .tk-catalog-link a {padding-block:3px}
  .tk-model-list a {padding:4px;gap:6px}
  .site-foot {font-size:13px;padding:18px 0 20px}
  .site-foot .small,.site-foot .muted {font-size:13px}
  .site-foot [data-tk-footer-links] {gap:0;flex-direction:column;align-items:flex-start;margin-top:8px}
  .site-foot [data-tk-footer-links] a {padding:6px 0}
}
@media (width < 585px) {
  .tk-model-with-illustration {grid-template-columns:56px minmax(0,1fr)}
  .tk-product-review header {margin-block:6px 10px}
  .tk-product-with-illustration {gap:4px}
  .tk-points-grid {row-gap:10px}
  .tk-point>summary {min-height:44px;padding:8px 10px}
}
@media(max-width:782px) {body.admin-bar .wp-site-blocks {min-height:calc(100svh - 46px)}}
@media(min-width:651px) and (max-height:800px) {
  .wp-site-blocks>main:has(.tk-search-home) {padding-top:32px;padding-bottom:130px}
  .wp-site-blocks>main:has(.tk-search-home)::after {height:125px}
}
@media(max-width:360px) {
  .site-head .site-logo img {width:195px}
  .site-head .wp-block-navigation__container {gap:12px}
}
@media(max-width:350px) {
  .tk-review .tk-product-search>div {flex-wrap:wrap;gap:6px;border:0;background:transparent}
  .tk-review .tk-product-search>div:focus-within {box-shadow:none}
  .tk-review .tk-product-search input {flex-basis:100%;width:100%;border:1px solid var(--tk-control);background:var(--tk-panel);border-radius:10px}
  .tk-review .tk-product-search input:focus-visible {outline:2px solid var(--tk-link);outline-offset:2px;box-shadow:none}
  .tk-review .tk-product-search button {width:100%;font-size:16px}
  .tk-review .tk-product-search button>span {font-size:inherit}
}
@media(prefers-reduced-motion:reduce) {.tk-color-mode::after,.tk-point-toggle {transition:none}}
@media print {
  :root,:root[data-tk-theme="dark"] {color-scheme:light;--tk-paper:#fff;--tk-panel:#fff;--tk-ink:#111;--tk-muted:#444;--tk-link:#164b3c;--tk-border:#aaa;--tk-plus-bg:#fff;--tk-minus-bg:#fff;--tk-minus-ink:#92602f;--tk-neutral-bg:#fff;--tk-soft:#eee;--accent-strong:#164b3c;--caution-soft:#fff;--caution-text:#444;--contrast-soft:#fff;--contrast-text:#444}
  .tk-color-mode {display:none}
  .wp-site-blocks>main:has(.tk-search-home)::before,.wp-site-blocks>main:has(.tk-search-home)::after {display:none}
}
