:root {
  --dark: #303746;
  --dark-2: #262d3a;
  --yellow: #ffd628;
  --yellow-2: #f0c42a;
  --gold: #b98b34;
  --blue: #5798e8;
  --green: #25b45a;
  --red: #c82736;
  --text: #404040;
  --text-soft: #777;
  --text-faint: #b5b5b5;
  --line: #e9e9e9;
  --line-dark: #d9d9d9;
  --page: #f5f5f5;
  --panel: #fff;
  --panel-soft: #efefef;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--page);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.wrap {
  width: min(1390px, calc(100% - 48px));
  margin-inline: auto;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--dark);
}

.utility-bar {
  background: var(--dark);
  color: #fff;
}

.utility-inner {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(300px, 560px) minmax(150px, 260px);
  align-items: center;
  gap: 24px;
  min-height: 92px;
}

.utility-inner > * {
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand > span {
  min-width: 0;
}

.brand-mark {
  display: block;
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: transparent;
  object-fit: contain;
  box-shadow: 0 0 0 rgba(255, 214, 40, 0);
  animation: brandGlow 4.8s ease-in-out infinite;
}

.brand strong {
  display: block;
  color: #fff;
  font-size: 40px;
  line-height: 1;
  font-weight: 800;
  white-space: nowrap;
}

.brand small {
  display: block;
  max-width: 360px;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.32);
  font-size: 16px;
  font-style: italic;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-search {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 54px;
  min-width: 0;
  height: 58px;
  padding: 3px 4px 3px 26px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 30px;
  transition: box-shadow 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.top-search:focus-within {
  border-color: rgba(255, 214, 40, 0.86);
  box-shadow: 0 0 0 4px rgba(255, 214, 40, 0.12), 0 0 22px rgba(255, 214, 40, 0.22);
}

.top-search input {
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #666;
  font-size: 18px;
}

.top-search input::placeholder {
  color: #a7a7a7;
}

.top-search > button[type="submit"] {
  position: relative;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--gold);
  overflow: hidden;
  transition: box-shadow 0.22s ease, transform 0.22s ease, background 0.22s ease;
}

.top-search > button[type="submit"]:hover {
  background: #c99a37;
  box-shadow: 0 0 18px rgba(255, 214, 40, 0.42);
  transform: scale(1.03);
}

.top-search svg,
.utility-button svg,
.menu-button svg,
.icon-button svg,
.button svg {
  width: 19px;
  height: 19px;
  vertical-align: middle;
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 50;
  display: none;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.search-suggestions.is-open {
  display: block;
}

.search-suggestions.is-loading {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12), 0 0 18px rgba(255, 214, 40, 0.16);
}

.search-suggestions a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  color: var(--text);
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.18s ease, transform 0.18s ease;
}

.search-suggestions a:hover,
.search-suggestions a:focus-visible {
  background: #fff8cd;
  transform: translateX(2px);
}

.suggestion-status {
  position: relative;
  padding: 14px 16px;
  color: #777;
  font-size: 14px;
  font-weight: 800;
}

.search-suggestions.is-loading .suggestion-status::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border: 2px solid #ead17a;
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: feedbackSpin 0.7s linear infinite;
}

.search-suggestions img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.search-suggestions small {
  display: block;
  color: #999;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.utility-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  color: #22252d;
  background: var(--yellow);
  border: 0;
  border-radius: 2px;
  font-weight: 800;
  box-shadow: 0 0 0 rgba(255, 214, 40, 0);
  transition: box-shadow 0.22s ease, transform 0.22s ease, filter 0.22s ease;
}

.language-select {
  position: relative;
  margin: 0;
  width: 100%;
}

.language-select .language-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  z-index: 4;
  width: 17px;
  height: 17px;
  color: rgba(255, 255, 255, 0.9);
  pointer-events: none;
  transform: translateY(-50%);
}

.language-select select {
  min-height: 48px;
  min-width: 142px;
  padding: 0 38px 0 40px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 2px;
  font-weight: 800;
  outline-color: var(--yellow);
}

.language-select select:focus {
  box-shadow: 0 0 18px rgba(255, 214, 40, 0.24);
}

.utility-button:hover {
  filter: brightness(1.03);
  box-shadow: 0 0 24px rgba(255, 214, 40, 0.34);
  transform: translateY(-1px);
}

.main-nav {
  background: var(--yellow);
  color: #22252d;
}

.nav-inner {
  display: flex;
  align-items: center;
  min-height: 58px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(34px, 4.7vw, 78px);
  width: 100%;
}

.nav-links a {
  position: relative;
  padding: 16px 0;
  border-bottom: 0;
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  transition: color 0.18s ease, transform 0.18s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 7px;
  width: 0;
  height: 2px;
  background: #6e2a00;
  box-shadow: 0 0 8px rgba(110, 42, 0, 0.32);
  transform: translateX(-50%);
  transition: width 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after,
.nav-links a[aria-current="page"]::after {
  width: 30px;
}

.nav-links a.active,
.nav-links a[aria-current="page"] {
  color: #6e2a00;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #6e2a00;
}

.nav-links a:active {
  color: #3d1a00;
  transform: translateY(1px);
}

.menu-button {
  position: relative;
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 0;
  background: transparent;
  color: #22252d;
  font-weight: 800;
  overflow: hidden;
}

.flash {
  position: fixed;
  top: 150px;
  left: 50%;
  z-index: 80;
  width: min(720px, calc(100% - 32px));
  padding: 14px 18px;
  color: #0f5f3c;
  background: #e7f8ef;
  border: 1px solid #a7e0bd;
  border-radius: 4px;
  transform: translateX(-50%);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.flash-error {
  color: #8f1d1d;
  background: #fff0f0;
  border-color: #eeb3b3;
}

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--page);
  border: 0;
}

.hero::before,
.page-hero::before {
  display: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 455px;
  gap: 24px;
  align-items: start;
  padding: 38px 0 36px;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: #8a8a8a;
  font-size: 15px;
  font-weight: 400;
  text-transform: none;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.16;
}

.hero h1,
.page-hero h1 {
  max-width: 860px;
  margin-bottom: 16px;
  color: #3f3f3f;
  font-size: clamp(34px, 4.3vw, 54px);
  font-weight: 700;
}

.hero-lead,
.page-hero p:not(.eyebrow) {
  max-width: 820px;
  color: #878787;
  font-size: 20px;
}

.hero-search {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 150px;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: none;
  height: 94px;
  margin: 30px 0 28px;
  padding: 6px 6px 6px 26px;
  background: #fff;
  border: 4px solid var(--gold);
  box-shadow: none;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.hero-search::before {
  content: "";
  position: absolute;
  inset: -4px;
  z-index: -1;
  opacity: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(255, 214, 40, 0), rgba(255, 214, 40, 0.5), rgba(255, 214, 40, 0));
  filter: blur(10px);
  transition: opacity 0.25s ease;
}

.hero-search:focus-within,
.hero-search:hover {
  border-color: #c19539;
  box-shadow: 0 0 0 4px rgba(185, 139, 52, 0.08), 0 0 26px rgba(185, 139, 52, 0.18);
}

.hero-search:focus-within::before,
.hero-search:hover::before {
  opacity: 1;
}

.hero-search svg {
  width: 28px;
  height: 28px;
  color: #c6c6c6;
}

.hero-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: #777;
  background: transparent;
  font-size: 25px;
  font-weight: 300;
}

.hero-search input::placeholder {
  color: #c9c9c9;
}

.hero-search > button[type="submit"] {
  position: relative;
  align-self: stretch;
  border: 0;
  color: #fff;
  background: var(--gold);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 5px;
  overflow: hidden;
  transition: box-shadow 0.22s ease, filter 0.22s ease;
}

