/* Research's article's visuals (article/researchArticle.js): the buzz on a lock screen, in the study's own app's look,
   which stays light at night; and the people and week four drawn in the canvas's hues, which turn with day and night,
   the reminder on in teal, off in slate, and what is the writer's guess or line in ochre. */

.of-research { --research-on: var(--hue-teal); --research-off: var(--hue-slate); --research-guess: var(--hue-ochre); --research-guess-ink: #7a5f1f; }
@media (prefers-color-scheme: dark) { .of-research { --research-on: #77bab2; --research-off: #8fb0cc; --research-guess: #d3b269; --research-guess-ink: #dfc27f; } }

/* ---- the reminder: a lock screen, whose wallpaper turns a little with the hour ---- */
.of-research .research-phone { position: relative; isolation: isolate; display: flex; flex-direction: column; flex: none; width: 232px; height: 420px; overflow: hidden; border: 6px solid #1c1b19; border-radius: 37px; color: #1d1d1f; font: 12px/1.35 -apple-system, BlinkMacSystemFont, "Helvetica Neue", system-ui, sans-serif; text-align: center; box-shadow: 0 22px 40px -22px rgba(0, 0, 0, .4); }
.of-research .research-phone::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(168deg, #cfe0f2 0%, #dcd7f0 48%, #f4ddcf 100%); filter: hue-rotate(var(--research-turn, 0deg)); transition: filter .6s var(--soft); }
.of-research .research-status { display: flex; justify-content: flex-end; gap: 5px; padding: 10px 20px 0; }
.of-research .research-status i { width: 16px; height: 8px; border-radius: 2px; background: #2b2b30; opacity: .75; }
.of-research .research-status i:first-child { width: 12px; clip-path: polygon(0 100%, 100% 100%, 100% 0); }
.of-research .research-lock { width: 15px; height: 15px; margin: 6px auto 0; fill: none; stroke: #2b2b30; stroke-width: 1.5; stroke-linejoin: round; }
.of-research .research-time { margin: 0 auto; padding: 0 10px; font-size: 64px; line-height: 1.15; font-weight: 300; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.of-research .research-stack { position: relative; margin: 22px 10px 0; text-align: left; }
.of-research .research-alert { position: relative; z-index: 1; padding: 10px 11px 11px; border-radius: 18px; background: rgba(255, 255, 255, .86); box-shadow: 0 10px 24px -14px rgba(30, 30, 60, .5); transition: transform .6s var(--move), box-shadow .4s var(--soft); }
.of-research .research-swiped .research-alert { transform: translateX(-52%); }
.of-research .research-clear { position: absolute; right: 0; top: 0; bottom: 0; display: grid; place-items: center; width: 76px; border-radius: 18px; background: rgba(255, 255, 255, .6); font-size: 12px; font-weight: 600; color: #3a3a40; }
.of-research .research-from { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; font-size: 10.5px; color: #66666c; }
.of-research .research-from i { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 5px; background: var(--app-tint); }
.of-research .research-from svg { width: 13px; height: 13px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.of-research .research-from b { font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.of-research .research-from span { margin-left: auto; }
.of-research .research-say { margin: 0; border-radius: 5px; outline: 1.5px solid transparent; outline-offset: 2px; font-size: 13.5px; line-height: 1.35; font-weight: 600; overflow-wrap: anywhere; cursor: text; transition: outline-color .25s, box-shadow .4s var(--soft); }
.of-research .research-say:is(:hover, :focus) { outline-color: color-mix(in srgb, var(--app-tint) 60%, transparent); }
.of-research .research-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding-top: 9px; text-align: center; font-size: 11.5px; font-weight: 600; }
.of-research .research-actions span { padding: 6px 2px; border-radius: 10px; background: rgba(60, 60, 80, .1); }
.of-research .research-actions span:first-child { background: var(--app-tint); color: #fff; }
.of-research .research-gone { width: fit-content; margin: 14px auto 0; padding: 4px 11px; border: 1px dashed #55555c; border-radius: 20px; font-size: 11px; font-weight: 600; color: #36363c; }
.of-research .research-dock { display: flex; justify-content: space-between; margin: auto 30px 0; padding-bottom: 26px; }
.of-research .research-dock i { width: 36px; height: 36px; border-radius: 50%; background: rgba(40, 40, 60, .22); }
.of-research .research-phone::after { content: ""; position: absolute; left: 50%; bottom: 8px; width: 84px; height: 4px; margin-left: -42px; border-radius: 2px; background: #2b2b30; }
.of-research .research-alert.lit { border-radius: 18px; }

/* ---- who gets it: who decides, then the two groups, a dot a person ---- */
.of-research .research-split { display: flex; flex-direction: column; gap: 12px; width: min(580px, 100%); font-size: 13px; line-height: 1.4; }
.of-research .research-gate { display: grid; grid-template-columns: auto 1fr 1fr; gap: 8px; }
.of-research .research-signed { display: flex; flex-direction: column; justify-content: center; padding: 6px 12px; border: 1.5px solid var(--research-off); border-radius: 12px; background: var(--paper); text-align: center; font-size: 12px; color: var(--muted); }
.of-research .research-signed b { font-size: 21px; line-height: 1.2; font-weight: 650; color: var(--ink-strong); font-variant-numeric: tabular-nums; }
.of-research .research-way { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 12px; border: 1.5px dashed var(--faint); border-radius: 12px; color: var(--muted); cursor: pointer; transition: border-color .4s var(--soft), background-color .4s var(--soft), box-shadow .4s var(--soft); }
.of-research .research-way p { font-size: 12px; line-height: 1.35; }
.of-research .research-way b { display: block; font-size: 13px; font-weight: 600; color: var(--ink); }
.of-research .research-way.research-picked { border-style: solid; border-color: var(--research-guess); background: color-mix(in srgb, var(--research-guess) 13%, var(--paper)); color: var(--ink); }
.of-research .research-switch { position: relative; flex: none; width: 32px; height: 19px; border-radius: 10px; background: var(--research-on); opacity: .45; }
.of-research .research-switch::after { content: ""; position: absolute; right: 2px; top: 2px; width: 15px; height: 15px; border-radius: 50%; background: #fff; }
.of-research .research-picked .research-switch { opacity: 1; }
.of-research .research-toss { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border: 2px solid var(--research-guess); border-radius: 50%; box-shadow: inset 0 0 0 2px var(--paper), inset 0 0 0 3px color-mix(in srgb, var(--research-guess) 55%, transparent); font-size: 10px; font-style: normal; font-weight: 700; color: var(--ink-strong); }
.of-research .research-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.of-research .research-group { display: flex; flex-direction: column; min-width: 0; padding: 9px 11px 7px; border: 1.5px solid color-mix(in srgb, var(--research-hue) 70%, transparent); border-radius: 12px; background: color-mix(in srgb, var(--research-hue) 8%, var(--paper)); transition: box-shadow .4s var(--soft); }
.of-research .research-on { --research-hue: var(--research-on); }
.of-research .research-off { --research-hue: var(--research-off); }
.of-research .research-count { color: var(--muted); white-space: nowrap; }
.of-research .research-count b { margin-right: 3px; font-size: 22px; font-weight: 650; color: var(--ink-strong); font-variant-numeric: tabular-nums; }
.of-research .research-field { margin-top: 3px; }
.of-research .research-field svg { display: block; width: 100%; height: auto; fill: none; stroke-width: 6.6px; stroke-linecap: round; }
.of-research .research-dots { stroke: var(--research-hue); transition: stroke-width .4s var(--soft); }
.of-research .research-keendots { stroke: var(--research-guess); transition: stroke-width .4s var(--soft); }
.of-research .research-keendots.lit { stroke-width: 9.4px; }
.of-research .research-keencount { width: fit-content; min-height: 19px; font-size: 12.5px; font-weight: 600; color: var(--research-guess-ink); }
.of-research .research-keencount:empty.lit { box-shadow: none; }
.of-research .research-told { min-height: 2.8em; text-align: center; font-size: 12.5px; color: var(--muted); }
.of-research .research-ledger { align-self: center; padding: 4px 12px; border: 1px solid var(--research-on); border-radius: 20px; background: var(--paper); font-size: 12px; text-align: center; }
.of-research .research-ledger::before { content: "✓ "; color: var(--research-on); font-weight: 700; }

/* ---- week four: the sheet's bars with the writer's line over them, and the coin's month, empty ---- */
.of-research .research-week { display: flex; flex-direction: column; gap: 10px; width: min(580px, 100%); font-size: 13px; line-height: 1.4; }
.of-research .research-unit { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; font-size: 12.5px; color: var(--muted); }
.of-research .research-unit i { display: inline-block; width: 20px; height: 11px; margin-right: 5px; vertical-align: -1px; border-top: 2px dashed var(--research-guess); background: repeating-linear-gradient(45deg, color-mix(in srgb, var(--research-guess) 60%, transparent) 0 2px, transparent 2px 5px); }
.of-research .research-panels { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto auto 1fr; gap: 0 10px; }
.of-research .research-panel { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 6px; min-width: 0; padding: 10px 11px; border: 1px solid var(--hairline); border-radius: 12px; background: var(--paper); transition: border-color .4s var(--soft), box-shadow .4s var(--soft); }
.of-research .research-head { font-size: 12px; color: var(--muted); }
.of-research .research-head b { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-strong); }
.of-research .research-plot { display: flex; gap: 6px; height: 188px; border-bottom: 1.5px solid var(--faint); }
.of-research .research-pair { position: relative; flex: 1; min-width: 0; }
.of-research :is(.research-bar, .research-unknown) { position: absolute; bottom: 0; width: 32%; border-radius: 6px 6px 0 0; }
.of-research :is(.research-bar, .research-unknown).research-on { left: 10%; }
.of-research :is(.research-bar, .research-unknown).research-off { left: 48%; }
.of-research .research-bar { background: var(--research-hue); transition: box-shadow .4s var(--soft); }
.of-research .research-bar b { position: relative; z-index: 3; display: block; width: fit-content; margin: 5px auto 0; padding: 0 5px; border-radius: 5px; background: var(--paper); font-size: 13px; font-weight: 650; color: var(--ink-strong); font-variant-numeric: tabular-nums; }
.of-research .research-band { position: absolute; left: 0; right: 14%; z-index: 2; border-top: 2px dashed var(--research-guess); background: repeating-linear-gradient(45deg, color-mix(in srgb, var(--research-guess) 55%, transparent) 0 3px, transparent 3px 8px); transition: height .45s var(--move), box-shadow .4s var(--soft); }
.of-research .research-gap { position: absolute; left: 83%; width: 6px; border: 2px solid var(--ink); border-left: 0; transition: box-shadow .4s var(--soft); }
.of-research .research-gap b { position: absolute; left: 7px; top: 50%; margin-top: -9px; font-size: 12px; line-height: 18px; font-weight: 650; color: var(--ink-strong); }
.of-research .research-unknown { display: grid; place-items: center; height: 100%; border: 1.5px dashed color-mix(in srgb, var(--research-hue) 85%, transparent); border-bottom: 0; background: color-mix(in srgb, var(--research-hue) 6%, transparent); transition: height .45s var(--move); }
.of-research .research-unknown b { font: 22px/1 var(--face-serif); color: var(--muted); }
.of-research .research-kept .research-unknown.research-on { height: 68%; }
.of-research .research-leftout { position: absolute; left: 10%; top: 0; display: grid; place-items: center; width: 32%; height: 28%; border: 1.5px dashed var(--research-guess); border-radius: 6px; background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--research-guess) 28%, transparent) 0 2px, transparent 2px 7px); font-size: 11px; line-height: 1.15; font-weight: 600; text-align: center; color: var(--research-guess-ink); }
.of-research .research-month.research-kept { border-color: var(--research-guess); }
.of-research .research-axis { display: flex; gap: 6px; font-size: 11.5px; line-height: 1.35; color: var(--muted); }
.of-research .research-axis div { position: relative; flex: 1; min-width: 0; min-height: 32px; }
.of-research .research-axis span { position: absolute; top: 0; width: 38%; text-align: center; }
.of-research .research-axis span:nth-child(1) { left: 7%; }
.of-research .research-axis span:nth-child(2) { left: 45%; }
.of-research .research-axis em { position: absolute; left: 0; right: 0; bottom: 0; font-style: normal; font-weight: 600; text-align: center; color: var(--ink); }
.of-research .research-verdict { padding-top: 6px; border-top: 1px solid var(--hairline); font-size: 12.5px; }
.of-research .research-verdict.research-nil { color: var(--research-guess-ink); font-weight: 600; }
.of-research .research-muted { display: flex; flex-wrap: wrap; gap: 2px 14px; padding: 8px 11px; border: 1px dashed var(--faint); border-radius: 10px; background: var(--paper); font-size: 12.5px; color: var(--muted); }
.of-research .research-muted b { width: 100%; font-weight: 600; color: var(--ink-strong); }
.of-research .research-guess { align-self: center; max-width: 340px; padding: 9px 13px; border: 1px solid var(--research-guess); background: color-mix(in srgb, var(--research-guess) 17%, var(--paper)); font: 12px/1.55 var(--face-mono); transform: rotate(-.8deg); }

/* ---- narrow: the same drawings in a phone's column ---- */
@container (width < 760px) {
  .of-research .research-phone { width: 222px; height: 400px; }
  .of-research .research-time { font-size: 58px; }
  .of-research .research-gate { grid-template-columns: 1fr 1fr; }
  .of-research .research-signed { grid-column: 1 / -1; flex-direction: row; align-items: baseline; gap: 6px; }
  .of-research .research-way { flex-direction: column; gap: 4px; padding: 7px 6px; text-align: center; }
  .of-research .research-switch { display: none; }
  .of-research .research-toss { width: 34px; height: 34px; }
  .of-research .research-groups { gap: 6px; }
  .of-research .research-group { padding: 7px 7px 3px; }
  .of-research .research-count { white-space: normal; line-height: 1.25; }
  .of-research .research-count b { display: block; font-size: 19px; }
  .of-research .research-panels { gap: 0 6px; }
  .of-research .research-panel { padding: 8px 6px; }
  .of-research .research-plot { gap: 4px; height: 156px; }
  .of-research .research-axis { gap: 4px; font-size: 11px; }
  /* "Beginners" is the longer name: its pair takes the room it needs. */
  .of-research :is(.research-pair, .research-axis div):first-child:not(:only-child) { flex: 1.35; }
  .of-research :is(.research-bar, .research-unknown).research-on, .of-research .research-leftout { left: 5%; }
  .of-research :is(.research-bar, .research-unknown).research-off { left: 43%; }
  .of-research .research-axis span:nth-child(1) { left: 2%; }
  .of-research .research-axis span:nth-child(2) { left: 40%; }
  .of-research .research-band { right: 20%; }
  .of-research .research-gap { left: 77%; width: 4px; }
  .of-research .research-gap b { left: 5px; font-size: 11px; }
}

/* On a phone the two pairs of a split chart stand wider apart within their narrow columns, so that "On" and "Off" do
   not touch, and have no room for "left out", which the verdict under them says. */
@container (width < 480px) {
  .of-research .research-pair:not(:only-child) .research-leftout { font-size: 0; }
  .of-research .research-pair:not(:only-child) :is(.research-unknown, .research-leftout) { left: 4%; width: 40%; }
  .of-research .research-pair:not(:only-child) .research-unknown.research-off { left: 54%; }
  .of-research .research-axis div:not(:only-child) span { width: 40%; }
  .of-research .research-axis div:not(:only-child) span:nth-child(1) { left: 4%; }
  .of-research .research-axis div:not(:only-child) span:nth-child(2) { left: 54%; }
}

/* article.css stills every element's transitions, which does not reach a pseudo-element. */
@media (prefers-reduced-motion: reduce) {
  .of-research .research-phone::before { transition: none; }
}
