
.amde-grid-lesson {
  --ink: #182033;
  --muted: #596579;
  --line: #dce3ed;
  --blue: #2855d9;
  --lime: #b8f34b;
  color: var(--ink);
  font-family: inherit;
  line-height: 1.65;
}
.amde-grid-lesson * { box-sizing: border-box; }

.amde-grid-lesson .ag-hero {
  background: #111827;
  color: #fff;
  padding: clamp(24px, 5vw, 48px);
  border-radius: 18px;
  margin-bottom: 30px;
}
.amde-grid-lesson .ag-eyebrow {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 800;
  color: var(--lime);
}
.amde-grid-lesson .ag-hero h1,
.amde-grid-lesson .ag-hero h2 {
  color: #fff;
  font-size: clamp(2.5rem, 8vw, 5rem);
  line-height: .98;
  letter-spacing: -.055em;
  margin: 14px 0;
}
.amde-grid-lesson .ag-hero p { color: #e0e7f1; }
.amde-grid-lesson .ag-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.amde-grid-lesson .ag-chip {
  border: 1px solid #69758a;
  border-radius: 999px;
  padding: 4px 11px;
  font-size: .82rem;
  color: #fff;
}
.amde-grid-lesson .ag-section { margin: 32px 0; }
.amde-grid-lesson .ag-section > h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
  margin-bottom: 10px;
}
.amde-grid-lesson .ag-section h3 { line-height: 1.25; }
.amde-grid-lesson .ag-muted { color: var(--muted); }

.amde-grid-lesson .ag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 14px;
}
.amde-grid-lesson .ag-card {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 20px;
  background: #fff;
  min-width: 0;
}
.amde-grid-lesson .ag-card h3 {
  font-size: 1.12rem;
  margin: 0 0 8px;
}
.amde-grid-lesson .ag-card p:last-child { margin-bottom: 0; }
.amde-grid-lesson .ag-number {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #e8edff;
  color: #2447b6;
  font-weight: 800;
  margin-bottom: 12px;
}
.amde-grid-lesson .ag-callout {
  background: #eef3ff;
  border-left: 4px solid var(--blue);
  padding: 14px 17px;
  border-radius: 7px;
  margin: 16px 0;
}
.amde-grid-lesson .ag-callout.ag-green {
  background: #f0f8e8;
  border-left-color: #679328;
}
.amde-grid-lesson .ag-callout.ag-yellow {
  background: #f5f9e8;
  border-left-color: #91bd30;
}

