/* =========================================================
   Finanzhack Directory
   Scope: hack archive and hack category pages only.
   ========================================================= */

.fh-hack-directory,
.fh-hack-directory * {
  box-sizing: border-box;
}

.fh-hack-directory {
  --fh-dir-ink: #070709;
  --fh-dir-paper: #f4f0e8;
  --fh-dir-card: #fffdfa;
  --fh-dir-orange: #e58a16;
  --fh-dir-orange-dark: #c85f12;
  --fh-dir-mint: #dcebd8;
  --fh-dir-blue: #dfe8f6;
  --fh-dir-yellow: #f5df91;
  --fh-dir-lavender: #ded8f0;
  --fh-dir-peach: #efc99e;
  --fh-dir-cream: #f8edcf;
  --fh-dir-shadow: 7px 7px 0 rgba(7, 7, 9, .18);
  width: 100%;
  margin: 0;
  overflow-x: hidden;
  background: transparent;
  color: var(--fh-dir-ink);
  font-family: Georgia, "Times New Roman", serif;
}

.fh-hack-directory a {
  color: inherit;
  text-decoration: none;
}

.fh-hack-directory svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fh-directory-wrap {
  width: min(1040px, calc(100% - 24px));
  margin-inline: auto;
}

.fh-directory-hero {
  padding: 24px 0 12px;
}

.fh-back-link {
  display: inline-flex;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.fh-back-link:hover {
  color: var(--fh-dir-orange-dark);
}

.fh-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 22px;
  align-items: start;
}

.fh-hero-copy {
  position: relative;
  min-height: 270px;
  padding: 0 0 10px 0;
  background: transparent;
}

.fh-hero-copy::before,
.fh-hero-copy::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.fh-hero-copy::before {
  right: 130px;
  top: 118px;
  width: 175px;
  height: 118px;
  background: linear-gradient(8deg, #dcebd8 0 48%, transparent 49%), linear-gradient(-9deg, #ded8f0 0 56%, transparent 57%);
  border: 2px solid var(--fh-dir-ink);
  box-shadow: -46px 34px 0 -8px #dfe8f6;
  transform: rotate(-7deg);
}

.fh-hero-copy::after {
  right: 34px;
  top: 128px;
  width: 104px;
  height: 104px;
  border: 9px solid var(--fh-dir-ink);
  border-radius: 999px;
  box-shadow: 56px 58px 0 -40px var(--fh-dir-ink);
  transform: rotate(-23deg);
}

.fh-kicker {
  margin: 0 0 12px;
  color: var(--fh-dir-orange-dark);
  font-family: var(--fh-font-headline, "Arial Black", Arial, Helvetica, sans-serif);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.fh-hero-copy h1 {
  max-width: 760px;
  margin: 0;
  font-family: var(--fh-font-headline, "Arial Black", Arial, Helvetica, sans-serif);
  font-size: clamp(58px, 7vw, 82px);
  font-weight: 900;
  line-height: .88;
  letter-spacing: 0;
  text-transform: uppercase;
}

.fh-hero-copy > p:not(.fh-kicker) {
  max-width: 500px;
  margin: 20px 0 0;
  font-size: 17px;
  line-height: 1.42;
}

.fh-proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 30px;
}

.fh-proof-row span,
.fh-directory-footer span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 900;
}

.fh-proof-row svg,
.fh-directory-footer svg {
  width: 18px;
  height: 18px;
}

