/* Agents in Practice gallery.
   Flat, type-led: a grey canvas, white surfaces, one blue, a heavy display face for headings.
   No gradients, no glass. Colours are tokens so dark mode only swaps values. */

:root {
  --canvas: #f1f2f4;
  --surface: #ffffff;
  --surface-2: #f7f8fa;
  --ink: #17181a;
  --ink-2: #3c4048;
  --muted: #5b616b;
  --border: #d6d8dc;
  --border-soft: #e4e6ea;
  --grid-line: rgba(23, 24, 26, 0.045);

  --blue: #0b5ed7;
  --blue-strong: #08469f;
  --blue-soft: #e3edfb;
  --teal: #0d7566;
  --notice: #ffffff;
  --notice-border: #dfe3e8;

  --footer: #202226;
  --footer-ink: #ffffff;
  --footer-muted: #c3c6cc;

  --chip: #eceef1;
  --chip-fg: #3c4048;
  --p-github: #ede9fe; --p-github-fg: #5b21b6;
  --p-studio: #d5f5ee; --p-studio-fg: #0d6b5d;
  --p-m365: #fdecdc; --p-m365-fg: #a8460f;
  --p-any: #dbeafe; --p-any-fg: #1d4ed8;
  --t-pink: #fce7f3; --t-pink-fg: #9d174d;
  --t-sky: #e0f2fe; --t-sky-fg: #075985;

  --sub-bg-sl: 70% 92%;
  --sub-fg-sl: 60% 28%;
  --sub-line-sl: 55% 45%;

  --radius: 10px;
  --radius-sm: 7px;
  --shadow: 0 7px 20px rgba(20, 24, 31, 0.055);
  --shadow-hover: 0 12px 28px rgba(20, 24, 31, 0.1);
  /* Gallery tiles: a solid edge underneath reads as thickness, the soft layers as height. */
  --tile-edge: #d9dce2;
  --tile-shadow: 0 3px 0 var(--tile-edge), 0 4px 6px rgba(20, 24, 31, 0.06), 0 12px 24px -6px rgba(20, 24, 31, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --tile-shadow-hover: 0 3px 0 var(--tile-edge), 0 10px 16px rgba(20, 24, 31, 0.08), 0 28px 48px -12px rgba(20, 24, 31, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --tile-glare: rgba(255, 255, 255, 0.22);
  --max: 1200px;

  --font-display: "Plus Jakarta Sans", Aptos, "Segoe UI", system-ui, sans-serif;
  --font-body: Aptos, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Cascadia Code", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #0c111a;
    --surface: #111925;
    --surface-2: #0f1620;
    --ink: #eef2f7;
    --ink-2: #ccd3dd;
    --muted: #a3adbb;
    --border: #2b3747;
    --border-soft: #1f2a38;
    --grid-line: rgba(173, 194, 222, 0.05);

    --blue: #78b6ff;
    --blue-strong: #a4d0ff;
    --blue-soft: #13284a;
    --teal: #5fd3bf;
    --notice: #111925;
    --notice-border: #1f2a38;

    --footer: #080c12;
    --footer-muted: #b4bdcb;

    --chip: #1c2533;
    --chip-fg: #ccd3dd;
    --p-github: #2a1b4d; --p-github-fg: #c4b5fd;
    --p-studio: #0b2e29; --p-studio-fg: #6ee7cf;
    --p-m365: #3a1e0c; --p-m365-fg: #fdba74;
    --p-any: #172554; --p-any-fg: #93c5fd;
    --t-pink: #3d0f27; --t-pink-fg: #f9a8d4;
    --t-sky: #0c2c44; --t-sky-fg: #7dd3fc;

    --sub-bg-sl: 40% 18%;
    --sub-fg-sl: 80% 78%;
    --sub-line-sl: 65% 60%;

    --shadow: 0 9px 24px rgba(0, 0, 0, 0.24);
    --shadow-hover: 0 14px 30px rgba(0, 0, 0, 0.4);
    --tile-edge: #070b12;
    --tile-shadow: 0 3px 0 var(--tile-edge), 0 6px 10px rgba(0, 0, 0, 0.25), 0 16px 30px -8px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    --tile-shadow-hover: 0 3px 0 var(--tile-edge), 0 12px 20px rgba(0, 0, 0, 0.35), 0 32px 56px -12px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    --tile-glare: rgba(255, 255, 255, 0.07);
  }
}

/* ---------- base ---------- */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: clip;
  font: 16px/1.6 var(--font-body);
  color: var(--ink);
  background-color: var(--canvas);
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 32px 32px;
}
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); }
a { color: var(--blue); text-underline-offset: 2px; }
a:hover { color: var(--blue-strong); }
code, pre { font-family: var(--font-mono); font-size: 0.88em; }
code { background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: 4px; padding: 0.08em 0.35em; }
pre { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; overflow: auto; }
pre code { background: none; border: 0; padding: 0; }
img { max-width: 100%; height: auto; }
table { border-collapse: collapse; width: 100%; margin: 14px 0; font-size: 0.95em; background: var(--surface); }
th, td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
th { background: var(--surface-2); font-weight: 600; }
td.num, th.num { text-align: right; white-space: nowrap; }
blockquote { margin: 14px 0; padding: 10px 16px; border-left: 3px solid var(--blue); background: var(--surface-2); }
hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }
ul.chips, ul.plain-list { list-style: none; padding: 0; margin: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.container { max-width: var(--max); margin: 0 auto; padding-inline: 32px; }
.muted { color: var(--muted); }
.small { font-size: 0.9em; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--blue); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 20; }
.skip:focus { left: 8px; }
.eyebrow { margin: 0 0 8px; font-family: var(--font-display); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue); }
.eyebrow a { color: inherit; text-decoration: none; }
.text-link { font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
button.link { font: inherit; color: var(--blue); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; font-weight: 600; }

/* ---------- buttons, chips, avatars ---------- */

.btn { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 600; padding: 8px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); color: var(--ink); text-decoration: none; cursor: pointer; line-height: 1.3; }
.btn:hover { border-color: var(--ink-2); color: var(--ink); }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-strong); border-color: var(--blue-strong); color: #fff; }
.btn-ghost { background: transparent; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-block; font-size: 0.76rem; font-weight: 600; line-height: 1.6; padding: 1px 9px; border-radius: 5px; background: var(--chip); color: var(--chip-fg); white-space: nowrap; }
.chip-platform[data-value="github-copilot"] { background: var(--p-github); color: var(--p-github-fg); }
.chip-platform[data-value="copilot-studio"] { background: var(--p-studio); color: var(--p-studio-fg); }
.chip-platform[data-value="microsoft-365-copilot"] { background: var(--p-m365); color: var(--p-m365-fg); }
.chip-platform[data-value="any-coding-agent"] { background: var(--p-any); color: var(--p-any-fg); }
.chip-tag:nth-child(5n+1) { background: var(--p-github); color: var(--p-github-fg); }
.chip-tag:nth-child(5n+2) { background: var(--p-studio); color: var(--p-studio-fg); }
.chip-tag:nth-child(5n+3) { background: var(--p-m365); color: var(--p-m365-fg); }
.chip-tag:nth-child(5n+4) { background: var(--t-pink); color: var(--t-pink-fg); }
.chip-tag:nth-child(5n+5) { background: var(--t-sky); color: var(--t-sky-fg); }

