:root {
  --tcat-ink: #191714;
  --tcat-muted: #68635d;
  --tcat-paper: #f7f4ef;
  --tcat-card: #ffffff;
  --tcat-accent: #74462f;
  --tcat-accent-dark: #4f2f20;
  --tcat-line: #e4ddd4;
  --tcat-soft: #eee6dc;
  --tcat-radius: 22px;
  --tcat-shadow: 0 18px 50px rgba(53, 37, 25, .12);
}
.tcat-shell { background: var(--tcat-paper); color: var(--tcat-ink); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.55; }
.tcat-shell *, .tcat-shell *::before, .tcat-shell *::after { box-sizing: border-box; }
.tcat-container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.tcat-hero { color: #fff; background: radial-gradient(circle at 83% 18%, rgba(255,255,255,.17), transparent 22%), linear-gradient(128deg, #1b1816 0%, #4b3325 60%, #98613f 100%); padding: 92px 0 76px; overflow: hidden; position: relative; }
.tcat-hero::after { content: ""; position: absolute; width: 430px; height: 430px; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); right: -110px; bottom: -230px; box-shadow: 0 0 0 60px rgba(255,255,255,.035), 0 0 0 120px rgba(255,255,255,.02); }
.tcat-hero-grid { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 55px; position: relative; z-index: 1; }
.tcat-eyebrow { margin: 0 0 14px; text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 800; opacity: .78; }
.tcat-hero h1, .tcat-viewer-head h1 { font-family: Georgia, "Times New Roman", serif; letter-spacing: -.045em; line-height: 1; margin: 0; }
.tcat-hero h1 { font-size: clamp(44px, 7vw, 76px); }
.tcat-hero-copy { max-width: 700px; margin: 22px 0 0; font-size: 18px; color: rgba(255,255,255,.8); }
.tcat-hero-count { border-left: 1px solid rgba(255,255,255,.28); padding-left: 30px; min-width: 155px; }
.tcat-hero-count strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 64px; line-height: .9; }
.tcat-hero-count span { display: block; margin-top: 10px; color: rgba(255,255,255,.72); font-size: 13px; }
.tcat-main { padding: 52px 0 90px; }
.tcat-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 28px; }
.tcat-search { flex: 1 1 260px; max-width: 420px; }
.tcat-search input { width: 100%; min-height: 46px; border: 1px solid var(--tcat-line); border-radius: 999px; background: #fff; padding: 0 18px; color: var(--tcat-ink); box-shadow: none; }
.tcat-search input:focus { outline: 3px solid rgba(116,70,47,.18); border-color: var(--tcat-accent); }
.tcat-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.tcat-filters button { border: 1px solid var(--tcat-line); background: #fff; color: var(--tcat-ink); border-radius: 999px; padding: 9px 14px; font-weight: 750; font-size: 13px; cursor: pointer; }
.tcat-filters button:hover, .tcat-filters button:focus-visible, .tcat-filters button.is-active { background: var(--tcat-accent-dark); border-color: var(--tcat-accent-dark); color: #fff; }
.tcat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tcat-card { background: var(--tcat-card); border: 1px solid var(--tcat-line); border-radius: var(--tcat-radius); overflow: hidden; display: flex; flex-direction: column; min-width: 0; transition: transform .2s ease, box-shadow .2s ease; }
.tcat-card:hover { transform: translateY(-5px); box-shadow: var(--tcat-shadow); }
.tcat-card[hidden] { display: none !important; }
.tcat-cover-link { display: block; text-decoration: none; }
.tcat-cover { aspect-ratio: 4 / 3; background: var(--tcat-soft); overflow: hidden; position: relative; }
.tcat-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.tcat-card:hover .tcat-cover img { transform: scale(1.025); }
.tcat-cover-placeholder { width: 100%; height: 100%; display: grid; place-items: end start; padding: 28px; background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.42), transparent 24%), linear-gradient(135deg, #d8c3af, #8b6248); color: #fff; }
.tcat-cover-placeholder span { max-width: 90%; font-family: Georgia, "Times New Roman", serif; font-size: clamp(24px, 3vw, 34px); line-height: 1.05; }
.tcat-view-chip { position: absolute; right: 14px; bottom: 14px; background: rgba(24,20,17,.86); color: #fff; border-radius: 999px; padding: 8px 11px; font-size: 11px; font-weight: 800; backdrop-filter: blur(8px); }
.tcat-card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.tcat-card-category { text-transform: uppercase; letter-spacing: .1em; font-size: 11px; font-weight: 850; color: var(--tcat-accent); margin: 0 0 9px; }
.tcat-card h2 { font-size: 22px; line-height: 1.16; letter-spacing: -.025em; margin: 0 0 10px; }
.tcat-card h2 a { color: inherit; text-decoration: none; }
.tcat-description { color: var(--tcat-muted); font-size: 14px; margin: 0 0 16px; }
.tcat-card-meta, .tcat-meta-copy { color: var(--tcat-muted); font-size: 12px; margin: auto 0 18px; }
.tcat-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: auto; }
.tcat-button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 0 15px; text-decoration: none !important; font-size: 13px; font-weight: 800; transition: transform .15s ease, background .15s ease; }
.tcat-button:hover { transform: translateY(-1px); }
.tcat-button-primary { background: var(--tcat-accent-dark); color: #fff !important; }
.tcat-button-secondary { background: #fff; color: var(--tcat-accent-dark) !important; border: 1px solid var(--tcat-line); }
.tcat-pending { min-height: 42px; display: inline-flex; align-items: center; color: var(--tcat-muted); font-size: 12px; font-weight: 750; }
.tcat-no-results, .tcat-empty-state { text-align: center; background: #fff; border: 1px solid var(--tcat-line); border-radius: var(--tcat-radius); padding: 50px 28px; }
.tcat-viewer-page { min-height: 70vh; padding: 48px 0 80px; }
.tcat-back { display: inline-block; color: var(--tcat-accent-dark); font-weight: 800; text-decoration: none; margin-bottom: 26px; }
.tcat-viewer-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 25px; }
.tcat-viewer-head .tcat-eyebrow { color: var(--tcat-accent); opacity: 1; }
.tcat-viewer-head h1 { font-size: clamp(38px, 5vw, 60px); }
.tcat-meta-copy { margin: 12px 0 0; }
.tcat-pdf-frame { width: 100%; height: min(82vh, 920px); min-height: 620px; border: 1px solid var(--tcat-line); border-radius: 18px; overflow: hidden; background: #4a4a4a; box-shadow: var(--tcat-shadow); }
.tcat-pdf-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.tcat-mobile-fallback { color: var(--tcat-muted); font-size: 13px; margin: 13px 0 0; }
.tcat-mobile-fallback a { color: var(--tcat-accent-dark); font-weight: 750; }
@media (max-width: 940px) { .tcat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .tcat-container { width: min(100% - 28px, 1180px); }
  .tcat-hero { padding: 68px 0 58px; }
  .tcat-hero-grid { grid-template-columns: 1fr; align-items: start; gap: 28px; }
  .tcat-hero-count { border-left: 0; border-top: 1px solid rgba(255,255,255,.25); padding: 22px 0 0; }
  .tcat-hero-count strong { font-size: 48px; }
  .tcat-toolbar { align-items: stretch; }
  .tcat-search { max-width: none; }
  .tcat-filters { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 3px; }
  .tcat-filters button { white-space: nowrap; }
  .tcat-grid { grid-template-columns: 1fr; }
  .tcat-viewer-head { align-items: flex-start; flex-direction: column; }
  .tcat-viewer-head .tcat-button { width: 100%; }
  .tcat-pdf-frame { min-height: 540px; height: 72vh; border-radius: 12px; }
}
