/* =====================================================================
   pillar-look.css — the story-library look (owner's mockup, Nov 2026) for every page that has
   the pillar hero (ts-hero): a hero with an illustration, larger hero buttons with an arrow,
   section sub-lines as pills, and step lists as numbered cards with an icon tile.

   It only restyles classes those pages already have (ts-hero, ts-sec, tl-steps, ts-btn), so no
   page markup changes. The link is added by tools/seo-authoring/apply_pillar_look.py.
   The story pages carry their own version (story.css, .st-hero) and are left alone here.

   To change the hero picture on one page, set --pl-art on its <body> or .ts-hero:
       .ts-hero{ --pl-art:url("/assets/your-picture.webp") }
   Tokens: --card, --line, --muted, --ink, --ts-c. Sizes follow the site type scale.
   ===================================================================== */
body .ts-hero:not(.st-hero){
  --pl-art:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 260'%3E%3Cellipse cx='190' cy='232' rx='150' ry='14' fill='%237c3aed' opacity='.10'/%3E%3Crect x='52' y='186' width='110' height='18' rx='6' fill='%237c3aed' opacity='.28'/%3E%3Crect x='44' y='204' width='126' height='20' rx='6' fill='%237c3aed' opacity='.18'/%3E%3Cpath d='M96 70c34-12 62-8 84 10v120c-22-18-50-22-84-10z' fill='%23fff' stroke='%237c3aed' stroke-width='3' stroke-linejoin='round'/%3E%3Cpath d='M264 70c-34-12-62-8-84 10v120c22-18 50-22 84-10z' fill='%23fff' stroke='%237c3aed' stroke-width='3' stroke-linejoin='round'/%3E%3Cg stroke='%237c3aed' stroke-width='3' stroke-linecap='round' opacity='.45' fill='none'%3E%3Cpath d='M112 98c18-5 34-4 52 4'/%3E%3Cpath d='M112 118c18-5 34-4 52 4'/%3E%3Cpath d='M112 138c18-5 34-4 52 4'/%3E%3Cpath d='M112 158c14-4 26-4 38 0'/%3E%3Cpath d='M196 102c18-8 34-9 52-4'/%3E%3Cpath d='M196 122c18-8 34-9 52-4'/%3E%3Cpath d='M196 142c18-8 34-9 52-4'/%3E%3C/g%3E%3Cg transform='rotate(-8 300 60)'%3E%3Crect x='268' y='22' width='72' height='76' rx='8' fill='%23fff' stroke='%237c3aed' stroke-width='2.5'/%3E%3Cg stroke='%237c3aed' stroke-width='2.5' stroke-linecap='round' opacity='.6' fill='none'%3E%3Cpath d='M280 44h30'/%3E%3Cpath d='M280 60h30'/%3E%3Cpath d='M280 76h30'/%3E%3Cpath d='m318 42 4 4 7-8'/%3E%3Cpath d='m318 58 4 4 7-8'/%3E%3Cpath d='m318 74 4 4 7-8'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* hero: text on the left, illustration on the right (wide screens only) */
@media (min-width:1000px){
  body .ts-hero:not(.st-hero) > div{position:relative;padding-right:min(34%,400px);min-height:240px}
  body .ts-hero:not(.st-hero) > div::after{content:"";position:absolute;right:20px;top:8px;width:min(30%,340px);aspect-ratio:36 / 26;pointer-events:none;
    background:var(--pl-art) center / contain no-repeat,radial-gradient(closest-side,color-mix(in srgb,var(--ts-c) 14%,transparent),transparent)}
}

/* hero buttons: larger, with an arrow */
body .ts-hero .de-hero-actions .ts-btn,body .ts-hero .si-hero-actions .ts-btn,body .ts-hero .h2e-hero-actions .ts-btn{display:inline-flex;align-items:center;gap:10px;min-height:52px;padding:0 20px;border-radius:14px;
  font-size:1.0625rem;text-decoration:none}
body .ts-hero .de-hero-actions .ts-btn::after,body .ts-hero .si-hero-actions .ts-btn::after,body .ts-hero .h2e-hero-actions .ts-btn::after{content:"\2192";font-weight:400}
body .ts-hero .de-hero-actions .ts-btn.ghost,body .ts-hero .si-hero-actions .ts-btn.ghost,body .ts-hero .h2e-hero-actions .ts-btn.ghost{background:var(--card);border:1.5px solid color-mix(in srgb,var(--ts-c) 40%,transparent)}

/* section heads: a stronger title, the short line on the right as a quiet pill */
body .ts-sec{align-items:center}
body .ts-sec h2{font-size:1.5rem;letter-spacing:-.015em}
body .ts-sec p{padding:8px 14px;border-radius:999px;background:color-mix(in srgb,var(--ts-c) 8%,transparent);color:var(--ink)}

/* step lists: number, icon tile, divider, a bold line and a smaller line */
body .tl-steps{gap:12px}
body .tl-steps li{min-height:84px;padding:18px 20px 18px 164px;border-radius:18px;font-weight:700;line-height:1.45;
  background:linear-gradient(var(--line),var(--line)) 142px center / 1.5px 56% no-repeat,var(--card);
  box-shadow:0 10px 24px -20px color-mix(in srgb,var(--ts-c) 70%,transparent)}
body .tl-steps li::before{left:20px;top:50%;margin-top:-19px;width:38px;height:38px;font-size:1.0625rem}
body .tl-steps li::after{content:"";position:absolute;left:74px;top:50%;margin-top:-26px;width:52px;height:52px;border-radius:14px;
  background:color-mix(in srgb,var(--ts-c) 9%,transparent)}
body .tl-steps li > small{font-weight:400;margin-top:3px}
body .tl-steps li{--pl-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c3aed' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 5.5A2.5 2.5 0 0 1 5.5 3H11v16H5.5A2.5 2.5 0 0 0 3 21.5z'/%3E%3Cpath d='M21 5.5A2.5 2.5 0 0 0 18.5 3H13v16h5.5a2.5 2.5 0 0 1 2.5 2.5z'/%3E%3C/svg%3E")}
body .tl-steps li:nth-child(5n+2){--pl-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c3aed' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E")}
body .tl-steps li:nth-child(5n+3){--pl-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c3aed' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='4' width='14' height='17' rx='2'/%3E%3Cpath d='M9 4V3h6v1'/%3E%3Cpath d='m8 11 1.5 1.5L12 10'/%3E%3Cpath d='M14 11h2'/%3E%3Cpath d='m8 16 1.5 1.5L12 15'/%3E%3Cpath d='M14 16h2'/%3E%3C/svg%3E")}
body .tl-steps li:nth-child(5n+4){--pl-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c3aed' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 20 1-4L16 5l3 3L8 19z'/%3E%3Cpath d='m14 7 3 3'/%3E%3C/svg%3E")}
body .tl-steps li:nth-child(5n+5){--pl-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c3aed' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9a5 5 0 0 1 5-5h9'/%3E%3Cpath d='m15 1 3 3-3 3'/%3E%3Cpath d='M20 15a5 5 0 0 1-5 5H6'/%3E%3Cpath d='m9 23-3-3 3-3'/%3E%3C/svg%3E")}
body .tl-steps li::after{background:var(--pl-ic) center / 26px 26px no-repeat,color-mix(in srgb,var(--ts-c) 9%,transparent)}

/* tables: every row is its own card with a number tile and a divider, as in the mockup.
   Wide screens only; on phones the rows are already stacked cards. Tables that carry their
   own number column (td.de-num) are left as they are. */
@media screen and (min-width:761px){
  body .tl-wrap:not(:has(td.de-num)){border:0;border-radius:0;background:none;overflow:visible}
  body .tl-table:not(:has(td.de-num)){border-collapse:separate;border-spacing:0 10px;margin:-6px 0;counter-reset:plrow}
  body .tl-table:not(:has(td.de-num)) th{padding:2px 18px;background:none;border:0}
  body .tl-table:not(:has(td.de-num)) th:first-child{padding-left:88px}
  body .tl-table:not(:has(td.de-num)) tbody tr{counter-increment:plrow}
  body .tl-table:not(:has(td.de-num)) tbody td{padding:16px 18px;vertical-align:middle;background:var(--card);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
  body .tl-table:not(:has(td.de-num)) tbody tr:last-child td{border-bottom:1px solid var(--line)}
  body .tl-table:not(:has(td.de-num)) tbody tr td:first-child{position:relative;padding-left:88px;border-left:1px solid var(--line);border-radius:16px 0 0 16px}
  body .tl-table:not(:has(td.de-num)) tbody td:last-child{border-right:1px solid var(--line);border-radius:0 16px 16px 0}
  body .tl-table:not(:has(td.de-num)) tbody td:only-child{border-radius:16px}
  body .tl-table:not(:has(td.de-num)) tbody td:first-child::before{content:counter(plrow);position:absolute;left:18px;top:50%;margin-top:-20px;width:40px;height:40px;border-radius:12px;
    display:grid;place-items:center;font-size:1.0625rem;font-weight:700;color:var(--ts-c);background:color-mix(in srgb,var(--ts-c) 10%,transparent);text-decoration:none}
  body .tl-table:not(:has(td.de-num)) tbody td:first-child::after{content:"";position:absolute;left:72px;top:22%;bottom:22%;width:1.5px;background:color-mix(in srgb,var(--ts-c) 25%,transparent)}
  body .tl-table:not(:has(td.de-num)) tbody tr:hover td{border-color:color-mix(in srgb,var(--ts-c) 35%,transparent)}
}

@media (max-width:760px){
  body .ts-sec p{border-radius:14px}
  body .ts-hero .de-hero-actions .ts-btn,body .ts-hero .si-hero-actions .ts-btn,body .ts-hero .h2e-hero-actions .ts-btn{justify-content:center;text-align:center}
  body .tl-steps li{min-height:0;padding:14px 14px 14px 66px;background:var(--card)}
  body .tl-steps li::before{left:14px;top:14px;margin-top:0;width:34px;height:34px}
  body .tl-steps li::after{display:none}
}
@media print{body .ts-hero > div::after{display:none}}
