/*
Theme Name: Comic Gallery Theme
Author: Isaac Silver
Description: Minimal dark theme for comic archives, taxonomy pages, single posts, search, pages and 404.
Version: 0.1.133
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: comic-gallery
Tags: custom-menu, featured-images, translation-ready
*/

/*
================================================================================
Comic Gallery Theme — style.css (упорядочено + с подсказками)

МЕНЮ СЕКЦИЙ CSS (порядок ниже по файлу)
01) БАЗОВЫЙ РЕСЕТ + ТИПОГРАФИКА — html/body/a/img
02) ОСНОВНОЙ ЛЕЙАУТ — .container, .site-main, .main-content, .archive-content
03) ШАПКА — .site-header, .header-row, .brand, .nav
04) ПОИСК — .search-form
05) СЕТКА КАРТОЧЕК — .cards (grid)
06) КАРТОЧКА ПОСТА — .card, .card-thumb, .card-body, .pill
07) УНИВЕРСАЛЬНЫЕ СЕКЦИИ + CONTENT — .section, .single-content
08) ХЛЕБНЫЕ КРОШКИ — .breadcrumbs
09) ПАГИНАЦИЯ — .pagination
10) A–Z СТРАНИЦЫ ТЕРМИНОВ — .term-index, .term-groups
11) ФУТЕР — .site-footer
12) ДОСТУПНОСТЬ + ФОКУС — .screen-reader-text, :focus-visible
13) SINGLE — .custom-post-title, .custom-post-meta, .more-grid, .gallery
14) RESPONSIVE — брейкпоинты

ГДЕ КАКОЙ HTML (соответствие “класс → файл темы”)

1) Шапка сайта (header)
   - header.php: .site-header, .header-row, .brand, .nav, .container
   - searchform.php: .search-form, .screen-reader-text

2) Сетка карточек постов (списки постов)
   - index.php: .taxonomy-hero, .archive-content, .cards
   - index.php: .card, .card-thumb, .card-body, .card-title

3) Одиночная запись / страницы
   - single.php: .custom-post-title, .custom-post-meta, .post-meta, .single-content
   - page.php: .section, .single-content

4) Пагинация
   - functions.php: .pagination

5) A–Z страницы терминов (Categories / Tags / Artists)
   - taxonomy index pages:
     .term-index, .term-groups, .term-group

6) Подвал сайта (footer)
   - footer.php: .site-footer, .meta, .nav

ПОДСКАЗКА:
- Если вы видите класс в HTML — ищите его в этом файле по “CTRL+F .имя-класса”.
- Секции ниже пронумерованы и отделены “====” — чтобы легко ориентироваться.
================================================================================
*/

/* ============================================================================
   [01] БАЗОВЫЙ РЕСЕТ + ТИПОГРАФИКА (влияет на весь сайт)
   ============================================================================ */

*,
*::before,
*::after{ box-sizing:border-box; }

html{
  min-height:100%;
  overflow-x:hidden;
}

@font-face{
  font-family:"Roboto";
  src:url("assets/fonts/roboto-400.woff2") format("woff2");
  font-weight:400;
  font-style:normal;
  font-display:swap;
}

@font-face{
  font-family:"Roboto";
  src:url("assets/fonts/roboto-500.woff2") format("woff2");
  font-weight:500;
  font-style:normal;
  font-display:swap;
}

body{
  margin:0;
  font-family:"Roboto", Arial, Helvetica, sans-serif;
  font-size:16px;
  letter-spacing:0;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  background:#272b2f;
  color:#e9e9ef;
  line-height:1.5;
  color-scheme: dark; /* чтобы поля ввода выглядели нормально в тёмной теме */
  overflow-x:hidden; /* предотвращает горизонтальный скролл из-за overflow */
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

a{
  color:#7ab7ff;
  text-decoration:none;
  text-decoration-color:#eeee22;
  text-decoration-thickness:1px;
  text-underline-offset:3px;
  text-decoration-skip-ink:auto;
}

/* Text links get underline only inside text/navigation zones, not globally on every <a>. */
.header-nav a:hover,
.header-nav a:active,
.mobile-nav a:hover,
.mobile-nav a:active,
.breadcrumbs a:hover,
.breadcrumbs a:active,
.card-title a:hover,
.card-title a:active,
.more-item-title a:hover,
.more-item-title a:active,
.term-group a:hover,
.term-group a:active,
.single-content a:hover,
.single-content a:active,
.site-footer a:hover,
.site-footer a:active{
  text-decoration-line:underline;
  text-decoration-color:#eeee22;
  text-decoration-thickness:1px;
  text-underline-offset:3px;
}

img{ max-width:100%; height:auto; }

button,
input,
select,
textarea{
  font-family:"Roboto", Arial, Helvetica, sans-serif;
  font-weight:400;
}


/* ============================================================================
   [02] ОСНОВНОЙ ЛЕЙАУТ (контейнер + главная сетка)
   ============================================================================ */


.container{
  width:100%;
  max-width:none;
  margin-inline:0;
}

.site-main{
  flex:1 0 auto;
  width:100%;
}

.main-content{
  padding:40px 40px;
}


.archive-content__inner,
.taxonomy-hero__inner{
  padding-left:40px;
  padding-right:40px;
}

.main-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:16px;
}

/* ============================================================================
   [03] ШАПКА САЙТА (header.php)
   ============================================================================ */

html.header-menu-lock,
body.header-menu-lock{
  overflow:hidden;
}

.site-header{
  background:#141414;
  border-bottom:1px solid #eeee22;
  position:relative;
  z-index:40;
  overflow:visible;
  min-height:100px;
  flex:0 0 auto;
}


/* убираем вертикальные паддинги контейнера только в хедере */
.site-header .container{
  padding:0 40px;
  height:100px;
}

.header-row{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  flex-wrap:nowrap;
  min-height:100px;
  height:100px;
  transition:opacity .38s cubic-bezier(.22, 1, .36, 1), transform .40s cubic-bezier(.22, 1, .36, 1);
}

