/* Tips articles and the tips list. Same plywood world as styles.css: kerf rules
   for dividers, painted swatches for numbers, no cards or shadows. */

.tip { max-width: 40rem; padding-block: 12px 8px; display: grid; gap: 14px; }
.tip h1 { font-size: var(--step-2); line-height: 1.08; max-width: none; }
.eyebrow { margin: 0; font: 600 var(--step--1)/1.3 var(--display); color: var(--ink-soft); }
.eyebrow a { font-weight: 700; color: var(--ink); display: inline-flex; align-items: center; min-height: 44px; }
.tip .intro { margin: 0; font-size: var(--step-1); line-height: 1.4; }
.tip h2 { font-size: var(--step-1); line-height: 1.2; margin-top: 14px; padding-top: 18px; border-top: var(--kerf) solid var(--ink); }
.tip p { margin: 0; max-width: 62ch; }
.tip a { color: var(--green); font-weight: 700; }

/* Pictures inside an article: never wider than the screen. */
.tip-fig { margin: 0; max-width: 34rem; }
.tip-fig img { display: block; width: 100%; max-width: 100%; height: auto; }

/* Previous / next / all: three stacked, thumb-sized links on a phone. */
.tip-nav { display: grid; gap: var(--kerf); margin-top: 32px; max-width: 40rem; background: var(--ink); padding: var(--kerf); }
.tip-nav a { display: grid; gap: 2px; align-content: center; min-height: 64px; padding: 12px 16px; background: var(--veneer); color: var(--ink); font: 700 var(--step-0)/1.25 var(--display); text-decoration: none; }
.tip-nav a:hover { background: var(--ply-deep); }
.tip-nav a span { font: 600 var(--step--1)/1.2 var(--display); color: var(--ink-soft); }
.tip-nav a.tip-all { min-height: 52px; background: var(--green); color: var(--on-paint); }
.tip-nav a.tip-all:hover { background: var(--green-deep); }
@media (min-width: 640px) {
  .tip-nav { grid-template-columns: 1fr 1fr; }
  .tip-nav .tip-all { grid-column: 1 / -1; }
  .tip-nav .tip-next { text-align: right; }
  .tip-nav.one { grid-template-columns: 1fr; }
  .tip-nav.one .tip-next { text-align: left; }
}

.tip-signup .signup { max-width: 34rem; }

/* The list page */
.tip-list-head { padding-block: 12px 8px; display: grid; gap: 14px; }
.tip-list-head h1 { font-size: var(--step-2); line-height: 1.08; max-width: 22ch; }
.tip-list { list-style: none; margin: 24px 0 0; padding: 0; max-width: 46rem; display: grid; }
.tip-list li { border-top: var(--kerf) solid var(--ink); }
.tip-list li:last-child { border-bottom: var(--kerf) solid var(--ink); }
.tip-list a { display: grid; grid-template-columns: 2rem 1fr; gap: 14px; align-items: start; padding: 16px 0; text-decoration: none; }
.tip-list a:hover .tip-text strong { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.18em; }
.tip-text { display: grid; gap: 4px; }
.tip-text strong { font: 700 var(--step-1)/1.2 var(--display); letter-spacing: -0.015em; }
.tip-text span { color: var(--ink-soft); }
.tip-n { background: var(--green); color: var(--on-paint); }
.tip-list li:nth-child(5n+2) .tip-n { background: var(--mustard); color: var(--ink); }
.tip-list li:nth-child(5n+3) .tip-n { background: var(--oxide); color: var(--on-paint); }
.tip-list li:nth-child(5n+4) .tip-n { background: var(--ink); color: var(--ply); }
.tip-list li:nth-child(5n+5) .tip-n { background: var(--ply-deep); color: var(--ink); outline: 3px solid var(--ink); outline-offset: -3px; }

@media print { .preview-flag, .tip-nav, .tip-signup, footer nav { display: none !important; } }
