/* Card 1026226 — Catálogo v5. Carregado DEPOIS do MudBlazor (App.razor). Tudo sob .ct-pagina:
   os tokens não vazam. Valores do protótipo `Catálogo v5.dc.html`; desvios deliberados estão no
   plano (contraste do botão primário, cor sólida no topo da pré-visualização). */
.ct-pagina {
    --ink: #16215b; --ink-soft: #465479; --page: #f4f7fb; --white: #fff; --line: #dbe3f0;
    --teal-100: #e6f5f3; --teal-300: #7ed0c7; --teal-500: #12968a; --teal-600: #0d7a70;
    --teal-700: #0a5e57; --teal-900: #06352f;
    --blue-100: #e7edfb; --blue-500: #1b4fb8; --blue-700: #143d94;
    --amber-500: #de9e24;
    --r: 14px; --r-sub: 12px;
    --sombra: 0 10px 30px rgba(22, 33, 91, .08); --sombra-painel: 0 24px 60px rgba(22, 33, 91, .22);
    font-family: "Open Sans", system-ui, sans-serif; font-size: 15px; line-height: 1.5;
    color: var(--ink); background: var(--page); min-height: 100vh;
}
.ct-pagina *, .ct-pagina *::before, .ct-pagina *::after { box-sizing: border-box; }
.ct-pagina a { color: var(--teal-700); text-decoration: none; }
.ct-pagina a:hover { text-decoration: underline; }
.ct-pagina :focus-visible { outline: 2px solid var(--teal-500); outline-offset: 2px; }
.ct-pagina button { font-family: inherit; }

/* ── TOPO (sticky, branco) ── */
.ct-topo { position: sticky; top: 0; z-index: 20; background: var(--white); border-bottom: 1px solid var(--line); }
.ct-topo-in { padding: 10px 20px; display: flex; align-items: center; gap: 12px 20px; min-height: 64px; flex-wrap: wrap; }
.ct-logo { flex: none; display: flex; }
.ct-logo img { height: 32px; display: block; }
.ct-busca { flex: 1 1 280px; min-width: 0; display: flex; align-items: center; background: var(--page);
    border: 1.5px solid var(--line); border-radius: var(--r-sub); padding: 0 12px; }
.ct-busca-ativa { border-color: var(--teal-500); }
.ct-busca-icone { display: flex; color: var(--ink-soft); }
.ct-busca input { flex: 1; min-width: 0; border: none; background: transparent; font: inherit;
    font-size: 14.5px; color: var(--ink); padding: 11px 10px; min-height: 44px; }
.ct-busca input:focus-visible { outline: none; }
.ct-busca:focus-within { outline: 2px solid var(--teal-500); outline-offset: 2px; }
.ct-topo-links { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.ct-topo-links a { font-size: 14px; font-weight: 600; padding: 9px 14px; border-radius: 999px; color: var(--ink);
    min-height: 44px; display: inline-flex; align-items: center; }
.ct-topo-links a:hover { background: var(--page); text-decoration: none; }
.ct-topo-sg { height: 46px; width: auto; display: block; flex: 0 0 auto; }
.ct-topo-conta { display: flex; align-items: center; gap: 12px; flex: none; margin-left: auto; }
.ct-avatar { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px;
    border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; font-size: 16px; }
.ct-sair, .ct-entrar { font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--ink);
    background: transparent; border: none; cursor: pointer; min-height: 44px; padding: 0 8px; display: inline-flex; align-items: center; }
.ct-topo-conta form { margin: 0; }

/* ── CORPO: trilho | (filtros | resultados) ── */
.ct-corpo { display: flex; align-items: stretch; }
.ct-trilho { flex: 0 0 72px; background: var(--ink); position: sticky; top: 64px; align-self: flex-start;
    height: calc(100vh - 64px); padding: 14px 0; display: flex; flex-direction: column; align-items: center;
    gap: 6px; overflow-y: auto; }
.ct-trilho a { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px;
    border-radius: var(--r-sub); color: rgba(255, 255, 255, .72); }