/* При открытии поиска строка хедера визуально заменяется шторкой */
.site-header.is-search-open .header-row{
  opacity:0;
  pointer-events:none;
  transform:translate3d(0,-6px,0);
}

/* Brand / logo */
.brand{
  flex:0 1 auto;
  width:auto;
  min-width:0;
  max-width:280px;
  height:64px;
  display:flex;
  align-items:center;
}

.brand .custom-logo-link{
  display:flex;
  align-items:center;
  width:auto;
  max-width:100%;
  min-width:0;
  height:100%;
}

.brand .custom-logo,
.brand img{
  width:auto;
  height:auto;
  max-width:100%;
  max-height:64px;
  border-radius:8px;
  display:block;
}

.brand a{
  transform:translateZ(0);
  touch-action:manipulation;
  transition:transform .18s ease;
}

.brand a:active{
  transform:translateZ(0) scale(.95);
}


.site-title{
  color:#f9f9f9;
  font-weight:400;
}

/* Right side controls */
.header-actions{
  display:flex;
  align-items:center;
  gap:22px;
  flex:0 1 auto;
  min-width:0;
  margin-left:auto;
}

/* icon buttons (search / burger) */
.header-icon-btn{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  padding:0;
  border:1px solid rgba(255,255,255,.14);
  border-radius:999px;
  background:rgba(255,255,255,.06);
  color:#f9f9f9;
  cursor:pointer;
  flex:0 0 auto;
}


.header-icon-btn svg{
  width:20px;
  height:20px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
  vector-effect:non-scaling-stroke;
}

/* Burger icon stays burger (drawer has its own close button) */
.header-menu-toggle .icon-burger,
.header-menu-toggle .icon-close{
  position:absolute;
  inset:0;
  margin:auto;
}

.header-menu-toggle .icon-close{
  display:none;
}

/* Desktop nav */
.header-nav{
  display:block;
  min-width:0;
}

.header-nav ul.menu{
  margin:0;
  padding:0;
  list-style:none;
  display:flex;
  align-items:center;
  flex-wrap:nowrap;
  gap:22px;
}

.header-nav li{ margin:0; padding:0; }

.header-nav a{
  color:#f9f9f9;
  font-size:15px;
  line-height:1.15;
  font-weight:400;
  text-transform:none;
  white-space:nowrap;
}


