/* The selected section is visible at rest. The directory opens in the page flow. */
.fi-topics { padding-block: 0; background: white; border-bottom: 1px solid #d8e0e5; }
.fi-topics nav summary {
  box-sizing: border-box;
  width: 100%;
  min-height: 58px;
  padding: 10px 0;
  display: flex;
  justify-content: flex-start;
  gap: 14px;
}
.fi-topics nav summary::after { display: none; }
.fi-category-label { color: #475e70; font-size: 14px; font-weight: 500; }
.fi-category-trigger {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border: 1px solid #b9c7d1;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
}
.fi-category-trigger::after {
  content: '';
  width: 7px;
  height: 7px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: translateY(-2px) rotate(45deg);
}
.fi-topics details[open] .fi-category-trigger::after { transform: translateY(2px) rotate(225deg); }
.fi-topics summary:hover .fi-category-trigger { background: #f2f5f7; }
.fi-topics details > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 0; padding: 0 0 14px; }
.fi-topics nav a {
  min-height: 44px;
  padding: 0 8px;
  border-top: 1px solid #d8e0e5;
  justify-content: space-between;
  text-decoration: none;
}
.fi-topics nav a:hover { background: #f2f5f7; text-decoration: underline; }
.fi-topics nav a[aria-current="page"] { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.fi-topics nav a span { font-variant-numeric: tabular-nums; color: #475e70; }
#wrapper #theme-content-section .section-content:has(> #main) { padding-top: 8px !important; }
#wrapper #main.tcb-post-list { row-gap: 26px; }
#main .fi-archive-card:not(:first-of-type) { padding-bottom: 18px; }
@media (max-width: 767px) {
  .fi-topics nav summary { min-height: 58px; }
  .fi-topics details > div { grid-template-columns: 1fr; }
  #wrapper #main.tcb-post-list { row-gap: 20px; }
  #main .fi-archive-card:not(:first-of-type) { padding-bottom: 16px; }
}