.card, .detail { --sub-bg: hsl(var(--h, 230) var(--sub-bg-sl)); --sub-fg: hsl(var(--h, 230) var(--sub-fg-sl)); --sub-line: hsl(var(--h, 230) var(--sub-line-sl)); }
.kicker { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 0; }
.kicker > .kicker-cat, .kicker > .kicker-sub { display: inline-block; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 3px 10px; border-radius: 5px; text-decoration: none; }
.kicker > .kicker-cat { background: color-mix(in srgb, var(--type-light, var(--blue)) 20%, transparent); color: var(--type-light, var(--blue-strong)); }
.kicker > .kicker-sub { background: var(--sub-bg); color: var(--sub-fg); }

.author { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.avatar { width: 28px; height: 28px; border-radius: 50%; flex: none; background: var(--chip); }
.avatar-text { display: inline-flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; color: var(--chip-fg); }

/* ---------- header ---------- */

.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--surface) 94%, transparent); border-top: 3px solid var(--blue); border-bottom: 1px solid var(--border-soft); box-shadow: 0 5px 22px rgba(20, 24, 31, 0.05); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.12rem; color: var(--ink); text-decoration: none; white-space: nowrap; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 30px; height: 30px; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 7px 12px; border-radius: 6px; }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--blue-soft); color: var(--blue-strong); }
.nav-gh { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 680px) { .nav a:nth-child(1), .nav a:nth-child(2) { display: none; } .nav a { padding: 6px 8px; } .container { padding-inline: 18px; } }
@media (max-width: 420px) { .nav a:nth-child(3) { display: none; } }

