/* Templates and Guides hubs. Loads after /styles.css. The hero stage (.tp-stage) and the closing panel (.tp-cta) are shared by both. */

/* ── Hero stage: the live desk photo with a copyable record laid over it ── */
.tp-hero .rot { min-height: 0; }
.tp-hero .hero-note strong { font-weight: 600; color: var(--fg-2); }
.tp-stage { position: relative; max-width: 1080px; margin: 64px auto 0; }
.tp-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 8.2; background: var(--panel); }
.tp-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.6s var(--ease); }
.tp-stage.in .tp-photo img { transform: none; }
.tp-preview { text-align: left; position: absolute; right: clamp(16px, 4vw, 48px); bottom: -48px; width: min(380px, 44%); background: #fff; border-radius: 22px; padding: 18px 20px 14px; box-shadow: 0 30px 60px -24px rgba(16, 29, 46, .35), 0 2px 8px rgba(16, 29, 46, .06); transform: rotate(1.5deg); transition: transform .6s var(--ease); }
.tp-stage:hover .tp-preview { transform: rotate(0) translateY(-4px); }
.tp-preview__bar { display: flex; justify-content: space-between; align-items: center; font-weight: 500; font-size: 15px; letter-spacing: -.02em; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.tp-preview__bar em { font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--green); background: var(--green-soft); border-radius: 999px; padding: 3px 9px; }
.tp-preview dl { display: grid; gap: 0; margin-top: 4px; }
.tp-preview dl div { display: grid; grid-template-columns: 38% 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px solid #f0efea; font-size: 12.5px; line-height: 1.4; }
.tp-preview dt { color: var(--fg-2); }
.tp-preview dd { color: var(--fg); }
.tp-preview mark { background: var(--gold-soft); color: var(--gold-ink); border-radius: 4px; padding: 0 3px; }
.tp-preview figcaption { font-size: 11.5px; color: var(--muted); margin-top: 8px; }
.tp-proof { position: absolute; left: clamp(16px, 4vw, 48px); bottom: 32px; animation: fxbob 6s ease-in-out infinite; }
@keyframes fxbob { 50% { transform: translateY(-8px); } }

/* ── Which template: situation on the left, the template on the right ── */
.tp-pick { max-width: 920px; margin: 48px auto 0; background: var(--panel); border-radius: var(--radius); padding: 10px; display: grid; gap: 4px; }
.tp-pick a { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 18px 18px 24px; border-radius: 24px; transition: background-color .2s; }
.tp-pick a:hover { background: #fff; }
.tp-need { font-size: clamp(16px, 1.6vw, 19px); letter-spacing: -.025em; line-height: 1.35; }
.tp-use { flex: none; display: inline-flex; align-items: center; gap: 7px; background: #fff; border-radius: 999px; padding: 9px 14px 9px 16px; font-size: 14px; box-shadow: 0 1px 2px rgba(16, 29, 46, .05); white-space: nowrap; }
.tp-pick a:hover .tp-use { background: var(--navy); color: #fff; }
.tp-use .i { width: 14px; height: 14px; }

/* ── Groups and template cards ── */
.tp-group { margin-top: clamp(64px, 8vw, 96px); }
.tp-ghead { display: flex; align-items: baseline; gap: 18px; margin-bottom: 26px; }
.tp-num { font-family: var(--serif); font-style: italic; font-size: clamp(34px, 3.4vw, 46px); color: var(--muted); line-height: 1; }
.tp-ghead .h3 { font-size: clamp(26px, 2.6vw, 34px); }
.tp-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tp-card { display: flex; flex-direction: column; background: var(--panel); border-radius: 30px; padding: 12px; transition: background-color .25s; }
.tp-card:hover { background: var(--panel-hover); }
.tp-img { border-radius: 20px; overflow: hidden; aspect-ratio: 760 / 428; background: #fbf7ee; }
.tp-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.tp-card:hover .tp-img img { transform: scale(1.03); }
.tp-body { display: flex; flex-direction: column; flex: 1; min-width: 0; padding: 22px 16px 14px; }
.tp-body h4 { font-size: 24px; font-weight: 400; letter-spacing: -.04em; line-height: 1.15; overflow-wrap: break-word; hyphens: auto; }
.tp-body p { color: var(--fg-2); font-size: 14.5px; line-height: 1.55; margin-top: 8px; }
.tp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tp-tags span { background: #fff; border-radius: 999px; padding: 5px 11px; font-size: 12.5px; color: var(--fg-2); }
.tp-open { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 18px; font-size: 14px; }
.tp-open .i { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.tp-card:hover .tp-open .i { transform: translate(2px, -2px); }
.tp-cards.single { grid-template-columns: 1fr; }
.tp-cards.single .tp-card { flex-direction: row; align-items: stretch; }
.tp-cards.single .tp-img { width: 50%; flex: none; }
.tp-cards.single .tp-body { padding: 26px 28px; }

/* ── Closing panel with the real Home screen ── */
.tp-cta { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 32px; background: var(--panel); border-radius: var(--radius); overflow: hidden; min-height: 460px; }
.tp-cta__copy { padding: clamp(32px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.tp-cta h2 { font-size: clamp(30px, 3.4vw, 44px); font-weight: 400; letter-spacing: -.045em; line-height: 1.1; text-wrap: balance; }
.tp-cta h2 span { display: block; color: var(--fg-2); }
.tp-cta__copy > p { color: var(--fg-2); margin: 18px 0 28px; line-height: 1.6; max-width: 46ch; }
.tp-small { font-size: 12.5px; color: var(--muted); margin-top: 14px; }
.tp-cta__art { position: relative; min-height: 360px; }
.tp-cta__art .row-phone { bottom: -270px; }
.tp-pdf { position: absolute; left: 4%; bottom: 40%; z-index: 4; animation: fxbob 6s ease-in-out infinite; animation-delay: -3s; }

@media (max-width: 900px) {
  .tp-preview { position: relative; right: auto; bottom: auto; width: auto; margin: -56px 16px 0; transform: none; }
  .tp-stage:hover .tp-preview { transform: none; }
  .tp-proof { display: none; }
  .tp-cta { grid-template-columns: 1fr; }
  .tp-cards.single .tp-card { flex-direction: column; }
  .tp-cards.single .tp-img { width: auto; }
  .tp-cards.single .tp-body { padding: 22px 16px 14px; }
  .tp-cta__art { min-height: 340px; }
}
@media (max-width: 640px) {
  /* long single words ("vårdnadsdokumentation", "yhteishuoltajuussovellusten") must fit a 360px phone */
  .tp-hero h1 { font-size: min(40px, 10.2vw); overflow-wrap: break-word; hyphens: auto; }
  .tp-hero .rot > span { overflow-wrap: break-word; hyphens: auto; }
  .tp-photo { aspect-ratio: 4 / 3; }
  .tp-pick { padding: 6px; }
  .tp-pick a { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; }
  .tp-cards { grid-template-columns: 1fr; }
  .tp-cards.single .tp-card { flex-direction: column; }
  .tp-cards.single .tp-img { width: auto; }
  .tp-cards.single .tp-body { padding: 22px 16px 14px; }
  .tp-ghead { gap: 12px; }
  .tp-cta__art .row-phone { bottom: -200px; }
}
@media (prefers-reduced-motion: reduce) { .tp-proof, .tp-pdf { animation: none; } }

/* ── Guides: the "start with" card on the stage, topic filters and the guide grid ── */
.gd-start { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px 18px; }
.gd-start__label { align-self: flex-start; background: var(--gold-soft); color: var(--gold-ink); border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 500; }
.gd-start strong { font-size: 20px; font-weight: 400; letter-spacing: -.035em; line-height: 1.2; text-wrap: balance; }
.gd-start__sum { color: var(--fg-2); font-size: 13px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gd-start .tp-open { margin-top: 0; padding-top: 4px; }
.gd-start:hover .tp-open .i, .gd-card:hover .tp-open .i { transform: translate(2px, -2px); }

.gd-filter { display: flex; gap: 4px; width: fit-content; max-width: 100%; margin: 40px auto 0; background: var(--panel); border-radius: 999px; padding: 4px; overflow-x: auto; scrollbar-width: none; }
.gd-filter::-webkit-scrollbar { display: none; }
.gd-filter.gd-more { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); }
.gd-filter button { flex: none; white-space: nowrap; font: inherit; font-size: 14px; color: var(--fg-2); background: none; border: 0; border-radius: 999px; padding: 10px 18px; cursor: pointer; transition: color .25s, background-color .25s, box-shadow .25s; }
.gd-filter button:hover { color: var(--fg); }
.gd-filter button[aria-pressed="true"] { background: #fff; color: var(--fg); box-shadow: 0 3px 18px rgba(16, 29, 46, .08); }
.gd-filter i { font-style: normal; font-size: 12.5px; color: var(--muted); margin-left: 3px; }

.gd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 40px; }
.gd-grid.few { grid-template-columns: repeat(2, 1fr); max-width: 920px; margin-inline: auto; }
.gd-card { display: flex; flex-direction: column; min-width: 0; min-height: 280px; background: var(--panel); border-radius: 30px; padding: 26px 26px 22px; transition: background-color .25s; }
.gd-card[hidden] { display: none; }
.gd-card:hover { background: var(--panel-hover); }
.gd-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.gd-num { font-family: var(--serif); font-style: italic; font-size: 30px; line-height: 1; color: var(--muted); }
.gd-topic { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: #fff; border-radius: 999px; padding: 5px 11px; font-size: 12px; color: var(--fg-2); }
.gd-card h3 { margin-top: 28px; font-size: 22px; font-weight: 400; letter-spacing: -.035em; line-height: 1.2; overflow-wrap: break-word; hyphens: auto; text-wrap: pretty; }
.gd-grid.few .gd-card h3 { font-size: 26px; }
.gd-card p { margin-top: 10px; color: var(--fg-2); font-size: 14px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.gd-grid.pop .gd-card { animation: gdin .5s var(--ease) both; }
@keyframes gdin { from { opacity: 0; transform: translateY(10px); } }

@media (max-width: 1024px) { .gd-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .gd-grid, .gd-grid.few { grid-template-columns: 1fr; }
  .gd-card { min-height: 0; padding: 22px 22px 18px; }
  .gd-card h3, .gd-grid.few .gd-card h3 { margin-top: 20px; font-size: 20px; }
  .gd-filter button { padding: 8px 13px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .gd-grid.pop .gd-card { animation: none; } }

/* ── Tools: one bento of tiles, each with a wordless preview of what the tool does ── */
.tl-feature { margin-top: 48px; }
.tl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.tl-card { display: flex; flex-direction: column; min-width: 0; background: var(--panel); border-radius: 30px; padding: 12px; transition: background-color .25s; }
.tl-card:hover { background: var(--panel-hover); }
.tl-viz { position: relative; display: grid; place-items: center; height: 228px; padding: 22px; background: #fff; border-radius: 20px; overflow: hidden; }
.tl-body { display: flex; flex-direction: column; flex: 1; min-width: 0; padding: 20px 14px 12px; }
.tl-cat { align-self: flex-start; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: #fff; border-radius: 999px; padding: 5px 11px; font-size: 12px; color: var(--fg-2); }
.tl-card h3 { margin-top: 14px; font-size: 22px; font-weight: 400; letter-spacing: -.035em; line-height: 1.2; overflow-wrap: break-word; hyphens: auto; text-wrap: pretty; }
.tl-card p { margin-top: 8px; color: var(--fg-2); font-size: 14px; line-height: 1.55; }
.tl-card:hover .tp-open .i { transform: translate(2px, -2px); }
.tl-card--wide { flex-direction: row; align-items: stretch; }
.tl-card--wide .tl-viz { width: 56%; flex: none; height: auto; min-height: 340px; }
.tl-card--wide .tl-body { justify-content: center; padding: 32px 30px 24px; }
.tl-card--wide .tl-cat { background: var(--gold-soft); color: var(--gold-ink); }
.tl-card--wide h3 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.12; }
.tl-card--wide p { font-size: 15px; max-width: 44ch; }
.tl-card--wide .tp-open { margin-top: 24px; }

.tl-viz .sk { display: block; flex: none; height: 7px; border-radius: 4px; background: #ecebe6; }
.tl-viz .sk.mark { background: color-mix(in srgb, var(--gold) 30%, #fff); }
.vz-sched { display: grid; gap: 12px; width: 100%; max-width: 330px; }
.vz-sched div { display: grid; grid-template-columns: 54px 1fr; align-items: center; gap: 10px; }
.vz-sched b { font-size: 12px; font-weight: 500; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.vz-sched span { display: grid; grid-template-columns: repeat(14, 1fr); gap: 3px; }
.vz-sched i { aspect-ratio: 1; border-radius: 4px; background: var(--navy); transition: transform .5s var(--ease); }
.vz-sched i.b { background: color-mix(in srgb, var(--gold) 45%, #fff); }
.tl-card--wide .vz-sched { max-width: 480px; gap: 18px; }
.tl-card--wide .vz-sched div { grid-template-columns: 64px 1fr; }
.tl-card--wide .vz-sched span { gap: 5px; }
.tl-card--wide .vz-sched i { border-radius: 6px; }
.tl-card:hover .vz-sched div:nth-child(2) i { transform: scale(1.08); }

.vz-calc { display: grid; gap: 16px; width: 100%; max-width: 300px; }
.vz-calc div { display: grid; grid-template-columns: 1fr 44px; gap: 12px; align-items: center; }
.vz-calc b { font-size: 13px; font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.vz-bar { display: flex; height: 12px; border-radius: 999px; background: var(--panel); overflow: hidden; }
.vz-bar i { display: block; background: var(--navy); transform-origin: left; transition: transform 1.2s var(--ease) .3s; }
.vz-bar i.miss { background: repeating-linear-gradient(135deg, var(--red) 0 3px, var(--red-soft) 3px 6px); transition-delay: .9s; }
.js .rv:not(.in) .vz-bar i { transform: scaleX(0); }

.vz-list { display: grid; gap: 8px; width: 100%; max-width: 300px; }
.vz-list > div { display: flex; align-items: center; gap: 10px; background: var(--panel); border-radius: 12px; padding: 8px 12px; }
.vz-list b { margin-left: auto; font-size: 12.5px; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.vz-tick { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; }
.vz-tick .i { width: 11px; height: 11px; stroke-width: 2.6; }
.vz-tick.ok { background: var(--green-soft); color: var(--green); }
.vz-tick.wait { background: var(--gold-soft); color: var(--gold-ink); }
.vz-tick.todo { border: 1.5px dashed var(--muted); }
.vz-ev > div { padding: 6px 10px 6px 6px; }
.vz-ev .vz-tick { margin-left: auto; }
.vz-ic { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: #fff; color: var(--fg-2); }
.vz-ic .i { width: 13px; height: 13px; }
.vz-prog { display: block; height: 6px; margin-top: 4px; border-radius: 999px; background: var(--panel); overflow: hidden; }
.vz-prog i { display: block; height: 100%; background: var(--green); border-radius: 999px; transform-origin: left; transition: transform 1.2s var(--ease) .3s; }
.js .rv:not(.in) .vz-prog i { transform: scaleX(0); }

.vz-note { display: grid; gap: 9px; width: 100%; max-width: 270px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; box-shadow: 0 14px 30px -18px rgba(16, 29, 46, .35); transform: rotate(-2deg); transition: transform .5s var(--ease); }
.tl-card:hover .vz-note { transform: rotate(0); }
.vz-note__top { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.vz-note__top b { font-weight: 500; }
.vz-note__top .i { margin-left: auto; width: 14px; height: 14px; color: var(--muted); }
.vz-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.vz-clip { display: flex; gap: 6px; margin-top: 2px; }
.vz-clip .i { width: 26px; height: 26px; padding: 6px; border-radius: 8px; background: var(--panel); color: var(--fg-2); }

.vz-pick { display: grid; grid-template-columns: repeat(2, 64px); gap: 10px; }
.vz-pick span { position: relative; display: grid; place-items: center; height: 64px; border-radius: 18px; background: var(--panel); color: var(--fg-2); transition: transform .4s var(--ease); }
.vz-pick span .i { width: 22px; height: 22px; }
.vz-pick span.on { background: var(--navy); color: #fff; }
.tl-card:hover .vz-pick span.on { transform: scale(1.06); }
.vz-pick em { position: absolute; top: -6px; right: -6px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--green); color: #fff; box-shadow: 0 0 0 3px #fff; }
.vz-pick em .i { width: 12px; height: 12px; stroke-width: 2.8; }

.vz-pack { position: relative; width: 140px; height: 168px; }
.vz-pack > span { position: absolute; inset: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 24px -16px rgba(16, 29, 46, .3); transition: transform .5s var(--ease); }
.vz-pack > span:nth-child(1) { transform: rotate(-8deg) translate(-14px, 6px); }
.vz-pack > span:nth-child(2) { transform: rotate(6deg) translate(12px, 4px); }
.tl-card:hover .vz-pack > span:nth-child(1) { transform: rotate(-12deg) translate(-24px, 8px); }
.tl-card:hover .vz-pack > span:nth-child(2) { transform: rotate(10deg) translate(22px, 6px); }
.vz-pack > span:nth-child(3) { display: grid; align-content: start; gap: 10px; padding: 22px 16px; }
.vz-pack em, .vz-doc em { position: absolute; right: -28px; bottom: 18px; display: inline-flex; align-items: center; gap: 6px; background: var(--navy); color: #fff; border-radius: 999px; padding: 7px 12px; font-size: 12px; font-style: normal; font-weight: 500; }
.vz-pack em .i, .vz-doc em .i { width: 13px; height: 13px; }
.vz-icon .i { width: 40px; height: 40px; color: var(--muted); }

@media (max-width: 1024px) {
  .tl-grid { grid-template-columns: repeat(2, 1fr); }
  .tl-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; flex-direction: row; }
  .tl-grid > :last-child:nth-child(odd) .tl-viz { width: 50%; flex: none; height: auto; min-height: 228px; }
  .tl-grid > :last-child:nth-child(odd) .tl-body { justify-content: center; padding: 24px 24px 18px; }
}
@media (max-width: 900px) {
  .tl-card--wide { flex-direction: column; }
  .tl-card--wide .tl-viz { width: auto; min-height: 0; height: 260px; }
  .tl-card--wide .tl-body { padding: 20px 14px 12px; }
}
@media (max-width: 640px) {
  .tl-grid { grid-template-columns: 1fr; }
  .tl-grid > :last-child:nth-child(odd) { flex-direction: column; }
  .tl-grid > :last-child:nth-child(odd) .tl-viz { width: auto; min-height: 0; height: 210px; }
  .tl-grid > :last-child:nth-child(odd) .tl-body { padding: 20px 14px 12px; }
  .tl-viz, .tl-card--wide .tl-viz { height: 210px; }
  .tl-card--wide h3 { font-size: 24px; }
}

/* ── Blog: three featured stories with pictures, then every article as a filterable list ── */
.bl-featured { display: grid; grid-template-columns: 1.55fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; max-width: 1180px; margin: 64px auto 0; text-align: left; }
.bl-card { display: flex; flex-direction: column; min-width: 0; background: var(--panel); border-radius: 30px; padding: 12px; transition: background-color .25s; }
.bl-card:hover { background: var(--panel-hover); }
.bl-card--lead { grid-row: 1 / span 2; }
.bl-img { border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 9; background: #fbf7ee; }
.bl-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.bl-card:hover .bl-img img { transform: scale(1.03); }
.bl-card--lead .bl-img { aspect-ratio: auto; flex: 1; min-height: 320px; }
.bl-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 18px 14px 10px; }
.bl-card:not(.bl-card--lead) .bl-body { flex: 1; }
.bl-chip { align-self: flex-start; background: var(--gold-soft); color: var(--gold-ink); border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 500; }
.bl-card h3 { font-size: 20px; font-weight: 400; letter-spacing: -.035em; line-height: 1.2; overflow-wrap: break-word; hyphens: auto; text-wrap: pretty; }
.bl-card--lead h3 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.12; }
.bl-card p { color: var(--fg-2); font-size: 15px; line-height: 1.55; max-width: 60ch; }
.bl-meta { margin-top: auto; font-size: 12.5px; color: var(--fg-2); }

.bl-list { display: grid; gap: 2px; max-width: 1040px; margin: 40px auto 0; background: var(--panel); border-radius: var(--radius); padding: 10px; }
.bl-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 14px; grid-template-areas: "num main meta go"; align-items: center; gap: 20px; padding: 18px 20px; border-radius: 24px; transition: background-color .2s; }
.bl-row:hover { background: #fff; }
.bl-row[hidden], .bl-list:not(.all) .bl-row[data-more] { display: none; }
.bl-num { grid-area: num; font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1; color: var(--muted); }
.bl-main { grid-area: main; display: grid; gap: 4px; min-width: 0; }
.bl-main b { font-weight: 400; font-size: clamp(16px, 1.5vw, 18px); letter-spacing: -.025em; line-height: 1.3; overflow-wrap: break-word; hyphens: auto; }
.bl-main span { color: var(--fg-2); font-size: 13.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.bl-row .bl-meta { grid-area: meta; margin: 0; white-space: nowrap; text-align: right; }
.bl-row > .i { grid-area: go; width: 14px; height: 14px; color: var(--fg-2); transition: transform .3s var(--ease); }
.bl-row:hover > .i { transform: translate(2px, -2px); color: var(--fg); }
.bl-morewrap { display: flex; justify-content: center; margin-top: 24px; }
.bl-list.pop .bl-row { animation: gdin .5s var(--ease) both; }

@media (max-width: 900px) {
  .bl-featured { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .bl-card--lead { grid-column: 1 / -1; grid-row: auto; }
  .bl-card--lead .bl-img { aspect-ratio: 16 / 9; flex: none; min-height: 0; }
  .bl-row { grid-template-columns: 36px minmax(0, 1fr) 14px; grid-template-areas: "num main go" ". meta go"; align-items: start; gap: 6px 14px; }
  .bl-num, .bl-row > .i { margin-top: 3px; }
  .bl-row .bl-meta { text-align: left; }
}
@media (max-width: 640px) {
  .bl-featured { grid-template-columns: 1fr; }
  .bl-list { padding: 6px; }
  .bl-row { padding: 14px 14px 14px 12px; grid-template-columns: 30px minmax(0, 1fr) 14px; }
  .bl-num { font-size: 20px; }
  .bl-main span { -webkit-line-clamp: 2; }
}
@media (prefers-reduced-motion: reduce) { .bl-list.pop .bl-row { animation: none; } }

/* ── Compare: each question is a row, its comparisons beside it with app-name art ── */
.cp-group { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.6fr); gap: 32px; align-items: start; margin-top: clamp(56px, 7vw, 88px); }
.cp-ghead { position: sticky; top: 110px; display: grid; gap: 12px; }
.cp-ghead h3 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 400; letter-spacing: -.04em; line-height: 1.15; text-wrap: balance; overflow-wrap: break-word; hyphens: auto; }
.cp-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cp-card { display: flex; flex-direction: column; min-width: 0; background: var(--panel); border-radius: 30px; padding: 12px; transition: background-color .25s; }
.cp-card:hover { background: var(--panel-hover); }
.cp-viz { display: grid; place-items: center; height: 200px; padding: 20px; background: #fff; border-radius: 20px; overflow: hidden; }
.cp-body { display: flex; flex-direction: column; flex: 1; min-width: 0; padding: 20px 14px 12px; }
.cp-body h4 { font-size: 21px; font-weight: 400; letter-spacing: -.035em; line-height: 1.2; overflow-wrap: break-word; hyphens: auto; text-wrap: pretty; }
.cp-body p { margin-top: 8px; color: var(--fg-2); font-size: 14px; line-height: 1.55; }
.cp-card:hover .tp-open .i { transform: translate(2px, -2px); }
.cp-cards.single { grid-template-columns: 1fr; }
.cp-cards.single .cp-card { flex-direction: row; }
.cp-cards.single .cp-viz { width: 46%; flex: none; height: auto; min-height: 220px; }
.cp-cards.single .cp-body { justify-content: center; padding: 26px 28px; }
.cp-cards.single .tp-open { margin-top: 22px; }

.cp-viz .sk { display: block; flex: none; height: 7px; border-radius: 4px; background: #ecebe6; }
.vz-me { flex: none; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: #fff; box-shadow: 0 8px 22px -12px rgba(16, 29, 46, .35), 0 0 0 1px var(--line); }
.vz-me img { width: 24px; height: auto; }
.vz-app { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--panel); font-size: 13px; font-weight: 500; white-space: nowrap; }
.vz-vs { display: flex; align-items: center; gap: 16px; }
.vz-vs em { font-family: var(--serif); font-style: italic; font-size: 30px; color: var(--muted); transition: transform .5s var(--ease); }
.cp-card:hover .vz-vs em { transform: scale(1.15); }
.vz-stack { display: grid; justify-items: start; gap: 6px; }
.vz-stack .vz-app { height: 28px; font-size: 12px; }
.vz-alt { display: grid; justify-items: center; gap: 10px; }
.vz-alt .vz-app.out { background: #fff; border: 1px dashed var(--muted); color: var(--fg-2); }
.vz-alt > .i { width: 16px; height: 16px; color: var(--muted); }
.vz-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
.vz-row .vz-me, .vz-table .vz-me { width: 36px; height: 36px; border-radius: 12px; }
.vz-row .vz-me img, .vz-table .vz-me img { width: 15px; }
.vz-table { display: grid; gap: 8px; width: 100%; max-width: 300px; }
.vz-table > div { display: grid; grid-template-columns: minmax(0, 1fr) 40px 40px 40px; align-items: center; justify-items: center; gap: 6px; }
.vz-table > div > .sk, .vz-table > div > span:first-child { justify-self: start; }
.vz-ph { width: 36px; height: 36px; border-radius: 12px; background: var(--panel); }
.vz-mark { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; }
.vz-mark .i { width: 11px; height: 11px; stroke-width: 2.6; }
.vz-mark.ok { background: var(--green-soft); color: var(--green); }
.vz-mark.no::before { content: ""; width: 10px; height: 2px; border-radius: 2px; background: var(--muted); }
.vz-court { display: flex; align-items: center; gap: 14px; }
.vz-court > .i { width: 18px; height: 18px; color: var(--muted); }
.vz-journal { display: grid; gap: 8px; width: 96px; padding: 14px 12px 18px; border-radius: 14px; background: var(--navy); color: #fff; }
.vz-journal .i { width: 16px; height: 16px; margin-bottom: 4px; }
.cp-viz .vz-journal .sk { background: rgba(255, 255, 255, .24); }
.vz-doc { position: relative; display: grid; gap: 8px; width: 110px; padding: 18px 12px 38px; border-radius: 12px; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 24px -16px rgba(16, 29, 46, .3); }
.vz-doc em { right: -22px; bottom: 10px; }

@media (max-width: 1024px) {
  .cp-group { grid-template-columns: 1fr; gap: 20px; }
  .cp-ghead { position: static; display: flex; align-items: baseline; gap: 16px; }
}
@media (max-width: 640px) {
  .cp-cards { grid-template-columns: 1fr; }
  .cp-cards.single .cp-card { flex-direction: column; }
  .cp-cards.single .cp-viz { width: auto; min-height: 0; height: 200px; }
  .cp-cards.single .cp-body { padding: 20px 14px 12px; }
  .cp-cards.single .tp-open { margin-top: auto; padding-top: 18px; }
}

/* ── Guides: links to each topic's own page, and (US) the state-law hubs ── */
.gd-topics { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 28px; font-size: 14px; }
.gd-topics > span { margin-right: 4px; color: var(--fg-2); }
.gd-topics a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--panel); transition: background-color .2s; }
.gd-topics a:hover { background: var(--panel-hover); }
.gd-topics .i { width: 12px; height: 12px; }
.gd-laws { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 1040px; margin: 40px auto 0; }
.gd-laws a { position: relative; display: grid; align-content: start; gap: 8px; padding: 28px 28px 30px; border-radius: 30px; background: var(--panel); transition: background-color .25s; }
.gd-laws a:hover { background: var(--panel-hover); }
.gd-laws__ic { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 10px; border-radius: 14px; background: #fff; color: var(--navy); }
.gd-laws__ic .i { width: 20px; height: 20px; }
.gd-laws b { padding-right: 28px; font-size: 22px; font-weight: 400; letter-spacing: -.035em; line-height: 1.2; }
.gd-laws a > span:not(.gd-laws__ic) { font-size: 14.5px; line-height: 1.55; color: var(--fg-2); }
.gd-laws em { position: absolute; top: 28px; right: 28px; }
.gd-laws em .i { width: 16px; height: 16px; }
@media (max-width: 640px) { .gd-laws { grid-template-columns: 1fr; } .gd-topics { justify-content: flex-start; } }
