/*
 * Pagedar Editorial Calm
 * Final visual layer for the Radar Orbit identity.
 */

:root {
  --ec-ink: #171513;
  --ec-paper: #f4f0e5;
  --ec-paper-soft: #e8e2d4;
  --ec-surface: #fffcf5;
  --ec-clay: #a94731;
  --ec-clay-deep: #843523;
  --ec-gold: #d99a3a;
  --ec-copy: #4f4a43;
  --ec-copy-strong: #38342f;
  --ec-line: rgba(23, 21, 19, 0.14);
  --ec-line-light: rgba(255, 250, 240, 0.2);
  --ec-space-1: 0.5rem;
  --ec-space-2: 0.75rem;
  --ec-space-3: 1rem;
  --ec-space-4: 1.5rem;
  --ec-space-5: 2rem;
  --ec-space-6: 3rem;
  --ec-space-7: 4.5rem;
  --ec-space-8: 7rem;
  --ec-radius-sm: 0.625rem;
  --ec-radius-md: 0.875rem;
  --ec-radius-lg: 1rem;
  --ec-shadow-soft: 0 8px 20px rgba(23, 21, 19, 0.08);
  --ec-shadow-nav: 0 6px 18px rgba(23, 21, 19, 0.11);
  --ec-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ec-ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ec-ui-fast: 150ms;
  --ec-ui: 210ms;
  --ec-reveal: 440ms;
  --ec-container: 1180px;
  --ec-z-sticky: 40;
  --ec-z-dropdown: 60;
  --ec-z-modal-backdrop: 80;
  --ec-z-modal: 90;
  --ec-z-toast: 100;
}

html {
  background: var(--ec-paper);
  scroll-padding-top: 6rem;
}

body {
  background: var(--ec-paper);
  color: var(--ec-ink);
  font-family: "Inter", Arial, system-ui, sans-serif;
}

/* Decorative photography and ambient accents remain intentionally still. */
.ticker-track,
.avatar,
.about-image-card img,
.about-mission-visual img,
.about-index-visual img {
  animation: none !important;
}

body::before {
  display: none;
}

.container {
  width: min(var(--ec-container), calc(100% - 48px));
  max-width: none;
  padding-inline: 0;
}

h1,
h2,
h3 {
  color: inherit;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

p {
  max-width: 72ch;
}

:where(a, button, input, select, summary):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--ec-gold) 76%, white);
  outline-offset: 3px;
}

::selection {
  background: color-mix(in srgb, var(--ec-gold) 48%, white);
  color: var(--ec-ink);
}

/* Shared navigation */
.topbar {
  z-index: var(--ec-z-sticky);
  padding-top: 18px;
}

.nav-inner {
  width: min(1010px, calc(100% - 36px));
  min-height: 62px;
  padding: 8px 10px 8px 18px;
  border: 0;
  border-radius: var(--ec-radius-md);
  background: rgba(255, 252, 245, 0.94);
  box-shadow: var(--ec-shadow-nav);
  -webkit-backdrop-filter: blur(14px) saturate(1.08);
  backdrop-filter: blur(14px) saturate(1.08);
}

.brand-lockup {
  width: 126px;
  max-height: 38px;
}

.nav {
  gap: 26px;
}

.nav a,
.nav summary {
  color: var(--ec-copy-strong);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nav-dropdown-menu {
  z-index: var(--ec-z-dropdown);
  min-width: 188px;
  padding: 8px;
  border: 0;
  border-radius: var(--ec-radius-md);
  background: var(--ec-surface);
  box-shadow: var(--ec-shadow-soft);
  transform-origin: top center;
}

.nav-dropdown-menu a {
  padding: 10px 12px;
  border-radius: var(--ec-radius-sm);
}

.mobile-menu {
  width: min(520px, calc(100% - 32px));
  margin: 8px auto 0;
  padding: 12px;
  border: 0;
  border-radius: var(--ec-radius-md);
  background: var(--ec-surface);
  box-shadow: var(--ec-shadow-soft);
}

.mobile-menu a {
  min-height: 44px;
  padding: 11px 12px;
  border-radius: var(--ec-radius-sm);
  color: var(--ec-copy-strong);
  font-weight: 700;
}

.mobile-menu-company {
  border-top: 1px solid var(--ec-line);
}

.mobile-menu-company summary {
  min-height: 44px;
  padding: 11px 12px;
  color: var(--ec-copy-strong);
  font-weight: 700;
  cursor: pointer;
}

.mobile-menu-company div {
  display: grid;
  padding-left: 12px;
}

.mobile-menu-company div a {
  min-height: 38px;
  padding-block: 8px;
  color: var(--ec-copy);
  font-size: 13px;
}

/* Controls */
.btn,
.show-more,
.footer-cookie-button,
.cookie-inline-settings {
  min-height: 42px;
  border-radius: var(--ec-radius-sm);
  font-weight: 750;
  white-space: nowrap;
  transition:
    transform var(--ec-ui-fast) var(--ec-ease-out),
    background-color var(--ec-ui) ease,
    border-color var(--ec-ui) ease,
    color var(--ec-ui) ease,
    box-shadow var(--ec-ui) ease;
}

.btn:active,
.show-more:active,
.category-filter button:active,
.submit-circle:active,
.mobile-menu-toggle:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--ec-ink);
  color: var(--ec-surface);
  box-shadow: none;
}

.btn-ghost {
  border: 1px solid var(--ec-line);
  background: transparent;
  color: var(--ec-ink);
  box-shadow: none;
}

input,
select,
textarea {
  color: var(--ec-ink);
}

input::placeholder,
textarea::placeholder {
  color: #655f56;
  opacity: 1;
}

/* Homepage hero */
.hero {
  min-height: min(580px, 72svh);
  padding: clamp(104px, 14vh, 144px) 0 clamp(32px, 4vh, 48px);
  background: #0d110f;
}