/* ---------- intro ---------- */

/* Deep navy band behind the index intro and the skill page header, in both themes.
   Tokens are re-pointed so everything inside reads light-on-dark. */
.intro, .detail-band {
  --ink: #ffffff; --ink-2: #c9d5e8; --muted: #9db0cc;
  --border: rgba(255, 255, 255, 0.22); --surface: rgba(255, 255, 255, 0.07); --surface-2: rgba(255, 255, 255, 0.12);
  --grid-line: rgba(255, 255, 255, 0.045);
  --blue: #8cc2ff; --blue-strong: #c3e0ff; --blue-soft: rgba(140, 194, 255, 0.16);
  --teal: #6ee7cf;
  --sub-bg: hsl(var(--h, 230) 45% 22%); --sub-fg: hsl(var(--h, 230) 75% 78%);
  position: relative; color: var(--ink);
  background: linear-gradient(110deg, #0a1a3a 0%, #0f2a5a 55%, #0c3b4a 100%);
}
.intro::before, .detail-band::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 32px 32px; }
.intro .container, .detail-band .container { position: relative; }
.detail-band .btn-primary { background: #ffffff; border-color: #ffffff; color: #0a1a3a; }
.detail-band .btn-primary:hover { background: #dce9fb; border-color: #dce9fb; color: #0a1a3a; }
.detail-band .detail-art img { border-color: rgba(255, 255, 255, 0.25); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); }
.intro { padding: 56px 0 96px; }
.intro h1 { font-size: clamp(2.4rem, 5.4vw, 3.6rem); font-weight: 800; letter-spacing: -0.035em; margin: 0; }
.subtitle { margin: 8px 0 18px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--teal); }
.intro .lead { margin: 0; max-width: 64ch; font-size: 1.12rem; line-height: 1.65; color: var(--ink-2); text-wrap: pretty; }

.notice { background: var(--notice); border-block: 1px solid var(--notice-border); }
.notice-row { display: flex; align-items: center; gap: 14px; padding-block: 16px; color: var(--ink-2); }
.notice-row svg { flex: none; color: var(--blue); }
.notice-row p { margin: 0; flex: 1; }
.notice-row a { font-weight: 700; white-space: nowrap; }
@media (max-width: 680px) { .notice-row { flex-wrap: wrap; } .notice-row p { flex-basis: calc(100% - 40px); } .notice-row a { margin-left: 34px; } }

/* ---------- gallery ---------- */

.gallery { position: relative; overflow: clip; padding: 0 0 64px; scroll-margin-top: 72px; }
.gallery > .container { position: relative; z-index: 1; }
/* Each artwork sits in a rail as tall as the gallery and sticks below the header, so it
   stays beside the cards however long the list grows. overflow: clip (not hidden) keeps sticky working. */
.deco-rail { position: absolute; top: 120px; bottom: 0; width: 300px; pointer-events: none; user-select: none; z-index: 0; }
.deco-rail-left { left: -70px; }
.deco-rail-right { right: -70px; }
.deco { position: sticky; top: 88px; display: block; width: 100%; height: auto; }
@media (max-width: 1560px) { .deco-rail { width: 240px; top: 150px; } .deco-rail-left { left: -90px; } .deco-rail-right { right: -90px; } }
@media (max-width: 1380px) { .deco-rail { display: none; } }
@media (prefers-color-scheme: dark) { .deco { opacity: .55; } }
.gallery-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 20px; }
.gallery-head h2 { margin: 0; font-size: clamp(1.7rem, 3.2vw, 2.25rem); font-weight: 800; }

