/* AEO editorial layer; shared family tokens stay in brand.css. */
.article-head { position: static; inset: auto; z-index: auto; background: transparent; backdrop-filter: none; }
.hero-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 32px; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 5px; }
.text-link:hover { text-decoration-color: var(--ink); }
.context-section { border-bottom: 1px solid var(--line); }
.context-lead { max-width: 64ch; font-size: 18px; color: var(--muted); line-height: 1.9; margin: 22px 0 32px; }
.context-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; }
.context-grid article { border-top: 1px solid var(--line-strong); padding-top: 24px; }
.context-grid h3 { font-size: 20px; margin: 14px 0 10px; letter-spacing: -.025em; }
.context-grid p { font-size: 16px; color: var(--muted); margin: 0; line-height: 1.85; }
.context-foot { margin: 32px 0 0; max-width: 90ch; font-size: 14px; color: var(--muted); }
.context-foot a { text-decoration: underline; text-underline-offset: 4px; }
.notes-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.note-card { position: relative; display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .2s; }
.note-card:hover, .note-card:focus-within { border-color: var(--ink); }
.note-card h3 { font-size: 22px; line-height: 1.5; letter-spacing: -.035em; margin: 12px 0 16px; }
.note-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.note-card p { font-size: 16px; line-height: 1.85; color: var(--muted); margin: 0 0 28px; }
.note-meta { margin-top: auto; font-size: 12px; color: var(--quiet); font-family: var(--mono); }
.note-topics { display: flex; flex-wrap: wrap; gap: 10px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.note-topics a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border: 1px solid var(--line); border-radius: 30px; font-size: 14px; }
.note-topics a:hover { background: var(--ink); color: var(--paper); }
.note-group { padding: 48px 0 16px; }
.note-group .notes-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.note-cta { margin: 48px 0; padding: 36px; background: var(--subtle); border: 1px solid var(--line); border-radius: var(--radius); }
.note-cta h2 { margin: 12px 0 16px; }
.note-cta p { max-width: 64ch; font-size: 16px; color: var(--muted); line-height: 1.85; margin-bottom: 24px; }
.note-cta .text-link { margin-left: 20px; }
.article-head h1 { max-width: 26ch; }
.article-head .lead { max-width: 64ch; }
.prose { max-width: 72ch; font-size: 17px; line-height: 1.95; }
.prose > p { margin-bottom: 24px; }
.prose h2 { margin-top: 52px; margin-bottom: 18px; line-height: 1.5; }
.prose a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-strong); }
.prose a:hover { text-decoration-color: var(--ink); }
.prose .summary { border: 1px solid var(--line); border-left: 3px solid var(--ink); border-radius: 0 var(--radius) var(--radius) 0; padding: 24px; }
.field-note { padding: 24px; background: var(--subtle); border-radius: var(--radius); margin: 28px 0; }
.field-note > strong { display: block; font-size: 14px; margin-bottom: 12px; }
.field-note p { margin: 0; font-size: 16px; color: var(--muted); }
.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0; }
.before-after > div { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.before-after > div:last-child { background: var(--subtle); }
.before-after p { margin-bottom: 0; font-size: 16px; }
.prose .table-scroll { overflow-x: auto; margin: 28px 0; }
.prose caption { text-align: left; font-size: 14px; font-weight: 600; color: var(--ink); padding-bottom: 14px; }
.prose th[scope="row"] { font-family: var(--sans); font-size: 14px; letter-spacing: 0; font-weight: 600; width: 24%; }
.prose .source-note { font-size: 13px; color: var(--quiet); border-top: 1px solid var(--line); padding-top: 24px; margin-top: 36px; }
.prose .checklist li { margin-bottom: 18px; }
@media(max-width:820px) {
  .notes-grid, .context-grid { grid-template-columns: 1fr; }
  .note-card { padding: 24px; }
  .note-card h3 { font-size: 22px; }
  .context-grid { gap: 24px; }
  .note-cta { padding: 28px; }
}
@media(max-width:540px) {
  .note-group .notes-grid, .before-after { grid-template-columns: 1fr; }
  .note-cta { padding: 24px; }
  .note-cta .text-link { display: flex; margin: 12px 0 0; }
  .note-cta .btn { width: 100%; justify-content: center; }
  .prose { font-size: 16px; }
  /* Keep table headers associated with cells; scroll instead of removing them. */
  .prose .table-scroll table { display: table; min-width: 520px; }
  .prose .table-scroll thead { display: table-header-group; }
  .prose .table-scroll tbody { display: table-row-group; }
  .prose .table-scroll tr { display: table-row; }
  .prose .table-scroll th, .prose .table-scroll td { display: table-cell; padding: 12px; border-bottom: 1px solid var(--line); }
}