.hero-search > button[type="submit"]:hover {
  filter: brightness(1.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 0 18px rgba(185, 139, 52, 0.34);
}

.hero-stats {
  display: grid;
  gap: 12px;
  margin: 0 0 8px;
}

.hero-stats span {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 0;
  color: #858585;
  background: transparent;
  border: 0;
  font-size: 23px;
}

.hero-stats span::before {
  content: "";
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  background: var(--dark);
  opacity: 0.88;
  clip-path: polygon(50% 0, 61% 34%, 98% 34%, 68% 55%, 79% 91%, 50% 70%, 21% 91%, 32% 55%, 2% 34%, 39% 34%);
}

.hero-stats strong {
  color: var(--gold);
  font-size: 42px;
  font-style: italic;
  font-weight: 900;
  letter-spacing: 1px;
  text-shadow: 0 0 12px rgba(185, 139, 52, 0.18);
}

.hero-panel,
.quiet-box,
.notice-box,
.filters-panel,
.cta-box,
.source-box,
.summary-box,
.admin-editor,
.admin-list,
.admin-submissions,
.login-form,
.submission-item,
.site-card,
.post-card,
.content-body,
.pro-box,
.con-box,
.facts-grid div,
.table-wrap,
.public-form,
.empty-state {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: none;
}

.hero-panel {
  padding: 0;
  overflow: hidden;
}

.hero-panel .panel-heading {
  margin: 0;
  padding: 18px 24px 8px;
}

.panel-heading,
.section-heading,
.result-heading,
.table-toolbar,
.admin-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.panel-kicker {
  display: block;
  color: #31578f;
  font-size: 17px;
  font-weight: 500;
}

.panel-heading a,
.text-link {
  color: #925f13;
  font-weight: 800;
}

.rank-row {
  display: grid;
  grid-template-columns: 36px 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 0 24px;
  padding: 12px 0;
  border-top: 1px solid #ececec;
}

.rank-number {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #8a5b00;
  background: #ffd456;
  border-radius: 3px;
  font-weight: 900;
}

.rank-row img,
.mini-site img,
.table-site img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.rank-row strong {
  color: #3f3f3f;
}

.rank-row small,
.admin-item small {
  display: block;
  color: #9a9a9a;
}

.ad-strip {
  padding: 24px 0 28px;
  background: var(--page);
  border: 0;
}

.logo-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(145px, 1fr));
  gap: 12px;
}

