/* Arial resized to the web fonts' metrics (average width over Turkish text, ascent, descent), so text painted before
   Raleway / Open Sans arrive takes the same space and nothing below it jumps when they swap in. */
@font-face { font-family: 'Open Sans Fallback'; font-weight: 400; src: local('Arial'), local('ArialMT'), local('Liberation Sans'), local('LiberationSans-Regular');
  size-adjust: 103.93%; ascent-override: 102.84%; descent-override: 28.19%; line-gap-override: 0%; }
@font-face { font-family: 'Open Sans Fallback'; font-weight: 700; src: local('Arial Bold'), local('Arial-BoldMT'), local('Liberation Sans Bold'), local('LiberationSans-Bold');
  size-adjust: 104.93%; ascent-override: 101.87%; descent-override: 27.92%; line-gap-override: 0%; }
@font-face { font-family: 'Raleway Fallback'; font-weight: 400; src: local('Arial'), local('ArialMT'), local('Liberation Sans'), local('LiberationSans-Regular');
  size-adjust: 102.20%; ascent-override: 91.97%; descent-override: 22.90%; line-gap-override: 0%; }
@font-face { font-family: 'Raleway Fallback'; font-weight: 700; src: local('Arial Bold'), local('Arial-BoldMT'), local('Liberation Sans Bold'), local('LiberationSans-Bold');
  size-adjust: 99.28%; ascent-override: 94.68%; descent-override: 23.57%; line-gap-override: 0%; }

:root {
  --palette-1: #FFFFFF;
  --palette-2: #379777;
  --palette-3: #F26C4F;
  --palette-4: #7ED4AD;
  /* Darker than --palette-2, which only reaches 3.59:1 on white: the small text on these controls needs 4.5:1. */
  --action-green: #2B7A60;
  --board-green: #1e7840;
  --board-green-tint: #e5f3ea;
}

.navbar {
  font-family: 'Raleway', 'Raleway Fallback', sans-serif;
  font-weight: 500;
}

.navbar a:hover {
  text-decoration-line: none;
}

.header nav[aria-label="breadcrumb"] {
  border-bottom: 1px solid #e9ecef;
  background: #fff;
}

.header nav[aria-label="breadcrumb"] .breadcrumb {
  margin-bottom: 0;
  padding: 0.6rem 0;
  font-family: 'Raleway', 'Raleway Fallback', sans-serif;
  font-size: 0.95rem;
}

.header nav[aria-label="breadcrumb"] .breadcrumb-item a {
  color: var(--palette-2);
  font-weight: 600;
  text-decoration: none;
}

.header nav[aria-label="breadcrumb"] .breadcrumb-item a:hover {
  color: var(--palette-3);
}

.header nav[aria-label="breadcrumb"] .breadcrumb-item.active {
  color: var(--palette-3);
  font-weight: 700;
}

.header nav[aria-label="breadcrumb"] .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(242, 108, 79, 0.75);
}

@media (max-width: 575.98px) {
  /* No scrollbar: where it takes space it would add its height to the bar. */
  .header nav[aria-label="breadcrumb"] {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .header nav[aria-label="breadcrumb"]::-webkit-scrollbar {
    display: none;
  }

  .header nav[aria-label="breadcrumb"] .breadcrumb {
    flex-wrap: nowrap;
    white-space: nowrap;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
  }

  /* A shrunk item's text runs over the next separator; the bar scrolls instead. */
  .header nav[aria-label="breadcrumb"] .breadcrumb-item {
    flex-shrink: 0;
  }
}

.footer {
  font-family: 'Raleway', 'Raleway Fallback', sans-serif;
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--white);
  margin-top: auto;
}

.footer a:hover, .footer a {
  text-decoration-line: none;
}

/* The page's last block keeps a gap above the in-flow footer; flex items do not collapse margins, so this adds to it. */
body > :has(+ .footer) {
  margin-bottom: 2rem;
}

.policy-content h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #212529;
  margin: 2.25rem 0 0.75rem;
}

.footer-columns {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.footer-brand {
  flex: none;
}

.footer-column {
  flex: 1 1 0;
  min-width: 0;
}

.footer h5 {
  margin: 0 0 0.75rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  display: block;
  padding: 0.125rem 0;
  line-height: 1.6;
}

.footer-links a:hover,
.footer-links a:focus {
  text-decoration-line: underline;
}

/* Stacked sections, each list in two columns of 32 px rows: one stacked list of 21 rows was 21.6 px a row, under the
   24 px minimum target size. */
@media (max-width: 767.98px) {
  .footer-columns {
    flex-direction: column;
    align-items: stretch;
    gap: 1.125rem;
  }

  .footer-brand {
    align-self: flex-start;
  }

  .footer h5 {
    margin-bottom: 0.25rem;
  }

  .footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1rem;
  }

  .footer-links a,
  .footer h5 a {
    display: flex;
    align-items: center;
    min-height: 32px;
    line-height: 1.25;
    padding: 0;
  }
}