.fh-hero-showcase {
  width: 250px;
  max-width: 250px;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.fh-system-card {
  width: 250px;
  max-width: 250px;
  margin: 0;
  padding: 12px;
  overflow: hidden;
  background: #f7f5ef;
  border: 3px solid var(--fh-dir-ink);
  box-shadow: var(--fh-dir-shadow);
  transform: rotate(1.5deg);
}

.fh-clapper {
  height: 18px;
  margin-bottom: 10px;
  border: 2px solid var(--fh-dir-ink);
  background: repeating-linear-gradient(-20deg, var(--fh-dir-ink) 0 10px, #fffdfa 10px 18px);
}

.fh-system-card > p {
  margin: 0 0 10px;
  font-family: var(--fh-font-headline, "Arial Black", Arial, Helvetica, sans-serif);
  font-size: 14px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
}

.fh-system-card ol {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.fh-system-card li {
  padding: 10px;
  background: var(--fh-dir-card);
  border: 2px solid var(--fh-dir-ink);
}

.fh-system-card strong,
.fh-system-card span {
  display: block;
  font-size: 12px;
  line-height: 1.25;
}

.fh-system-card strong {
  margin-bottom: 4px;
  font-family: var(--fh-font-headline, "Arial Black", Arial, Helvetica, sans-serif);
  font-weight: 900;
}

.fh-directory-main {
  padding: 0 0 44px;
}

.fh-directory-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 2px solid var(--fh-dir-ink);
  border-bottom: 0;
}

.fh-directory-tabs a {
  display: grid;
  min-height: 48px;
  place-items: center;
  background: var(--fh-dir-card);
  border-right: 2px solid var(--fh-dir-ink);
  font-family: var(--fh-font-headline, "Arial Black", Arial, Helvetica, sans-serif);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.fh-directory-tabs a:last-child {
  border-right: 0;
}

.fh-directory-tabs a.is-active,
.fh-directory-tabs a:hover {
  background: var(--fh-dir-ink);
  color: #fffdfa;
}

.fh-topic-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  gap: 10px;
  padding: 12px;
  border: 2px solid var(--fh-dir-ink);
  background: var(--fh-dir-card);
}

.fh-topic-tile {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  min-height: 74px;
  padding: 12px;
  border: 2px solid #8b8880;
  box-shadow: 4px 4px 0 rgba(7, 7, 9, .13);
  transition: transform .16s ease, box-shadow .16s ease;
}

.fh-topic-tile:hover,
.fh-topic-tile.is-active {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(7, 7, 9, .2);
}

.fh-topic-tile.mint { background: var(--fh-dir-mint); }
.fh-topic-tile.blue { background: var(--fh-dir-blue); }
.fh-topic-tile.yellow { background: var(--fh-dir-yellow); }
.fh-topic-tile.lavender { background: var(--fh-dir-lavender); }
.fh-topic-tile.peach { background: var(--fh-dir-peach); }
.fh-topic-tile.cream { background: var(--fh-dir-cream); }

.fh-topic-tile > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid var(--fh-dir-ink);
  border-radius: 8px;
  background: rgba(255, 255, 255, .6);
}

.fh-topic-tile strong,
.fh-topic-tile small {
  display: block;
}

.fh-topic-tile strong {
  overflow: hidden;
  font-family: var(--fh-font-headline, "Arial Black", Arial, Helvetica, sans-serif);
  font-size: 12px;
  line-height: 1.1;
  text-overflow: ellipsis;
}

.fh-topic-tile small {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 900;
}

.fh-finder-grid,
.fh-content-grid,
.fh-magazine-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 20px;
  margin-top: 18px;
}

.fh-hack-finder,
.fh-mini-promise,
.fh-topic-list,
.fh-magazine-main,
.fh-side-box,
.fh-directory-empty {
  background: var(--fh-dir-card);
  border: 2px solid var(--fh-dir-ink);
  box-shadow: 5px 5px 0 rgba(7, 7, 9, .14);
}

.fh-hack-finder {
  padding: 22px;
}

.fh-hack-finder h2,
.fh-mini-promise h2,
.fh-section-head h2,
.fh-directory-card h3,
.fh-mag-card h3,
.fh-side-box h3,
.fh-directory-empty h3 {
  margin: 0;
  font-family: var(--fh-font-headline, "Arial Black", Arial, Helvetica, sans-serif);
  font-weight: 900;
  line-height: 1;
}

.fh-hack-finder h2 {
  font-size: 28px;
  text-transform: uppercase;
}

.fh-hack-finder p,
.fh-section-head p,
.fh-mini-promise p,
.fh-side-box p,
.fh-directory-card p,
.fh-mag-card small,
.fh-directory-empty p {
  color: #302f2a;
  font-size: 14px;
  line-height: 1.38;
}

.fh-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 0;
  margin-top: 18px;
}

.fh-search-row input[type="search"],
.fh-hack-finder input[type="search"],
.fh-finder-controls select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  background: #fff;
  border: 2px solid #d7d2c8;
  color: var(--fh-dir-ink);
  font: inherit;
  font-size: 13px;
}

.fh-search-row button,
.fh-hack-finder button,
.fh-black-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 18px;
  background: var(--fh-dir-ink);
  border: 2px solid var(--fh-dir-ink);
  color: #fffdfa;
  font-family: var(--fh-font-headline, "Arial Black", Arial, Helvetica, sans-serif);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  transition: transform .16s ease, background .16s ease, color .16s ease;
}

.fh-search-row button:hover,
.fh-hack-finder button:hover,
.fh-black-button:hover {
  background: var(--fh-dir-orange);
  color: var(--fh-dir-ink);
  transform: translateY(-1px);
}

.fh-finder-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
  align-items: end;
}

.fh-finder-controls label > span,
.fh-popular-searches span {
  display: block;
  margin-bottom: 6px;
  font-family: var(--fh-font-headline, "Arial Black", Arial, Helvetica, sans-serif);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.fh-template-toggle {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  background: #f4f0e8;
  border: 2px solid #d7d2c8;
}

.fh-template-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--fh-dir-ink);
}

.fh-popular-searches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.fh-popular-searches span {
  flex-basis: 100%;
  margin: 0;
}

.fh-popular-searches a,
.fh-reset-link {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid #cfc8bd;
  border-radius: 999px;
  background: #f8f5ee;
  font-size: 12px;
  font-weight: 800;
}