.hero::before {
  background: url("hero-friends-motion.jpg") center 58% / cover no-repeat;
  animation: none;
  transform: scale(1.035);
  filter: saturate(0.76) contrast(1.05) brightness(0.76);
}

.hero::after {
  background:
    linear-gradient(180deg, rgba(8, 11, 10, 0.34) 0%, rgba(8, 11, 10, 0.54) 54%, rgba(8, 11, 10, 0.84) 100%),
    radial-gradient(ellipse at 50% 42%, rgba(8, 11, 10, 0.02) 0 28%, rgba(8, 11, 10, 0.38) 86%);
}

.hero-content {
  max-width: 1120px;
  justify-items: center;
  text-align: center;
  transform: translateY(28px);
}

.hero h1 {
  max-width: 1060px;
  font-size: clamp(3.7rem, 6vw, 6rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
  white-space: normal;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.36);
}

.hero h1 em {
  display: inline-block;
  padding-bottom: 0.07em;
  color: #e4a43f;
}

.hero p {
  max-width: 620px;
  margin-top: 22px;
  color: rgba(255, 250, 240, 0.9);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.55;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.32);
}

.hero-search {
  width: min(100%, 580px);
  margin-top: 25px;
}

.hero .url-box {
  min-height: 60px;
  border: 0;
  border-radius: var(--ec-radius-md);
  background: rgba(255, 252, 245, 0.97);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.hero .url-box input {
  font-size: 16px;
}

.submit-circle {
  width: 42px;
  height: 42px;
  background: var(--ec-ink);
  color: var(--ec-surface);
  box-shadow: none;
  transition: transform var(--ec-ui-fast) var(--ec-ease-out), background-color var(--ec-ui) ease;
}

/* Ranking */
.mockup-section {
  position: relative;
  margin: 0;
  padding: clamp(28px, 4vw, 52px) 0 clamp(64px, 8vw, 112px);
  background: var(--ec-paper);
}

.mockup-section::before,
.mockup-section::after {
  display: none;
}

.mockup-frame {
  overflow: hidden;
  border: 0;
  border-radius: var(--ec-radius-lg);
  background: var(--ec-surface);
  box-shadow: var(--ec-shadow-soft);
  transform: none;
}

.mockup-top {
  min-height: 42px;
  padding: 0 18px;
  border-bottom: 1px solid var(--ec-line);
  background: var(--ec-paper-soft);
  color: var(--ec-copy);
  font-size: 12px;
}

.mockup-top .dots {
  opacity: 0.55;
}

.mockup-body {
  display: block;
  background: var(--ec-surface);
}

.ranking-panel {
  max-width: none;
  padding: clamp(14px, 2vw, 22px) clamp(18px, 3vw, 34px) clamp(26px, 4vw, 54px);
  background: transparent;
}

.ranking-head .eyebrow,
.section-heading .eyebrow,
.company-section-head .eyebrow,
.worth-section-head .eyebrow,
.brand-section-head .eyebrow {
  margin-bottom: 12px;
  color: var(--ec-clay);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.ranking-count {
  margin-left: 5px;
  color: var(--ec-copy);
  font-size: 11px;
  font-weight: 600;
}

.ranking-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.34fr);
  gap: 10px;
  margin-top: var(--ec-space-5);
}

.ranking-search-field,
.ranking-sort-field {
  border: 0;
  border-radius: var(--ec-radius-sm);
  background: transparent;
}

.ranking-search-field span,
.ranking-sort-field span {
  color: var(--ec-copy);
  font-size: 11px;
  letter-spacing: 0;
}

.ranking-search-field input,
.ranking-sort-field select {
  min-height: 46px;
}

.category-filter {
  gap: 7px;
  margin: var(--ec-space-4) 0 var(--ec-space-5);
}

.category-filter button {
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid var(--ec-line);
  border-radius: 999px;
  background: transparent;
  color: var(--ec-copy-strong);
  font-size: 12px;
  font-weight: 700;
  transition:
    transform var(--ec-ui-fast) var(--ec-ease-out),
    background-color var(--ec-ui) ease,
    border-color var(--ec-ui) ease,
    color var(--ec-ui) ease;
}

.category-filter button.active {
  border-color: var(--ec-ink);
  background: var(--ec-ink);
  color: var(--ec-surface);
}

.site-list {
  border-top: 1px solid var(--ec-line);
}

.site-card {
  min-height: 102px;
  margin: 0;
  padding: 14px 8px;
  border: 0;
  border-bottom: 1px solid var(--ec-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.site-card:hover {
  border-color: var(--ec-line);
  background: color-mix(in srgb, var(--ec-gold) 6%, transparent);
}

.rank-number {
  color: var(--ec-copy);
  font-variant-numeric: tabular-nums;
}

.site-preview {
  border: 0;
  border-radius: var(--ec-radius-sm);
}

.site-preview-shot {
  display: block;
  visibility: visible;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-preview .site-thumb {
  display: grid;
  visibility: visible;
  place-items: center;
  opacity: 1;
}

.site-preview .site-thumb img {
  display: block;
  visibility: visible;
}

.site-main h3,
.site-title h3 {
  letter-spacing: -0.015em;
}

.site-purpose {
  color: var(--ec-copy);
}

.score-box strong {
  color: var(--ec-clay-deep);
  font-variant-numeric: tabular-nums;
}

.show-more {
  margin-top: var(--ec-space-5);
  border: 1px solid var(--ec-ink);
  background: transparent;
  color: var(--ec-ink);
  box-shadow: none;
}

/* Method and standards */
#method.section {
  padding: clamp(88px, 10vw, 148px) 0;
  background:
    linear-gradient(180deg, rgba(23, 21, 19, 0.28), rgba(23, 21, 19, 0.68)),
    url("hero-meadow-motion.jpg") center / cover no-repeat;
  color: #fffaf0;
}

#method.section::before {
  display: none;
}

#method .method-editorial {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.72fr);
  gap: clamp(56px, 9vw, 120px);
  align-items: center;
  max-width: 1120px;
  min-height: 420px;
}

