.tips-page {
  background:
    linear-gradient(180deg, #08090c 0%, #10131a 44%, #090a0d 100%);
}

.tips-container {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 0 20px;
}

.tips-hero {
  min-height: 88vh;
  display: grid;
  align-content: center;
  gap: 24px;
  position: relative;
  padding: calc(var(--nav-height) + 44px) 20px 44px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(5, 6, 10, 0.9) 0%, rgba(5, 6, 10, 0.66) 52%, rgba(5, 6, 10, 0.9) 100%),
    linear-gradient(180deg, rgba(5, 6, 10, 0.12) 0%, rgba(5, 6, 10, 0.88) 100%),
    url("../assets/optimized/cocktail-orange.webp") center/cover no-repeat;
}

.tips-hero-copy {
  width: min(760px, 100%);
  margin-left: max(0px, calc((100vw - 1180px) / 2));
  position: relative;
  z-index: 1;
}

.tips-eyebrow,
.tips-idea-card span,
.tips-recipe-tag {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(245, 166, 35, 0.36);
  border-radius: 999px;
  background: rgba(245, 166, 35, 0.11);
  color: var(--accent-gold);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.tips-hero h1 {
  max-width: 760px;
  margin: 14px 0 16px;
  font-size: 4.25rem;
  line-height: 1.04;
  letter-spacing: 0;
}

.tips-hero p {
  max-width: 650px;
  margin: 0;
  color: rgba(244, 244, 248, 0.82);
  font-size: 1.08rem;
}

.tips-hero-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(170px, max-content));
  gap: 10px;
  margin-top: 28px;
}

.tips-hero-actions .btn {
  min-width: 0;
  justify-content: center;
  white-space: nowrap;
}

.tips-quick-strip {
  width: min(1180px, calc(100% - 40px));
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 10px;
  position: relative;
  margin: 28px auto 0;
  z-index: 1;
}

.tips-quick-strip span {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(12, 14, 21, 0.86);
  color: var(--text-primary);
  font-weight: 850;
  text-align: center;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.tips-section {
  padding: 62px 0;
}

.tips-intro {
  padding-top: 34px;
}

.tips-section-head {
  max-width: 720px;
  margin-bottom: 26px;
}

.tips-section-head h2 {
  margin: 12px 0 10px;
  font-size: 2.45rem;
  letter-spacing: 0;
}

.tips-section-head p {
  font-size: 1.02rem;
}

.tips-rule-grid,
.tips-card-grid,
.tips-recipe-grid,
.tips-check-grid,
.tips-hangover-grid,
.tips-method-grid {
  display: grid;
  gap: 14px;
}

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

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

.tips-recipe-grid,
.tips-check-grid,
.tips-hangover-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.tips-rule-card,
.tips-idea-card,
.tips-recipe-card,
.tips-check-card,
.tips-ride-panel,
.tips-help-card,
.tips-hangover-card,
.tips-calculator,
.calc-result-card,
.tips-method-card,
.tips-source-notes {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.24);
}

.tips-rule-card,
.tips-idea-card,
.tips-recipe-card,
.tips-check-card,
.tips-help-card,
.tips-hangover-card,
.tips-method-card {
  padding: 20px;
}

.tips-rule-card {
  min-height: 154px;
}

.tips-rule-card strong,
.tips-idea-card h3,
.tips-recipe-card h3,
.tips-check-card h3,
.tips-help-card h3,
.tips-hangover-card h3,
.tips-method-card h3,
.calc-result-card h4 {
  display: block;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.tips-rule-card p,
.tips-idea-card p,
.tips-recipe-card p,
.tips-check-card p,
.tips-help-card li,
.tips-hangover-card p,
.tips-hangover-card label,
.tips-method-card p,
.calc-result-card li,
.tips-calc-output p {
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.6;
}

.tips-budget-band {
  background:
    linear-gradient(180deg, rgba(20, 24, 32, 0.78), rgba(12, 14, 20, 0.96));
}

.tips-filter,
.tips-ride-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.tips-filter button,
.tips-ride-buttons button {
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text-secondary);
  font-weight: 850;
}

.tips-filter button:hover,
.tips-filter button.active,
.tips-ride-buttons button:hover,
.tips-ride-buttons button.active {
  border-color: rgba(245, 166, 35, 0.45);
  color: var(--text-primary);
  background: rgba(245, 166, 35, 0.13);
}

.tips-idea-card {
  min-height: 210px;
}

.tips-idea-card[hidden] {
  display: none;
}

.tips-idea-card span {
  min-height: 24px;
  margin-bottom: 14px;
  font-size: 0.7rem;
}

.tips-recipe-card {
  min-height: 242px;
  display: flex;
  flex-direction: column;
}

.tips-recipe-card small {
  display: block;
  margin-top: auto;
  padding-top: 14px;
  color: rgba(244, 244, 248, 0.72);
  font-weight: 800;
}

.tips-recipe-tag {
  margin-bottom: 14px;
}

.tips-recipe-tag.teal {
  border-color: rgba(0, 212, 170, 0.42);
  background: rgba(0, 212, 170, 0.1);
  color: var(--accent-teal);
}

.tips-recipe-tag.rose {
  border-color: rgba(255, 77, 106, 0.42);
  background: rgba(255, 77, 106, 0.1);
  color: var(--accent-rose);
}

.tips-recipe-tag.purple {
  border-color: rgba(157, 92, 255, 0.42);
  background: rgba(157, 92, 255, 0.1);
  color: var(--accent-purple-light);
}

.tips-calculator-band {
  background:
    linear-gradient(180deg, rgba(11, 22, 68, 0.42), rgba(8, 9, 12, 0.98));
}

