/* Waymark: chooser and legal layouts. Existing v4 tokens, type and components. */
.v4-rest .hero-baseline{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px 16px;margin-top:24px;padding-top:14px;border-top:1.5px dashed var(--line-2);font:500 .8125rem/1.4 var(--f-mono);color:var(--ink-2)}
.v4-rest .hero-baseline>span:last-child{color:var(--signal-ink)}
.v4-rest-art{display:flex;align-items:center;justify-content:center;min-width:0}
.v4-rest-kompa{width:156px;height:auto;flex-shrink:0}
.v4-legal .v4-rest-kompa{width:min(100%,210px)}
.v4-legal .hero .hero-grid{grid-template-columns:minmax(0,1fr) 220px}
.v4-chooser .hero .hero-grid{grid-template-columns:minmax(0,7fr) minmax(0,5fr)}
.v4-chooser .pt-mosaic{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:start;transform:rotate(2deg)}
.v4-chooser .pt-mosaic a{display:block;border:2px solid var(--ink);border-radius:var(--r-m);overflow:hidden;box-shadow:var(--hard)}
.v4-chooser .pt-mosaic a:first-child{grid-column:1/-1}
.v4-chooser .pt-mosaic img{display:block;width:100%;height:auto;aspect-ratio:8/5;object-fit:cover}
.v4-chooser .hero-actions{align-items:center}
.v4-chooser .section-heading{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:24px}
.v4-chooser .section-heading h2{margin:0}
.v4-chooser .section-heading p{color:var(--ink-2);max-width:42ch}
.v4-chooser .edition-section,.v4-chooser .atlas-section,.v4-chooser .method-panel{margin:56px 0}
.v4-chooser .edition-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.v4-chooser .edition-card{position:relative;display:block;background:var(--surface);border:2px solid var(--ink);border-radius:var(--r-l);padding:24px;color:var(--ink);text-decoration:none;box-shadow:var(--hard)}
.v4-chooser .edition-card:hover{background:var(--sand)}
.v4-chooser .edition-code{display:inline-grid;place-items:center;width:48px;height:48px;margin-right:8px;border-radius:var(--r-s);background:var(--signal);color:#14261F;font:800 1.3rem var(--f-display)}
.v4-chooser .edition-country{font-size:.875rem;color:var(--ink-2)}
.v4-chooser .edition-card h3{margin:20px 0 12px;font-size:1.6rem}
.v4-chooser .edition-card p{margin:0;font-size:1rem;line-height:1.65}
.v4-chooser .edition-enter{position:absolute;right:24px;top:26px;font-size:1.7rem}
.v4-chooser .method-panel{display:grid;grid-template-columns:1fr 1fr;gap:40px;padding:32px;border:2px solid var(--ink);border-radius:var(--r-l);background:var(--sand)}
.v4-chooser .method-title>img{width:48px;height:48px}
.v4-chooser .method-checks{display:grid;gap:24px}
.v4-chooser .method-checks>div{position:relative;padding-left:36px}
.v4-chooser .method-checks .check{position:absolute;left:0;top:0;display:grid;place-items:center;width:26px;height:26px;color:var(--forest);background:var(--forest-soft);border-radius:50%;font-weight:700}
.v4-chooser .method-checks h3{font-size:1.125rem;margin:0 0 8px}
.v4-chooser .method-checks p{margin:0;color:var(--ink-2)}
.v4-chooser .safety-panel{display:flex;align-items:center;gap:24px;margin:56px 0;padding:24px;border:2px solid var(--line);border-radius:var(--r-l);background:var(--surface)}
.v4-chooser .age-mark{display:grid;place-items:center;flex-shrink:0;width:60px;height:60px;border-radius:50%;background:var(--signal-soft);color:var(--signal-ink);font-weight:700}
.v4-chooser .safety-panel h2{font-size:1.3rem;margin:0 0 8px}
.v4-chooser .safety-panel p{margin:0;color:var(--ink-2)}
.v4-chooser .safety-panel .text-link{min-width:110px}
@media(max-width:900px){.v4-chooser .edition-grid{grid-template-columns:1fr}.v4-chooser .method-panel{grid-template-columns:1fr;gap:28px}.v4-legal .hero .hero-grid{grid-template-columns:minmax(0,1fr) 150px}}
@media(max-width:760px){.v4-rest .hero-baseline>span:first-child{display:none}.v4-chooser .hero .hero-grid,.v4-legal .hero .hero-grid{grid-template-columns:minmax(0,1fr)}.v4-chooser .section-heading{display:block}.v4-chooser .method-panel{padding:24px}.v4-chooser .safety-panel{flex-wrap:wrap;gap:16px}.v4-chooser .safety-panel>div{flex:1;min-width:170px}.v4-chooser .safety-panel .text-link{margin-left:76px}.v4-chooser .hero-actions .v4-rest-kompa{width:112px}}
@media(max-width:700px){.v4-legal .v4-rest-art,.v4-chooser .pt-mosaic{display:none}}
/* The chooser has always exposed its two reading links on mobile. */
.v4-chooser .side-note{display:block}

.v4-rest-mobile-kompa{display:none}
@media(max-width:700px){.v4-legal .hero-actions{align-items:center}.v4-legal .v4-rest-mobile-kompa{display:block;width:112px;height:auto}}