#method .method-primary {
  max-width: 720px;
  padding: 4px 0 8px 2px;
  overflow: visible;
}

#method .method-primary .eyebrow,
#method .method-human-layer .eyebrow {
  margin: 0 0 10px;
  color: #e7aa4b;
  text-align: left;
}

#method .method-primary h2 {
  max-width: 720px;
  margin: 0;
  color: #fffaf0;
  font-size: clamp(2.7rem, 4.8vw, 4.6rem);
  line-height: 1;
}

#method .method-primary > p:not(.eyebrow) {
  max-width: 50ch;
  margin: 22px 0 0;
  color: rgba(255, 250, 240, 0.82);
  font-size: 17px;
  line-height: 1.55;
}

#method .method-human-layer {
  padding-left: clamp(24px, 4vw, 48px);
  border-left: 1px solid var(--ec-line-light);
  overflow: visible;
}

#method .method-human-layer h3 {
  max-width: 520px;
  margin: 0;
  font-size: clamp(2rem, 2.7vw, 2.8rem);
  line-height: 1.04;
}

#method .method-human-layer > p:not(.eyebrow) {
  margin: 18px 0 0;
  max-width: 38ch;
  color: rgba(255, 250, 240, 0.78);
  font-size: 15px;
  line-height: 1.55;
}

#method.ec-method-ready .method-primary > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 560ms var(--ec-ease-out), transform 560ms var(--ec-ease-out);
}

#method.ec-method-ready .method-primary > :nth-child(2) {
  transition-delay: 80ms;
}

#method.ec-method-ready .method-primary > :nth-child(3) {
  transition-delay: 160ms;
}

#method.ec-method-ready .method-human-layer {
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 620ms var(--ec-ease-out) 220ms, transform 620ms var(--ec-ease-out) 220ms;
}

#method.is-method-visible .method-primary > *,
#method.is-method-visible .method-human-layer {
  opacity: 1;
  transform: none;
}

#standards.section.white {
  padding: clamp(86px, 10vw, 140px) 0;
  background: var(--ec-paper-soft);
}

#standards .section-heading {
  max-width: 850px;
  margin-inline: auto;
  margin-bottom: clamp(42px, 6vw, 70px);
  text-align: center;
}

#standards .section-heading h2 {
  font-size: clamp(2.7rem, 5vw, 4.8rem);
  line-height: 1;
}

#standards .section-heading .eyebrow {
  width: 100%;
  max-width: none;
}

#standards .section-heading > p:not(.eyebrow) {
  max-width: 650px;
  margin: 18px auto 0;
  color: var(--ec-copy);
  font-size: 18px;
  line-height: 1.6;
}

#standards .cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--ec-line);
}

#standards .card {
  min-height: 0;
  padding-block: var(--ec-space-5);
  padding-inline: 0 var(--ec-space-5);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#standards .standards-icon {
  display: block;
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  color: var(--ec-ink);
  overflow: visible;
}

#standards .standards-icon .icon-clay {
  color: var(--ec-clay);
}

#standards .standards-icon .icon-gold {
  color: var(--ec-gold);
}

#standards .card + .card {
  padding-left: var(--ec-space-5);
  border-left: 1px solid var(--ec-line);
}

#standards .card h3 {
  font-size: clamp(1.55rem, 2.2vw, 2.2rem);
}

#standards .card p {
  color: var(--ec-copy);
}

#api.section {
  padding: clamp(60px, 8vw, 104px) 0;
  background: var(--ec-paper);
}

.cta-panel {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--ec-space-6);
  align-items: center;
  padding: clamp(28px, 5vw, 56px);
  border: 0;
  border-radius: var(--ec-radius-lg);
  background: var(--ec-clay);
  color: #fffaf0;
  box-shadow: none;
}

.cta-panel h2,
.cta-panel p {
  color: #fffaf0;
}

.cta-panel h2 {
  max-width: 760px;
  font-size: clamp(2.35rem, 4.5vw, 4.2rem);
  line-height: 1;
}

.cta-panel p {
  max-width: 620px;
  color: rgba(255, 250, 240, 0.86);
}

.cta-panel .btn-primary {
  background: #fffaf0;
  color: var(--ec-ink);
}

/* Company and image-led pages */
.company-main,
.legal-main,
.auth-main,
.site-detail-main {
  background: var(--ec-paper);
}

.company-hero {
  min-height: 640px;
  padding: 150px 0 84px;
}

.company-hero-inner {
  max-width: 940px;
}

.company-hero h1 {
  max-width: 900px;
  font-size: clamp(3.4rem, 7vw, 6rem);
  line-height: 0.96;
}

.company-hero p:not(.eyebrow) {
  max-width: 670px;
  font-size: 20px;
  line-height: 1.58;
}

.about-hero-visual::before,
.trust-hero::before,
.about-story-section::before {
  background-image: url("about-hero-motion.jpg");
  animation: none;
}

.about-story-section::before {
  background-image: url("about-index-dark.jpg");
}

.about-mission-section::before {
  background-image: url("about-mission-review.jpg");
  animation: none;
}

.about-cta-section,
.worth-hero {
  background-image:
    linear-gradient(rgba(10, 13, 12, 0.48), rgba(10, 13, 12, 0.8)),
    url("about-index-dark.jpg");
  background-position: center;
  background-size: cover;
}

.about-cta-section .company-statement p {
  max-width: 820px;
  color: #fffaf0;
  text-shadow: 0 12px 36px rgba(0, 0, 0, 0.34);
}