.header-nav a:hover{ color:#eeee22; }

.header-nav .current-menu-item > a,
.header-nav .current_page_item > a,
.header-nav .current-menu-ancestor > a,
.header-nav .current-menu-parent > a{
  color:#eeee22;
}

/* Tablet/Phone: hide desktop links, show burger */
.header-menu-toggle{ display:none; }

/* SEARCH CURTAIN — overlays the header itself */
.header-search-panel{
  position:absolute;
  inset:0;
  z-index:4;
  background:rgba(20,20,20,.98);
  backdrop-filter:saturate(120%) blur(4px);
  will-change:transform, opacity;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translate3d(0,-10px,0);
  transition:opacity .42s cubic-bezier(.22, 1, .36, 1), transform .46s cubic-bezier(.22, 1, .36, 1), visibility 0s linear .46s;
}

.site-header.is-search-open .header-search-panel{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translate3d(0,0,0);
  transition:opacity .42s cubic-bezier(.22, 1, .36, 1), transform .46s cubic-bezier(.22, 1, .36, 1), visibility 0s;
}

.header-search-panel > .container{
  height:100%;
}

.header-search-form{
  display:grid;
  grid-template-columns:1fr 40px 40px;
  align-items:center;
  column-gap:14px;
  height:100%;
  padding:0;
}

.header-search-form input[type="search"]{
  min-width:0;
  height:42px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:#ffffff;
  color:#111;
  padding:0 14px;
  outline:none;
}

.header-search-form input[type="search"]::placeholder{
  color:#6f6f6f;
}

.header-search-submit,
.header-search-close,
.header-close-btn{
  width:40px;
  height:40px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
  color:#f9f9f9;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0;
}


.header-search-submit svg,
.header-search-close svg,
.header-close-btn svg{
  width:20px;
  height:20px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

/* MOBILE RIGHT CURTAIN */
.header-mobile-panel{
  position:fixed;
  inset:0;
  z-index:80;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  will-change:opacity;
  transition:opacity .52s cubic-bezier(.22, 1, .36, 1), visibility 0s linear .52s;
}

.site-header.is-menu-open .header-mobile-panel{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transition:opacity .52s cubic-bezier(.22, 1, .36, 1), visibility 0s;
}

.header-mobile-backdrop{
  position:absolute;
  inset:0;
  border:0;
  padding:0;
  margin:0;
  cursor:pointer;
  background:rgba(0,0,0,.40);
  opacity:0;
  will-change:opacity;
  transition:opacity .52s cubic-bezier(.22, 1, .36, 1);
}

.site-header.is-menu-open .header-mobile-backdrop{
  opacity:1;
}

/* Drawer itself (flush to the right edge, narrower, smoother) */
.header-mobile-drawer{
  position:absolute;
  top:0;
  right:0;
  height:100%;
  width:300px;
  max-width:78%;
  background:rgba(20,20,20,.75); /* #141414 @ 75% */
  backdrop-filter:saturate(120%) blur(10px);
  border-left:1px solid rgba(255,255,255,.08);
  box-shadow:-12px 0 30px rgba(0,0,0,.28);
  transform:translate3d(100%,0,0);
  opacity:0;
  transition:transform .70s cubic-bezier(.22, 1, .36, 1), opacity .54s ease;
  will-change:transform, opacity;
  overflow:auto;
}

.site-header.is-menu-open .header-mobile-drawer{
  transform:translate3d(0,0,0);
  opacity:1;
}

.header-mobile-drawer-top{
  height:100px;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  padding:0 40px;
}

/* Mobile menu links */
.mobile-nav{
  padding:0 16px 30px 24px; /* left offset */
}


.mobile-nav ul.menu{
  margin:0;
  padding:14px 0 0;
  list-style:none;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:16px;
}

.mobile-nav li{ margin:0; padding:0; width:100%; text-align:left; }

/* Click only on text (not the whole row) */
.mobile-nav a{
  display:inline-block;
  width:auto;
  color:#f9f9f9;
  font-size:15px;
  font-weight:400;
  line-height:1.25;
  padding:6px 0;
  text-transform:none;
}

.mobile-nav a:hover{ color:#eeee22; }

.mobile-nav .current-menu-item > a,
.mobile-nav .current_page_item > a,
.mobile-nav .current-menu-ancestor > a,
.mobile-nav .current-menu-parent > a{
  color:#eeee22;
}

/* ============================================================================
   [04] ФОРМА ПОИСКА (searchform.php)
   ============================================================================ */

.search-form{
  display:flex;
  gap:10px;
  align-items:center;
  width:100%;
  max-width:420px;
}

.search-form input[type="search"]{
  flex:1 1 auto;
  min-width:0;
  width:auto;
  max-width:100%;
  background: #141414;
  border:1px solid #707070;
  color:#e9e9ef;
  padding:10px 12px;
  border-radius: 999px;
  outline:none;
}

.search-form button{
  flex:0 0 auto;
  background: #141414;
  border:1px solid #707070;
  color:#e9e9ef;
  padding:10px 12px;
  border-radius: 999px;
  cursor:pointer;
}


/* ============================================================================
   [05] СЕТКА КАРТОЧЕК (index.php)
   ============================================================================ */

.cards{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:28px;
}

/* ============================================================================
   [06] КАРТОЧКА ПОСТА (index.php)
   ============================================================================ */

.card{
  background: #141414;
  border:0;
  border-radius:0;
  overflow:hidden;
  min-height: 100%;
  display:flex;
  flex-direction:column;
}

/* ВАЖНО: .card-thumb — это <a>, ему нужен display:block чтобы aspect-ratio работал стабильно */
.card-thumb{
  display:block;
  background: #141414;
}

/*
  РЕШЕНИЕ ПРОБЛЕМЫ “ПУСТЫЕ ПРЕВЬЮ”:
  Мы задаём aspect-ratio прямо на <img>, оставляя его в обычном потоке.
  Это самый стабильный вариант — никакого absolute/overflow/хитрых контейнеров.
*/
.card-thumb img{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio: 5/7;
  object-fit:cover;
  background: #141414;
}

/* Fallback для очень старых браузеров без поддержки aspect-ratio */
@supports not (aspect-ratio: 1/1){
  .card-thumb{
    position:relative;
    height:0;
    padding-top:140%; /* 5/7 → высота = ширина * 7/5 */
  }
  .card-thumb img{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
  }
}


.card-body{
  flex:1;
  padding:16px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  text-align:left;
}

.card-title{
  margin:0 0 24px;
  font-size:22px;
  font-weight:500;
  line-height:1.22;
  letter-spacing:0;
}

.card-title a{ color:#eeee22; }

/* Post meta component: used in cards and on single post pages */
.post-meta{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:12px;
  width:100%;
}

.post-meta-row{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  flex-wrap:wrap;
  width:100%;
  column-gap:3px;
  row-gap:4px;
  margin:0;
}

.post-meta-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  width:16px;
  height:18px;
  color:#ffffff;
}

.post-meta-icon svg{
  display:block;
  width:16px;
  height:16px;
  stroke:currentColor;
  fill:none;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.post-meta-label,
.post-meta-value{
  flex:0 0 auto;
  min-width:0;
  font-size:13px;
  font-weight:400;
  line-height:1.35;
  color:#ffffff;
  white-space:nowrap;
}

.post-meta-term{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  padding:2px 6px;
  border-radius:0;
  background:#ffffff;
  color:#000000;
  font-size:13px;
  font-weight:500;
  line-height:1.35;
  text-decoration:none;
  white-space:nowrap;
  border:none;
  box-shadow:none;
}


/* “meta” используется и в карточках, и на single.php, и в футере */
.meta{
  font-size: 12px;
  color: #a7a7b4;
  line-height: 1.4;
}
.meta > span{ display:inline-block; margin-right:10px; }


.pill{
  display:inline-flex;
  border:1px solid #eeee22;
  border-radius:999px;
  padding:6px 10px;
  font-size:13px;
  font-weight:400;
  color:#000000;
  background: #eeee22;
  text-decoration:none;
}


/* ==========================================================================
   ARCHIVE HEADINGS (index.php)
   ========================================================================== */

.archive-heading{
  text-align:center;
  margin:0 0 22px;
}

.taxonomy-hero{
  width:100%;
  min-height:130px;
  margin:0;
  padding:22px 0;
  background:#141414;
  display:flex;
  align-items:center;
}

.taxonomy-hero__inner{
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:13px;
}

.taxonomy-hero .breadcrumbs,
.taxonomy-hero .archive-heading,
.taxonomy-hero .archive-tax-label,
.taxonomy-hero .archive-title,
.taxonomy-hero .archive-description{
  margin:0;
}

.taxonomy-hero .breadcrumbs{
  font-size:13px;
  line-height:16px;
}


.taxonomy-hero .archive-heading--taxonomy{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:13px;
}

.archive-tax-label{
  margin: 0;
  font-size: 14px;
  line-height: 16px;
  font-weight:400;
  color: #eeee22;
}

.archive-title{
  margin: 0;
  font-weight:500;
}

.archive-heading--taxonomy .archive-title{
  font-size: 24px;
  line-height: 28px;
  color: #eeee22;
  text-align: center;
  font-weight:500;
  max-width:100%;
  overflow-wrap:anywhere;
}

.archive-title--search{
  color: #eeee22;
}

.archive-description{
  margin: 10px 0 0;
  font-size: 12px;
  color: #a7a7b4;
}

/* ============================================================================
   [07] УНИВЕРСАЛЬНЫЙ “БЛОК/СЕКЦИЯ” + CONTENT
   ============================================================================ */


.archive-content{
  padding:40px 0;
}

.archive-empty{
  width:100%;
  max-width:520px;
  margin:0 auto;
  padding:24px;
  background:#141414;
  border:1px solid #eeee22;
  text-align:center;
}

.archive-empty__title{
  margin:0 0 12px;
  color:#eeee22;
  font-size:20px;
  line-height:24px;
  font-weight:500;
}

.archive-empty__text{
  margin:0;
  color:#ffffff;
  font-size:14px;
  line-height:1.5;
}

.archive-empty__link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top:18px;
  padding:10px 16px;
  background:#eeee22;
  color:#000000;
  font-size:14px;
  line-height:16px;
  font-weight:500;
  text-decoration:none;
  touch-action:manipulation;
}

.archive-empty__link:hover,
.archive-empty__link:active{
  color:#000000;
  text-decoration:none;
}

.archive-empty__link:active{
  transform:scale(.95);
}

body.page .section > h1{
  color:#eeee22;
  text-align:center;
  font-weight:500;
}


.section p{ margin: 0 0 10px; }

.section ul,
.section ol{ margin: 0 0 10px; padding-left: 18px; }

.section li{ margin: 6px 0; }

.error-404-section{
  width:100%;
  max-width:100%;
  text-align:center;
}


/* Контент из the_content() */
body.single .single-content{
  margin-top:28px;
}

.single-content > *{ margin:0; }
.single-content > * + *{ margin-top: 12px; }

.single-content img{ max-width:100%; height:auto; }

.single-content a{ text-underline-offset:3px; }


/* ============================================================================
   [08] ХЛЕБНЫЕ КРОШКИ (inc/breadcrumbs.php → comic_gallery_breadcrumbs)
   ============================================================================ */

.breadcrumbs{
  width:100%;
  margin:0 0 10px;
  color:#ffffff;
  font-size:13px;
  font-weight:400;
  line-height:1.3;
}

body:not(.single) .breadcrumbs{
  text-align:center;
}

.breadcrumbs ol{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:5px;
  list-style:none;
  margin:0;
  padding:0;
}

body:not(.single) .breadcrumbs ol{
  justify-content:center;
}

.breadcrumbs li{
  display:flex;
  align-items:center;
  min-width:0;
  margin:0;
}

.breadcrumbs li + li::before{
  content:"/";
  margin:0 5px 0 0;
  color:#ffffff;
}

.breadcrumbs a{
  color:#ffffff;
}

.breadcrumbs a:hover{
  color:#eeee22;
}

.breadcrumbs [aria-current="page"]{
  color:#eeee22;
  overflow-wrap:anywhere;
}


/* ============================================================================
   [09] ПАГИНАЦИЯ (functions.php → paginate_links)
   ============================================================================ */

.pagination{
  display:flex;
  justify-content:center;
  gap:8px;
  flex-wrap:wrap;
  margin: 16px 0 4px;
}

.pagination a,
.pagination span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width: 36px;
  padding: 8px 10px;
  border-radius: 999px;
  border:1px solid #eeee22;
  background: #eeee22;
  color: #000000;
  font-weight:400;
  font-size: 13px;
  text-decoration:none;
}

.pagination .current{ box-shadow:inset 0 0 0 1px #ffffff; }

/* ============================================================================
   [10] A–Z СТРАНИЦЫ ТЕРМИНОВ
   ============================================================================ */

.term-index-section h1{
  color:#eeee22;
  text-align:center;
  font-weight:500;
}

.term-index-content{
  margin-top:18px;
}

.term-index{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:8px;
  margin-bottom:22px;
}

.term-index a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:34px;
  min-height:30px;
  padding:5px 9px;
  border:1px solid #eeee22;
  border-radius:0;
  background:#141414;
  color:#ffffff;
  font-size:13px;
  font-weight:400;
  text-decoration:none;
}


.term-groups{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:24px;
}

.term-group{
  min-width:0;
}

.term-group h2{
  color:#eeee22;
  font-size:14px;
  line-height:1.2;
  font-weight:500;
  margin:0 0 8px;
}

.term-group ul{
  margin:0;
  padding-left:18px;
}

.term-group li{
  margin:6px 0;
  overflow-wrap:anywhere;
}

.term-group a{
  color:#ffffff;
}

.term-group a:hover{
  color:#eeee22;
}

/* ============================================================================
   [11] ФУТЕР (footer.php)
   ============================================================================ */

#main{
  flex:1 0 auto;
}

.site-footer{
  margin-top:auto;
  background:#141414;
  border-top:1px solid #eeee22;
  color:#ffffff;
  flex-shrink:0;
}

.site-footer .container{
  padding:20px 40px;
}

.site-footer .footer-text{
  color:#ffffff;
  font-size:16px;
  font-weight:400;
  line-height:1.45;
  text-align:center;
}

.site-footer .footer-text p{
  margin:0;
}

.site-footer .footer-text p + p{
  margin-top:12px;
}


/* ============================================================================
   [12] ДОСТУПНОСТЬ + ФОКУС (keyboard navigation)
   ============================================================================ */

.screen-reader-text{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

:focus-visible{
  outline:2px solid #eeee22;
  outline-offset:3px;
}

/* Убираем стандартную синюю/серую подсветку тапа у кликабельных элементов. */
html,
body,
a,
button,
input,
textarea,
select,
summary,
label,
[role="button"],
[role="link"],
[onclick],
[tabindex]{
  -webkit-tap-highlight-color:transparent;
}

@media (hover:none), (pointer:coarse){
  a:focus,
  button:focus,
  input:focus,
  textarea:focus,
  select:focus,
  summary:focus,
  label:focus,
  [role="button"]:focus,
  [role="link"]:focus,
  [onclick]:focus,
  [tabindex]:focus{
    outline:none;
  }
}


/* ============================================================================
   [12A] КЛИКАБЕЛЬНЫЕ ИЗОБРАЖЕНИЯ
   ============================================================================ */

a:not(.custom-logo-link) img,
button img,
[role="button"] img,
[role="link"] img,
[onclick] img{
  transition:filter .18s ease;
}

@media (hover:hover) and (pointer:fine){
  a:not(.custom-logo-link):hover img,
  button:hover img,
  [role="button"]:hover img,
  [role="link"]:hover img,
  [onclick]:hover img{
    filter:brightness(.70);
  }
}

@media (hover:none), (pointer:coarse){
  a:not(.custom-logo-link):active img,
  button:active img,
  [role="button"]:active img,
  [role="link"]:active img,
  [onclick]:active img{
    filter:brightness(.70);
  }
}


/* ============================================================================
   [12B] ОБЩАЯ АНИМАЦИЯ КНОПОЧНЫХ ЭЛЕМЕНТОВ
   ============================================================================ */

.header-icon-btn,
.header-search-submit,
.header-search-close,
.header-mobile-close,
.search-form button,
.pagination a,
.term-index a,
.post-meta-term,
.pill,
.read-comic-button{
  transform:translateZ(0);
  touch-action:manipulation;
  transition:transform .18s ease;
}

.pagination a,
.term-index a,
.post-meta-term,
.pill{
  text-decoration:none;
}

.header-icon-btn:active,
.header-search-submit:active,
.header-search-close:active,
.header-mobile-close:active,
.search-form button:active,
.pagination a:active,
.term-index a:active,
.post-meta-term:active,
.pill:active,
.read-comic-button:active{
  transform:translateZ(0) scale(.95);
  text-decoration:none;
}

.back-to-top.is-visible:active{
  transform:translateY(0) scale(.95);
}

/* Бургер не должен визуально оставаться “нажатым”, пока открыта мобильная панель. */
.site-header.is-menu-open .header-menu-toggle,
.site-header.is-menu-open .header-menu-toggle:hover,
.site-header.is-menu-open .header-menu-toggle:active{
  transform:translateZ(0);
}

/* Явная tap-анимация для мобильного бургера и крестика drawer.
   На touch-экранах :active может быть почти незаметен из-за мгновенного открытия/закрытия панели. */
@keyframes button-tap{
  0%{ transform:translateZ(0) scale(1); }
  45%{ transform:translateZ(0) scale(.95); }
  100%{ transform:translateZ(0) scale(1); }
}

.header-menu-toggle.is-tap-animating,
.header-mobile-close.is-tap-animating{
  animation:button-tap .18s ease-out;
}


/* ============================================================================
   [12C] КНОПКА ВОЗВРАТА ВВЕРХ
   ============================================================================ */

.back-to-top{
  position:fixed;
  right:28px;
  bottom:28px;
  z-index:90;
  width:48px;
  height:48px;
  padding:0;
  border:0;
  border-radius:50%;
  text-decoration:none;
  background:#eeee22;
  color:#141414;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow:0 8px 20px rgba(0,0,0,.25);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(10px);
  transition:opacity .18s ease, visibility 0s linear .18s, transform .18s ease;
}

.back-to-top.is-visible{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateY(0);
  transition:opacity .18s ease, visibility 0s, transform .18s ease;
}


.back-to-top svg{
  width:22px;
  height:22px;
  fill:none;
  stroke:currentColor;
  stroke-width:2.2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

/* ============================================================================
   [13] SINGLE POSTS (single.php)
   ============================================================================ */

/* Content width only: header/footer stay global. */
body.single .main-content{
  width:100%;
  max-width:1200px;
  margin-inline:auto;
  display:block;
  gap:0;
}

/* Hero + meta */

.custom-post-hero{ margin:0; }

.custom-post-cover{
  display:block;
  box-sizing:border-box;
  width:100%;
  min-width:0;
}

.custom-post-thumbnail{
  display:block;
  box-sizing:border-box;
  width:100%;
  min-width:0;
}

.custom-post-thumbnail-button{
  padding:0;
  border:0;
  background:transparent;
  color:inherit;
  font:inherit;
  line-height:0;
  text-align:inherit;
}

.custom-post-thumbnail-button,
.single-content .gallery-icon a,
.entry-content .gallery-icon a,
.ct-entry-content .gallery-icon a,
.single-content .image-lightbox-link,
.entry-content .image-lightbox-link,
.ct-entry-content .image-lightbox-link{
  cursor:zoom-in;
}

.custom-post-thumbnail img{
  display:block;
  width: 100%;
  aspect-ratio: 5 / 7;
  object-fit: cover;
  border-radius: 0;
  margin-bottom: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.custom-post-meta{
  background-color: #141414;
  padding:16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border-radius: 0;
  overflow: hidden;
}


.custom-post-title{
  margin:0 0 24px;
  color:#eeee22;
  font-size:22px;
  font-weight:500;
  line-height:1.22;
  letter-spacing:0;
  overflow-wrap:anywhere;
  hyphens:auto;
}

.read-comic-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  align-self:stretch;
  box-sizing:border-box;
  width:100%;
  min-height:44px;
  margin-top:24px;
  padding:0 22px;
  border:0;
  border-radius:0;
  background:#eeee22;
  color:#000000;
  font-size:16px;
  font-weight:500;
  line-height:1;
  text-align:center;
  text-decoration:none;
  cursor:pointer;
}

.reader-actions{
  display:flex;
  flex-direction:column;
  gap:16px;
  align-self:stretch;
  width:100%;
  margin-top:24px;
}

.reader-actions .read-comic-button{
  margin-top:0;
}

.read-comic-button:hover,
.read-comic-button:active{
  color:#000000;
  text-decoration:none;
}


/* More block */
body.single .more-section{
  background:#141414;
  padding:16px;
  border-radius:0;
  margin-top:28px;
}

.more-title{
  margin:0 0 20px;
  color:#eeee22;
  font-size:20px;
  line-height:1.2;
  font-weight:500;
}

.more-grid{
  display:grid;
  grid-template-columns:repeat(5, 1fr);
  gap:16px;
}

.more-item{
  min-width:0;
}

.more-thumb{
  display:block;
  width:100%;
  aspect-ratio:5 / 7;
  overflow:hidden;
  background:#111116;
}

.more-thumb img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}

.more-item-title{
  margin:10px 0 0;
  font-size:15px;
  line-height:1.25;
  font-weight:500;
}

.more-item-title a{
  color:#eeee22;
}



/* Gallery: 3 columns on desktop, 2 columns on tablet/phone */

figure.gallery-item{ text-align: center; }
.gallery-item img{ border: 1px solid #ffffff; }

/* Desktop gallery grid */
.single-content .gallery,
.entry-content .gallery,
.ct-entry-content .gallery{
  background:#141414;
  border-radius:0;
  padding:16px;

  display:grid;
  gap:16px;
  margin:0;

  grid-template-columns:repeat(3, 1fr);
}

/* reset possible WP inline styles */
.single-content .gallery-item,
.entry-content .gallery-item,
.ct-entry-content .gallery-item{
  margin:0;
  float:none;
}

.single-content .gallery-item[style*="width"],
.entry-content .gallery-item[style*="width"],
.ct-entry-content .gallery-item[style*="width"]{
  width:auto;
}

.single-content .gallery-icon,
.entry-content .gallery-icon,
.ct-entry-content .gallery-icon{
  width:100%;
  aspect-ratio:5 / 7;
  overflow:hidden;
}

.single-content .gallery-icon img,
.entry-content .gallery-icon img,
.ct-entry-content .gallery-icon img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}

/* WP sometimes inserts <br> */
.single-content .gallery br,
.entry-content .gallery br,
.ct-entry-content .gallery br{ display:none; }


/* ============================================================================
   [14] RESPONSIVE BREAKPOINT SYSTEM

   Базовая версия без @media — ПК / большой экран: 1201px+
   1200px — компактный ПК / небольшой ноутбук: main 36px 32px
   1024px — планшет: main 32px 24px, включается мобильное меню
   767px  — телефон: main 28px 16px, одна колонка карточек
   ============================================================================ */

@media (max-width:1200px){
  .main-content{
    padding:36px 32px;
  }

  .archive-content{
    padding:36px 0;
  }

  body.single .single-content,
  body.single .more-section{
    margin-top:30px;
  }

  .archive-content__inner,
  .taxonomy-hero__inner{
    padding-left:32px;
    padding-right:32px;
  }

  .site-header{
    min-height:94px;
  }

  .site-header .container{
    padding:0 32px;
    height:94px;
  }

  .header-row{
    min-height:94px;
    height:94px;
  }

  .brand{
    height:60px;
    max-width:240px;
  }

  .brand .custom-logo,
  .brand img{
    max-height:60px;
  }

  .header-mobile-drawer-top{
    height:94px;
    padding:0 32px;
  }

  .taxonomy-hero{
    min-height:124px;
    padding:20px 0;
  }

  .taxonomy-hero__inner,
  .taxonomy-hero .archive-heading--taxonomy{
    gap:12px;
  }


  .header-actions{
    gap:16px;
  }

  .header-nav ul.menu{
    gap:16px;
  }


  .site-footer .container{
    padding:20px 32px;
  }

  .cards{
    grid-template-columns:repeat(3, 1fr);
    gap:30px;
  }

  .more-grid{
    grid-template-columns:repeat(4, 1fr);
  }
}

@media (min-width:1025px){
  .header-mobile-panel{
    display:none;
  }

  .custom-post-meta--has-cover{
    display:grid;
    grid-template-columns:calc((100% - 32px) / 3) minmax(0, 1fr);
    column-gap:16px;
    align-items:start;
  }

  .custom-post-meta--has-cover.custom-post-meta--has-reader{
    grid-template-areas:
      "cover text"
      "read text";
    row-gap:16px;
  }

  .custom-post-meta--has-cover.custom-post-meta--no-reader{
    grid-template-areas:
      "cover text";
  }

  .custom-post-meta--has-cover .custom-post-cover{
    grid-area:cover;
    width:100%;
  }

  .custom-post-meta--has-cover .custom-post-text{
    grid-area:text;
  }

  .custom-post-meta--has-cover.custom-post-meta--has-reader .reader-actions{
    grid-area:read;
    width:100%;
    margin-top:0;
  }

  .custom-post-meta--no-cover{
    display:block;
  }

  .custom-post-thumbnail img{
    width:100%;
    aspect-ratio:5 / 7;
    height:auto;
    object-fit:cover;
  }

  .custom-post-text{
    min-width:0;
    margin-top:0;
  }
}

@media (max-width:1024px){
  .main-content{
    padding:32px 24px;
  }

  .archive-content{
    padding:32px 0;
  }

  body.single .single-content,
  body.single .more-section{
    margin-top:32px;
  }

  .archive-content__inner,
  .taxonomy-hero__inner{
    padding-left:24px;
    padding-right:24px;
  }

  .site-header{
    min-height:88px;
  }

  .site-header .container{
    padding:0 24px;
    height:88px;
  }

  .header-row{
    min-height:88px;
    height:88px;
  }

  .brand{
    height:56px;
    max-width:220px;
  }

  .brand .custom-logo,
  .brand img{
    max-height:56px;
  }

  .header-mobile-drawer-top{
    height:88px;
    padding:0 24px;
  }

  .taxonomy-hero{
    min-height:118px;
    padding:18px 0;
  }

  .taxonomy-hero__inner,
  .taxonomy-hero .archive-heading--taxonomy{
    gap:11px;
  }


  .header-actions{
    gap:10px;
  }

  .header-icon-btn,
  .header-search-submit,
  .header-search-close,
  .header-close-btn{
    width:34px;
    height:34px;
  }

  .header-nav{
    display:none;
  }

  .header-menu-toggle{
    display:inline-flex;
  }

  .header-search-form{
    grid-template-columns:1fr 34px 34px;
    column-gap:10px;
  }


  .site-footer .container{
    padding:20px 24px;
  }

  .cards{
    grid-template-columns:repeat(2, 1fr);
    gap:32px;
  }

  .term-groups{
    grid-template-columns:repeat(2, 1fr);
  }

  .more-grid{
    grid-template-columns:repeat(3, 1fr);
  }

  .single-content .gallery,
  .entry-content .gallery,
  .ct-entry-content .gallery{
    grid-template-columns:repeat(2, 1fr);
    gap:8px;
  }


  .custom-post-cover,
  .custom-post-thumbnail,
  .custom-post-thumbnail-button,
  .custom-post-text{
    width:100%;
    max-width:100%;
    min-width:0;
  }

  .custom-post-title{
    margin:16px 0 24px;
  }

  .custom-post-meta--has-cover{
    display:grid;
    grid-template-columns:1fr;
    grid-template-areas:
      "cover"
      "title"
      "meta"
      "read";
    row-gap:0;
  }

  .custom-post-meta--has-cover.custom-post-meta--no-reader{
    grid-template-areas:
      "cover"
      "title"
      "meta";
  }

  .custom-post-meta--has-cover .custom-post-cover{
    grid-area:cover;
  }

  .custom-post-meta--has-cover .custom-post-text{
    display:contents;
  }

  .custom-post-meta--has-cover .custom-post-title{
    grid-area:title;
    margin:16px 0 24px;
  }

  .custom-post-meta--has-cover .post-meta--single{
    grid-area:meta;
  }

  .custom-post-meta--has-cover .reader-actions{
    grid-area:read;
    width:100%;
    margin-top:24px;
  }

  .custom-post-meta--no-cover .reader-actions{
    margin-top:24px;
  }

}

@media (max-width:767px){
  .main-content{
    padding:28px 16px;
  }

  .archive-content{
    padding:28px 0;
  }

  body.single .single-content,
  body.single .more-section{
    margin-top:34px;
  }

  .archive-content__inner,
  .taxonomy-hero__inner{
    padding-left:16px;
    padding-right:16px;
  }

  .site-header{
    min-height:82px;
  }

  .site-header .container{
    padding:0 16px;
    height:82px;
  }

  .header-row{
    min-height:82px;
    height:82px;
  }

  .brand{
    height:52px;
    max-width:calc(100vw - 130px);
  }

  .brand .custom-logo,
  .brand img{
    max-height:52px;
  }

  .header-mobile-drawer-top{
    height:82px;
    padding:0 16px;
  }

  .taxonomy-hero{
    min-height:112px;
    padding:16px 0;
  }

  .taxonomy-hero__inner,
  .taxonomy-hero .archive-heading--taxonomy{
    gap:10px;
  }


  .header-search-form{
    column-gap:8px;
  }

  .header-mobile-drawer{
    width:300px;
    max-width:82%;
  }

  .mobile-nav{
    padding:0 16px 28px 20px;
  }

  .cards{
    grid-template-columns:1fr;
    gap:34px;
  }

  .term-groups{
    grid-template-columns:1fr;
  }

  .term-index{
    gap:6px;
  }

  .site-footer .container{
    padding:20px 16px;
  }

  .back-to-top{
    right:16px;
    bottom:16px;
    width:44px;
    height:44px;
  }

  .back-to-top svg{
    width:20px;
    height:20px;
  }


  .more-grid{
    grid-template-columns:repeat(2, 1fr);
  }

}

@media (max-width:1024px){
  body.single .more-grid{
    gap:16px 8px;
  }
}

/* ============================================================================
   [15] SEARCH RESULTS + TERM INDEX PAGE REDESIGN
   ============================================================================ */

.search-hero,
.term-page-hero{
  width:100%;
  margin:0;
  padding:26px 0;
  background:#141414;
  display:flex;
  align-items:center;
}

.search-hero{
  min-height:210px;
}

.term-page-hero{
  min-height:150px;
}

.search-hero__inner,
.term-page-hero__inner,
.term-page-content__inner{
  width:100%;
  padding-left:40px;
  padding-right:40px;
}

.search-hero__inner,
.term-page-hero__inner{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:13px;
}

.search-hero .breadcrumbs,
.term-page-hero .breadcrumbs,
.search-hero .archive-heading,
.term-page-hero .archive-heading,
.search-hero .archive-tax-label,
.term-page-hero .archive-tax-label,
.search-hero .archive-title,
.term-page-hero .archive-title,
.search-hero .archive-description,
.term-page-hero .archive-description{
  margin:0;
}

.search-hero .breadcrumbs,
.term-page-hero .breadcrumbs{
  font-size:13px;
  line-height:16px;
}

.archive-heading--search,
.archive-heading--term-page{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:13px;
  text-align:center;
  margin:0;
}

.archive-title--search,
.archive-title--term-page{
  color:#eeee22;
  font-size:24px;
  line-height:28px;
  text-align:center;
  font-weight:500;
  max-width:100%;
  overflow-wrap:anywhere;
}

.search-hero__description,
.term-page-hero__description{
  max-width:720px;
  color:#ffffff;
  font-size:14px;
  line-height:1.5;
}

.search-results-form{
  width:100%;
  max-width:620px;
  margin:5px auto 0;
}

.search-results-form .search-form{
  max-width:none;
  margin:0 auto;
}

.search-results-form .search-form input[type="search"]{
  height:42px;
  background:#ffffff;
  border:1px solid #ffffff;
  color:#000000;
  padding:0 14px;
}

.search-results-form .search-form input[type="search"]::placeholder{
  color:#6f6f6f;
}

.search-results-form .search-form button{
  min-height:42px;
  border:1px solid #eeee22;
  background:#eeee22;
  color:#000000;
  font-size:14px;
  line-height:16px;
  font-weight:500;
}

.search-results-meta{
  margin:0 0 28px;
  color:#ffffff;
  font-size:14px;
  line-height:18px;
  font-weight:500;
  text-align:center;
}

.term-page-content{
  padding:40px 0;
}

.term-page-content .term-index-content{
  margin-top:0;
}

.term-index-page{
  width:100%;
}

.term-index-summary{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:16px;
  margin:0 0 22px;
}

.term-index-summary__item{
  min-width:0;
  padding:16px;
  background:#141414;
  border:1px solid rgba(255,255,255,.10);
  text-align:center;
}

.term-index-summary__value,
.term-index-summary__label{
  display:block;
}

.term-index-summary__value{
  color:#eeee22;
  font-size:24px;
  line-height:28px;
  font-weight:500;
}

.term-index-summary__label{
  margin-top:4px;
  color:#ffffff;
  font-size:13px;
  line-height:16px;
  font-weight:400;
}

.term-index-nav{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:8px;
  margin:0 0 28px;
}

.term-index-nav a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:34px;
  min-height:32px;
  padding:5px 9px;
  border:1px solid #eeee22;
  background:#141414;
  color:#ffffff;
  font-size:13px;
  line-height:16px;
  font-weight:500;
  text-decoration:none;
  transform:translateZ(0);
  touch-action:manipulation;
  transition:transform .18s ease, background-color .18s ease, color .18s ease;
}

.term-index-nav a:hover,
.term-index-nav a:active{
  background:#eeee22;
  color:#000000;
  text-decoration:none;
}

.term-index-nav a:active{
  transform:translateZ(0) scale(.95);
}

.term-index-page .term-groups{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:24px;
}

.term-index-page .term-group{
  min-width:0;
  padding:16px;
  background:#141414;
  border:1px solid rgba(255,255,255,.10);
  border-top-color:#eeee22;
}

.term-group__heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:0 0 12px;
  padding-bottom:10px;
  border-bottom:1px solid rgba(255,255,255,.12);
}

