/* Skill detail — the 'new' arm.
 *
 * This arm RESTYLES rather than rebuilds: the self-assessment buttons, the
 * comment form and the delete controls are all bound by .sk-* class and id, so
 * the markup has to stay put (see the note in skill.php). Everything here is
 * therefore scoped to .sd2-skin, and the old arm is left exactly as it was.
 *
 * Audited against /courses/technical-basics?design=new, which is the reference
 * for this system: zero border-radius, zero box-shadow, ink hero, one accent.
 * The previous version of this file styled only the outer containers, so the
 * interior still carried five different corner radii, a drop shadow and three
 * near-identical greys. The reset below is deliberately broad for that reason.
 */

.sd2-skin{--sk-ink:#0a0a0a;--sk-dim:#4b5563;--sk-lab:#9aa1ab;--sk-hair:#e6e6e6;
  --sk-accent:#e8501e;--sk-paper:#fff;
  font-family:var(--d3-font,'Be Vietnam Pro',system-ui,sans-serif);
  max-width:none;padding:0;background:var(--sk-paper)}

/* One reset beats ten overrides. The old sheet sets radii and shadows on
   elements this file never names — inline <code>, <pre>, table headers, images
   inside admin-authored HTML — and chasing them one by one is how three of them
   survived the last pass. */
.sd2-skin *,.sd2-skin *::before,.sd2-skin *::after{border-radius:0!important;box-shadow:none!important}

/* ── hero ─────────────────────────────────────────────────────────────────
   Ink, not blue. The blue was the one place this page disagreed with every
   other redesigned page about what the top of a page looks like. */
.sd2-skin .sk-hero{background:var(--sk-ink);color:#fff;border:0;margin:0;
  padding:clamp(36px,6vw,76px) clamp(18px,5vw,64px) clamp(30px,4.5vw,56px);text-align:left}
