/* Blog in the new design. Uses the site's tokens (site.css). Classes are .bl-* so nothing else can collide.
   At launch this file replaces the live app/blog/blog.css (class names mapped to the .blog-* ones there). */

/* ---------- index ---------- */
.bl-hero{text-align:center;padding-top:calc(112px + env(safe-area-inset-top,0px))}
.bl-eyebrow{display:inline-flex;align-items:center;height:30px;padding:0 14px;border-radius:999px;background:var(--brand-mist,#F3EFFC);color:var(--brand-deep);font-size:13px;font-weight:600;letter-spacing:-.005em;text-decoration:none}
a.bl-eyebrow:hover{background:#EAE2FC}
.bl-hero h1{margin:18px 0 0;font-size:clamp(40px,6vw,64px);font-weight:600;letter-spacing:-.045em;line-height:1.02}
.bl-hero p{margin:16px auto 0;max-width:520px;font-size:clamp(16px,1.6vw,18px);line-height:1.55;color:var(--ink-2)}

.bl-feat{padding-top:clamp(40px,5vw,64px)}
.bl-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
section.bl-grid{padding-top:20px}

.bl-card{display:flex;flex-direction:column;border-radius:24px;overflow:hidden;background:#fff;color:var(--ink);text-decoration:none;box-shadow:0 0 0 1px var(--line),0 1px 2px rgba(22,19,31,.04);transition:box-shadow .3s ease,transform .3s cubic-bezier(.22,.8,.24,1)}
.bl-card:hover{transform:translateY(-3px);box-shadow:0 0 0 1px rgba(152,115,240,.22),0 18px 40px rgba(73,45,160,.12)}
.bl-img{display:block;aspect-ratio:16/9;overflow:hidden;background:#F3EFFC}
.bl-img:empty{background:url(favicon.svg) center/56px no-repeat,radial-gradient(70% 90% at 20% 10%,#E6DCFD,transparent 70%),linear-gradient(150deg,#F6F2FF,#E9E0FC)}
.bl-img img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .6s cubic-bezier(.22,.8,.24,1)}
.bl-card:hover .bl-img img{transform:scale(1.03)}
.bl-txt{display:flex;flex-direction:column;gap:8px;padding:20px 22px 22px;flex:1}
.bl-txt b{font-size:18px;font-weight:600;letter-spacing:-.02em;line-height:1.3}
.bl-txt>span{font-size:14.5px;line-height:1.5;color:var(--ink-2)}
.bl-txt small{margin-top:auto;padding-top:8px;font-size:13px;color:var(--ink-3)}

.bl-big{display:grid;grid-template-columns:1.25fr 1fr}
.bl-big .bl-img{aspect-ratio:auto;min-height:340px}
.bl-big .bl-txt{justify-content:center;padding:40px 44px;gap:12px}
.bl-big .bl-txt b{font-size:clamp(24px,2.6vw,32px);letter-spacing:-.03em;line-height:1.15}
.bl-big .bl-txt>span{font-size:16px}
.bl-big .bl-txt small{margin-top:6px}

/* ---------- article ---------- */
.bl-post{max-width:1000px;margin:0 auto;padding-top:calc(112px + env(safe-area-inset-top,0px))}
.bl-head{text-align:center;max-width:820px;margin:0 auto}
.bl-head h1{margin:18px 0 0;font-size:clamp(34px,5vw,56px);font-weight:600;letter-spacing:-.04em;line-height:1.06;text-wrap:balance}
.bl-meta{margin:18px 0 0;font-size:14px;color:var(--ink-3)}
.bl-cover{margin:clamp(32px,4vw,48px) 0 0}
.bl-cover img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:28px;box-shadow:0 0 0 1px var(--line),0 24px 60px rgba(73,45,160,.12)}
.bl-cover figcaption{margin-top:12px;text-align:center;font-size:12.5px;color:var(--ink-3)}
.bl-cover figcaption a{color:inherit}

.bl-body{max-width:680px;margin:clamp(40px,5vw,64px) auto 0;font-size:16.5px;line-height:1.7;color:#3A3546}
.bl-body>*:first-child{margin-top:0}
.bl-body p{margin:0 0 22px;padding:0;max-width:none}
.bl-body .lede{font-size:18px;line-height:1.6;color:var(--ink);letter-spacing:-.01em}
.bl-body h2{margin:56px 0 16px;font-size:clamp(23px,2.4vw,28px);font-weight:600;letter-spacing:-.03em;line-height:1.2;color:var(--ink)}
.bl-body h3{margin:36px 0 10px;font-size:18.5px;font-weight:600;letter-spacing:-.02em;line-height:1.3;color:var(--ink)}
.bl-body strong{color:var(--ink);font-weight:500}
.bl-body a{color:var(--brand-deep);text-decoration:underline;text-decoration-color:rgba(118,80,224,.3);text-underline-offset:3px;text-decoration-thickness:1.5px;transition:text-decoration-color .2s}
.bl-body a:hover{text-decoration-color:var(--brand-deep)}
.bl-body ul,.bl-body ol{margin:0 0 24px;padding-left:22px}
.bl-body li{margin:0 0 10px;padding-left:4px}
.bl-body li::marker{color:var(--brand)}
.bl-body ol li::marker{font-weight:600;font-size:.92em}

.bl-body .blog-note{margin:32px 0;padding:22px 26px;border-radius:20px;background:var(--brand-mist,#F3EFFC);color:var(--ink);font-size:15.5px;line-height:1.6}

.bl-body .blog-table{margin:32px 0;border-radius:20px;overflow-x:auto;background:#fff;box-shadow:0 0 0 1px var(--line),0 10px 30px rgba(73,45,160,.06)}
.bl-body table{width:100%;border-collapse:collapse;font-size:15px;line-height:1.5}
.bl-body th{padding:14px 18px;text-align:left;font-weight:500;font-size:13.5px;color:var(--ink-2);background:#F8F6FC;border-bottom:1px solid var(--line)}
.bl-body td{padding:14px 18px;border-top:1px solid #F0EDF5;vertical-align:top;color:#3A3546}
.bl-body tbody tr:first-child td{border-top:0}
.bl-body td:first-child{font-weight:500;color:var(--ink)}

.bl-body .blog-faq{margin-top:64px;padding-top:0}
.bl-body .blog-faq h2{margin-bottom:20px}
.bl-body .blog-faq details{margin-bottom:10px}
.bl-body .blog-faq details p{margin:0;font-size:15.5px}

.bl-post+.close{margin-top:clamp(72px,9vw,112px)}
.bl-grid+.close,section.bl-grid+.close{margin-top:clamp(72px,9vw,112px)}
.bl-more{padding-top:clamp(64px,8vw,96px)}
.bl-more h2{margin:0 0 24px;font-size:clamp(24px,2.6vw,30px);font-weight:600;letter-spacing:-.03em}

@media (max-width:980px){.bl-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.bl-big{grid-template-columns:1fr}.bl-big .bl-img{min-height:0;aspect-ratio:16/9}.bl-big .bl-txt{padding:26px 26px 28px}}
@media (max-width:640px){
  .bl-grid{grid-template-columns:1fr;gap:14px}
  .bl-card{border-radius:20px}
  .bl-body{font-size:16px;line-height:1.7}
  .bl-body .lede{font-size:17px}
  .bl-body h2{margin-top:44px}
  .bl-cover img{border-radius:20px}
  .bl-body .blog-table{border-radius:16px}
  .bl-body th,.bl-body td{padding:12px 14px}
}
.bl-hero p a{color:var(--brand-deep);text-decoration:underline;text-underline-offset:2px}

/* phone tables (11-11): one block per row, the row name on top, each value under its own small label */
@media (max-width:640px){
  .bl-body .blog-table{overflow:visible}
  .bl-body table,.bl-body tbody{display:block}
  .bl-body thead{display:none}
  .bl-body tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:14px;row-gap:12px;padding:16px 18px;border-top:1px solid #F0EDF5}
  .bl-body tbody tr:first-child{border-top:0}
  .bl-body td{min-width:0;padding:0;border:0;font-size:15px;line-height:1.4;color:var(--ink)}
  .bl-body td[data-label]::before{content:attr(data-label);display:block;margin-bottom:3px;font-size:12px;font-weight:400;line-height:1.3;color:var(--ink-3)}
  .bl-body td:first-child{grid-column:1/-1;font-size:15.5px;font-weight:500;text-wrap:balance}
  .bl-body .c2 tr{grid-template-columns:repeat(2,minmax(0,1fr))}
  .bl-body .tx tr{grid-template-columns:minmax(0,1fr);row-gap:10px}
  .bl-body .tx td[data-label]::before{margin-bottom:1px}
  .bl-body .l2 td[data-label]:not(:first-child)::before{min-height:2.6em}
  .bl-body h2{font-size:23px;text-wrap:balance}
  .bl-body h3{font-size:17.5px;text-wrap:balance}
}
/* 11-12 wide tables (five or more columns): a wider block centred on the page on big screens, so no column is squeezed or cut off; short columns (dates, prices) never wrap */
.bl-body th.nw,.bl-body td.nw{white-space:nowrap}
@media (min-width:1101px){
  .bl-body .blog-table.w{width:min(1040px,calc(100vw - 64px));margin-left:calc(50% - min(520px,50vw - 32px));overflow:visible}
  .bl-body .w th,.bl-body .w td{padding:16px 20px}
}
/* below that, a wide table reads as cards like on phones: the row name on top, its values in two columns under small labels */
@media (min-width:641px) and (max-width:1100px){
  .bl-body .blog-table.w{overflow:visible}
  .bl-body .w table,.bl-body .w tbody{display:block}
  .bl-body .w thead{display:none}
  .bl-body .w tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:24px;row-gap:14px;padding:20px 22px;border-top:1px solid #F0EDF5}
  .bl-body .w tbody tr:first-child{border-top:0}
  .bl-body .w td{min-width:0;padding:0;border:0;font-size:15px;line-height:1.45;color:var(--ink)}
  .bl-body .w td[data-label]::before{content:attr(data-label);display:block;margin-bottom:2px;font-size:12px;font-weight:400;line-height:1.3;color:var(--ink-3)}
  .bl-body .w td:first-child{grid-column:1/-1;font-size:16px;font-weight:500}
}
@media (max-width:380px){.bl-body .l2s td[data-label]:not(:first-child)::before{min-height:2.6em}}
/* 11-11 article prose: a flush column on every screen (justified, auto hyphens keep phone gaps even; phones use plain wrap, Safari's pretty wrap shortened every line), no lone word on a last line; short text stays left */
.bl-body p{text-wrap:pretty}
.bl-body>p,.bl-body>section>p,.bl-body .blog-body>p,.bl-body [data-p]>p:not([class]){text-align:justify;hyphens:auto;-webkit-hyphens:auto;hyphenate-limit-chars:7 3 3}
@media (max-width:640px){.bl-body>p,.bl-body>section>p,.bl-body .blog-body>p,.bl-body [data-p]>p:not([class]){hyphenate-limit-chars:6 3 2;text-wrap:wrap}}
.bl-body .pg-mid p{hyphens:manual;-webkit-hyphens:manual}
.bl-body .blog-faq p,.bl-body .blog-note,.bl-body .pg-fn,.bl-body td,.bl-body li{text-align:left;hyphens:manual;-webkit-hyphens:manual}