.logo-strip a {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 112px;
  padding: 16px 12px 18px;
  background: #fff;
  border: 1px solid #e9e9e9;
  border-radius: 6px;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.logo-strip a:hover {
  border-color: rgba(185, 139, 52, 0.48);
  box-shadow: 0 8px 24px rgba(48, 55, 70, 0.08), 0 0 22px rgba(255, 214, 40, 0.12);
  transform: translateY(-2px);
}

.logo-strip a:hover span,
.logo-strip a:focus-visible span,
.site-card h3 a:hover,
.site-card h3 a:focus-visible,
.post-card h3 a:hover,
.post-card h3 a:focus-visible,
.portal-feature-card:hover h2,
.portal-feature-card:focus-visible h2,
.compact-post-list a:hover,
.compact-post-list a:focus-visible,
.latest-news-box a:hover span,
.latest-news-box a:focus-visible span,
.express-row:hover span,
.express-row:focus-visible span,
.broker-mini-grid a:hover strong,
.broker-mini-grid a:focus-visible strong,
.table-site:hover strong,
.table-site:focus-visible strong,
.mini-site:hover span,
.mini-site:focus-visible span,
.category-card:hover span,
.category-card:focus-visible span,
.text-link:hover,
.text-link:focus-visible,
.panel-heading a:hover,
.panel-heading a:focus-visible {
  color: #8a5a10;
}

.logo-strip a:active span,
.site-card h3 a:active,
.post-card h3 a:active,
.compact-post-list a:active,
.latest-news-box a:active span,
.express-row:active span,
.broker-mini-grid a:active strong,
.table-site:active strong,
.mini-site:active span,
.category-card:active span,
.text-link:active,
.panel-heading a:active {
  color: #4a2100;
}

.logo-strip img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.logo-strip span {
  margin-top: 8px;
  color: #39404b;
  font-size: 16px;
  font-weight: 850;
  transition: color 0.18s ease;
}

.site-card h3 a,
.post-card h3 a,
.portal-feature-card h2,
.compact-post-list a,
.latest-news-box span,
.express-row span,
.broker-mini-grid strong,
.table-site strong,
.mini-site span,
.category-card span,
.text-link,
.panel-heading a {
  transition: color 0.18s ease;
}

.logo-strip small {
  position: absolute;
  right: -1px;
  bottom: -1px;
  min-width: 34px;
  padding: 2px 7px;
  color: #fff;
  background: var(--blue);
  border-radius: 5px 0 5px 0;
  font-size: 14px;
  text-align: center;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 335px;
  gap: 24px;
  padding: 34px 0 46px;
}

.section-heading {
  padding-bottom: 12px;
  border-bottom: 4px solid var(--yellow);
}

.section-heading h2,
.quiet-box h2,
.notice-box h2 {
  margin: 0;
  color: #3f3f3f;
  font-size: 22px;
  font-weight: 800;
}

.site-grid,
.post-grid {
  display: grid;
  gap: 12px;
}

.site-grid,
.directory-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.site-card,
.post-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
  padding: 14px;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.site-card:hover,
.post-card:hover {
  border-color: rgba(185, 139, 52, 0.45);
  box-shadow: 0 10px 28px rgba(48, 55, 70, 0.08), 0 0 22px rgba(255, 214, 40, 0.1);
  transform: translateY(-2px);
}

.site-card {
  min-height: 250px;
  border-top: 0;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-top img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.trust {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  color: #fff;
  background: var(--green);
  border-radius: 0;
  font-size: 13px;
  font-weight: 500;
}

.trust-watchlist {
  background: var(--red);
}

.site-card h3,
.post-card h3 {
  margin: 12px 0 7px;
  color: #3f3f3f;
  font-size: 20px;
  font-weight: 800;
}

.site-card p,
.post-card p {
  color: #777;
  font-size: 15px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.meta-row > span,
.method-list span,
.tag-cloud span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 5px 9px;
  color: #5f6670;
  background: #f7f7f7;
  border: 1px solid #e5e5e5;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 700;
}

.meta-row .rating-chip {
  min-height: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.meta-row svg {
  width: 15px;
  height: 15px;
}

.rating-chip,
.table-rating,
.mini-rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.rating-stars {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  color: #cfcfcf;
  letter-spacing: 0;
  white-space: nowrap;
}

.rating-star {
  position: relative;
  display: inline-block;
  min-width: 13px;
  overflow: visible;
  color: #d6d6d6;
  font-size: 13px;
  line-height: 1;
  text-align: center;
}

.rating-star.is-filled {
  color: var(--yellow);
  text-shadow: 0 0 9px rgba(255, 214, 40, 0.28);
}

.rating-star.is-half {
  color: transparent;
  background: linear-gradient(90deg, var(--yellow) 0 50%, #d6d6d6 50% 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: none;
}

.rating-chip b,
.table-rating b,
.mini-rating > span:not(.rating-stars) {
  color: #444;
  font-weight: 900;
}

.pagination {
  display: flex;
  justify-content: center;
  margin: 30px 0 8px;
}

.pagination ul {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pagination-page,
.pagination-control,
.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  border-radius: 10px;
  color: #404553;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.pagination-page {
  border: 1px solid transparent;
}

.pagination-page:hover,
.pagination-page:focus-visible,
.pagination-control:not(.is-disabled):hover,
.pagination-control:not(.is-disabled):focus-visible {
  border-color: #e3b633;
  background: #fff4c7;
  color: #242a38;
  outline: none;
}

.pagination-page.is-current {
  border: 1px solid #c99c2c;
  background: var(--yellow);
  color: #252b38;
  box-shadow: inset 0 -2px 0 rgba(151, 105, 12, 0.22);
}

.pagination-control {
  gap: 5px;
  padding: 0 11px;
  border: 1px solid #dedbd4;
  background: #fff;
}

.pagination-control svg {
  width: 16px;
  height: 16px;
}

.pagination-control.is-disabled {
  color: #aeb2ba;
  border-color: transparent;
  background: transparent;
}

.pagination-ellipsis {
  min-width: 22px;
  color: #9a9ea6;
}

.method-list,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.card-actions .button {
  flex: 1 1 auto;
  min-width: 104px;
  padding-inline: 12px;
}

.button,
.icon-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-weight: 850;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease, filter 0.2s ease, border-color 0.2s ease;
}

.button:hover,
.icon-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(255, 214, 40, 0.16);
}

.button-dark:hover {
  filter: brightness(1.08);
}

.button-gold:hover {
  box-shadow: 0 0 22px rgba(255, 214, 40, 0.3);
}

.button {
  padding: 0 17px;
}

.button-dark {
  color: #fff;
  background: var(--dark);
}

.button-gold {
  color: #22252d;
  background: var(--yellow);
}

.button-light {
  color: var(--text);
  background: #fff;
  border-color: var(--line);
}

.button:active,
.icon-button:active,
.top-search > button[type="submit"]:active,
.hero-search > button[type="submit"]:active,
.menu-button:active {
  transform: translateY(1px) scale(0.99);
}

.custom-select-trigger:active {
  transform: none;
}

.button[disabled],
.button[aria-busy="true"] {
  cursor: wait;
  filter: grayscale(0.2);
  opacity: 0.78;
}

.icon-button {
  width: 42px;
  color: var(--text);
  background: #fff;
  border-color: var(--line);
}

.side-stack {
  display: grid;
  align-content: start;
  gap: 18px;
}

.quiet-box,
.notice-box,
.cta-box,
.source-box,
.summary-box {
  padding: 22px;
}

.notice-box {
  background: #fff;
}

.category-pill {
  display: block;
  padding: 15px 0;
  border-top: 1px solid #eee;
}

.category-pill span {
  display: block;
  color: #4a4a4a;
  font-size: 18px;
  font-weight: 850;
}

.category-pill small {
  display: block;
  color: #8a8a8a;
}

.latest-band {
  padding: 10px 0 54px;
}

.post-card span {
  align-self: start;
  padding: 4px 9px;
  color: #2c2c2c;
  background: var(--yellow);
  border-radius: 0;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 0 12px rgba(255, 214, 40, 0.18);
}

@keyframes brandGlow {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(255, 214, 40, 0);
  }

  50% {
    box-shadow: 0 0 22px rgba(255, 214, 40, 0.34);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

.post-card small {
  margin-top: auto;
  color: #aaa;
}

.page-hero.compact {
  padding: 28px 0 24px;
  background: #fff;
  border-bottom: 4px solid var(--yellow);
}

.page-hero.compact h1 {
  max-width: 880px;
  font-size: 36px;
}

.page-hero p:not(.eyebrow) {
  color: #777;
  font-size: 18px;
}

.category-hero {
  background: #fff;
}

.category-previews {
  padding: 32px 0 48px;
}

.category-preview + .category-preview {
  margin-top: 42px;
}

.category-preview .section-heading {
  margin-bottom: 18px;
}

.danger {
  background: #fff;
}

.directory-layout,
.detail-layout,
.admin-grid {
  display: grid;
  align-items: start;
  gap: 26px;
  padding: 34px 0 42px;
}

.directory-layout {
  grid-template-columns: 280px minmax(0, 1fr);
}

.detail-layout {
  grid-template-columns: minmax(0, 1fr) 350px;
}

.admin-grid {
  grid-template-columns: minmax(0, 1fr) 390px;
}

.filters-panel {
  position: sticky;
  top: 150px;
  padding: 18px;
}

.filters-panel form,
.editor-form {
  display: grid;
  gap: 14px;
}

.filters-panel label,
.editor-form label,
.table-toolbar label {
  display: grid;
  gap: 6px;
  color: #555;
  font-weight: 850;
}

.filters-panel input,
.filters-panel select,
.editor-form input,
.editor-form select,
.editor-form textarea,
.table-toolbar input {
  width: 100%;
  min-width: 0;
  padding: 10px 11px;
  background: #fff;
  border: 1px solid #dedede;
  border-radius: 2px;
  outline-color: var(--gold);
}

.editor-form input[type="file"] {
  cursor: pointer;
  border-style: dashed;
  background: linear-gradient(180deg, #fff, #fffaf0);
}

.editor-form small {
  color: #8a8a8a;
  font-size: 12px;
  font-weight: 600;
}

.empty-state {
  margin: 40px 0;
  padding: 50px;
  text-align: center;
}

.site-detail-hero {
  padding: 26px 0;
  background: #fff;
  border-bottom: 4px solid var(--yellow);
}

.detail-head,
.detail-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.detail-title {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  grid-template-rows: auto auto auto;
  align-items: start;
  justify-content: stretch;
  column-gap: 22px;
  row-gap: 6px;
  width: 100%;
}

.detail-title img {
  grid-row: 1 / span 3;
  align-self: center;
  width: 82px;
  height: 82px;
  padding: 12px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
}

.detail-title h1 {
  margin-bottom: 8px;
  color: #3f3f3f;
  font-size: clamp(34px, 4vw, 50px);
}

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

.detail-tagline {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
}

.detail-go-to-site {
  grid-column: 2;
  grid-row: 3;
  justify-self: start;
  margin-top: 6px;
}

.detail-score {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-shrink: 0;
}

.detail-title .detail-score {
  grid-column: 3;
  grid-row: 1 / span 3;
  align-self: center;
}

.detail-score .rating-stars {
  gap: 3px;
}

.detail-score .rating-star {
  min-width: 22px;
  font-size: 22px;
}

.score-stamp {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  color: #2e2e2e;
  background: var(--yellow);
  border: 0;
  border-radius: 2px;
}

.score-stamp span {
  font-size: 37px;
  line-height: 1;
  font-weight: 950;
}

.score-stamp small {
  white-space: nowrap;
  font-size: 14px;
  font-weight: 850;
}

.detail-main {
  display: grid;
  gap: 24px;
}

.profile-review-card,
.profile-glance,
.profile-detail-card,
.profile-guide-box {
  background: #fff;
  border: 1px solid #e6e7e9;
  border-radius: 8px;
}

.profile-review-card {
  position: relative;
  overflow: hidden;
  border-top: 4px solid var(--yellow);
  background: #fffefa;
}

.profile-review-card::after {
  display: none;
}

.profile-section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.profile-section-heading .eyebrow {
  margin: 0;
  line-height: 1.2;
}

.profile-section-heading h2,
.profile-glance-heading h2 {
  margin: 0;
  color: #3f434d;
  font-size: 22px;
}

.profile-section-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #86600e;
  background: #fff4c6;
  border: 1px solid #f1d471;
  border-radius: 8px;
}

.profile-section-icon svg {
  width: 20px;
  height: 20px;
}

.profile-review-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
  color: #575d69;
  font-size: 16px;
  line-height: 1.75;
}

.profile-review-copy p:last-child {
  margin-bottom: 0;
}

.profile-glance {
  padding: 22px;
}

.profile-glance-heading {
  margin-bottom: 16px;
}

.profile-glance-heading .eyebrow {
  margin-bottom: 4px;
}

.profile-facts-grid {
  gap: 10px;
}

.profile-facts-grid div {
  position: relative;
  min-height: 112px;
  padding: 16px 14px 14px 48px;
  border-color: #e4e6e9;
  border-radius: 6px;
  background: linear-gradient(180deg, #fff, #fbfbfc);
}

.profile-facts-grid > div > svg {
  position: absolute;
  top: 17px;
  left: 15px;
  width: 20px;
  height: 20px;
  color: #bc8517;
}

.profile-facts-grid strong {
  color: #3f4551;
  font-size: 15px;
  line-height: 1.4;
}

.profile-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.profile-detail-card,
.profile-guide-box {
  padding: 22px;
}

.profile-payout-card {
  grid-column: 1 / -1;
  background: linear-gradient(110deg, #fffdf6, #fff);
}

.profile-payout-card p {
  max-width: 880px;
  margin: 0;
  color: #626874;
  line-height: 1.7;
}

.profile-post-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.profile-post-section {
  display: grid;
  gap: 18px;
}

.profile-post-section .section-heading {
  margin: 0;
}

.profile-post-list .post-card {
  min-height: 0;
}

.profile-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-chip-list span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 10px;
  color: #4f5661;
  background: #f7f8fa;
  border: 1px solid #e3e5e8;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 750;
}

.profile-guide-box {
  border-top: 4px solid #303747;
}

.profile-guide-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.profile-guide-row > div {
  min-width: 0;
}

.profile-guide-row > div > span {
  display: inline-flex;
  padding: 3px 7px;
  color: #353b47;
  background: var(--yellow);
  font-size: 12px;
  font-weight: 850;
}

.profile-guide-row h3 {
  margin: 10px 0 6px;
  color: #3f434d;
  font-size: 19px;
}

.profile-guide-row h3 a {
  color: inherit;
}

.profile-guide-row p {
  margin: 0;
  color: #747984;
  line-height: 1.55;
}

.profile-guide-row .button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.facts-grid:not(.profile-facts-grid) div {
  padding: 15px;
}

.facts-grid span {
  display: block;
  color: #999;
  font-size: 13px;
  font-weight: 850;
}

.facts-grid strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.content-body {
  padding: 26px;
}

.content-body > h2 {
  margin-top: 18px;
}

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

.two-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.pro-box,
.con-box {
  padding: 20px;
}

.pro-box ul,
.con-box ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pro-box li,
.con-box li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
}

.pro-box svg {
  color: var(--green);
}

.con-box svg {
  color: var(--red);
}

.detail-sidebar {
  position: sticky;
  top: 150px;
  display: grid;
  gap: 16px;
}

.cta-box {
  display: grid;
  gap: 10px;
}

.mini-site {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid #eee;
}

.source-box a {
  color: var(--blue);
  font-weight: 850;
  overflow-wrap: anywhere;
}

.breadcrumb {
  margin: 26px 0 12px;
  color: #999;
}

.breadcrumb a,
.article-header a {
  color: var(--blue);
  font-weight: 800;
}

.article-page {
  padding-bottom: 52px;
}

.article-header {
  max-width: 900px;
  padding: 28px 0;
}

.article-header h1 {
  color: #3f3f3f;
  font-size: clamp(36px, 5vw, 58px);
}

.article-header p {
  color: #777;
  font-size: 20px;
}

.article-body {
  max-width: 880px;
}

.blog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 42px 0;
}

.table-section {
  padding: 42px 0;
}

.table-toolbar {
  position: relative;
  align-items: center;
}

.filter-feedback {
  display: block;
  min-height: 18px;
  margin-top: 6px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.table-toolbar.has-filter-feedback .filter-feedback {
  animation: feedbackPop 0.28s ease;
}

.ranking-toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px 18px;
}

.ranking-search-row {
  display: flex;
  min-width: 0;
  gap: 8px;
}

.ranking-search-row input {
  flex: 1;
}

.ranking-filter-toggle {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 44px;
  min-height: 42px;
  padding: 0;
  color: #2f3748;
  background: #fff;
  border: 1px solid #dedede;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.ranking-filter-toggle:hover,
.ranking-filter-toggle[aria-expanded="true"] {
  color: #252c3a;
  background: var(--gold);
  border-color: var(--gold);
}

.ranking-filter-toggle:active {
  transform: translateY(1px);
}

.ranking-filter-toggle svg {
  width: 20px;
  height: 20px;
}

.ranking-filter-panel {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-height: 0;
  gap: 0 14px;
  padding: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  background: transparent;
  border: 0;
  transform: translateY(-8px);
  transition: max-height 0.32s ease, margin 0.32s ease, padding 0.32s ease, opacity 0.2s ease, transform 0.32s ease, border-color 0.2s ease;
}

.ranking-filter-panel.is-open {
  position: relative;
  z-index: 130;
  max-height: 180px;
  margin-top: 2px;
  padding: 12px 0 0;
  overflow: visible;
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
}

.ranking-filter-panel label {
  display: grid;
  gap: 6px;
  color: #555;
  font-size: 14px;
  font-weight: 850;
}

.ranking-filter-panel .custom-select {
  width: 100%;
}

.ranking-toolbar .filter-feedback {
  grid-column: 1 / -1;
  margin-top: -4px;
}

@media (max-width: 820px) {
  .ranking-toolbar {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .ranking-filter-panel {
    grid-template-columns: 1fr;
  }

  .ranking-filter-panel.is-open {
    max-height: 320px;
  }
}

.table-wrap {
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
}

.compare-table th,
.compare-table td {
  padding: 14px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid #eee;
}

.compare-table th {
  color: #2e2e2e;
  background: var(--yellow);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.table-site {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ranking-position-cell {
  width: 62px;
  text-align: center !important;
}

.ranking-trophy,
.ranking-position-number {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-weight: 900;
}

.ranking-trophy svg {
  width: 19px;
  height: 19px;
  stroke-width: 2.75;
}

.ranking-trophy-1 {
  color: #735000;
  background: #ffd84a;
}

.ranking-trophy-2 {
  color: #4e5966;
  background: #dbe0e6;
}

.ranking-trophy-3 {
  color: #74411e;
  background: #e9b07c;
}

.ranking-position-number {
  color: #5d6571;
  background: #f0f1f3;
}

.form-page {
  padding: 42px 0;
}

.public-form {
  max-width: 760px;
  padding: 24px;
}

.review-form-page {
  display: grid;
  justify-items: center;
}

.review-form {
  width: min(760px, 100%);
}

.selected-review-site {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #e6e0d2;
  border-radius: 2px;
  background: linear-gradient(180deg, #fff, #fffaf0);
  box-shadow: 0 10px 24px rgba(195, 142, 42, 0.08);
}

.selected-review-site img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border: 1px solid #eee;
  border-radius: 2px;
  background: #fff;
}

.selected-review-site span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.selected-review-site strong {
  display: block;
  color: #343434;
  font-size: 18px;
  line-height: 1.2;
}

.selected-review-site small {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: #777;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rating-field {
  display: grid;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
}

.rating-field legend {
  padding: 0 6px;
  color: #555;
  font-weight: 900;
}

.star-input {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 5px;
}

.star-input input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.star-input label {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #d2d2d2;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  transition: color 0.16s ease, transform 0.16s ease, text-shadow 0.16s ease;
}

.star-input label:hover,
.star-input label:hover ~ label,
.star-input input:checked ~ label {
  color: var(--yellow);
  text-shadow: 0 0 14px rgba(255, 214, 40, 0.42);
}

.star-input input:focus-visible + label {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.star-input label:active {
  transform: scale(0.9);
}

.star-meter {
  display: inline-flex;
  gap: 2px;
  color: #cfcfcf;
  letter-spacing: 0;
  white-space: nowrap;
}

.star-meter .is-filled {
  color: var(--yellow);
  text-shadow: 0 0 10px rgba(255, 214, 40, 0.3);
}

.user-review-section {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.compact-heading {
  align-items: end;
}

.review-list {
  display: grid;
  gap: 12px;
}

.user-review-card {
  padding: 14px;
  border: 1px solid #ededed;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(35, 41, 55, 0.04);
}

.user-review-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}

.user-review-card strong {
  color: #3d3d3d;
}

.user-review-card small,
.empty-inline {
  color: #999;
}

.user-review-card p {
  margin: 0 0 10px;
  color: #666;
  font-size: 14px;
  line-height: 1.65;
}

.proof-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #5d4614;
  font-size: 13px;
  font-weight: 900;
  transition: color 0.16s ease, transform 0.16s ease;
}

.proof-link:hover,
.proof-link:focus-visible {
  color: var(--gold);
  transform: translateY(-1px);
}

.proof-link:active {
  color: #6d301c;
  transform: translateY(0);
}

.proof-link img {
  width: 54px;
  height: 38px;
  border: 1px solid #e7d39b;
  border-radius: 2px;
  object-fit: cover;
}

.admin-login {
  padding: 54px 0;
}

.login-form {
  max-width: 480px;
  padding: 24px;
  margin-inline: auto;
}

.admin-top {
  padding: 34px 0 0;
}

.admin-editor,
.admin-list,
.admin-submissions {
  padding: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-row.align-center {
  align-items: center;
}

.check-label {
  display: flex !important;
  align-items: center;
  gap: 8px;
}

.editor-form .check-label input[type="checkbox"] {
  flex: 0 0 20px;
  width: 20px;
  min-width: 20px;
  height: 20px;
  padding: 0;
  box-sizing: border-box;
}

.admin-list {
  display: grid;
  gap: 10px;
  max-height: 920px;
  overflow: auto;
}

.admin-item,
.submission-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #eee;
  border-radius: 2px;
}

.admin-item form,
.submission-item form {
  margin: 0;
}

.admin-item button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--red);
  background: #fff;
  border: 1px solid #f0c0c0;
  border-radius: 2px;
}

.admin-submissions {
  margin-bottom: 54px;
}

.submission-item {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  margin-top: 12px;
}

.submission-item > div > span {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.review-moderation-item h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.moderation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-proof-link {
  margin-top: 9px;
}

.site-footer {
  padding: 42px 0 22px;
  color: #fff;
  background: var(--dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 32px;
}

.brand-footer {
  margin-bottom: 14px;
}

.site-footer p,
.site-footer small {
  color: rgba(255, 255, 255, 0.58);
}

.site-footer a:not(.brand) {
  display: block;
  margin: 8px 0;
  color: rgba(255, 255, 255, 0.82);
}

.site-footer h2 {
  font-size: 18px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
  padding-top: 18px;
  color: rgba(255, 255, 255, 0.62);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

@media (max-width: 1180px) {
  .utility-inner {
    grid-template-columns: 1fr minmax(280px, 520px);
  }

  .utility-button,
  .language-select {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .hero-grid,
  .section-grid,
  .directory-layout,
  .detail-layout,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel,
  .filters-panel,
  .detail-sidebar {
    position: static;
  }

  .site-grid,
  .directory-grid,
  .post-grid,
  .blog-grid,
  .logo-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .wrap {
    width: min(100% - 28px, 1390px);
  }

  .utility-inner {
    grid-template-columns: 1fr auto;
    min-height: 76px;
    gap: 12px;
    padding: 12px 0;
  }

  .brand strong {
    font-size: 28px;
  }

  .brand small,
  .utility-button span {
    display: none;
  }

  .utility-button {
    grid-column: auto;
    width: 48px;
    padding: 0;
  }

  .language-select {
    grid-column: auto;
  }

  .language-select select {
    min-width: 116px;
  }

  .top-search {
    grid-column: 1 / -1;
    order: 3;
  }

  .menu-button {
    display: inline-flex;
  }

  .nav-inner {
    justify-content: space-between;
    min-height: 52px;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    background: var(--yellow);
    border-top: 1px solid rgba(38, 48, 63, 0.15);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 14px 24px;
    border-bottom: 1px solid rgba(38, 48, 63, 0.12);
    font-size: 18px;
  }

  .hero-grid {
    padding: 30px 0;
  }

  .hero h1,
  .page-hero h1,
  .article-header h1 {
    font-size: 38px;
  }

  .hero-search {
    grid-template-columns: 28px 1fr;
    height: auto;
  }

  .hero-search > button[type="submit"] {
    grid-column: 1 / -1;
    width: 100%;
    height: 54px;
    font-size: 22px;
  }

  .hero-stats span {
    align-items: flex-start;
    font-size: 18px;
  }

  .hero-stats strong {
    font-size: 30px;
  }

  .site-grid,
  .directory-grid,
  .post-grid,
  .blog-grid,
  .logo-strip,
  .facts-grid,
  .profile-details-grid,
  .two-columns,
  .footer-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .detail-head,
  .panel-heading,
  .section-heading,
  .result-heading,
  .table-toolbar,
  .admin-top,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .score-stamp {
    width: 96px;
    height: 96px;
  }

  .detail-score {
    justify-content: flex-start;
  }

  .detail-title {
    grid-template-columns: 64px minmax(0, 1fr);
    grid-template-rows: auto auto auto auto;
    align-items: start;
    gap: 0 12px;
  }

  .detail-title img {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 64px;
    height: 64px;
    padding: 8px;
  }

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

  .detail-title h1 {
    margin-bottom: 0;
    font-size: 34px;
  }

  .detail-title .detail-score {
    grid-column: 2;
    grid-row: 2;
    gap: 7px;
    margin-top: 7px;
  }

  .detail-score .rating-stars {
    gap: 2px;
  }

  .detail-score .rating-star {
    min-width: 18px;
    font-size: 18px;
  }

  .detail-score .score-stamp {
    display: inline-flex;
    width: auto;
    height: auto;
    padding: 0;
    color: #3f3f3f;
    background: transparent;
  }

  .detail-score .score-stamp span {
    font-size: 16px;
  }

  .detail-score .score-stamp small {
    display: none;
  }

  .detail-tagline {
    grid-column: 1 / -1;
    grid-row: 3;
    margin-top: 16px;
  }

  .detail-go-to-site {
    grid-column: 1 / -1;
    grid-row: 4;
    margin-top: 8px;
  }

  .content-body,
  .empty-state {
    padding: 20px;
  }

  .profile-glance,
  .profile-detail-card,
  .profile-guide-box {
    padding: 18px;
  }

  .profile-guide-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-guide-row .button {
    width: 100%;
  }

  .article-affiliate-disclosure,
  .article-share {
    margin-inline: 0;
  }

  .blog-hub-header {
    margin-left: 0;
  }
}

@media (max-width: 520px) {
  .rank-row {
    grid-template-columns: 30px 34px minmax(0, 1fr);
  }

  .rank-row b {
    grid-column: 3;
  }

  .admin-item {
    grid-template-columns: 1fr;
  }
}

/* Compact WikiFX-style portal layouts */
body {
  font-size: 14px;
}

.utility-inner {
  min-height: 82px;
}

.brand-mark {
  width: 44px;
  height: 44px;
}

.brand strong {
  font-size: 34px;
}

.brand small {
  font-size: 14px;
}

.top-search {
  height: 50px;
  grid-template-columns: 1fr 46px;
}

.top-search > button[type="submit"] {
  width: 42px;
  height: 42px;
}

.main-nav .nav-inner {
  min-height: 54px;
}

.nav-links a {
  font-size: 19px;
}

.ad-strip {
  padding: 22px 0 30px;
}

.logo-strip a {
  min-height: 96px;
  padding: 12px;
}

.logo-strip img {
  width: 40px;
  height: 40px;
}

.logo-strip span {
  font-size: 14px;
}

.logo-strip small {
  font-size: 13px;
}

.home-portal {
  padding: 18px 0 28px;
  background: var(--page);
}

.home-portal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 455px;
  align-items: start;
  gap: 24px;
}

.portal-search-panel {
  min-width: 0;
}

.portal-search-panel > h1 {
  max-width: 760px;
  margin: 0 0 12px;
  color: #303747;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
}

.portal-search-panel > .hero-copy {
  max-width: 760px;
  margin: 0;
  color: #697181;
  font-size: 18px;
  line-height: 1.55;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.faq-grid .quiet-box {
  height: 100%;
}

.faq-grid h3 {
  margin-bottom: 10px;
  color: #303747;
  font-size: 20px;
}

.faq-grid p {
  margin: 0;
  color: #667085;
  line-height: 1.6;
}

.portal-search-panel .hero-search {
  height: 80px;
  margin: 20px 0 22px;
  grid-template-columns: 28px minmax(0, 1fr) 132px;
  border-width: 3px;
}

.portal-search-panel .hero-search input {
  font-size: 22px;
}

.portal-search-panel .hero-search > button[type="submit"] {
  font-size: 24px;
  letter-spacing: 4px;
}

.portal-search-panel .hero-stats {
  gap: 8px;
  margin-bottom: 6px;
}

.portal-search-panel .hero-stats span {
  min-height: 42px;
  color: #858585;
  font-size: 20px;
}

.portal-search-panel .hero-stats strong {
  font-size: 34px;
}

.portal-announcement {
  margin: 2px 0 0;
  padding: 6px 10px;
  color: #555;
  background: linear-gradient(90deg, rgba(255, 238, 157, 0), #fff1a8 18%, #fff1a8 82%, rgba(255, 238, 157, 0));
  text-align: center;
  font-size: 15px;
}

.search-history {
  padding: 12px 22px 18px;
  background: #ededed;
}

.search-history h2 {
  margin: 0 0 10px;
  color: #aaa;
  font-size: 18px;
  font-weight: 400;
}

.history-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px 24px;
}

.history-grid a {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  color: #555;
  font-size: 14px;
}

.history-grid img {
  width: 20px;
  height: 20px;
}

.history-grid span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-feature-card {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 388px;
  background: #fff;
  border: 1px solid #e7e7e7;
  border-radius: 2px;
}

.portal-feature-carousel {
  isolation: isolate;
  box-shadow: 0 10px 28px rgba(35, 41, 55, 0.06);
}

.portal-feature-carousel:hover,
.portal-feature-carousel:focus-within {
  border-color: rgba(195, 142, 42, 0.45);
  box-shadow: 0 12px 34px rgba(195, 142, 42, 0.16);
}

.feature-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  color: inherit;
  pointer-events: none;
  visibility: hidden;
  transform: translateX(100%);
  transition: none;
}

.feature-slide.is-active {
  position: relative;
  z-index: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateX(0);
  transition: transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.feature-slide.is-leaving {
  visibility: visible;
  transform: translateX(-100%);
  transition: transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.feature-slide:focus-visible {
  outline: 2px solid #c38e2a;
  outline-offset: -4px;
}

.article-banner,
.feature-art,
.article-image-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  background: #f5f5f5;
}

.article-banner.has-image,
.article-banner.has-custom-html {
  display: block;
  padding: 0;
}

.article-banner.has-image img,
.article-banner.is-placeholder img,
.article-banner.has-custom-html img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
}

.article-image-card.has-image img,
.article-image-card.is-placeholder img,
.article-image-card.has-custom-html img {
  min-height: 290px;
}

.article-banner.has-custom-html > * {
  max-width: 100%;
}

.article-banner.has-custom-html iframe,
.article-banner.has-custom-html video {
  display: block;
  width: 100%;
  min-height: 210px;
  border: 0;
}

.portal-feature-body {
  padding: 16px 22px 18px;
}

.portal-feature-body h2 {
  margin: 0 0 12px;
  color: #414141;
  font-size: 27px;
  line-height: 1.16;
}

.portal-feature-body p {
  margin: 0 0 18px;
  color: #858585;
  font-size: 14px;
}

.portal-feature-body small {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: #c7c7c7;
}

.portal-feature-body b {
  min-width: 34px;
  text-align: right;
}

.feature-dots {
  position: absolute;
  right: 20px;
  bottom: 44px;
  z-index: 3;
  display: flex;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 4px 18px rgba(195, 142, 42, 0.16);
}

.feature-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #d5d5d5;
  cursor: pointer;
  transition: width 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.feature-dots button:hover,
.feature-dots button:focus-visible {
  background: #c38e2a;
  transform: translateY(-1px);
}

.feature-dots button:active {
  background: #6d301c;
  transform: translateY(0) scale(0.9);
}

.feature-dots button.is-active {
  width: 18px;
  background: #c38e2a;
  box-shadow: 0 0 12px rgba(195, 142, 42, 0.36);
}

.section-grid {
  padding-top: 28px;
}

.section-heading {
  margin-bottom: 14px;
}

.section-heading h2 {
  font-size: 20px;
}

.site-card,
.post-card {
  padding: 12px;
}

.site-card h3,
.post-card h3 {
  font-size: 17px;
}

.site-card p,
.post-card p {
  font-size: 13px;
}

.card-top img {
  width: 34px;
  height: 34px;
}

.meta-row > span,
.method-list span,
.tag-cloud span {
  min-height: 24px;
  padding: 3px 7px;
  font-size: 12px;
}

.blog-shell,
.article-page {
  padding: 24px 0 48px;
}

.portal-rule {
  height: 4px;
  margin: 20px 0 34px;
  background: var(--yellow);
}

.blog-portal-grid {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr) 456px;
  align-items: start;
  gap: 24px;
}

.portal-box {
  background: #fff;
  border: 1px solid #e9e9e9;
  border-radius: 2px;
  padding: 18px 24px;
}

.portal-box h2 {
  margin: 0 0 16px;
  color: #8c8c8c;
  font-size: 20px;
  line-height: 1.18;
}

.express-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 8px 0;
  color: #555;
  font-size: 15px;
}

.express-row img {
  width: 22px;
  height: 22px;
}

.express-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.previous-box {
  margin-top: 24px;
}

.previous-box span {
  display: block;
  margin-bottom: 8px;
  color: #999;
}

.previous-box a {
  display: block;
  color: #444;
  font-size: 14px;
}

.blog-main,
.article-main-column {
  min-width: 0;
}

.filtered-blog-empty {
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 360px;
  padding: 42px 28px;
  color: #727782;
  text-align: center;
  background: #fff;
  border: 1px solid #e8e8e8;
}

.filtered-blog-empty .eyebrow {
  margin-bottom: 6px;
}

.filtered-blog-empty h1 {
  max-width: 560px;
  margin: 0;
  color: #3f434d;
  font-size: 27px;
}

.filtered-blog-empty > p:not(.eyebrow) {
  max-width: 510px;
  margin: 12px 0 22px;
  line-height: 1.6;
}

.filtered-blog-empty .button {
  min-height: 42px;
}

.featured-article,
.article-header {
  padding: 6px 0 0;
}

.featured-article h1,
.featured-article h2,
.article-header h1 {
  max-width: 760px;
  margin-bottom: 18px;
  color: #444;
  font-size: 31px;
  line-height: 1.16;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: #999;
  font-size: 13px;
}

.mini-logo {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: #242b38;
  background: var(--yellow);
  border-radius: 3px;
  font-size: 10px;
  font-weight: 900;
}

.article-excerpt {
  margin-bottom: 32px;
  padding: 18px 20px;
  color: #8a8a8a;
  background: #f5f5f5;
  border-radius: 4px;
  font-size: 16px;
  line-height: 1.8;
}

.article-image-link {
  display: block;
  text-decoration: none;
}

.article-image-link:hover .article-banner,
.article-image-link:focus-visible .article-banner {
  box-shadow: 0 10px 24px rgba(195, 142, 42, 0.16);
}

.article-image-card {
  min-height: 290px;
  margin: 0 28px 16px;
  text-decoration: none;
}

.article-hero-art {
  margin: 0 28px 18px;
}

.article-body {
  border: 0;
  padding: 0;
  background: transparent;
  color: #555;
  font-size: 17px;
  line-height: 1.8;
}

.article-body p {
  margin: 0 0 16px;
}

.article-body .article-cta {
  display: flex;
  justify-content: center;
  margin: 30px 0;
}

.article-body .article-cta .button {
  min-height: 52px;
  padding-inline: 28px;
  color: #292208;
  border-color: #f7c81e;
  background: linear-gradient(112deg, #ffea68 0%, #ffd229 38%, #ffbe0b 64%, #fff1a2 100%);
  box-shadow: 0 8px 18px rgba(243, 172, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  text-decoration: none;
  text-align: center;
}

.article-body .article-cta .button::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -45%;
  width: 28%;
  content: '';
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.78), transparent);
  transform: skewX(-22deg);
  animation: article-cta-shine 3.4s ease-in-out infinite;
  pointer-events: none;
}

.article-body .article-cta .button:hover,
.article-body .article-cta .button:focus-visible {
  filter: saturate(1.1) brightness(1.04);
  box-shadow: 0 10px 24px rgba(243, 172, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

@keyframes article-cta-shine {
  0%, 58% { left: -45%; }
  78%, 100% { left: 125%; }
}

.article-body .article-visual {
  margin: 30px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.article-body .article-visual img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.article-body .article-visual.is-reward-card img {
  width: min(400px, 100%);
  margin: 20px auto;
}

.article-body .article-visual figcaption {
  padding: 10px 14px;
  color: #777;
  font-size: 13px;
  line-height: 1.45;
}

.article-body .article-sources {
  margin-top: 34px;
  padding: 20px 22px;
  border-left: 4px solid var(--yellow);
  border-radius: 0 8px 8px 0;
  background: linear-gradient(90deg, #fff9e3, #fff);
}

.article-body .article-sources h2 {
  margin: 0 0 10px;
  font-size: 19px;
}

.article-body .article-sources ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0;
  padding-left: 19px;
}

.article-body .article-sources a {
  font-weight: 750;
}

.article-body .article-callout {
  margin: 24px 0 30px;
  padding: 18px 20px;
  border: 1px solid #f4cf4d;
  border-radius: 8px;
  background: #fff9df;
  color: #4d420f;
  line-height: 1.65;
}

.article-share {
  margin: 30px 28px 0;
  padding-top: 22px;
  border-top: 1px solid #e7e7e7;
}

.article-affiliate-disclosure {
  margin: 22px 28px 0;
  padding: 16px 18px;
  color: #686f7b;
  background: #f8f9fb;
  border: 1px solid #e1e4e8;
  border-radius: 6px;
}

.article-affiliate-disclosure h2 {
  margin: 0 0 4px;
  color: #444a56;
  font-size: 15px;
}

.article-affiliate-disclosure p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
}

.blog-hub-header {
  display: none;
  max-width: 760px;
  margin: 0 0 30px 220px;
}

.blog-hub-header h1 {
  margin: 0 0 10px;
  color: #3f434d;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.15;
}

.blog-hub-header p:not(.eyebrow) {
  margin: 0;
  color: #757b86;
  font-size: 16px;
  line-height: 1.55;
}

.article-share h2 {
  margin: 0 0 12px;
  color: #444;
  font-size: 17px;
}

.article-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  min-height: 36px;
  padding: 7px;
  color: #303747;
  background: #fff;
  border: 1px solid #d9dce2;
  border-radius: 3px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.share-button i {
  font-size: 16px;
}

.share-button:hover,
.share-button:focus-visible {
  color: #171b24;
  border-color: var(--gold);
  transform: translateY(-1px);
}

.share-copy.is-copied {
  color: #168c47;
  border-color: #168c47;
}

.share-x { color: #111; }
.share-facebook { color: #1877f2; }
.share-linkedin { color: #0a66c2; }
.share-whatsapp { color: #168c47; }

.compact-post-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.compact-post-list article {
  padding: 14px 0;
  border-top: 1px solid #eee;
}

.compact-post-list span {
  color: #999;
  font-size: 12px;
}

.compact-post-list h2 {
  margin: 4px 0 6px;
  color: #444;
  font-size: 20px;
}

.compact-post-list p {
  margin: 0;
  color: #888;
}

.broker-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.broker-mini-grid a {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 126px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e9e9e9;
  border-radius: 5px;
}

.broker-mini-grid .trust {
  position: absolute;
  top: 0;
  left: 0;
}

.broker-mini-grid img {
  width: 54px;
  height: 54px;
}

.broker-mini-grid strong {
  align-self: end;
  width: 100%;
  padding: 10px 8px;
  background: #fafafa;
  color: #444;
  text-align: center;
  font-size: 15px;
}

.latest-news-box {
  margin-top: 24px;
}

.latest-news-box a {
  display: block;
  padding: 12px 0;
  border-top: 1px solid #eee;
}

.latest-news-box span {
  display: block;
  color: #555;
  font-size: 16px;
  line-height: 1.35;
}

.latest-news-box small {
  display: block;
  margin-top: 8px;
  color: #aaa;
}

@media (max-width: 1180px) {
  .home-portal-grid,
  .blog-portal-grid {
    grid-template-columns: 1fr;
  }

  .blog-left,
  .blog-right {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .previous-box,
  .latest-news-box {
    margin-top: 0;
  }

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

@media (max-width: 820px) {
  .category-previews {
    padding: 22px 0 34px;
  }

  .category-preview + .category-preview {
    margin-top: 32px;
  }

  .portal-search-panel .hero-search {
    grid-template-columns: 24px minmax(0, 1fr) 92px;
    gap: 8px;
    height: 62px;
    padding: 5px 5px 5px 16px;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .portal-search-panel .hero-search > button[type="submit"] {
    grid-column: auto;
    width: 92px;
    height: 50px;
    font-size: 18px;
    letter-spacing: 1px;
  }

  .hero-search input,
  .portal-search-panel .hero-search input {
    font-size: 19px;
  }

  .history-grid,
  .blog-left,
  .blog-right,
  .broker-mini-grid {
    grid-template-columns: 1fr;
  }

  .article-image-card,
  .article-hero-art {
    margin-inline: 0;
  }

  .article-banner {
    min-height: 220px;
  }

  .article-banner.has-image img,
  .article-banner.has-custom-html img,
  .article-banner.has-custom-html iframe,
  .article-banner.has-custom-html video {
    min-height: 220px;
  }

}

/* Custom animated form components */
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  display: none;
  -webkit-appearance: none;
}

input[type="search"]::-ms-clear,
input[type="search"]::-ms-reveal {
  display: none;
  width: 0;
  height: 0;
}

.native-select-hidden {
  display: none !important;
}

.custom-select {
  position: relative;
  width: 100%;
  min-width: 0;
  z-index: 5;
}

.custom-select[data-open="true"] {
  z-index: 120;
}

.custom-select-trigger {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 42px;
  min-height: 42px;
  padding: 0 36px 0 12px;
  color: #4d535d;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 250, 250, 0.98));
  border: 1px solid #dedede;
  border-radius: 2px;
  outline: 0;
  text-align: left;
  font-weight: 800;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.custom-select-trigger::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(100deg, transparent 0 28%, rgba(255, 214, 40, 0.18) 48%, transparent 68% 100%);
  transform: translateX(-70%);
  transition: opacity 0.2s ease;
}

.custom-select-trigger span {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  min-height: 0;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transform: none;
}

.custom-select-trigger b {
  position: absolute;
  top: 50%;
  right: 14px;
  z-index: 1;
  width: 14px;
  height: 14px;
  border: 0;
  transform: translateY(-50%);
  transform-origin: center;
}

.custom-select-trigger b::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 1px;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transform-origin: center;
  transition: transform 0.22s ease;
}

.custom-select-trigger:hover,
.custom-select-trigger:focus-visible,
.custom-select[data-open="true"] .custom-select-trigger {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 214, 40, 0.12), 0 0 18px rgba(255, 214, 40, 0.14);
}

.custom-select-trigger:hover::before,
.custom-select-trigger:focus-visible::before,
.custom-select[data-open="true"] .custom-select-trigger::before {
  opacity: 1;
  animation: componentSheen 0.85s ease;
}

.custom-select.has-feedback .custom-select-trigger {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 214, 40, 0.14), 0 0 22px rgba(255, 214, 40, 0.2);
  animation: none;
}

.custom-select[data-open="true"] .custom-select-trigger b {
  transform: translateY(-50%);
}

.custom-select[data-open="true"] .custom-select-trigger b::before {
  transform: rotate(225deg);
}

.custom-select-list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 70;
  overflow: auto;
  max-height: 240px;
  padding: 6px;
  background: #fff;
  border: 1px solid #dedede;
  border-radius: 3px;
  box-shadow: 0 18px 36px rgba(35, 42, 55, 0.16), 0 0 24px rgba(255, 214, 40, 0.1);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.custom-select[data-open="true"] .custom-select-list {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.custom-select-option {
  display: block;
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  color: #555;
  background: transparent;
  border: 0;
  border-radius: 2px;
  text-align: left;
  font-weight: 700;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.custom-select-option:hover,
.custom-select-option:focus-visible {
  color: #22252d;
  background: #fff3b5;
  box-shadow: inset 3px 0 0 var(--gold);
  transform: translateX(2px);
}

.custom-select-option:active {
  color: #6e2a00;
  background: #ffdf46;
}

.custom-select-option.is-selected {
  color: #22252d;
  background: var(--yellow);
}

.language-select .custom-select {
  min-width: 150px;
}

.language-select .custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  min-height: 48px;
  padding: 0 34px 0 40px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
}

.language-select .custom-select-trigger span {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1;
}

.language-select .custom-select-trigger b {
  position: absolute;
  right: 14px;
  top: 50%;
  margin: 0;
}

.language-select .custom-select-trigger::before {
  display: none;
}

.language-select .custom-select.has-feedback .custom-select-trigger {
  animation: none;
}

.language-select .custom-select-list {
  min-width: 180px;
}

.top-search input,
.hero-search input,
.filters-panel input,
.filters-panel textarea,
.editor-form input,
.editor-form textarea,
.table-toolbar input {
  transition: box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.filters-panel input:focus,
.filters-panel textarea:focus,
.editor-form input:focus,
.editor-form textarea:focus,
.table-toolbar input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 214, 40, 0.12), 0 0 16px rgba(255, 214, 40, 0.12);
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  display: inline-grid;
  place-items: center;
  background: #fff;
  border: 1px solid #d6d6d6;
  border-radius: 3px;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

input[type="checkbox"]::before {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid #22252d;
  border-bottom: 2px solid #22252d;
  opacity: 0;
  transform: rotate(-45deg) scale(0.6);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

input[type="checkbox"]:checked {
  background: var(--yellow);
  border-color: var(--gold);
  box-shadow: 0 0 14px rgba(255, 214, 40, 0.25);
}

input[type="checkbox"]:checked::before {
  opacity: 1;
  transform: rotate(-45deg) scale(1);
}

input[type="checkbox"]:hover {
  transform: translateY(-1px);
}

.editor-form.is-submitting,
.filters-panel form.is-submitting,
.public-form.is-submitting {
  opacity: 0.86;
}

.editor-form.is-submitting button[type="submit"],
.filters-panel form.is-submitting button[type="submit"],
.public-form.is-submitting button[type="submit"] {
  box-shadow: 0 0 0 3px rgba(255, 214, 40, 0.12), 0 0 20px rgba(255, 214, 40, 0.2);
}

.editor-form.is-submitting button[type="submit"]::after,
.filters-panel form.is-submitting button[type="submit"]::after,
.public-form.is-submitting button[type="submit"]::after {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-top-color: #fff;
  border-radius: 50%;
  animation: feedbackSpin 0.7s linear infinite;
}

.has-validation-feedback {
  animation: feedbackShake 0.34s ease;
}

.is-invalid,
.has-invalid-field input,
.has-invalid-field textarea,
.has-invalid-field .custom-select-trigger {
  border-color: var(--red) !important;
  box-shadow: 0 0 0 3px rgba(200, 39, 54, 0.1), 0 0 14px rgba(200, 39, 54, 0.12) !important;
}

.feedback-ripple {
  position: absolute;
  z-index: 0;
  width: 12px;
  height: 12px;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.58);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  animation: rippleFeedback 0.58s ease-out;
}

.custom-select-trigger .feedback-ripple,
.menu-button .feedback-ripple,
.button-light .feedback-ripple {
  background: rgba(255, 214, 40, 0.36);
}

.button > :not(.feedback-ripple),
.icon-button > :not(.feedback-ripple),
.custom-select-trigger > span:not(.feedback-ripple),
.menu-button > :not(.feedback-ripple),
.top-search > button[type="submit"] > :not(.feedback-ripple),
.hero-search > button[type="submit"] > :not(.feedback-ripple) {
  position: relative;
  z-index: 1;
}

.error-page {
  min-height: 54vh;
  display: grid;
  place-items: center;
  padding: 64px 0;
}

.error-panel {
  width: min(620px, 100%);
  padding: 42px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 5px solid var(--yellow);
  box-shadow: 0 16px 36px rgba(35, 42, 55, 0.08), 0 0 28px rgba(255, 214, 40, 0.12);
}

.error-panel h1 {
  margin-bottom: 12px;
  font-size: 36px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

@keyframes componentSheen {
  from {
    transform: translateX(-80%);
  }

  to {
    transform: translateX(90%);
  }
}

@keyframes feedbackSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes feedbackPop {
  0% {
    transform: scale(0.985);
  }

  60% {
    transform: scale(1.015);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes feedbackShake {
  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-4px);
  }

  75% {
    transform: translateX(4px);
  }
}

@keyframes rippleFeedback {
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(18);
  }
}

@media (max-width: 820px) {
  .language-select .custom-select {
    min-width: 116px;
  }
}

@media (max-width: 820px) {
  .site-header {
    position: sticky;
  }

  .utility-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    min-height: auto;
    padding: 12px 0 14px;
  }

  .brand {
    min-width: 0;
    gap: 8px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 7px;
  }

  .brand > span {
    min-width: 0;
  }

  .brand strong {
    max-width: calc(100vw - 190px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 28px;
  }

  .brand small {
    display: none;
  }

  .language-select {
    justify-self: end;
    width: 112px;
  }

  .language-select .custom-select,
  .language-select select {
    min-width: 0;
    width: 112px;
  }

  .language-select .custom-select-trigger {
    height: 42px;
    min-height: 42px;
    padding: 0 28px 0 36px;
    font-size: 13px;
  }

  .language-select .custom-select-trigger b {
    right: 10px;
  }

  .language-select .custom-select-list {
    left: auto;
    right: 0;
    min-width: 0;
    width: min(180px, calc(100vw - 28px));
  }

  .top-search {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) 42px;
    height: 48px;
    padding: 3px 4px 3px 16px;
  }

  .top-search input {
    font-size: 15px;
  }

  .top-search > button[type="submit"] {
    width: 40px;
    height: 40px;
  }

  .ad-strip {
    padding: 14px 0 16px;
  }

  .logo-strip {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
  }

  .logo-strip a {
    flex: 0 0 178px;
    min-height: 82px;
    scroll-snap-align: start;
  }

  .home-portal {
    padding-top: 8px;
  }

  .page-hero.compact {
    padding: 28px 0;
  }

  .hero h1,
  .page-hero h1,
  .article-header h1 {
    font-size: 34px;
  }

  .blog-main,
  .article-main-column {
    order: 1;
  }

  .blog-left {
    order: 2;
  }

  .blog-right {
    order: 3;
  }
}

@media (max-width: 430px) {
  .brand strong {
    font-size: 26px;
  }

  .language-select,
  .language-select .custom-select,
  .language-select select {
    width: 118px;
  }
}

@media (max-width: 820px) {
  .profile-details-grid {
    grid-template-columns: 1fr;
  }

  .profile-glance,
  .profile-detail-card,
  .profile-guide-box {
    padding: 18px;
  }

  .profile-guide-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-guide-row .button {
    width: 100%;
  }

  .article-affiliate-disclosure,
  .article-share {
    margin-inline: 0;
  }

  .blog-hub-header {
    margin-left: 0;
  }
}
