/* ============================================================
   State Nomination Pages — 州担保政策对比页样式
   ============================================================ */

.state-nom-container {
  min-height: calc(100vh - 80px);
  background: #f8fafc;
  position: relative;
}

.state-nom-page__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

.state-nom-page__back {
  margin-bottom: 20px;
}
.state-nom-page__back a {
  color: var(--aussie-blue);
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
}
.state-nom-page__back a:hover {
  text-decoration: underline;
}

.state-nom-page__ad {
  background: #e2e8f0;
  border-radius: 12px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 13px;
  margin-bottom: 24px;
}
.state-nom-page__ad--top { margin-top: 16px; }
.state-nom-page__ad--middle { margin: 32px 0; }
.state-nom-page__ad--bottom { margin-top: 32px; }

/* ---- Hero ---- */
.state-nom-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--aussie-blue) 50%, #38bdf8 100%);
  border-radius: 24px;
  padding: 48px 40px;
  color: #fff;
  position: relative;
  overflow: hidden;
  margin-bottom: 32px;
}
.state-nom-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
}
.state-nom-hero__badge {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 16px;
  text-transform: uppercase;
}
.state-nom-hero__title {
  font-size: 40px;
  font-weight: 800;
  margin: 0 0 8px;
  line-height: 1.2;
}
.state-nom-hero__subtitle {
  font-size: 16px;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}
.state-nom-hero__intro {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,0.9);
  max-width: 700px;
  margin: 0 0 28px;
}
.state-nom-hero__stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.state-nom-hero-stat {
  text-align: center;
}
.state-nom-hero-stat .num {
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  color: var(--gold-light);
}
.state-nom-hero-stat .label {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  margin-top: 6px;
}

/* ---- Section ---- */
.state-nom-section {
  margin-bottom: 40px;
}
.state-nom-section__title {
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 20px;
}
.state-nom-section__subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  margin: -12px 0 20px;
}

