/* knewit.in/skills: Learning & Revision Skills guide. Loads after home.css and uses its tokens. */
.sk { padding-top: 72px; }
.sk-sec, .sk-hero { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.sk-sec { padding-block: var(--sec); }
.nav-links a[aria-current="page"] { background: var(--ink); color: var(--paper); }

/* ---------- Hero ---------- */
.sk-hero { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; padding-block: clamp(40px, 6vw, 84px) var(--sec); }
@media (min-width: 980px) { .sk-hero { grid-template-columns: 1.05fr .95fr; } }
.sk-hero h1 { font-size: clamp(2.6rem, 1.2rem + 5vw, 5.4rem); }
.sk-lede { margin-top: 22px; color: var(--stone); max-width: 52ch; font-size: 1.08rem; }
.sk-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.sk-jump a { text-decoration: none; font-size: .88rem; font-weight: 600; padding: 8px 14px; border-radius: 999px; background: var(--soft); transition: background .2s, color .2s; }
.sk-jump a:hover { background: var(--ink); color: var(--paper); }

.sk-curve { margin: 0; background: var(--soft); border-radius: 28px; padding: clamp(18px, 2.4vw, 30px); }
.sk-curve svg { width: 100%; height: auto; display: block; overflow: visible; }
.sk-grid line { stroke: var(--soft-2); stroke-width: 1.5; }
.sk-ax, .sk-days text { font: 600 12px var(--body); fill: var(--stone); }
.sk-forget { fill: none; stroke: var(--dim); stroke-width: 3; stroke-dasharray: 7 7; stroke-linecap: round; }
.sk-keep { fill: none; stroke: var(--lav-deep); stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; }
.sk-dots circle { fill: var(--butter); stroke: var(--ink); stroke-width: 2; }
.sk-curve figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 14px; font-size: .86rem; color: var(--stone); }
.k-keep, .k-forget { display: inline-block; width: 22px; height: 0; border-top: 4px solid var(--lav-deep); border-radius: 4px; margin-right: -8px; }
.k-forget { border-top: 3px dashed var(--dim); }
@media (prefers-reduced-motion: no-preference) {
  .js .sk-keep { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: sk-draw 2.4s var(--ease) .3s forwards; }
  .js .sk-forget { animation: sk-fade 1s ease .1s both; }
  .js .sk-dots circle { transform-box: fill-box; transform-origin: center; animation: sk-pop .5s var(--ease) both; }
  .js .sk-dots circle:nth-child(1) { animation-delay: .7s; } .js .sk-dots circle:nth-child(2) { animation-delay: 1s; }
  .js .sk-dots circle:nth-child(3) { animation-delay: 1.4s; } .js .sk-dots circle:nth-child(4) { animation-delay: 2s; }
}
@keyframes sk-draw { to { stroke-dashoffset: 0; } }
@keyframes sk-fade { from { opacity: 0; } }
@keyframes sk-pop { from { transform: scale(0); } }

/* ---------- Why we forget ---------- */
.sk-facts { display: grid; gap: 14px; }
@media (min-width: 860px) { .sk-facts { grid-template-columns: repeat(3, 1fr); } }
.sk-fact { background: var(--soft); border-radius: 24px; padding: 26px 26px 28px; }
.sk-fact b { display: block; font-family: var(--head); font-size: 1.35rem; letter-spacing: -0.03em; margin-bottom: 10px; }
.sk-fact p { color: var(--stone); }

