.tips-page {
  --text: #eee8dd;
  --muted: #bdb5a8;
  --ash: #aaa294;
  --gold: #bc9c67;
  --gold-soft: #dfc390;
  --line: rgba(207,184,144,.22);
  --tips-line: rgba(238,232,221,.08);
  color: var(--text);
}
.tips-page [hidden] { display: none !important; }
.tips-page > .tips-hero {
  --subpage-hero-image: url("../assets/hero/header-tips-guide.webp");
  --subpage-hero-image-position: 70% 50%;
}
.tips-page .tips-workspace { display: block; padding-block: 0 32px; }
.tips-categories { position: sticky; top: 0; z-index: 3; display: flex; align-items: stretch; justify-content: space-between; gap: 20px; padding-inline: 16px; scroll-padding-inline: 16px; overflow-x: auto; background: var(--surface-color); border-bottom: 1px solid var(--line); scrollbar-width: thin; }
.tips-categories a { display: flex; flex: none; align-items: center; min-height: 52px; padding-block: 12px; border-bottom: 2px solid transparent; color: var(--muted); font-size: var(--text-body); font-weight: 500; text-decoration: none; white-space: nowrap; }
.tips-categories a[aria-current] { color: var(--gold-soft); border-bottom-color: var(--gold); }
.tips-tools { padding-block: 16px 20px; }
.tips-search-row { display: flex; gap: 12px; }
.tips-search-row input { width: 100%; min-width: 0; height: 40px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 3px; background: #1c1a16; color: var(--text); font: inherit; font-size: var(--text-body); }
.tips-search-row input::placeholder { color: var(--ash); }
.tips-page button { padding: 6px 0; border: 0; border-radius: 0; background: transparent; color: var(--muted); font: inherit; font-size: var(--text-secondary); cursor: pointer; }
#tips-clear { flex: none; }
.tips-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start; border-top: 1px solid var(--line); }
.tips-list { min-width: 0; padding-right: 16px; border-right: 1px solid var(--tips-line); }
.is-enhanced .tips-list { position: sticky; top: 68px; max-height: calc(100dvh - 84px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #514636 transparent; }
.tips-group { border: 0; }
.tips-group h2 { margin: 0; padding-block: 14px; color: var(--gold-soft); font-size: var(--text-secondary); font-weight: 600; }
.is-enhanced:not(.is-searching) .tips-group h2 { display: none; }
.tips-group ul { list-style: none; padding: 0; margin: 0 0 12px; }
.tips-group li + li { border-top: 1px solid var(--tips-line); }
.tips-group a { display: block; padding: 10px 8px 10px 12px; border-left: 2px solid transparent; color: var(--muted); font-size: var(--text-body); line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; text-decoration: none; }
.tips-group a[aria-current] { border-left-color: var(--gold); background: #211e19; color: var(--text); font-weight: 600; }
.tips-group a:hover { color: var(--text); background: #1c1a16; }
.tips-empty { margin: 16px 0; font-size: var(--text-body); color: var(--muted); }
.tips-reader { min-width: 0; padding-top: 12px; scroll-margin-top: 68px; }
.tips-reader-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 12px; min-height: 32px; }
.tips-back { display: none; }
.tips-share { margin-left: auto; }
.tips-share-status { color: var(--ash); font-size: var(--text-secondary); }
.tips-article { scroll-margin-top: 20px; }
.tips-article + .tips-article { margin-top: 32px; }
.is-enhanced .tips-article { margin-top: 0; }
.tips-article h2 { margin: 0 0 24px; color: var(--text); font-family: var(--font-display); font-size: 24px; font-weight: 600; line-height: 1.5; word-break: keep-all; overflow-wrap: anywhere; }
.tips-article h2[tabindex="-1"]:focus { outline: none; }
.tips-article p { margin: 0 0 12px; color: var(--muted); font-size: var(--text-body); line-height: 1.85; word-break: keep-all; overflow-wrap: anywhere; }
.tips-summary { padding: 0 0 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.tips-summary p { color: var(--text); font-weight: 500; }
.tips-summary p:last-child, .tips-detail p:last-child { margin-bottom: 0; }
.tips-table-scroll { max-width: 100%; margin: 24px 0 12px; overflow-x: auto; scrollbar-width: thin; }
.tips-table { width: 100%; border-collapse: collapse; font-size: var(--text-body); line-height: 1.7; }
.tips-table caption { padding-bottom: 12px; color: var(--text); font-weight: 600; text-align: left; }
.tips-table th, .tips-table td { padding: 10px 12px; border-bottom: 1px solid var(--tips-line); text-align: left; vertical-align: top; word-break: keep-all; overflow-wrap: anywhere; }
.tips-table th { border-bottom-color: var(--line); color: var(--text); font-weight: 600; overflow-wrap: normal; }
.tips-table td { color: var(--muted); }
.tips-table th:first-child, .tips-table td:first-child { padding-left: 0; }
.tips-table th:last-child, .tips-table td:last-child { padding-right: 0; }
.tips-table .tips-numeric { text-align: right; font-variant-numeric: tabular-nums; }
.tips-table-note { margin-bottom: 8px; }
.tips-table-scroll:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 2px; }
.tips-page :is(a, button):hover { color: var(--gold-soft); }
.tips-page :is(a, button, input):focus-visible { outline: 2px solid var(--gold-soft); outline-offset: -2px; }
@media (max-width: 900px) and (min-width: 761px) {
  .tips-layout { grid-template-columns: 280px minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 760px) {
  body:has(> .tips-page) > .page-jump { position: static; display: flex; justify-content: flex-end; gap: 8px; margin: 0 24px 20px; }
  body:has(> .tips-page) > .page-jump .page-jump__button { min-width: 52px; min-height: 36px; border-radius: 4px; opacity: 1; }
  .tips-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .tips-list, .is-enhanced .tips-list { position: static; max-height: none; overflow: visible; border-right: 0; padding-right: 0; }
  .tips-page.is-enhanced[data-view="list"] .tips-reader { display: none; }
  .tips-page.is-enhanced[data-view="article"] :is(.tips-list, .tips-tools, .tips-categories) { display: none; }
  .tips-back { display: inline-flex; align-items: center; min-height: 40px; color: var(--gold-soft); font-size: var(--text-body); text-decoration: underline; text-underline-offset: 4px; }
  .tips-article h2 { font-size: 22px; margin-bottom: 20px; }
  .tips-reader { padding-top: 4px; scroll-margin-top: 16px; }
}