.fh-popular-searches a:hover,
.fh-reset-link:hover {
  background: var(--fh-dir-ink);
  color: #fffdfa;
}

.fh-reset-link {
  margin-top: 14px;
}

.fh-mini-promise {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: center;
  padding: 24px 22px;
  background: #dcebd8;
  color: var(--fh-dir-ink);
}

.fh-mini-promise > span,
.fh-mini-minutes {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 999px;
  background: #0a0a0c;
  color: #fffdfa;
  font-family: var(--fh-font-headline, "Arial Black", Arial, Helvetica, sans-serif);
  font-size: 12px;
  font-weight: 900;
  line-height: .82;
  text-align: center;
  text-transform: uppercase;
}

.fh-mini-promise h2 {
  max-width: 190px;
  color: var(--fh-dir-ink);
  font-size: 26px;
  line-height: .9;
  text-transform: uppercase;
}

.fh-mini-promise p {
  max-width: 190px;
  margin: 12px 0 0;
  color: var(--fh-dir-ink);
  font-size: 13px;
  line-height: 1.35;
}

.fh-mini-promise a {
  margin-top: 16px;
  color: var(--fh-dir-ink);
  font-family: var(--fh-font-headline, "Arial Black", Arial, Helvetica, sans-serif);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.fh-section-head {
  display: flex;
  gap: 16px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 14px;
}

.fh-section-head h2 {
  font-size: 26px;
  text-transform: uppercase;
}

.fh-section-head a {
  font-family: var(--fh-font-headline, "Arial Black", Arial, Helvetica, sans-serif);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.fh-card-grid {
  display: grid;
  gap: 16px;
}

.fh-card-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fh-directory-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  background: var(--fh-dir-card);
  border: 2px solid var(--fh-dir-ink);
  box-shadow: var(--fh-dir-shadow);
  transition: transform .16s ease, box-shadow .16s ease;
}

.fh-directory-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 9px 9px 0 rgba(7, 7, 9, .2);
}

.fh-card-rank {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  background: var(--fh-dir-ink);
  color: #fffdfa;
  font-family: var(--fh-font-headline, "Arial Black", Arial, Helvetica, sans-serif);
  font-size: 11px;
  font-weight: 900;
}

.fh-card-image {
  display: block;
  aspect-ratio: 16 / 8;
  overflow: hidden;
  background: var(--fh-dir-yellow);
  border-bottom: 2px solid var(--fh-dir-ink);
}

.fh-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fh-card-image-fallback {
  background: linear-gradient(135deg, var(--fh-dir-mint), var(--fh-dir-yellow));
}

.fh-card-image-fallback span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 253, 250, .72) 0 34%, transparent 35%), linear-gradient(135deg, transparent 0 54%, rgba(7, 7, 9, .12) 55% 56%, transparent 57%);
}

.fh-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 14px;
}

.fh-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.fh-card-meta span,
.fh-card-tags span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #f2eee5;
  border: 1px solid #d7d2c8;
  font-size: 11px;
  font-weight: 900;
}

.fh-directory-card h3 {
  font-size: 22px;
}

.fh-directory-card p {
  margin: 10px 0 0;
}

.fh-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: auto 0 12px;
  padding-top: 14px;
}

.fh-card-tags span:first-child {
  background: #fff7df;
}

.fh-directory-card .fh-black-button {
  width: 100%;
}

.fh-topic-list {
  padding: 20px 18px;
}

.fh-topic-list .fh-section-head {
  margin-bottom: 14px;
}

.fh-topic-list .fh-section-head h2 {
  position: relative;
  padding-left: 22px;
  font-size: 24px;
  line-height: .95;
  text-transform: uppercase;
}

.fh-topic-list .fh-section-head h2::before {
  content: "*";
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--fh-dir-orange-dark);
  font-size: 22px;
  line-height: 1;
}

.fh-topic-links {
  display: grid;
}

.fh-topic-links a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content 16px;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  padding: 10px 0;
  border-bottom: 1px solid #d8d0c4;
  color: var(--fh-dir-ink);
  font-weight: 900;
}

.fh-topic-links a::after {
  content: "\2192";
  justify-self: end;
  color: var(--fh-dir-ink);
  font-size: 13px;
}

.fh-topic-links span {
  min-width: 0;
  color: var(--fh-dir-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  line-height: 1.15;
  font-weight: 900;
}

.fh-topic-links small {
  color: #5d5a52;
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
}

.fh-topic-links a:hover,
.fh-topic-links a.is-active {
  color: var(--fh-dir-orange-dark);
}

.fh-all-results {
  margin-top: 24px;
}

.fh-directory-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 24px;
}

.fh-directory-pagination .page-numbers {
  display: grid;
  min-width: 38px;
  min-height: 38px;
  place-items: center;
  padding: 0 12px;
  background: var(--fh-dir-card);
  border: 2px solid var(--fh-dir-ink);
  font-weight: 900;
}

