/* Website channel controls use the theme's surfaces, typography and native search.
 * Design refinement informed by unslop, Damir Sokolovsky, CC BY 4.0. */
.aw-channel-bar {
    --aw-channel-accent: var(--focus-color, #ff6b19);
    --aw-channel-line: color-mix(in srgb, var(--aw-channel-accent) 20%, transparent);
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(280px, 1.1fr) auto;
    align-items: center;
    gap: 24px;
    padding: 24px 28px;
    margin: 20px 0 24px;
    border: 1px solid var(--aw-channel-line);
    border-left: 4px solid var(--aw-channel-accent);
    color: var(--main-color);
    box-shadow: none;
}
.aw-channel-intro,
.aw-channel-search { min-width: 0; }
.aw-channel-title { display: flex; align-items: center; gap: 12px; }
.aw-channel-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--aw-channel-accent) 9%, transparent);
    color: var(--aw-channel-accent);
    font-size: 22px;
}
.aw-channel-intro h1,
.aw-channel-intro h2 {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--main-color);
    margin: 0;
}
.aw-channel-intro p {
    font-size: 13px;
    color: var(--muted-color);
    line-height: 1.6;
    margin: 8px 0 0;
}
.aw-channel-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    font-size: 12px;
    color: var(--muted-2-color);
    font-variant-numeric: tabular-nums;
}
.aw-channel-stats strong { color: var(--main-color); font-weight: 500; }
.aw-channel-category-count { border-left: 1px solid var(--aw-channel-line); padding-left: 12px; }
.aw-channel-search .search-form { padding: 0; margin: 0; }
.aw-channel-search .line-form {
    margin: 0;
    border: 1px solid var(--aw-channel-line);
    border-radius: 12px;
    background: var(--muted-bg-color, rgba(127, 137, 151, .05));
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.aw-channel-search .line-form:focus-within {
    border-color: var(--aw-channel-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--aw-channel-accent) 10%, transparent);
    background: var(--main-bg-color);
}
.aw-channel-search .search-input-text { padding: 0; }
.aw-channel-search .line-form-input {
    height: 52px;
    width: 100%;
    font-size: 14px;
    padding: 0 60px 0 16px;
    border: 0;
    box-shadow: none;
    color: var(--main-color);
}
.aw-channel-search .line-form-input::placeholder { color: var(--muted-2-color); opacity: 1; }
.aw-channel-search .scale-placeholder,
.aw-channel-search .line-form-line { display: none; }
.aw-channel-search .abs-right { height: 52px; right: 6px; display: flex; align-items: center; }
.aw-channel-search .aw-channel-search-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 8px;
    color: #fff;
    background: var(--aw-channel-accent);
    transition: background-color .18s ease, transform .18s ease;
}
.aw-channel-search .aw-channel-search-button:hover { background: color-mix(in srgb, var(--aw-channel-accent) 86%, #000); }
.aw-channel-search .aw-channel-search-button:active { transform: scale(.96); }
.aw-channel-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--aw-channel-line);
    border-radius: 8px;
    white-space: nowrap;
    font-size: 13px;
    color: var(--main-color);
    transition: background-color .18s ease, border-color .18s ease;
}
.aw-channel-all i { color: var(--aw-channel-accent); transition: transform .18s ease; }
.aw-channel-all:hover { color: var(--main-color); background: var(--muted-bg-color); border-color: var(--aw-channel-accent); }
.aw-channel-all:hover i { transform: translateX(3px); }
.aw-channel-bar a:focus-visible,
.aw-channel-bar button:focus-visible { outline: 2px solid var(--aw-channel-accent); outline-offset: 4px; }
.aw-channel-search .line-form-input:focus-visible { outline: none; }
@media (max-width: 991px) {
    .aw-channel-bar { grid-template-columns: minmax(0, 1fr) auto; gap: 20px 24px; }
    .aw-channel-search { grid-column: 1 / -1; grid-row: 2; }
    .aw-channel-all { grid-column: 2; grid-row: 1; }
}
@media (max-width: 767px) {
    .aw-channel-bar { padding: 20px 16px; margin: 12px 0 20px; gap: 20px 12px; }
    .aw-channel-intro h1,
    .aw-channel-intro h2 { font-size: 24px; }
    .aw-channel-symbol { width: 32px; height: 32px; flex-basis: 32px; font-size: 20px; border-radius: 8px; }
    .aw-channel-intro p { font-size: 12px; }
    .aw-channel-all { font-size: 12px; padding: 0 12px; align-self: start; }
    .aw-channel-search .line-form-input { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
    .aw-channel-bar * { transition: none !important; }
}
