/* Reading layouts share Noctur's existing colors, type and components. */
.tips-page {
  --reading: #c3c3cb;
}

.tips-page [hidden] { display: none !important; }
.tips-page button,
.tips-page input { font: inherit; }
.tips-page button:focus-visible,
.tips-page input:focus-visible,
.table-scroll:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
.tips-page section[id] { scroll-margin-top: 32px; }
.tips-shell { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; }
.breadcrumbs { padding-top: 30px; color: #a4a4ae; font-size: 0.8rem; line-height: 1.5; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px 0; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li + li::before { margin: 0 12px; color: #777780; content: "/"; }
.breadcrumbs a:hover { color: #fff; text-decoration: underline; }

.tips-intro { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 60px; padding: 82px 0 112px; }
.tips-intro h1 { font-size: clamp(3.5rem, 6.5vw, 6rem); line-height: 0.98; }
.tips-intro > div > p:not(.kicker) { max-width: 530px; color: var(--muted); font-size: 1.12rem; line-height: 1.7; }
.tips-intro .text-link { margin-top: 12px; }
.text-link { display: inline-flex; align-items: center; gap: 18px; color: #ededf2; font-size: 0.9rem; font-weight: 600; }
.text-link span { color: var(--blue); }
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.tips-orbit { display: grid; place-items: center; min-height: 410px; background: radial-gradient(ellipse, rgba(10,147,255,0.08), transparent 70%); }
.tips-orbit .rhythm-ring { width: min(340px, 100%); height: auto; aspect-ratio: 1; --ring-thickness: 28px; }
.tips-orbit .ring-center { color: #ededf2; font-size: 3rem; }
.guides-section { padding-top: 48px; border-top: 1px solid var(--line); }
.guides-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.guides-heading h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.1; }
.guides-heading p { margin: 0; color: var(--muted); font-size: 0.85rem; }
.tips-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tip-card { display: flex; flex-direction: column; min-width: 0; min-height: 305px; padding: 30px; border: 1px solid var(--line); border-radius: 25px; background: linear-gradient(145deg, #151518, #0b0b0d); transition: border-color 180ms ease, background 180ms ease; }
.tip-card:hover { border-color: rgba(10,147,255,0.5); background: #17171b; }
.tip-card .kicker { margin-bottom: 30px; font-size: 0.66rem; line-height: 1.6; }
.tip-card h3 { font-size: 1.6rem; line-height: 1.15; }
.tip-card p { margin-bottom: 24px; color: var(--muted); font-size: 0.93rem; line-height: 1.65; }
.card-bottom { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-top: auto; color: #b4b4be; font-size: 0.75rem; }
.card-bottom > span { color: var(--blue); font-size: 1.3rem; }
.guides-section { margin-bottom: 64px; }
.tip-article { margin-bottom: 64px; }

.article-header { max-width: 960px; padding: 66px 0 45px; }
.article-header .kicker { margin-bottom: 25px; }
.article-header h1 { margin-bottom: 30px; font-size: clamp(2.6rem, 4.7vw, 4.4rem); line-height: 1.08; letter-spacing: -0.035em; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; color: #a4a4ae; font-size: 0.82rem; line-height: 1.65; }
.article-meta a { color: #d6d6df; }
.article-meta a:hover { text-decoration: underline; }
.share-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; margin-top: 26px; }
.share-button { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; padding: 10px 17px; border: 1px solid var(--line); border-radius: 999px; background: #171719; color: #eeeef4; font-size: 0.82rem !important; cursor: pointer; }
.share-button:hover { border-color: #6a6a75; }
.share-button span { color: var(--blue); }
.share-button:disabled { opacity: 0.7; cursor: wait; }
.permalink { color: #b3b3be; font-size: 0.78rem; text-decoration: underline; text-underline-offset: 4px; }
.share-status { color: #b4b4bf; font-size: 0.8rem; }
.share-fallback { flex-basis: 100%; color: #c3c3ce; font-size: 0.8rem; }
.share-fallback input { display: block; width: min(100%, 670px); margin-top: 8px; padding: 12px; border: 1px solid #666673; border-radius: 8px; background: #171719; color: #fff; }
.article-layout { display: grid; grid-template-columns: 255px minmax(0, 740px); gap: 76px; align-items: start; padding-top: 40px; border-top: 1px solid var(--line); }
.article-sidebar { position: sticky; top: 30px; }
.article-toc > p { margin-bottom: 18px; color: #e0e0e8; font-size: 0.75rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; }
.article-toc ol { display: grid; gap: 15px; margin: 0; padding: 0; list-style: none; }
.article-toc a { display: block; color: #a4a4ae; font-size: 0.83rem; line-height: 1.5; }
.article-toc a:hover { color: #fff; }
.sidebar-app { display: flex; align-items: center; gap: 12px; margin-top: 30px; padding-top: 25px; border-top: 1px solid var(--line); }
.sidebar-app img { border-radius: 11px; }
.sidebar-app > span { color: #a4a4ae; font-size: 0.72rem; }
.sidebar-app strong { display: block; margin-top: 4px; color: #e0e0e8; font-size: 0.86rem; }
.sidebar-app strong span { margin-left: 12px; color: var(--blue); }
.article-body { min-width: 0; color: var(--reading); font-size: 1.06rem; line-height: 1.85; }
.article-body > section { margin-top: 52px; }
.article-body h2 { margin: 0 0 20px; color: var(--ink); font-size: clamp(1.65rem, 2.5vw, 2.2rem); line-height: 1.22; letter-spacing: -0.025em; }
.article-body p { margin-bottom: 22px; }
.article-body strong { color: #eeeef4; font-weight: 620; }
.article-body a { color: #61b8ff; text-decoration: underline; text-decoration-color: #2871a8; text-underline-offset: 4px; }
.article-body a:hover { color: #a1d5ff; text-decoration-color: currentColor; }
.article-body ul,
.article-body ol { margin: 0 0 24px; padding-left: 25px; }
.article-body li { margin-bottom: 12px; padding-left: 5px; }
.article-body li::marker { color: #aaaab6; }
.quick-answer { padding: 30px 32px; border: 1px solid rgba(10,147,255,0.22); border-radius: 22px; background: linear-gradient(135deg, rgba(10,147,255,0.08), #0e0e11); }
.quick-answer .kicker { margin-bottom: 14px; color: #61b8ff; font-size: 0.68rem; }
.quick-answer > p:last-child { margin-bottom: 0; color: #e0e0e8; line-height: 1.75; }
.article-sources { padding-top: 36px; border-top: 1px solid var(--line); }
.article-sources h2 { font-size: 1.5rem; }
.article-sources ul { font-size: 0.87rem; }
.article-sources li { margin-bottom: 20px; }
.article-sources li p { margin: 5px 0 0; color: #a4a4ae; font-size: 0.82rem; line-height: 1.6; }
.table-scroll { overflow-x: auto; margin: 28px 0; border: 1px solid var(--line); border-radius: 16px; }
.table-scroll table { width: 100%; min-width: 550px; border-collapse: collapse; text-align: left; font-size: 0.87rem; line-height: 1.6; }
.table-scroll caption { padding: 15px 18px; color: #a4a4ae; text-align: left; font-size: 0.78rem; }
.table-scroll th { color: #efeff5; font-weight: 600; background: #131316; }
.table-scroll th,
.table-scroll td { padding: 14px 18px; border-top: 1px solid var(--line); vertical-align: top; }
.article-app { display: flex; align-items: center; gap: 25px; margin-bottom: 80px; padding: 34px; border: 1px solid var(--line); border-radius: 25px; background: radial-gradient(ellipse at 15% 100%, rgba(10,147,255,0.09), transparent 65%), #101013; }
.article-app > img { flex: 0 0 60px; border-radius: 17px; }
.article-app > div { flex: 1; }
.article-app h2 { margin-bottom: 9px; font-size: 1.7rem; line-height: 1.2; }
.article-app p { margin-bottom: 8px; color: #b2b2bd; font-size: 0.95rem; line-height: 1.55; }
.article-app .app-store-button { flex-shrink: 0; }
.related-guides { margin-bottom: 85px; }

/* Landing-page entry point uses the same card treatment. */
.tips-preview .section-heading h2 { max-width: 680px; }
.tips-preview .tips-grid { margin-bottom: 28px; }

@media (max-width: 1050px) {
  .article-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 42px; }
  .tips-intro { gap: 25px; }
  .tip-card { padding: 25px; }
}

@media (max-width: 850px) {
  .tips-shell { width: min(calc(100% - 34px), 680px); }
  .tips-intro { grid-template-columns: 1fr; padding: 60px 0 70px; }
  .tips-intro h1 { font-size: clamp(3.5rem, 11vw, 5.5rem); }
  .tips-orbit { display: none; }
  .tips-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guides-heading { display: block; }
  .guides-heading > p,
  .guides-heading > a { margin-top: 14px; }
  .article-header { padding-top: 45px; }
  .article-layout { grid-template-columns: 1fr; gap: 30px; padding-top: 28px; }
  .article-sidebar { position: static; }
  .article-toc { padding: 22px; border: 1px solid var(--line); border-radius: 18px; }
  .article-toc ol { gap: 12px; }
  .article-toc a { font-size: 0.87rem; }
  .sidebar-app { display: none; }
  .article-app { flex-wrap: wrap; padding: 28px; gap: 20px; }
  .article-app > div { flex-basis: calc(100% - 80px); }
  .article-app .app-store-button { margin-left: 80px; }
}

@media (max-width: 520px) {
  .breadcrumbs { padding-top: 20px; font-size: 0.72rem; }
  .breadcrumbs li + li::before { margin-inline: 8px; }
  .tips-intro { padding-top: 45px; }
  .tips-intro > div > p:not(.kicker) { font-size: 1.04rem; }
  .tips-grid { grid-template-columns: 1fr; }
  .tip-card { min-height: 265px; padding: 28px; }
  .tip-card .kicker { margin-bottom: 24px; }
  .article-header h1 { font-size: clamp(2.05rem, 8vw, 2.65rem); line-height: 1.12; }
  .article-meta { flex-direction: column; gap: 7px; }
  .article-body { font-size: 1.02rem; line-height: 1.8; }
  .quick-answer { padding: 24px; }
  .article-body > section { margin-top: 40px; }
  .article-body h2 { font-size: 1.65rem; }
  .article-app { gap: 18px; padding: 25px; margin-bottom: 60px; }
  .article-app > img { width: 48px; height: 48px; flex-basis: 48px; border-radius: 14px; }
  .article-app > div { flex-basis: calc(100% - 66px); }
  .article-app h2 { font-size: 1.4rem; }
  .article-app .app-store-button { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tip-card,
  .app-store-button { transition: none; }
}