.fh-directory-pagination .page-numbers.current {
  background: var(--fh-dir-ink);
  color: #fffdfa;
}

.fh-directory-empty {
  padding: 28px;
  text-align: center;
}

.fh-directory-empty h3 {
  font-size: 28px;
}

.fh-magazine-main {
  padding: 18px;
}

.fh-magazine-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.fh-mag-card {
  display: flex;
  flex-direction: column;
  background: var(--fh-dir-card);
  border: 1px solid #cbc3b7;
}

.fh-mag-image {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--fh-dir-mint);
}

.fh-mag-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fh-mag-card span {
  width: max-content;
  margin: 12px 12px 0;
  padding: 4px 8px;
  background: #f4f0e8;
  font-family: var(--fh-font-headline, "Arial Black", Arial, Helvetica, sans-serif);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.fh-mag-card h3 {
  padding: 10px 12px 0;
  font-size: 16px;
}

.fh-mag-card small {
  display: block;
  padding: 10px 12px 12px;
  margin-top: auto;
}

.fh-side-ctas {
  display: grid;
  gap: 16px;
}

.fh-side-box {
  display: block;
  padding: 24px 20px;
  background: #ded8f0;
}

.fh-side-box:nth-child(2) {
  background: #dcebd8;
}

.fh-side-box svg {
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
}

.fh-side-box h3 {
  font-size: 26px;
}

.fh-side-box p {
  margin: 10px 0 0;
}

.fh-directory-footer {
  padding: 16px 0;
  border-top: 2px solid var(--fh-dir-ink);
  background: var(--fh-dir-card);
}

.fh-directory-footer .fh-directory-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  justify-content: space-between;
}

.fh-category-directory-hero .fh-hero-copy {
  min-height: 260px;
}

/* Category pages: open hero without white panel. */
.fh-hack-category-page {
  background: transparent;
}

.fh-hack-category-page .fh-directory-hero {
  padding: 34px 0 28px;
  background: transparent;
  border-bottom: 0;
}


.fh-hack-category-page .fh-directory-hero::after {
  content: "";
  display: block;
  width: min(1040px, calc(100% - 24px));
  height: 8px;
  margin: 30px auto 0;
  background: #070709;
  box-shadow: 0 6px 0 rgba(7, 7, 9, .16);
}

.fh-hack-category-page .fh-directory-main {
  padding-top: 16px;
}
.fh-hack-category-page .fh-hero-grid {
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 38px;
  align-items: center;
}

.fh-hack-category-page .fh-hero-copy {
  min-height: 0;
  padding: 10px 0 20px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.fh-hack-category-page .fh-hero-copy::before,
.fh-hack-category-page .fh-hero-copy::after {
  display: none;
}

.fh-hack-category-page .fh-back-link {
  margin-bottom: 18px;
}

.fh-hack-category-page .fh-kicker {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  margin-bottom: 14px;
  padding: 0 12px;
  background: var(--fh-dir-orange);
  border: 2px solid var(--fh-dir-ink);
  border-radius: 999px;
  color: var(--fh-dir-ink);
  letter-spacing: .14em;
}

.fh-hack-category-page .fh-hero-copy h1 {
  max-width: 860px;
  font-size: clamp(52px, 7vw, 86px);
  line-height: .88;
}

.fh-hack-category-page .fh-hero-copy > p:not(.fh-kicker) {
  max-width: 720px;
  margin-top: 18px;
  color: #26231f;
  font-size: 18px;
  line-height: 1.42;
}

.fh-hack-category-page .fh-proof-row {
  gap: 10px;
  margin-top: 24px;
}

.fh-hack-category-page .fh-proof-row span {
  min-height: 34px;
  padding: 0 12px;
  background: transparent;
  border: 2px solid rgba(7, 7, 9, .28);
  border-radius: 999px;
}

.fh-hack-category-page .fh-system-card {
  width: 100%;
  max-width: none;
  min-height: 100%;
  padding: 18px;
  background: #0a0a0c;
  color: #fffdfa;
  transform: rotate(1deg);
}

.fh-hack-category-page .fh-system-card > p,
.fh-hack-category-page .fh-system-card strong,
.fh-hack-category-page .fh-system-card span {
  color: #fffdfa;
}

.fh-hack-category-page .fh-system-card li {
  background: rgba(255, 253, 250, .08);
  border-color: rgba(255, 253, 250, .42);
}

.fh-hack-category-page .fh-clapper {
  border-color: #fffdfa;
  background: repeating-linear-gradient(-20deg, #fffdfa 0 10px, #0a0a0c 10px 18px);
}
/* Archive hero: exact reference composition. */
.fh-hack-archive-page .fh-hero-grid {
  grid-template-columns: minmax(0, 1fr) 260px 230px;
  gap: 22px;
}

.fh-hack-archive-page .fh-hero-copy {
  min-height: 270px;
  padding-right: 0;
}

.fh-hack-archive-page .fh-hero-copy::before,
.fh-hack-archive-page .fh-hero-copy::after {
  display: none;
}

.fh-hack-archive-page .fh-hero-copy h1 {
  max-width: 590px;
  font-size: clamp(58px, 6.8vw, 82px);
  line-height: .88;
}

.fh-hack-archive-page .fh-hero-copy > p:not(.fh-kicker) {
  max-width: 455px;
  margin-top: 16px;
  font-size: 15px;
}

.fh-hack-archive-page .fh-proof-row {
  gap: 22px;
  margin-top: 22px;
}

.fh-hero-visual {
  position: relative;
  min-height: 250px;
}

.fh-hero-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 4;
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  background: var(--fh-dir-orange);
  color: #fffdfa;
  clip-path: polygon(50% 0%, 61% 16%, 80% 10%, 84% 29%, 100% 39%, 88% 54%, 94% 73%, 74% 76%, 64% 93%, 49% 82%, 31% 95%, 24% 76%, 4% 72%, 12% 53%, 0 38%, 17% 29%, 20% 10%, 39% 16%);
  font-family: var(--fh-font-headline, "Arial Black", Arial, Helvetica, sans-serif);
  font-size: 9px;
  font-weight: 900;
  line-height: .9;
  text-align: center;
  text-transform: uppercase;
}

.fh-hero-sheet {
  position: absolute;
  display: block;
  border: 2px solid var(--fh-dir-ink);
  box-shadow: 5px 5px 0 rgba(7, 7, 9, .13);
}

.fh-hero-sheet-one {
  left: 22px;
  top: 92px;
  width: 140px;
  height: 95px;
  background: var(--fh-dir-mint);
  transform: rotate(-5deg);
}

.fh-hero-sheet-two {
  left: 72px;
  top: 64px;
  width: 118px;
  height: 96px;
  background: var(--fh-dir-lavender);
  transform: rotate(12deg);
}

.fh-hero-glass {
  position: absolute;
  left: 94px;
  top: 105px;
  z-index: 5;
  display: block;
  width: 98px;
  height: 98px;
  border: 9px solid var(--fh-dir-ink);
  border-radius: 999px;
  background: rgba(255, 253, 250, .18);
}

.fh-hero-glass::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -36px;
  width: 76px;
  height: 13px;
  background: var(--fh-dir-ink);
  border-radius: 999px;
  transform: rotate(45deg);
  transform-origin: left center;
}

