/*
 * 여기여 public interface
 * Editorial link-map system: red ink, warm paper, structured routes.
 */

:root {
  --red: #b31235;
  --red-dark: #741027;
  --red-deep: #4f0b1b;
  --red-bright: #e2364f;
  --coral: #f06463;
  --cream: #f5ede1;
  --cream-soft: #fbf7f0;
  --paper: #fffdf8;
  --ink: #261a1c;
  --ink-soft: #493b3e;
  --muted: #78686b;
  --line: #ddcec2;
  --line-dark: #bda99c;
  --gold: #e9a63a;
  --success: #187454;
  --danger: #a20f2d;
  --container: 1240px;
  --shadow: 0 18px 50px rgba(67, 26, 28, .08);
  --font: "Pretendard Variable", Pretendard, "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(179,18,53,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(179,18,53,.025) 1px, transparent 1px),
    var(--cream-soft);
  background-size: 32px 32px;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
body.drawer-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { color: inherit; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }
figure, p, h1, h2, h3, ol, ul { margin-top: 0; }
::selection { color: #fff; background: var(--red); }
:focus-visible {
  outline: 3px solid var(--red-deep);
  outline-offset: 4px;
  box-shadow: 0 0 0 4px #fff;
  border-radius: 3px;
}

.site-container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 15px;
  color: #fff;
  background: var(--red-deep);
  font-weight: 800;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }
.eyebrow {
  display: inline-block;
  color: var(--red);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .17em;
  line-height: 1.3;
}

/* Header */
.site-header { position: relative; z-index: 40; background: rgba(255,253,248,.97); border-bottom: 1px solid var(--line); }
.signal-bar { color: #fff5ed; background: var(--red-deep); }
.signal-inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 24px; font-size: 11px; }
.signal-inner p { margin: 0; font-weight: 700; }
.signal-inner p span { margin-right: 7px; color: var(--coral); font-size: 8px; }
.signal-inner time { margin-left: auto; color: #dfc4c2; font-variant-numeric: tabular-nums; }
.live-datetime { font-variant-numeric: tabular-nums; white-space: nowrap; }
.signal-inner > a { color: #fff; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.signal-inner > a:hover { color: #ffd5cc; }

.header-main {
  min-height: 92px;
  display: grid;
  grid-template-columns: auto minmax(300px, 430px) minmax(315px, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 54px);
}
.brand-logo { min-width: 165px; display: inline-flex; align-items: center; gap: 11px; }
.brand-logo img { width: 48px; height: 48px; display: block; object-fit: contain; }
.brand-logo span { display: flex; flex-direction: column; line-height: 1; }
.brand-logo strong { font-size: 25px; font-weight: 950; letter-spacing: -.07em; }
.brand-logo small { margin-top: 6px; color: var(--red); font-size: 8px; font-weight: 900; letter-spacing: .23em; }
.site-search > label { display: block; margin-bottom: 4px; color: var(--muted); font-size: 10px; font-weight: 800; }
.site-search > div { height: 44px; display: flex; overflow: hidden; background: #fff; border: 1px solid var(--line-dark); }
.site-search input { min-width: 0; flex: 1; padding: 0 14px; background: transparent; border: 0; outline: 0; }
.site-search input::placeholder, .hero-search input::placeholder, .search-large input::placeholder { color: #a19091; }
.site-search > div:focus-within { border-color: var(--red); box-shadow: 0 0 0 3px rgba(179,18,53,.12); }
.site-search button { min-width: 65px; padding: 0 15px; color: #fff; background: var(--red); border: 0; cursor: pointer; font-size: 12px; font-weight: 850; }
.site-search button:hover { background: var(--red-dark); }
.primary-nav { display: flex; align-items: center; justify-content: flex-end; gap: clamp(15px, 2vw, 29px); white-space: nowrap; }
.primary-nav a { position: relative; padding: 12px 0; color: var(--ink-soft); font-size: 13px; font-weight: 800; }
.primary-nav a::after { content: ""; position: absolute; right: 0; bottom: 5px; left: 0; height: 2px; background: var(--red); transform: scaleX(0); transition: transform .18s ease; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--red); }
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
.mobile-menu-button, .mobile-search-button, .mobile-search-panel { display: none; }

.category-nav { background: var(--cream); border-top: 1px solid var(--line); }
.category-nav-scroll { min-height: 47px; display: flex; align-items: stretch; gap: 0; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--line-dark) transparent; }
.category-nav-scroll > a { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 15px; border-right: 1px solid rgba(189,169,156,.55); font-size: 11px; font-weight: 800; white-space: nowrap; }
.category-nav-scroll > a:hover { color: var(--red); background: rgba(255,255,255,.55); }
.category-nav-item.is-active { color: #fff; background: var(--red); }
.category-nav-item.is-active:hover { color: #fff; background: var(--red-dark); }
.partner-nav { color: #fff !important; background: var(--red-deep) !important; letter-spacing: .02em; }

.trending-strip { background: var(--paper); border-bottom: 1px solid var(--line); }
.trending-strip > div { min-height: 39px; display: flex; align-items: center; gap: 22px; overflow: hidden; }
.trending-strip strong { flex: 0 0 auto; color: var(--red); font-size: 10px; font-weight: 900; letter-spacing: .04em; }
.trending-strip strong::before { content: "↗"; margin-right: 6px; }
.trending-strip > div > div { min-width: 0; display: flex; align-items: center; gap: 22px; overflow: hidden; }
.trending-strip a { min-width: 0; display: flex; align-items: center; gap: 7px; color: var(--ink-soft); font-size: 11px; white-space: nowrap; }
.trending-strip a b { color: var(--red); font-size: 9px; }
.trending-strip a:hover { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }

/* Drawer */
.mobile-drawer { position: fixed; z-index: 200; inset: 0; visibility: hidden; pointer-events: none; }
.mobile-drawer.is-open { visibility: visible; pointer-events: auto; }
.drawer-backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(35,12,18,.67); opacity: 0; transition: opacity .22s; }
.mobile-drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer-panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(88vw, 380px); padding: 18px; overflow-y: auto; color: var(--ink); background: var(--paper); box-shadow: 20px 0 60px rgba(30,7,12,.24); transform: translateX(-102%); transition: transform .24s ease; }
.mobile-drawer.is-open .drawer-panel { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 15px; border-bottom: 3px solid var(--red); }
.drawer-brand { color: var(--red); font-size: 24px; font-weight: 950; letter-spacing: -.06em; }
.drawer-head button { width: 38px; height: 38px; display: grid; place-items: center; padding: 0; background: var(--cream); border: 1px solid var(--line); cursor: pointer; font-size: 24px; }
.drawer-pages { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 14px; background: var(--line); border: 1px solid var(--line); }
.drawer-pages a { padding: 11px; background: #fff; font-size: 12px; font-weight: 800; }
.drawer-pages a:hover { color: var(--red); background: var(--cream-soft); }
.drawer-section-title { display: block; margin: 24px 0 8px; color: var(--muted); font-size: 10px; letter-spacing: .12em; }
.drawer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.drawer-grid a { min-width: 0; display: flex; align-items: center; gap: 8px; padding: 10px; background: var(--cream-soft); border: 1px solid var(--line); }
.drawer-grid b { min-width: 0; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }

/* Shared section language */
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 44px; margin-bottom: 28px; }
.section-heading h2 { margin: 6px 0 0; font-size: clamp(27px, 3vw, 39px); line-height: 1.2; letter-spacing: -.055em; }
.section-heading > p { max-width: 520px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.empty-state { padding: 48px 22px; color: var(--muted); background: rgba(255,255,255,.58); border: 1px dashed var(--line-dark); text-align: center; }
.empty-state strong { display: block; margin-bottom: 5px; color: var(--ink); font-size: 17px; }
.empty-state p { margin: 0; }

/* Home hero */
.home-hero { position: relative; overflow: hidden; background: var(--cream-soft); border-bottom: 1px solid var(--line); }
.home-hero::before { content: ""; position: absolute; top: -180px; left: -160px; width: 430px; height: 430px; border: 1px solid rgba(179,18,53,.12); border-radius: 50%; box-shadow: 0 0 0 42px rgba(179,18,53,.025), 0 0 0 84px rgba(179,18,53,.018); }
.hero-inner { position: relative; min-height: 590px; display: grid; grid-template-columns: minmax(0, .86fr) minmax(480px, 1.14fr); align-items: center; gap: clamp(36px, 5vw, 72px); padding-top: 58px; padding-bottom: 62px; }
.hero-copy { position: relative; z-index: 2; }
.hero-copy h1 { margin: 12px 0 22px; font-size: clamp(48px, 5.3vw, 72px); line-height: 1.08; letter-spacing: -.075em; }
.hero-copy h1 em { color: var(--red); font-style: normal; }
.hero-copy > p { max-width: 570px; margin-bottom: 25px; color: var(--muted); font-size: 15px; line-height: 1.9; }
.hero-search { max-width: 590px; height: 57px; display: flex; padding: 5px; background: #fff; border: 2px solid var(--ink); box-shadow: 7px 7px 0 var(--red); }
.hero-search:focus-within { border-color: var(--red); box-shadow: 7px 7px 0 var(--ink); }
.hero-search input { min-width: 0; flex: 1; padding: 0 15px; background: transparent; border: 0; outline: 0; }
.hero-search button { flex: 0 0 auto; padding: 0 21px; color: #fff; background: var(--red); border: 0; cursor: pointer; font-size: 12px; font-weight: 850; }
.hero-search button:hover { background: var(--red-dark); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 25px; }
.hero-actions a { padding-bottom: 3px; border-bottom: 1px solid currentColor; font-size: 12px; font-weight: 850; }
.hero-actions a:first-child { color: var(--red); }
.hero-actions a:hover { color: var(--red); }
.hero-art { position: relative; margin: 0; border: 1px solid var(--line-dark); background: #f8ecdf; box-shadow: var(--shadow); }
.hero-art::before { content: "ROUTE / 01"; position: absolute; z-index: 2; top: -13px; right: 18px; padding: 5px 10px; color: #fff; background: var(--red-deep); font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.hero-art img { width: 100%; height: 410px; display: block; object-fit: cover; object-position: 65% center; }
.hero-art figcaption { padding: 11px 14px; color: var(--muted); background: var(--paper); border-top: 1px solid var(--line); font-size: 10px; text-align: right; }

/* Shared compact link rows */
.compact-link { min-width: 0; list-style: none; border-top: 1px solid var(--line); }
.compact-link > a, .compact-link.is-pending { min-height: 48px; display: grid; grid-template-columns: 30px 28px minmax(0, 1fr) auto 18px; align-items: center; gap: 9px; padding: 7px 10px; }
.compact-link > a:hover { background: #fff5f1; }
.compact-rank { color: #9a8888; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; font-variant-numeric: tabular-nums; }
.compact-logo, .logo-fallback.compact-logo { width: 28px; height: 28px; display: grid; place-items: center; object-fit: contain; background: #fff; border: 1px solid var(--line); font-size: 11px; font-weight: 900; }
.compact-copy { min-width: 0; display: block; }
.compact-copy b, .compact-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compact-copy b { color: var(--ink); font-size: 11px; }
.compact-copy small { color: var(--muted); font-size: 9px; }
.compact-link em { padding: 2px 5px; color: var(--red); background: #ffe2dd; border: 1px solid #fac1b8; font-size: 8px; font-style: normal; font-weight: 900; }
.compact-link i { color: var(--red); font-size: 11px; font-style: normal; }
.compact-link.is-pending { grid-template-columns: 30px 28px minmax(0,1fr); color: #9c8e8e; background: rgba(245,237,225,.45); }
.compact-link.is-pending b, .compact-link.is-pending small { display: block; }
.compact-link.is-pending b { font-size: 10px; font-weight: 700; }
.compact-link.is-pending small { font-size: 8px; }
.pending-dot { width: 9px; height: 9px; justify-self: center; border: 1px solid #b9a9a5; border-radius: 50%; }

/* Partner section */
.partner-zone { position: relative; padding: clamp(62px, 7vw, 92px) 0; color: #fff; background: var(--red-deep); }
.partner-zone::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(135deg, transparent 0 22px, rgba(255,255,255,.018) 22px 23px); }
.partner-zone > .site-container { position: relative; }
.partner-heading .eyebrow { color: #ff9d94; }
.partner-heading h2 { color: #fff; }
.partner-heading > p { color: #dec3c0; }
.partner-heading > p b { display: inline-block; margin-right: 6px; padding: 2px 7px; color: var(--red-deep); background: #ffbeb1; font-size: 9px; }
.partner-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.partner-card { min-width: 0; color: var(--ink); background: var(--paper); border-top: 5px solid var(--coral); box-shadow: 0 15px 35px rgba(24,3,8,.2); }
.partner-card > header { min-height: 72px; display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 13px 14px; }
.partner-icon { width: 40px; height: 40px; display: grid; place-items: center; background: #fde7df; border-radius: 50%; font-size: 20px; }
.partner-card h3 { margin: 0; font-size: 17px; letter-spacing: -.035em; }
.partner-card header p { margin: 1px 0 0; color: var(--muted); font-size: 9px; }
.partner-card header > a { color: var(--red); font-size: 9px; font-weight: 900; text-decoration: underline; text-underline-offset: 3px; }
.partner-card ol { margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.partner-card .compact-link > a:hover { background: #fff0eb; }

/* Main directory board */
.directory-board { padding: clamp(66px, 8vw, 104px) 0; background: var(--cream); border-bottom: 1px solid var(--line-dark); }
.directory-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.directory-card { min-width: 0; background: var(--paper); border: 1px solid var(--line-dark); box-shadow: 8px 8px 0 rgba(117,81,72,.08); }
.directory-card > header { border-bottom: 3px solid var(--ink); }
.directory-card > header > a { min-height: 77px; display: grid; grid-template-columns: 46px minmax(0,1fr) 30px; align-items: center; gap: 13px; padding: 13px 16px; }
.directory-card > header > a > span { width: 43px; height: 43px; display: grid; place-items: center; color: var(--red); background: var(--cream); border: 1px solid var(--line); font-size: 21px; }
.directory-card h3 { margin: 0; font-size: 19px; letter-spacing: -.04em; }
.directory-card header p { margin: 2px 0 0; color: var(--muted); font-size: 10px; }
.directory-card header i { color: var(--red); font-size: 20px; font-style: normal; transition: transform .18s; }
.directory-card header a:hover i { transform: translateX(4px); }
.directory-card ol { margin: 0; padding: 0; }
.directory-card .compact-link:nth-child(even) { background: rgba(245,237,225,.28); }

/* Home editorial content */
.home-principles { padding: clamp(68px, 8vw, 108px) 0; color: #fff; background: #24191b; }
.principles-wrap { display: grid; grid-template-columns: minmax(260px,.72fr) minmax(0,1.28fr); gap: clamp(50px, 8vw, 108px); align-items: center; }
.principles-wrap > div:first-child .eyebrow { color: #f17d78; }
.principles-wrap > div:first-child h2 { margin: 10px 0 18px; font-size: clamp(32px, 4vw, 48px); line-height: 1.18; letter-spacing: -.06em; }
.principles-wrap > div:first-child p { color: #cbbdbd; font-size: 13px; line-height: 1.9; }
.principles-wrap > div:first-child > a { display: inline-block; margin-top: 9px; color: #ffaaa0; border-bottom: 1px solid currentColor; font-size: 11px; font-weight: 850; }
.principles-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border-top: 1px solid #6c5355; border-bottom: 1px solid #6c5355; }
.principles-grid article { min-height: 225px; padding: 27px 21px; border-right: 1px solid #6c5355; }
.principles-grid article:last-child { border-right: 0; }
.principles-grid b { color: #ef7771; font-size: 11px; letter-spacing: .12em; }
.principles-grid h3 { margin: 42px 0 10px; color: #fff; font-size: 17px; }
.principles-grid p { margin: 0; color: #bcaeae; font-size: 11px; line-height: 1.8; }

.home-guide-strip { padding: 37px 0; color: var(--red-deep); background: #f4bcb0; border-top: 1px solid #d58d83; border-bottom: 1px solid #d58d83; }
.home-guide-strip > div { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.home-guide-strip > div > div { display: grid; grid-template-columns: auto auto; align-items: center; column-gap: 24px; }
.home-guide-strip span { grid-row: 1 / 3; padding: 8px 10px; color: #fff; background: var(--red); font-size: 9px; font-weight: 900; letter-spacing: .09em; }
.home-guide-strip h2 { margin: 0; font-size: 23px; letter-spacing: -.04em; }
.home-guide-strip p { margin: 3px 0 0; font-size: 11px; }
.home-guide-strip a { flex: 0 0 auto; padding: 12px 17px; color: #fff; background: var(--red-deep); font-size: 11px; font-weight: 850; }
.home-guide-strip a:hover { background: var(--red); }

.home-faq { padding: clamp(68px, 8vw, 102px) 0; background: var(--paper); }
.faq-list { border-top: 3px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--line-dark); }
.faq-list summary { min-height: 61px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 4px; cursor: pointer; list-style: none; font-size: 14px; font-weight: 850; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { width: 27px; height: 27px; flex: 0 0 auto; display: grid; place-items: center; color: var(--red); border: 1px solid var(--line-dark); border-radius: 50%; font-size: 18px; transition: transform .18s; }
.faq-list details[open] summary { color: var(--red); }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details > p { max-width: 900px; margin: 0; padding: 0 45px 19px 4px; color: var(--muted); font-size: 13px; line-height: 1.85; }

/* Category pages */
.category-page { background: var(--cream-soft); }
.category-hero { color: #fff; background: var(--red-deep); border-bottom: 8px solid var(--coral); }
.category-hero > div { min-height: 300px; display: flex; flex-direction: column; justify-content: center; padding-top: 35px; padding-bottom: 47px; }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 10px; }
.breadcrumb a { text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb a:hover { color: var(--red); }
.category-hero .breadcrumb { color: #d5bab7; }
.category-hero .breadcrumb a:hover { color: #fff; }
.category-title { display: grid; grid-template-columns: 82px minmax(0,1fr); gap: 24px; align-items: center; margin-top: 36px; }
.category-big-icon { width: 78px; height: 78px; display: grid; place-items: center; color: var(--red-deep); background: #ffc8bc; border-radius: 50%; font-size: 35px; }
.category-title .eyebrow { color: #ff9f96; }
.category-title h1 { margin: 7px 0 8px; font-size: clamp(36px, 5vw, 55px); line-height: 1.14; letter-spacing: -.065em; }
.category-title p { max-width: 760px; margin: 0; color: #e3cdca; font-size: 13px; line-height: 1.8; }
.category-layout { display: grid; grid-template-columns: minmax(0,1fr) 310px; gap: 27px; align-items: start; padding-top: 45px; padding-bottom: 80px; }
.rank-list { min-width: 0; background: var(--paper); border: 1px solid var(--line-dark); box-shadow: var(--shadow); }
.rank-list-head { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; border-bottom: 3px solid var(--ink); }
.rank-list-head h2 { margin: 0; font-size: 23px; letter-spacing: -.045em; }
.rank-list-head p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.mirror-label { flex: 0 0 auto; padding: 5px 8px; color: var(--red); background: #ffe9e2; border: 1px solid #efc1b7; font-size: 9px; font-weight: 900; }
.rank-row { min-width: 0; min-height: 89px; display: grid; grid-template-columns: 60px minmax(0,1fr) 185px; align-items: center; border-bottom: 1px solid var(--line); transition: background .16s; }
.rank-row:last-child { border-bottom: 0; }
.rank-row:hover { background: #fff7f2; }
.rank-number { align-self: stretch; display: grid; place-items: center; color: var(--red); background: rgba(245,237,225,.62); border-right: 1px solid var(--line); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.rank-main { min-width: 0; display: grid; grid-template-columns: 52px minmax(0,1fr); align-items: center; gap: 14px; padding: 14px 18px; }
.rank-logo, .logo-fallback.rank-logo { width: 52px; height: 52px; display: grid; place-items: center; object-fit: contain; background: #fff; border: 1px solid var(--line); font-size: 16px; font-weight: 900; }
.rank-main > span { min-width: 0; }
.rank-main strong, .rank-main small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-main strong { font-size: 15px; letter-spacing: -.02em; }
.rank-main small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.rank-main:hover strong { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.rank-meta { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 0 18px 0 8px; color: var(--muted); font-size: 9px; }
.rank-meta > a { flex: 0 0 auto; color: var(--red); font-size: 10px; font-weight: 900; }
.rank-meta > a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ad-badge { padding: 3px 6px; color: var(--red); background: #ffe2da; border: 1px solid #efbeb1; font-weight: 900; }
.rank-row.is-pending { color: #a09291; background: rgba(245,237,225,.35); }
.rank-row.is-pending:hover { background: rgba(245,237,225,.35); }
.rank-row.is-pending .rank-number { color: #a99a98; }
.rank-row.is-pending .rank-logo { color: #ab9e9d; background: var(--cream-soft); }
.rank-row.is-pending .rank-main strong { color: #8d8080; }
.category-aside { position: sticky; top: 18px; display: grid; gap: 14px; }
.category-aside > div { padding: 25px 23px; background: var(--paper); border: 1px solid var(--line-dark); }
.category-aside > div:first-child { border-top: 5px solid var(--red); }
.category-aside h2 { margin: 7px 0 17px; font-size: 21px; letter-spacing: -.04em; }
.category-aside ul { margin: 0; padding: 0; list-style: none; }
.category-aside li { position: relative; padding: 11px 0 11px 18px; color: var(--muted); border-top: 1px solid var(--line); font-size: 11px; }
.category-aside li::before { content: "•"; position: absolute; left: 3px; color: var(--red); font-weight: 900; }
.category-aside > div:first-child > a { display: inline-block; margin-top: 18px; color: var(--red); border-bottom: 1px solid currentColor; font-size: 10px; font-weight: 900; }
.category-disclaimer { color: #f7e9e6; background: var(--red-deep) !important; border-color: var(--red-deep) !important; }
.category-disclaimer strong { color: #ffaaa0; font-size: 11px; }
.category-disclaimer p { margin: 7px 0 0; color: #d6bdbb; font-size: 10px; line-height: 1.8; }

/* Search */
.search-page { min-height: 62vh; padding: 54px 0 80px; background: var(--cream); }
.search-heading { padding: clamp(30px,5vw,55px); color: #fff; background: var(--red-deep); border-bottom: 7px solid var(--coral); }
.search-heading .eyebrow { color: #ffaaa0; }
.search-heading h1 { margin: 8px 0 23px; font-size: clamp(36px,5vw,55px); letter-spacing: -.065em; }
.search-large { max-width: 740px; height: 56px; display: flex; padding: 5px; background: #fff; }
.search-large input { min-width: 0; flex: 1; padding: 0 14px; border: 0; outline: 0; }
.search-large button { flex: 0 0 90px; color: #fff; background: var(--red); border: 0; cursor: pointer; font-size: 12px; font-weight: 900; }
.search-heading > p { margin: 19px 0 0; color: #dcc2bf; font-size: 12px; }
.search-heading > p b { color: #fff; }
.search-page > .site-container > .empty-state { margin-top: 20px; background: var(--paper); }
.search-results { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; margin-top: 24px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.search-results article { min-width: 0; background: var(--paper); }
.search-results article > a { min-height: 98px; display: grid; grid-template-columns: 52px minmax(0,1fr) 24px; align-items: center; gap: 14px; padding: 17px; }
.search-results article > a:hover { background: #fff5ef; }
.search-logo, .logo-fallback.search-logo { width: 52px; height: 52px; display: grid; place-items: center; object-fit: contain; background: #fff; border: 1px solid var(--line); font-size: 15px; font-weight: 900; }
.search-results article span { min-width: 0; }
.search-results small, .search-results strong, .search-results p { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-results small { color: var(--red); font-size: 9px; font-weight: 850; }
.search-results strong { margin-top: 2px; font-size: 14px; }
.search-results p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.search-results i { color: var(--red); font-style: normal; font-weight: 900; }

/* Editorial article pages */
.prose-shell { padding: 42px 20px 82px; background: var(--cream-soft); }
.prose-shell > article { width: min(100%, 1040px); margin: 0 auto; overflow: hidden; background: var(--paper); border: 1px solid var(--line-dark); box-shadow: var(--shadow); }
.article-hero { display: grid; grid-template-columns: minmax(0,1fr) 43%; column-gap: 45px; padding: clamp(36px,6vw,68px); background: #fffaf2; border-bottom: 1px solid var(--line); }
.article-hero .breadcrumb { grid-column: 1 / -1; margin-bottom: 40px; }
.article-hero > .eyebrow, .article-hero > h1, .article-hero > p { grid-column: 1; }
.article-hero > h1 { margin: 10px 0 19px; font-size: clamp(38px,5vw,58px); line-height: 1.13; letter-spacing: -.07em; }
.article-hero > p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.9; }
.article-hero > .article-date { margin-top: 16px; color: var(--red); font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.article-hero > img { grid-column: 2; grid-row: 2 / 5; width: 100%; height: 100%; min-height: 310px; display: block; object-fit: cover; object-position: 66% center; border: 1px solid var(--line-dark); }
.article-hero-compact { display: block; padding-right: clamp(36px,10vw,125px); background: linear-gradient(120deg, #fffaf2, #f4e4d9); }
.article-hero-compact .breadcrumb { margin-bottom: 39px; }
.article-hero-compact > p { max-width: 720px; }
.article-hero-dark { display: block; color: #fff; background: var(--red-deep); border-bottom: 7px solid var(--coral); }
.article-hero-dark .breadcrumb { color: #d6bbb9; }
.article-hero-dark .eyebrow { color: #ffaaa0; }
.article-hero-dark > p { max-width: 680px; color: #dec7c4; }
.article-hero-dark > .article-date { color: #ffaaa0; }
.content-nav { display: grid; grid-template-columns: repeat(4,1fr); background: var(--cream); border-bottom: 1px solid var(--line-dark); }
.content-nav a { padding: 15px; border-right: 1px solid var(--line-dark); font-size: 11px; font-weight: 850; text-align: center; }
.content-nav a:last-child { border-right: 0; }
.content-nav a:hover { color: #fff; background: var(--red); }
.prose-shell > article > section, .prose-shell > article > .article-note { padding: clamp(38px,6vw,66px); }
.prose-shell > article > section + section { border-top: 1px solid var(--line); }
.prose-shell section > h2, .policy-content h2 { margin: 8px 0 18px; font-size: clamp(25px,3.2vw,36px); line-height: 1.28; letter-spacing: -.05em; }
.prose-shell section > p, .policy-content p { color: var(--muted); line-height: 1.95; }
.prose-shell section > p:last-child, .policy-content p:last-child { margin-bottom: 0; }
.guide-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; margin-top: 27px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.guide-steps article { min-height: 185px; padding: 24px; background: var(--cream-soft); }
.guide-steps b { width: 34px; height: 34px; display: grid; place-items: center; color: #fff; background: var(--red); border-radius: 50%; font-size: 11px; }
.guide-steps h3 { margin: 30px 0 8px; font-size: 17px; }
.guide-steps p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.8; }
.article-note { margin: 30px 0 0; padding: 20px 22px !important; color: #f9e9e6; background: var(--red-deep); border-left: 7px solid var(--coral); }
.article-note strong { color: #ffaaa0; font-size: 12px; }
.article-note p { margin: 6px 0 0; color: #dbc3c0 !important; font-size: 11px; line-height: 1.85 !important; }
.guide-step-list { border-top: 3px solid var(--ink); }
.guide-step-list article { display: grid; grid-template-columns: 65px minmax(0,1fr); gap: 23px; padding: 25px 5px; border-bottom: 1px solid var(--line-dark); }
.guide-step-list article > b { color: var(--red); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 16px; }
.guide-step-list h2 { margin: 0 0 6px !important; font-size: 19px !important; }
.guide-step-list p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.85; }
.safety-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 27px; }
.safety-grid article { min-height: 145px; padding: 20px; background: var(--cream-soft); border: 1px solid var(--line-dark); }
.safety-grid b { color: var(--red); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.safety-grid p { margin: 31px 0 0; color: var(--ink-soft); font-size: 12px; font-weight: 750; line-height: 1.7; }
.response-section { display: grid; grid-template-columns: .72fr 1.28fr; gap: 50px; color: #fff; background: #24191b; }
.response-section .eyebrow { color: #f4867e; }
.response-section h2 { color: #fff; }
.response-section p { color: #c9baba !important; font-size: 12px; }
.updates-list { padding-top: 24px !important; }
.updates-list > article { display: grid; grid-template-columns: 125px minmax(0,1fr); gap: 30px; padding: 25px 5px; border-bottom: 1px solid var(--line-dark); }
.updates-list time { color: var(--red); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; font-weight: 800; }
.updates-list article span { display: inline-block; padding: 2px 6px; color: var(--red); background: #ffe8e0; font-size: 8px; font-weight: 900; }
.updates-list h2 { margin: 7px 0 5px !important; font-size: 18px !important; }
.updates-list p { margin: 0; color: var(--muted); font-size: 11px; }
.updates-list small { display: block; margin-top: 6px; color: #9a8988; font-size: 9px; }
.policy-content > h2:first-of-type { margin-top: 0; }

/* Tables always stay inside their content area */
.table-wrap, .about-table-wrap { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; -webkit-overflow-scrolling: touch; }
.prose-shell table { width: 100%; min-width: 0; display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; overscroll-behavior-inline: contain; -webkit-overflow-scrolling: touch; }
.prose-shell th, .prose-shell td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; white-space: nowrap; }
.prose-shell th { background: var(--cream); }

/* Not found */
.not-found { min-height: 65vh; display: grid; place-items: center; padding: 50px 20px; background: var(--cream); text-align: center; }
.not-found > div { width: min(100%, 620px); padding: 55px 30px; background: var(--paper); border: 1px solid var(--line-dark); box-shadow: 10px 10px 0 rgba(179,18,53,.1); }
.not-found span { color: var(--red); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 58px; font-weight: 900; }
.not-found h1 { margin: 5px 0 9px; font-size: 31px; letter-spacing: -.05em; }
.not-found p { color: var(--muted); }
.not-found a { display: inline-flex; min-height: 43px; align-items: center; padding: 0 18px; color: #fff; background: var(--red); font-size: 12px; font-weight: 850; }

/* Footer */
.site-footer { color: #d5c0bd; background: #1e1316; border-top: 7px solid var(--red); }
.footer-top { display: grid; grid-template-columns: minmax(300px,1fr) 170px 200px; gap: 55px; padding-top: 49px; padding-bottom: 43px; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: 24px; letter-spacing: -.05em; }
.footer-brand img { width: 43px; height: 43px; object-fit: contain; }
.footer-identity p { margin: 12px 0 0; color: #aa9695; font-size: 11px; }
.footer-top nav { display: flex; flex-direction: column; gap: 8px; font-size: 10px; }
.footer-top nav strong { margin-bottom: 6px; color: #ff8f88; font-size: 10px; letter-spacing: .06em; }
.footer-top nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-counter { display: flex; min-height: 43px; align-items: flex-start; justify-content: center; padding-bottom: 18px; }
#histats_counter { min-height: 25px; line-height: 0; }
#histats_counter img { display: block; max-width: 100%; height: auto; }
.footer-bottom { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 30px; border-top: 1px solid #4a383b; font-size: 9px; }
.footer-bottom p { margin: 0; color: #927f7f; }
.scroll-button { position: fixed; z-index: 60; right: 18px; width: 39px; height: 39px; display: grid; place-items: center; color: #fff; background: rgba(116,16,39,.94); border: 1px solid rgba(255,255,255,.25); box-shadow: 0 8px 22px rgba(57,8,19,.2); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(7px); transition: opacity .18s, transform .18s, visibility .18s; }
.scroll-button.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-button:hover { background: var(--red-bright); }
.scroll-top { bottom: 64px; }
.scroll-bottom { bottom: 18px; }

@media (max-width: 1120px) {
  .header-main { grid-template-columns: auto minmax(280px,1fr); gap: 25px; padding-top: 13px; }
  .primary-nav { grid-column: 1 / -1; min-height: 42px; justify-content: center; border-top: 1px solid var(--line); }
  .primary-nav a { padding: 8px 0; }
  .partner-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero-inner { grid-template-columns: minmax(0,.9fr) minmax(400px,1.1fr); }
  .category-layout { grid-template-columns: minmax(0,1fr) 280px; }
  .rank-row { grid-template-columns: 55px minmax(0,1fr) 165px; }
}

@media (max-width: 860px) {
  .hero-inner { min-height: auto; grid-template-columns: 1fr; gap: 48px; padding-top: 55px; }
  .hero-copy { max-width: 700px; }
  .hero-art { width: min(100%, 720px); justify-self: center; }
  .partner-grid, .directory-grid { grid-template-columns: 1fr; }
  .principles-wrap { grid-template-columns: 1fr; gap: 45px; }
  .category-layout { grid-template-columns: 1fr; }
  .category-aside { position: static; grid-template-columns: repeat(2,1fr); }
  .article-hero { grid-template-columns: 1fr; }
  .article-hero > img { grid-column: 1; grid-row: auto; height: 330px; min-height: 0; margin-top: 30px; }
  .article-hero-compact, .article-hero-dark { display: block; }
  .search-results { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px 22px; }
  .footer-identity { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  body { font-size: 14px; }
  .site-container { width: min(calc(100% - 24px), var(--container)); }
  .signal-inner { min-height: 31px; gap: 12px; }
  .signal-inner p { display: none; }
  .signal-inner time { margin-left: 0; }
  .header-main { min-height: 66px; grid-template-columns: 42px 1fr 42px; gap: 8px; padding-top: 0; }
  .header-main > .site-search, .primary-nav { display: none; }
  .mobile-menu-button, .mobile-search-button { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; padding: 0; background: transparent; border: 0; cursor: pointer; }
  .mobile-menu-button { flex-direction: column; gap: 4px; }
  .mobile-menu-button span { width: 20px; height: 2px; display: block; background: var(--ink); }
  .mobile-search-button { font-size: 24px; }
  .brand-logo { min-width: 0; justify-self: center; gap: 7px; }
  .brand-logo img { width: 38px; height: 38px; }
  .brand-logo strong { font-size: 21px; }
  .brand-logo small { margin-top: 4px; font-size: 6px; }
  .mobile-search-panel { padding: 0 12px 12px; background: var(--paper); }
  .mobile-search-panel.is-open { display: block; }
  .mobile-search-panel .site-search { width: 100%; }
  .mobile-search-panel .site-search > label { padding-top: 2px; }
  .category-nav-scroll { min-height: 43px; }
  .category-nav-scroll > a { padding: 0 12px; font-size: 10px; }
  .trending-strip > div { min-height: 38px; gap: 13px; }
  .trending-strip > div > div { gap: 18px; overflow-x: auto; scrollbar-width: none; }
  .trending-strip > div > div::-webkit-scrollbar { display: none; }
  .trending-strip strong { font-size: 9px; }
  .trending-strip a { font-size: 10px; }

  .section-heading { display: block; margin-bottom: 23px; }
  .section-heading h2 { font-size: 28px; }
  .section-heading > p { margin-top: 12px; }
  .hero-inner { gap: 38px; padding-top: 47px; padding-bottom: 49px; }
  .hero-copy h1 { font-size: clamp(40px,12vw,54px); }
  .hero-copy > p { font-size: 13px; }
  .hero-search { height: 53px; box-shadow: 5px 5px 0 var(--red); }
  .hero-search input { width: 100%; padding: 0 10px; font-size: 12px; }
  .hero-search button { padding: 0 13px; font-size: 10px; }
  .hero-actions { gap: 15px; }
  .hero-art img { height: 260px; }
  .hero-art figcaption { font-size: 9px; text-align: left; }
  .partner-zone, .directory-board { padding: 57px 0; }
  .partner-grid, .directory-grid { gap: 15px; }
  .partner-card > header { padding-inline: 12px; }
  .compact-link > a, .compact-link.is-pending { min-height: 47px; grid-template-columns: 27px 27px minmax(0,1fr) auto 16px; gap: 7px; padding-inline: 9px; }
  .compact-link.is-pending { grid-template-columns: 27px 27px minmax(0,1fr); }
  .compact-copy small { max-width: 210px; }
  .directory-card > header > a { padding-inline: 13px; }
  .principles-wrap > div:first-child h2 { font-size: 35px; }
  .principles-grid { grid-template-columns: 1fr; }
  .principles-grid article { min-height: 0; padding: 21px; border-right: 0; border-bottom: 1px solid #6c5355; }
  .principles-grid article:last-child { border-bottom: 0; }
  .principles-grid h3 { margin-top: 20px; }
  .home-guide-strip > div { display: block; }
  .home-guide-strip > div > div { display: block; }
  .home-guide-strip span { display: inline-block; margin-bottom: 12px; }
  .home-guide-strip h2 { font-size: 22px; }
  .home-guide-strip a { display: inline-flex; margin-top: 16px; }
  .faq-list summary { font-size: 12px; }
  .faq-list details > p { padding-right: 35px; font-size: 11px; }

  .category-hero > div { min-height: 275px; padding-top: 29px; padding-bottom: 39px; }
  .category-title { grid-template-columns: 57px minmax(0,1fr); gap: 16px; margin-top: 30px; }
  .category-big-icon { width: 55px; height: 55px; font-size: 25px; }
  .category-title h1 { font-size: 35px; }
  .category-title p { font-size: 11px; }
  .category-layout { gap: 18px; padding-top: 24px; padding-bottom: 55px; }
  .rank-list-head { min-height: 82px; align-items: flex-start; padding: 17px 15px; }
  .rank-list-head h2 { font-size: 19px; }
  .rank-row { min-height: 90px; grid-template-columns: 43px minmax(0,1fr); }
  .rank-number { grid-row: 1 / 3; }
  .rank-main { grid-template-columns: 44px minmax(0,1fr); gap: 10px; padding: 12px; }
  .rank-logo, .logo-fallback.rank-logo { width: 44px; height: 44px; }
  .rank-main strong { font-size: 13px; }
  .rank-main small { font-size: 9px; }
  .rank-meta { grid-column: 2; justify-content: flex-end; padding: 0 12px 11px; }
  .rank-row.is-pending .rank-main { align-self: end; }
  .rank-row.is-pending .rank-meta { justify-content: flex-start; }
  .category-aside { grid-template-columns: 1fr; }

  .search-page { padding-top: 24px; }
  .search-heading { padding: 29px 19px; }
  .search-heading h1 { font-size: 39px; }
  .search-large { height: 51px; }
  .search-large button { flex-basis: 70px; }
  .search-results article > a { min-height: 90px; grid-template-columns: 46px minmax(0,1fr) 18px; gap: 11px; padding: 13px; }
  .search-logo, .logo-fallback.search-logo { width: 46px; height: 46px; }

  .prose-shell { padding: 18px 12px 55px; }
  .article-hero { display: block; padding: 29px 20px 34px; }
  .article-hero .breadcrumb { margin-bottom: 31px; }
  .article-hero > h1 { font-size: 37px; }
  .article-hero > p { font-size: 12px; }
  .article-hero > img { height: 225px; margin-top: 25px; }
  .article-hero-compact, .article-hero-dark { padding-right: 20px; }
  .content-nav { grid-template-columns: repeat(2,1fr); }
  .content-nav a:nth-child(2) { border-right: 0; }
  .content-nav a:nth-child(-n+2) { border-bottom: 1px solid var(--line-dark); }
  .prose-shell > article > section, .prose-shell > article > .article-note { padding: 36px 20px; }
  .prose-shell section > h2, .policy-content h2 { font-size: 26px; }
  .prose-shell section > p, .policy-content p { font-size: 12px; }
  .guide-steps { grid-template-columns: 1fr; }
  .guide-steps article { min-height: 0; }
  .guide-steps h3 { margin-top: 20px; }
  .guide-step-list article { grid-template-columns: 38px minmax(0,1fr); gap: 12px; padding: 21px 0; }
  .safety-grid { grid-template-columns: 1fr; }
  .safety-grid article { min-height: 115px; }
  .safety-grid p { margin-top: 20px; }
  .response-section { grid-template-columns: 1fr; gap: 15px; }
  .updates-list > article { grid-template-columns: 1fr; gap: 8px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px 22px; padding-top: 39px; }
  .footer-identity { grid-column: 1 / -1; }
  .footer-bottom { display: block; padding-top: 16px; padding-bottom: 19px; }
  .footer-bottom p { margin-top: 5px; }
  .scroll-button { right: 8px; width: 34px; height: 34px; }
  .scroll-bottom { display: none; }
  .scroll-top { bottom: 12px; }
}

@media (max-width: 410px) {
  .drawer-grid { grid-template-columns: 1fr; }
  .signal-inner > a { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hero-copy h1 { font-size: 40px; }
  .hero-art img { height: 225px; }
  .compact-copy small { max-width: 165px; }
  .partner-card header > a { font-size: 8px; }
  .mirror-label { max-width: 95px; text-align: center; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-identity { grid-column: auto; }
}

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