/* Exercise guides (class-exercise-guides.php, D-052) + the aphasia-type pages
   (class-aphasia-type-page.php), one visual system for both page families.
   Scoped to .asg-wrap. Pill recipe = the signup page's skill pills (D-051):
   tint at both ends fading to white, dark border, black letters. Hub skill
   colours (practice-home.css). Every "1 · 2 · 3" section uses the same card
   grid (Lyda 11-05: steps must look like the mode cards). No !important; the
   theme link colour is beaten by specificity (.asg-wrap a.asg-cta), the kit's
   h1 by body.as-guide-page (0,2,2). */

.asg-wrap {
    --asg-ink: #1e262c;
    --asg-muted: #556069;
    --asg-line: #e3e8eb;
    --asg-green: #1a9d57;
    --asg-green-ink: #0f7a41;
    --asg-green-soft: #e2f3e8;
    --asg-gold: #b07d10;
    --asg-gold-soft: #f6ead0;
    --asg-card: #ffffff;
    --asg-teal: #0f7c86;
    max-width: 760px;
    margin: 0 auto;
    padding: 4px 16px 40px;
    color: var(--asg-ink);
    font-size: 17px;
    line-height: 1.55;
}
.asg-wrap * { box-sizing: border-box; }
body .asg-wrap h2 { font-size: 1.45rem; line-height: 1.25; margin: 0 0 .4em; color: var(--asg-ink); }
body .asg-wrap h3 { font-size: 1.1rem; line-height: 1.25; margin: 0 0 .3em; color: var(--asg-ink); }
body .asg-wrap p { margin: 0 0 .7em; font-size: inherit; }
body .asg-wrap .asg-note { color: var(--asg-muted); font-size: .95rem; margin-top: .6em; }
.asg-wrap a.asg-link, .asg-wrap a.asg-link:visited { color: var(--asg-green-ink); font-weight: 700; text-decoration: underline; }

/* theme page title (Hello + kit h1 = 112px) sized like a page, not a billboard */
body.as-guide-page .page-header h1.entry-title { font-size: clamp(28px, 5vw, 40px); line-height: 1.15; text-align: center; max-width: 760px; margin: 12px auto 0; padding: 0 16px; }
body.as-guide-page .page-header { padding-bottom: 0; }

