/* ================================================================
   PERIOD TABS + DIGEST CARDS  —  prepended to frontend.css
   ================================================================ */


/* ── Period tab switcher ─────────────────────────────────────── */
.tca-period-tabs {
    display: flex;
    gap: 10px;
    margin: 22px 0 0;
    flex-wrap: wrap;
}
.tca-period-tab {
    flex: 1;
    min-width: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 16px 12px 13px;
    background: #fff;
    border: 2px solid var(--bdr);
    border-radius: 14px;
    cursor: pointer;
    transition: all .18s;
    position: relative;
    text-align: center;
}
.tca-period-tab:hover {
    border-color: var(--p);
    background: var(--p-lt);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(26,111,255,.12);
}
.tca-period-active {
    background: var(--p) !important;
    border-color: var(--p) !important;
    box-shadow: 0 6px 22px rgba(26,111,255,.30) !important;
    transform: translateY(-3px) !important;
}
.tca-period-active .tca-ptab-main,
.tca-period-active .tca-ptab-sub { color: #fff !important; }
.tca-period-active .tca-ptab-badge {
    background: rgba(255,255,255,.25) !important;
    color: #fff !important;
}
.tca-ptab-icon  { font-size: 24px; line-height: 1; }
.tca-ptab-main  {
    font-size: 15px;
    font-weight: 800;
    color: var(--txt);
    line-height: 1.1;
    margin-top: 2px;
}
.tca-ptab-sub {
    font-size: 11px;
    color: var(--mut);
    font-weight: 500;
    line-height: 1.3;
}
.tca-ptab-badge {
    position: absolute;
    top: 8px; right: 8px;
    background: #eef4ff;
    color: var(--p);
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 20px;
    line-height: 1.4;
    min-width: 22px;
    text-align: center;
}

/* ── Period panels ───────────────────────────────────────────── */
.tca-period-panel {
    animation: tcaSlideIn .22s ease;
}
.tca-period-panel[hidden] { display: none !important; }
@keyframes tcaSlideIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0);   }
}

/* ── Digest panel header ─────────────────────────────────────── */
.tca-digest-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 22px 0 16px;
}
.tca-digest-section-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--txt);
    margin: 0 0 4px;
    line-height: 1.2;
}
.tca-digest-section-sub {
    font-size: 13px;
    color: var(--mut);
    margin: 0;
    line-height: 1.5;
}
.tca-digest-count-chip {
    white-space: nowrap;
    font-size: 12px;
    font-weight: 700;
    color: var(--p);
    background: var(--p-lt);
    border: 1.5px solid rgba(26,111,255,.2);
    border-radius: 20px;
    padding: 5px 14px;
    flex-shrink: 0;
    align-self: center;
}

/* ── Digest card grid ────────────────────────────────────────── */
.tca-digest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
    padding-bottom: 24px;
}
.tca-digest-grid-monthly {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* ── Individual digest card ──────────────────────────────────── */
.tca-digest-card {
    position: relative;
    background: #fff;
    border: 1.5px solid var(--bdr);
    border-radius: 16px;
    padding: 20px 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all .18s;
    overflow: hidden;
}
.tca-digest-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--p), #6366f1);
    border-radius: 16px 16px 0 0;
}
.tca-digest-monthly::before {
    background: linear-gradient(90deg, #0ea5e9, #6366f1);
}
.tca-digest-card:hover {
    border-color: var(--p);
    box-shadow: 0 8px 30px rgba(26,111,255,.13);
    transform: translateY(-3px);
}

/* Badge top-right */
.tca-digest-badge {
    position: absolute;
    top: 14px; right: 14px;
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    line-height: 1.4;
}
.tca-badge-new  { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.tca-badge-live { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }

/* Card top row: icon + week chip */
.tca-digest-card-top {
    display: flex;
    align-items: center;
    gap: 10px;
}
.tca-digest-icon {
    font-size: 28px;
    line-height: 1;
}
.tca-digest-week-chip {
    font-size: 11px;
    font-weight: 700;
    color: var(--p);
    background: var(--p-lt);
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: .3px;
    border: 1px solid rgba(26,111,255,.2);
}

/* Monthly block (replaces icon row for monthly cards) */
.tca-digest-month-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    border-radius: 12px;
    color: #fff;
    flex-shrink: 0;
}
.tca-month-abbr {
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.tca-month-year {
    font-size: 10.5px;
    font-weight: 600;
    opacity: .85;
    line-height: 1.2;
}

/* Title */
.tca-digest-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--txt);
    margin: 0;
    line-height: 1.35;
}