.about-cta-section .btn-primary {
  background: #fffaf0;
  color: var(--ec-ink);
}

.about-cta-section::before,
.about-cta-section::after {
  animation: none;
}

.about-name-section {
  padding: clamp(64px, 8vw, 104px) 0;
  background: var(--ec-surface);
}

.about-name-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.62fr) minmax(0, 1.38fr);
  gap: clamp(42px, 7vw, 92px);
  align-items: end;
}

.about-name-intro h2 {
  margin: 0;
  font-size: clamp(2.5rem, 4.7vw, 4.5rem);
  line-height: 1;
}

.about-name-intro > p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--ec-copy);
  font-size: 16px;
  line-height: 1.6;
}

.about-name-equation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1.16fr);
  gap: clamp(12px, 2vw, 24px);
  align-items: center;
  padding: 24px 0;
  border-top: 1px solid var(--ec-line);
  border-bottom: 1px solid var(--ec-line);
}

.about-name-term {
  min-width: 0;
}

.about-name-term strong {
  display: block;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 400;
  line-height: 1;
}

.about-name-term span {
  display: block;
  margin-top: 9px;
  color: var(--ec-copy);
  font-size: 12px;
  line-height: 1.4;
}

.about-name-result strong {
  color: var(--ec-clay);
}

.about-name-operator {
  color: var(--ec-gold);
  font-size: clamp(1.4rem, 2.4vw, 2.1rem);
  font-weight: 700;
}

.about-mark-story {
  grid-column: 2;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding-top: 24px;
}

.about-mark-story img {
  width: 76px;
  height: 76px;
}

.about-mark-story strong {
  display: block;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 400;
}

.about-mark-story p {
  max-width: 650px;
  margin: 8px 0 0;
  color: var(--ec-copy);
  font-size: 14px;
  line-height: 1.55;
}

.company-section {
  padding: clamp(78px, 9vw, 126px) 0;
}

.company-section-soft {
  background: var(--ec-paper-soft);
}

.company-section-head {
  max-width: 820px;
  margin-bottom: clamp(34px, 5vw, 58px);
}

.company-section-head h2 {
  font-size: clamp(2.55rem, 5vw, 4.8rem);
  line-height: 1;
}

.company-section-head p:not(.eyebrow) {
  color: var(--ec-copy);
  font-size: 18px;
  line-height: 1.6;
}

.company-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0;
  border-top: 1px solid var(--ec-line);
}

.company-card {
  min-height: 0;
  padding: var(--ec-space-5) var(--ec-space-5) var(--ec-space-4) 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.company-card + .company-card {
  padding-left: var(--ec-space-5);
  border-left: 1px solid var(--ec-line);
}

.company-card p {
  color: var(--ec-copy);
}

/* Radar */
.worth-hero {
  min-height: min(470px, 70svh);
  padding: 112px 0 44px;
  color: #fffaf0;
}

.worth-hero::before,
.worth-hero::after {
  display: none;
}

.worth-hero h1,
.worth-hero p,
.worth-hero .eyebrow {
  color: #fffaf0;
}

.worth-hero h1 {
  max-width: 870px;
  font-size: clamp(3.3rem, 6.6vw, 5.8rem);
  line-height: 0.98;
}

.worth-hero p:not(.eyebrow) {
  color: #fffaf0;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.52);
}

.worth-archive-section {
  padding: clamp(44px, 5vw, 72px) 0 clamp(74px, 9vw, 126px);
  background: var(--ec-paper);
}

.worth-section-head {
  max-width: 820px;
  margin-bottom: var(--ec-space-6);
}

.worth-grid,
.spotlight-grid {
  gap: var(--ec-space-4);
}

.worth-card,
.spotlight-card {
  border: 0;
  border-radius: var(--ec-radius-lg);
  background: var(--ec-surface);
  box-shadow: none;
}

/* Auth and site detail */
.auth-main {
  position: relative;
  isolation: isolate;
  min-height: 100dvh;
  overflow: hidden;
  padding: 132px 0 82px;
}

.auth-main::before {
  content: "";
  position: absolute;
  inset: 0 50% 0 0;
  z-index: -2;
  background-image: url("hero-meadow-motion.jpg");
  background-position: center;
  background-size: cover;
  animation: none;
}

.auth-main::after {
  content: "";
  position: absolute;
  inset: 0 50% 0 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(10, 13, 12, 0.72), rgba(10, 13, 12, 0.38));
}

.auth-shell {
  gap: clamp(28px, 6vw, 78px);
}

.auth-intro,
.auth-copy {
  color: #fffaf0;
}

.auth-intro h1,
.auth-intro p,
.auth-intro .eyebrow,
.auth-main .auth-copy h1,
.auth-main .auth-copy p,
.auth-main .auth-copy .eyebrow {
  color: inherit;
}

.auth-main .legal-inline-note {
  color: rgba(255, 250, 240, 0.72);
}

.auth-main .legal-inline-note a,
.auth-main .cookie-inline-settings {
  color: #f2b24e;
}

.auth-card {
  border: 0;
  border-radius: var(--ec-radius-lg);
  background: var(--ec-surface);
  box-shadow: var(--ec-shadow-soft);
}

.site-detail-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 150px 0 74px;
  background: #111411;
  color: #fffaf0;
}

.site-detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("hero-meadow-motion.jpg");
  background-position: center;
  background-size: cover;
  animation: none;
  filter: saturate(0.65) brightness(0.58);
}

.site-detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(10, 13, 12, 0.9), rgba(10, 13, 12, 0.42));
}

.site-detail-hero h1,
.site-detail-hero p,
.site-detail-hero a,
.site-detail-hero .eyebrow {
  color: inherit;
}

.site-detail-hero .site-detail-copy p:not(.eyebrow) {
  color: rgba(255, 250, 240, 0.84);
  text-shadow: 0 6px 22px rgba(0, 0, 0, 0.48);
}

