@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');

body.skill-page-body {
  margin: 0;
  background: #f1eee8;
  color: #26313b;
  font-family: var(--site-font, 'DM Sans', system-ui, sans-serif);
  -webkit-text-size-adjust: 100%;
}

.skill-page, .skill-page * { box-sizing: border-box; }
.skill-page {
  --skill-navy: #0f1923;
  --skill-ink: #26313b;
  --skill-muted: #5c656d;
  --skill-line: #dcd8d0;
  font-size: 16px;
  line-height: 1.65;
}
.skill-page :is(h1, h2, p, ul, ol) { margin: 0; }
.skill-page a { color: var(--site-gold-on-light, #80611e); text-underline-offset: 4px; }
.skill-page a:hover { color: var(--skill-navy); }
.skill-page :is(a, button):focus-visible { outline: 2px solid var(--site-gold-on-light, #80611e); outline-offset: 4px; }
.skill-page .skill-hero :is(a, button):focus-visible,
.skill-page .skill-prompt-panel button:focus-visible { outline-color: var(--site-gold, #d4a853); }

.skill-hero { background: var(--skill-navy); color: #e8e4df; }
.skill-hero-inner { max-width: 960px; margin: 0 auto; padding: 48px 32px 36px; }
.skill-hero .site-eyebrow { margin-bottom: 14px; }
.skill-hero h1 {
  max-width: 740px;
  color: #f8f5ee;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(38px, 5.5vw, 54px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -1.2px;
  text-wrap: balance;
}
.skill-page .skill-intro { max-width: 65ch; margin-top: 22px; font-size: 18px; line-height: 1.65; color: #d2cfc9; }
.skill-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.skill-page .skill-button {
  appearance: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font: 600 14px/1.5 var(--site-font, 'DM Sans', system-ui, sans-serif);
  text-decoration: none;
  cursor: pointer;
}
.skill-page .skill-button-primary { background: var(--site-gold, #d4a853); color: var(--skill-navy); border-color: var(--site-gold, #d4a853); }
.skill-page .skill-button-primary:hover { background: #e1bc76; border-color: #e1bc76; color: var(--skill-navy); }
.skill-page .skill-button-secondary { background: transparent; border-color: #77684c; color: #f8f5ee; }
.skill-page .skill-button-secondary:hover { background: #24313b; border-color: var(--site-gold, #d4a853); color: #fff; }
.skill-button-icon { width: 18px; height: 18px; flex: 0 0 18px; }
.skill-page .skill-button:is(:disabled, [aria-disabled="true"]) { cursor: progress; opacity: 0.75; }
.skill-page .skill-button.copied { border-color: var(--site-gold, #d4a853); }
.skill-page .skill-usage { max-width: 69ch; margin-top: 18px; color: #bcb8b0; font-size: 13px; line-height: 1.65; }
.skill-page .skill-copy-status { min-height: 1.65em; margin-top: 8px; color: var(--skill-muted); font-size: 13px; line-height: 1.65; }
.skill-hero .skill-copy-status { color: #e8e4df; }

.skill-reading { max-width: 960px; margin: 0 auto; padding: 40px 32px 64px; }
.skill-guide { padding: 32px; background: #fffdf8; border: 1px solid #e3dfd8; border-radius: 8px; min-width: 0; }
.skill-metadata { padding: 18px 20px; border-left: 3px solid var(--site-gold, #d4a853); background: #f1eee8; color: #505a63; font-size: 14px; line-height: 1.65; }
.skill-metadata strong { color: var(--skill-navy); font-weight: 600; }
.skill-section { margin-top: 32px; scroll-margin-top: 28px; }
.skill-section + .skill-section { padding-top: 30px; border-top: 1px solid var(--skill-line); }
.skill-section h2 { margin-bottom: 16px; color: var(--skill-navy); font-family: 'Playfair Display', Georgia, serif; font-size: 28px; font-weight: 600; line-height: 1.25; letter-spacing: -0.35px; text-wrap: balance; }
.skill-section :is(p, ul, ol) + :is(p, ul, ol) { margin-top: 16px; }
.skill-section :is(ul, ol) { padding-left: 22px; }
.skill-section li + li { margin-top: 8px; }
.skill-section li::marker { color: var(--site-gold-on-light, #80611e); }
.skill-section strong { color: var(--skill-navy); font-weight: 600; }

.skill-table-wrap { margin-top: 18px; }
.skill-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.6; }
.skill-table :is(th, td) { text-align: left; vertical-align: top; padding: 13px 14px; border-bottom: 1px solid var(--skill-line); }
.skill-table th { background: #f1eee8; color: var(--skill-navy); font-weight: 700; }
.skill-table th:first-child { width: 25%; }
.skill-table th:nth-child(2) { width: 37%; }
.skill-table td:first-child { font-weight: 600; color: var(--skill-navy); }
.skill-table tbody tr:nth-child(even) { background: #f7f4ee; }
.skill-table td { overflow-wrap: anywhere; }

.skill-prompt-panel { margin-top: 20px; background: var(--skill-navy); color: #e8e4df; border: 1px solid #263746; border-radius: 8px; overflow: hidden; }
.skill-prompt-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 14px 20px; border-bottom: 1px solid #35424d; }
.skill-prompt-toolbar > span { color: #d2cfc9; font-size: 13px; font-weight: 500; }
.skill-prompt-toolbar .skill-button { min-height: 44px; padding: 8px 15px; font-size: 13px; }
.skill-prompt-panel pre { margin: 0; padding: 24px; white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 2; font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace; font-size: 14px; line-height: 1.7; color: #e8e4df; }

@media (max-width: 700px) {
  .skill-hero-inner { padding: 36px 20px 26px; }
  .skill-hero h1 { max-width: 540px; }
  .skill-page .skill-intro { font-size: 17px; margin-top: 18px; }
  .skill-reading { padding: 28px 20px 48px; }
  .skill-guide { padding: 26px 22px; }
  .skill-section h2 { font-size: 26px; }
  .skill-table { display: block; }
  .skill-table thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .skill-table tbody { display: grid; gap: 14px; }
  .skill-table tbody tr { display: block; background: #f7f4ee; border: 1px solid var(--skill-line); border-radius: 6px; }
  .skill-table td { display: block; padding: 12px 16px; border-bottom: 1px solid #e3dfd8; }
  .skill-table td:last-child { border-bottom: 0; }
  .skill-table td::before { content: attr(data-label); display: block; margin-bottom: 4px; color: var(--skill-muted); font-size: 11px; font-weight: 700; line-height: 1.5; letter-spacing: 0.7px; text-transform: uppercase; }
}

@media (max-width: 440px) {
  .skill-hero-inner { padding: 32px 16px 24px; }
  .skill-hero h1 { font-size: 38px; letter-spacing: -0.8px; }
  .skill-actions { align-items: stretch; gap: 10px; }
  .skill-actions .skill-button { flex: 1 1 145px; padding-inline: 12px; }
  .skill-reading { padding: 24px 12px 40px; }
  .skill-guide { padding: 24px 18px; }
  .skill-metadata { padding: 16px; }
  .skill-section { margin-top: 28px; }
  .skill-section + .skill-section { padding-top: 26px; }
  .skill-section h2 { font-size: 25px; }
  .skill-prompt-toolbar { padding: 12px 16px; }
  .skill-prompt-panel pre { padding: 20px 16px; font-size: 13px; }
}

@media print {
  .skill-page-body { background: #fff; }
  .skill-hero { background: none; color: #26313b; }
  .skill-hero-inner, .skill-reading { max-width: none; padding: 20px 0; }
  .skill-page .skill-hero :is(h1, p) { color: #26313b; }
  .skill-actions, .skill-copy-status, .skill-prompt-toolbar { display: none; }
  .skill-guide { border: 0; padding: 0; }
  .skill-section h2 { break-after: avoid; }
  .skill-prompt-panel { background: #f1eee8; border-color: #dcd8d0; }
  .skill-prompt-panel pre { color: #26313b; }
}
