.tm-recipes-page {
  background: var(--pc-bg, #f8fafc);
}

.tm-recipes-page section {
  padding: 0;
}

.tmr-page {
  padding: 8.5rem 1rem 4rem;
  min-height: 75vh;
}

.tmr-shell {
  max-width: 980px;
  margin: 0 auto;
}

.tmr-hero {
  text-align: center;
  margin-bottom: 1.2rem;
}

.tmr-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tmr-kicker a {
  color: var(--pc-brand, #4aa3df);
  text-decoration: none;
}

.tmr-kicker a:hover {
  text-decoration: underline;
}

.tmr-hero h1 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: var(--pc-text, #111827);
  margin: 0 0 0.45rem;
  font-size: clamp(1.55rem, 3vw, 2.05rem);
}

.tmr-subtitle {
  color: var(--pc-text-secondary, #4b5563);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.55;
}

.tmr-subtitle strong {
  color: var(--pc-text, #111827);
  font-weight: 600;
}

.tmr-card {
  background: var(--pc-surface, #fff);
  border: 1px solid var(--pc-border, #e5e7eb);
  border-radius: 16px;
  box-shadow: var(--pc-shadow, 0 8px 24px rgba(15, 23, 42, 0.05));
  overflow: hidden;
}

.tmr-search {
  padding: 1.05rem 1.15rem;
  border-bottom: 1px solid var(--pc-border, #f1f5f9);
}

.tmr-search-row {
  display: flex;
  gap: 0.6rem;
}

.tmr-input-wrap {
  position: relative;
  flex: 1;
}

.tmr-search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--pc-muted, #94a3b8);
  pointer-events: none;
}

.tmr-input {
  width: 100%;
  border: 1px solid var(--pc-input-border, #d1d5db);
  background: var(--pc-input-bg, #fff);
  color: var(--pc-text, #0f172a);
  border-radius: 10px;
  padding: 0.7rem 0.9rem 0.7rem 2.35rem;
  font-size: 1rem;
  outline: none;
}

.tmr-input:focus {
  border-color: var(--pc-brand, #4aa3df);
  box-shadow: 0 0 0 3px rgba(74, 163, 223, 0.2);
}

.tmr-btn-primary,
a.tmr-btn-primary,
a.tmr-btn-link,
a.tmr-btn-primary.tmr-btn-link {
  border: none;
  background: var(--pc-brand, #4aa3df);
  color: #ffffff !important;
  font-weight: 700;
  border-radius: 10px;
  padding: 0.7rem 1.15rem;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.tmr-btn-primary:hover,
.tmr-btn-primary:focus,
.tmr-btn-primary:visited,
a.tmr-btn-primary:hover,
a.tmr-btn-primary:focus,
a.tmr-btn-primary:visited,
a.tmr-btn-link:hover,
a.tmr-btn-link:focus,
a.tmr-btn-link:visited,
a.tmr-btn-primary.tmr-btn-link:hover,
a.tmr-btn-primary.tmr-btn-link:focus,
a.tmr-btn-primary.tmr-btn-link:visited {
  background: var(--pc-brand-hover, #357abd);
  color: #ffffff !important;
  text-decoration: none;
}

html[data-theme="dark"] a.tmr-btn-primary,
html[data-theme="dark"] a.tmr-btn-link,
html[data-theme="dark"] a.tmr-btn-primary.tmr-btn-link,
html[data-theme="dark"] a.tmr-btn-primary:hover,
html[data-theme="dark"] a.tmr-btn-link:hover,
html[data-theme="dark"] a.tmr-btn-primary.tmr-btn-link:hover,
html[data-theme="dark"] a.tmr-btn-primary:visited,
html[data-theme="dark"] a.tmr-btn-link:visited {
  color: #ffffff !important;
}

.tmr-btn-secondary,
a.tmr-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--pc-border-strong, #cbd5e1);
  background: var(--pc-surface, #fff);
  color: var(--pc-text, #0f172a) !important;
  font-weight: 600;
  border-radius: 10px;
  padding: 0.55rem 0.9rem;
  text-decoration: none;
  font-size: 0.9rem;
}

.tmr-btn-secondary:hover,
a.tmr-btn-secondary:hover {
  border-color: var(--pc-brand, #4aa3df);
  text-decoration: none;
}

.tmr-suggestions {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% + 0.35rem);
  background: var(--pc-surface, #fff);
  border: 1px solid var(--pc-border, #e5e7eb);
  border-radius: 12px;
  box-shadow: var(--pc-shadow, 0 12px 28px rgba(15, 23, 42, 0.12));
  max-height: 320px;
  overflow: auto;
}

.tmr-suggestion {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--pc-text, #0f172a);
  text-align: left;
  padding: 0.65rem 0.85rem;
  cursor: pointer;
}

.tmr-suggestion:hover,
.tmr-suggestion.is-active {
  background: var(--pc-bg-soft, #f1f5f9);
}

.tmr-suggestion-title {
  font-weight: 650;
}

.tmr-suggestion-meta {
  font-size: 0.8rem;
  color: var(--pc-muted, #64748b);
}

.tmr-empty-banner {
  margin: 1rem 1.15rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: var(--pc-bg-soft, #f8fafc);
  border: 1px solid var(--pc-border, #e5e7eb);
  color: var(--pc-text-secondary, #475569);
}

.tmr-detail {
  padding: 1.05rem 1.2rem 1.35rem;
}

.tmr-detail-header {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.tmr-detail-tm,
.tmr-tm-icon {
  image-rendering: pixelated;
  object-fit: contain;
  flex-shrink: 0;
}

.tmr-detail-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
  margin-bottom: 0.35rem;
}

.tmr-detail-name {
  font-family: "Montserrat", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0;
  color: var(--pc-text, #0f172a);
}

.tmr-detail-desc {
  margin: 0;
  color: var(--pc-text-secondary, #4b5563);
  line-height: 1.55;
}

.tmr-mini-type {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--tmr-type) 22%, transparent);
  color: var(--pc-text, #0f172a);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tmr-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(74, 163, 223, 0.16);
  color: var(--pc-brand, #4aa3df);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tmr-section-title {
  font-family: "Montserrat", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.55rem;
  color: var(--pc-text, #0f172a);
}

.tmr-recipe,
.tmr-howto,
.tmr-alphas {
  margin-bottom: 1.15rem;
}

.tmr-recipe {
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: var(--pc-bg-soft, #f8fafc);
  border: 1px solid var(--pc-border, #e5e7eb);
}

.tmr-recipe-lead {
  margin: 0 0 0.65rem;
  color: var(--pc-text-secondary, #4b5563);
}

.tmr-recipe-lead a {
  color: var(--pc-brand, #4aa3df);
  font-weight: 700;
  text-decoration: none;
}

.tmr-recipe-lead a:hover {
  text-decoration: underline;
}

.tmr-recipe-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tmr-recipe-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: var(--pc-surface, #fff);
  border: 1px solid var(--pc-border, #e5e7eb);
  font-size: 0.9rem;
  color: var(--pc-text, #0f172a);
}

a.tmr-recipe-item--link {
  text-decoration: none;
  color: var(--pc-brand, #4aa3df);
  font-weight: 600;
  transition: border-color 0.15s ease, background 0.15s ease;
}

a.tmr-recipe-item--link:hover {
  text-decoration: none;
  border-color: var(--pc-brand, #4aa3df);
  background: color-mix(in srgb, var(--pc-brand, #4aa3df) 10%, var(--pc-surface, #fff));
}

.tmr-recipe-item img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.tmr-recipe-count {
  font-weight: 700;
  color: var(--pc-muted, #64748b);
}

.tmr-steps {
  margin: 0 0 0.85rem;
  padding-left: 1.2rem;
  color: var(--pc-text-secondary, #4b5563);
  line-height: 1.6;
}

.tmr-steps li + li {
  margin-top: 0.4rem;
}

.tmr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tmr-muted {
  margin: 0 0 0.55rem;
  color: var(--pc-muted, #64748b);
  font-size: 0.92rem;
}

.tmr-muted a {
  color: var(--pc-brand, #4aa3df);
  font-weight: 600;
  text-decoration: none;
}

.tmr-muted a:hover {
  text-decoration: underline;
}

.tmr-alpha-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tmr-alpha-chip {
  display: inline-flex;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--pc-border, #e5e7eb);
  background: var(--pc-bg-soft, #f8fafc);
  color: var(--pc-text, #0f172a);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
}

.tmr-alpha-chip:hover {
  border-color: rgba(74, 163, 223, 0.55);
  text-decoration: none;
  color: var(--pc-text, #0f172a);
}

.tmr-browse {
  padding: 0.85rem 1.15rem 1.15rem;
}

.tmr-browse-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.85rem;
  align-items: center;
  margin-bottom: 0.85rem;
}

.tmr-filter-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--pc-muted, #64748b);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tmr-select {
  border: 1px solid var(--pc-input-border, #d1d5db);
  background: var(--pc-input-bg, #fff);
  color: var(--pc-text, #0f172a);
  border-radius: 8px;
  padding: 0.4rem 0.65rem;
  font-size: 0.9rem;
}

.tmr-check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--pc-text-secondary, #475569);
  margin: 0;
}

.tmr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.55rem;
}

.tmr-chip {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  border: 1px solid var(--pc-border, #e5e7eb);
  background: var(--pc-surface, #fff);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.tmr-chip:hover {
  border-color: rgba(74, 163, 223, 0.55);
  box-shadow: var(--pc-shadow-soft, 0 4px 14px rgba(15, 23, 42, 0.05));
  transform: translateY(-1px);
  text-decoration: none;
  color: inherit;
}

.tmr-chip.is-hidden {
  display: none;
}

.tmr-chip-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.tmr-chip-title {
  font-weight: 650;
  color: var(--pc-text, #0f172a);
}

.tmr-chip-meta {
  font-size: 0.78rem;
  color: var(--pc-muted, #64748b);
  text-transform: capitalize;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tmr-explain {
  padding: 1.05rem 1.2rem 1.25rem;
  border-top: 1px solid var(--pc-border, #f1f5f9);
}

.tmr-explain p,
.tmr-related {
  color: var(--pc-text-secondary, #4b5563);
  line-height: 1.6;
  margin: 0 0 0.7rem;
}

.tmr-related a {
  color: var(--pc-brand, #4aa3df);
  font-weight: 600;
  text-decoration: none;
}

.tmr-related a:hover {
  text-decoration: underline;
}

.tmr-faq {
  margin-top: 1.5rem;
}

.tmr-faq h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--pc-text, #0f172a);
}

.tmr-faq-item {
  background: var(--pc-surface, #fff);
  border: 1px solid var(--pc-border, #e5e7eb);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.55rem;
}

.tmr-faq-item summary {
  cursor: pointer;
  font-weight: 650;
  color: var(--pc-text, #0f172a);
}

.tmr-faq-item p {
  margin: 0.65rem 0 0;
  color: var(--pc-text-secondary, #4b5563);
  line-height: 1.55;
}

@media (max-width: 640px) {
  .tmr-page {
    padding-top: 7.25rem;
  }

  .tmr-search-row {
    flex-direction: column;
  }

  .tmr-btn-primary {
    width: 100%;
    justify-content: center;
  }

  .tmr-detail-header {
    flex-direction: column;
  }

  .tmr-actions {
    flex-direction: column;
  }

  .tmr-actions .tmr-btn-primary,
  .tmr-actions .tmr-btn-secondary {
    width: 100%;
    justify-content: center;
  }
}