.detail-score-panel {
  border: 1px solid rgba(255, 250, 240, 0.22);
  border-radius: var(--ec-radius-lg);
  background: rgba(15, 17, 15, 0.76);
  color: #fffaf0;
  box-shadow: none;
  backdrop-filter: none;
}

.site-detail-hero .score-main > span,
.site-detail-hero .score-main p,
.site-detail-hero .ai-summary-mini h2 {
  color: rgba(255, 250, 240, 0.82);
}

.site-detail-hero .score-main strong {
  color: #fffaf0;
}

.site-detail-hero .ai-summary-mini {
  border-left-color: rgba(255, 250, 240, 0.18);
}

.site-detail-hero .ai-summary-mini ul {
  color: rgba(255, 250, 240, 0.74);
}

.review-workbench-section,
.detail-section {
  padding-block: clamp(70px, 8vw, 112px);
  background: var(--ec-paper);
}

.summary-panel,
.snapshot-panel,
.reviews-column,
.review-composer {
  border-radius: var(--ec-radius-lg);
}

/* Legal reading surfaces */
.legal-main {
  padding: 142px 0 clamp(80px, 10vw, 130px);
}

.legal-main > .container {
  max-width: 980px;
}

.legal-hero {
  position: relative;
  margin-bottom: var(--ec-space-7);
  padding: clamp(28px, 5vw, 54px);
  overflow: hidden;
  border-radius: var(--ec-radius-lg);
  background:
    linear-gradient(90deg, rgba(255, 252, 245, 0.94), rgba(255, 252, 245, 0.84)),
    url("about-index-dark.jpg") center / cover;
}

.legal-hero h1 {
  max-width: 780px;
  font-size: clamp(2.8rem, 6vw, 5.1rem);
  line-height: 1;
}

.legal-hero p {
  max-width: 720px;
  color: var(--ec-copy);
  font-size: 18px;
  line-height: 1.6;
}

.legal-section {
  margin: 0;
  padding: var(--ec-space-5) 0 var(--ec-space-6);
  border: 0;
  border-top: 1px solid var(--ec-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.legal-section h2 {
  max-width: 760px;
  font-size: clamp(1.8rem, 3.4vw, 2.75rem);
}

.legal-section p,
.legal-section li {
  color: var(--ec-copy-strong);
  font-size: 16px;
  line-height: 1.72;
}

/* Community Guidelines illustrations */
.community-hero {
  padding: clamp(30px, 5vw, 58px);
}

.community-hero-layout,
.community-guideline-feature,
.community-process-group {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.72fr);
  gap: clamp(36px, 6vw, 84px);
  align-items: center;
}

.community-hero h1 {
  max-width: 620px;
  font-size: clamp(2.65rem, 5.3vw, 4.65rem);
}

.community-hero-copy {
  position: relative;
  z-index: 1;
}

.community-illustration {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: clamp(18px, 3vw, 32px);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--ec-gold) 22%, transparent);
  border-radius: var(--ec-radius-lg);
  background:
    radial-gradient(circle at 82% 16%, rgba(217, 154, 58, 0.2), transparent 34%),
    color-mix(in srgb, var(--ec-paper-soft) 72%, white);
}

.community-illustration img {
  display: block;
  width: 100%;
  height: auto;
}

.community-hero-illustration {
  padding: clamp(14px, 2.4vw, 24px);
  background: rgba(255, 252, 245, 0.82);
}

.community-guideline-feature,
.community-process-group {
  padding-block: clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--ec-line);
}

.community-guideline-feature.legal-section {
  padding-block: clamp(40px, 6vw, 72px);
}

.community-guideline-feature .community-illustration {
  order: -1;
}

.community-process-copy .legal-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.community-process-copy .legal-section:last-child {
  padding-bottom: 0;
}

@media (max-width: 760px) {
  .community-hero-layout,
  .community-guideline-feature,
  .community-process-group {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .community-hero {
    padding: 24px 20px;
  }

  .community-illustration {
    width: min(100%, 420px);
    margin-inline: auto;
  }

  .community-guideline-feature .community-illustration {
    order: 0;
  }
}

/* Brand guide */
.brand-hero {
  min-height: 610px;
  padding: 150px 0 76px;
  background:
    linear-gradient(90deg, rgba(244, 240, 229, 0.95), rgba(244, 240, 229, 0.62)),
    url("about-index-dark.jpg") center / cover;
}

.brand-hero-grid {
  display: none;
}

.brand-hero h1 {
  max-width: 900px;
  font-size: clamp(3.35rem, 6.8vw, 5.9rem);
}

.brand-toc {
  border-bottom: 1px solid var(--ec-line);
  background: rgba(255, 252, 245, 0.95);
}

.brand-section {
  padding: clamp(76px, 9vw, 126px) 0;
}

.brand-section-head {
  max-width: 840px;
  margin-bottom: clamp(34px, 5vw, 60px);
}

.brand-section-head h2 {
  font-size: clamp(2.55rem, 5vw, 4.7rem);
}

.brand-logo-card,
.brand-build article,
.asset-card,
.photo-usage-card,
.do-dont-grid article,
.partnership-card {
  border-radius: var(--ec-radius-lg);
  box-shadow: none;
}

.photo-usage-card {
  grid-template-rows: minmax(230px, 0.9fr) auto;
}

.photo-usage-card img {
  min-height: 230px;
  filter: saturate(0.78) contrast(1.04) brightness(0.82);
}

/* Footer and overlays */
.footer {
  border-top: 1px solid var(--ec-line);
  background: var(--ec-paper);
}

.footer-inner {
  gap: var(--ec-space-5);
  padding-block: var(--ec-space-6);
}

.footer-meta,
.footer-links a,
.footer-cookie-button {
  color: var(--ec-copy);
}

.cookie-banner,
.toast {
  z-index: var(--ec-z-toast);
  border-radius: var(--ec-radius-md);
  box-shadow: var(--ec-shadow-soft);
}

.cookie-modal-backdrop {
  z-index: var(--ec-z-modal-backdrop);
}

.cookie-modal {
  z-index: var(--ec-z-modal);
  border-radius: var(--ec-radius-lg);
}

/* Restrained motion: content stays visible until JS opts in. */
body.ec-motion-ready .ec-reveal {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition:
    opacity var(--ec-reveal) var(--ec-ease-out) var(--ec-reveal-delay, 0ms),
    transform var(--ec-reveal) var(--ec-ease-out) var(--ec-reveal-delay, 0ms);
}

body.ec-motion-ready .ec-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (hover: hover) and (pointer: fine) {
  .nav a,
  .nav summary,
  .footer-links a {
    transition: color var(--ec-ui) ease;
  }

  .nav a:hover,
  .nav summary:hover,
  .footer-links a:hover {
    color: var(--ec-clay);
  }

  .nav-dropdown-menu a:hover,
  .mobile-menu a:hover {
    background: var(--ec-paper-soft);
  }

  .btn:hover,
  .show-more:hover,
  .category-filter button:hover {
    transform: translateY(-2px);
  }

  .btn-primary:hover {
    background: var(--ec-clay-deep);
    box-shadow: none;
  }

  .site-card,
  .company-card,
  .worth-card,
  .spotlight-card,
  .photo-usage-card {
    transition:
      transform var(--ec-ui) var(--ec-ease-out),
      background-color var(--ec-ui) ease,
      box-shadow var(--ec-ui) ease;
  }

  .site-card:hover {
    transform: translateX(3px);
  }

  .worth-card:hover,
  .spotlight-card:hover,
  .photo-usage-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--ec-shadow-soft);
  }
}