.ct-trilho a:hover { background: rgba(255, 255, 255, .16); color: #fff; text-decoration: none; }
.ct-trilho a[aria-current="page"] { background: rgba(255, 255, 255, .18); color: #fff; }
.ct-trilho :focus-visible { outline-color: var(--teal-300); }
.ct-conteudo { flex: 1 1 auto; min-width: 0; display: flex; align-items: flex-start; }

/* ── FILTROS ── */
.ct-filtros { flex: 0 0 260px; position: sticky; top: 64px; max-height: calc(100vh - 64px); overflow-y: auto;
    padding: 24px 18px 40px 22px; background: var(--white); border-right: 1px solid var(--line); }
.ct-filtros-topo { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ct-filtros-titulo { font-weight: 800; font-size: 17px; }
.ct-link { font-size: 13px; font-weight: 700; border: none; background: transparent; color: var(--teal-700);
    cursor: pointer; padding: 6px 0; min-height: 44px; }
.ct-grupo { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.ct-grupo-cab { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px;
    border: none; background: transparent; cursor: pointer; padding: 0; color: var(--ink); min-height: 44px; }
.ct-rotulo-grupo { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: var(--ink-soft); }
.ct-grupo-dir { display: flex; align-items: center; gap: 8px; }
.ct-badge-n { font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 999px; background: var(--teal-600); color: #fff; }
.ct-mais { font-size: 14px; color: var(--ink-soft); width: 14px; text-align: center; }
.ct-opcoes { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; }
.ct-opcao { display: flex; align-items: center; gap: 10px; padding: 8px; margin: 0 -8px; border-radius: 10px;
    border: none; background: transparent; cursor: pointer; text-align: left; color: var(--ink); min-height: 44px; width: calc(100% + 16px); }
.ct-opcao:hover { background: var(--page); }
.ct-zero { opacity: .45; }
.ct-caixa { flex: none; display: flex; align-items: center; justify-content: center; width: 18px; height: 18px;
    border-radius: 5px; border: 2px solid var(--line); background: var(--white); color: #fff; }
.ct-opcao[aria-checked="true"] .ct-caixa { border-color: var(--teal-500); background: var(--teal-500); }
.ct-logo-marca { flex: none; width: 34px; height: 34px; border-radius: 8px; overflow: hidden;
    border: 1px solid var(--line); background: var(--white); display: flex; align-items: center; justify-content: center; }
.ct-logo-marca img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ct-nome { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.ct-cont { flex: none; font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.ct-chave { justify-content: space-between; }
.ct-trilho-sw { flex: none; position: relative; width: 38px; height: 22px; border-radius: 999px; background: var(--line); transition: background .15s; }
.ct-trilho-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%;
    background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: left .15s; }
.ct-chave[aria-checked="true"] .ct-trilho-sw { background: var(--teal-500); }
.ct-chave[aria-checked="true"] .ct-trilho-sw::after { left: 19px; }
.ct-btn-filtros { display: none; }

/* ── RESULTADOS ── */
.ct-main { flex: 1 1 0; min-width: 0; padding: 26px clamp(16px, 2.6vw, 32px) 80px; }
.ct-titulo-linha { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ct-breadcrumb { font-size: 12px; color: var(--ink-soft); }
.ct-breadcrumb a { color: var(--ink-soft); }
/* O Routes.razor tem FocusOnNavigate no h1: o foco programatico nao deve desenhar contorno num
   titulo que nao e interativo. */
.ct-h1:focus, .ct-h1:focus-visible { outline: none; }
.ct-h1 { font-weight: 800; font-size: clamp(28px, 3.2vw, 38px); line-height: 1.1; letter-spacing: -.025em; margin: 8px 0 0; overflow-wrap: anywhere; }
.ct-controles { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ct-vista { display: flex; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r-sub); padding: 3px; }
.ct-vista button { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 8px 12px;
    border-radius: 9px; border: none; cursor: pointer; background: transparent; color: var(--ink); min-height: 44px; }
.ct-vista button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.ct-ordenar { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 0 6px 0 12px;
    border-radius: var(--r-sub); border: 1.5px solid var(--line); background: var(--white); min-height: 44px; color: var(--ink-soft); }
.ct-ordenar select { font: inherit; font-size: 14px; font-weight: 700; color: var(--ink); border: none; background: transparent;
    padding: 9px 4px; cursor: pointer; min-height: 40px; }

.ct-abas { margin-top: 20px; display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.ct-aba { font-size: 14px; font-weight: 700; padding: 12px 14px; border: none; background: transparent; cursor: pointer;
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: -1px; color: var(--ink-soft);
    border-bottom: 3px solid transparent; min-height: 44px; }
.ct-aba[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.ct-aba .ct-ponto { width: 9px; height: 9px; }
.ct-aba-n { font-size: 12px; font-weight: 800; padding: 1px 8px; border-radius: 999px; background: #eef1f8; color: var(--ink-soft); }
.ct-aba[aria-selected="true"] .ct-aba-n { background: var(--ink); color: #fff; }
.ct-ponto-ink { background: var(--ink); }

.ct-status { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 32px; }
.ct-total { font-size: 14px; color: var(--ink-soft); }
.ct-total strong { color: var(--ink); font-weight: 800; }
.ct-chip { font-size: 13px; font-weight: 600; padding: 5px 8px 5px 12px; border-radius: 999px; cursor: pointer; border: none;
    background: var(--teal-100); color: var(--teal-900); display: inline-flex; align-items: center; gap: 6px; }
.ct-chip span { font-size: 15px; line-height: 1; }

/* Cards */
.ct-grade { margin-top: 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 14px; }
.ct-card { position: relative; display: flex; flex-direction: column; gap: 10px; background: var(--white);
    border-radius: var(--r); padding: 18px 18px 14px; border: 1.5px solid transparent; box-shadow: var(--sombra);
    transition: transform .12s, border-color .12s; min-width: 0; }
.ct-card:hover { border-color: var(--teal-300); transform: translateY(-2px); }
.ct-card.ct-aberto { border-color: var(--teal-500); }
.ct-card:has(.ct-abrir:focus-visible) { outline: 2px solid var(--teal-500); outline-offset: 2px; }
.ct-card-topo { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ct-pilar { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 800; letter-spacing: .1em;
    text-transform: uppercase; color: var(--ink); }
.ct-ponto { width: 9px; height: 9px; border-radius: 50%; background: var(--cor, var(--ink)); flex: none; }
.ct-card-estrela { position: relative; z-index: 2; }
.ct-card-titulo, .ct-linha-titulo { margin: 0; font-weight: 800; font-size: 17.5px; line-height: 1.25; letter-spacing: -.01em; }
.ct-abrir { all: unset; cursor: pointer; overflow-wrap: anywhere; }
.ct-abrir::after { content: ""; position: absolute; inset: 0; border-radius: var(--r); }
.ct-badge { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 7px;
    background: var(--blue-100); color: var(--blue-700); overflow-wrap: anywhere; }
.ct-card-desc { font-size: 14px; line-height: 1.45; color: var(--ink-soft); margin: 0; display: -webkit-box;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.ct-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.ct-tag { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #eef1f8; color: var(--ink); }
.ct-tag-mais { background: var(--white); border: 1px solid var(--line); font-weight: 700; color: var(--ink-soft); }
.ct-tag-obrigatoria { background: var(--blue-100); color: var(--blue-700); }
.ct-card-rodape { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px;
    border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-soft); margin-top: auto; }
.ct-card-cta { font-weight: 800; letter-spacing: .06em; color: var(--teal-700); }
.ct-card-estrela .mud-icon-button { width: 44px; height: 44px; margin: -8px -8px -8px 0; }

/* Lista */
.ct-lista { margin-top: 14px; background: var(--white); border-radius: var(--r); box-shadow: var(--sombra); overflow: hidden; }
.ct-linha { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; padding: 14px 18px;
    border-bottom: 1px solid var(--line); border-left: 4px solid var(--cor, var(--ink)); background: var(--white); }
.ct-linha:hover { background: var(--page); }
.ct-linha.ct-aberto { background: var(--teal-100); }
.ct-linha .ct-abrir::after { border-radius: 0; }
.ct-linha-texto { flex: 999 1 280px; min-width: 0; }
.ct-linha-titulo { font-size: 15.5px; line-height: 1.3; letter-spacing: 0; }
.ct-linha-desc { font-size: 13.5px; color: var(--ink-soft); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-pilar-selo { flex: 0 0 auto; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
    padding: 4px 9px; border-radius: 999px; color: var(--ink);
    background: color-mix(in srgb, var(--cor, var(--ink)) 16%, #fff); }
.ct-linha-cats { flex: 1 1 180px; min-width: 0; font-size: 13px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-linha-arq { flex: 0 0 84px; font-size: 12.5px; color: var(--ink-soft); }
.ct-seta { flex: none; color: var(--ink-soft); font-size: 18px; }

/* Estado vazio e carregamento */
.ct-vazio { margin-top: 14px; background: var(--white); border-radius: var(--r); box-shadow: var(--sombra); padding: 36px 30px; max-width: 620px; }
.ct-vazio-titulo { font-weight: 800; font-size: 21px; line-height: 1.2; margin: 0; }
.ct-vazio p { font-size: 15px; line-height: 1.5; color: var(--ink-soft); margin: 10px 0 0; }
.ct-vazio-acoes { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.ct-btn-primario, .ct-btn-secundario { font-size: 14px; font-weight: 700; padding: 12px 18px; border-radius: var(--r);
    cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; }
.ct-btn-primario { border: none; background: var(--teal-600); color: #fff; }
.ct-pagina a.ct-btn-primario { color: #fff; }
.ct-btn-primario:hover { background: var(--teal-700); text-decoration: none; }
.ct-btn-secundario { border: 1.5px solid var(--line); background: var(--white); color: var(--ink); }
.ct-btn-secundario:hover { border-color: var(--teal-300); }
.ct-esqueleto { margin-top: 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 14px; }
.ct-esqueleto > div { height: 200px; border-radius: var(--r); background: linear-gradient(90deg, #e9eef7, #f4f7fb, #e9eef7); }

/* ── PRÉ-VISUALIZAÇÃO ── */
.ct-fundo { position: fixed; inset: 0; z-index: 40; background: rgba(22, 33, 91, .35); }
.ct-preview { position: fixed; top: 0; right: 0; bottom: 0; z-index: 41; width: min(460px, 100%); background: var(--white);
    box-shadow: var(--sombra-painel); display: flex; flex-direction: column; outline: none; }
.ct-prev-topo { position: relative; padding: 22px 24px; }
.ct-prev-topo :focus-visible { outline-color: currentColor; }
.ct-fechar { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 10px; border: none;
    background: rgba(255, 255, 255, .22); color: inherit; font-size: 22px; cursor: pointer; }
.ct-prev-pilar { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.ct-prev-nome { font-weight: 800; font-size: 23px; line-height: 1.2; letter-spacing: -.015em; margin: 8px 0 0; padding-right: 44px; overflow-wrap: anywhere; }
.ct-prev-badge { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 7px; background: rgba(255, 255, 255, .25); }
.ct-prev-corpo { flex: 1; overflow-y: auto; padding: 22px 24px; display: flex; flex-direction: column; gap: 20px; }
.ct-prev-corpo p { font-size: 15.5px; line-height: 1.5; margin: 0; overflow-wrap: anywhere; }
.ct-chipes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ct-chip-info { font-size: 13px; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: #eef1f8; color: var(--ink); }
.ct-chip-info.ct-g-marca { background: var(--blue-100); color: var(--blue-700); }
.ct-chip-info.ct-g-seg { background: var(--teal-100); color: var(--teal-900); }
.ct-prev-meta { font-size: 13px; color: var(--ink-soft); }
.ct-prev-rodape { padding: 16px 24px; border-top: 1px solid var(--line); display: flex; gap: 10px; flex-wrap: wrap; }
.ct-prev-rodape .ct-btn-primario { flex: 1 1 auto; }
.ct-prev-fav .sd-btn-hero { background: var(--white); color: var(--ink); border: 1.5px solid var(--line);
    border-radius: var(--r); padding: 13px 16px; font: 700 14px "Open Sans", system-ui, sans-serif; min-height: 44px; }
.ct-prev-fav .sd-btn-hero:hover:not(:disabled) { background: var(--page); }

/* ── < 760px ── */
@media (max-width: 759.98px) {
    .ct-trilho, .ct-topo-links, .ct-topo-sg { display: none; }
    .ct-topo-in { padding: 8px 16px; }
    .ct-conteudo { flex-direction: column; align-items: stretch; }
    .ct-btn-filtros { display: flex; align-items: center; justify-content: center; gap: 8px; width: calc(100% - 32px);
        margin: 14px 16px 0; min-height: 48px; border-radius: var(--r-sub); border: 1.5px solid var(--ink);
        background: var(--white); color: var(--ink); font-size: 14.5px; font-weight: 700; cursor: pointer; }
    .ct-filtros { display: none; flex: none; position: static; max-height: none; overflow: visible; width: 100%;
        border-right: none; border-bottom: 1px solid var(--line); }
    .ct-filtros.ct-filtros-aberto { display: block; }
    .ct-main { padding: 20px 16px 64px; }
    .ct-preview { width: 100%; }
    .ct-chip { min-height: 44px; }
    /* Alvos de toque de 44px (medidos na verificação a 390/360: logo 32px, select 40px). */
    .ct-logo { min-height: 44px; align-items: center; }
    .ct-ordenar select { min-height: 44px; }
    .ct-linha-arq, .ct-linha-cats { flex: 1 1 100%; }
}