.sd2-skin .sk-hero-icon{width:44px;height:44px;display:inline-flex;align-items:center;
  justify-content:center;background:transparent;border:2px solid rgba(255,255,255,.32);
  color:#fff;font-size:17px;margin:0 0 20px}
.sd2-skin .sk-title{font-size:clamp(28px,4.8vw,56px);line-height:1.04;letter-spacing:-.05em;
  font-weight:800;color:#fff;margin:0;text-wrap:balance;max-width:17ch}
.sd2-skin .sk-cat-badge{display:inline-block;margin:18px 0 0;padding:5px 11px;background:var(--sk-accent);
  color:#fff;font-size:10.5px;font-weight:800;letter-spacing:.16em;text-transform:uppercase}
.sd2-skin .sk-tagline{font-size:clamp(14px,1.6vw,18px);line-height:1.55;margin:16px 0 0;
  max-width:56ch;color:rgba(255,255,255,.82)}
.sd2-skin .sk-login-note{margin:22px 0 0;font-size:13.5px;color:rgba(255,255,255,.68)}
.sd2-skin .sk-login-note a{color:#fff;text-decoration:underline;text-underline-offset:3px}
.sd2-skin .sk-mark{margin:24px 0 0;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.sd2-skin .sk-mark-btn{display:inline-flex;align-items:center;gap:9px;height:42px;padding:0 18px;
  border:2px solid #fff;background:transparent;color:#fff;font-family:inherit;font-size:13px;
  font-weight:800;cursor:pointer;transition:background .14s,color .14s}
.sd2-skin .sk-mark-btn:hover{background:#fff;color:var(--sk-ink)}
.sd2-skin .sk-mark-btn.sk-mark-done{background:#fff;color:var(--sk-ink)}
.sd2-skin .sk-mark-feedback{font-size:12.5px;color:rgba(255,255,255,.72)}

/* ── sections ─────────────────────────────────────────────────────────────
   Hairline rules, not cards. Seven stacked bordered boxes read as seven
   competing objects; a rule reads as one document with parts. */
.sd2-skin .sk-section{border:0;border-top:1px solid var(--sk-hair);border-radius:0;
  background:var(--sk-paper);margin:0;padding:clamp(30px,4.5vw,54px) clamp(18px,5vw,64px)}
.sd2-skin .sk-section>h2{display:flex;align-items:center;gap:11px;
  font-size:clamp(19px,2.4vw,30px);font-weight:800;letter-spacing:-.038em;
  color:var(--sk-ink);margin:0 0 22px}
.sd2-skin .sk-section>h2 i{font-size:.62em;color:var(--sk-accent)}

/* ── the two levels ───────────────────────────────────────────────────────*/
.sd2-skin .sk-levels-grid{display:grid;gap:0;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  border:2px solid var(--sk-ink)}
.sd2-skin .sk-level-card{border:0;background:var(--sk-paper);padding:20px 22px}
.sd2-skin .sk-level-card+.sk-level-card{border-left:2px solid var(--sk-ink)}
.sd2-skin .sk-level-tag{font-size:10.5px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;
  color:var(--sk-ink);margin:0 0 10px}
.sd2-skin .sk-level-working .sk-level-tag{color:var(--sk-accent)}
.sd2-skin .sk-level-card p{font-size:15px;line-height:1.62;color:var(--sk-ink);margin:0;max-width:52ch}
.sd2-skin .sk-level-who{margin-top:12px;font-size:12px;color:var(--sk-lab)}
.sd2-skin .sk-level-na{color:var(--sk-dim)}
.sd2-skin .sk-levels{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:20px}
.sd2-skin .sk-levels-label{font-size:11px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;
  color:var(--sk-lab)}
.sd2-skin .sk-level-btn{display:inline-flex;align-items:center;gap:7px;height:36px;padding:0 14px;
  border:1.5px solid var(--sk-ink);background:var(--sk-paper);color:var(--sk-ink);
  font-family:inherit;font-size:12.5px;font-weight:700;cursor:pointer;transition:background .14s,color .14s}
.sd2-skin .sk-level-btn:hover{background:var(--sk-hair)}
.sd2-skin .sk-level-btn.is-active{background:var(--sk-ink);color:#fff;border-color:var(--sk-ink)}
.sd2-skin .sk-levels-feedback{font-size:12.5px;color:var(--sk-dim)}

/* ── the long-form roadmap ────────────────────────────────────────────────
   62% of this page is one admin-authored HTML blob. It was rendering at 14px
   across the full container — about 115 characters per line, roughly double a
   comfortable measure. Capping the column and lifting the size is the single
   biggest readability change on the page. */
/* Measure is capped on the PROSE, not on the container.
 *
 * Two reasons. First, the admin HTML nests the whole article inside a single
 * <div class="sk-rich-roadmap">, so a cap on direct children caps everything —
 * tables and code blocks included, which want the full width. Second, 32em not
 * "68ch": the ch unit is the advance width of "0", 10.1px here against a 7.3px
 * average glyph, so a 68ch cap measured 94 actual characters. 32em measures 70.
 */
.sd2-skin .sk-detail-body{font-size:16px;line-height:1.68;color:var(--sk-ink);max-width:none}
.sd2-skin .sk-detail-body p,
.sd2-skin .sk-detail-body li,
.sd2-skin .sk-detail-body h3,
.sd2-skin .sk-detail-body h4,
.sd2-skin .sk-detail-body blockquote{max-width:32em}
.sd2-skin .sk-detail-body h3,.sd2-skin .sk-detail-body h4{max-width:28em}
.sd2-skin .sk-detail-body h3{font-size:21px;font-weight:800;letter-spacing:-.02em;
  margin:38px 0 12px;padding-top:16px;border-top:1px solid var(--sk-hair);scroll-margin-top:84px}
.sd2-skin .sk-detail-body h3:first-child{margin-top:0;padding-top:0;border-top:0}
.sd2-skin .sk-detail-body h4{font-size:16px;font-weight:800;margin:26px 0 8px;color:var(--sk-ink);
  scroll-margin-top:84px}
.sd2-skin .sk-detail-body p{margin:0 0 15px}
.sd2-skin .sk-detail-body li{margin:0 0 7px}
.sd2-skin .sk-detail-body strong{font-weight:800}
.sd2-skin .sk-detail-body a{color:var(--sk-ink);text-decoration:underline;text-underline-offset:3px;
  text-decoration-thickness:1.5px;text-decoration-color:var(--sk-accent)}
.sd2-skin .sk-detail-body code{background:#f4f4f5;border:1px solid var(--sk-hair);padding:1px 5px;
  font-size:.88em;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.sd2-skin .sk-detail-body pre{background:var(--sk-ink);color:#fff;padding:16px 18px;overflow-x:auto;
  border:0;font-size:13px;line-height:1.6}
.sd2-skin .sk-detail-body pre code{background:transparent;border:0;color:inherit;padding:0}
/* Tables are the one thing here that legitimately wants the full width. */
.sd2-skin .sk-detail-body .sk-table-wrap{max-width:none;overflow-x:auto;margin:0 0 20px}
.sd2-skin .sk-detail-body table{max-width:none;width:100%;border-collapse:collapse;font-size:14px}
.sd2-skin .sk-detail-body th{background:var(--sk-ink);color:#fff;text-align:left;font-weight:800;
  font-size:11px;letter-spacing:.1em;text-transform:uppercase;padding:9px 12px;white-space:nowrap}
.sd2-skin .sk-detail-body td{border-bottom:1px solid var(--sk-hair);padding:10px 12px;
  vertical-align:top;line-height:1.55}
.sd2-skin .sk-detail-body img{max-width:100%;height:auto;border:1px solid var(--sk-hair);background:transparent}
.sd2-skin .sk-detail-body blockquote{margin:0 0 18px;padding:2px 0 2px 18px;
  border-left:3px solid var(--sk-accent);color:var(--sk-dim)}

/* ── contents rail ────────────────────────────────────────────────────────
   Thirteen headings with no wayfinding. Only appears where there is room for
   it and only when there are enough headings to be worth one (see skill.php). */
.sd2-skin .sk-toc-wrap{display:block}
.sd2-skin .sk-toc{display:none}
@media (min-width:1100px){
  .sd2-skin .sk-toc-wrap{display:grid;grid-template-columns:210px minmax(0,1fr);gap:44px;align-items:start}
  .sd2-skin .sk-toc{display:block;position:sticky;top:84px;max-height:calc(100vh - 110px);
    overflow-y:auto;border-left:2px solid var(--sk-ink);padding-left:15px}
  .sd2-skin .sk-toc-h{font-size:10.5px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;
    color:var(--sk-lab);margin:0 0 11px}
  .sd2-skin .sk-toc ol{list-style:none;margin:0;padding:0;counter-reset:toc}
  .sd2-skin .sk-toc li{counter-increment:toc;margin:0 0 3px}
  .sd2-skin .sk-toc a{display:block;padding:4px 0 4px 22px;position:relative;font-size:12.5px;
    line-height:1.45;color:var(--sk-dim);text-decoration:none}
  .sd2-skin .sk-toc a::before{content:counter(toc,decimal-leading-zero);position:absolute;left:0;top:4px;
    font-size:10px;font-weight:800;color:var(--sk-lab);font-variant-numeric:tabular-nums}
  .sd2-skin .sk-toc a:hover{color:var(--sk-ink)}
  .sd2-skin .sk-toc a.is-here{color:var(--sk-ink);font-weight:800}
  .sd2-skin .sk-toc a.is-here::before{color:var(--sk-accent)}
  .sd2-skin .sk-toc .is-sub a{padding-left:34px;font-size:12px}
  .sd2-skin .sk-toc .is-sub a::before{content:'';border-top:1px solid var(--sk-hair);width:9px;left:20px;top:13px}
}

/* ── resource cards ──────────────────────────────────────────────────────*/
.sd2-skin .sk-card-grid{display:grid;gap:0;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
  border:2px solid var(--sk-ink)}
.sd2-skin .sk-resource-card{display:flex;align-items:center;gap:13px;border:0;background:var(--sk-paper);
  padding:16px 18px;text-decoration:none;transition:background .14s;
  box-shadow:inset -1px 0 0 var(--sk-hair),inset 0 -1px 0 var(--sk-hair)}
.sd2-skin .sk-resource-card:hover{background:#fafafa}
.sd2-skin .sk-resource-icon{width:34px;height:34px;flex:0 0 34px;display:inline-flex;align-items:center;
  justify-content:center;background:var(--sk-ink);color:#fff;font-size:13px}
.sd2-skin .sk-resource-cat{font-size:10px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;
  color:var(--sk-lab);margin-bottom:3px}
.sd2-skin .sk-resource-title{font-size:14px;font-weight:700;color:var(--sk-ink);line-height:1.4}
.sd2-skin .sk-resource-arrow{margin-left:auto;color:var(--sk-ink);font-size:12px}
.sd2-skin .sk-empty p{font-size:14px;color:var(--sk-dim);margin:0}

/* ── role chips ──────────────────────────────────────────────────────────
   Pills at 16px radius were the most visibly "old" thing left on the page. */
.sd2-skin .sk-role-chips{display:flex;flex-wrap:wrap;gap:8px}
.sd2-skin .sk-role-chip{display:inline-flex;align-items:center;gap:8px;padding:7px 13px;
  border:1.5px solid var(--sk-ink);background:var(--sk-paper);color:var(--sk-ink);
  font-size:12.5px;font-weight:700;text-decoration:none;transition:background .14s,color .14s}
.sd2-skin .sk-role-chip:hover{background:var(--sk-ink);color:#fff}
.sd2-skin .sk-role-chip-level{font-size:10px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;
  color:var(--sk-lab)}
.sd2-skin .sk-role-chip:hover .sk-role-chip-level{color:rgba(255,255,255,.7)}

/* ── discussion ──────────────────────────────────────────────────────────*/
.sd2-skin .sk-comments-count{background:var(--sk-ink);color:#fff;padding:2px 8px;font-size:12px;
  font-weight:800;font-variant-numeric:tabular-nums}
.sd2-skin .sk-comments-intro{font-size:14px;color:var(--sk-dim);margin:0 0 18px;max-width:62ch}
.sd2-skin .sk-comment-form{border:2px solid var(--sk-ink);padding:16px;background:var(--sk-paper)}
.sd2-skin .sk-comment-form textarea,
.sd2-skin .sk-comment-form input[type=url]{width:100%;border:1.5px solid var(--sk-hair);padding:10px 12px;
  font-family:inherit;font-size:14px;color:var(--sk-ink);background:var(--sk-paper)}
.sd2-skin .sk-comment-form textarea:focus,
.sd2-skin .sk-comment-form input[type=url]:focus{outline:2px solid var(--sk-ink);outline-offset:-2px;
  border-color:var(--sk-ink)}
.sd2-skin .sk-file-label{display:inline-flex;align-items:center;gap:8px;height:38px;padding:0 13px;
  border:1.5px solid var(--sk-ink);font-size:12.5px;font-weight:700;cursor:pointer;color:var(--sk-ink)}
.sd2-skin .sk-file-label:hover{background:var(--sk-hair)}
.sd2-skin .sk-comment-submit{display:inline-flex;align-items:center;gap:8px;height:38px;padding:0 18px;
  border:2px solid var(--sk-ink);background:var(--sk-ink);color:#fff;font-family:inherit;font-size:12.5px;
  font-weight:800;cursor:pointer}
.sd2-skin .sk-comment-submit:hover{background:#333;border-color:#333}
.sd2-skin .sk-char-count{font-size:11.5px;color:var(--sk-lab);font-variant-numeric:tabular-nums}
.sd2-skin .sk-comments-login-note,
.sd2-skin .sk-comments-empty{border:1.5px dashed var(--sk-hair);background:var(--sk-paper);
  padding:14px 16px;font-size:13.5px;color:var(--sk-dim)}
.sd2-skin .sk-comments-login-note a{color:var(--sk-ink);font-weight:800;text-decoration:underline;
  text-underline-offset:3px}
.sd2-skin .sk-comment-list{list-style:none;margin:20px 0 0;padding:0}
.sd2-skin .sk-comment{border-top:1px solid var(--sk-hair);padding:18px 0}
.sd2-skin .sk-comment-avatar{width:34px;height:34px;object-fit:cover;border:1px solid var(--sk-hair)}
.sd2-skin .sk-comment-avatar-ph{display:flex;align-items:center;justify-content:center;
  background:var(--sk-ink);color:#fff;font-size:13px;font-weight:800;border:0}
.sd2-skin .sk-comment-name{font-size:13.5px;font-weight:800;color:var(--sk-ink);text-decoration:none}
.sd2-skin .sk-comment-time{font-size:11.5px;color:var(--sk-lab)}
.sd2-skin .sk-comment-content{font-size:14.5px;line-height:1.62;color:var(--sk-ink);
  white-space:pre-wrap;max-width:34em}
.sd2-skin .sk-comment-doc{display:inline-flex;align-items:center;gap:9px;padding:9px 13px;
  border:1.5px solid var(--sk-ink);color:var(--sk-ink);text-decoration:none;font-size:12.5px;font-weight:700}
.sd2-skin .sk-comment-doc:hover{background:var(--sk-hair)}
.sd2-skin .sk-comment-delete{border:0;background:transparent;color:var(--sk-lab);cursor:pointer;padding:4px 6px}
.sd2-skin .sk-comment-delete:hover{color:#c0392b}

/* The standing panel and the suggestion widget arrive already flat from shared
   chrome and only need this page's gutters — but NOT a blanket margin reset.
   .ss-panel carries its own `margin:0 0 22px`, and zeroing it dropped the
   widget flush against the closing strip with no separation at all.
   The panel is a bordered box, so its gutters are margin (the border insets
   with the text); the widget is a full-bleed section, so its gutters are
   padding. */
.sd2-skin .ss-panel{margin:0 clamp(18px,5vw,64px) clamp(30px,4vw,48px)}
.sd2-skin .asg{padding:0 clamp(18px,5vw,64px) clamp(36px,5vw,58px)}

/* ── closing strip ───────────────────────────────────────────────────────
 * The page's last CTA: "where do I actually learn this?". It is rendered
 * AFTER </main>, so it sits outside .sd2-skin and cannot be scoped to it —
 * these are the only top-level selectors in this file, and they carry the sd2-
 * prefix so they still cannot touch the control arm, which never emits it.
 *
 * ORANGE, not ink. The footer is #0a0a0a, so an ink strip butted straight
 * against it with no border read as one 340px black void with the CTA stranded
 * at the top — which is exactly what it looked like. The accent is what the
 * system already uses for a closing band before the footer (see .sk2-strip on
 * /courses/skills), so this is the house pattern, not a new colour.
 *
 * Type is INK on the orange, not white. Measured: white on #e8501e is 3.77:1,
 * which fails AA for anything under 24px — the existing .sk2-strip sets a
 * 13.5px subtitle in white and lands at 3.75:1. Ink on the same orange is
 * 5.25:1 and passes for normal text.
 */
.sd2-strip{display:flex;align-items:center;gap:20px 26px;flex-wrap:wrap;
  background:var(--d3-orange,#e8501e);color:var(--d3-ink,#0a0a0a);
  padding:clamp(28px,4vw,46px) clamp(18px,5vw,64px);
  font-family:var(--d3-font,'Be Vietnam Pro',system-ui,sans-serif)}
.sd2-strip-t{flex:0 0 auto;margin:0;font-size:clamp(17px,2.1vw,26px);font-weight:800;
  letter-spacing:-.035em;color:var(--d3-ink,#0a0a0a)}
.sd2-strip-s{flex:1 1 240px;margin:0;font-size:14px;line-height:1.55;
  color:var(--d3-ink,#0a0a0a);opacity:.82;max-width:50ch}
.sd2-btn{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;
  height:46px;padding:0 24px;background:var(--d3-ink,#0a0a0a);color:#fff;
  border:2px solid var(--d3-ink,#0a0a0a);border-radius:0;font-family:inherit;
  font-size:13px;font-weight:800;text-decoration:none;transition:background .14s,color .14s}
.sd2-btn:hover{background:transparent;color:var(--d3-ink,#0a0a0a)}
.sd2-btn:focus-visible{outline:3px solid #fff;outline-offset:2px}
@media (max-width:620px){
  .sd2-strip{gap:14px}
  .sd2-btn{width:100%}
}