.amde-grid-lesson .ag-code {
  background: #101827;
  color: #eef3ff;
  border-radius: 10px;
  padding: 16px;
  overflow-x: auto;
  margin: 12px 0 20px;
  font: .86rem/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre;
  tab-size: 2;
}
.amde-grid-lesson .ag-code code {
  font: inherit;
  color: inherit;
  background: transparent;
  padding: 0;
}
.amde-grid-lesson .ag-code .ag-tag { color: #ff9b78; }
.amde-grid-lesson .ag-code .ag-attr { color: #80dcf3; }
.amde-grid-lesson .ag-code .ag-value { color: #d6c0ff; }
.amde-grid-lesson .ag-code .ag-text { color: #fff1a8; }
.amde-grid-lesson .ag-code .ag-comment { color: #9cafaa; }
.amde-grid-lesson .ag-code .ag-css-prop { color: #80dcf3; }
.amde-grid-lesson .ag-code .ag-css-value { color: #d6c0ff; }

.amde-grid-lesson .ag-code-label {
  display: inline-block;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 6px;
  margin: 8px 0 0;
}
.amde-grid-lesson .ag-html-label {
  background: #ffe3d9;
  color: #87351f;
}
.amde-grid-lesson .ag-css-label {
  background: #d9f6ff;
  color: #134e68;
}
.amde-grid-lesson .ag-inline {
  background: #edf1f7;
  color: #182033;
  padding: 2px 5px;
  border-radius: 4px;
  font: .92em ui-monospace, monospace;
  overflow-wrap: anywhere;
}
.amde-grid-lesson .ag-steps li { margin: 8px 0; }
.amde-grid-lesson .ag-checklist {
  list-style: none;
  padding: 0;
}
.amde-grid-lesson .ag-checklist li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.amde-grid-lesson .ag-checklist li:before {
  content: "□";
  font-weight: 800;
  color: var(--blue);
  margin-right: 10px;
}
.amde-grid-lesson .ag-footer {
  background: #111827;
  color: #fff;
  padding: 24px;
  border-radius: 13px;
  margin-top: 28px;
}
.amde-grid-lesson .ag-footer h2 { color: #fff; }
.amde-grid-lesson .ag-footer p { color: #e0e7f1; }
.amde-grid-lesson .ag-footer .ag-eyebrow { color: var(--lime); }

@media (max-width: 600px) {
  .amde-grid-lesson .ag-card { padding: 15px; }
  .amde-grid-lesson .ag-code {
    font-size: .79rem;
    padding: 13px;
  }
  .amde-grid-lesson .ag-hero { border-radius: 12px; }
}



/* AMDE 155 — Week 02 lesson styles. Scoped so they do not affect the rest of WordPress. */
.amde-grid-lesson {
  --ag-ink: #172033;
  --ag-muted: #5b6474;
  --ag-paper: #f7f8fb;
  --ag-line: #dfe4ec;
  --ag-blue: #3157d5;
  --ag-green: #dff5e8;
  --ag-yellow: #fff2cf;
  --ag-orange: #f28b45;
  color: var(--ag-ink);
  background: var(--ag-paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.amde-grid-lesson *,
.amde-grid-lesson *::before,
.amde-grid-lesson *::after { box-sizing: border-box; }
.amde-grid-lesson .ag-hero {
  background: #111827;
  color: #fff;
  padding: clamp(28px, 6vw, 64px);
  border-radius: 20px;
  margin: 0 0 30px;
}
.amde-grid-lesson .ag-eyebrow {
  color: #f5a45b;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 800;
}
.amde-grid-lesson .ag-hero h1 {
  color: #fff;
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1.02;
  letter-spacing: -.045em;
  margin: 14px 0 18px;
}
.amde-grid-lesson .ag-hero p { color: #e1e7f0; max-width: 780px; font-size: 1.08rem; }
.amde-grid-lesson .ag-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.amde-grid-lesson .ag-chip {
  display: inline-block;
  border: 1px solid #667085;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: .8rem;
  color: #fff;
}
.amde-grid-lesson .ag-section {
  margin: 28px 0;
  padding: clamp(20px, 4vw, 34px);
  background: #fff;
  border: 1px solid var(--ag-line);
  border-radius: 16px;
}
.amde-grid-lesson .ag-section > h2 {
  color: var(--ag-ink);
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.2;
  letter-spacing: -.025em;
  margin: 0 0 16px;
}
.amde-grid-lesson h3 { color: var(--ag-ink); font-size: 1.12rem; line-height: 1.35; margin: 22px 0 8px; }
.amde-grid-lesson p { margin: 10px 0 16px; }
.amde-grid-lesson a { color: var(--ag-blue); text-decoration: underline; text-underline-offset: 3px; }
.amde-grid-lesson .ag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 14px;
  margin: 20px 0;
}
.amde-grid-lesson .ag-card {
  min-width: 0;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--ag-line);
  border-radius: 13px;
}
.amde-grid-lesson .ag-card h3:first-child { margin-top: 0; }
.amde-grid-lesson .ag-number {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #e8edff;
  color: #2447b6;
  font-weight: 800;
  margin-bottom: 10px;
}
.amde-grid-lesson .ag-callout {
  background: #eef3ff;
  border-left: 4px solid var(--ag-blue);
  padding: 14px 17px;
  border-radius: 8px;
  margin: 18px 0;
}
.amde-grid-lesson .ag-callout.ag-green { background: #e9f8ef; border-left-color: #2e9660; }
.amde-grid-lesson .ag-callout.ag-yellow { background: var(--ag-yellow); border-left-color: #e0a329; }
.amde-grid-lesson .ag-code-label {
  display: inline-block;
  margin: 12px 0 0;
  padding: 5px 10px;
  border-radius: 7px 7px 0 0;
  background: #e8edff;
  color: #2447b6;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.amde-grid-lesson .ag-html-label { background: #e8edff; color: #2447b6; }
.amde-grid-lesson pre.ag-code {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 0 18px;
  padding: 17px;
  overflow-x: auto;
  white-space: pre;
  background: #101827;
  color: #eef3ff;
  border-radius: 0 10px 10px 10px;
  font: .88rem/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  tab-size: 2;
}
.amde-grid-lesson pre.ag-code code {
  display: block;
  padding: 0;
  margin: 0;
  background: transparent;
  color: inherit;
  border: 0;
  font: inherit;
  white-space: inherit;
}
.amde-grid-lesson .ag-tag { color: #8fc8ff; }
.amde-grid-lesson .ag-attr { color: #ffd479; }
.amde-grid-lesson .ag-value { color: #b9edc8; }
.amde-grid-lesson .ag-text { color: #b9edc8; }
.amde-grid-lesson .ag-comment { color: #a3adbd; font-style: italic; }
.amde-grid-lesson code.ag-inline {
  padding: .12em .38em;
  background: #edf0f6;
  border-radius: 5px;
  color: #243b73;
  font: .9em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-wrap: anywhere;
}
.amde-grid-lesson ul,
.amde-grid-lesson ol { padding-left: 1.5rem; margin: 10px 0 18px; }
.amde-grid-lesson li { margin: 7px 0; padding-left: 2px; }
.amde-grid-lesson .ag-steps li::marker { color: var(--ag-blue); font-weight: 800; }
.amde-grid-lesson .ag-checklist { list-style: none; padding-left: 0; }
.amde-grid-lesson .ag-checklist li { padding: 8px 0; border-bottom: 1px solid var(--ag-line); }
.amde-grid-lesson .ag-checklist li::before { content: "□"; color: var(--ag-blue); font-weight: 800; margin-right: 10px; }
.amde-grid-lesson .ag-footer {
  background: #111827;
  color: #fff;
  padding: clamp(24px, 5vw, 42px);
  border-radius: 16px;
  margin: 30px 0 0;
}
.amde-grid-lesson .ag-footer h2 { color: #fff; font-size: clamp(1.6rem, 4vw, 2.5rem); line-height: 1.15; margin: 12px 0; }
.amde-grid-lesson .ag-footer p { color: #e1e7f0; }
@media screen and (max-width: 600px) {
  .amde-grid-lesson { font-size: 15px; }
  .amde-grid-lesson .ag-hero { border-radius: 13px; padding: 24px 20px; }
  .amde-grid-lesson .ag-section { padding: 19px 16px; margin: 18px 0; }
  .amde-grid-lesson .ag-card { padding: 15px; }
  .amde-grid-lesson pre.ag-code { font-size: .78rem; padding: 13px; }
  .amde-grid-lesson .ag-chips { gap: 6px; }
}
