.tips-page { padding: 110px 0 72px; background: #f6f8f7; }
.tips-shell { max-width: 1160px; }
.tips-breadcrumb { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 13px; }
.tips-breadcrumb a:hover { color: var(--brand-dark); }
.tips-heading { margin: 34px 0 38px; }
.tips-heading h1 { margin: 10px 0 12px; font-size: clamp(32px, 4vw, 44px); line-height: 1.25; letter-spacing: -.03em; }
.tips-heading p { margin: 0; color: var(--muted); }
.tips-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 42px; align-items: start; }
.tips-directory { position: sticky; top: 100px; max-height: calc(100vh - 125px); overflow-y: auto; padding: 8px 18px 8px 0; }
.tips-directory h2 { margin: 0 0 22px; color: var(--muted); font-size: 13px; font-weight: 500; }
.tips-directory-group { margin-bottom: 23px; }
.tips-category { color: var(--brand-dark); font-size: 15px; font-weight: 650; }
.tips-directory ul { list-style: none; margin: 10px 0 0; padding: 0 0 0 12px; border-left: 1px solid var(--line); }
.tips-directory li { margin: 0 0 10px; font-size: 13px; line-height: 1.65; color: var(--muted); }
.tips-directory a:hover { color: var(--brand); }
.tips-content { min-width: 0; padding: 8px 36px 32px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.tips-prose { color: #34453c; line-height: 1.9; overflow-wrap: anywhere; }
.tips-prose h2 { margin: 32px 0 24px; padding-bottom: 14px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 24px; line-height: 1.4; }
.tips-prose h2:not(:first-child) { margin-top: 50px; }
.tips-prose h3 { margin: 30px 0 14px; color: var(--ink); font-size: 19px; line-height: 1.6; }
.tips-prose h4, .tips-prose h5, .tips-prose h6 { margin: 24px 0 12px; color: var(--ink); }
.tips-prose :is(h1,h2,h3,h4,h5,h6) { scroll-margin-top: 105px; }
.tips-prose p { margin: 12px 0 18px; }
.tips-prose strong { color: var(--ink); font-weight: 650; }
.tips-prose a { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 3px; }
.tips-prose ul, .tips-prose ol { margin: 12px 0 20px; padding-left: 25px; }
.tips-prose li { margin: 6px 0; }
.tips-prose ul { list-style: disc; }
.tips-prose ol { list-style: decimal; }
.tips-prose blockquote { margin: 20px 0; padding: 12px 18px; border-left: 3px solid var(--brand); background: var(--brand-soft); }
.tips-prose blockquote p { margin: 4px 0; }
.tips-prose img { display: block; max-width: 100%; height: auto; margin: 20px auto; border-radius: 8px; }
.tips-prose .table-wrapper { max-width: 100%; overflow-x: auto; margin: 20px 0; }
.tips-prose table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tips-prose th, .tips-prose td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; }
.tips-prose th { background: #f4f8f6; color: var(--ink); font-weight: 600; }
.tips-prose :is(th,td)[align="right"] { text-align: right; }
.tips-prose :is(th,td)[align="center"] { text-align: center; }
.tips-prose pre { overflow-x: auto; padding: 18px; background: #f4f7f5; border-radius: 8px; font-size: 13px; }
.tips-prose code { padding: 2px 5px; border-radius: 4px; background: #f1f5f2; font-family: Consolas, monospace; font-size: .9em; }
.tips-prose pre code { padding: 0; background: none; }
.tips-prose hr { margin: 32px 0; border: 0; border-top: 1px solid var(--line); }
.tips-next { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.tips-next p { margin: 0 0 16px; color: var(--muted); }
@media (max-width: 860px) {
  .tips-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .tips-directory { position: static; max-height: none; padding: 0; overflow: visible; }
  .tips-directory h2 { margin-bottom: 12px; }
  .tips-directory nav { display: flex; flex-wrap: wrap; gap: 8px; }
  .tips-directory h2 { flex-basis: 100%; }
  .tips-directory-group { margin: 0; }
  .tips-category { display: block; padding: 7px 13px; border: 1px solid #d3e4da; border-radius: 20px; background: #fff; font-size: 13px; }
  .tips-directory ul { display: none; }
}
@media (max-width: 600px) {
  .tips-page { padding-top: 100px; padding-bottom: 40px; }
  .tips-heading { margin: 26px 0; }
  .tips-heading p { font-size: 14px; }
  .tips-content { padding: 0 20px 24px; }
  .tips-prose { font-size: 15px; }
  .tips-prose h2 { font-size: 21px; }
  .tips-prose h3 { font-size: 17px; }
  .tips-prose th, .tips-prose td { min-width: 100px; padding: 10px; }
}