@media (max-width: 900px) {
  .container {
    width: min(100% - 40px, var(--ec-container));
  }

  .nav-inner {
    width: min(560px, calc(100% - 24px));
  }

  .hero {
    min-height: min(560px, 78svh);
    padding: 116px 0 42px;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 10vw, 4.9rem);
  }

  #method .method-editorial,
  .auth-shell,
  .site-detail-layout {
    grid-template-columns: 1fr;
  }

  #method .method-editorial {
    gap: 44px;
    min-height: 0;
  }

  #method .method-primary > p:not(.eyebrow) {
    max-width: 620px;
    margin-top: 22px;
  }

  #method .method-human-layer {
    padding: 28px 0 0;
    border-top: 1px solid var(--ec-line-light);
    border-left: 0;
  }

  #standards .cards {
    grid-template-columns: 1fr;
  }

  #standards .card,
  #standards .card + .card {
    padding: var(--ec-space-4) 0;
    border-left: 0;
    border-bottom: 1px solid var(--ec-line);
  }

  #standards .card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
  }

  #standards .standards-icon {
    margin-bottom: 0;
  }

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

  .cta-panel .btn {
    justify-self: start;
  }

  .auth-main::before,
  .auth-main::after {
    inset: 0;
  }

  .auth-main::after {
    background: rgba(10, 13, 12, 0.74);
  }

  .auth-card {
    background: rgba(255, 252, 245, 0.98);
  }

  .company-card-grid {
    grid-template-columns: 1fr;
  }

  .company-card,
  .company-card + .company-card {
    padding: var(--ec-space-4) 0;
    border-left: 0;
    border-bottom: 1px solid var(--ec-line);
  }

  .about-name-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .about-mark-story {
    grid-column: 1;
  }
}

@media (max-width: 560px) {
  .container {
    width: calc(100% - 32px);
  }

  .topbar {
    padding-top: 10px;
  }

  .about-name-equation {
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: start;
  }

  .about-name-operator {
    line-height: 1;
  }

  .about-mark-story {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 16px;
  }

  .about-mark-story img {
    width: 58px;
    height: 58px;
  }

  .nav-inner {
    min-height: 56px;
    padding: 7px 8px 7px 12px;
    border-radius: var(--ec-radius-sm);
  }

  .brand-lockup {
    width: 110px;
  }

  .hero {
    min-height: min(560px, 82svh);
    padding: 104px 0 40px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2.7rem, 12vw, 3.5rem);
    line-height: 1;
  }

  .hero p {
    max-width: 360px;
    font-size: 16px;
  }

  .ranking-panel {
    padding: 14px 12px 24px;
  }

  .site-card {
    min-height: 88px;
    padding-inline: 0;
  }

  #method.section,
  #standards.section.white,
  .company-section,
  .worth-archive-section,
  .brand-section {
    padding-block: 72px;
  }

  #method .method-primary h2,
  #standards .section-heading h2,
  .company-section-head h2,
  .brand-section-head h2 {
    font-size: clamp(2.35rem, 11vw, 3.25rem);
  }

  .cta-panel {
    padding: 26px 20px;
  }

  .cta-panel .btn {
    width: 100%;
  }

  .company-hero,
  .site-detail-hero {
    min-height: 560px;
    padding: 126px 0 62px;
  }

  .worth-hero {
    min-height: auto;
    padding: 112px 0 46px;
  }

  .company-hero h1,
  .worth-hero h1,
  .brand-hero h1 {
    font-size: clamp(2.8rem, 13vw, 4rem);
  }

  .legal-main {
    padding: 116px 0 76px;
  }

  .legal-hero {
    padding: 24px 20px;
  }

  .legal-hero h1 {
    font-size: clamp(2.45rem, 12vw, 3.5rem);
  }

  .footer-inner {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  body.ec-motion-ready .ec-reveal,
  body.ec-motion-ready .ec-reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  #method .method-primary > *,
  #method .method-human-layer {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Ranking directory */
.ranking-category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  overflow: visible;
  margin-top: 0;
  padding: 1px 1px 14px;
}