.fh-hack-archive-page .fh-hero-showcase,
.fh-hack-archive-page .fh-system-card {
  width: 230px;
  max-width: 230px;
}

.fh-hack-archive-page .fh-system-card {
  padding: 10px;
}

.fh-hack-archive-page .fh-system-card li {
  padding: 8px 9px;
}

.fh-hack-archive-page .fh-system-card strong,
.fh-hack-archive-page .fh-system-card span {
  font-size: 10px;
}

.fh-hack-archive-page .fh-system-card .fh-black-button {
  min-height: 32px;
  font-size: 10px;
}
@media (max-width: 1100px) {
  .fh-hero-grid,
  .fh-finder-grid,
  .fh-content-grid,
  .fh-magazine-row {
    grid-template-columns: 1fr;
  }

  .fh-hero-showcase,
  .fh-system-card {
    width: 100%;
    max-width: 420px;
  }

  .fh-topic-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .fh-directory-wrap {
    width: min(100% - 28px, 1180px);
  }

  .fh-directory-hero {
    padding-top: 24px;
  }

  .fh-hero-copy {
    min-height: 0;
    padding-right: 0;
  }

  .fh-hero-copy::before,
  .fh-hero-copy::after {
    display: none;
  }

  .fh-hero-copy h1 {
    font-size: clamp(44px, 16vw, 64px);
  }

  .fh-proof-row {
    gap: 12px;
  }

  .fh-directory-tabs,
  .fh-card-grid-three,
  .fh-magazine-grid,
  .fh-finder-controls,
  .fh-topic-strip {
    grid-template-columns: 1fr;
  }

  .fh-directory-tabs a,
  .fh-directory-tabs a:last-child {
    border-right: 0;
    border-bottom: 2px solid var(--fh-dir-ink);
  }

  .fh-directory-tabs a:last-child {
    border-bottom: 0;
  }

  .fh-search-row {
    grid-template-columns: 1fr;
  }

  .fh-section-head {
    display: grid;
  }
}
/* Archive card button visibility fix. */
.fh-hack-directory .fh-black-button,
.fh-hack-directory .fh-black-button:visited {
  color: #fffdfa !important;
  font-size: 12px !important;
  line-height: 1 !important;
  text-indent: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  white-space: nowrap !important;
}