/* ---- Comparison Table ---- */
.state-nom-table-wrap {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  overflow-x: auto;
}
.state-nom-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}
.state-nom-table th {
  background: #f1f5f9;
  padding: 14px 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 2px solid #e2e8f0;
  white-space: nowrap;
}
.state-nom-table th[data-sort] {
  cursor: pointer;
  user-select: none;
}
.state-nom-table th[data-sort]:hover {
  color: var(--aussie-blue);
}
.state-nom-table th.is-sorted {
  color: var(--aussie-blue);
}
.state-nom-table th.is-sorted .sort-icon {
  display: inline-block;
}
.state-nom-table th .sort-icon {
  font-size: 11px;
  opacity: 0.6;
  margin-left: 4px;
}
.state-nom-table th.is-sorted.is-desc .sort-icon {
  transform: rotate(180deg);
  display: inline-block;
}
.state-nom-table td {
  padding: 16px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
  color: var(--text-primary);
}
.state-nom-table__row {
  transition: background 0.2s;
}
.state-nom-table__row:hover {
  background: #f8fafc;
}
.state-nom-table__state {
  display: flex;
  align-items: center;
  gap: 12px;
}
.state-nom-table__icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.state-nom-table__name {
  font-weight: 700;
  color: var(--navy);
  font-size: 15px;
}
.state-nom-table__capital {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.state-nom-table__score {
  font-weight: 700;
  color: var(--aussie-blue);
  font-size: 16px;
}
.state-nom-table__link {
  color: var(--aussie-blue);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.state-nom-table__link:hover {
  text-decoration: underline;
}

/* Status badges */
.state-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.state-status--open {
  background: #dcfce7;
  color: #166534;
}
.state-status--limited {
  background: #fef3c7;
  color: #92400e;
}
.state-status--closed {
  background: #fee2e2;
  color: #991b1b;
}

/* Competition labels */
.state-competition {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.state-competition--very_high {
  background: #fee2e2;
  color: #991b1b;
}
.state-competition--high {
  background: #ffedd5;
  color: #9a3412;
}
.state-competition--medium {
  background: #fef9c3;
  color: #854d0e;
}
.state-competition--low {
  background: #dcfce7;
  color: #166534;
}

/* ---- State Cards ---- */
.state-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.state-card {
  position: relative;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  transition: all 0.3s ease;
  cursor: pointer;
}
.state-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.12);
}
.state-card__bg {
  height: 100px;
  position: relative;
}
.state-card__body {
  padding: 20px;
  position: relative;
}
.state-card__icon {
  position: absolute;
  top: -24px;
  left: 20px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.state-card__code {
  position: absolute;
  top: -20px;
  right: 20px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  letter-spacing: 1px;
}
.state-card__name {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin: 12px 0 4px;
}
.state-card__capital {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.state-card__statuses {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.state-card__status {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: 600;
  background: #f1f5f9;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.state-card__status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #94a3b8;
}
.state-card__status--190 .dot { background: var(--aussie-blue); }
.state-card__status--491 .dot { background: #10b981; }

.state-card__meta {
  display: flex;
  gap: 16px;
  margin-bottom: 14px;
  padding: 10px 0;
  border-top: 1px solid #f1f5f9;
}
.state-card__meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.state-card__meta-item strong {
  font-size: 18px;
  color: var(--navy);
  font-weight: 700;
}
.state-card__meta-item span {
  font-size: 11px;
  color: var(--text-muted);
}
.state-card__btn {
  display: inline-block;
  padding: 8px 16px;
  background: var(--aussie-blue);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
}
.state-card:hover .state-card__btn {
  transform: translateX(4px);
}

/* ---- 190 vs 491 Compare Cards ---- */
.compare-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.compare-card {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  position: relative;
  border-top: 5px solid;
}
.compare-card--190 {
  border-top-color: var(--aussie-blue);
}
.compare-card--491 {
  border-top-color: #10b981;
}
.compare-card__badge {
  position: absolute;
  top: 24px;
  right: 28px;
  font-size: 40px;
  font-weight: 800;
  color: #f1f5f9;
  letter-spacing: -1px;
}
.compare-card__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 8px;
}
.compare-card__points {
  font-size: 48px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--aussie-blue), #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
}
.compare-card--491 .compare-card__points {
  background: linear-gradient(135deg, #047857, #10b981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.compare-card__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.compare-card__row {
  display: flex;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}
.compare-card__row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.compare-card__label {
  flex-shrink: 0;
  width: 80px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}
.compare-card__value {
  flex: 1;
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.6;
}
.compare-card__row--pros .compare-card__value {
  color: #065f46;
}
.compare-card__row--cons .compare-card__value {
  color: #991b1b;
}

/* ---- Process Steps ---- */
.process-steps {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.process-step {
  display: flex;
  gap: 20px;
  position: relative;
  padding: 16px 0;
}
.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 19px;
  top: 52px;
  bottom: -8px;
  width: 2px;
  background: #e2e8f0;
}
.process-step__num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--aussie-blue), #38bdf8);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
}
.process-step__content {
  flex: 1;
  padding-top: 4px;
}
.process-step__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 4px;
}
.process-step__desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

/* ---- Disclaimer ---- */
.state-nom-disclaimer {
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  gap: 14px;
  margin-bottom: 40px;
}
.state-nom-disclaimer__icon {
  font-size: 24px;
  flex-shrink: 0;
}
.state-nom-disclaimer strong {
  color: #92400e;
  display: block;
  margin-bottom: 4px;
}
.state-nom-disclaimer p {
  margin: 0;
  font-size: 14px;
  color: #78350f;
  line-height: 1.6;
}

/* ---- Related ---- */
.state-nom-related {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.related-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  transition: all 0.25s;
}
.related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
}
.related-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.related-card--calc .related-card__icon { background: #ecfdf5; }
.related-card--skills .related-card__icon { background: #faf5ff; }
.related-card--exp .related-card__icon { background: #fff7ed; }

.related-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
}
.related-card__desc {
  font-size: 13px;
  color: var(--aussie-blue);
  font-weight: 600;
}
.related-card--lg {
  padding: 24px;
}
.related-card--lg .related-card__title {
  font-size: 18px;
}
.related-card--lg .related-card__icon {
  width: 56px;
  height: 56px;
  font-size: 28px;
}
.state-nom-related--single {
  max-width: 600px;
  margin: 0 auto;
}

/* ---- Detail Page ---- */
.state-nom-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.state-nom-breadcrumb a {
  color: var(--aussie-blue);
  text-decoration: none;
}
.state-nom-breadcrumb a:hover {
  text-decoration: underline;
}
.state-nom-breadcrumb .current {
  color: var(--text-primary);
  font-weight: 500;
}
.state-nom-breadcrumb .sep {
  opacity: 0.5;
}

.state-detail-hero {
  border-radius: 24px;
  padding: 56px 40px;
  color: #fff;
  position: relative;
  overflow: hidden;
  margin-bottom: 32px;
}
.state-detail-hero::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.state-detail-hero__content {
  position: relative;
  text-align: center;
}
.state-detail-hero__icon {
  font-size: 64px;
  margin-bottom: 12px;
}
.state-detail-hero__code {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 8px;
}
.state-detail-hero__title {
  font-size: 42px;
  font-weight: 800;
  margin: 0 0 8px;
}
.state-detail-hero__capital {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 20px;
}
.state-detail-hero__statuses {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.state-detail-hero__statuses .state-status {
  padding: 6px 14px;
  font-size: 13px;
}

/* Info Grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}
.info-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}
.info-card--wide {
  grid-column: span 1;
}
.info-card__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.info-card__value {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.5;
}
.info-card__value--score {
  font-size: 24px;
  font-weight: 800;
  color: var(--aussie-blue);
}
.score-note {
  font-size: 13px;
  color: var(--text-muted);
  margin: 16px 0 0;
  font-style: italic;
}

/* Eligibility Cards */
.eligibility-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
}
.eligibility-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  border-top: 5px solid;
}
.eligibility-card--190 {
  border-top-color: var(--aussie-blue);
}
.eligibility-card--491 {
  border-top-color: #10b981;
}
.eligibility-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.eligibility-card__header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  flex: 1;
}
.eligibility-card__badge {
  padding: 4px 12px;
  background: var(--aussie-blue);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
}
.eligibility-card--491 .eligibility-card__badge {
  background: #10b981;
}
.eligibility-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.eligibility-list li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.6;
}
.check-icon {
  color: #10b981;
  font-weight: 700;
  flex-shrink: 0;
}
.eligibility-card__link {
  color: var(--aussie-blue);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  width: 100%;
}
.eligibility-card__link:hover {
  text-decoration: underline;
}

