/* Python Atlas, Go Atlas and CUDA Atlas: what the language sites add on top of the shared Pattern Atlas sheet
   (styles.css), loaded after it. The first block is the approved designs' "Python Atlas additions" (Go Atlas and CUDA
   Atlas use the same block), unchanged; the CUDA block after it is the CUDA Atlas design's own additions. */
/* ================= Python Atlas additions (on top of the Pattern Atlas v14 sheet) ================= */
.glyph svg text{stroke:none}
:not(pre) > code{font-family:var(--f-mono); font-size:.86em; background:color-mix(in srgb, var(--accent) 7%, var(--sunk)); color:var(--ink); padding:.08em .38em; border-radius:6px; overflow-wrap:anywhere}
.note code{background:color-mix(in srgb, var(--note-ink) 10%, transparent)}
.vs{display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:14px}
.vs .code{box-shadow:var(--shadow)}
.vs .code pre{font-size:.8rem}
.vs .code .ln::before{width:2.2em; padding-right:.9em}
.expect{margin-top:16px; padding:16px 20px; border:1px dashed var(--line-strong); border-radius:16px; background:color-mix(in srgb, var(--sunk) 70%, transparent)}
.expect .eyebrow{margin:0 0 4px; color:var(--muted)}
.expect p:last-child{margin:0; font-size:1.02rem}
.prose{margin:0 0 16px; font-size:1.02rem}
.avoid-h{display:flex; align-items:center; gap:8px; margin:26px 0 10px; font-weight:700; color:var(--hard)}
.avoid-h svg{width:20px; height:20px}
.code.avoid{box-shadow:none; border:1px solid color-mix(in srgb, var(--hard) 25%, var(--line)); background:color-mix(in srgb, var(--hard) 3%, var(--code-bg))}
.code.avoid pre{opacity:.86}
.prob.ex{align-items:start}
.prob.ex .check{margin-top:1px}
.prob.ex .diff{margin-top:3px}
.exd > summary{cursor:pointer; list-style:none; font-weight:700; line-height:1.45; display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px}
.exd > summary::-webkit-details-marker{display:none}
.exd > summary::after{content:""; width:8px; height:8px; border-right:2px solid var(--faint); border-bottom:2px solid var(--faint); transform:rotate(45deg); margin:-3px 0 0 2px; transition:transform .15s}
.exd[open] > summary::after{transform:rotate(225deg); margin-top:3px}
.exd > summary:hover{color:var(--accent)}
.exd .n{color:var(--faint); font-weight:400; font-variant-numeric:tabular-nums; margin-right:-4px}
.exd .code{box-shadow:none; border:1px solid var(--line); margin:12px 0 10px; border-radius:14px}
.exd .code pre{font-size:.82rem; padding:12px 0}
.exd .tag.pat{font-weight:600}
.prob.is-done .exd > summary{color:var(--muted)}
.task{margin:10px 0 4px; color:var(--ink)}
.ans > summary{cursor:pointer; color:var(--accent); font-weight:600; font-size:.93rem; display:inline-block; padding:2px 0}
.ans > summary:hover{text-decoration:underline}
.ans p{margin:8px 0 2px; padding:12px 16px; background:var(--note); border-radius:12px; color:var(--ink); line-height:1.55}
.reading-h{margin:36px 0 12px; font-size:1.15rem}
.how.five{grid-template-columns:repeat(3, minmax(0, 1fr))}
.clue .q{display:block}
.clue .from{font-size:.72rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--faint); margin-right:4px}
.clue .sep{color:var(--faint); margin:0 8px}
.clue .py{display:block; margin-top:3px; font-family:var(--f-mono); font-size:.88rem; color:var(--ink)}
.gcta{display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:18px; text-decoration:none; color:var(--ink); margin-top:4px}
.gcta .glyph{width:56px; height:56px; border-radius:16px; background:var(--gb)}
.gcta .txt b{display:block; font-family:var(--f-head); font-size:1.2rem; font-weight:600}
.gcta .txt span{color:var(--muted)}
.seg.wrap{flex-wrap:wrap}
.gal .phead .glyph{background:radial-gradient(120% 90% at 30% 15%, var(--hl), transparent 55%), var(--gb)}
.tbl td a{color:var(--accent); font-family:var(--f-mono); font-size:.84rem; text-decoration:none}
.tbl td a:hover{text-decoration:underline}
@media (max-width: 900px){
  .vs{grid-template-columns:1fr}
  .how.five{grid-template-columns:repeat(2, minmax(0, 1fr))}
}
@media (max-width: 520px){
  .gcta{grid-template-columns:auto minmax(0,1fr)}
  .gcta .btn{grid-column:1 / -1; justify-self:start}
  .how.five{grid-template-columns:1fr}
}

/* ---- CUDA Atlas: experiments, Kaggle cells, lab notebook (from the CUDA Atlas design) ----
   Its rules for classes the other sites share (.meta, .gal) are scoped to CUDA Atlas so Python and Go stay as designed. */
.diff.X{color:var(--g3)}
.code.cell{border:1px solid color-mix(in srgb, var(--g3) 28%, var(--line))}
.code.cell .code-h span::before{content:"▶ "; color:var(--g3)}
.lab-note{display:grid; gap:6px; margin:12px 0 4px}
.lab-note span{font-size:.78rem; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:var(--muted)}
.lab-note input{font:inherit; font-family:var(--f-mono); font-size:.9rem; padding:11px 14px; border-radius:12px; border:1px solid var(--line-strong); background:var(--surface, var(--sunk)); color:var(--ink); min-height:46px; width:100%}
.lab-note input:focus{outline:2px solid var(--accent); outline-offset:1px; border-color:transparent}
.has-note{font-family:var(--f-mono); font-size:.76rem; font-weight:500; color:var(--g3); background:color-mix(in srgb, var(--g3) 10%, transparent); padding:2px 8px; border-radius:999px}
.kag{padding:20px 22px}
.kag-steps{margin:0 0 16px; padding-left:1.3em; display:grid; gap:8px; line-height:1.55}
.kag-steps a{color:var(--accent)}
.kag .code{box-shadow:none}
.btn.ghost{background:transparent; color:var(--accent); border:1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); box-shadow:none; min-height:42px; padding:0 16px; font-size:.95rem}
.btn.ghost:hover{background:color-mix(in srgb, var(--accent) 8%, transparent)}
/* The lab notebook's stage headings are h2 (the page's h1 comes right before them); they keep the design's h3 look. */
.gal h2.reading-h{margin-bottom:12px; line-height:1.3}
[data-site="cuda"] .gal .phead .glyph > svg{width:28px; height:28px}
[data-site="cuda"] .meta dl > div{flex:1 1 0; min-width:0}
[data-site="cuda"] .meta dd{font-size:.88rem; line-height:1.45}
@media (max-width: 640px){ [data-site="cuda"] .meta dl{flex-direction:column; gap:12px} }

/* ================= WCAG AA (hosted app) ================= */
/* The design dims the "avoid" code block to 86% on its red tint, which takes keywords, strings, functions and
   comments below 4.5:1. The block stays marked by its red border, tint and "Avoid" label; its text is not dimmed, and
   its comments move a little toward the ink colour (darker in light mode, lighter in dark mode). */
.code.avoid pre{opacity:1}
.code.avoid .cm{color:color-mix(in srgb, var(--c-cm) 88%, var(--code-ink))}
