/* Category and subcategory archives use the existing Blog artwork and menu. */
body.thorn3-site .thorn3-blog-category-page { background: var(--thorn3-canvas); }
body.thorn3-site .thorn3-blog-category-banner {
  display: grid;
  align-content: center;
  min-height: clamp(13rem, 18vw, 18rem);
  padding: 2.5rem var(--thorn3-gutter);
  background-color: #53565a;
  background-image: linear-gradient(rgb(19 20 22 / 35%), rgb(19 20 22 / 48%)), var(--thorn3-blog-banner-image);
  background-position: center;
  background-size: cover;
  color: #fff;
  text-align: center;
}
body.thorn3-site .thorn3-blog-category-banner .thorn3-blog-category-brand {
  margin: 0 0 .6rem;
  font: 600 clamp(2.25rem, 4.3vw, 3.5rem)/1.1 var(--thorn3-font-display);
  letter-spacing: -.035em;
  text-shadow: 0 2px 5px rgb(0 0 0 / 55%);
}
body.thorn3-site .thorn3-blog-category-banner .thorn3-blog-category-brand a { color: #fff !important; text-decoration: none !important; }
body.thorn3-site .thorn3-blog-category-banner .thorn3-blog-category-brand a:is(:hover,:focus-visible) { text-decoration: underline !important; text-decoration-color: var(--thorn3-gold) !important; text-underline-offset: .18em; }
body.thorn3-site .thorn3-blog-category-banner h1 {
  max-width: none;
  margin: 0;
  color: #fff;
  font: 600 clamp(1rem, 1.8vw, 1.4rem)/1.4 var(--thorn3-font);
  letter-spacing: .055em;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgb(0 0 0 / 55%);
}
body.thorn3-site .thorn3-blog-category-tools { background: var(--thorn3-paper); border-bottom: 1px solid var(--thorn3-line); }
body.thorn3-site .thorn3-blog-category-nav { position: relative; z-index: 2; border-bottom: 1px solid var(--thorn3-line); }
body.thorn3-site .thorn3-blog-category-nav > ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0 clamp(.5rem, 1.25vw, 1.4rem);
  width: min(calc(100% - 2 * var(--thorn3-gutter)), 90rem);
  margin: 0 auto;
  padding: .25rem 0;
  list-style: none;
}
body.thorn3-site .thorn3-blog-category-nav li { position: relative; margin: 0; padding: 0; list-style: none; }
body.thorn3-site .thorn3-blog-category-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--thorn3-ink) !important;
  font: 600 .875rem/1.3 var(--thorn3-font);
  text-decoration: none !important;
  white-space: nowrap;
}
body.thorn3-site .thorn3-blog-category-nav a:is(:hover,:focus-visible),
body.thorn3-site .thorn3-blog-category-nav .current-menu-item > a { text-decoration: underline !important; text-decoration-color: var(--thorn3-gold) !important; text-decoration-thickness: 2px !important; text-underline-offset: .25em; }
body.thorn3-site .thorn3-blog-category-nav .menu-item-has-children > a::after { content: '⌄'; margin-inline-start: .3rem; font-size: 1rem; line-height: 1; }
body.thorn3-site .thorn3-blog-category-nav .sub-menu {
  position: absolute;
  z-index: 5;
  inset-block-start: 100%;
  inset-inline-start: 0;
  display: none;
  min-width: 13rem;
  max-width: min(18rem, calc(100vw - 2rem));
  margin: 0;
  padding: .4rem .85rem;
  border: 1px solid var(--thorn3-line);
  border-radius: var(--thorn3-radius);
  background: var(--thorn3-canvas);
  box-shadow: var(--thorn3-shadow);
}
body.thorn3-site .thorn3-blog-category-nav li:is(:hover,:focus-within) > .sub-menu { display: block; }
body.thorn3-site .thorn3-blog-category-nav .sub-menu a { display: flex; width: 100%; white-space: normal; }
body.thorn3-site .thorn3-blog-category-search-strip { padding: .4rem var(--thorn3-gutter) .7rem; }
body.thorn3-site .thorn3-blog-search { display: flex; align-items: stretch; width: 100%; margin: 0; }
body.thorn3-site .thorn3-blog-category-search-strip .thorn3-blog-search { max-width: 47.5rem; margin-inline: auto; }
body.thorn3-site .thorn3-blog-search input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: .6rem .8rem;
  border: 1px solid #89898d;
  border-radius: var(--thorn3-radius) 0 0 var(--thorn3-radius);
  background: var(--thorn3-canvas);
  color: var(--thorn3-ink);
  font: 400 1rem/1.25 var(--thorn3-font);
}
body.thorn3-site .thorn3-blog-search button {
  flex: 0 0 auto;
  min-height: 44px;
  margin: 0;
  padding: .6rem 1rem;
  border: 1px solid var(--thorn3-gold);
  border-radius: 0 var(--thorn3-radius-pill) var(--thorn3-radius-pill) 0;
  background: var(--thorn3-gold);
  color: var(--thorn3-ink);
  font: 600 .875rem/1.25 var(--thorn3-font);
  cursor: pointer;
}
body.thorn3-site .thorn3-blog-search button:hover { background: #ffd45a; border-color: #ffd45a; }
body.thorn3-site .thorn3-blog-category-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.65fr) minmax(16rem, .9fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  width: min(calc(100% - 2 * var(--thorn3-gutter)), 84rem);
  margin-inline: auto;
  padding-block: clamp(1.75rem, 3vw, 3rem) 4rem;
}
body.thorn3-site .thorn3-blog-category-main,
body.thorn3-site .thorn3-blog-category-sidebar { min-width: 0; }
body.thorn3-site .thorn3-blog-category-cards { display: grid; gap: 1.25rem; }
body.thorn3-site .thorn3-blog-archive-card {
  min-width: 0;
  padding: clamp(.9rem, 1.5vw, 1.25rem);
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: var(--thorn3-canvas);
  box-shadow: 0 3px 9px rgb(29 29 31 / 10%);
}
body.thorn3-site .thorn3-blog-archive-image {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--thorn3-cloud);
  text-decoration: none;
}
body.thorn3-site .thorn3-blog-archive-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
body.thorn3-site .thorn3-blog-archive-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: var(--thorn3-muted); font: 600 1rem/1.3 var(--thorn3-font-display); letter-spacing: .06em; }
body.thorn3-site .thorn3-blog-archive-card h2 {
  margin: .9rem 0 .25rem;
  font: 600 clamp(1.25rem, 2vw, 1.65rem)/1.2 var(--thorn3-font-display);
  letter-spacing: -.02em;
  text-transform: uppercase;
}
body.thorn3-site .thorn3-blog-archive-card h2 a { color: var(--thorn3-ink) !important; text-decoration: none !important; }
body.thorn3-site .thorn3-blog-archive-card h2 a:is(:hover,:focus-visible) { text-decoration: underline !important; text-decoration-color: var(--thorn3-gold) !important; text-decoration-thickness: 2px !important; }
body.thorn3-site .thorn3-blog-archive-card .thorn3-blog-archive-meta { margin: 0 0 .9rem; color: var(--thorn3-muted); font-size: .875rem; }
body.thorn3-site .thorn3-blog-archive-meta span { margin-inline: .3rem; }
body.thorn3-site .thorn3-blog-archive-meta a { color: var(--thorn3-ink) !important; text-decoration: none !important; }
body.thorn3-site .thorn3-blog-archive-meta a:is(:hover,:focus-visible) { text-decoration: underline !important; text-decoration-color: var(--thorn3-gold) !important; }
body.thorn3-site .thorn3-blog-archive-card .thorn3-blog-archive-excerpt { margin: 0; color: var(--thorn3-muted); font-size: .95rem; line-height: 1.65; }
body.thorn3-site .thorn3-blog-category-sidebar { padding-inline-start: clamp(1.2rem, 2.5vw, 2rem); border-inline-start: 1px solid var(--thorn3-line); }
body.thorn3-site .thorn3-blog-category-sidebar .thorn3-blog-search { margin-bottom: 1.4rem; }
body.thorn3-site .thorn3-blog-category-sidebar .thorn3-blog-search button { border-radius: 0 var(--thorn3-radius) var(--thorn3-radius) 0; }
body.thorn3-site .thorn3-blog-category-sidebar h2 { margin: 1.5rem 0 .65rem; font: 500 1.5rem/1.2 var(--thorn3-font-display); }
body.thorn3-site .thorn3-blog-category-sidebar ul { margin: 0; padding: 0; list-style: none; }
body.thorn3-site .thorn3-blog-category-sidebar li { margin: 0; padding: 0; list-style: none; }
body.thorn3-site .thorn3-blog-category-sidebar li > ul { padding-inline-start: .9rem; }
body.thorn3-site .thorn3-blog-category-sidebar li a { display: inline-flex; align-items: center; min-height: 2rem; color: var(--thorn3-muted) !important; font-size: .875rem; line-height: 1.4; text-decoration: none !important; }
body.thorn3-site .thorn3-blog-category-sidebar li a:is(:hover,:focus-visible),
body.thorn3-site .thorn3-blog-category-sidebar li a[aria-current="page"] { color: var(--thorn3-ink) !important; text-decoration: underline !important; text-decoration-color: var(--thorn3-gold) !important; text-decoration-thickness: 2px !important; text-underline-offset: .22em; }
body.thorn3-site .thorn3-blog-category-main .pagination { margin-top: 2rem; }
body.thorn3-site .thorn3-blog-category-main .nav-links { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
body.thorn3-site .thorn3-blog-category-main .page-numbers { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: .45rem .7rem; border: 1px solid var(--thorn3-line); border-radius: var(--thorn3-radius); color: var(--thorn3-ink); text-decoration: none; }
body.thorn3-site .thorn3-blog-category-main .page-numbers.current { border-color: var(--thorn3-ink); background: var(--thorn3-ink); color: #fff; }
body.thorn3-site .thorn3-blog-category-main a.page-numbers:is(:hover,:focus-visible) { border-color: var(--thorn3-gold); text-decoration: underline; text-decoration-color: var(--thorn3-gold); }
body.thorn3-site .thorn3-blog-category-empty { padding: 2rem 0; }
@media (max-width: 63.99rem) {
  body.thorn3-site .thorn3-blog-category-layout { grid-template-columns: minmax(0, 1fr); max-width: 54rem; }
  body.thorn3-site .thorn3-blog-category-sidebar { padding: 1.5rem 0 0; border-inline-start: 0; border-top: 1px solid var(--thorn3-line); }
  body.thorn3-site .thorn3-blog-category-sidebar > .thorn3-blog-search { display: none; }
}
@media (max-width: 47.99rem) {
  body.thorn3-site .thorn3-blog-category-banner { min-height: 12rem; }
  body.thorn3-site .thorn3-blog-category-nav > ul { gap: 0 .75rem; }
  body.thorn3-site .thorn3-blog-category-nav a { font-size: .8125rem; }
  body.thorn3-site .thorn3-blog-archive-card { padding: .9rem; }
  body.thorn3-site .thorn3-blog-archive-card h2 { font-size: 1.2rem; }
  body.thorn3-site .thorn3-blog-archive-meta span { margin-inline: .15rem; }
}
