:root {
  color-scheme: light;
  --red: #be1e2e;
  --red-dark: #8f1020;
  --black: #141414;
  --ink: #202020;
  --gray-900: #2b2b2b;
  --gray-700: #666666;
  --gray-500: #9a9a9a;
  --gray-300: #d9d9d9;
  --gray-200: #e5e5e5;
  --gray-100: #f3f3f3;
  --white: #ffffff;
  --green: #69b53d;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --motion-fast: 420ms;
  --motion-med: 700ms;
  --motion-slow: 1000ms;
  font-family: "Segoe UI", "Arial Narrow", Arial, Helvetica, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(190, 30, 46, 0.06), transparent 55%),
    var(--white);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

p,
h1,
h2,
h3 {
  margin-top: 0;
}

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

.club-strip {
  height: 10px;
  background: var(--red);
}

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--gray-200);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

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

.brand-crest {
  flex-shrink: 0;
  display: block;
  width: 44px;
  height: auto;
  object-fit: contain;
}

.buy-ticket-logo {
  display: block;
  width: 28px;
  height: auto;
  object-fit: contain;
}

.buy-ticket-lg .buy-ticket-logo {
  width: 30px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-copy strong {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.brand-copy small {
  overflow: hidden;
  color: var(--gray-700);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.header-link {
  color: var(--gray-700);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.header-link:hover {
  color: var(--red);
}

.buy-ticket {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  color: var(--white);
  background: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: lowercase;
  transition:
    background var(--motion-fast) var(--ease-out-expo),
    transform var(--motion-fast) var(--ease-spring),
    box-shadow var(--motion-fast) var(--ease-out-expo);
}

.buy-ticket:hover {
  background: var(--red-dark);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 24px rgba(190, 30, 46, 0.28);
}

.buy-ticket:active {
  transform: translateY(0) scale(0.98);
}

.buy-ticket img {
  display: block;
}

.buy-ticket-lg {
  padding: 12px 20px;
  font-size: 14px;
}

.rally-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(365px, 50vw, 540px);
  padding: 30px 0 34px;
  border-bottom: 1px solid var(--gray-200);
  color: var(--white);
  background:
    linear-gradient(
      180deg,
      rgba(8, 8, 8, 0.28) 0%,
      rgba(8, 8, 8, 0.18) 42%,
      rgba(8, 8, 8, 0.42) 100%
    ),
    url("/cska.webp") center / cover no-repeat;
}

.rally-band::before {
  display: none;
}

.hero-stack {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.rally-inner {
  position: relative;
  z-index: 1;
}

.hero-cta {
  position: relative;
  z-index: 1;
  align-self: center;
}

.rally-text {
  margin: 0;
  max-width: 720px;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

.data-hero {
  position: relative;
  z-index: 1;
  padding: 0;
}

.data-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.sold-hero,
.sparkline-panel {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  color: var(--ink);
}

.sold-hero {
  padding: 28px 30px;
  border-top: 4px solid var(--red);
}

.history-empty {
  border-color: rgba(255, 255, 255, 0.45);
  border-style: dashed;
  background: rgba(255, 255, 255, 0.92);
  color: var(--gray-700);
  padding: 48px 28px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.history-warning {
  margin: 14px 0 0;
  color: #ffd0d5;
  font-size: 12px;
  font-weight: 700;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.sold-hero-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 8px;
}

.sold-number-block strong {
  display: block;
  color: var(--red);
  font-size: clamp(52px, 8vw, 88px);
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.results-as-of {
  display: block;
  margin-top: 10px;
  color: var(--gray-500);
  font-size: 12px;
  font-weight: 500;
}

.sold-number-block small {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
}

.sold-number-block small.up {
  color: var(--red);
}

.sold-number-block small.down {
  color: #438322;
}

.sold-number-block small.flat,
.sold-number-block small.new {
  color: var(--gray-700);
}

.sold-ring {
  flex-shrink: 0;
  width: 160px;
  height: 160px;
}

.ring-svg {
  display: block;
  width: 100%;
  height: auto;
}

.ring-track {
  stroke: var(--gray-200);
}

.ring-fill {
  stroke: var(--red);
  stroke-linecap: butt;
  transition: stroke-dashoffset var(--motion-slow) var(--ease-out-expo);
}

.ring-label {
  fill: var(--black);
  font-size: 22px;
  font-weight: 900;
}

.sparkline-panel {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  height: 100%;
  padding: 22px 22px 12px;
}

.history-chart.sparkline {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  min-height: 180px;
  margin-top: 8px;
}

.history-chart svg {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 180px;
  flex: 1 1 auto;
}

.chart-tooltip {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 7.5rem;
  padding: 8px 10px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  box-shadow: 0 8px 20px rgba(20, 20, 20, 0.12);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.3;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 12px));
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 160ms var(--ease-out-expo),
    visibility 160ms var(--ease-out-expo);
}

.chart-tooltip.is-visible {
  opacity: 1;
  visibility: visible;
}

.chart-tooltip strong {
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
}

.chart-tooltip span {
  color: var(--gray-700);
  font-weight: 600;
}

.chart-point-hit {
  cursor: pointer;
  fill: transparent;
  stroke: none;
}

.chart-point.is-active {
  fill: var(--red);
}

.chart-grid-line {
  stroke: var(--gray-200);
  stroke-width: 1;
}

.chart-axis-label,
.chart-date-label {
  fill: var(--gray-700);
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
}

.chart-area {
  fill: rgba(190, 30, 46, 0.12);
}

.chart-line {
  fill: none;
  stroke: var(--red);
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 3;
}

.chart-point {
  fill: var(--white);
  stroke: var(--red);
  stroke-width: 3;
}

.sector-arcs-section {
  padding: 12px 0 48px;
}

.sector-arcs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}

.sector-arc-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 18px 12px 16px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  text-align: center;
  transition:
    transform var(--motion-fast) var(--ease-spring),
    box-shadow var(--motion-fast) var(--ease-out-expo),
    border-color var(--motion-fast) var(--ease-out-expo);
}

.sector-arc-card:hover {
  transform: translateY(-4px);
  border-color: rgba(190, 30, 46, 0.35);
  box-shadow: 0 14px 28px rgba(20, 20, 20, 0.08);
}

.arc-svg {
  width: 120px;
  height: 78px;
}

.arc-track {
  stroke: var(--gray-200);
}

.arc-fill {
  stroke: var(--red);
  stroke-linecap: butt;
  transition: stroke-dasharray var(--motion-slow) var(--ease-out-expo);
}

.arc-percent {
  color: var(--black);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
}

.arc-name {
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.arc-detail {
  color: var(--gray-500);
  font-size: 11px;
  font-weight: 600;
}

.sales-forecast-section {
  padding: 48px 0;
  border-block: 1px solid var(--gray-200);
  background: var(--gray-100);
}

.sales-forecast-section[hidden] {
  display: none;
}

.forecast-heading {
  align-items: center;
}

.forecast-legend {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--gray-700);
  font-size: 12px;
  font-weight: 700;
}

.forecast-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.forecast-legend i {
  display: inline-block;
  width: 16px;
  height: 10px;
  border-radius: 1px;
}

.legend-actual {
  background: var(--red);
}

.legend-projected {
  border: 1px dashed var(--red);
  background: rgba(190, 30, 46, 0.18);
}

.sales-forecast-card {
  padding: 24px 26px 16px;
  border: 1px solid var(--gray-200);
  border-top: 4px solid var(--red);
  background: var(--white);
}

.sold-out-estimate {
  display: block;
  color: var(--black);
  font-size: clamp(16px, 2vw, 21px);
  font-weight: 800;
  line-height: 1.35;
}

.daily-sales-chart {
  overflow-x: auto;
  margin-top: 10px;
}

.daily-sales-chart svg {
  display: block;
  width: 100%;
  min-width: 700px;
  height: auto;
}

.daily-chart-grid-line {
  stroke: var(--gray-200);
  stroke-width: 1;
}

.daily-chart-zero-line {
  stroke: var(--gray-500);
  stroke-width: 1.5;
}

.daily-sales-bar {
  transition:
    opacity var(--motion-fast) var(--ease-out-expo),
    transform var(--motion-fast) var(--ease-spring);
  transform-box: fill-box;
  transform-origin: bottom;
}

.daily-sales-bar.actual {
  fill: var(--red);
}

.daily-sales-bar.projected {
  fill: rgba(190, 30, 46, 0.2);
  stroke: var(--red);
  stroke-width: 2;
  stroke-dasharray: 5 4;
}

g:hover > .daily-sales-bar {
  opacity: 0.72;
  transform: scaleY(1.03);
}

.daily-chart-axis-label,
.daily-chart-date,
.daily-chart-value {
  fill: var(--gray-700);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
}

.daily-chart-value {
  fill: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.forecast-note {
  margin: 4px 0 0;
  color: var(--gray-500);
  font-size: 11px;
  font-weight: 600;
}

.section-kicker {
  display: block;
  color: var(--red);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 24px;
}

.section-heading > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.section-heading h2 {
  margin: 0;
  color: var(--black);
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.analyzer-band {
  padding: 35px 0 38px;
  border-bottom: 1px solid var(--gray-300);
  background: var(--gray-100);
}

.url-form {
  display: grid;
  gap: 20px;
  padding: 26px 30px 30px;
  border-top: 5px solid var(--red);
  background: var(--white);
  box-shadow: 0 13px 36px rgba(0, 0, 0, 0.08);
}

.form-heading label {
  display: block;
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
}

.form-heading p {
  margin: 6px 0 0;
  color: var(--gray-700);
  font-size: 13px;
}

.input-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(160px, 0.7fr) auto;
  gap: 0;
  border: 1px solid var(--gray-300);
}

.input-row input {
  min-width: 0;
  padding: 14px 16px;
  border: 0;
  border-right: 1px solid var(--gray-300);
  outline: none;
  font-size: 13px;
  font-weight: 600;
}

.input-row button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 22px;
  border: 0;
  color: var(--white);
  background: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.input-row button:hover {
  background: var(--red-dark);
}

.input-row button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.refresh-control-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 16px;
  padding: 18px 20px;
  border: 1px solid var(--gray-300);
  background: var(--white);
}

.refresh-control-card h2 {
  margin: 3px 0 0;
  font-size: 18px;
  text-transform: uppercase;
}

.refresh-control-card p {
  max-width: 650px;
  margin: 6px 0 0;
  color: var(--gray-700);
  font-size: 13px;
}

.refresh-control-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.refresh-control-actions button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--black);
  color: var(--black);
  background: var(--white);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.refresh-control-actions button:hover {
  color: var(--white);
  background: var(--black);
}

.refresh-control-actions button.danger {
  border-color: var(--red);
  color: var(--white);
  background: var(--red);
}

.refresh-control-actions button.danger:hover {
  background: var(--red-dark);
}

.refresh-control-actions button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.status-panel {
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 13px 16px;
  border-left: 4px solid var(--black);
  color: var(--ink);
  background: var(--white);
}

.status-panel:not([hidden]) {
  display: flex;
}

.status-panel p {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
}

.status-icon {
  width: 9px;
  height: 9px;
  background: var(--red);
  transform: rotate(45deg);
}

.status-panel.loading .status-icon {
  animation: pulse 900ms ease-in-out infinite;
}

.status-panel.success {
  border-left-color: var(--green);
}

.status-panel.success .status-icon {
  background: var(--green);
}

.status-panel.error {
  border-left-color: var(--red);
  color: var(--red-dark);
  background: #fff4f5;
}

@keyframes pulse {
  50% {
    opacity: 0.25;
    transform: rotate(225deg) scale(0.7);
  }
}

.snapshot-section {
  color: var(--white);
  background: var(--black);
}

.snapshot-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  gap: 24px;
}

.snapshot-bar strong {
  display: block;
  margin-top: 5px;
  font-size: 14px;
}

.snapshot-meta {
  display: flex;
  gap: 1px;
}

.snapshot-meta span {
  padding: 10px 13px;
  color: #c8c8c8;
  background: var(--gray-900);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.summary-section,
.inventory-section {
  padding: 56px 0;
}

.summary-section {
  background: var(--white);
}

.inventory-section {
  border-top: 1px solid var(--gray-300);
  border-bottom: 1px solid var(--gray-300);
  background: var(--gray-100);
}

.summary-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: repeat(2, minmax(130px, auto));
  gap: 2px;
  background: var(--gray-200);
}

.metric-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: 22px 24px;
  background: var(--white);
}

