/* The website's doors into a shared list (/links, /start/<kind>, /open), on top of /styles.css and its tokens. Every class
   starts with dr-. Approved stills: design/round35/stills/out/link-1-page, link-2-phone, start-2-web, start-5-trip,
   start-6-trip-phone, ai-2-link. Only transform and opacity move, with the site's own .18s curve; the live security policy
   allows no inline styles, so everything is a class here. */
.dr-ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.dr [hidden], .dr-card [hidden] { display: none !important; }

/* A door's card */
.dr-card { border-radius: 26px; background: #fff; box-shadow: inset 0 0 0 1px var(--hairline), var(--shadow-soft); }

/* The name of the list: a quiet label over a large field */
.dr-name { display: block; padding: 14px 20px 12px; border-radius: 16px; box-shadow: inset 0 0 0 1.5px var(--hairline); background: #fff; cursor: text; }
.dr-name:hover { box-shadow: inset 0 0 0 1.5px rgb(16 20 42 / .22); }
.dr-name:focus-within { box-shadow: inset 0 0 0 2px var(--cobalt); }
.dr-name > span { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-3); }
.dr-name input { display: block; width: 100%; margin-top: 2px; padding: 0; border: 0; outline: 0; background: none; font: 650 22px/1.3 var(--font); letter-spacing: -.02em; color: var(--ink); text-overflow: ellipsis; }
.dr-name input::placeholder { color: rgb(16 20 42 / .32); opacity: 1; }
.dr-name input:focus-visible { outline: 0; }

/* The starter's sections */
.dr-sections { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 18px; }
.dr-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dr-chips li { --c: #5f6368; display: inline-flex; align-items: center; gap: 9px; height: 37px; padding: 0 15px 0 14px; border-radius: 999px; background: #eff1f5; font-size: 16px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.dr-chips li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.dr-chips [data-colour="blue"] { --c: #1a73e8; }
.dr-chips [data-colour="red"] { --c: #d93025; }
.dr-chips [data-colour="yellow"] { --c: #f9ab00; }
.dr-chips [data-colour="green"] { --c: #188038; }
.dr-chips [data-colour="pink"] { --c: #d01884; }
.dr-chips [data-colour="purple"] { --c: #a142f4; }
.dr-chips [data-colour="cyan"] { --c: #007b83; }
.dr-chips [data-colour="orange"] { --c: #e8710a; }
.dr-hint { font-size: 14.5px; line-height: 1.4; color: var(--ink-3); }

/* "People with the link can": three levels, one chosen. Real radio buttons; the chosen one lifts in white. */
.dr-levels { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.dr-levels-h { font-size: 15.5px; color: var(--ink-2); }
.dr-seg { display: inline-flex; padding: 4px; border-radius: 15px; background: #f0f1f5; }
.dr-seg label { position: relative; display: block; cursor: pointer; }
.dr-seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.dr-seg span { position: relative; display: block; padding: 9px 15px; border-radius: 11px; font-size: 15.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.dr-seg span::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: #fff; box-shadow: 0 1px 2px rgb(16 20 42 / .08), 0 4px 12px -6px rgb(16 20 42 / .22);
  opacity: 0; transform: scale(.96); transition: opacity .18s, transform .18s cubic-bezier(.2,.8,.2,1); }
.dr-seg span { z-index: 0; isolation: isolate; }
.dr-seg label:hover span { color: var(--ink); }
.dr-seg input:checked + span { color: var(--ink); }
.dr-seg input:checked + span::before { opacity: 1; transform: none; }
.dr-seg label:active span { transform: scale(.98); }
.dr-seg input:focus-visible + span { outline: 3px solid var(--cobalt); outline-offset: 1px; }

/* The button that makes the list, and what it says while it works */
.dr-make { position: relative; }
.dr-make[data-state="busy"], .dr-make[data-state="done"] { cursor: progress; transform: none; }
/* Busy: the button keeps its ink and its spinner turns in white at full strength (looks review 2, N21). */
.dr-make[data-state="busy"] { background: var(--ink); }
.dr-make[data-state="busy"]::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid rgb(255 255 255 / .28); border-top-color: #fff; border-right-color: #fff; animation: dr-turn .8s linear infinite; }
.dr-make[data-state="done"]::before { content: ""; width: 12px; height: 7px; margin: -3px 2px 0 0; border: solid #fff; border-width: 0 0 2.2px 2.2px; transform: rotate(-45deg); animation: dr-in .18s cubic-bezier(.2,.8,.2,1); }
@keyframes dr-turn { to { transform: rotate(360deg); } }
@keyframes dr-in { from { opacity: 0; transform: rotate(-45deg) scale(.6); } }
@keyframes dr-show { from { opacity: 0; transform: translateY(-3px); } }

/* Under the button: the lock, the warning where this browser keeps nothing, and errors */
.dr-lock { display: flex; align-items: flex-start; gap: 8px; font-size: 14.5px; line-height: 1.4; color: var(--ink-2); }
.dr-lock .dr-ico { width: 18px; height: 18px; margin-top: 1px; }
.dr-shield { stroke: #1d8a57; }
.dr-warn { display: flex; gap: 8px; font-size: 14.5px; line-height: 1.4; font-weight: 550; color: var(--ink); }
.dr-warn::before { content: ""; flex: none; width: 8px; height: 8px; margin: 6px 5px 0; border-radius: 50%; background: #e8710a; }
.dr-error { font-size: 14.5px; line-height: 1.45; font-weight: 550; color: #b42318; overflow-wrap: anywhere; animation: dr-show .18s ease-out; }
.dr-error:empty { display: none; }

/* A starter's page: one column, the heading on the left */
.dr { --col: 680px; }
.dr-hero, .dr-start, .dr-how, .dr-others { max-width: var(--col); margin-left: auto; margin-right: auto; }
.dr-hero { padding-top: clamp(30px, 6vh, 56px); }
.dr-hero .kicker { margin-bottom: 12px; font-size: 15px; font-weight: 550; }
.dr-hero h1 { font-size: clamp(38px, 5.2vw, 52.5px); line-height: 1.06; font-weight: 750; letter-spacing: -.04em; text-wrap: balance; }
.dr-hero .lead { margin-top: 18px; font-size: 20px; line-height: 1.36; color: var(--ink-2); text-wrap: pretty; }
.dr-start { margin-top: 34px; padding: 22px; }
.dr-go { display: flex; align-items: center; gap: 12px 16px; margin-top: 22px; }
.dr-go .btn.big { flex: none; width: auto; max-width: none; height: 52px; padding: 0 20px; border-radius: 14px; font-size: 17px; }
.dr-go .dr-lock, .dr-go .dr-warn { flex: 1 1 260px; font-size: 14px; text-wrap: balance; }
.dr-go .dr-lock { gap: 7px; }
.dr-go:has(.dr-warn:not([hidden])) { flex-wrap: wrap; }
.dr-start .dr-error { margin-top: 12px; }

/* How it works */
.dr-how { margin-top: 48px; }
.dr-how h2, .dr-others h2, .dr-write h2 { font-size: 19px; line-height: 1.3; font-weight: 650; letter-spacing: -.016em; text-align: left; }
.dr-how ol { margin-top: 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: none; }
.dr-how li { padding: 16px 16px 20px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--hairline); }
.dr-n { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; }
.dr-how h3 { margin-top: 18px; font-size: 16.5px; font-weight: 650; letter-spacing: -.01em; }
.dr-how p { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }

/* Other starters */
.dr-others { margin-top: 44px; }
.dr-others ul { margin-top: 14px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--hairline); overflow: hidden; }
.dr-others li + li { border-top: 1px solid var(--hairline); }
.dr-others a { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 18px 12px 16px; text-decoration: none; }
.dr-others a:hover { background: var(--hover); }
.dr-others a:hover .dr-ico { transform: translateX(2px); }
.dr-others a:active { background: rgb(16 20 42 / .1); }
.dr-others a:focus-visible { outline-offset: -3px; border-radius: 16px; }
.dr-others .dr-ico { color: var(--ink-3); transition: transform .18s cubic-bezier(.2,.8,.2,1); }
.dr-mono { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: #fff; font-weight: 700; font-size: 16px; background: #5f6b80; }
.dr-mono[data-kind="gift"] { background: #c4801f; }
.dr-mono[data-kind="trip"] { background: #3a72b8; }
.dr-mono[data-kind="which"] { background: #8e3fb3; }
.dr-mono[data-kind="flat"] { background: #2f8a6e; }
.dr-mono[data-kind="reading"] { background: #b0853a; }
.dr-mono[data-kind="lesson"] { background: #c0485f; }
.dr-mono[data-kind="event"] { background: #d0603a; }
.dr-mono[data-kind="project"] { background: #3d8a9a; }
.dr-t { min-width: 0; }
.dr-t b { display: block; font-size: 16.5px; font-weight: 600; letter-spacing: -.01em; }
.dr-t small { display: block; margin-top: 1px; font-size: 14.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* The hand-written link, explained (/links and /open) */
.dr-write { margin-top: 56px; text-align: left; }
.dr-write > p { margin-top: 8px; font-size: 16px; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.dr-code { display: block; margin-top: 18px; padding: 20px 24px; border-radius: 18px; background: var(--ink); color: #fff; text-decoration: none; transition: transform .18s cubic-bezier(.2,.8,.2,1); }
.dr-code:hover { transform: translateY(-1px); }
.dr-code:active { transform: scale(.995); }
.dr-code code { display: block; padding: 0; border-radius: 0; background: none; font: 500 17px/1.65 ui-monospace, "SF Mono", Menlo, Consolas, monospace; white-space: pre-wrap; word-break: break-all; }
.dr-code b { font-weight: 700; color: #f7c04a; }
.dr-code i { font-style: normal; color: #a9b6ff; }
.dr-parts { margin-top: 12px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dr-parts li { padding: 14px 16px 18px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--hairline); }
.dr-parts code { padding: 0; border-radius: 0; background: none; font: 700 16px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--cobalt); }
.dr-parts p { margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.dr-fine { margin-top: 18px; font-size: 14px; line-height: 1.5; color: var(--ink-3); text-wrap: pretty; }

/* The hand-written link's page, /open, in the collection page's look (/s/share.css). It shows once the link is read,
   so nothing moves as it fills in. */
.op[aria-busy="true"] { visibility: hidden; }
.op-kicker { display: flex; align-items: center; gap: 8px; }
.op-kicker svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; }
.op .share-group { margin-top: 28px; }
.op-left { margin-top: 12px; font-size: 14px; line-height: 1.45; color: var(--ink-3); }
.op-make { margin-top: 36px; padding: 22px; }
.op-make h2 { font-size: 21px; line-height: 1.25; font-weight: 700; letter-spacing: -.02em; text-align: left; }
.op-make > p { margin-top: 4px; margin-bottom: 18px; font-size: 15.5px; line-height: 1.45; color: var(--ink-2); }
.op-levels { margin-top: 18px; }
.op-make .dr-error { margin-top: 12px; }
.op-said { margin-top: 10px; font-size: 15px; font-weight: 550; }
.op-said:empty { display: none; }
.op .dr-write { margin-top: 48px; }
.op .share-cta { margin-top: 48px; }

/* Tablets and phones */
@media (max-width: 760px) {
  .dr-how ol, .dr-parts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .dr-hero h1 { font-size: 38px; line-height: 1.08; }
  .dr-hero .lead { font-size: 18.5px; }
  .dr-start { margin-top: 26px; padding: 14px; border-radius: 22px; }
  .dr-name { padding: 12px 14px 10px; }
  .dr-name input { font-size: 20px; }
  .dr-sections { gap: 10px; margin-top: 14px; }
  .dr-chips li { height: 36px; padding: 0 14px 0 12px; font-size: 15px; }
  .dr-hint { padding: 0 4px; }
  .dr-go { flex-direction: column; align-items: stretch; }
  .dr-go .btn.big { width: 100%; }
  .dr-go .dr-lock, .dr-go .dr-warn { flex: none; font-size: 14px; text-wrap: pretty; }
  .dr-levels { flex-direction: column; align-items: stretch; gap: 10px; }
  .dr-seg { display: grid; padding: 5px; border-radius: 16px; }
  .dr-seg span { padding: 11px 14px; white-space: normal; }
  .dr-code { padding: 16px 16px; border-radius: 16px; }
  .dr-code code { font-size: 14.5px; }
  .dr-write { margin-top: 44px; }
  .op-make { padding: 14px; border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .dr-seg span::before, .dr-others .dr-ico, .dr-code { transition: none; }
  .dr-make[data-state="busy"]::before { animation: none; border-color: #fff; border-top-color: rgb(255 255 255 / .35); }
  .dr-make[data-state="done"]::before, .dr-error { animation: none; }
  .dr-others a:hover .dr-ico, .dr-code:hover, .dr-seg label:active span { transform: none; }
}
