/* MARVETO v0.5.2: type scale, improved input integration, no text overlap. */
:root{--marveto-accent:#0f7a62}
html{scroll-behavior:smooth}
body{overflow-x:hidden}
*,*::before,*::after{box-sizing:border-box}
/* Front page: large readable text in both appearances. */
html[data-theme="light"] .method-section, html[data-theme="light"] .research-section,html[data-theme="light"] .how-section{color:#172b42!important}
html[data-theme="light"] .method-section h2,html[data-theme="light"] .research-section h2,html[data-theme="light"] .how-section h2,html[data-theme="light"] .v05-request h2,html[data-theme="light"] .account-teaser h2,html[data-theme="light"] .v05-categories h2{color:#172b42!important}
html[data-theme="light"] .method-section p,html[data-theme="light"] .research-section p,html[data-theme="light"] .how-section p,html[data-theme="light"] .v05-request p,html[data-theme="light"] .account-teaser p,html[data-theme="light"] .v05-categories p{color:#385168!important}
html[data-theme="dark"] .method-section h2,html[data-theme="dark"] .research-section h2,html[data-theme="dark"] .how-section h2,html[data-theme="dark"] .v05-request h2,html[data-theme="dark"] .account-teaser h2,html[data-theme="dark"] .v05-categories h2{color:#f1f7f9!important}
html[data-theme="dark"] .method-section p,html[data-theme="dark"] .research-section p,html[data-theme="dark"] .how-section p,html[data-theme="dark"] .v05-request p,html[data-theme="dark"] .account-teaser p,html[data-theme="dark"] .v05-categories p{color:#c5d9e4!important}
.section-top h2,.scanner-intro h2,.future-inner h2,.request-grid h2{line-height:1.15;overflow-wrap:break-word}
.section-top p,.roadmap-item p,.category-tile span,.method-card p,.footer p{line-height:1.55;overflow-wrap:anywhere}
/* Header nav: responsive wrapping and visible selected locale. */
.nav-layout{min-width:0;column-gap:clamp(8px,1.5vw,24px)}
.nav-links{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px 17px;min-width:0}
.nav-links a{max-width:100%;white-space:normal;line-height:1.25;overflow-wrap:break-word;text-align:center}
.nav-actions{min-width:0;flex-wrap:wrap;justify-content:flex-end}
.language-switcher{min-width:0;flex-shrink:0}
.language-trigger{min-width:90px;line-height:1.1;white-space:nowrap;gap:7px}
/* Search field has no extra dividing line; focus ring on its outer panel. */
.toolbar{align-items:stretch;gap:12px;min-width:0}
.search-field{min-width:190px;overflow:hidden;align-items:center;display:flex;gap:12px;border:1px solid transparent;border-radius:12px;background:var(--v51-panel);padding:10px 14px;flex:1 1 290px}
.search-field:focus-within{border-color:#4ca88f;box-shadow:0 0 0 3px #58ba9a36}
.search-field input,.search-field input:focus{border:0!important;outline:0!important;background:transparent!important;box-shadow:none!important;min-width:0;width:100%;flex:1;color:var(--v51-text)!important;font-size:15px;line-height:1.5;padding:0!important;margin:0!important}
.search-field input::placeholder{color:var(--v51-muted)!important;opacity:1}
.search-field svg{flex-shrink:0;color:var(--v51-muted)}
.filter-select{min-width:165px;flex:1 1 170px}
.filter-select label{font-size:12px;line-height:1.45;display:block}
.filter-select select{width:100%;max-width:100%;min-width:0;font-size:14px;line-height:1.3;font-weight:600;overflow:hidden;text-overflow:ellipsis}
/* Tabs should never overlap or be clipped behind neighbouring controls. */
.filter-row{display:flex;gap:14px;flex-wrap:wrap;align-items:flex-start;min-width:0}
.tabs{display:flex;flex-wrap:wrap;gap:8px;max-width:100%;min-width:0;flex:1 1 600px;align-items:stretch}
.tabs .tab{flex:0 1 auto;max-width:100%;min-width:95px;white-space:normal;overflow-wrap:break-word;text-align:center;line-height:1.35;padding:11px 15px;min-height:44px}
.favorites-toggle{flex:0 0 auto;min-height:44px}
.category-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:14px}
.category-tile{min-width:0;overflow-wrap:anywhere}
.feature-grid{align-items:stretch}.feature{min-width:0;padding:20px clamp(10px,2vw,23px);gap:14px}.feature>div{min-width:0}.feature strong,.feature span:last-child{white-space:normal;overflow-wrap:break-word;line-height:1.35}
.features-band{background:transparent!important;padding:20px 0}.feature-grid{background:var(--v51-card);border:1px solid var(--v51-border);border-radius:18px;box-shadow:0 12px 24px #10283712;overflow:hidden}
html[data-theme="dark"] .feature-grid{background:#1b303d}
/* Forms and scanner. */
.scanner-entry{display:flex;flex-wrap:wrap;gap:10px}.scanner-entry input{min-width:180px;flex:1 1 240px}.scanner-entry button{min-width:130px;line-height:1.25}
.scanner-panel label,.scanner-panel .scan-caption,.scanner-panel small{overflow-wrap:break-word}
.scanner-result,.scan-market{min-width:0}
/* Keep fields and text visible within info pages as well. */
.subpage-main p,.subpage-main small,.page-lead{color:var(--v51-muted);line-height:1.65}
.subpage-main h1,.subpage-main h2{color:var(--v51-text)}
.footer-pages{display:flex;flex-wrap:wrap;gap:10px 17px;line-height:1.6}
.footer-pages a{white-space:normal;max-width:100%;text-decoration:none}
.footer-pages a:hover{text-decoration:underline}
/* Visitor counter with two trustworthy values and explanatory sub-label. */
.visitor-banner{align-items:center;gap:16px;padding:18px 22px;min-height:98px}
.visitor-stats{display:flex;gap:26px;flex-wrap:wrap;flex:1 1 240px}
.visitor-stat{display:flex;gap:3px;flex-direction:column;min-width:120px}
.visitor-stat small{font-size:12px;color:var(--v51-muted)}
.visitor-stat strong{font-size:clamp(24px,3vw,34px);line-height:1.15;color:var(--v51-text);font-variant-numeric:tabular-nums}
#visitor-period{font-size:11px;flex:1 0 100%;line-height:1.45}
/* Interactive chart controls and selected-point detail. */
.chart-head{display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between;gap:12px}
.chart-view-controls{display:inline-flex;flex-wrap:wrap;gap:4px;background:var(--v51-panel);border:1px solid var(--v51-border);padding:4px;border-radius:12px}
.chart-view-controls button{border:0;border-radius:8px;background:transparent;color:var(--v51-text);padding:9px 13px;font-size:13px;cursor:pointer}
.chart-view-controls button.selected{background:#127e63;color:#fff;box-shadow:0 1px 6px #173a3130}
.chart-wrap{min-height:245px;position:relative;overflow:hidden;gap:8px}
.chart-wrap svg{display:block;width:100%;height:auto;overflow:visible;min-width:0}
.chart-wrap .chart-bar,.chart-wrap .chart-point{cursor:pointer}
.chart-wrap .chart-point:focus,.chart-wrap .chart-bar:focus{outline:3px solid #22a881;outline-offset:3px}
.chart-detail{min-height:48px;margin-top:12px;border-radius:10px;background:var(--v51-panel);border:1px solid var(--v51-border);color:var(--v51-text);padding:13px 16px;font-size:13px;line-height:1.5}
.chart-legend button{cursor:pointer}
@media(max-width:1030px){.nav-layout{flex-wrap:wrap}.nav-links{order:3;flex:1 1 100%;justify-content:flex-start;padding:5px 0}.nav-actions{margin-left:auto}.features-band .feature-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:680px){.toolbar{flex-direction:column}.search-field,.filter-select{flex:auto;width:100%}.feature-grid,.features-band .feature-grid{display:grid;grid-template-columns:1fr}.feature{border-bottom:1px solid var(--v51-border)}.tabs{flex:1 1 100%}.tabs .tab{flex:1 1 140px}.filter-row{gap:10px}.nav-links a{font-size:13px}.visitor-stats{gap:16px}.visitor-banner{padding:14px}.chart-head{align-items:flex-start}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}}