body {
  font-family: 'Open Sans', 'Open Sans Fallback', sans-serif;
  text-rendering: optimizeLegibility;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.5;
  /* A column the footer's margin-top:auto pushes to the bottom of a short page; it flows after the content of a long
     one, whatever its height. svh: plain vh counts a phone's hidden toolbar, so a short page would scroll. */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  margin-top: 1rem;
  margin-bottom: 1rem;
  font-family: 'Raleway', 'Raleway Fallback', sans-serif;
  font-weight: 500;
  line-height: 1.2;
  color: inherit;
}

.post-content h1, .post-content h2, .post-content h3, .post-content h4, .post-content h5, .post-content h6,
.post-content .h1, .post-content .h2, .post-content .h3, .post-content .h4, .post-content .h5, .post-content .h6 {
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

h1, .h1 {
  font-weight: 700;
  font-size: 3.0rem;
}

h2, .h2 {
  font-weight: 700;
  font-size: 1.8rem;
}

h3, .h3 {
  font-weight: 600;
  font-size: 1.6rem;
}

h4, .h4 {
  font-size: 1.4rem;
}

h5, .h5 {
  font-size: 1.25rem;
}

h6, .h6 {
  font-size: 1rem;
}

.bg-site {
  background: var(--palette-1);
}

.bg-palette-1 {
  background: var(--palette-1);
}

.bg-palette-2 {
  background: var(--palette-2);
}

.bg-palette-3 {
  background: var(--palette-3);
}

.bg-palette-4 {
  background: var(--palette-4);
}

.text-palette-1 {
  color: var(--palette-1);
}

.text-palette-2 {
  color: var(--palette-2);
}

.text-palette-3 {
  color: var(--palette-3);
}

.text-palette-4 {
  color: var(--palette-4);
}

.listing-image{
  /* Keep puzzle/category cards visually consistent across breakpoints */
  display: block;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
  margin-left: auto;
  margin-right: auto;
}

/* Detail hero. The cover, the title block, the downloads, the share row and the prev/next row are siblings in one
   grid so that the downloads can span both columns on a phone while sitting beside the cover on wider screens. */
.detail-hero {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  column-gap: 1rem;
  row-gap: 1rem;
  align-items: center;
  margin-top: 1.25rem;
}

.detail-hero-cover {
  grid-column: 1;
  grid-row: 1;
}

.detail-hero-cover .listing-image {
  max-width: 120px;
}

.detail-hero-body {
  grid-column: 2;
  grid-row: 1;
}

.detail-downloads,
.detail-share,
.detail-nav {
  grid-column: 1 / -1;
}

/* Not 768px: there .col-md-8 is only 456px wide, so a 280px cover would leave the buttons 136px. */
@media (min-width: 992px) {
  .detail-hero {
    grid-template-columns: 280px minmax(0, 1fr);
    /* The cover spans every row, so without a 1fr last row its height is shared out between them and
       opens a gap under the title. */
    grid-template-rows: auto auto auto 1fr;
    column-gap: 2.5rem;
    row-gap: 1.25rem;
    align-items: start;
    margin-top: 2rem;
  }

  /* Across all four rows declared above, so the 1fr one takes its extra height. */
  .detail-hero-cover {
    grid-row: 1 / -1;
  }

  .detail-hero-cover .listing-image {
    max-width: 280px;
  }

  .detail-hero-body,
  .detail-downloads,
  .detail-share,
  .detail-nav {
    grid-column: 2;
  }

  .detail-downloads {
    grid-row: 2;
  }

  /* The share row and the prev/next row take the next free rows themselves, so with the share row hidden (no
     JavaScript) prev/next moves up under the downloads. The 1fr row is then empty, and its gap shows only where
     this column is taller than the cover. */
}

.detail-eyebrow {
  font-family: 'Raleway', 'Raleway Fallback', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--action-green);
  text-decoration: none;
}

.detail-title {
  margin: 0.375rem 0 0.625rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #212529;
}

@media (min-width: 992px) {
  .detail-title {
    font-size: 2.5rem;
  }
}

.detail-meta {
  margin-bottom: 0;
  color: #495057;
}

.detail-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.detail-dl {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.125rem;
  padding: 0.75rem 1.5rem;
  text-align: left;
}