.toolbar { position: relative; z-index: 2; margin-top: -48px; display: grid; grid-template-columns: minmax(220px, 1.6fr) repeat(4, minmax(0, 1fr)); gap: 14px; background: var(--surface); border: 1px solid var(--border-soft); border-radius: 12px; padding: 18px; box-shadow: 0 14px 34px rgba(20, 24, 31, 0.12); }
.search { position: relative; display: block; min-width: 0; }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input, .control select { width: 100%; height: 48px; font: inherit; font-size: 0.97rem; color: var(--ink); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.search input { padding: 0 12px 0 40px; }
.control { display: block; min-width: 0; }
.control select { padding: 0 30px 0 12px; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='%235b616b' d='M4.22 6.22a.75.75 0 0 1 1.06 0L8 8.94l2.72-2.72a.75.75 0 1 1 1.06 1.06l-3.25 3.25a.75.75 0 0 1-1.06 0L4.22 7.28a.75.75 0 0 1 0-1.06Z'/></svg>"); background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; text-overflow: ellipsis; }
.search input:focus, .control select:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: transparent; }
@media (max-width: 1100px) { .toolbar { grid-template-columns: repeat(4, minmax(0, 1fr)); } .search { grid-column: 1 / -1; } }
@media (max-width: 680px) { .toolbar { grid-template-columns: 1fr 1fr; padding: 12px; } }

.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 20px 0 6px; }
.count { margin: 0; font-weight: 600; font-size: 0.93rem; color: var(--ink-2); }
#clear[hidden] { display: none; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 22px; margin-top: 10px; }
/* 3D tiles: raised at rest; on hover the tile lifts and leans toward the pointer, with a
   glare that follows it. app.js sets --rx, --ry (tilt) and --mx, --my (glare position). */
