/* The homepage's category cards, extended into a full directory. */
.catalog-hero{background:var(--yellow);padding:54px 0 42px;border-bottom:2px solid var(--black)}
.catalog-kicker{display:block;font-size:12px;font-weight:850;letter-spacing:.12em;margin-bottom:14px}
.catalog-hero h1{font-size:clamp(38px,5.1vw,68px);font-weight:900;line-height:1.02;letter-spacing:-.055em;max-width:1000px;margin:0}
.catalog-hero p{font-size:18px;line-height:1.6;max-width:670px;margin:20px 0 26px;color:var(--black)}
.catalog-search{display:flex;align-items:center;border:2px solid var(--black);background:white;max-width:800px;box-shadow:4px 4px 0 var(--black);padding:5px;gap:14px}
.catalog-search>.icon{width:24px;height:24px;margin-left:12px;flex-shrink:0}
.catalog-search input{border:0;min-width:0;flex:1;font-size:16px;padding:12px 0;outline:none}
.catalog-search:focus-within{outline:3px solid var(--blue);outline-offset:4px}
.catalog-search .button{min-height:48px;padding:12px 22px}
.catalog-hero-meta{display:flex;gap:28px;margin-top:24px;font-size:14px}
.catalog-hero-meta strong{font-weight:850}
.catalog-content{padding-top:48px;padding-bottom:56px}
.catalog-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}
.catalog-heading h2{font-size:30px;line-height:1.15;letter-spacing:-.035em;font-weight:850}
.catalog-heading p{font-size:14px;color:#444;white-space:nowrap}
.catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.catalog-card{min-width:0;padding:22px 20px;min-height:130px;align-items:flex-start}
.catalog-card>.category-icon{width:36px;height:36px;margin-top:2px}
.catalog-card-body{min-width:0;flex:1;display:block}
.catalog-card h3{font-size:18px;line-height:1.25;margin:0 0 7px}
.catalog-card-topics{display:block;font-size:13px;line-height:1.6;color:#333;margin-bottom:8px}
.catalog-card-meta{display:block;font-size:12px;color:#444;font-weight:550}
.catalog-card>.catalog-card-arrow{width:18px;height:18px;flex-shrink:0;margin-top:3px;transition:transform .15s}
.catalog-card:hover{background:var(--yellow);border-color:var(--black)}
.catalog-card:hover>.catalog-card-arrow{transform:translateX(3px)}
.catalog-card:focus-visible,.category-topic:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
.catalog-card[hidden],.catalog-empty[hidden]{display:none!important}
.catalog-empty{padding:44px 26px;text-align:center;border:2px solid var(--black);background:#f7f7f7}
.catalog-empty h3{font-size:25px;font-weight:850;letter-spacing:-.025em}
.catalog-empty p{font-size:16px;margin:12px auto 24px;max-width:550px}
.catalog-bottom{background:var(--yellow);padding:32px;display:flex;align-items:center;justify-content:space-between;gap:24px;border:2px solid var(--black);box-shadow:5px 5px 0 var(--black);margin-bottom:64px}
.catalog-bottom h2{font-size:30px;line-height:1.15;letter-spacing:-.035em;font-weight:850}
.catalog-bottom p{font-size:15px;line-height:1.6;margin-top:10px}
.catalog-bottom .catalog-kicker{font-size:10px;margin-bottom:10px}
.catalog-bottom .button{white-space:nowrap;flex-shrink:0}
.catalog-breadcrumb{display:flex;gap:12px;flex-wrap:wrap;font-size:14px;margin-bottom:28px}
.catalog-breadcrumb a{text-decoration:underline;text-underline-offset:3px}
.category-detail-title{display:flex;align-items:center;gap:24px}
.category-detail-title>.icon{width:70px;height:70px;flex-shrink:0}
.category-detail-hero h1{font-size:clamp(36px,4.8vw,62px)}
.category-topic-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.category-topic{border:2px solid #dfdfdf;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;min-width:0}
.category-topic:hover{border-color:var(--black);background:var(--yellow)}
.category-topic strong{display:block;font-size:15px;font-weight:750;line-height:1.3;overflow-wrap:anywhere}
.category-topic small{display:block;font-size:12px;margin-top:5px;color:#444}
.category-topic>.icon{height:18px;width:18px;flex-shrink:0}
.category-topics{margin-bottom:44px}
.category-sort{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.category-sort label{font-weight:700;font-size:13px}
.category-sort select{font:inherit;background:white;border:2px solid var(--black);padding:10px;max-width:100%}
.category-sort .button{min-height:42px;padding:9px 18px;font-size:13px}
.category-table-wrap{overflow:auto;border:2px solid var(--black)}
.category-table{width:100%;border-collapse:collapse;min-width:650px}
.category-table th,.category-table td{text-align:left;padding:18px 16px;border-bottom:1px solid #ddd;font-size:15px;font-variant-numeric:tabular-nums;white-space:nowrap}
.category-table thead th{background:#f7f7f7;border-bottom:2px solid var(--black);font-size:13px}
.category-table tbody th{max-width:360px;white-space:normal;overflow-wrap:anywhere;font-weight:800}
.category-table tbody th a:hover{color:var(--blue)}
.category-table tbody tr:last-child>*{border-bottom:0}
.catalog-pagination{display:flex;align-items:center;justify-content:flex-end;gap:18px;margin-top:24px}
.catalog-not-found h1{font-size:48px;font-weight:900;letter-spacing:-.04em}
.catalog-not-found p{font-size:18px;margin:20px 0}
.categories .catalog-card{min-height:145px;padding:18px 16px}
.categories .catalog-card h3{font-size:17px}
.categories .catalog-card-topics{font-size:12px}
.categories .catalog-card>.catalog-card-arrow{display:none}
@media(max-width:1000px){.catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.catalog-heading{align-items:flex-start;flex-direction:column;gap:12px}.category-topic-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){.catalog-hero{padding:32px 0}.catalog-hero p{font-size:16px;margin:18px 0 22px}.catalog-search{gap:8px}.catalog-search input{font-size:14px}.catalog-search .button{font-size:14px;padding:12px 14px}.catalog-search .button>.icon{display:none}.catalog-search>.icon{margin-left:6px;width:20px;height:20px}.catalog-content{padding-top:32px;padding-bottom:36px}.catalog-heading h2{font-size:27px}.catalog-grid{grid-template-columns:1fr;gap:12px}.catalog-card{padding:18px;min-height:110px}.catalog-bottom{flex-direction:column;align-items:stretch;padding:24px;margin-bottom:40px}.catalog-bottom h2{font-size:27px}.catalog-bottom .button{justify-content:center}.category-topic-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.category-topic{padding:12px;gap:6px}.category-topic strong{font-size:14px}.category-detail-title{gap:14px}.category-detail-title>.icon{height:42px;width:42px}.catalog-breadcrumb{font-size:13px;margin-bottom:22px}.catalog-hero-meta{font-size:13px;gap:20px}.category-sort{width:100%}.category-sort select{flex:1;min-width:0}.catalog-pagination{justify-content:center}.categories .catalog-card{min-height:105px}}

/* Semantic guides stay secondary to the live hashtag tables. */
.category-guide{display:grid;grid-template-columns:1fr 1fr;gap:44px;padding:36px;background:var(--yellow);border:2px solid var(--black);margin-top:48px}
.category-guide h2,.category-related h2,.category-faq h2{font-size:30px;font-weight:850;letter-spacing:-.035em;line-height:1.2;margin-bottom:20px}
.category-guide h3{font-size:21px;line-height:1.3;margin-bottom:16px}
.category-guide p,.category-related p,.category-faq p{font-size:17px;line-height:1.7;margin:12px 0;color:var(--black)}
.category-guide a,.category-related p a{font-size:16px;font-weight:700;text-decoration:underline;text-underline-offset:4px}
.category-related,.category-faq{margin-top:48px}
.category-related-links{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px}
.category-related-links a{padding:12px 16px;border:2px solid var(--black);font-weight:650;line-height:1.4}
.category-related-links a:hover{background:var(--yellow)}
.category-faq details{border-top:1px solid #bbb;padding:20px 0}
.category-faq details:last-child{border-bottom:1px solid #bbb}
.category-faq summary{font-size:19px;line-height:1.5;font-weight:700;cursor:pointer}
.category-faq p{max-width:900px}
@media(max-width:700px){.category-guide{grid-template-columns:1fr;gap:20px;padding:24px 20px}.category-guide h2,.category-related h2,.category-faq h2{font-size:26px}.category-faq summary{font-size:18px}.category-detail-title{align-items:flex-start}}

/* Public category tables: count first, rounded percentage alongside. */
.category-table{min-width:920px}
.category-table th,.category-table td{padding:16px 12px;font-size:14px}
.category-table thead th{font-size:12px}
.category-table tbody th{max-width:280px;min-width:180px}
.category-table .category-growth{white-space:nowrap;font-weight:700}
.category-growth.is-positive{color:#008846}
.category-growth.is-negative{color:#c52c35}
.category-growth.is-flat{color:var(--black)}
.category-growth.is-unavailable{color:#626874;font-weight:500}
.category-growth span{font-size:12px;font-weight:600}

.category-tag-label{display:flex;align-items:center;gap:9px}
.category-tag-label>a{min-width:0;overflow-wrap:anywhere}
.category-rising{display:inline-flex;align-items:center;gap:5px;flex-shrink:0;background:var(--yellow);color:var(--black);padding:4px 7px;font-size:11px;font-weight:800;line-height:1.25;letter-spacing:0;white-space:nowrap}
.category-rising .icon{width:14px;height:14px}