.ranking-category-tile {
  display: grid;
  grid-template-columns: 18px auto auto;
  grid-template-rows: 1fr;
  column-gap: 6px;
  align-content: center;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
  min-height: 42px;
  padding: 6px 9px;
  border: 1px solid var(--ec-line);
  border-radius: var(--ec-radius-sm);
  background: color-mix(in srgb, var(--ec-paper) 88%, transparent);
  color: var(--ec-ink);
  text-align: left;
  cursor: pointer;
}

.ranking-category-tile svg {
  display: block;
  align-self: center;
  width: 18px;
  height: 18px;
  color: var(--ec-clay-deep);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ranking-category-tile .category-name {
  display: block;
  align-self: center;
  overflow: hidden;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-category-tile .category-count {
  display: block;
  align-self: center;
  margin: 0;
  color: var(--ec-copy);
  font-size: 10px;
}

.ranking-category-tile:is(:hover, :focus-visible) {
  border-color: var(--ec-clay);
}

.ranking-category-tile[aria-pressed="true"] {
  border-color: var(--ec-ink);
  background: color-mix(in srgb, var(--ec-gold) 9%, var(--ec-paper));
  box-shadow: inset 0 0 0 1px var(--ec-ink);
}

.ranking-directory-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 55px;
  margin: 0 0 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ec-line);
}

.ranking-toolbar-actions {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  margin-left: auto;
}

.ranking-directory-toolbar > .ranking-count {
  align-self: center;
  margin: 0;
  font-size: 12px;
}

.ranking-directory-toolbar label > span,
.ranking-filter-search > span {
  display: block;
  margin-bottom: 6px;
  color: var(--ec-copy);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.ranking-filter-search input,
.ranking-directory-toolbar select,
#rankingFilterToggle,
.ranking-view-controls button {
  min-height: 48px;
  border: 1px solid var(--ec-line);
  border-radius: var(--ec-radius-sm);
  background: var(--ec-surface);
  color: var(--ec-ink);
}

.ranking-filter-search input {
  width: 100%;
  padding: 0 15px;
}

.ranking-directory-toolbar select,
#rankingFilterToggle {
  padding: 0 14px;
}

#rankingFilterToggle {
  display: none;
  font-weight: 750;
}

#rankingFilterCount {
  display: inline-grid;
  min-width: 20px;
  min-height: 20px;
  margin-left: 4px;
  place-items: center;
  border-radius: 50%;
  background: var(--ec-clay);
  color: var(--ec-surface);
  font-size: 11px;
}

#rankingFilterCount[hidden] {
  display: none;
}

.ranking-view-controls {
  display: flex;
  gap: 4px;
}

.ranking-view-controls button {
  display: grid;
  width: 48px;
  padding: 0;
  place-items: center;
}

.ranking-view-controls svg {
  width: 20px;
  height: 20px;
}

.ranking-view-controls button[aria-pressed="true"] {
  background: var(--ec-ink);
  color: var(--ec-surface);
}

.active-ranking-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.active-ranking-filters button {
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--ec-line);
  border-radius: 999px;
  background: var(--ec-paper);
  color: var(--ec-ink);
}

.active-ranking-filters button:is(:hover, :focus-visible) {
  border-color: var(--ec-clay);
  color: var(--ec-clay);
}

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

.ranking-sidebar {
  position: sticky;
  top: 104px;
  padding-right: 24px;
  border-right: 1px solid var(--ec-line);
}

.ranking-filter-form .ranking-filter-search {
  display: block;
  padding-bottom: 20px;
}

.ranking-filter-search input {
  min-height: 44px;
  border: 1px solid var(--ec-line);
  border-radius: var(--ec-radius-sm);
  background: var(--ec-surface);
  color: var(--ec-ink);
}

.ranking-filter-search + fieldset {
  padding-top: 20px;
  border-top: 1px solid var(--ec-line);
}

.ranking-filter-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0 0 22px;
  border: 0;
}

.ranking-filter-form fieldset + fieldset {
  padding-top: 20px;
  border-top: 1px solid var(--ec-line);
}

.ranking-filter-form legend {
  margin-bottom: 11px;
  font-size: 13px;
  font-weight: 800;
}

.ranking-filter-form label {
  display: flex;
  gap: 9px;
  align-items: center;
  min-height: 34px;
  color: var(--ec-copy);
  font-size: 13px;
}

.ranking-filter-form input {
  accent-color: var(--ec-clay);
}

.ranking-filter-form select {
  width: 100%;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid var(--ec-line);
  border-radius: var(--ec-radius-sm);
  background: var(--ec-surface);
  color: var(--ec-ink);
}

.site-list[data-view="list"] {
  border-top: 1px solid var(--ec-line);
}

.site-list[data-view="list"] .site-card {
  display: grid;
  grid-template-columns: 44px 112px minmax(0, 1fr) 84px;
  gap: 18px;
  align-items: center;
  min-height: 128px;
  padding: 18px 0;
  border: 0;
  border-bottom: 1px solid var(--ec-line);
  border-radius: 0;
  background: transparent;
}

.site-list[data-view="list"] .site-preview {
  aspect-ratio: 16 / 10;
}

.site-list[data-view="grid"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 0;
}

.site-list[data-view="grid"] .site-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--ec-line);
  border-radius: var(--ec-radius-sm);
  background: var(--ec-surface);
}

.site-list[data-view="grid"] .site-preview {
  grid-column: 1 / -1;
  grid-row: 1;
  aspect-ratio: 16 / 9;
}

.site-list[data-view="grid"] .rank-number {
  grid-column: 1;
}

.site-list[data-view="grid"] .score-box {
  grid-column: 2;
}

