/* ovi-board: corkboard of event flyers, my calendar, my coffee table. Library home. */
.ovi-bh { margin: 22px 0 8px; padding: 0 14px; font: 800 15px/1.2 var(--ovi-heading, inherit); letter-spacing: .14em; text-transform: uppercase; }
.ovi-bh small { display: block; margin-top: 3px; font: 500 12px/1.3 var(--ovi-body, inherit); letter-spacing: 0; text-transform: none; opacity: .65; }

/* ---------------------------------------------------------------- corkboard */
#ovi-cork { margin: 0 0 8px; }
#ovi-cork .cork {
  margin: 0 10px; border: 9px solid #6e4a2b; border-radius: 8px; overflow: hidden;
  box-shadow: inset 0 0 24px rgba(0,0,0,.45), 0 3px 10px rgba(0,0,0,.35);
  background:
    radial-gradient(rgba(80,48,20,.45) 1px, transparent 1.6px) 0 0 / 7px 7px,
    radial-gradient(rgba(255,232,190,.3) 1px, transparent 1.6px) 3px 4px / 9px 9px,
    linear-gradient(135deg, #c9a272, #b48a58);
}
#ovi-cork .cork-in {
  display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-auto-columns: 44vw;
  max-width: 100%; gap: 18px 14px; padding: 22px 16px 16px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
}
@media (min-width: 700px) { #ovi-cork .cork-in { grid-auto-columns: 210px; } }
.fl {
  position: relative; margin: 0; scroll-snap-align: start; cursor: pointer; touch-action: manipulation;
  background: #fffdf4; padding: 6px 6px 8px; box-shadow: 1px 3px 7px rgba(0,0,0,.42);
  transform: rotate(var(--r, 0deg)); transition: transform .15s; -webkit-tap-highlight-color: transparent;
  color: #1d1a14; user-select: none; -webkit-user-select: none;
}
.fl:focus-visible { outline: 3px solid #0b4f6c; outline-offset: 2px; }
.fl img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: #e8e0c0; pointer-events: none; -webkit-user-drag: none; }
.fl figcaption { margin: 6px 2px 0; font: 700 12.5px/1.2 system-ui, sans-serif; overflow-wrap: anywhere; }
.fl figcaption span { display: block; margin-top: 2px; font-weight: 500; font-size: 11px; opacity: .65; }
.fl .pin { position: absolute; top: -9px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0 12%, var(--pin, #d33) 13% 100%); box-shadow: 0 2px 3px rgba(0,0,0,.5); }
.fl.past { opacity: .82; }
.fl.past::after { content: 'past'; position: absolute; right: 8px; top: 8px; font: 700 10px/1 system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase;
  color: #fff; background: rgba(0,0,0,.55); padding: 3px 6px; border-radius: 4px; }
.fl.added::before { content: 'on my calendar'; position: absolute; left: 8px; top: 8px; z-index: 1; font: 700 10px/1 system-ui, sans-serif;
  color: #fff; background: #1c7a44; padding: 3px 6px; border-radius: 4px; }
#cork-note { margin: 6px 14px 0; font: 500 12.5px/1.35 var(--ovi-body, system-ui, sans-serif); opacity: .7; }

/* ------------------------------------------------------------ full screen flyer */
#ovi-flyer { position: fixed; inset: 0; z-index: 100000; display: none; flex-direction: column; align-items: center; justify-content: flex-start;
  background: rgba(8,8,12,.94); color: #fff; padding: 14px 14px 18px; overflow-y: auto; }
#ovi-flyer.on { display: flex; }
#ovi-flyer::before, #ovi-flyer::after { content: ''; margin: auto; }
#ovi-flyer .x { position: absolute; top: 10px; right: 10px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.16); color: #fff; font: 400 28px/1 system-ui; cursor: pointer; }
#ovi-flyer img { max-width: 100%; max-height: 50vh; margin-top: 44px; object-fit: contain; border-radius: 4px; box-shadow: 0 6px 30px rgba(0,0,0,.6); }
#ovi-flyer h3 { margin: 14px 0 2px; font: 800 20px/1.2 system-ui, sans-serif; text-align: center; overflow-wrap: anywhere; }
#ovi-flyer .when { font: 500 14px/1.35 system-ui, sans-serif; opacity: .8; text-align: center; margin: 0 0 12px; }
#ovi-flyer .acts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; width: 100%; max-width: 460px; }
#ovi-flyer .acts a, #ovi-flyer .acts button { flex: 1 1 44%; min-height: 46px; padding: 0 16px; border-radius: 24px; border: 2px solid #fff; background: transparent; color: #fff;
  font: 700 14px/1.2 system-ui, sans-serif; text-align: center; text-decoration: none; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 10px 12px; box-sizing: border-box; }
#ovi-flyer .acts button.pri { background: #fff; color: #111; }
#ovi-flyer .acts button[disabled] { opacity: .55; cursor: default; }
#ovi-flyer .say { min-height: 18px; margin: 8px 0 0; font: 500 13px/1.3 system-ui, sans-serif; text-align: center; opacity: .9; }
#ovi-flyer .say a { color: #8fe3ff; }

/* ------------------------------------------------------------ collapsible windows */
/* ovi-window-unify (Robin: the windows must look like My shelf): the same grey bar with three dots, a round count and a chevron, mixed case, 13px 600 */
.ovi-bwin { margin: 0 0 6px; width: 100%; border: 0; border-radius: 9px; overflow: visible; background: transparent; }
.ovi-bwin-bar { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 12px; min-height: 36px; cursor: pointer; background: rgba(128,128,128,.14); border: 1px solid rgba(128,128,128,.34); border-radius: 9px; font: 600 13px/1.2 system-ui, sans-serif; letter-spacing: .02em; text-transform: none; color: inherit; }
.ovi-bwin[data-open="1"] .ovi-bwin-bar { border-bottom: 0; border-radius: 9px 9px 0 0; }
.ovi-bwin-bar:hover { background: rgba(128,128,128,.22); }
.ovi-bwin-bar .ovi-win-dots { display: inline-flex; gap: 5px; }
.ovi-bwin-bar .ovi-win-dots i { width: 9px; height: 9px; border-radius: 50%; background: currentColor; opacity: .34; display: block; }
.ovi-bwin-bar .ttl { flex: 1 1 auto; opacity: .9; }
.ovi-bwin-bar:focus-visible { outline: 3px solid #0b4f6c; outline-offset: -3px; }
.ovi-bwin-bar .n { font: 600 11px/18px system-ui, sans-serif; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; text-align: center; background: #1d1a14; color: #fff7a8; letter-spacing: 0; }
.ovi-bwin-bar .n[hidden] { display: none; }
.ovi-bwin-bar .chev { margin-left: 2px; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; opacity: .7; transform: rotate(45deg); transition: transform .24s ease; }
.ovi-bwin[data-open="1"] .ovi-bwin-bar .chev { transform: rotate(-135deg); }
.ovi-bwin-body { display: none; padding: 8px 12px 16px; border: 1px solid rgba(128,128,128,.34); border-top: 0; border-radius: 0 0 9px 9px; }
.ovi-bwin[data-open="1"] .ovi-bwin-body { display: block; }
.ovi-bwin .hint { margin: 6px 2px 10px; font: 500 13px/1.4 var(--ovi-body, system-ui, sans-serif); opacity: .75; }

/* ------------------------------------------------------------------ my calendar */
.cal-nav { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 8px; }
.cal-nav b { font: 800 16px/1 system-ui, sans-serif; }
.cal-nav button { width: 44px; height: 40px; border-radius: 10px; border: 1px solid rgba(128,128,128,.55); background: transparent; color: inherit; font: 700 18px/1 system-ui; cursor: pointer; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-grid .dow { font: 700 10.5px/1 system-ui, sans-serif; text-align: center; opacity: .55; padding: 4px 0; }
.cal-grid .d { position: relative; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; border-radius: 8px; border: 0; background: rgba(128,128,128,.1); color: inherit; font: 600 14px/1 system-ui, sans-serif; cursor: pointer; padding: 0; }
.cal-grid .d.blank { background: transparent; cursor: default; }
.cal-grid .d.today { outline: 2px solid #1d1a14; outline-offset: -2px; }
.cal-grid .d.has { background: #1c7a44; color: #fff; font-weight: 800; }
.cal-grid .d.sel { box-shadow: 0 0 0 3px #0b4f6c; }
.cal-list { margin: 12px 0 0; padding: 0; list-style: none; }
.cal-list li { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid rgba(128,128,128,.3); }
.cal-list img { width: 46px; height: 58px; object-fit: cover; border-radius: 3px; background: #ddd; flex: 0 0 auto; }
.cal-list a { color: inherit; font: 700 14px/1.25 system-ui, sans-serif; text-decoration: none; overflow-wrap: anywhere; }
.cal-list small { display: block; font: 500 12px/1.3 system-ui, sans-serif; opacity: .7; }
.cal-list .rm { margin-left: auto; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(128,128,128,.5); background: transparent; color: inherit; font: 400 22px/1 system-ui; cursor: pointer; }
.cal-join a { display: inline-block; margin-top: 4px; padding: 10px 18px; border-radius: 22px; border: 2px solid currentColor; color: inherit; font: 700 14px/1 system-ui, sans-serif; text-decoration: none; }

/* -------------------------------------------------------------- my coffee table */
#ct-deck { display: block; width: 100%; height: 66vh; border: 0; background: transparent; }
.ctable { margin-top: 10px; padding: 16px 12px 18px; border-radius: 10px; min-height: 120px;
  box-shadow: inset 0 0 30px rgba(0,0,0,.5);
  background:
    radial-gradient(ellipse at 50% 30%, rgba(255,235,200,.12), transparent 70%),
    repeating-linear-gradient(91deg, #6b4a2f 0 7px, #744f33 7px 15px, #5f4027 15px 24px, #6e4b30 24px 33px); }
.ctable .empty { margin: 8px 4px; color: #f4e6cf; font: 500 14px/1.4 system-ui, sans-serif; }
.ctable .lab { display: inline-block; margin: 6px 0 12px; padding: 5px 10px; background: #f4ecd8; color: #3a2a18; border-radius: 2px; box-shadow: 0 1px 3px rgba(0,0,0,.5); font: 800 11px/1 system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.ctable .tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 14px; margin: 0 0 14px; }
@media (min-width: 640px) { .ctable .tiles { grid-template-columns: repeat(4, 1fr); } }
.ctile { position: relative; margin: 0; padding: 5px 5px 7px; background: #fbf7ec; color: #1d1a14; box-shadow: 0 2px 6px rgba(0,0,0,.55); transform: rotate(var(--r, 0deg)); }
.ctile a { color: inherit; text-decoration: none; display: block; }
.ctile img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #ddd; }
.ctile b { display: block; margin-top: 6px; font: 700 12px/1.2 system-ui, sans-serif; overflow-wrap: anywhere; }
.ctile small { display: block; margin-top: 2px; font: 500 10.5px/1.2 system-ui, sans-serif; opacity: .6; }
.ctile .rm { position: absolute; top: -8px; right: -8px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: #1d1a14; color: #fff; font: 400 20px/1 system-ui; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.6); }

/* the Featured books title, made to match the other section titles on the home page */
html body #ovi-rack-title { margin: 22px 0 8px; padding: 0 14px; font-size: 15px !important; font-weight: 800 !important; line-height: 1.2; letter-spacing: .14em; opacity: 1 !important; }

/* Robin, 5 Nov: bold all headers, space, instructions in italics. The page body is a typewriter face with no bold, so headers use a face that has one. */
.ovi-bh, html body #ovi-rack-title { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important; font-weight: 800 !important; }
.ovi-bh small, .ovi-inst { font-style: italic; }
.ovi-bh small { font-weight: 500; }
h2.ovi-brand { margin: 30px 0 0; font-size: 24px; letter-spacing: .22em; }
h3.ovi-sub { margin: 34px 0 6px; padding: 0 14px; font-size: 16px; letter-spacing: .12em; text-transform: uppercase; }
.ovi-inst { margin: 0 14px 22px; font: italic 500 13.5px/1.4 var(--ovi-body, system-ui, sans-serif); opacity: .75; }
#ovi-gcontent { margin-bottom: 8px; }
#ovi-cork { margin-top: 20px; }

/* THE GODBERD INSTITUTE wordmark (Robin, 5 Nov): GODBERD is solid and heavy; "the" and "institute" are washed, as if the ink had worn off in patches (a noise mask takes bare spots out of them). */
h2.ovi-wm { display: block; margin: 30px 14px 0; padding: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; line-height: 1; width: fit-content; max-width: calc(100% - 28px); }
h2.ovi-wm span { display: block; }
.wm-gb { font-weight: 800; font-size: clamp(28px, 9.4vw, 40px); letter-spacing: .2em; margin-right: -.2em; }
.wm-the, .wm-inst, .wm-rule { --wm-ink: #4a4a48; color: var(--wm-ink); font-family: "Courier New", Courier, monospace; font-weight: 300; text-transform: lowercase; filter: url(#ovi-ribbon); }
.wm-the, .wm-inst { font-size: clamp(14px, 4.2vw, 18px); letter-spacing: .22em; }
/* typed rows of dashes above and below, like a line struck on the same typewriter; they never widen the mark */
.wm-rule { display: block; white-space: nowrap; overflow: hidden; max-width: 0; min-width: 100%; font-size: clamp(17px, 5.2vw, 22px); font-weight: 700; letter-spacing: 0; line-height: 1; margin: 0; filter: none; text-transform: none; }
.wm-rule:first-child { margin-bottom: 10px; }
.wm-rule:last-child { margin-top: 10px; }
.wm-l { display: inline-block; font-style: normal; opacity: var(--o, 1); transform: translateY(var(--y, 0)) rotate(var(--r, 0deg)); }
.wm-the { margin: 0 0 -3px -2px; }
.wm-inst { text-align: right; margin: -1px 0 0 0; }

/* ovi-crate-tiles: MY CRATE, a square photo with its title on it */
#ovi-crate-win .crate { padding: 4px 2px 10px; }
#ovi-crate-win .empty, #ovi-crate-win .hint { font: italic 14px/1.5 Georgia, serif; margin: 6px 2px 12px; }
.cr-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 560px) { .cr-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 860px) { .cr-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.crt { position: relative; margin: 0; border: 2px solid #1d1a14; border-radius: 0; box-shadow: 4px 4px 0 #1d1a14; color: #fff; overflow: hidden; background: linear-gradient(160deg, hsl(var(--h) 55% 62%), hsl(var(--h) 48% 40%)); -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.crt.noimg::before { content: attr(data-ini); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 800 96px/1 Georgia, serif; color: rgba(255,255,255,.28); }
.crt-open { display: block; position: relative; width: 100%; padding: 0 0 100%; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; font: inherit; -webkit-touch-callout: none; }
.crt .crt-img { position: absolute !important; top: 0; left: 0; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; display: block; margin: 0 !important; pointer-events: none; -webkit-user-drag: none; }
.crt-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; flex-direction: column; gap: 2px; padding: 26px 10px 9px; background: linear-gradient(to top, rgba(12,10,6,.9) 0%, rgba(12,10,6,.72) 55%, rgba(12,10,6,0) 100%); }
.crt-cap b { font: 800 15px/1.2 Georgia, serif; overflow-wrap: anywhere; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.crt-cap b { line-height: 1.18; }
.crt-cap small { font: 11.5px/1.3 system-ui, sans-serif; opacity: .86; }
.crt > .crt-x { position: absolute; right: 0; top: 0; z-index: 3; width: 44px; height: 44px; border: 0; background: transparent; padding: 0; cursor: pointer; }
.crt > .crt-x::before { content: '\00d7'; position: absolute; right: 6px; top: 6px; width: 26px; height: 26px; border-radius: 0; background: rgba(12,10,6,.7); color: #fff; font: 700 19px/26px system-ui, sans-serif; text-align: center; }
.crt.drag { z-index: 50; box-shadow: 0 14px 28px rgba(0,0,0,.45); opacity: .97; }
#ovi-crate-sheet { position: fixed; inset: 0; z-index: 2147483000; background: rgba(12,10,6,.7); display: none; align-items: center; justify-content: center; padding: 12px; }
#ovi-crate-sheet.on { display: flex; }
.crs-card { position: relative; width: 100%; max-width: 560px; height: min(86vh, 760px); background: #fff7a8; border: 2px solid #1d1a14; border-radius: 14px; overflow: hidden; }
.crs-card iframe { width: 100%; height: 100%; border: 0; background: #fff7a8; }
.crs-x { position: absolute; right: 8px; top: 8px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 2px solid #1d1a14; background: #fff7a8; color: #1d1a14; font: 800 24px/1 system-ui, sans-serif; cursor: pointer; padding: 0; }
