/* Shared, compact components. Same markup and dimensions on every directory page. */
:root{--choice-surface:#f8fafd;--choice-selected:#eef4fb;--choice-line:#b8c9de;--card-line:#dce3ed;--card-muted:#566780}

/* Native checkboxes remain keyboard-operable; the whole labelled field is clickable. */
body label.choice-control{display:flex;align-items:center;gap:10px;min-height:48px;margin:0;padding:10px 12px;border:1px solid var(--choice-line);border-radius:10px;background:var(--choice-surface);color:var(--navy);font-size:13px;font-weight:500;line-height:1.8;cursor:pointer;transition:background-color .16s,border-color .16s}
body label.choice-control:hover{border-color:#809bbc}
body label.choice-control:has(:checked){background:var(--choice-selected);border-color:#91accd}
body label.choice-control:has(:disabled){opacity:.6;cursor:not-allowed}
body label.choice-control input[type=checkbox]{appearance:none;display:inline-block;flex:0 0 20px;width:20px;height:20px;min-height:20px;padding:0;margin:0;border:1.5px solid #8296af;border-radius:5px;background:#fff;box-shadow:none;cursor:inherit}
body label.choice-control input[type=checkbox]:checked{background-color:var(--navy);border-color:var(--navy);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 10 3 3 7-7'/%3E%3C/svg%3E");background-size:18px;background-position:center;background-repeat:no-repeat}
body label.choice-control input[type=checkbox]:focus-visible{outline:2px solid var(--navy);outline-offset:3px}
.field .field-label{display:block;font-size:14px;font-weight:650;line-height:1.9;margin:0}
.category-detail .category-status{align-self:start}
.category-detail #category-sort_order,.category-status .choice-control{height:54px;min-height:54px}
.category-status .choice-help{display:block;margin:0;font-size:12px;line-height:1.9;color:var(--card-muted)}
.industry-choice-list label.choice-control{padding:10px 12px;min-height:48px}
.category-url-change label.choice-control{margin-top:10px}
.ad-detail-heading .choice-control{flex-shrink:0;font-size:13px}
@media(forced-colors:active){body label.choice-control input[type=checkbox]{appearance:auto;background-image:none}body label.choice-control:has(:checked){border-color:Highlight}}

/* Search action is part of the input frame; the action retains a 44px target. */
.category-search{display:block}
.search-control{position:relative;width:100%;min-width:0}
.category-search .search-control input{width:100%;padding-inline-end:56px!important}
.category-search .search-control .icon-button{position:absolute;inset-inline-end:2px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:44px;height:44px;min-height:44px;padding:0;border:0;border-inline-start:1px solid #dce3ed;border-radius:8px;background:transparent;color:var(--navy)}
.category-search .search-control .icon-button:hover{background:#e6edf6}
.category-search .search-control .icon-button .icon{width:19px;height:19px}
.search-industry-control{display:flex;align-items:center;gap:8px;min-width:0}
.search-industry-control select{flex:1;min-width:0}
.industry-browse{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex-shrink:0;min-height:50px;padding:8px 10px;border:1px solid #c8d5e5;border-radius:10px;background:#fff;color:var(--navy);font-size:12px;line-height:1.6;white-space:nowrap}
.industry-browse:hover{background:#f7faff;border-color:#8da7c9}
.industry-browse .icon{width:15px;height:15px}

/* One factory card, including estate pages and home. No page-specific size variants. */
.factory-list,.estate-factories .factory-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;border:0;padding:0}
.factory-card.factory-card--compact{min-width:0;padding:0;border:1px solid var(--card-line);border-radius:12px;background:#fff;box-shadow:none;display:flex;flex-direction:column;transition:border-color .16s}
.factory-card.factory-card--compact:hover{border-color:#9db2cc;box-shadow:none}
.factory-card--compact .factory-card-media{position:relative;height:132px;margin:0;flex-shrink:0;border-radius:11px 11px 0 0;background:#f0f4f8;overflow:visible}
.factory-card--compact .factory-card-cover-link{display:block;width:100%;height:100%;overflow:hidden;border-radius:inherit}
.factory-card--compact .factory-cover{width:100%;height:100%;object-fit:cover;border-radius:0}
.factory-card--compact .factory-card-media.no-cover{display:grid;place-items:center;background:#f0f4f8}
.factory-card--compact .cover-placeholder .icon{width:34px;height:34px;color:#8398b3}
.factory-card--compact .factory-card-body{display:flex;flex-direction:column;align-items:stretch;flex:1;min-width:0;padding:40px 14px 14px;gap:0}
.factory-card-identity{display:flex;align-items:center;gap:10px;min-width:0;margin-bottom:10px}
.factory-card--compact .factory-card-media .factory-card-logo{position:absolute;inset:auto;inset-inline-start:14px;bottom:-28px;z-index:1;display:flex;align-items:center;justify-content:center;width:56px;height:56px;padding:5px;background:#fff;border:1px solid var(--card-line);border-radius:10px;box-shadow:0 0 0 3px #fff}
.factory-card--compact .factory-card-logo img{width:100%;height:100%;object-fit:contain}
.factory-card-heading{min-width:0;flex:1;display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px}
.factory-card--compact .factory-card-title{flex:1 1 auto;min-width:0;gap:5px;margin:0;align-items:center}
.factory-card--compact .factory-card-title h3{font-size:17px;font-weight:700;line-height:1.7;margin:0;overflow-wrap:anywhere}
.factory-card--compact .factory-card-title .verified-badge.compact{min-height:20px}
.factory-card--compact .factory-card-title .verified-badge.compact>.icon{width:18px;height:18px}
.factory-card--compact .industry-chip{display:inline-flex;flex:0 1 auto;max-width:100%;min-height:0;color:var(--card-muted);background:#f6f8fb;border:1px solid #e4eaf2;border-radius:5px;padding:2px 7px;font-size:11px;line-height:1.8;overflow-wrap:anywhere}
.factory-card--compact .industry-chip:hover{background:#edf2f8;border-color:#c6d3e4;text-decoration:none;color:var(--navy)}
.factory-card--compact .card-location{margin:0;display:flex;align-items:center;gap:6px;font-size:12px;line-height:1.9;color:var(--card-muted)}
.factory-card--compact .card-location>.icon{width:15px;height:15px;flex-shrink:0}
.factory-card--compact .card-location a{overflow-wrap:anywhere}
.factory-card--compact .factory-card-summary{font-size:13px;line-height:1.8;min-height:46.8px;margin:8px 0 12px;color:var(--card-muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.factory-card--compact .card-cta{min-height:44px;margin-top:auto;padding:8px 12px;gap:8px;border:1px solid #ccd8e7;border-radius:8px;background:#fff;color:var(--navy);font-size:13px;font-weight:600;line-height:1.6;box-shadow:none}
.factory-card--compact .card-cta .icon{width:17px;height:17px}
.factory-card--compact .card-cta:hover,.factory-card--compact .card-cta:focus-visible{background:#f0f5fb;border-color:#90a8c8;color:var(--navy);box-shadow:none}
.factory-card.factory-card--compact>.factory-card-meta{display:flex;flex-direction:row;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px 12px;padding:9px 14px;margin:0;border-top:1px solid var(--card-line);font-size:12px;line-height:1.8;color:var(--card-muted)}
.factory-card--compact .factory-card-meta>span{gap:4px}
.factory-card--compact .factory-card-meta .icon{width:14px;height:14px}
.factory-card--compact .factory-card-meta small{font-size:11px}
@media(max-width:1099px){.factory-list,.estate-factories .factory-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:699px){.factory-list,.estate-factories .factory-list{grid-template-columns:1fr;gap:16px}.industry-browse{min-height:50px;padding-inline:10px}}
@media(prefers-reduced-motion:reduce){body label.choice-control,.factory-card.factory-card--compact{transition:none}}