/* Pros & Cons */
.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
}
.pros-card, .cons-card {
  background: #fff;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}
.pros-card h3 {
  color: #065f46;
  margin: 0 0 16px;
  font-size: 20px;
}
.cons-card h3 {
  color: #991b1b;
  margin: 0 0 16px;
  font-size: 20px;
}
.pros-card ul, .cons-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pros-card li, .cons-card li {
  padding-left: 20px;
  position: relative;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
}
.pros-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: 700;
}
.cons-card li::before {
  content: '✗';
  position: absolute;
  left: 0;
  color: #ef4444;
  font-weight: 700;
}

/* Suitable Tags */
.suitable-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.suitable-tag {
  padding: 8px 16px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: var(--aussie-blue);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

/* Updates */
.updates-list {
  background: #fff;
  border-radius: 16px;
  padding: 24px 28px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.update-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.update-item__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--aussie-blue);
  margin-top: 8px;
  flex-shrink: 0;
}
.update-item__text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
}
.policy-year-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 12px;
  text-align: right;
}

/* State Nav (prev/next) */
.state-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  margin: 40px 0;
}
.state-nav__btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  background: #fff;
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  transition: all 0.25s;
}
.state-nav__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
}
.state-nav__btn--next {
  justify-content: flex-end;
  text-align: right;
}
.state-nav__btn--overview {
  justify-content: center;
  color: var(--aussie-blue);
  font-weight: 600;
  font-size: 14px;
  padding: 14px 24px;
}
.state-nav__arrow {
  font-size: 20px;
  color: var(--aussie-blue);
}
.state-nav__label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.state-nav__name {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .state-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .compare-cards,
  .eligibility-grid,
  .pros-cons-grid {
    grid-template-columns: 1fr;
  }
  .state-nom-related {
    grid-template-columns: 1fr;
  }
  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .state-nom-hero__title {
    font-size: 30px;
  }
  .state-detail-hero__title {
    font-size: 32px;
  }
  .state-nom-hero {
    padding: 32px 24px;
  }
  .state-detail-hero {
    padding: 40px 24px;
  }
  .state-nav {
    grid-template-columns: 1fr;
  }
  .state-nav__btn--next {
    justify-content: flex-start;
    text-align: left;
    flex-direction: row-reverse;
  }
}

@media (max-width: 640px) {
  .state-card-grid {
    grid-template-columns: 1fr;
  }
  .info-grid {
    grid-template-columns: 1fr;
  }
  .state-nom-hero__title {
    font-size: 26px;
  }
  .state-detail-hero__title {
    font-size: 28px;
  }
  .state-nom-hero__stats {
    gap: 20px;
  }
  .state-nom-hero-stat .num {
    font-size: 24px;
  }
  .state-nom-section__title {
    font-size: 22px;
  }
  .process-steps {
    padding: 20px;
  }
}


