@import url("./search-interface/alert.css");

/* Paper page39 / #1808: scoped HeroUI skin; no global library reset. */
@property --nv-search-alert-rise {syntax:"<length>";inherits:true;initial-value:0px;}
@property --nv-search-left-fade {syntax:"<length>";inherits:true;initial-value:0px;}
@property --nv-search-right-fade {syntax:"<length>";inherits:true;initial-value:0px;}
@property --nv-search-controls-alpha {syntax:"<number>";inherits:true;initial-value:0;}
@property --nv-search-item-alpha {syntax:"<number>";inherits:false;initial-value:1;}
@property --nv-fade-a {syntax:"<number>";inherits:false;initial-value:0;}
:root {
  --nv-search-in:240ms;
  --nv-search-in-fade:160ms;
  --nv-search-out:150ms;
  --nv-search-grid-out:200ms;
  --nv-search-label-out:90ms;
  --nv-search-ease:var(--nv-stagger-ease);
  --nv-search-ink:#0E0D24;
  --nv-search-edge:#FFFFFF29;
  --nv-search-glass-light-fill:#FFF;
  --nv-search-glass-light-rest:85%;
  --nv-search-glass-light-hover:92%;
  --nv-search-glass-dark-rest:85%;
  --nv-search-glass-dark-hover:90%;
  --nv-search-glass-dark-pressed:93%;
  --nv-search-glass-edge:#FFFFFF66;
  --nv-search-glass-keyhint:#FFFFFFB3;
  --nv-search-pill-height:40px;
  --nv-search-pill-radius:20px;
  --nv-search-pill-width:372px;
  --nv-search-tray-width:400px;
  --nv-search-tray-fade:40px;
  --nv-search-gap:12px;
  --nv-search-notice-line:20px;
  --nv-search-shadow-outset:0px;
  --nv-search-pill-padding-left:14px;
  --nv-search-surface-enter:400ms;
  --nv-search-surface-exit:300ms;
}
.wall-search-controls,.wall-search-footer,.wall-search-notice {font-family:"SFProRounded-Regular","SF Pro Rounded",system-ui,sans-serif;font-synthesis:none;box-sizing:border-box;}
.wall-search-controls,.wall-search-notice {position:fixed;z-index:35;left:calc(var(--nv-sheet-side) + var(--nv-content-inset-x));bottom:var(--nv-search-bottom,88px);width:var(--nv-search-tray-width);max-width:calc(100vw - 2 * (var(--nv-sheet-side) + var(--nv-content-inset-x)));pointer-events:none;}
.wall-search-notice {height:var(--nv-search-pill-height);}
.nv-search-copy-compact {display:none;}
.wall-search-controls {--nv-search-controls-alpha:0;transform:scale(.95);transform-origin:5px calc(100% + 48px);visibility:hidden;transition:--nv-search-controls-alpha var(--nv-search-out) ease-out,transform var(--nv-search-out) ease-out,visibility 0s linear var(--nv-search-out),--nv-search-alert-rise var(--nv-search-out) ease-out;}
body[data-diary-open="true"] .wall-search-controls {--nv-search-controls-alpha:1;transform:none;visibility:visible;transition:--nv-search-controls-alpha var(--nv-search-in-fade) ease-out,transform var(--nv-search-in) var(--nv-search-ease),visibility 0s,--nv-search-alert-rise var(--nv-search-out) ease-out;}
.wall-search-controls[inert] {pointer-events:none;}
.wall-search-controls[inert] * {pointer-events:none;}
.wall-search-controls[data-recovery] {height:var(--nv-search-pill-height);}
.wall-search-field {width:var(--nv-search-pill-width);max-width:100%;}
.wall-search-pill {box-sizing:border-box;display:flex;align-items:center;gap:10px;width:100%;height:var(--nv-search-pill-height);padding:0 10px 0 var(--nv-search-pill-padding-left);border:1px solid var(--nv-search-glass-edge);border-radius:var(--nv-search-pill-radius);background:color-mix(in srgb,var(--nv-search-ink) var(--nv-search-glass-dark-rest),transparent);color:#FFF;box-shadow:0 1px 2px #0E0D240F,0 14px 26px -16px #0E0D2447;pointer-events:auto;overflow:visible;}
.wall-search-pill > svg {flex:none;width:14px;height:14px;margin:0;}
.wall-search-input {box-sizing:border-box;flex:1 1 0;min-width:32px;width:100%;height:100%;margin:0;padding:0;border:0;border-radius:0;outline:0;background:transparent;color:#FFF;font:400 14px/20px "SFProRounded-Regular","SF Pro Rounded",system-ui,sans-serif;}
.wall-search-input::placeholder {color:#FFFFFF99;opacity:1;}
.wall-search-keyhint {margin-right:4px;font:400 11px/16px "SFProRounded-Regular",system-ui,sans-serif;color:var(--nv-search-glass-keyhint);white-space:nowrap;}
.wall-search-input::-webkit-search-cancel-button {-webkit-appearance:none;}
.wall-search-clear {position:relative;box-sizing:border-box;display:grid;place-items:center;flex:none;width:28px;min-width:28px;height:28px;padding:0;margin:0;border:0;border-radius:50%;background:transparent;color:#FFF;cursor:pointer;}
.wall-search-clear:hover {background:#FFFFFF1F;}
.wall-search-clear[data-focus-visible],.wall-search-diary[data-focus-visible],.wall-search-controls [data-slot="tag"][data-focus-visible] {outline:2px solid #285AEC;outline-offset:2px;box-shadow:0 0 0 4px #06050A73;}
.wall-search-pill:not([data-focus-visible]),.wall-search-clear:not([data-focus-visible]),.wall-search-diary:not([data-focus-visible]) {outline:none;}
.wall-search-diary[data-recovery]:focus-visible {outline:2px solid #285AEC;outline-offset:2px;}
.wall-search-tray-wrap {position:absolute;bottom:calc(var(--nv-search-pill-height) + var(--nv-search-gap) + var(--nv-search-alert-rise));left:0;width:100%;height:28px;pointer-events:auto;}
.wall-search-tray-group {max-width:100%;height:100%;}
.wall-search-tray {box-sizing:border-box;display:flex;flex-flow:row nowrap;gap:8px;width:calc(100% + 12px);height:40px;padding:6px calc(6px + var(--nv-tray-pull-end,0px)) 6px calc(6px + var(--nv-tray-pull-start,0px));margin-top:-6px;margin-left:-6px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;white-space:nowrap;}
.wall-search-tray[data-tray-elastic] {overscroll-behavior:contain;touch-action:pan-x pinch-zoom;}
.wall-search-tray[data-tray-elastic="custom"],.wall-search-tray[data-tray-pulling] {overscroll-behavior-x:none;touch-action:pinch-zoom;}
.wall-search-tray[data-tray-elastic="reduced"] {overscroll-behavior-x:none;}
.wall-search-tray::-webkit-scrollbar {display:none;}
.wall-search-tray[data-pan-scrollable] {cursor:grab;}
.wall-search-tray[data-pan-scrollable][data-pan-dragging],.wall-search-tray[data-pan-scrollable][data-pan-dragging] [data-slot="tag"] {cursor:grabbing;}
.wall-search-tray-wrap {--nv-search-left-fade:0px;--nv-search-right-fade:var(--nv-search-tray-fade);transition:--nv-search-left-fade 150ms ease-out,--nv-search-right-fade 150ms ease-out;}
.wall-search-tray-ghosts {position:absolute;inset:0;pointer-events:none;overflow:hidden;}
:is(.wall-search-tray,.wall-search-tray-ghosts) [data-slot="tag"] {box-sizing:border-box;position:relative;flex:none;display:flex;align-items:center;min-width:0;height:28px;padding:5px 11px;border:1px solid transparent;border-radius:14px;color:var(--nv-search-ink);background:color-mix(in srgb,var(--nv-search-glass-light-fill) var(--nv-search-glass-light-rest),transparent);font:500 12px/16px "SFProRounded-Medium","SF Pro Rounded",system-ui,sans-serif;cursor:pointer;}
/* Glass opacity is painted on each surface; the inherited numeric driver is
   not an opacity/filter/mask on an ancestor and cannot become a backdrop root.
   A separate item factor composes typed-row fades with open/close/reversal. */
.wall-search-pill,:is(.wall-search-tray,.wall-search-tray-ghosts) [data-slot="tag"] {opacity:calc(var(--nv-search-controls-alpha) * var(--nv-search-item-alpha));-webkit-backdrop-filter:blur(var(--nv-image-pill-blur));backdrop-filter:blur(var(--nv-image-pill-blur));}
:is(.wall-search-tray,.wall-search-tray-ghosts) [data-slot="tag"] {mask-clip:no-clip;mask-image:linear-gradient(to right,transparent calc(0px - var(--px,0px)),#000 calc(var(--nv-search-left-fade,0px) - var(--px,0px)),#000 calc(var(--tw,400px) - var(--nv-search-right-fade,0px) - var(--px,0px)),transparent calc(var(--tw,400px) - var(--px,0px)));}
:is(.wall-search-tray,.wall-search-tray-ghosts) [data-slot="tag"][data-selected] {background:color-mix(in srgb,var(--nv-search-ink) var(--nv-search-glass-dark-rest),transparent);color:#FFF;}
.wall-search-tray [data-slot="tag"]:hover:not([data-selected]) {background:color-mix(in srgb,var(--nv-search-glass-light-fill) var(--nv-search-glass-light-hover),transparent);}
.wall-search-tray [data-slot="tag"]:is([data-pressed],:active):not([data-selected]) {background:linear-gradient(#0E0D2426,#0E0D2426),color-mix(in srgb,var(--nv-search-glass-light-fill) var(--nv-search-glass-light-hover),transparent);}
.wall-search-tray [data-slot="tag"][data-selected]:hover {background:color-mix(in srgb,var(--nv-search-ink) var(--nv-search-glass-dark-hover),transparent);}
.wall-search-tray [data-slot="tag"][data-selected]:is([data-pressed],:active) {background:color-mix(in srgb,var(--nv-search-ink) var(--nv-search-glass-dark-pressed),transparent);}
/* The notice follows displayed content; empty surfaces share the glass recipe. */
.wall-search-controls[data-has-notice] .wall-search-tray-wrap {bottom:calc(var(--nv-search-pill-height) + 2 * var(--nv-search-gap) + var(--nv-search-notice-height,var(--nv-search-notice-line)));}
.wall-search-no-results {position:absolute;left:calc(1px + var(--nv-search-pill-padding-left));bottom:calc(var(--nv-search-pill-height) + var(--nv-search-gap));margin:0;color:#FFF;white-space:normal;max-width:calc(100% - (1px + var(--nv-search-pill-padding-left)));font:400 14px/var(--nv-search-notice-line) "SFProRounded-Regular","SF Pro Rounded",system-ui,sans-serif;}
.wall-search-no-results {isolation:isolate;letter-spacing:.005em;text-shadow:0 0 14px #06050AE6,0 0 3px #06050AD9,0 1px 1px #06050AB3;}
.wall-search-no-results {opacity:1;transition:opacity 150ms ease-out;}
.wall-search-no-results[data-leaving] {opacity:0;}
.wall-search-no-results::before {content:"";position:absolute;z-index:-1;inset:-18px -64px -18px -48px;background:radial-gradient(ellipse 50% 50% at 50% 50%,#06050AE0,#06050AB8 45%,transparent);pointer-events:none;}
/* Paper 48: the slot and tag row share one length. At rest it is 34 + 12px. */
.wall-search-controls {
  --nv-search-alert-height:34px;
  --nv-search-alert-travel:calc(var(--nv-search-alert-height) + var(--nv-search-gap));
}
.wall-search-controls[data-alert-raised] {--nv-search-alert-rise:var(--nv-search-alert-travel);}
.wall-search-alert-slot {
  position:absolute;
  bottom:calc(var(--nv-search-pill-height) + var(--nv-search-gap));
  width:var(--nv-search-pill-width);
  max-width:100%;
  height:max(0px, var(--nv-search-alert-rise) - var(--nv-search-gap));
  overflow:hidden;
}
.wall-search-controls .wall-search-alert {
  --spacing:4px;
  --font-weight-medium:500;
  --danger-soft-foreground:#A33333;
  position:absolute;
  inset:auto 0 0;
  box-sizing:border-box;
  height:var(--nv-search-alert-height);
  align-items:center;
  border-radius:var(--nv-search-pill-radius);
  padding:4px 10px;
  border:1px solid transparent;
  gap:4px;
  background-color:color-mix(in srgb,var(--nv-search-glass-light-fill) var(--nv-search-glass-light-rest),transparent);
  -webkit-backdrop-filter:blur(var(--nv-image-pill-blur));
  backdrop-filter:blur(var(--nv-image-pill-blur));
  box-shadow:none;
  opacity:calc(var(--nv-search-controls-alpha) * (var(--nv-search-alert-rise) / var(--nv-search-alert-travel)));
}
.wall-search-alert .alert__indicator {flex-shrink:0;}
.wall-search-alert .alert__title {
  margin:0;
  font-family:"SFProRounded-Medium","SF Pro Rounded",system-ui,sans-serif;
  font-size:12px;
  white-space:nowrap;
}
/* Abhi, #1993: first paint and resize share one strict below390px boundary. */
@media(width <390px) {
  .nv-search-copy-full {display:none;}
  .nv-search-copy-compact {display:inline;}
}
.wall-search-footer {position:fixed;z-index:35;left:calc(var(--nv-sheet-side) + var(--nv-content-inset-x) + var(--nv-patrons-optical));bottom:28px;display:flex;align-items:center;gap:24px;height:16px;}
.wall-search-footer .furniture-bhava {position:static;inset:auto;transform:none;transition:transform var(--nv-search-out) ease-out;}
/* The old open label is present before the controller's FLIP read; the
   retained leaving label keeps this wait in force until its ink is gone. */
body:not([data-diary-open="true"]) .wall-search-footer:has(.wall-search-label[data-label="open"]:is([aria-hidden="false"],[data-leaving])) .furniture-bhava {transition-delay:var(--nv-search-label-out);}
body[data-diary-open="true"] .wall-search-footer .furniture-bhava {transition:transform var(--nv-search-in) var(--nv-search-ease);}
.wall-search-diary {display:flex;align-items:center;justify-content:flex-start;gap:0;min-width:0;height:24px;padding:0;margin:0;border:0;border-radius:0;background:transparent;color:#FFF;cursor:pointer;font:500 12px/16px "SFProRounded-Medium","SF Pro Rounded",system-ui,sans-serif;letter-spacing:.05em;}
.wall-search-diary svg {width:12px;height:12px;flex:none;}
/* Abhi2026-11-09: magnifier Diary ↔ text-only Done Searching. */
.wall-search-labels {display:grid;}
.wall-search-label {display:flex;align-items:center;gap:5px;grid-area:1/1;white-space:nowrap;min-width:0;width:0;overflow:visible;opacity:0;transition:opacity var(--nv-search-label-out) ease-out;}
body:not([data-diary-open="true"]) .wall-search-label[data-label="closed"],body[data-diary-open="true"] .wall-search-label[data-label="open"] {width:max-content;opacity:1;transition:opacity 150ms ease-out 40ms;}
.wall-search-label > span {text-decoration:underline 1px #FFFFFF66;text-underline-offset:3px;}
.wall-search-diary:hover .wall-search-label > span,body[data-diary-open="true"] .wall-search-label > span {text-decoration-color:#FFF;}
.wall-search-label[data-label="open"] {gap:0;transform:translateX(17px);}
.wall-search-label[data-label="open"][data-leaving] {transform:none;}
body[data-diary-open="true"] .wall-search-label[data-label="open"],.wall-search-label[data-label="closed"] {transform:none;}
body[data-diary-open="true"] .wall-search-label[data-label="closed"] {transform:translateX(-17px);}
.wall-search-label {transition:opacity var(--nv-search-label-out) ease-out,transform var(--nv-search-in) var(--nv-search-ease);}
body:not([data-diary-open="true"]) .wall-search-label[data-label="closed"],body[data-diary-open="true"] .wall-search-label[data-label="open"] {transition:opacity 150ms ease-out 40ms,transform var(--nv-search-in) var(--nv-search-ease);}
.wall-search-sr-only {position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
.wall-search-kaleidoscope {position:absolute;z-index:6;inset:0;overflow:hidden;border-radius:inherit;corner-shape:inherit;pointer-events:none;opacity:0;transform:scale(1.03);transition:opacity var(--nv-search-surface-exit) ease-out,transform var(--nv-search-surface-exit) ease-out;}
.wall-search-kaleidoscope::before {content:"";position:absolute;z-index:1;inset:0;border:1px solid var(--nv-search-edge);border-radius:inherit;corner-shape:inherit;pointer-events:none;}
.wall-search-kaleidoscope.is-visible {opacity:1;transform:none;transition-duration:var(--nv-search-surface-enter);}
.wall-search-kaleidoscope canvas {display:block;width:100%;height:100%;}
.wall-search-kaleidoscope::after {content:"";position:absolute;inset:0;background:radial-gradient(ellipse 680px 360px at 0% 100%,#06050ABD,#06050A00 74%),linear-gradient(to top,#06050AA8,#06050A00 150px);}
/* Short result lists still have enough scroll extent to land past the poster. */
body[data-diary-applied="true"] #days {min-height:calc(100% + var(--nv-wall-gutter));}
body[data-diary-applied="true"] .masthead-stage {visibility:hidden;pointer-events:none;}
#wall[data-search-held="true"] .masthead-stage {visibility:hidden;pointer-events:none;}
/* The compact sticky byline still shares the held fade. Desktop's aperture
   is above the finished pose T; no held fill or ground animation remains. */
@media(max-width:1023px) {
  #wall[data-search-held-results="true"] .sheet-backdrop {background:rgba(243,241,252,var(--nv-sheet-opacity));}
  .sheet:has(> #wall[data-search-held-results="true"]) > .sheet-blur {clip-path:none!important;}
}
.diary-word-results .day-body {animation:none;clip-path:none;}
.wall-search-column-probe {position:fixed;left:-10000px;top:0;visibility:hidden;pointer-events:none;}
/* The 56px reading fade ends 40px before the upper tray. Only the day margin
   is masked on desktop; result cards retain their own content and hit targets. */
body[data-diary-fade] .day-margin {mask-image:linear-gradient(to bottom,#000 calc(var(--nv-search-mask-end,10000px) - 56px),rgb(0 0 0 / calc(1 - var(--nv-fade-a))) var(--nv-search-mask-end,10000px));}
body[data-diary-empty="true"] .sheet,body[data-diary-empty="true"] #wall {touch-action:none;}
body[data-diary-empty="true"] #wall {overflow:hidden;}
/* Abhi11/09: compact browse opens without the banner or first-day date
   fragments. The same reading alpha returns metadata during Done's glide. */
@media(max-width:1023px) {
  /* #2011: share the first-day-line open clock; hide only after its fade.
     Removing compact restores the stage at once so Done keeps its own reveal. */
  body[data-search-compact] .masthead-stage {opacity:0;visibility:hidden;pointer-events:none;transition:opacity var(--nv-search-in) var(--nv-search-ease),visibility 0s linear var(--nv-search-in),transform var(--nv-masthead-transform-ms) var(--nv-masthead-transform-ease);}
  #days > .day:first-child :is(.margin-meta,.margin-meta > *) {mask-image:linear-gradient(rgb(0 0 0 / calc(1 - var(--nv-fade-a))),rgb(0 0 0 / calc(1 - var(--nv-fade-a))));transition:--nv-fade-a var(--nv-search-out) ease-out;}
  body[data-search-compact] #days > .day:first-child :is(.margin-meta,.margin-meta > *) {--nv-fade-a:1;transition:--nv-fade-a var(--nv-search-in) var(--nv-search-ease);}
}
@media(max-width:1023px) {
  [data-search-edge-row] {mask-image:linear-gradient(rgb(0 0 0 / calc(1 - var(--nv-fade-a))),rgb(0 0 0 / calc(1 - var(--nv-fade-a))));transition:--nv-fade-a var(--nv-search-out) ease-out;}
  [data-search-edge-row][data-search-top-cut] {--nv-fade-a:1;transition:--nv-fade-a var(--nv-search-in) var(--nv-search-ease);}
}
@media (768px <= width < 1024px) {
  /* One vertical fade plus a gutter-width horizontal reveal. Unlike a hard
     column split this is continuous for every halo/shadow crossing the gutter.
     The right card begins where the reveal reaches full opacity. */
  body[data-diary-fade] .day-cards {
    mask-image:linear-gradient(to bottom,#000 calc(var(--nv-search-mask-end,10000px) + var(--nv-search-shadow-outset) - 56px),rgb(0 0 0 / calc(1 - var(--nv-fade-a))) calc(var(--nv-search-mask-end,10000px) + var(--nv-search-shadow-outset))),linear-gradient(to right,transparent calc(var(--nv-search-mask-width,50%) + var(--nv-search-shadow-outset) - var(--nv-card-gap) / 2),#000 calc(var(--nv-search-mask-width,50%) + var(--nv-search-shadow-outset) + var(--nv-card-gap) / 2));
    mask-size:calc(100% + 2 * var(--nv-search-shadow-outset)) calc(100% + 2 * var(--nv-search-shadow-outset));
    mask-position:calc(-1 * var(--nv-search-shadow-outset)) calc(-1 * var(--nv-search-shadow-outset));
    mask-origin:border-box;mask-clip:no-clip;mask-repeat:no-repeat;mask-composite:add;
  }
}
@media(max-width:767px) {
  :root {--nv-search-notice-line:18px;--nv-search-pill-padding-left:14px;--nv-search-pill-height:44px;--nv-search-pill-width:100%;--nv-search-tray-width:calc(100vw - 2 * (var(--nv-sheet-side) + 12px));--nv-search-tray-fade:32px;}
  .wall-search-controls,.wall-search-notice {left:calc(var(--nv-sheet-side) + 12px);max-width:calc(100vw - 2 * (var(--nv-sheet-side) + 12px));}
  .wall-search-pill {--nv-search-pill-radius:22px;padding-left:14px;padding-right:8px;}
  .wall-search-input {font-size:16px;}
  body[data-diary-fade] .day-margin {mask-image:none;}
  body[data-diary-fade] .day {
    mask-image:linear-gradient(to bottom,#000 calc(var(--nv-search-mask-end,10000px) + var(--nv-search-shadow-outset) - 56px),rgb(0 0 0 / calc(1 - var(--nv-fade-a))) calc(var(--nv-search-mask-end,10000px) + var(--nv-search-shadow-outset)));
    mask-size:calc(100% + 2 * var(--nv-search-shadow-outset)) calc(100% + 2 * var(--nv-search-shadow-outset));
    mask-position:calc(-1 * var(--nv-search-shadow-outset)) calc(-1 * var(--nv-search-shadow-outset));
    mask-origin:border-box;mask-clip:no-clip;
  }
  .wall-search-no-results {line-height:var(--nv-search-notice-line);}
  .wall-search-footer {bottom:20px;}
  .wall-search-keyhint {display:none;}
  .wall-search-diary {min-height:44px;}
  .wall-search-clear {width:44px;min-width:44px;height:44px;margin-inline:-8px;}
  .wall-search-clear:hover {background:transparent;}
  .wall-search-clear::before {content:"";position:absolute;inset:8px;border-radius:50%;}
  .wall-search-clear:is(:hover,[data-pressed])::before {background:#FFFFFF1F;}
  .wall-search-tray {box-sizing:border-box;height:44px;padding-block:8px;margin-top:-8px;}
  .wall-search-tray [data-slot="tag"]::before {content:"";position:absolute;inset:-9px 0;}
}
@media(prefers-reduced-motion:reduce) {.wall-search-kaleidoscope {transition:none;transform:none;}}
html[data-motion="reduced"] .wall-search-kaleidoscope {transition:none;transform:none;}
@media(prefers-reduced-motion:reduce) {.wall-search-no-results {transition:none;}}
html[data-motion="reduced"] .wall-search-no-results {transition:none;}

/* Blink/WebKit clip mask-image ink overflow. Their outset-capable box mask
   carries the SAME vertical gradient; only the opaque right column is added.
   Gecko uses the enlarged no-clip images above. No layout box is expanded. */
@supports (-webkit-mask-box-image-outset:1px) {
  @media(768px <= width < 1024px) {
    body[data-diary-fade] .day-cards {
      mask-image:linear-gradient(transparent,transparent),linear-gradient(to right,transparent calc(var(--nv-search-mask-width,50%) + var(--nv-search-shadow-outset) - var(--nv-card-gap) / 2),#000 calc(var(--nv-search-mask-width,50%) + var(--nv-search-shadow-outset) + var(--nv-card-gap) / 2));
      -webkit-mask-box-image:linear-gradient(to bottom,#000 calc(var(--nv-search-mask-end,10000px) + var(--nv-search-shadow-outset) - 56px),rgb(0 0 0 / calc(1 - var(--nv-fade-a))) calc(var(--nv-search-mask-end,10000px) + var(--nv-search-shadow-outset))) 0 fill / 0 / var(--nv-search-shadow-outset) stretch;
    }
  }
  @media(max-width:767px) {
    body[data-diary-fade] .day {
      mask-image:none;
      -webkit-mask-box-image:linear-gradient(to bottom,#000 calc(var(--nv-search-mask-end,10000px) + var(--nv-search-shadow-outset) - 56px),rgb(0 0 0 / calc(1 - var(--nv-fade-a))) calc(var(--nv-search-mask-end,10000px) + var(--nv-search-shadow-outset))) 0 fill / 0 / var(--nv-search-shadow-outset) stretch;
    }
  }
}
[data-search-return-quiet] .wall-search-diary {outline:none;box-shadow:none;}
.wall-search-swap {position:absolute;inset:0;z-index:5;overflow:hidden;pointer-events:none;}
/* The frozen copy must NOT become a second source of --wall-handoff.
   An ambiguous named timeline resets the live sheet/wordmark while held. */
.wall-search-old-content {position:absolute;isolation:isolate;pointer-events:none;scroll-timeline-name:none;}
#days[data-search-swap] :is(.card,.corona-halo) {--nv-stagger-opacity-ms:0ms;--nv-stagger-transform-ms:0ms;transition-delay:0s;}
#days[data-search-swap] .day-margin {opacity:1;transform:none;transition:--nv-fade-a var(--nv-search-out) ease-out;}
body[data-diary-open="true"] #days[data-search-swap] .day-margin {transition:--nv-fade-a var(--nv-search-in) var(--nv-search-ease);}

/* Scoped, non-inherited alpha: no invalidation of every descendant on a frame. */
.day-margin {transition:opacity 260ms var(--nv-stagger-ease),transform 260ms var(--nv-stagger-ease),--nv-fade-a var(--nv-search-out) ease-out;}
body[data-diary-open="true"] .day-margin {--nv-fade-a:1;transition:opacity 260ms var(--nv-stagger-ease),transform 260ms var(--nv-stagger-ease),--nv-fade-a var(--nv-search-in) var(--nv-search-ease);}
@media (768px <= width < 1024px) {
  .day-cards {transition:--nv-fade-a var(--nv-search-out) ease-out;}
  body[data-diary-open="true"] .day-cards {--nv-fade-a:1;transition:--nv-fade-a var(--nv-search-in) var(--nv-search-ease);}
}
@media(max-width:767px) {
  .day {transition:--nv-fade-a var(--nv-search-out) ease-out;}
  body[data-diary-open="true"] .day {--nv-fade-a:1;transition:--nv-fade-a var(--nv-search-in) var(--nv-search-ease);}
  body[data-diary-open="true"] .day-margin {--nv-fade-a:0;}
}
@media(prefers-reduced-motion:reduce) {
  .wall-search-controls,body[data-diary-open="true"] .wall-search-controls {transform:none;transition:none;}
  body[data-diary-open="true"] .wall-search-controls {transition-delay:0s;}
  .wall-search-label,.wall-search-footer .furniture-bhava,body:not([data-diary-open="true"]) .wall-search-label[data-label="closed"],body[data-diary-open="true"] :is(.wall-search-label[data-label],.wall-search-footer .furniture-bhava) {transition:none;}
  .day-margin,.day-cards,.day,body[data-diary-open="true"] :is(.day-margin,.day-cards,.day) {transition:--nv-fade-a 100ms ease-out;}
}
html[data-motion="reduced"] .wall-search-controls,html[data-motion="reduced"] body[data-diary-open="true"] .wall-search-controls {transform:none;transition:none;}
html[data-motion="reduced"] body[data-diary-open="true"] .wall-search-controls {transition-delay:0s;}
html[data-motion="reduced"] body:not([data-diary-open="true"]) .wall-search-label[data-label="closed"],html[data-motion="reduced"] .wall-search-label,html[data-motion="reduced"] .wall-search-footer .furniture-bhava,html[data-motion="reduced"] body[data-diary-open="true"] :is(.wall-search-label[data-label],.wall-search-footer .furniture-bhava) {transition:none;}
html[data-motion="reduced"] :is(.day-margin,.day-cards,.day),html[data-motion="reduced"] body[data-diary-open="true"] :is(.day-margin,.day-cards,.day) {transition:--nv-fade-a 100ms ease-out;}

@media(prefers-reduced-motion:reduce) {#days[data-search-swap] .day-margin,body[data-diary-open="true"] #days[data-search-swap] .day-margin {transition:--nv-fade-a 100ms ease-out;}}
html[data-motion="reduced"] #days[data-search-swap] .day-margin,html[data-motion="reduced"] body[data-diary-open="true"] #days[data-search-swap] .day-margin {transition:--nv-fade-a 100ms ease-out;}

/* Designer6724789171 items9–18. The existing sheet radius is the inset floor;
   no entrance duration, spring, delay or cap is redefined here. */
.diary-results {--nv-search-results-floor:var(--nv-corner);padding-top:calc(var(--nv-search-results-floor) + var(--nv-search-landing-extra,0px));padding-bottom:var(--nv-search-results-room,0px);}
.diary-results .day-margin {padding-top:0;}
@media(max-width:1023px) {
  /* Abhi11/09: results use the measured side inset, not the first hidden
     date/query header reserve. Later days retain their native spacing. */
  .diary-results > .day:first-child .day-body {margin-top:0;}
  .diary-results > .day:first-child .day-margin {visibility:hidden;pointer-events:none;}
  /* Abhi11/09 20:15: retain T even when the result is shorter than the sheet.
     The old percentage minimum omitted the landing offset and clamped scroll. */
  body[data-diary-applied="true"] #days:has(.card) {min-height:calc(100% + var(--nv-wall-gutter) + var(--nv-search-landing-extra,0px));}

}

.diary-margin-group {display:contents;}
.diary-results .diary-margin-group .margin-meta {animation:none;opacity:1;}
.card[data-diary-rest] {--nv-stagger-opacity-ms:0ms;--nv-stagger-transform-ms:0ms;}
@media(min-width:1024px) {
  .diary-results .diary-margin-group {position:sticky;top:calc(var(--nv-search-results-floor) - var(--nv-wall-gutter));}
  .diary-results .diary-margin-group {display:block;}
  .diary-results .diary-margin-group .margin-body {position:relative;top:auto;}
  .diary-margin-group:has(.margin-body[hidden]) .margin-meta {margin-top:0;}
}

/* #1972: programmatic text-input focus after a pointer tag selection is quiet.
   A real key clears this attribute before keyboard navigation or typing. */
/* Abhi11/09: the search field keeps its caret/edge, with no focus stroke.
   Keyboard focus rings on chips and other controls are unchanged. */

@media(prefers-reduced-motion:reduce) {.wall-search-tray-wrap {transition:none;}.wall-search-label {transform:none!important;}}
html[data-motion="reduced"] .wall-search-tray-wrap {transition:none;}
html[data-motion="reduced"] .wall-search-label {transform:none!important;}

@media(max-width:1023px) and (prefers-reduced-motion:reduce) {
  body[data-search-compact] .masthead-stage {transition:none!important;}
  #days > .day:first-child :is(.margin-meta,.margin-meta > *),[data-search-edge-row] {transition:--nv-fade-a 100ms ease-out!important;}
}
@media(max-width:1023px) {
  html[data-motion="reduced"] body[data-search-compact] .masthead-stage {transition:none!important;}
  html[data-motion="reduced"] #days > .day:first-child :is(.margin-meta,.margin-meta > *),html[data-motion="reduced"] [data-search-edge-row] {transition:--nv-fade-a 100ms ease-out!important;}
}

/* ── #2032 search week grid ─────────────────────────────────────────
   All/tag results group by week under one sticky heading; typed words reuse
   the same grid with no headings. The left column is gone: the week heading
   replaces the day label, and the old reading fades belonged to that column —
   the controls' white blur does that work now, cards just pass behind it. */
:is(#days,.wall-search-frozen-days) .day.search-grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; position: relative; }
:is(#days,.wall-search-frozen-days) .day.search-grid + .day.search-grid { margin-top: calc(var(--nv-day-gap) + var(--nv-week-row, 40px) - 40px); }
:is(#days,.wall-search-frozen-days) .day.search-week > .week-cards { margin-top: var(--nv-week-first-row, var(--nv-row-gap)); }
:is(#days,.wall-search-frozen-days) .day-cards.week-cards { flex: none; width: 100%; }
:is(#days,.wall-search-frozen-days) .day-cards.week-cards > .card {
  /* width(s) = (s·100% − (n−s)·g) / n — one card per column at s = 1. */
  width: calc((var(--nv-masonry-span, 1) * 100% - (var(--nv-masonry-columns, 1) - var(--nv-masonry-span, 1)) * var(--nv-card-gap)) / var(--nv-masonry-columns, 1));
}
body[data-diary-fade] :is(#days,.wall-search-frozen-days) .day.search-grid,
body[data-diary-fade] :is(#days,.wall-search-frozen-days) .day.search-grid .day-cards { mask-image: none; -webkit-mask-box-image: none; }

/* The week heading: the wall's date face, sized per #2032 §5 (vars written by
   applySearchGridMetrics). Sticky 16px from the SHEET top (the scrollport's
   own --nv-wall-gutter sits above it); pinned it becomes the page-48 white
   glass band (fill #FFFFFFD9, blur 12, radius row/2, no stroke) fading over
   150ms. Text sits at the content edge at rest; the 16px side padding exists
   only on the pinned band (a small shift when the band fades in is the
   drawing). The push-off is clipped by the paper; bands never overlap because
   each heading stays inside its own week's box. */
.week-heading {
  position: sticky; top: calc(16px - var(--nv-wall-gutter, 0px)); z-index: 5;
  height: var(--nv-week-row, 40px);
  display: flex; align-items: center; gap: 16px;
  margin: 0; padding: 0;
  color: #0E0D24;
  font: italic 600 var(--nv-week-size, 24px)/var(--nv-week-line, 29px) "Newsreader", system-ui, sans-serif;
  opacity: 0;
  transform: translateY(var(--nv-stagger-rise)) scale(var(--nv-stagger-scale));
  transition:
    opacity var(--nv-stagger-opacity-ms) var(--nv-stagger-opacity-ease) var(--nv-card-delay, 0ms),
    transform var(--nv-stagger-transform-ms) var(--nv-stagger-transform-ease) var(--nv-card-delay, 0ms);
}
.week-heading.is-in { opacity: 1; transform: none; }
.week-heading[data-stuck="true"] { padding: 0 16px; }
.week-heading::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: calc(var(--nv-week-row, 40px) / 2);
  background: #FFFFFFD9;
  -webkit-backdrop-filter: blur(var(--nv-image-pill-blur, 12px));
  backdrop-filter: blur(var(--nv-image-pill-blur, 12px));
  box-shadow: 0 1px 2px #0E0D240F;
  opacity: 0; transition: opacity 150ms ease-out;
}
.week-heading[data-stuck="true"]::before { opacity: 1; }
/* The hairline runs from the text to the content edge, 1px at the row's
   centre; pinned, the band shows text only. */
.week-heading-rule { flex: 1; height: 1px; background: #0E0D2424; transition: opacity 150ms ease-out; }
.week-heading[data-stuck="true"] .week-heading-rule { opacity: 0; }
/* Zero-area sentinels: the week's top and its bottom minus the heading row. */
.week-pin { position: absolute; left: 0; width: 1px; height: 1px; visibility: hidden; pointer-events: none; }
.week-pin[data-week-pin="top"] { top: 0; }
.week-pin[data-week-pin="exit"] { bottom: var(--nv-week-row, 40px); }
@media (max-width: 1023px) {
  /* Below 1024 the closed wall's date line is Fraunces; the heading follows. */
  .week-heading { font-family: "Fraunces", system-ui, sans-serif; }
}
/* Swap states keep the heading instant like the retired left column was —
   but only on the settled (filter) swap. A held entrance prepares under
   data-search-swap="preparing"; forcing ink there painted the heading over
   the held old view (#2032 fix round 1 H4c). */
#days[data-search-swap="settled"] .week-heading { opacity: 1; transform: none; transition: --nv-fade-a var(--nv-search-out) ease-out; }
body[data-diary-open="true"] #days[data-search-swap="settled"] .week-heading { transition: --nv-fade-a var(--nv-search-in) var(--nv-search-ease); }
@media (prefers-reduced-motion: reduce) {
  .week-heading { opacity: 1 !important; transform: none !important; transition: none !important; }
  .week-heading::before, .week-heading-rule { transition: none; }
  #days[data-search-swap="settled"] .week-heading, body[data-diary-open="true"] #days[data-search-swap="settled"] .week-heading { transition: --nv-fade-a 100ms ease-out; }
}
html[data-motion="reduced"] .week-heading { opacity: 1 !important; transform: none !important; transition: none !important; }
html[data-motion="reduced"] .week-heading::before, html[data-motion="reduced"] .week-heading-rule { transition: none; }
html[data-motion="reduced"] #days[data-search-swap="settled"] .week-heading, html[data-motion="reduced"] body[data-diary-open="true"] #days[data-search-swap="settled"] .week-heading { transition: --nv-fade-a 100ms ease-out; }

/* #2032, Abhi2026-11-11: no poster box or reserved height in search. Its
   existing paper-fill plane is portaled while the captured poster leaves. */
@property --nv-search-poster-cover { syntax:"<number>";inherits:true;initial-value:0; }
body[data-search-frame] #wall > .masthead-stage { display:contents; }
body[data-search-frame] #wall > .masthead-stage > :not(.sheet-backdrop) { display:none; }
.search-masthead-plane::after { content:"";position:absolute;inset:0;border-radius:inherit;corner-shape:inherit;background:rgba(243,241,252,var(--nv-sheet-opacity));-webkit-backdrop-filter:blur(var(--nv-sheet-blur));backdrop-filter:blur(var(--nv-sheet-blur));opacity:var(--nv-search-poster-cover); }
body[data-search-header] .sheet { top:calc(var(--nv-sheet-rest-top) + var(--nv-sheet-travel)); }
body[data-search-header] > .masthead-wordmark-clip { height:calc(var(--nv-sheet-rest-top) + var(--nv-sheet-travel)); }
body[data-search-header] > .masthead-wordmark-clip .masthead-wordmark { transform:none; }
body[data-search-frame-ready] .sheet > .sheet-blur { clip-path:none!important; }

/* Keep the outgoing opening picture in screen coordinates while the SAME
   native/phone header clock moves its clipping window. No new motion clock. */
:is(.wall-search-opening-content,.search-masthead-opening) {--nv-held-sheet-top:var(--nv-sheet-top);}
body[data-search-header] :is(.wall-search-opening-content,.search-masthead-opening) {--nv-held-sheet-top:calc(var(--nv-sheet-rest-top) + var(--nv-sheet-travel));}