/* Date range */
.tca-digest-range {
    font-size: 12.5px;
    color: var(--mut);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    line-height: 1.4;
}
.tca-range-icon { font-size: 13px; }

/* Meta chips row */
.tca-digest-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
}
.tca-meta-chip {
    font-size: 11.5px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    line-height: 1.3;
    white-space: nowrap;
}
.tca-chip-q      { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.tca-chip-type   { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }
.tca-chip-monthly{ background: #f0f9ff; color: #0284c7; border: 1px solid #bae6fd; }

/* CTA button */
.tca-digest-cta {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    background: var(--p);
    color: #fff;
    font-size: 13.5px;
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none;
    transition: all .16s;
    letter-spacing: .2px;
}
.tca-digest-cta:hover {
    background: var(--p-dk, #1557cc);
    box-shadow: 0 4px 16px rgba(26,111,255,.30);
    transform: translateY(-1px);
    color: #fff;
    text-decoration: none;
}
.tca-cta-monthly {
    background: linear-gradient(90deg, #0ea5e9, #6366f1);
}
.tca-cta-monthly:hover {
    background: linear-gradient(90deg, #0284c7, #4f46e5);
    box-shadow: 0 4px 16px rgba(99,102,241,.30);
}
.tca-cta-arrow {
    font-size: 15px;
    transition: transform .15s;
}
.tca-digest-cta:hover .tca-cta-arrow { transform: translateX(3px); }

/* ── Empty state for digest panels ──────────────────────────── */
.tca-digest-empty {
    text-align: center;
    padding: 60px 24px 50px;
    color: var(--mut);
}
.tca-digest-empty-icon { font-size: 48px; margin-bottom: 12px; }
.tca-digest-empty h3   { font-size: 17px; font-weight: 700; color: var(--txt); margin: 0 0 8px; }
.tca-digest-empty p    { font-size: 13.5px; color: var(--mut); margin: 0; line-height: 1.6; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 860px) {
    .tca-digest-grid,
    .tca-digest-grid-monthly {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}
@media (max-width: 700px) {
    .tca-period-tabs  { gap: 8px; margin: 14px 0 0; }
    .tca-period-tab   { padding: 12px 8px 10px; min-width: 90px; border-radius: 12px; }
    .tca-ptab-icon    { font-size: 20px; }
    .tca-ptab-main    { font-size: 13px; }
    .tca-ptab-sub     { font-size: 10px; }
    .tca-ptab-badge   { font-size: 9px; top: 5px; right: 5px; padding: 1px 5px; }

    .tca-digest-grid,
    .tca-digest-grid-monthly { grid-template-columns: 1fr; }
    .tca-digest-panel-header { flex-direction: column; gap: 8px; }
    .tca-digest-section-title { font-size: 17px; }
}
@media (max-width: 420px) {
    .tca-ptab-sub { display: none; }
    .tca-period-tab { padding: 10px 6px 9px; }
}
/* ================================================================
   TestCrate Current Affairs – Frontend CSS v5
   4-col desktop · 2-col mobile card · month tab pills
   ================================================================ */

:root {
  --p:      #1a6fff;
  --p-dk:   #1457d4;
  --p-lt:   #eff6ff;
  --g:      #16a34a;
  --g-dk:   #15803d;
  --sur:    #ffffff;
  --bdr:    #e2e8f0;
  --txt:    #1e293b;
  --mut:    #64748b;
  --bg:     #f1f5fb;
  --sh:     0 2px 12px rgba(26,111,255,.10);
  --sh-lg:  0 4px 24px rgba(26,111,255,.13);
  --r:      12px;
  --box:    1160px;
}

.tca-page-outer *,
.tca-single-page * { box-sizing: border-box; }

/* ================================================================
   PAGE SHELL
   ================================================================ */
.tca-page-outer  { background: var(--bg); padding-bottom: 48px; min-height: 50vh; }
.tca-page-box    { max-width: var(--box); margin: 0 auto; padding: 0 20px; }

/* ================================================================
   HERO BANNER
   ================================================================ */
.tca-archive-hero {
  background: linear-gradient(120deg, #1241b8 0%, #1a6fff 60%, #3b8cff 100%);
  padding: 28px 0 24px;
  position: relative; overflow: hidden;
}
.tca-archive-hero::before {
  content:''; position:absolute; width:300px; height:300px;
  top:-80px; right:-40px; border-radius:50%;
  background:rgba(255,255,255,.06); pointer-events:none;
}
.tca-archive-hero::after {
  content:''; position:absolute; width:200px; height:200px;
  bottom:-60px; left:8%; border-radius:50%;
  background:rgba(255,255,255,.04); pointer-events:none;
}
.tca-archive-hero-inner {
  max-width: var(--box); margin: 0 auto; padding: 0 20px;
  position: relative; z-index: 1;
}
.tca-archive-kicker {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,.18); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; padding: 4px 12px;
  border-radius: 20px; margin-bottom: 10px;
}
.tca-archive-title {
  font-size: 32px; font-weight: 900; color: #fff;
  margin: 0 0 8px; line-height: 1.15; letter-spacing: -.4px;
}
.tca-archive-desc {
  font-size: 14.5px; color: rgba(255,255,255,.88);
  margin: 0; max-width: 520px; line-height: 1.6;
}

/* ================================================================
   TABLE CARD
   ================================================================ */
.tca-table-card {
  background: var(--sur); border: 1px solid var(--bdr);
  border-radius: var(--r); box-shadow: var(--sh);
  overflow: hidden; margin-top: 20px;
}
.tca-table-card-header {
  padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; border-bottom: 1px solid var(--bdr);
  background: #fafbff;
}
.tca-table-card-title {
  font-size: 15px; font-weight: 700; color: var(--txt);
  display: flex; align-items: center; gap: 7px; margin: 0;
}
.tca-header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* ── Month tab pills ────────────────────────────────────────── */
.tca-month-tabs-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 20px; overflow-x: auto;
  border-bottom: 1px solid var(--bdr); background: #fafbff;
  scrollbar-width: thin; scrollbar-color: var(--bdr) transparent;
  flex-wrap: nowrap;
}
.tca-month-tabs-bar::-webkit-scrollbar { height: 4px; }
.tca-month-tabs-bar::-webkit-scrollbar-thumb { background: var(--bdr); border-radius: 4px; }

.tca-month-tab {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 14px; border-radius: 20px; white-space: nowrap;
  font-size: 12.5px; font-weight: 600; cursor: pointer;
  border: 1.5px solid var(--bdr); background: var(--sur); color: var(--txt);
  transition: all .15s; flex-shrink: 0;
}
.tca-month-tab:hover { border-color: var(--p); color: var(--p); background: var(--p-lt); }
.tca-month-tab-active {
  background: var(--p) !important; color: #fff !important;
  border-color: var(--p) !important; box-shadow: 0 2px 8px rgba(26,111,255,.25);
}
.tca-month-tab-active .tca-month-tab-cnt { color: #fff !important; opacity: 1; }
.tca-month-tabs-bar .tca-month-tab.tca-month-tab-active,
.tca-month-tabs-bar button.tca-month-tab-active {
  background-color: #1a6fff !important;
  color: #ffffff !important;
  border-color: #1a6fff !important;
}
.tca-month-tab-cnt {
  font-size: 10.5px; font-weight: 700; opacity: .8;
}

/* Toggle filter button */
.tca-fe-btn-toggle-filter {
  height: 34px; padding: 0 14px; border: 1.5px solid var(--bdr);
  border-radius: 7px; background: var(--sur); color: var(--txt);
  font-size: 12.5px; font-weight: 600; cursor: pointer; transition: all .15s;
  display: inline-flex; align-items: center; gap: 5px;
}
.tca-fe-btn-toggle-filter:hover { border-color: var(--p); color: var(--p); background: var(--p-lt); }
.tca-fe-btn-toggle-filter.tca-btn-active { background: var(--p); color: #fff; border-color: var(--p); }

/* Collapsible filter row */
.tca-filter-row {
  padding: 10px 20px; border-bottom: 1px solid var(--bdr);
  background: #f8faff; display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
}
.tca-table-card-body { padding: 16px 20px; }

/* ================================================================
   CONTROLS
   ================================================================ */
.tca-fe-controls {
  display: flex; flex-wrap: wrap; gap: 8px;
  align-items: center; margin-bottom: 14px;
}
.tca-fe-date-wrap { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tca-fe-date-from,.tca-fe-date-to {
  height: 36px; padding: 0 8px;
  border: 1.5px solid var(--bdr); border-radius: 7px;
  font-size: 12.5px; background: var(--sur); color: var(--txt);
  transition: border-color .15s;
}
.tca-fe-date-from:focus,.tca-fe-date-to:focus {
  outline: none; border-color: var(--p); box-shadow: 0 0 0 3px rgba(26,111,255,.11);
}
.tca-fe-date-sep { color: var(--mut); font-size: 13px; }
.tca-fe-btn {
  height: 36px; padding: 0 14px; border: none; border-radius: 7px;
  font-size: 12.5px; font-weight: 600; cursor: pointer; transition: all .15s;
}
.tca-fe-btn-filter { background: var(--p); color: #fff; }
.tca-fe-btn-filter:hover { background: var(--p-dk); }
.tca-fe-btn-clear { background: #f1f5f9; color: var(--mut); border: 1px solid var(--bdr); }
.tca-fe-btn-clear:hover { background: #e2e8f0; }

/* ================================================================
   TABLE  — 4-column desktop layout
   ================================================================ */
.tca-fe-table-outer {
  overflow-x: auto; border-radius: 8px;
  border: 1px solid var(--bdr); background: var(--sur);
}
.tca-fe-table { width: 100%; border-collapse: collapse; min-width: 700px; }

/* Header */
.tca-fe-table thead tr {
  background: linear-gradient(90deg, #1241b8 0%, #1a6fff 100%);
}
.tca-fe-table th {
  padding: 13px 16px; text-align: left; color: #fff;
  font-size: 12.5px; font-weight: 700; letter-spacing: .3px; white-space: nowrap;
}
.tca-th-date  { width: 130px; }
.tca-th-notes { /* flex fill */ }
.tca-th-read  { width: 185px; }
.tca-th-test  { width: 175px; }

/* Body cells */
.tca-fe-table td {
  padding: 14px 16px; border-bottom: 1px solid var(--bdr);
  vertical-align: middle; font-size: 13.5px;
  line-height: 1.5; color: var(--txt);
}
.tca-fe-table tbody tr:last-child td { border-bottom: none; }
.tca-fe-table tbody tr { transition: background .1s; }
.tca-fe-table tbody tr:hover { background: #f4f8ff; }
.tca-fe-table tbody tr:nth-child(even) { background: #fafbff; }
.tca-fe-table tbody tr:nth-child(even):hover { background: #eef4ff; }

/* ── Date cell ──────────────────────────────────────────────── */
.tca-fe-date-cell { display: flex; flex-direction: column; gap: 4px; }
.tca-fe-date-link {
  display: inline-flex; align-items: center; gap: 4px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: #1d4ed8 !important; border: 1px solid #bfdbfe;
  border-radius: 7px; padding: 5px 10px;
  font-size: 12px; font-weight: 700; white-space: nowrap;
  text-decoration: none !important; transition: all .15s;
}
.tca-fe-date-link:hover {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  box-shadow: 0 2px 8px rgba(29,78,216,.16); transform: translateY(-1px);
}
.tca-fe-date-day { font-size: 11px; color: var(--mut); font-weight: 500; }

/* ── Notes cell ─────────────────────────────────────────────── */
.tca-fe-post-title { margin-bottom: 5px; }
.tca-fe-post-title a {
  font-size: 15px; font-weight: 600;
  color: var(--txt) !important; text-decoration: none !important;
  line-height: 1.35; transition: color .12s;
}
.tca-fe-post-title a:hover { color: var(--p) !important; }

.tca-fe-excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  color: var(--mut);
  font-size: 12.5px;
  line-height: 1.55;
}

/* ── Read button (col 3) ─────────────────────────────────────── */
.tca-fe-read-cell { white-space: nowrap; }
.tca-fe-read-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px;
  background: linear-gradient(135deg, var(--p), var(--p-dk));
  color: #fff !important; border-radius: 8px;
  font-size: 13px; font-weight: 700;
  text-decoration: none !important; white-space: nowrap;
  box-shadow: 0 2px 8px rgba(26,111,255,.28); transition: all .15s;
}
.tca-fe-read-btn:hover {
  background: linear-gradient(135deg, var(--p-dk), #0f43b8);
  box-shadow: 0 4px 14px rgba(26,111,255,.36);
  transform: translateY(-1px); color: #fff !important;
}

/* ── Test button (col 4) ────────────────────────────────────── */
.tca-fe-test-cell { white-space: nowrap; }
.tca-fe-test-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 9px 16px;
  background: linear-gradient(135deg, var(--g), var(--g-dk));
  color: #fff !important; border-radius: 8px;
  font-size: 13px; font-weight: 700;
  text-decoration: none !important; white-space: nowrap;
  box-shadow: 0 2px 8px rgba(21,128,61,.22); transition: all .15s;
}
.tca-fe-test-btn:hover {
  background: linear-gradient(135deg, var(--g-dk), #166534);
  box-shadow: 0 4px 14px rgba(21,128,61,.32);
  transform: translateY(-1px); color: #fff !important;
}
.tca-fe-no-test { color: var(--mut); font-size: 12px; font-style: italic; }

/* ── Loading / Empty ────────────────────────────────────────── */
.tca-fe-loading {
  text-align: center; padding: 40px 20px !important;
  color: var(--mut); font-size: 14px;
}
.tca-fe-spinner {
  display: inline-block; width: 18px; height: 18px;
  border: 2.5px solid var(--bdr); border-top-color: var(--p);
  border-radius: 50%; animation: tca-spin .7s linear infinite;
  vertical-align: middle; margin-right: 8px;
}
@keyframes tca-spin { to { transform: rotate(360deg); } }
.tca-fe-empty { text-align: center; padding: 48px 20px; color: var(--mut); }
.tca-fe-empty-icon { font-size: 36px; margin-bottom: 8px; }
.tca-fe-empty p { font-size: 14px; margin: 0; }

/* ── Pagination ─────────────────────────────────────────────── */
.tca-fe-pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 5px; margin-top: 16px; flex-wrap: wrap;
}
.tca-fe-page-btn {
  min-width: 34px; height: 34px; padding: 0 10px;
  border: 1.5px solid var(--bdr); border-radius: 7px;
  background: var(--sur); color: var(--txt);
  font-size: 12.5px; font-weight: 600; cursor: pointer; transition: all .15s;
}
.tca-fe-page-btn:hover { border-color: var(--p); color: var(--p); }
.tca-fe-page-btn.active { background: var(--p); border-color: var(--p); color: #fff; }
.tca-fe-page-btn:disabled { opacity: .38; cursor: not-allowed; }
.tca-fe-page-ellipsis { color: var(--mut); font-size: 13px; padding: 0 2px; }
.tca-fe-page-info {
  width: 100%; text-align: center;
  font-size: 11.5px; color: var(--mut); margin-top: 4px;
}

/* ================================================================
   SINGLE POST PAGE
   ================================================================ */
.tca-single-page { background: var(--bg); padding-bottom: 48px; min-height: 50vh; }

.tca-single-breadcrumb-bar {
  background: var(--sur); border-bottom: 1px solid var(--bdr); padding: 10px 0;
}
.tca-single-breadcrumb-inner {
  max-width: var(--box); margin: 0 auto; padding: 0 20px;
  font-size: 12.5px; color: var(--mut);
  display: flex; align-items: center; gap: 5px; flex-wrap: wrap;
}
.tca-single-breadcrumb-inner a { color: var(--p) !important; text-decoration: none !important; }
.tca-single-breadcrumb-inner a:hover { text-decoration: underline !important; }
.tca-bc-sep { opacity: .45; }
.tca-bc-current { color: var(--txt); font-weight: 500; }

.tca-single-box {
  max-width: var(--box); margin: 20px auto 0; padding: 0 20px;
  display: grid; grid-template-columns: 1fr 285px;
  gap: 20px; align-items: start;
}

.tca-single-article-card {
  background: var(--sur); border: 1px solid var(--bdr);
  border-radius: var(--r); box-shadow: var(--sh); overflow: hidden;
}
.tca-single-article-top {
  background: linear-gradient(120deg, #1241b8, #1a6fff);
  padding: 20px 24px;
  display: flex; align-items: flex-start;
  justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.tca-single-date-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.25);
  border-radius: 7px; padding: 4px 12px;
  font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 8px;
}
.tca-single-post-title {
  font-size: 20px; font-weight: 800; color: #fff; margin: 0; line-height: 1.3;
}
.tca-single-test-hero {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, var(--g), var(--g-dk));
  color: #fff !important; padding: 10px 18px; border-radius: 9px;
  font-size: 13.5px; font-weight: 700; text-decoration: none !important;
  box-shadow: 0 3px 12px rgba(21,128,61,.32); transition: all .15s;
  flex-shrink: 0; align-self: center;
}
.tca-single-test-hero:hover {
  background: linear-gradient(135deg, var(--g-dk), #166534);
  transform: translateY(-1px); color: #fff !important;
}
.tca-single-article-body {
  padding: 24px; font-size: 14.5px; line-height: 1.75; color: var(--txt);
}
.tca-single-article-body h2,.tca-single-article-body h3,.tca-single-article-body h4 { color: var(--txt); margin: 20px 0 10px; font-weight: 700; }
.tca-single-article-body p  { margin: 0 0 14px; }
.tca-single-article-body ul { list-style: disc outside !important; padding-left: 22px !important; margin: 0 0 14px !important; }
.tca-single-article-body ol { list-style: decimal outside !important; padding-left: 22px !important; margin: 0 0 14px !important; }
.tca-single-article-body li { list-style-type: inherit !important; display: list-item !important; margin-bottom: 6px; line-height: 1.7; }
.tca-single-article-body strong,.tca-single-article-body b { font-weight: 700; }
.tca-single-article-body em,.tca-single-article-body i { font-style: italic; }
.tca-single-article-body blockquote { border-left: 4px solid var(--p); margin: 16px 0; padding: 10px 16px; background: #f0f4ff; border-radius: 0 8px 8px 0; color: #374151; }
.tca-single-article-body a  { color: var(--p); text-decoration: underline; }
.tca-single-article-body table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 13.5px; }
.tca-single-article-body table th,.tca-single-article-body table td { border: 1px solid #e2e8f0; padding: 8px 12px; text-align: left; }
.tca-single-article-body table th { background: #f1f5f9; font-weight: 700; }

.tca-single-nav {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 14px 24px 18px; border-top: 1px solid var(--bdr);
}
.tca-single-nav-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 14px; background: var(--p-lt);
  color: var(--p) !important; border: 1px solid #bfdbfe;
  border-radius: 7px; font-size: 12.5px; font-weight: 600;
  text-decoration: none !important; transition: all .15s;
}
.tca-single-nav-btn:hover { background: #dbeafe; }
.tca-nav-disabled { opacity: .38; cursor: not-allowed; color: var(--mut) !important; }

.tca-sidebar-card {
  background: var(--sur); border: 1px solid var(--bdr);
  border-radius: var(--r); box-shadow: 0 1px 6px rgba(26,111,255,.07);
  overflow: hidden; margin-bottom: 14px;
}
.tca-sidebar-card-title {
  font-size: 12.5px; font-weight: 700; color: var(--txt);
  padding: 11px 16px; border-bottom: 1px solid var(--bdr);
  background: #fafbff; display: flex; align-items: center; gap: 5px;
}
.tca-sidebar-card-body { padding: 12px 16px; }
.tca-sidebar-test-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px; background: linear-gradient(135deg, var(--g), var(--g-dk));
  color: #fff !important; border-radius: 8px; font-size: 13px; font-weight: 700;
  text-decoration: none !important; box-shadow: 0 2px 10px rgba(21,128,61,.25);
  transition: all .15s;
}
.tca-sidebar-test-btn:hover {
  background: linear-gradient(135deg, var(--g-dk), #166534);
  transform: translateY(-1px); color: #fff !important;
}
.tca-sidebar-recent { list-style: none; margin: 0; padding: 0; }
.tca-sidebar-recent li {
  padding: 7px 0; border-bottom: 1px solid var(--bdr); font-size: 12.5px;
}
.tca-sidebar-recent li:last-child { border-bottom: none; padding-bottom: 0; }
.tca-sidebar-recent a {
  color: var(--txt) !important; text-decoration: none !important;
  font-weight: 500; line-height: 1.35; transition: color .12s; display: block;
}
.tca-sidebar-recent a:hover { color: var(--p) !important; }
.tca-sidebar-recent-date { font-size: 10.5px; color: var(--mut); margin-top: 1px; }

.tca-fe-wrap { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; color: var(--txt); }

/* ================================================================
   SINGLE TOP ACTIONS
   ================================================================ */
.tca-single-top-actions {
  display: flex; flex-direction: column; gap: 8px;
  flex-shrink: 0; align-self: center;
}
@media (min-width: 500px) {
  .tca-single-top-actions { flex-direction: row; align-items: center; }
}
button.tca-btn-pdf {
  cursor: pointer; border: none; font-family: inherit;
  background: #16a34a; color: #fff; border-radius: 8px; font-weight: 700;
  align-items: center; gap: 6px; transition: background .15s, transform .1s;
  text-decoration: none;
}
button.tca-btn-pdf:hover { background: #15803d; transform: translateY(-1px); }
.tca-single-test-hero.tca-btn-pdf,
.tca-single-test-hero.tca-btn-start-test {
  padding: 10px 18px; font-size: 14px; width: 100%;
  justify-content: center; text-align: center; box-sizing: border-box;
}
@media (min-width: 500px) {
  .tca-single-test-hero.tca-btn-pdf,
  .tca-single-test-hero.tca-btn-start-test { width: auto; }
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

/* Tablet */
@media (max-width: 960px) {
  .tca-single-box { grid-template-columns: 1fr; }
  .tca-single-sidebar { display: none; }
}

/* ── MOBILE: card-style 2-column layout ────────────────────── */
@media (max-width: 700px) {
  /* Hero compact */
  .tca-archive-hero { padding: 18px 0 16px; }
  .tca-archive-hero::before, .tca-archive-hero::after { display: none; }
  .tca-archive-hero-inner { padding: 0 14px; }
  .tca-archive-kicker { font-size: 10px; padding: 3px 10px; margin-bottom: 8px; }
  .tca-archive-title { font-size: 22px; letter-spacing: -.2px; margin-bottom: 6px; }
  .tca-archive-desc  { font-size: 13px; line-height: 1.5; }

  .tca-page-box { padding: 0 10px; }
  .tca-table-card { border-radius: 10px; margin-top: 14px; }
  .tca-table-card-header { padding: 11px 14px; }
  .tca-table-card-body   { padding: 0; }

  /* Month tabs: smaller pills */
  .tca-month-tabs-bar { padding: 8px 12px; gap: 5px; }
  .tca-month-tab { font-size: 11.5px; padding: 4px 11px; }

  /* ── Switch table to 2-col card-list layout ── */
  .tca-fe-table-outer { overflow-x: visible; border: none; border-radius: 0; }
  .tca-fe-table { min-width: 0; display: block; }

  /* 2-col thead: Notes | Read+PDF (hide date & test headers) */
  .tca-fe-table thead { display: block; }
  .tca-fe-table thead tr {
    display: grid;
    grid-template-columns: 1fr 155px;
    border-radius: 0;
  }
  .tca-fe-table thead tr th:nth-child(1),
  .tca-fe-table thead tr th:nth-child(4) { display: none; }
  .tca-th-notes { padding: 11px 14px; font-size: 12px; }
  .tca-th-read  { padding: 11px 12px; font-size: 12px; }

  /* tbody: list of row-cards */
  .tca-fe-table tbody { display: block; }

  /* Each row: 2 cols, 2 rows
     [title+excerpt] [read-btn ]
     [title+excerpt] [test-btn ]
  */
  .tca-fe-table tbody tr {
    display: grid;
    grid-template-columns: 1fr 155px;
    grid-template-rows: auto auto;
    border-bottom: 1px solid var(--bdr);
    background: var(--sur) !important;
    padding: 0;
  }
  .tca-fe-table tbody tr:hover { background: #f8faff !important; }

  /* Hide date td */
  .tca-fe-table tbody tr td:nth-child(1) { display: none; }

  /* Notes — col 1, spans both rows, vertically centered */
  .tca-fe-notes-cell {
    grid-column: 1;
    grid-row: 1 / 3;
    padding: 14px 10px 14px 14px;
    align-self: center;
    border-bottom: none !important;
  }
  .tca-fe-post-title a { font-size: 15px; font-weight: 700; line-height: 1.3; }
  .tca-fe-excerpt { font-size: 12.5px; margin-top: 4px; -webkit-line-clamp: 3; }

  /* Read btn — col 2, row 1 (bottom-aligned so gap between btns looks even) */
  .tca-fe-read-cell {
    grid-column: 2;
    grid-row: 1;
    padding: 14px 12px 5px 8px;
    border-bottom: none !important;
    align-self: end;
  }

  /* Test btn — col 2, row 2 */
  .tca-fe-test-cell {
    grid-column: 2;
    grid-row: 2;
    padding: 5px 12px 14px 8px;
    border-bottom: none !important;
    align-self: start;
  }

  /* Buttons: fill column width, tall & prominent */
  .tca-fe-read-btn {
    display: flex; justify-content: center; align-items: center; gap: 5px;
    width: 100%; padding: 11px 8px;
    font-size: 12.5px; font-weight: 700; border-radius: 8px;
    white-space: normal; text-align: center; line-height: 1.3;
    box-sizing: border-box;
  }
  .tca-fe-test-btn {
    display: flex; justify-content: center; align-items: center; gap: 5px;
    width: 100%; padding: 11px 8px;
    font-size: 12.5px; font-weight: 700; border-radius: 8px;
    white-space: normal; text-align: center; line-height: 1.3;
    box-sizing: border-box;
  }

  /* Loading/empty spans full width */
  .tca-fe-table tbody tr td[colspan] {
    display: block; grid-column: 1 / -1; padding: 30px 20px;
  }

  .tca-fe-table tbody tr:last-child { border-bottom: none; }

  /* Pagination */
  .tca-fe-page-btn { min-width: 30px; height: 30px; font-size: 12px; }

  /* Single post */
  .tca-single-box           { padding: 0 10px; margin-top: 14px; }
  .tca-single-article-top   { padding: 16px; }
  .tca-single-post-title    { font-size: 17px; }
  .tca-single-date-badge    { font-size: 12px; }
  .tca-single-article-body  { padding: 16px; font-size: 13.5px; }
  .tca-single-nav           { padding: 12px 16px 16px; flex-wrap: wrap; }
  .tca-single-nav-btn       { flex: 1; justify-content: center; font-size: 12px; }
  .tca-single-test-hero     { padding: 9px 14px; font-size: 13px; }
  .tca-single-breadcrumb-inner { padding: 0 12px; font-size: 11.5px; }
}

/* Very small phones */
@media (max-width: 380px) {
  .tca-archive-title { font-size: 20px; }
  .tca-fe-read-btn, .tca-fe-test-btn { font-size: 11px; padding: 8px 10px; }
}

/* ================================================================
   PRINT
   ================================================================ */
@media print {
  html, body, .tca-single-page, .tca-single-box, .tca-single-sidebar-main,
  .tca-single-article-card, .tca-single-article-top, .tca-single-date-badge,
  .tca-single-post-title, .tca-single-article-body, .tca-single-article-body * {
    display: revert !important; visibility: visible !important;
    opacity: 1 !important; overflow: visible !important;
    color: #000 !important; background: transparent !important;
  }
  .tca-single-page, .tca-single-box, .tca-single-sidebar-main,
  .tca-single-article-card, .tca-single-article-top, .tca-single-article-body { display: block !important; }
  .tca-single-breadcrumb-bar, .tca-single-test-hero, .tca-single-nav,
  .tca-single-sidebar, .tca-btn-pdf, .tca-single-top-actions,
  .admin-bar, #wpadminbar, header, nav, footer { display: none !important; }
  .tca-single-page  { padding: 0 !important; }
  .tca-single-box   { max-width: 100% !important; padding: 0 !important; }
  .tca-single-article-card { box-shadow: none !important; border: none !important; border-radius: 0 !important; }
  .tca-single-article-top  { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body { font-size: 13pt !important; }
  .tca-single-article-body { font-size: 12pt !important; line-height: 1.8 !important; }
}