/* ---- Homepage state nomination section ---- */
.state-hp-section {
  padding: 80px 0;
  background: #f8fafc;
}
.state-hp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 32px;
}
.state-hp-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  min-height: 180px;
  display: block;
}
.state-hp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.2);
}
.state-hp-card__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.state-hp-card__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.5) 100%);
}
.state-hp-card__body {
  position: relative;
  z-index: 1;
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 180px;
}
.state-hp-card__icon {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 32px;
  opacity: 0.9;
}
.state-hp-card__code {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 4px;
}
.state-hp-card__name {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 4px;
  line-height: 1.3;
}
.state-hp-card__capital {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 12px;
}
.state-hp-card__meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.state-hp-card__score {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  background: rgba(255,255,255,0.2);
  border-radius: 8px;
  backdrop-filter: blur(4px);
}

.section-bottom-cta {
  text-align: center;
  margin-top: 8px;
}

/* Nav user button icon alignment */
.nav-user-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
}
.nav-user-btn svg {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .state-hp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .state-hp-section {
    padding: 56px 0;
  }
}
@media (max-width: 480px) {
  .state-hp-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .state-hp-card__body {
    padding: 14px;
    min-height: 140px;
  }
  .state-hp-card__name {
    font-size: 15px;
  }
  .state-hp-card__icon {
    font-size: 24px;
    top: 12px;
    right: 12px;
  }
}

/* Language toggle for state HP cards */
html[data-lang="zh"] .state-hp-card__name .zh { display: inline; }
html[data-lang="zh"] .state-hp-card__name .en { display: none; }
html[data-lang="en"] .state-hp-card__name .zh { display: none; }
html[data-lang="en"] .state-hp-card__name .en { display: inline; }
html[data-lang="zh"] .state-hp-card__capital .zh { display: inline; }
html[data-lang="zh"] .state-hp-card__capital .en { display: none; }
html[data-lang="en"] .state-hp-card__capital .zh { display: none; }
html[data-lang="en"] .state-hp-card__capital .en { display: inline; }

/* Points calc state link */
.pc-state-link {
  text-align: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}
.pc-state-link .btn {
  padding: 10px 20px;
  font-size: 14px;
}

/* Other states recommendation (on detail page) */
.state-other-states {
  margin: 40px 0;
  text-align: center;
}
.state-other-states__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 20px;
}
.state-other-states__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.state-other-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  min-height: 110px;
  display: block;
}
.state-other-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2);
}
.state-other-card__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.state-other-card__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(0,0,0,0.55) 100%);
}
.state-other-card__body {
  position: relative;
  z-index: 1;
  padding: 14px;
  height: 100%;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-align: left;
}
.state-other-card__icon {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 20px;
  opacity: 0.9;
}
.state-other-card__code {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 2px;
}
.state-other-card__name {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.3;
}
.state-other-card__score {
  font-size: 11px;
  color: rgba(255,255,255,0.8);
  font-weight: 600;
}

@media (max-width: 768px) {
  .state-other-states__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .state-other-states__grid {
    grid-template-columns: 1fr 1fr;
  }
  .state-other-card__body {
    padding: 10px;
    min-height: 90px;
  }
  .state-other-card__name {
    font-size: 13px;
  }
}

/* State detail hero favorite button */
.state-detail-hero {
  position: relative;
}
.state-detail-fav-btn {
  position: absolute;
  top: 24px;
  right: 32px;
  z-index: 2;
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,0.2);
  color: #fff;
}
.state-detail-fav-btn:hover {
  background: rgba(255,255,255,0.35);
  transform: scale(1.08);
}
.state-detail-fav-btn.is-active {
  color: #fbbf24;
  background: #fff;
}
.state-detail-fav-btn.is-active svg {
  fill: #fbbf24;
  stroke: #f59e0b;
}
@media (max-width: 640px) {
  .state-detail-fav-btn {
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
  }
}

/* ===== State Source Note (E-E-A-T) ===== */
.state-source-note {
  padding: 16px 20px;
  background: var(--bg-soft, #fffbeb);
  border-left: 4px solid var(--primary-color, #f59e0b);
  border-radius: 8px;
  margin: 24px 0 8px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-secondary, #78350f);
}
.state-source-note p { margin: 0 0 6px; }
.state-source-note p:last-child { margin-bottom: 0; }
.state-source-note strong { color: var(--text-primary, #92400e); }
.state-source-date {
  font-size: 12.5px;
  opacity: 0.8;
  margin-top: 4px;
}

html[data-theme="dark"] .state-source-note {
  background: rgba(245, 158, 11, 0.1);
  border-left-color: #fbbf24;
  color: #fcd34d;
}
html[data-theme="dark"] .state-source-note strong { color: #fbbf24; }
