/* Python Atlas: what it adds on top of the shared Pattern Atlas sheet (styles.css), loaded after it.
   The block below is the approved design's "Python Atlas additions", unchanged. */
/* ================= 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}
}

/* ================= 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))}