.metric-card.primary {
  grid-row: span 2;
  color: var(--white);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 45%),
    var(--red);
}

.metric-card.dark {
  color: var(--white);
  background: var(--black);
}

.metric-card.free {
  border-top: 5px solid var(--green);
}

.metric-card.held {
  border-top: 5px solid var(--gray-500);
}

.metric-label {
  color: var(--gray-700);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.metric-card.primary .metric-label,
.metric-card.primary .metric-detail,
.metric-card.dark .metric-label,
.metric-card.dark .metric-detail {
  color: rgba(255, 255, 255, 0.72);
}

.metric-value {
  display: block;
  margin: 18px 0 10px;
  color: var(--black);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.metric-card.primary .metric-value,
.metric-card.dark .metric-value {
  color: var(--white);
}

.metric-card.primary .metric-value {
  font-size: clamp(48px, 7vw, 84px);
}

.metric-detail {
  color: var(--gray-700);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
}

.inventory-heading {
  align-items: center;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 9px;
  width: min(100%, 365px);
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--gray-300);
  background: var(--white);
}

.search-field > span:first-child {
  color: var(--red);
  font-size: 20px;
}

.search-field input {
  width: 100%;
  border: 0;
  color: var(--black);
  background: transparent;
  outline: none;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.table-key {
  display: flex;
  justify-content: flex-end;
  gap: 22px;
  margin: -8px 0 12px;
  color: var(--gray-700);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.table-key span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.table-key span::before {
  width: 22px;
  height: 5px;
  background: var(--red);
  content: "";
}

.table-key span:nth-child(2)::before {
  background: var(--gray-500);
}

.table-key span:last-child::before {
  background: var(--green);
}

.sector-list {
  display: grid;
  gap: 15px;
}

.sector-card {
  overflow: hidden;
  border: 1px solid var(--gray-300);
  background: var(--white);
}

.sector-header {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(240px, 1.5fr) minmax(145px, auto);
  align-items: center;
  gap: 24px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--gray-300);
}

.sector-title {
  margin: 0;
  color: var(--black);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.sector-subtitle {
  display: block;
  margin-top: 5px;
  color: var(--gray-700);
  font-size: 11px;
  font-weight: 600;
}

.occupancy-track {
  display: flex;
  overflow: hidden;
  height: 10px;
  background: var(--green);
}

.occupancy-fill {
  height: 100%;
  background: var(--red);
}

.held-fill {
  height: 100%;
  background: var(--gray-500);
}

.track-labels {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  color: var(--gray-700);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.track-labels .occupied-label {
  color: var(--red);
}

.sector-count {
  padding-left: 20px;
  border-left: 1px solid var(--gray-300);
  text-align: right;
}

.sector-count strong {
  display: block;
  color: var(--red);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.sector-count span {
  color: var(--gray-700);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.block-list {
  padding: 0 24px;
}

.block-item {
  border-bottom: 1px solid var(--gray-200);
}

.block-item:last-child {
  border-bottom: 0;
}

.block-item summary {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) repeat(3, minmax(80px, 0.32fr)) 24px;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  cursor: pointer;
  list-style: none;
}

.block-item summary::-webkit-details-marker {
  display: none;
}

.block-item[open] {
  background: #fafafa;
}

.block-name {
  color: var(--black);
  font-size: 12px;
  font-weight: 900;
}

.block-stat {
  color: var(--gray-700);
  font-size: 9px;
  font-weight: 700;
  text-align: right;
  text-transform: uppercase;
}

.block-stat strong {
  display: block;
  margin-bottom: 3px;
  color: var(--black);
  font-size: 14px;
  font-weight: 900;
}

.block-stat.occupied strong {
  color: var(--red);
}

.chevron {
  color: var(--red);
  font-size: 24px;
  text-align: center;
  transition: transform 160ms ease;
}

.block-item[open] .chevron {
  transform: rotate(90deg);
}

.row-table-wrap {
  overflow-x: auto;
  padding-bottom: 18px;
}

.row-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.row-table th,
.row-table td {
  padding: 10px 13px;
  border-top: 1px solid var(--gray-200);
  text-align: right;
}

.row-table th:first-child,
.row-table td:first-child {
  text-align: left;
}

.row-table th {
  color: var(--gray-700);
  background: var(--gray-100);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.row-table .occupied-cell {
  color: var(--red);
  font-weight: 900;
}

.row-table .held-cell {
  color: var(--gray-700);
  font-weight: 900;
}

.method-page {
  padding: 56px 0 72px;
}

.method-page-inner {
  max-width: 720px;
}

.method-page h1 {
  margin: 8px 0 18px;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.method-lead {
  margin-bottom: 36px;
  color: var(--gray-700);
  font-size: 17px;
  line-height: 1.55;
}

.method-block {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-200);
}

.method-block h2 {
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
}

.method-block p {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.65;
}

.method-back {
  margin-top: 36px;
}

.method-back a {
  color: var(--red);
  font-weight: 800;
  text-decoration: none;
}

.empty-message {
  padding: 34px;
  border: 1px dashed var(--gray-500);
  color: var(--gray-700);
  background: var(--white);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

footer {
  border-top: 6px solid var(--red);
  color: #b7b7b7;
  background: #090909;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 20px;
  font-size: 11px;
}

.footer-inner a {
  color: #e0e0e0;
  text-decoration: none;
}

.footer-inner a:hover {
  color: var(--white);
}

.footer-inner strong {
  color: var(--white);
  font-size: 15px;
  font-weight: 900;
}

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

[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .data-hero-layout {
    grid-template-columns: 1fr;
  }

  .summary-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  .metric-card.primary {
    grid-column: span 2;
    grid-row: auto;
  }

  .sector-header {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .sector-count {
    padding: 0;
    border-left: 0;
    text-align: left;
  }
}

@media (max-width: 650px) {
  .content-width {
    width: min(100% - 24px, 1120px);
  }

  .header-inner {
    min-height: 64px;
    gap: 12px;
  }

  .brand-copy small {
    display: none;
  }

  .header-link {
    display: none;
  }

  .sold-hero-main {
    flex-direction: column;
    align-items: flex-start;
  }

  .input-row {
    grid-template-columns: 1fr;
  }

  .input-row input {
    border-right: 0;
    border-bottom: 1px solid var(--gray-300);
  }

  .input-row button {
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }

  .refresh-control-card {
    align-items: stretch;
    flex-direction: column;
  }

  .refresh-control-actions {
    justify-content: stretch;
  }

  .refresh-control-actions button {
    flex: 1 1 100%;
  }

  .summary-grid {
    grid-template-columns: 1fr !important;
  }

  .metric-card.primary {
    grid-column: auto;
  }

  .snapshot-bar,
  .section-heading,
  .footer-inner,
  .inventory-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .search-field {
    width: 100%;
  }

  .table-key {
    justify-content: flex-start;
  }

  .block-item summary {
    grid-template-columns: 1fr auto;
  }

  .block-stat {
    display: none;
  }

  .footer-inner {
    justify-content: center;
    min-height: 120px;
    padding: 24px 0;
    text-align: center;
  }
}

/* Apple-style motion */
.site-header {
  animation: apple-fade-down var(--motion-med) var(--ease-out-expo) both;
}

.rally-inner,
.data-hero,
.hero-cta,
.sector-arcs-section,
.sales-forecast-section,
.inventory-section {
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition:
    opacity var(--motion-med) var(--ease-out-expo),
    transform var(--motion-med) var(--ease-spring);
}

.rally-inner.is-visible,
.data-hero.is-visible,
.hero-cta.is-visible,
.sector-arcs-section.is-visible,
.sales-forecast-section.is-visible,
.inventory-section.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.rally-inner {
  transition-delay: 80ms;
}

.data-hero {
  transition-delay: 180ms;
}

.hero-cta {
  transition-delay: 260ms;
}

.sector-arc-card.reveal-item {
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  animation: apple-rise var(--motion-med) var(--ease-out-expo) forwards;
  animation-delay: calc(var(--reveal-index, 0) * 70ms);
}

.sold-hero,
.sparkline-panel {
  transition:
    transform var(--motion-fast) var(--ease-spring),
    box-shadow var(--motion-fast) var(--ease-out-expo);
}

.sold-hero:hover,
.sparkline-panel:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

.metric-card {
  transition:
    transform var(--motion-fast) var(--ease-spring),
    box-shadow var(--motion-fast) var(--ease-out-expo);
}

.metric-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.sector-card {
  transition:
    transform var(--motion-fast) var(--ease-spring),
    box-shadow var(--motion-fast) var(--ease-out-expo);
}

.sector-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.07);
}

@keyframes apple-fade-down {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes apple-rise {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

  .site-header,
  .rally-inner,
  .data-hero,
  .hero-cta,
  .sector-arcs-section,
  .sales-forecast-section,
  .inventory-section,
  .sector-arc-card.reveal-item,
  .buy-ticket,
  .sold-hero,
  .sparkline-panel,
  .metric-card,
  .sector-card,
  .ring-fill,
  .arc-fill {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