.detail-dl-label {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
}

/* Lines up with the label's text rather than its icon. */
.detail-dl-sub {
  padding-left: 1.875rem;
  font-size: 0.875rem;
}

.detail-dl-primary,
.detail-dl-primary:hover,
.detail-dl-primary:focus {
  background: var(--action-green);
  border-color: var(--action-green);
  color: #fff;
}

.detail-dl-secondary {
  background: #fff;
  border-color: var(--action-green);
  color: var(--action-green);
}

.detail-dl-secondary:hover,
.detail-dl-secondary:focus {
  background: var(--action-green);
  border-color: var(--action-green);
  color: #fff;
}

.detail-dl:focus {
  box-shadow: 0 0 0 .25rem rgba(43, 122, 96, .5);
}

.detail-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  font-weight: 700;
  color: var(--action-green);
}

.detail-share-btn:hover {
  color: #1f5a46;
}

.detail-share-done,
.detail-share-btn.is-copied .detail-share-icon {
  display: none;
}

.detail-share-btn.is-copied .detail-share-done {
  display: inline;
}

.detail-share-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  max-width: 28rem;
  font-size: 0.875rem;
  font-weight: 700;
}

.detail-share-btn:focus-visible {
  outline: 2px solid var(--action-green);
  outline-offset: 4px;
  border-radius: 0.25rem;
}

.detail-nav {
  display: flex;
  gap: 1rem;
  margin-top: 0.75rem;
  padding-top: 0.875rem;
  border-top: 1px solid #dee2e6;
}

.detail-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  max-width: calc(50% - 0.5rem);
  min-height: 44px;
  font-weight: 700;
  color: var(--action-green);
  text-decoration: none;
}

.detail-nav-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.detail-nav-label {
  font-size: 0.8125rem;
  font-weight: 400;
  color: #6c757d;
}

.detail-nav-name {
  overflow-wrap: anywhere;
}

.detail-nav-link:hover {
  color: #1f5a46;
}

.detail-nav-next {
  margin-left: auto;
  text-align: end;
}

@media (max-width: 991.98px) {
  .detail-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .detail-downloads {
    flex-direction: column;
  }

  .detail-dl {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
    padding: 0 1rem;
  }

  .detail-dl-sub {
    padding-left: 0;
  }
}

@media (min-width: 1600px) {
  .container {
    max-width: calc(100% - 200px);
    margin-left: 100px;
    margin-right: 100px;
  }
}

.category-icon::before {
  display: inline-block;
  content: "";
  background-image: url("../bootstrap-icons/alarm.svg");
  background-repeat: no-repeat;
  background-size: 1rem 1rem;
}

.listing-designator {
  border-left: 5px solid var(--palette-3);
  padding-left: 1rem;
}

hr {
  border: 1px solid lightgray;
}

.section-divider {
  border: 0;
  border-top: 1px solid #dee2e6;
  margin: 3rem 0 1.75rem;
  opacity: 1;
}

.section-heading {
  padding-bottom: 0.4rem;
}

.section-heading::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin: 0.5rem auto 0;
  background: var(--palette-3);
  border-radius: 2px;
}

/* Step-by-step walkthrough players (js/walkthrough-player.js and each *-walkthrough.js), on blog posts and puzzle
   detail pages. The wt- classes carry the look; a type's own prefix only sets its width and colour. */
.wt-widget {
  --wt-accent: var(--board-green);
  --wt-accent-tint: var(--board-green-tint);
  margin: 1.5rem auto;
  max-width: 460px;
  text-align: center;
}

.wt-grid {
  width: 100%;
  height: auto;
  border: 1px solid #e5e7eb;
  border-radius: 0.4rem;
}

/* The player puts the controls above the caption, so a longer caption never moves the button a reader is tapping. */
.wt-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

/* 2.75rem: a 44 px touch target, since › is tapped over and over on a phone. */
.wt-btn {
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.25rem 0.6rem;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--wt-accent);
  background: #ffffff;
  border: 1px solid var(--wt-accent);
  border-radius: 0.35rem;
  cursor: pointer;
}

.wt-btn:hover:not(:disabled) {
  background: var(--wt-accent-tint);
}

.wt-btn:disabled {
  color: #9ca3af;
  border-color: #d1d5db;
  cursor: default;
}

.wt-counter {
  min-width: 3.5rem;
  color: #6b7280;
  font-variant-numeric: tabular-nums;
}

.wt-caption {
  min-height: 2.6em;
  margin-top: 0.5rem;
  color: #374151;
  font-size: 0.98rem;
  line-height: 1.35;
}