.fh-hack-directory .fh-black-button span {
  display: inline !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  color: currentColor !important;
  font-size: inherit !important;
  line-height: inherit !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.fh-hack-directory .fh-black-button:hover {
  color: var(--fh-dir-ink) !important;
}
/* Directory dark mode: archive and category pages only. */
body.dark-mode .fh-hack-directory,
body.is-dark-mode .fh-hack-directory,
body.dark .fh-hack-directory,
[data-theme="dark"] .fh-hack-directory {
  --fh-dir-ink: #f8f2e8;
  --fh-dir-paper: #111214;
  --fh-dir-card: #1b1b20;
  --fh-dir-orange: #f29a22;
  --fh-dir-orange-dark: #ffad3d;
  --fh-dir-mint: #23352b;
  --fh-dir-blue: #202b3d;
  --fh-dir-yellow: #47391b;
  --fh-dir-lavender: #302843;
  --fh-dir-peach: #4a2f21;
  --fh-dir-cream: #373020;
  --fh-dir-shadow: 7px 7px 0 rgba(0, 0, 0, .45);
  background: transparent;
  color: var(--fh-dir-ink);
}

body.dark-mode .fh-hack-category-page,
body.is-dark-mode .fh-hack-category-page,
body.dark .fh-hack-category-page,
[data-theme="dark"] .fh-hack-category-page {
  background: transparent;
}

body.dark-mode .fh-hack-category-page .fh-directory-hero,
body.is-dark-mode .fh-hack-category-page .fh-directory-hero,
body.dark .fh-hack-category-page .fh-directory-hero,
[data-theme="dark"] .fh-hack-category-page .fh-directory-hero {
  background: transparent;
  border-bottom-color: transparent;
}

body.dark-mode .fh-hack-directory .fh-hack-finder,
body.dark-mode .fh-hack-directory .fh-mini-promise,
body.dark-mode .fh-hack-directory .fh-topic-list,
body.dark-mode .fh-hack-directory .fh-magazine-main,
body.dark-mode .fh-hack-directory .fh-side-box,
body.dark-mode .fh-hack-directory .fh-directory-empty,
body.dark-mode .fh-hack-directory .fh-directory-card,
body.dark-mode .fh-hack-directory .fh-mag-card,
body.is-dark-mode .fh-hack-directory .fh-hack-finder,
body.is-dark-mode .fh-hack-directory .fh-mini-promise,
body.is-dark-mode .fh-hack-directory .fh-topic-list,
body.is-dark-mode .fh-hack-directory .fh-magazine-main,
body.is-dark-mode .fh-hack-directory .fh-side-box,
body.is-dark-mode .fh-hack-directory .fh-directory-empty,
body.is-dark-mode .fh-hack-directory .fh-directory-card,
body.is-dark-mode .fh-hack-directory .fh-mag-card,
body.dark .fh-hack-directory .fh-hack-finder,
body.dark .fh-hack-directory .fh-mini-promise,
body.dark .fh-hack-directory .fh-topic-list,
body.dark .fh-hack-directory .fh-magazine-main,
body.dark .fh-hack-directory .fh-side-box,
body.dark .fh-hack-directory .fh-directory-empty,
body.dark .fh-hack-directory .fh-directory-card,
body.dark .fh-hack-directory .fh-mag-card,
[data-theme="dark"] .fh-hack-directory .fh-hack-finder,
[data-theme="dark"] .fh-hack-directory .fh-mini-promise,
[data-theme="dark"] .fh-hack-directory .fh-topic-list,
[data-theme="dark"] .fh-hack-directory .fh-magazine-main,
[data-theme="dark"] .fh-hack-directory .fh-side-box,
[data-theme="dark"] .fh-hack-directory .fh-directory-empty,
[data-theme="dark"] .fh-hack-directory .fh-directory-card,
[data-theme="dark"] .fh-hack-directory .fh-mag-card {
  background: var(--fh-dir-card);
  border-color: rgba(248, 242, 232, .78);
  color: var(--fh-dir-ink);
  box-shadow: 7px 7px 0 rgba(0, 0, 0, .45);
}

body.dark-mode .fh-hack-directory .fh-directory-tabs,
body.dark-mode .fh-hack-directory .fh-topic-strip,
body.is-dark-mode .fh-hack-directory .fh-directory-tabs,
body.is-dark-mode .fh-hack-directory .fh-topic-strip,
body.dark .fh-hack-directory .fh-directory-tabs,
body.dark .fh-hack-directory .fh-topic-strip,
[data-theme="dark"] .fh-hack-directory .fh-directory-tabs,
[data-theme="dark"] .fh-hack-directory .fh-topic-strip {
  background: #15161a;
  border-color: rgba(248, 242, 232, .78);
}

body.dark-mode .fh-hack-directory .fh-directory-tabs a,
body.is-dark-mode .fh-hack-directory .fh-directory-tabs a,
body.dark .fh-hack-directory .fh-directory-tabs a,
[data-theme="dark"] .fh-hack-directory .fh-directory-tabs a {
  background: #1b1b20;
  border-color: rgba(248, 242, 232, .78);
  color: var(--fh-dir-ink);
}

body.dark-mode .fh-hack-directory .fh-directory-tabs a.is-active,
body.dark-mode .fh-hack-directory .fh-directory-tabs a:hover,
body.is-dark-mode .fh-hack-directory .fh-directory-tabs a.is-active,
body.is-dark-mode .fh-hack-directory .fh-directory-tabs a:hover,
body.dark .fh-hack-directory .fh-directory-tabs a.is-active,
body.dark .fh-hack-directory .fh-directory-tabs a:hover,
[data-theme="dark"] .fh-hack-directory .fh-directory-tabs a.is-active,
[data-theme="dark"] .fh-hack-directory .fh-directory-tabs a:hover {
  background: #f8f2e8;
  color: #111214;
}

body.dark-mode .fh-hack-directory .fh-topic-tile,
body.is-dark-mode .fh-hack-directory .fh-topic-tile,
body.dark .fh-hack-directory .fh-topic-tile,
[data-theme="dark"] .fh-hack-directory .fh-topic-tile {
  border-color: rgba(248, 242, 232, .55);
  color: var(--fh-dir-ink);
}

body.dark-mode .fh-hack-directory .fh-topic-tile > span,
body.is-dark-mode .fh-hack-directory .fh-topic-tile > span,
body.dark .fh-hack-directory .fh-topic-tile > span,
[data-theme="dark"] .fh-hack-directory .fh-topic-tile > span {
  background: rgba(248, 242, 232, .08);
  border-color: rgba(248, 242, 232, .78);
}

body.dark-mode .fh-hack-directory .fh-hack-finder p,
body.dark-mode .fh-hack-directory .fh-section-head p,
body.dark-mode .fh-hack-directory .fh-mini-promise p,
body.dark-mode .fh-hack-directory .fh-side-box p,
body.dark-mode .fh-hack-directory .fh-directory-card p,
body.dark-mode .fh-hack-directory .fh-mag-card small,
body.dark-mode .fh-hack-directory .fh-directory-empty p,
body.dark-mode .fh-hack-directory .fh-topic-links small,
body.is-dark-mode .fh-hack-directory .fh-hack-finder p,
body.is-dark-mode .fh-hack-directory .fh-section-head p,
body.is-dark-mode .fh-hack-directory .fh-mini-promise p,
body.is-dark-mode .fh-hack-directory .fh-side-box p,
body.is-dark-mode .fh-hack-directory .fh-directory-card p,
body.is-dark-mode .fh-hack-directory .fh-mag-card small,
body.is-dark-mode .fh-hack-directory .fh-directory-empty p,
body.is-dark-mode .fh-hack-directory .fh-topic-links small,
body.dark .fh-hack-directory .fh-hack-finder p,
body.dark .fh-hack-directory .fh-section-head p,
body.dark .fh-hack-directory .fh-mini-promise p,
body.dark .fh-hack-directory .fh-side-box p,
body.dark .fh-hack-directory .fh-directory-card p,
body.dark .fh-hack-directory .fh-mag-card small,
body.dark .fh-hack-directory .fh-directory-empty p,
body.dark .fh-hack-directory .fh-topic-links small,
[data-theme="dark"] .fh-hack-directory .fh-hack-finder p,
[data-theme="dark"] .fh-hack-directory .fh-section-head p,
[data-theme="dark"] .fh-hack-directory .fh-mini-promise p,
[data-theme="dark"] .fh-hack-directory .fh-side-box p,
[data-theme="dark"] .fh-hack-directory .fh-directory-card p,
[data-theme="dark"] .fh-hack-directory .fh-mag-card small,
[data-theme="dark"] .fh-hack-directory .fh-directory-empty p,
[data-theme="dark"] .fh-hack-directory .fh-topic-links small {
  color: rgba(248, 242, 232, .78);
}

body.dark-mode .fh-hack-directory .fh-search-row input[type="search"],
body.dark-mode .fh-hack-directory .fh-hack-finder input[type="search"],
body.dark-mode .fh-hack-directory .fh-finder-controls select,
body.is-dark-mode .fh-hack-directory .fh-search-row input[type="search"],
body.is-dark-mode .fh-hack-directory .fh-hack-finder input[type="search"],
body.is-dark-mode .fh-hack-directory .fh-finder-controls select,
body.dark .fh-hack-directory .fh-search-row input[type="search"],
body.dark .fh-hack-directory .fh-hack-finder input[type="search"],
body.dark .fh-hack-directory .fh-finder-controls select,
[data-theme="dark"] .fh-hack-directory .fh-search-row input[type="search"],
[data-theme="dark"] .fh-hack-directory .fh-hack-finder input[type="search"],
[data-theme="dark"] .fh-hack-directory .fh-finder-controls select {
  background: #101115;
  border-color: rgba(248, 242, 232, .35);
  color: var(--fh-dir-ink);
}

body.dark-mode .fh-hack-directory .fh-template-toggle,
body.dark-mode .fh-hack-directory .fh-popular-searches a,
body.dark-mode .fh-hack-directory .fh-reset-link,
body.dark-mode .fh-hack-directory .fh-card-meta span,
body.dark-mode .fh-hack-directory .fh-card-tags span,
body.is-dark-mode .fh-hack-directory .fh-template-toggle,
body.is-dark-mode .fh-hack-directory .fh-popular-searches a,
body.is-dark-mode .fh-hack-directory .fh-reset-link,
body.is-dark-mode .fh-hack-directory .fh-card-meta span,
body.is-dark-mode .fh-hack-directory .fh-card-tags span,
body.dark .fh-hack-directory .fh-template-toggle,
body.dark .fh-hack-directory .fh-popular-searches a,
body.dark .fh-hack-directory .fh-reset-link,
body.dark .fh-hack-directory .fh-card-meta span,
body.dark .fh-hack-directory .fh-card-tags span,
[data-theme="dark"] .fh-hack-directory .fh-template-toggle,
[data-theme="dark"] .fh-hack-directory .fh-popular-searches a,
[data-theme="dark"] .fh-hack-directory .fh-reset-link,
[data-theme="dark"] .fh-hack-directory .fh-card-meta span,
[data-theme="dark"] .fh-hack-directory .fh-card-tags span {
  background: rgba(248, 242, 232, .08);
  border-color: rgba(248, 242, 232, .28);
  color: var(--fh-dir-ink);
}

body.dark-mode .fh-hack-directory .fh-black-button,
body.dark-mode .fh-hack-directory .fh-hack-finder button,
body.is-dark-mode .fh-hack-directory .fh-black-button,
body.is-dark-mode .fh-hack-directory .fh-hack-finder button,
body.dark .fh-hack-directory .fh-black-button,
body.dark .fh-hack-directory .fh-hack-finder button,
[data-theme="dark"] .fh-hack-directory .fh-black-button,
[data-theme="dark"] .fh-hack-directory .fh-hack-finder button {
  background: #050506 !important;
  border-color: rgba(248, 242, 232, .78);
  color: #fffdfa !important;
}

body.dark-mode .fh-hack-directory .fh-black-button:hover,
body.dark-mode .fh-hack-directory .fh-hack-finder button:hover,
body.is-dark-mode .fh-hack-directory .fh-black-button:hover,
body.is-dark-mode .fh-hack-directory .fh-hack-finder button:hover,
body.dark .fh-hack-directory .fh-black-button:hover,
body.dark .fh-hack-directory .fh-hack-finder button:hover,
[data-theme="dark"] .fh-hack-directory .fh-black-button:hover,
[data-theme="dark"] .fh-hack-directory .fh-hack-finder button:hover {
  background: var(--fh-dir-orange) !important;
  border-color: var(--fh-dir-orange);
  color: #111214 !important;
}

body.dark-mode .fh-hack-directory .fh-mini-promise,
body.is-dark-mode .fh-hack-directory .fh-mini-promise,
body.dark .fh-hack-directory .fh-mini-promise,
[data-theme="dark"] .fh-hack-directory .fh-mini-promise {
  background: #23352b;
  color: var(--fh-dir-ink);
}

body.dark-mode .fh-hack-directory .fh-mini-promise h2,
body.dark-mode .fh-hack-directory .fh-mini-promise a,
body.is-dark-mode .fh-hack-directory .fh-mini-promise h2,
body.is-dark-mode .fh-hack-directory .fh-mini-promise a,
body.dark .fh-hack-directory .fh-mini-promise h2,
body.dark .fh-hack-directory .fh-mini-promise a,
[data-theme="dark"] .fh-hack-directory .fh-mini-promise h2,
[data-theme="dark"] .fh-hack-directory .fh-mini-promise a {
  color: var(--fh-dir-ink);
}

body.dark-mode .fh-hack-category-page .fh-system-card,
body.is-dark-mode .fh-hack-category-page .fh-system-card,
body.dark .fh-hack-category-page .fh-system-card,
[data-theme="dark"] .fh-hack-category-page .fh-system-card {
  background: #050506;
  border-color: rgba(248, 242, 232, .82);
}

body.dark-mode .fh-hack-directory .fh-directory-footer,
body.is-dark-mode .fh-hack-directory .fh-directory-footer,
body.dark .fh-hack-directory .fh-directory-footer,
[data-theme="dark"] .fh-hack-directory .fh-directory-footer {
  background: #15161a;
  border-top-color: rgba(248, 242, 232, .35);
}
body.dark-mode .fh-hack-category-page .fh-directory-hero::after,
body.is-dark-mode .fh-hack-category-page .fh-directory-hero::after,
body.dark .fh-hack-category-page .fh-directory-hero::after,
[data-theme="dark"] .fh-hack-category-page .fh-directory-hero::after {
  background: #f8f2e8;
  box-shadow: 0 6px 0 rgba(0, 0, 0, .45);
}