.card { --rx: 0deg; --ry: 0deg; --lift: 0px; position: relative; display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--tile-shadow); transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--lift)); transition: transform 0.35s cubic-bezier(.2, .7, .2, 1), box-shadow 0.25s ease, border-color 0.15s ease; }
.card::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none; background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 0%), var(--tile-glare), transparent 45%); opacity: 0; transition: opacity 0.25s ease; }
.card.is-tilting { transition-duration: 0.08s, 0.25s, 0.15s; }
@media (hover: hover) {
  .card:hover { --lift: -6px; box-shadow: var(--tile-shadow-hover); border-color: color-mix(in srgb, var(--blue) 35%, var(--surface)); }
  .card:hover::after { opacity: 1; }
}
.card:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
.card-art { display: block; aspect-ratio: 16 / 9; background: var(--surface-2); border-bottom: 1px solid var(--border-soft); overflow: hidden; }
.card-art img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.card-art:hover img { transform: scale(1.03); }
.card-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.card-top time { margin-left: auto; flex: none; color: var(--muted); font-size: 0.8rem; }
.type-pill { flex: none; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 10px; border-radius: 5px; background: var(--blue-soft); color: var(--blue-strong); }
/* One colour per item type, shared by the card badge and the item page kicker. */
.type-skills { --type: #047857; --type-light: #6ee7b7; }
.type-prompts { --type: #c2410c; --type-light: #fdba74; }
.type-agent-instructions { --type: #7c3aed; --type-light: #c4b5fd; }
.type-adaptive-cards { --type: #be185d; --type-light: #f9a8d4; }
.card-type { position: absolute; top: 12px; right: 12px; z-index: 1; background: var(--type, var(--blue)); color: #fff; border: 1px solid rgb(255 255 255 / 0.55); box-shadow: 0 2px 8px rgb(15 23 42 / 0.25); pointer-events: none; }
.card-sub { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.78rem; font-weight: 700; padding: 4px 10px; border-radius: 6px; background: var(--sub-bg); color: var(--sub-fg); border: 1px solid color-mix(in srgb, var(--sub-line) 35%, transparent); }
.card h3 { margin: 4px 0 0; font-size: 1.32rem; font-weight: 800; line-height: 1.22; }
.card h3 a { color: var(--ink); text-decoration: underline 2px transparent; text-underline-offset: 4px; transition: color 0.15s ease, text-decoration-color 0.15s ease; }
.card h3 a:hover, .card h3 a:focus-visible { color: var(--blue-strong); text-decoration-color: currentColor; }
/* At least three lines; app.js raises the clamp to fill the space the row's tallest card leaves. */
.card-desc { margin: 0; flex: 1 1 auto; min-height: 0; color: var(--ink-2); font-size: 0.98rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { margin-top: auto; padding-top: 12px; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 0.9rem; }
.card-author { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-more { display: inline-flex; align-items: center; gap: 5px; color: var(--blue); font-weight: 700; white-space: nowrap; text-decoration: none; }
.card-more:hover { color: var(--blue-strong); text-decoration: underline 2px; text-underline-offset: 4px; }
.empty { text-align: center; padding: 56px 0; margin-top: 12px; color: var(--muted); border: 1px dashed var(--border); border-radius: var(--radius); background: var(--surface); }
.plain-list li { margin-bottom: 12px; }

/* ---------- getting started ---------- */

.getting-started { padding: 64px 0 72px; background: var(--surface); border-top: 1px solid var(--border-soft); scroll-margin-top: 72px; }
.gs-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: 56px; align-items: start; }
.gs-intro h2 { margin: 0 0 14px; font-size: clamp(1.7rem, 3vw, 2.1rem); font-weight: 800; }
.gs-intro p { color: var(--ink-2); margin: 0 0 14px; max-width: 46ch; }
.gs-intro .eyebrow { color: var(--blue); margin-bottom: 8px; }
.gs-steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.gs-steps li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.gs-num { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; line-height: 1.1; color: var(--blue); letter-spacing: -0.02em; }
.gs-steps h3 { margin: 2px 0 6px; font-size: 1.15rem; font-weight: 700; }
.gs-steps p { margin: 0; color: var(--ink-2); }
@media (max-width: 860px) { .gs-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- footer ---------- */

.site-footer { background: var(--footer); color: var(--footer-muted); padding: 40px 0 36px; font-size: 0.93rem; }
.footer-title { margin: 0 0 4px; font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: var(--footer-ink); }
.footer-tag { margin: 0 0 18px; max-width: 70ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-bottom: 22px; }
.footer-links a, .footer-meta a { color: var(--footer-ink); }
.footer-links a:hover, .footer-meta a:hover { color: var(--footer-ink); text-decoration-thickness: 2px; }
.footer-meta { margin: 0; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.86rem; }

/* ---------- skill page ---------- */

.page-detail main { padding-bottom: 64px; }
.detail-band { margin-bottom: 36px; }
.breadcrumb { margin: 0 0 16px; padding-top: 24px; color: var(--muted); font-size: 0.9em; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb a { text-decoration: none; font-weight: 600; }
.detail-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; align-items: center; padding: 4px 0 40px; }
.detail-hero.has-preview { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); }
.detail-hero-text { max-width: 820px; }
.detail-hero h1 { margin: 12px 0; font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 800; }
.detail-hero .lead { font-size: 1.08rem; color: var(--ink-2); margin: 0 0 14px; }
.byline { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; }
.byline p { margin: 0; }
.byline-name { color: var(--ink-2); }
.byline-name strong { color: var(--ink); }
.byline-links { font-size: 0.9rem; margin-top: 2px !important; }
.avatar-lg { width: 48px; height: 48px; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--border); }
ul.tag-pills { margin-bottom: 22px; gap: 8px; }
.tag-pills .chip { font-weight: 500; font-size: 0.85rem; padding: 3px 12px; border-radius: 999px; background: var(--surface); color: var(--ink-2); border: 1px solid var(--border); text-decoration: none; transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease; }
.tag-pills .chip:hover, .tag-pills .chip:focus-visible { background: var(--surface-2); border-color: var(--blue); color: var(--ink); }
.detail-art { display: block; cursor: zoom-in; }
.detail-art img { display: block; width: 100%; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }
.detail-art:hover img { box-shadow: var(--shadow-hover); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.detail-main { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 6px 28px 28px; box-shadow: var(--shadow); }

.tabs { display: flex; gap: 4px; box-shadow: inset 0 -1px 0 var(--border); margin: 0 -28px 24px; padding: 0 20px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs [role=tab] { font: inherit; font-weight: 600; color: var(--muted); background: none; border: 0; border-bottom: 2px solid transparent; padding: 14px 12px 12px; cursor: pointer; white-space: nowrap; }
.tabs [role=tab]:hover { color: var(--ink); }
.tabs [role=tab][aria-selected=true] { color: var(--ink); border-bottom-color: var(--blue); }
.tab-count { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--chip); color: var(--chip-fg); font-size: 0.78rem; text-align: center; margin-left: 4px; }
html:not(.js) .tabs { display: none; }
html:not(.js) .tab-panel + .tab-panel { margin-top: 40px; }
.tab-panel[hidden] { display: none; }
.tab-panel { scroll-margin-top: 80px; }
.panel-title { font-size: 1.35rem; margin: 18px 0 14px; }
html.js .panel-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 1.3rem; margin: 30px 0 10px; }
.prose h3 { font-size: 1.12rem; margin: 24px 0 8px; }
.prose h4 { font-size: 1rem; margin: 18px 0 6px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose img { border-radius: var(--radius-sm); }
/* Wide README tables scroll inside their own box instead of widening the page. */
.table-wrap { overflow-x: auto; margin: 14px 0; }
.table-wrap table { margin: 0; }
.prose code { overflow-wrap: anywhere; }
.callout { background: var(--surface-2); border: 1px solid var(--border-soft); border-left: 3px solid var(--blue); border-radius: var(--radius-sm); padding: 12px 16px; margin: 0 0 18px; }
.callout p { margin: 0 0 6px; }
.callout p:last-child { margin: 0; }
.callout-label { font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.callout .btn-small { margin-top: 4px; padding: 6px 12px; font-size: 0.85rem; }
/* Agent instructions are shown exactly as pasted, in full: wrapped, never scrolled. */
.instructions-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; max-height: none; overflow: visible; }
table.files td:first-child { font-family: var(--font-mono); font-size: 0.9em; word-break: break-all; }

.meta { position: sticky; top: 84px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 4px 24px; font-size: 0.93em; box-shadow: var(--shadow); }
.meta-sec { padding: 20px 0; border-top: 1px solid var(--border); }
.meta-sec:first-child { border-top: 0; }
.meta-label { margin: 0 0 12px; font-family: inherit; font-size: 0.74rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.meta-h { margin: 0 0 6px; font-size: 1.05rem; }
.meta-p { margin: 0 0 16px; color: var(--ink-2); font-size: 0.92rem; }
.meta-p code { font-size: 0.85em; overflow-wrap: anywhere; }
.works { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.works li { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-weight: 600; font-size: 0.9rem; }
.works li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.works li[data-value="github-copilot"]::before { background: var(--p-github-fg); }
.works li[data-value="copilot-studio"]::before { background: var(--p-studio-fg); }
.works li[data-value="microsoft-365-copilot"]::before { background: var(--p-m365-fg); }
.works li[data-value="any-coding-agent"]::before { background: var(--p-any-fg); }
.trust { display: flex; gap: 10px; padding: 14px; margin-bottom: 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.trust-icon { flex: none; color: #c27c0e; margin-top: 1px; }
.trust-title { margin: 0 0 8px; font-weight: 700; color: var(--ink); }
.trust-check { display: flex; gap: 8px; align-items: flex-start; font-size: 0.86rem; line-height: 1.55; color: var(--ink-2); cursor: pointer; }
.trust-check input { flex: none; width: 16px; height: 16px; margin: 3px 0 0; accent-color: var(--blue); }
.btn-block { display: flex; width: 100%; justify-content: center; padding: 11px 16px; }
.btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }
.meta-facts { margin: 0; display: grid; gap: 10px; }
.meta-facts > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.meta-facts dt { color: var(--ink-2); }
.meta-facts dd { margin: 0; font-weight: 600; white-space: nowrap; }
.meta-note { margin: 0; color: var(--muted); font-size: 0.85rem; line-height: 1.55; }
.meta-note a { color: inherit; }

@media (max-width: 900px) {
  .detail-hero, .detail-hero.has-preview { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .detail-art { order: -1; }
  .detail-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .detail-main { padding: 6px 18px 22px; }
  .tabs { margin-inline: -18px; padding-inline: 10px; }
  .meta { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .card-art img { transition: none; }
  .card, .card:hover .card-art img, .card:focus-within .card-art img { transform: none; }
  .card::after { display: none; }
}