.tips-calculator {
  display: grid;
  grid-template-columns: minmax(320px, 0.42fr) minmax(0, 0.58fr);
  gap: 18px;
  padding: 20px;
}

.tips-calc-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
}

.tips-calc-form label {
  display: grid;
  gap: 8px;
  color: var(--text-secondary);
  font-weight: 850;
}

.tips-calc-form select,
.tips-calc-form input {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: #1b1d27;
  color: var(--text-primary);
  font: inherit;
  font-weight: 800;
}

.tips-calc-form select option {
  background: #1b1d27;
  color: #f6f3ee;
}

.tips-calc-form .btn,
.tips-calc-note {
  grid-column: 1 / -1;
}

.tips-calc-note,
.tips-calc-warning {
  margin: 0;
  color: rgba(244, 244, 248, 0.72);
  font-size: 0.92rem;
  line-height: 1.55;
}

.tips-calc-output {
  min-height: 100%;
  padding: 20px;
  border: 1px solid rgba(245, 166, 35, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(245, 166, 35, 0.08), rgba(255, 255, 255, 0.035));
}

.tips-calc-output h3 {
  margin: 12px 0 12px;
  color: var(--text-primary);
  font-size: 1.45rem;
}

.calc-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.calc-result-card {
  padding: 16px;
  box-shadow: none;
}

.calc-result-card ul {
  display: grid;
  gap: 8px;
}

.calc-result-card li {
  position: relative;
  padding-left: 15px;
}

.calc-result-card li::before {
  content: "";
  width: 6px;
  height: 6px;
  position: absolute;
  left: 0;
  top: 0.72em;
  border-radius: 50%;
  background: var(--accent-gold);
}

.tips-calc-warning {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(0, 212, 170, 0.18);
  border-radius: 8px;
  background: rgba(0, 212, 170, 0.07);
}

.tips-method-band {
  background:
    linear-gradient(90deg, rgba(0, 212, 170, 0.06), rgba(245, 166, 35, 0.08));
}

.tips-method-card {
  min-height: 188px;
}

.tips-safe-band {
  background:
    linear-gradient(90deg, rgba(245, 166, 35, 0.09), rgba(0, 212, 170, 0.06) 48%, rgba(255, 77, 106, 0.06));
}

.tips-two-col,
.tips-ride-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  gap: 22px;
  align-items: start;
}

.tips-check-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tips-check-card {
  min-height: 168px;
}

.tips-ride-layout {
  grid-template-columns: minmax(0, 0.38fr) minmax(0, 0.42fr) minmax(280px, 0.2fr);
}

.tips-ride-panel {
  padding: 22px;
}

.tips-ride-result {
  min-height: 138px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.tips-ride-result strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.tips-ride-result p {
  margin: 0;
}

.tips-ride-panel .btn {
  margin-top: 14px;
}

.tips-copy-status {
  min-height: 24px;
  margin-top: 8px;
  color: var(--accent-teal);
  font-size: 0.9rem;
}

.tips-help-card ul {
  display: grid;
  gap: 10px;
}

.tips-help-card li {
  position: relative;
  padding-left: 16px;
}

.tips-help-card li::before {
  content: "";
  width: 6px;
  height: 6px;
  position: absolute;
  left: 0;
  top: 0.7em;
  border-radius: 50%;
  background: var(--accent-teal);
}

.tips-hangover-band {
  background:
    linear-gradient(180deg, rgba(12, 14, 21, 0.8), rgba(8, 9, 12, 1));
}

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

.tips-hangover-card {
  min-height: 282px;
}

.tips-hangover-card label {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  margin-top: 10px;
}

.tips-hangover-card input {
  width: 16px;
  height: 16px;
  margin-top: 4px;
  accent-color: var(--accent-gold);
}

.tips-hangover-card.urgent {
  border-color: rgba(255, 77, 106, 0.3);
  background:
    linear-gradient(180deg, rgba(255, 77, 106, 0.12), rgba(255, 255, 255, 0.025));
}

.tips-hangover-card.urgent .btn {
  margin-top: 16px;
}

.tips-footer {
  padding: 36px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  background: #07080b;
}

.tips-source-notes {
  padding: 20px;
  box-shadow: none;
}

.tips-source-notes h2 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.tips-source-notes p {
  font-size: 0.92rem;
}

.tips-source-notes a {
  color: var(--accent-gold);
  font-weight: 800;
}

.tips-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.tips-footer-bottom div {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 1080px) {
  .tips-rule-grid,
  .tips-card-grid,
  .tips-recipe-grid,
  .tips-method-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tips-calculator {
    grid-template-columns: 1fr;
  }

  .tips-two-col,
  .tips-ride-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .tips-hero {
    min-height: 78vh;
    padding: calc(var(--nav-height) + 28px) 16px 28px;
  }

  .tips-hero h1 {
    font-size: 2.65rem;
  }

  .tips-hero p {
    font-size: 1rem;
  }

  .tips-quick-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .tips-section {
    padding: 44px 0;
  }

  .tips-section-head h2 {
    font-size: 2rem;
  }

  .tips-rule-grid,
  .tips-card-grid,
  .tips-recipe-grid,
  .tips-check-grid,
  .tips-hangover-grid,
  .tips-method-grid,
  .tips-calc-form,
  .calc-result-grid {
    grid-template-columns: 1fr;
  }

  .tips-filter,
  .tips-ride-buttons,
  .tips-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .tips-footer-bottom {
    flex-direction: column;
  }

  .tips-calculator {
    padding: 14px;
  }
}

@media (max-width: 420px) {
  .tips-container {
    padding: 0 14px;
  }

  .tips-hero h1 {
    font-size: 2.28rem;
  }

  .tips-quick-strip {
    width: calc(100% - 28px);
  }
}