.swt-guide-link {
  display: inline-block;
  margin-top: 0.15rem;
  color: var(--board-green);
  font-size: 0.88rem;
  text-decoration: none;
}

.swt-guide-link:hover {
  text-decoration: underline;
}

.swt-guide-link[hidden] {
  display: none;
}

/* Wider boards: kare karalamaca's and apartmanlar's clue margins, and the pencil marks and clue pairs of kakuro and
   kendoku. */
.nwt-widget,
.kwt-widget,
.kdwt-widget,
.awt-widget {
  max-width: 520px;
}

/* Amiral Battı takes the sea-blue of its puzzle art. */
.bwt-widget {
  --wt-accent: #1a5fb4;
  --wt-accent-tint: #e2eef7;
}

.bwt-fleet {
  margin-top: 0.5rem;
  color: #6b7280;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

/* Kakuro, kendoku and apartmanlar take the green of the ladder chips. */
.kwt-widget,
.kdwt-widget,
.awt-widget {
  --wt-accent: #1a7f37;
  --wt-accent-tint: #e6f4ea;
}

/* The deduction chain under a kakuro frame's caption. Left-aligned inside the centred figure because
   it is read line by line, and tabular figures keep the sums from jittering between frames. No list
   markers: the lines open with their own ordinals. */
.kwt-chain {
  margin: 0.35rem auto 0;
  padding-left: 0;
  list-style: none;
  max-width: 34rem;
  color: #4b5563;
  font-size: 0.88rem;
  line-height: 1.45;
  text-align: left;
  font-variant-numeric: tabular-nums;
}

.kwt-chain li {
  margin-bottom: 0.15rem;
}

.kwt-chain li:last-child {
  margin-bottom: 0;
  color: #1a7f37;
  font-weight: 600;
}

/* Hint-ladder chips (every walkthrough ladder, and the sudoku play ladder): the strip is a wrapping flex row of numbers, so the
   chips are width-matched and tabular-figured to keep "1" and "10" the same size rather than ragged. */
.wt-chip,
.pp-chip {
  min-width: 2.6rem;
  font-variant-numeric: tabular-nums;
}

/* The open puzzle's chip stays filled. Keyed off aria-expanded rather than a class the player would have
   to toggle, so the highlight cannot drift from the state screen readers are told. #198754 is what
   btn-outline-success fills with on hover (Bootstrap 5.0 has no per-button custom properties to reuse). */
.wt-chip[aria-expanded="true"],
.pp-chip[aria-expanded="true"] {
  color: #fff;
  background-color: #198754;
  border-color: #198754;
}

/* Progressive enhancement: .js-only marks what does nothing without JS (the play and walkthrough sections, the
   play page's controls). An inline script in the shared <head> (fragments/layout.html) adds .js
   to <html> before first paint. Hiding in the no-JS state, rather than revealing under .js, leaves each element its natural display
   (block, flex) once JS runs, and outranks rules that set it (`.pp-next-bar { display: flex }`). */
html:not(.js) .js-only {
  display: none;
}

/* detail.html draws each section's divider outside the section, so a hidden JS-only section would leave it behind. */
html:not(.js) hr.section-divider:has(+ .js-only) {
  display: none;
}

/* Shared lazy-load placeholder styling for both ladders (sudoku + tents). */
.wt-loading,
.wt-error {
  padding: 1rem;
  text-align: center;
}

.wt-retry {
  margin-left: 0.5rem;
}

/* A widget placeholder (WT.lazyMount, docs/playable-widgets-roadmap.md §4b): loading and error states sit over
   its board box, so neither changes the height the finished widget will have. */
[data-wt-board] {
  position: relative;
}

[data-wt-placeholder] button:disabled {
  opacity: 0.55;
  cursor: default;
}

.wt-host--loading [data-wt-board]::after {
  content: "Yükleniyor…";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6e6e6e;
  background-image: linear-gradient(to right, #00000010 1px, transparent 1px),
    linear-gradient(to bottom, #00000010 1px, transparent 1px);
  background-size: calc(100% / 9) calc(100% / 9);
}

[data-wt-board] > .wt-error {
  position: absolute;
  inset: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  align-content: center;
  gap: 0.5rem;
  background: #ffffffe6;
}

[data-wt-board] > .wt-error .wt-retry {
  margin-left: 0;
}

/* Category page text and level facts (category-templates/layout4.html). Links use the darker action green because
   --palette-2 reaches only 3.59:1 on white, below the 4.5:1 small text needs. */
.category-content a,
.category-techniques a,
.category-levels a {
  color: var(--action-green);
}

.category-content h2,
.category-content h3,
.category-guide-heading {
  font-weight: 700;
  color: #212529;
}

.category-content h2,
.category-guide-heading {
  font-size: 1.6rem;
  margin: 2.25rem 0 0.75rem;
}

.category-content h3 {
  font-size: 1.2rem;
  margin: 1.5rem 0 0.5rem;
}

.category-content > :first-child {
  margin-top: 0;
}

.category-levels + .category-guide {
  margin-top: 2.25rem;
}

.category-intro {
  font-size: 1.15rem;
  max-width: 48rem;
}

.category-blurb {
  max-width: 48rem;
}

.category-blurb p {
  margin-bottom: 0.5rem;
}

.category-jump {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

/* On its own line, so buttons that wrap start under the first one rather than under the label. */
.category-jump > .text-muted {
  flex-basis: 100%;
}

.category-btn-outline {
  color: var(--action-green);
  border-color: var(--action-green);
}

.category-btn-outline:hover,
.category-btn-outline:focus {
  color: #fff;
  background: var(--action-green);
  border-color: var(--action-green);
}

/* A heading that links to its category keeps the heading's look; the chevron is the cue on touch, which has no hover. */
.type-heading-link,
.type-heading-link:hover,
.type-heading-link:focus {
  color: inherit;
}

.type-heading-link {
  text-decoration: none;
}

.type-heading-link:hover,
.type-heading-link:focus {
  text-decoration: underline;
}

.type-heading-chevron {
  margin-left: 0.35rem;
}

.category-stat-line {
  color: #495057;
  font-size: 0.95rem;
}

.category-stat-line a {
  color: var(--action-green);
}

.category-play-callout {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 1.5rem 0 0.5rem;
  padding: 1rem 1.25rem;
  background: #f3f8f6;
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
}

.category-play-board {
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
}

.category-play-text {
  flex: 1 1 auto;
  min-width: 0;
}

.category-play-text h2 {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #212529;
}

.category-play-text p {
  margin: 0;
}

.category-play-btn {
  flex: 0 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  font-weight: 700;
  color: #fff;
  background: var(--action-green);
  border-color: var(--action-green);
}

.category-play-btn:hover,
.category-play-btn:focus {
  color: #fff;
  background: #1f5a46;
  border-color: #1f5a46;
}

.category-level-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.category-level-nav-harder {
  margin-left: auto;
}

@media (max-width: 575.98px) {
  .category-jump .btn,
  .category-level-nav .btn {
    min-height: 44px;
  }

  .category-level-nav .btn {
    flex: 1 1 100%;
  }

  .category-play-callout {
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
  }

  .category-play-board {
    width: 72px;
    height: 72px;
  }

  .category-play-text {
    flex-basis: calc(100% - 72px - 1rem);
  }

  .category-play-btn {
    flex: 1 1 100%;
    min-height: 44px;
  }
}

.type-directory-lead {
  color: #495057;
  font-size: 1.1rem;
  margin: 0 0 1.5rem;
}

.type-directory {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin-bottom: 3rem;
}

/* Two columns only from lg: inside col-md-8 a md column leaves the entry's text under 80 px beside its cover. */
@media (min-width: 992px) {
  .type-directory {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.type-directory-entry {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 16px;
}

.type-directory-cover {
  flex: none;
}

.type-directory-cover img {
  display: block;
  width: 92px;
  height: 119px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .15);
}

.type-directory-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.type-directory-body h2 {
  font-size: 1.5rem;
  margin: 0;
}

/* Inline, so the chevron follows the last word when the name wraps. */
.type-directory-body h2 a {
  display: inline;
}

.type-directory-blurb {
  color: #495057;
  font-size: 1rem;
  line-height: 1.4;
}

.type-directory-blurb p {
  margin: 0;
}

.type-directory-levels {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.type-directory-levels .btn {
  font-size: .875rem;
  padding: .25rem .6rem;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}

@media (max-width: 767.98px) {
  .type-directory-lead {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .type-directory {
    gap: 14px;
    margin-bottom: 2rem;
  }

  .type-directory-entry {
    gap: 14px;
    padding: 12px;
  }

  .type-directory-cover img {
    width: 72px;
    height: 93px;
  }

  .type-directory-body {
    gap: 6px;
  }

  .type-directory-body h2 {
    font-size: 1.3rem;
    line-height: 1.3;
  }

  .type-directory-body h2 a {
    padding: 6px 0;
  }

  .type-directory-blurb {
    font-size: .9rem;
  }

  .type-directory-levels .btn {
    font-size: .85rem;
    padding: .3rem .65rem;
    min-height: 44px;
  }

  .type-directory-body .category-stat-line a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}