/* hero: "Exercise guide" → Practice button → snapshot of the widget */
.asg-hero { text-align: center; padding: 4px 0 6px; }
body .asg-wrap .asg-kicker { text-transform: uppercase; letter-spacing: .08em; font-size: 1.02rem; font-weight: 700; color: var(--asg-muted); margin: 0 0 .8em; }
.asg-wrap a.asg-cta, .asg-wrap a.asg-cta:visited {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 52px; padding: 12px 26px; border-radius: 12px;
    background: var(--asg-green); color: #ffffff; font-weight: 700; font-size: 1.08rem;
    text-decoration: none; box-shadow: 0 6px 16px rgba(26, 157, 87, .3);
}
.asg-wrap a.asg-cta:hover, .asg-wrap a.asg-cta:focus-visible { background: var(--asg-green-ink); color: #ffffff; }
.asg-shot { display: block; width: 100%; max-width: 300px; height: auto; margin: 20px auto 0; border-radius: 12px; border: 1px solid var(--asg-line); box-shadow: 0 1px 2px rgba(30, 38, 44, .05), 0 10px 28px rgba(30, 38, 44, .10); }

/* sections */
/* each section on its own tinted band */
.asg-sec { margin-top: 18px; padding: 20px 18px 18px; background: #f3f6f7; border: 1px solid var(--asg-line); border-radius: 18px; }
.asg-sec#who { background: #e0eff0; border-color: #cfe3e5; }
.asg-sec#how { background: var(--asg-green-soft); border-color: #cfe6d8; }
.asg-sec#modes { background: #eef2fb; border-color: #d9e2f5; }
.asg-sec#through { background: #fdf6e3; border-color: #f0e4c4; }
.asg-sec#method { background: #f3f6f7; }
.asg-sec#next { background: #f5f0ff; border-color: #e3d9f7; }
.asg-sec#join { background: #ffffff; }
.asg-sec#read { background: #f3f6f7; }

/* the shared 1·2·3 card grid (steps, modes, helpers) */
.asg-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.asg-cards.is-2 { grid-template-columns: repeat(2, 1fr); }
.asg-card { position: relative; min-width: 0; overflow-wrap: anywhere; background: var(--asg-card); border: 2px solid var(--asg-line); border-radius: 14px; padding: 14px; }
body .asg-wrap .asg-card h3 { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; line-height: 1.25; margin: 0 0 .35em; }
.asg-card h3 .wp-exclude-emoji { font-size: 1.25em; line-height: 1; }
body .asg-wrap .asg-card p { font-size: .97rem; color: var(--asg-muted); margin: 0; }
.asg-card .asg-num { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 28px; height: 28px; border-radius: 999px; background: var(--asg-green-soft); color: var(--asg-green-ink); font-size: .95rem; font-weight: 700; }
.asg-clip { display: block; width: 100%; height: auto; margin-top: 10px; border-radius: 10px; border: 1px solid var(--asg-line); background: #f3f6f7; }

/* method */
.asg-method p { background: #ffffff; border: 1px solid var(--asg-line); border-radius: 12px; padding: 14px 16px; }

/* join cards */
.asg-plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.asg-wrap a.asg-plan, .asg-wrap a.asg-plan:visited { display: flex; min-width: 0; flex-direction: column; background: var(--asg-card); border: 2px solid var(--asg-line); border-radius: 16px; padding: 18px 16px 16px; text-decoration: none; color: var(--asg-ink); box-shadow: 0 1px 2px rgba(30, 38, 44, .05), 0 6px 18px rgba(30, 38, 44, .06); transition: transform .12s ease, box-shadow .12s ease; }
.asg-wrap a.asg-plan:hover, .asg-wrap a.asg-plan:focus-visible { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(30, 38, 44, .06), 0 14px 34px rgba(30, 38, 44, .12); color: var(--asg-ink); }
body .asg-wrap .asg-plan h3 { margin: 0; font-size: 1.15rem; }
body .asg-wrap .asg-plan .asg-price { margin: 8px 0 2px; font-size: 1.9rem; font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.asg-plan .asg-price small { font-size: .95rem; font-weight: 700; color: var(--asg-muted); letter-spacing: 0; }
.asg-plan .asg-tag { display: inline-block; align-self: flex-start; margin: 6px 0 10px; font-size: .8rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--asg-gold-soft); color: var(--asg-gold); }
.asg-plan ul { list-style: none; margin: 0 0 14px; padding: 0; color: var(--asg-muted); font-size: .95rem; line-height: 1.4; flex: 1; }
.asg-plan li { display: flex; gap: 7px; margin: 0 0 5px; }
.asg-plan li::before { content: "✓"; flex: none; font-weight: 700; color: var(--asg-green-ink); }
.asg-plan .asg-btn { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 12px; border-radius: 12px; font-weight: 700; font-size: 1rem; text-align: center; color: #ffffff; background: var(--asg-green); }
.asg-wrap a.asg-plan.is-free { border-color: var(--asg-green); }
.asg-wrap a.asg-plan.is-premium { border-color: var(--asg-gold); }
.asg-wrap a.asg-plan.is-premium .asg-btn { background: var(--asg-gold); color: var(--asg-ink); }

/* read more */
.asg-read ul { margin: 0; padding-left: 1.2em; }
.asg-read li { margin: 0 0 .4em; }

/* pills — skill coloured (hub palette) */
.asg-pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 4px; }
.asg-wrap a.asg-pill, .asg-wrap a.asg-pill:visited {
    --sk: #2563EB; --sk-ink: #1D4ED8; --sk-bg: #EBF2FE;
    display: inline-flex; align-items: center; gap: 7px;
    min-height: 44px; padding: 8px 16px 8px 12px;
    border: 2px solid var(--sk-ink);
    border-color: color-mix(in srgb, var(--sk) 55%, #1e262c);
    border-radius: 999px;
    background: var(--sk-bg);
    background: linear-gradient(90deg, var(--sk-bg) 0%, #ffffff 50%, var(--sk-bg) 100%);
    color: var(--asg-ink); font-weight: 700; font-size: 1rem; line-height: 1.2;
    text-decoration: none;
    transition: transform .12s ease, box-shadow .12s ease;
}
.asg-wrap a.asg-pill:hover, .asg-wrap a.asg-pill:focus-visible { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(30, 38, 44, .14); color: var(--asg-ink); }
.asg-pill .wp-exclude-emoji { font-size: 1.15em; line-height: 1; }
.asg-pill small { font-weight: 400; color: var(--asg-muted); font-size: .85em; }
.asg-pill .asg-pill-tag { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 2px 7px; border-radius: 999px; background: var(--asg-gold-soft); color: var(--asg-gold); }
.asg-wrap a.asg-pill.is-speaking  { --sk: #7C3AED; --sk-ink: #6D28D9; --sk-bg: #F5F0FF; }
.asg-wrap a.asg-pill.is-listening { --sk: #D97706; --sk-ink: #B45309; --sk-bg: #FEF6E7; }
.asg-wrap a.asg-pill.is-reading   { --sk: #2563EB; --sk-ink: #1D4ED8; --sk-bg: #EBF2FE; }
.asg-wrap a.asg-pill.is-writing   { --sk: #DC2626; --sk-ink: #B91C1C; --sk-bg: #FDEDED; }
.asg-wrap a.asg-pill.is-everyday  { --sk: #059669; --sk-ink: #047857; --sk-bg: #E8F6EF; }
.asg-wrap a.asg-pill.is-thinking  { --sk: #DB2777; --sk-ink: #BE185D; --sk-bg: #FDEBF3; }
.asg-wrap a.asg-pill.is-type      { --sk: #0f7c86; --sk-ink: #0f7c86; --sk-bg: #e0eff0; }

/* type-page strip ([aphasia_type_exercises], kept for other uses) */
.asg-type-strip { padding-top: 10px; padding-bottom: 28px; }

/* pills grouped under a small skill label (type pages): the label carries the
   pill colour, so one colour reads as one skill, not decoration */
.asg-skill { margin-top: 14px; }
.asg-skill + .asg-skill { margin-top: 18px; }
body .asg-wrap h3.asg-skill-label { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: .9rem; font-weight: 700; line-height: 1.3; letter-spacing: .06em; text-transform: uppercase; color: var(--sk-ink, var(--asg-muted)); }
.asg-skill-label .wp-exclude-emoji { font-size: 1.15em; line-height: 1; }
.asg-wrap .asg-skill.is-speaking  { --sk-ink: #6D28D9; }
.asg-wrap .asg-skill.is-listening { --sk-ink: #B45309; }
.asg-wrap .asg-skill.is-reading   { --sk-ink: #1D4ED8; }
.asg-wrap .asg-skill.is-writing   { --sk-ink: #B91C1C; }
.asg-wrap .asg-skill.is-everyday  { --sk-ink: #047857; }
.asg-wrap .asg-skill.is-thinking  { --sk-ink: #BE185D; }

/* ── Aphasia-type pages ([aphasia_type_page], class-aphasia-type-page.php) ──
   The whole page body of CPT aphasia-typescpt, on the guide system above.
   The body.single-aphasia-typescpt prefix beats the kit's h1 / ul / li. */
body.single-aphasia-typescpt .asg-type-page { padding-top: 20px; }
body.single-aphasia-typescpt .asg-wrap h1.asg-title { font-size: clamp(30px, 5vw, 42px); line-height: 1.15; font-weight: 700; letter-spacing: -.01em; color: var(--asg-ink); margin: 0 0 .4em; }
body.single-aphasia-typescpt .asg-wrap .asg-type-hero .asg-kicker { margin-bottom: .5em; }
body.single-aphasia-typescpt .asg-wrap p.asg-lede { max-width: 60ch; margin: 0 auto 1.1em; font-size: 1.15rem; line-height: 1.5; color: var(--asg-ink); }
.asg-type-hero { padding-bottom: 8px; }

.asg-sec#looks { background: #eef2fb; border-color: #d9e2f5; }
.asg-sec#day { background: #fdf6e3; border-color: #f0e4c4; }
.asg-sec#skills { background: #f3f6f7; }
.asg-sec#approaches { background: #e0eff0; border-color: #cfe3e5; }
.asg-sec#practice { background: #ffffff; }

.asg-type-page .asg-card { padding: 16px 18px; }
.asg-cards.is-1 { grid-template-columns: 1fr; }

/* a bulleted list in a white card (characteristics, approaches) */
body.single-aphasia-typescpt .asg-wrap ul.asg-list { list-style: none; margin: 0; padding: 0; }
body.single-aphasia-typescpt .asg-wrap ul.asg-list li { position: relative; margin: 0 0 .6em; padding: 0 0 0 1.35em; font-size: 1rem; line-height: 1.5; color: var(--asg-ink); }
body.single-aphasia-typescpt .asg-wrap ul.asg-list li:last-child { margin-bottom: 0; }
.asg-wrap ul.asg-list li::before { content: ""; position: absolute; left: .25em; top: .6em; width: 8px; height: 8px; border-radius: 999px; background: var(--asg-teal); }

/* day-to-day prose */
body.single-aphasia-typescpt .asg-wrap .asg-prose p { margin: 0 0 .7em; font-size: 1rem; line-height: 1.55; color: var(--asg-ink); }
body.single-aphasia-typescpt .asg-wrap .asg-prose p:last-child { margin-bottom: 0; }

/* language-skill chips: affected = warm, still strong = green */
body.single-aphasia-typescpt .asg-wrap ul.asg-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: .3em 0 0; padding: 0; }
body.single-aphasia-typescpt .asg-wrap ul.asg-chips li { margin: 0; padding: 5px 12px; border-radius: 999px; border: 1px solid #f0e4c4; background: #fdf6e3; color: var(--asg-ink); font-size: .95rem; line-height: 1.3; }
body.single-aphasia-typescpt .asg-wrap .asg-card.is-strong ul.asg-chips li { border-color: #cfe6d8; background: var(--asg-green-soft); }

/* footer link row */
.asg-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 22px; padding: 0 4px; }

@media (max-width: 768px) {
    .asg-cards, .asg-cards.is-2, .asg-plans { grid-template-columns: 1fr; }
    .asg-wrap { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .asg-wrap a.asg-pill, .asg-wrap a.asg-pill:hover, .asg-wrap a.asg-plan, .asg-wrap a.asg-plan:hover { transition: none; transform: none; }
}
