/* ===== Round 15 (26 Nov): only what Jonathan named. One block per change. ===== */

/* C · the notch, like the app's new one: an AI app reading = the small size, its icon left, the AI sphere right, no words;
   anything with words = the one wide size, the words on the left beside their symbol */
.g-notch .wing .n-app { inline-size: 16px; block-size: 16px; border-radius: 4px; opacity: 0; }
.g-notch[data-app="chatgpt"] .wing .n-app { padding: 2px; background: var(--white); border-radius: 4px; }
.g-notch .wing.r2 { inset-inline-end: 12px; inline-size: 22px; justify-content: center; opacity: 0; } .g-notch .wing.r2 .orb2 { inline-size: 18px; block-size: 18px; }
.g-notch[data-state="ai"] .wing.left, .g-notch[data-state="ai"] .wing.r2 { opacity: 1; transition-delay: .1s; }
.g-notch[data-state="ai"] .wing.left > :not(.n-app) { opacity: 0 !important; } .g-notch[data-state="ai"] .n-app { opacity: 1; }
.g-notch[data-state="notice"] .wing.right { inset-inline-start: 40px; inset-inline-end: auto; text-align: start; overflow: hidden; text-overflow: ellipsis; }

/* B · after "Don't search. Ask.": one smooth seam (it was black, white, black, white). The torn ink edge now sits across the
   border between the two chapters and simply scrolls with the page: Ask's black, the ink edge, Dictation's paper. Light only. */
@media (min-width: 761px) {
  :root[data-theme="light"] .ask::after { z-index: 3; inset-block: auto -34svh; block-size: 78svh; transform: none !important; opacity: 1 !important; -webkit-mask: linear-gradient(transparent, #000 34%); mask: linear-gradient(transparent, #000 34%);
    background: linear-gradient(transparent 64%, var(--surface) 98%), url(img/r13/ink-edge.avif) center 50% / cover no-repeat; }
}
@media (min-width: 761px) and (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .ask::after { z-index: 3; inset-block: auto -34svh; block-size: 78svh; transform: none !important; opacity: 1 !important; -webkit-mask: linear-gradient(transparent, #000 34%); mask: linear-gradient(transparent, #000 34%);
    background: linear-gradient(transparent 64%, var(--surface) 98%), url(img/r13/ink-edge.avif) center 50% / cover no-repeat; }
}

/* C · the Library's large view: ‹ › to move (keys and swipe too), "n of 12", and "Make it more" */
.pic-big { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; cursor: default; outline: none; }
.pic-big figure { margin: 0; display: grid; place-items: center; min-block-size: 0; } .pic-big p { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; }
.pic-big img { --m: 0; max-block-size: 62%; transition: filter .5s cubic-bezier(.2, .8, .2, 1), transform .5s cubic-bezier(.3, 1.4, .5, 1); filter: saturate(calc(1 + var(--m) * .55)) contrast(calc(1 + var(--m) * .14)) brightness(calc(1 + var(--m) * .03)); transform: scale(calc(1 + var(--m) * .045)) rotate(calc(var(--m) * -.6deg)); }
.pic-big .pv { inline-size: 36px; block-size: 36px; border-radius: 50%; font: 400 24px/1 var(--font-text); color: inherit; background: color-mix(in srgb, var(--white) 14%, transparent) !important; }
.pic-big .pv:hover { background: color-mix(in srgb, var(--white) 24%, transparent) !important; }
.pic-big small { opacity: .6; font-size: 12px; } .pic-big .pm { display: inline-flex; align-items: center; gap: 8px; } .pic-big [data-mq] { font: italic 400 13px/1.2 var(--font-serif); opacity: .85; }
.pic-big [data-more] { padding: 6px 12px !important; border-radius: 99px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--white) 40%, transparent); }
@media (prefers-reduced-motion: reduce) { .pic-big img { transition: none; } }
.g-notch:not([data-state="ai"]) .wing.r2 { opacity: 0 !important; }
.g-notch.sprung[data-state="notice"][data-icon="tick"] .tick { display: block; }   /* "✓ Copied": the new notch shows its symbol beside the words */

/* D · the ending: a taller wall with more room above "Ready when you are.", and words that read (WCAG AA) on the stone:
   a soft paper glow sits behind the words only, and the small lines are solid ink instead of see-through grey */
@media (min-width: 761px) {
  .end { --s: max(104svh, 680px); }
  .end-in { position: relative; padding-block-start: calc(var(--mb) + clamp(60px, 10.5svh, 120px)); }
  .end-in::before { content: ""; position: absolute; z-index: -1; inset: calc(var(--mb) + clamp(40px, 8svh, 100px)) -8% -6% -8%; border-radius: 50%; pointer-events: none;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--paper) 82%, transparent), color-mix(in srgb, var(--paper) 55%, transparent) 55%, transparent); filter: blur(18px); }
  .end .end-promise { color: var(--ink) !important; } .end .end-cta .fine, .end .end-help { color: var(--ink) !important; opacity: 1; }
  :root[data-theme="dark"] .end-in::before { background: radial-gradient(closest-side, color-mix(in srgb, var(--graphite-bottom) 70%, transparent), color-mix(in srgb, var(--graphite-bottom) 40%, transparent) 55%, transparent); }
}
@media (min-width: 761px) and (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .end-in::before { background: radial-gradient(closest-side, color-mix(in srgb, var(--graphite-bottom) 70%, transparent), color-mix(in srgb, var(--graphite-bottom) 40%, transparent) 55%, transparent); } }
@media (min-width: 761px) and (max-height: 790px) { .end { --s: max(100svh, 640px); } .end-in { padding-block-start: calc(var(--mb) + 62px); } }