.term-index-page .term-group h2{
  margin:0;
  color:#eeee22;
  font-size:18px;
  line-height:22px;
  font-weight:500;
}

.term-group__heading span{
  flex:0 0 auto;
  color:#ffffff;
  font-size:12px;
  line-height:16px;
  font-weight:500;
}

.term-list{
  display:grid;
  gap:0;
  list-style:none;
  margin:0;
  padding:0;
}

.term-index-page .term-list li{
  margin:0;
  min-width:0;
}

.term-list a{
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto;
  align-items:center;
  gap:10px;
  min-width:0;
  padding:7px 0;
  border-bottom:1px solid rgba(255,255,255,.08);
  color:#ffffff;
  font-size:14px;
  line-height:18px;
  font-weight:400;
  text-decoration:none;
}

.term-list li:last-child a{
  border-bottom:0;
}

.term-list__name{
  min-width:0;
  overflow-wrap:anywhere;
}

.term-list__count{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:24px;
  min-height:20px;
  padding:2px 6px;
  background:#ffffff;
  color:#000000;
  font-size:12px;
  line-height:14px;
  font-weight:500;
}

.term-list a:hover,
.term-list a:active{
  color:#eeee22;
  text-decoration:none;
}

.term-list a:hover .term-list__count,
.term-list a:active .term-list__count{
  background:#eeee22;
  color:#000000;
}