.site-list[data-view="grid"] .site-main {
  grid-column: 1 / -1;
}

.site-preview {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ec-line);
  border-radius: var(--ec-radius-sm);
  background: var(--ec-paper);
}

.site-preview-shot {
  position: relative;
  z-index: 2;
  display: block;
  visibility: visible;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-preview .site-thumb {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: grid;
  visibility: visible;
  place-items: center;
  background: var(--ec-paper-soft);
}

.site-preview .site-thumb img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.site-title {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: baseline;
}

.site-title h3 {
  min-width: 0;
  overflow-wrap: anywhere;
}

.site-purpose {
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.45;
}

.site-tags,
.site-review-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.site-tags {
  margin-top: 9px;
}

.site-review-meta {
  margin-top: 7px;
}

.site-tag,
.site-review-meta span,
.category-tag {
  color: var(--ec-copy);
  font-size: 11px;
}

.site-tag {
  padding: 3px 6px;
  border: 1px solid var(--ec-line);
  border-radius: 999px;
}

.score-box {
  text-align: right;
}

.score-box strong {
  display: block;
  font-size: 24px;
  line-height: 1;
}

.score-box span {
  color: var(--ec-copy);
  font-size: 11px;
}

.ranking-empty {
  padding: 64px 20px;
  border-block: 1px solid var(--ec-line);
  text-align: center;
}

.ranking-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--ec-line);
}

.ranking-pagination[hidden] {
  display: none;
}

.ranking-page-numbers {
  display: flex;
  gap: 6px;
  align-items: center;
}

.ranking-page-button,
.ranking-page-direction {
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--ec-line);
  border-radius: var(--ec-radius-sm);
  background: transparent;
  color: var(--ec-ink);
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.ranking-page-button {
  width: 40px;
  height: 40px;
  padding: 0;
}

.ranking-page-direction {
  min-width: 84px;
  height: 40px;
  padding: 0 12px;
}

.ranking-page-button[aria-current="page"] {
  border-color: var(--ec-ink);
  background: var(--ec-ink);
  color: var(--ec-surface);
}

.ranking-page-button:is(:hover, :focus-visible),
.ranking-page-direction:is(:hover, :focus-visible) {
  border-color: var(--ec-clay);
}

.ranking-page-direction:disabled {
  opacity: 0.38;
  cursor: default;
}

.ranking-page-ellipsis {
  display: inline-grid;
  width: 24px;
  height: 40px;
  place-items: center;
  color: var(--ec-copy);
  font-size: 12px;
}

.ranking-empty h3 {
  font-size: 24px;
}

.ranking-empty button {
  margin-top: 16px;
  padding: 10px 14px;
  border: 1px solid var(--ec-ink);
  border-radius: var(--ec-radius-sm);
  background: transparent;
}

.ranking-filter-backdrop {
  position: fixed;
  z-index: var(--ec-z-modal-backdrop);
  inset: 0;
  display: grid;
  align-items: end;
  background: rgb(23 21 18 / 0.46);
}

.ranking-filter-sheet {
  max-height: min(88svh, 760px);
  overflow: hidden;
  border-radius: var(--ec-radius-md) var(--ec-radius-md) 0 0;
  background: var(--ec-surface);
  box-shadow: 0 -18px 44px rgb(23 21 18 / 0.18);
}

.ranking-filter-sheet > header,
.ranking-filter-sheet > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}

.ranking-filter-sheet > header {
  border-bottom: 1px solid var(--ec-line);
}

.ranking-filter-sheet > header button {
  border: 0;
  background: transparent;
  font-weight: 750;
}

.ranking-filter-sheet-body {
  max-height: calc(min(88svh, 760px) - 132px);
  padding: 20px;
  overflow-y: auto;
}

.ranking-filter-sheet > footer {
  position: sticky;
  bottom: 0;
  border-top: 1px solid var(--ec-line);
  background: var(--ec-surface);
}

#rankingFilterApply {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: var(--ec-radius-sm);
  background: var(--ec-ink);
  color: var(--ec-surface);
  font-weight: 750;
}

body.ranking-filter-open {
  overflow: hidden;
}

.site-list {
  transition: opacity 160ms ease, transform 180ms var(--ec-ease-out);
}

.site-list.is-refreshing {
  opacity: 0.62;
  transform: translateY(4px);
}

@media (max-width: 1023px) {
  .ranking-directory-layout {
    grid-template-columns: 1fr;
  }

  .ranking-sidebar {
    display: none;
  }

  #rankingFilterToggle {
    display: block;
  }

  .ranking-category-strip {
    flex-wrap: wrap;
    overflow: visible;
  }

  .site-list[data-view="grid"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .ranking-panel {
    padding-inline: 14px;
  }

  .ranking-category-tile {
    flex-basis: auto;
  }

  .ranking-directory-toolbar {
    align-items: center;
  }

  .ranking-toolbar-actions {
    width: 100%;
    margin-left: 0;
  }

  .ranking-sort {
    flex: 1 1 auto;
  }

  .ranking-sort select {
    width: 100%;
  }

  #rankingFilterToggle {
    padding-inline: 11px;
  }

  .site-list[data-view="list"] .site-card {
    grid-template-columns: 30px 72px minmax(0, 1fr);
    gap: 10px;
    min-height: 112px;
  }

  .site-list[data-view="list"] .score-box {
    grid-column: 3;
    justify-self: start;
    text-align: left;
  }

  .site-list[data-view="grid"] {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-list,
  .site-card,
  .ranking-category-tile,
  .ranking-filter-sheet {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

@media (max-width: 560px) {
  .ranking-pagination {
    justify-content: space-between;
  }

  .ranking-page-number.is-distant {
    display: none;
  }

  .ranking-page-ellipsis {
    display: none;
  }

  .ranking-page-direction {
    min-width: 74px;
    padding-inline: 9px;
  }
}
