/* Public collection navigation: homepage and machine directory only. */
.free-discovery{--free:#08734e;--free-soft:#e6f5ec;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:22px;align-items:center;position:relative;overflow:hidden;padding:23px 28px;margin:0 0 24px;border:1px solid #81b69b;border-left:5px solid var(--free);border-radius:16px;background:linear-gradient(115deg,#e6f3eb 0,#edf5f1 66%,#dbeee3 100%);color:var(--txt)}
.free-discovery-kicker{display:inline-block;color:var(--free);font-size:13px;font-weight:800;letter-spacing:.03em;margin-bottom:4px}
.free-discovery h2{display:flex;gap:7px;align-items:baseline;font-size:25px!important;line-height:1.35;margin:0 0 8px;color:var(--txt)}
.free-count{font-size:40px;font-weight:900;color:var(--free);letter-spacing:-.04em;line-height:1.1}.free-count small{font-size:19px;letter-spacing:0;margin-left:4px}
.free-discovery p{font-size:15px;line-height:1.75;margin:0 0 6px;color:var(--txt)}
.free-discovery-scope{display:block;font-size:12px;line-height:1.8;color:var(--sub)}
.free-discovery-action{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:52px;padding:13px 20px;border-radius:10px;background:#08734e;color:#fff;text-decoration:none;white-space:nowrap;font-size:15px;font-weight:800;box-shadow:0 4px 12px #075d3a18}.free-discovery-action:hover{background:#075e41}.free-discovery-action>span{font-size:20px;font-weight:400}
body.home-page .free-quick-link{background:#e3f1e9!important;border-color:#72a98b!important;color:#08734e!important}body.home-page .free-quick-link :is(strong,small),body.home-page .free-quick-link::after{color:#08734e}
body.public-list-page .machine-directory>li[hidden],.machine-filter[hidden]{display:none!important}
.machine-filter{display:flex;gap:6px;width:fit-content;padding:5px;border:1px solid var(--line);border-radius:12px;background:var(--surface);margin:18px 0 10px}
.machine-filter button{display:flex;align-items:center;gap:9px;min-height:44px;border:0;border-radius:8px;padding:10px 16px;background:transparent;color:var(--sub);font:inherit;font-size:15px;font-weight:750;cursor:pointer}
.machine-filter button>span{border-radius:5px;background:var(--card2);padding:2px 6px;font-size:12px;font-variant-numeric:tabular-nums}
.machine-filter button[aria-pressed="true"]{background:var(--info);color:white}.machine-filter button[data-scope="free"][aria-pressed="true"]{background:#08734e;color:white}.machine-filter button[aria-pressed="true"]>span{background:#ffffff26;color:white}
.machine-filter-status{font-size:13px;color:var(--sub);margin:0 0 14px}
.machine-review-state{display:block;margin-top:3px;font-size:12px;line-height:1.6}
body.public-list-page .machine-list.machine-directory>li>a{position:relative;padding-right:42px}.machine-card-heading{display:flex;align-items:flex-start;flex-direction:column;gap:8px;margin-bottom:8px;min-width:0}.machine-card-heading strong{max-width:100%;overflow-wrap:anywhere}.machine-card-arrow{position:absolute;right:18px;top:19px;color:var(--sub);font-size:18px}
body.public-list-page .machine-directory>li[data-public-release="true"]>a{border:1px solid #7bad91;border-left:4px solid #08734e}
body.public-list-page .machine-directory .full-public-badge{margin:0;padding:4px 9px;border:0;border-radius:5px;background:#08734e;color:#fff;font-size:12px;line-height:1.6}
body.public-list-page .machine-directory>li[data-release-kind="info"] .full-public-badge{background:#dceee4;color:#1a6448;border:1px solid #8fb9a2}
:root[data-theme="dark"] .free-discovery{--free:#79d7aa;background:linear-gradient(110deg,#112a22,#162721);border-color:#367e5a;color:var(--txt)}
:root[data-theme="dark"] .free-quick-link{background:#173126!important;border-color:#3b8460!important}:root[data-theme="dark"] body.home-page .free-quick-link :is(strong,small),:root[data-theme="dark"] body.home-page .free-quick-link::after{color:#8fe0b7}
:root[data-theme="dark"] body.public-list-page .machine-directory>li[data-release-kind="info"] .full-public-badge{background:#18382a;color:#9ce4be;border-color:#4e8967}
/* Directory contrast: neutral outlines, dark copy and one free-access accent.
   Keep the approved homepage palette and the machine-page colors unchanged. */
body.public-list-page{
  --directory-card:#fffdfa;--directory-text:#142a3d;--directory-sub:#354b5e;
  --directory-border:#859aab;--directory-accent:#0a6a4b;
  --directory-badge-bg:#ddefe6;--directory-badge-text:#064c35;--directory-badge-line:#8aba9f;
  --directory-filter-bg:#e1e9ef;--directory-count-bg:#cad8e3;--directory-count-text:#243f53;
}
:root[data-theme="dark"] body.public-list-page{
  --directory-card:#1c2a37;--directory-text:#f0f5fa;--directory-sub:#c0d0df;
  --directory-border:#647c90;--directory-accent:#83dfb6;
  --directory-badge-bg:#173f30;--directory-badge-text:#aff1ce;--directory-badge-line:#568b70;
  --directory-filter-bg:#15232f;--directory-count-bg:#344b5e;--directory-count-text:#e4eff8;
}
body.public-list-page .machine-list.machine-directory>li>a{
  background:var(--directory-card)!important;color:var(--directory-text);
  border:1px solid var(--directory-border);
}
body.public-list-page .machine-directory>li>a::before{background:#70889b}
body.public-list-page .machine-directory>li[data-public-release="true"]>a::before{background:var(--directory-accent)}
body.public-list-page .machine-directory>li>a:is(:hover,:focus-visible){border-color:var(--directory-accent)}
body.public-list-page .machine-directory :is(small,.machine-card-arrow){color:var(--directory-sub)}
body.public-list-page .machine-directory .full-public-badge,
body.public-list-page .machine-directory>li[data-release-kind="info"] .full-public-badge{
  background:var(--directory-badge-bg);color:var(--directory-badge-text);
  border:1px solid var(--directory-badge-line);
}
/* Match the more specific dark information-only badge rule above. */
:root[data-theme="dark"] body.public-list-page .machine-directory>li[data-release-kind="info"] .full-public-badge{
  background:var(--directory-badge-bg);color:var(--directory-badge-text);border-color:var(--directory-badge-line);
}
body.public-list-page .machine-filter{background:var(--directory-filter-bg);border-color:var(--directory-border)}
body.public-list-page .machine-filter button{color:var(--directory-text)}
body.public-list-page .machine-filter button>span{background:var(--directory-count-bg);color:var(--directory-count-text)}
body.public-list-page .machine-filter button[aria-pressed="true"]{background:#174b78;color:#fff}
body.public-list-page .machine-filter button[data-scope="free"][aria-pressed="true"]{background:#0a6a4b;color:#fff}
body.public-list-page .machine-filter button[aria-pressed="true"]>span{background:#ffffff26;color:#fff}
body.public-list-page .machine-filter-status{color:var(--directory-sub)}
@media(max-width:640px){.free-discovery{grid-template-columns:1fr;gap:15px;padding:19px 18px;margin-bottom:18px;border-radius:12px}.free-discovery h2{font-size:23px!important}.free-count{font-size:35px}.free-count small{font-size:17px}.free-discovery p{font-size:14px}.free-discovery-scope{font-size:12px}.free-discovery-action{justify-content:center;font-size:15px;min-height:48px}.machine-filter{width:100%}.machine-filter button{flex:1;justify-content:center;padding:9px 8px;font-size:14px}.machine-card-heading{gap:7px}.machine-card-arrow{right:14px}}