@media (max-width:1200px){
  .search-hero,
  .term-page-hero{
    padding:24px 0;
  }

  .search-hero{
    min-height:204px;
  }

  .term-page-hero{
    min-height:146px;
  }

  .search-hero__inner,
  .term-page-hero__inner,
  .term-page-content__inner{
    padding-left:32px;
    padding-right:32px;
  }

  .term-page-content{
    padding:36px 0;
  }

  .term-index-page .term-groups{
    gap:22px;
  }
}

@media (max-width:1024px){
  .search-hero,
  .term-page-hero{
    padding:22px 0;
  }

  .search-hero{
    min-height:198px;
  }

  .term-page-hero{
    min-height:142px;
  }

  .search-hero__inner,
  .term-page-hero__inner,
  .term-page-content__inner{
    padding-left:24px;
    padding-right:24px;
  }

  .archive-heading--search,
  .archive-heading--term-page,
  .search-hero__inner,
  .term-page-hero__inner{
    gap:11px;
  }

  .term-page-content{
    padding:32px 0;
  }

  .term-index-page .term-groups{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:22px;
  }
}

@media (max-width:767px){
  .search-hero,
  .term-page-hero{
    padding:20px 0;
  }

  .search-hero{
    min-height:210px;
  }

  .term-page-hero{
    min-height:140px;
  }

  .search-hero__inner,
  .term-page-hero__inner,
  .term-page-content__inner{
    padding-left:16px;
    padding-right:16px;
  }

  .archive-heading--search,
  .archive-heading--term-page,
  .search-hero__inner,
  .term-page-hero__inner{
    gap:10px;
  }

  .search-results-form .search-form{
    flex-direction:column;
    align-items:stretch;
    gap:8px;
  }

  .search-results-form .search-form button{
    width:100%;
  }

  .term-page-content{
    padding:28px 0;
  }

  .term-index-summary{
    grid-template-columns:1fr;
    gap:8px;
    margin-bottom:18px;
  }

  .term-index-nav{
    gap:6px;
    margin-bottom:24px;
  }

  .term-index-page .term-groups{
    grid-template-columns:1fr;
    gap:18px;
  }
}

.search-hero .archive-tax-label,
.term-page-hero .archive-tax-label{
  color:#ffffff;
}