/* ---------- Six skills ---------- */
.sk-skills { display: grid; gap: 14px; }
@media (min-width: 720px) { .sk-skills { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .sk-skills { grid-template-columns: repeat(3, 1fr); } }
.sk-skill { position: relative; display: flex; flex-direction: column; background: var(--c); border-radius: 26px; padding: 26px 26px 22px; }
.sk-no { font: 800 .8rem var(--head); letter-spacing: .08em; color: var(--ink); opacity: .55; }
.sk-skill h3 { font-size: 1.7rem; margin: 8px 0 10px; }
.sk-one { font-weight: 550; margin-bottom: 14px; }
.sk-skill ul { margin: 0 0 14px; padding-left: 18px; display: grid; gap: 8px; color: #2e2e3a; font-size: .95rem; }
.sk-avoid { font-size: .92rem; color: #2e2e3a; padding-top: 12px; border-top: 1px solid rgb(0 0 0 / .1); }
.sk-avoid b { color: #9b2c18; }
.sk-in { margin-top: auto; padding-top: 16px; font-size: .8rem; font-weight: 650; color: var(--lav-deep); }

/* ---------- Schedule ---------- */
.sk-plan { display: grid; gap: 18px; }
.sk-calc { display: grid; gap: 4px 36px; }
@media (min-width: 860px) { .sk-calc { grid-template-columns: minmax(260px, .8fr) 1.2fr; align-items: start; } .sk-calc-r { grid-column: 2; grid-row: 1 / span 3; } .sk-calc-r .sk-calc-h { margin-top: 0; } }
.sk-rounds { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: r; }
@media (min-width: 620px) { .sk-rounds { grid-template-columns: repeat(5, 1fr); } }
.sk-rounds li { display: grid; align-content: start; gap: 4px; background: var(--soft); border-radius: 22px; padding: 20px 18px; position: relative; }
.sk-rounds li:nth-child(even) { background: var(--lav-mist); }
.sk-rounds b { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--stone); font-weight: 700; }
.sk-rounds span { font: 700 1.7rem var(--head); letter-spacing: -0.04em; }
.sk-rounds small { color: var(--stone); font-size: .86rem; }
.sk-rounds li:first-child { background: var(--ink); color: var(--paper); }
.sk-rounds li:first-child b, .sk-rounds li:first-child small { color: #c9c9d4; }
.sk-calc { background: var(--butter); border-radius: 24px; padding: 22px 24px; }
.sk-calc label { display: block; font-weight: 700; font-family: var(--head); font-size: 1.15rem; letter-spacing: -0.02em; margin-bottom: 10px; }
.sk-calc input { font: inherit; min-height: 46px; padding: 0 14px; border-radius: 14px; border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink); width: 100%; max-width: 240px; }
.sk-calc-h { margin: 18px 0 8px; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.sk-calc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sk-calc li { display: grid; grid-template-columns: 74px 1fr auto; gap: 10px; align-items: baseline; padding: 8px 12px; background: rgb(255 255 255 / .6); border-radius: 12px; font-size: .94rem; font-variant-numeric: tabular-nums; }
.sk-calc li b { font-size: .82rem; }
.sk-calc li small { color: #6b5a1e; font-size: .8rem; }
.sk-calc-note { margin-top: 12px; font-size: .86rem; color: #5d4d14; }

/* ---------- Flashcards ---------- */
.sk-cardgrid { display: grid; gap: 24px; }
@media (min-width: 980px) { .sk-cardgrid { grid-template-columns: .9fr 1.1fr; align-items: start; } }
.sk-rules { margin: 0; padding: 0; list-style: none; counter-reset: rule; display: grid; gap: 4px; }
.sk-rules li { counter-increment: rule; position: relative; padding: 14px 0 14px 52px; border-bottom: 1px solid var(--line); color: var(--stone); }
.sk-rules li::before { content: counter(rule, decimal-leading-zero); position: absolute; left: 0; top: 14px; font: 800 .82rem var(--head); color: var(--lav-deep); background: var(--lav-mist); border-radius: 10px; padding: 4px 8px; }
.sk-rules b { color: var(--ink); }
.sk-compare { display: grid; gap: 14px; }
@media (min-width: 640px) { .sk-compare { grid-template-columns: 1fr 1fr; } }
.sk-bad, .sk-good { border-radius: 24px; padding: 18px; display: grid; gap: 10px; align-content: start; }
.sk-bad { background: #fdeeea; }
.sk-good { background: #e5f6ec; }
.sk-tag { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.sk-bad .sk-tag { color: #9b2c18; } .sk-good .sk-tag { color: #17663a; }
.sk-fc { background: var(--paper); border-radius: 16px; padding: 14px 16px; box-shadow: 0 1px 0 rgb(0 0 0 / .06), 0 6px 18px -10px rgb(0 0 0 / .25); display: grid; gap: 6px; }
.sk-fc small { font-size: .72rem; font-weight: 650; color: var(--stone); text-transform: uppercase; letter-spacing: .08em; }
.sk-fc b { font-family: var(--head); font-size: 1.02rem; letter-spacing: -0.02em; line-height: 1.25; }
.sk-fc.back span { color: var(--stone); font-size: .9rem; }
.sk-ans { font-size: .88rem; font-weight: 600; color: #17663a; padding-top: 6px; border-top: 1px dashed var(--line); }
.sk-why { font-size: .86rem; color: #7a2b1a; }

/* ---------- A study day ---------- */
.sk-day { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.sk-day li { display: grid; gap: 6px 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 720px) { .sk-day li { grid-template-columns: 180px 1fr; } }
.sk-when { font: 700 1.2rem var(--head); letter-spacing: -0.03em; color: var(--lav-deep); }
.sk-day b { font-family: var(--head); font-size: 1.15rem; letter-spacing: -0.02em; }
.sk-day p { color: var(--stone); margin-top: 4px; max-width: 70ch; }

/* ---------- Traps ---------- */
.sk-traps { display: grid; gap: 12px; }
@media (min-width: 720px) { .sk-traps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .sk-traps { grid-template-columns: repeat(3, 1fr); } }
.sk-traps article { border: 1.5px solid var(--line); border-radius: 22px; padding: 20px 22px; }
.sk-traps b { display: block; font-family: var(--head); font-size: 1.15rem; letter-spacing: -0.02em; margin-bottom: 6px; }
.sk-traps b::before { content: "×"; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; border-radius: 50%; background: #fdeeea; color: #9b2c18; font-size: .95rem; vertical-align: 2px; }
.sk-traps p { color: var(--stone); font-size: .95rem; }

/* ---------- Try it ---------- */
.sk-try { max-width: 620px; margin-inline: auto; text-align: center; }
.sk-trycard { background: var(--ink); color: var(--paper); border-radius: 28px; padding: clamp(28px, 5vw, 48px); min-height: 250px; display: grid; align-content: center; gap: 14px; transition: background .35s; }
.sk-trycard.open { background: linear-gradient(150deg, #2a1f5c, #0b0b0d); }
.sk-tryk { font-size: .76rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: #b9b4d6; }
.sk-tryq { font-family: var(--head); font-weight: 700; font-size: clamp(1.3rem, 1rem + 1.4vw, 1.9rem); letter-spacing: -0.03em; line-height: 1.2; text-wrap: balance; }
.sk-trya { color: var(--butter); font-size: 1.05rem; }
.sk-trybtns { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.sk-yes { background: var(--mint); color: var(--ink); }
.sk-yes:hover { transform: translateY(-2px); background: #2bb07f; }
.sk-tryn { margin-top: 10px; color: var(--stone); font-size: .9rem; min-height: 1.4em; }

/* ---------- Research ---------- */
.sk-refs { padding-top: 0; }
.sk-refs h2 { font-size: 1.3rem; letter-spacing: -0.02em; margin-bottom: 12px; }
.sk-refs ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--stone); font-size: .9rem; max-width: 90ch; }

/* .pill sets display, so make [hidden] win on the try-it buttons */
.sk-try [hidden] { display: none !important; }

/* Speed drills placeholder: the hero alone, no picture beside it */
.sk-soon { min-height: 56vh; align-content: center; }
.sk-soon .sk-hero-copy { max-width: 760px; }

/* Inner Circle page: four numbered steps */
.ic-steps { list-style: none; counter-reset: ic; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.ic-steps li { counter-increment: ic; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); color: var(--stone); line-height: 1.55; }
.ic-steps li::before { content: counter(ic, decimal-leading-zero); display: block; margin-bottom: 10px; font-family: var(--head); font-weight: 800; font-size: 1.6rem; color: var(--ink); letter-spacing: -0.03em; }
.ic-steps b { display: block; color: var(--ink); margin-bottom: 4px; }
.ic-note { margin: 18px 0 0; color: var(--stone); max-width: 62ch; }
