:root {
  --teal: #09CFC0;
  --teal-dark: #0a7f76;   /* teal that passes contrast for focus rings */
  --navy: #1b3a5a;
  --text: #54657a;        /* secondary text inside white cards */
  --muted: #7b8a9c;
  --tile-border: #d9e1eb;
  --ghost-border: #e4e8ef;
  --glass: rgba(255, 255, 255, .8);
  --glass-border: rgba(255, 255, 255, .95);
  --lift: 0 2px 4px rgba(15, 47, 77, .04), 0 14px 36px -14px rgba(15, 47, 77, .22);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  font-family: Poppins, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #a8d4f3;
  color: var(--navy);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }

/* Inner pages: soft light background instead of the sky */
body.plain { background: #F7F8FC; }
body.plain::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(900px 560px at 0% 0%, rgba(9, 207, 192, .14), transparent 70%),
    radial-gradient(900px 600px at 100% 100%, rgba(123, 124, 246, .14), transparent 70%);
}
body.plain .card, body.plain .video, body.plain .swatch { border-color: var(--tile-border); box-shadow: 0 1px 2px rgba(15, 47, 77, .03); }
body.plain .empty { border-color: var(--tile-border); }

/* Sky backdrop (fixed behind every page) */
.sky { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.sky-gradient { position: absolute; inset: 0; background: linear-gradient(180deg, #76b8e6 0%, #a8d4f3 47%, #cee8fa 95%, #dcefff 100%); }
.sky-drift {
  --tile: max(100vw, 160vh);
  position: absolute; top: 0; left: 0; height: 100%; width: calc(var(--tile) * 2);
  background-repeat: repeat-x; background-size: var(--tile) 100%; background-position: left bottom;
  will-change: transform; animation: sky-drift linear infinite;
}
.sky-drift-far { animation-duration: 420s; }
.sky-drift-near { animation-duration: 240s; }
.sky-arcs { position: absolute; left: 50%; top: 50%; width: 1400px; height: 1400px; transform: translate(-50%, -28%); }
/* White wash over the sky (above clouds and arcs, below the content) */
.sky::after { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, .5); }
@keyframes sky-drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(calc(-1 * var(--tile)), 0, 0); } }

main {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 16px 48px;
  text-align: center;
}
.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.brand img { height: 52px; width: auto; }
.brand .divider { width: 1px; height: 32px; background: var(--navy); opacity: .35; }
.brand .product { font-weight: 300; font-size: 32px; color: var(--navy); }
.tagline { margin: 14px 0 48px; font-size: 16px; font-weight: 400; color: var(--navy); opacity: .85; }

.grid {
  display: grid;
  grid-template-columns: repeat(5, 150px);
  gap: 24px;
}
.tile, .ghost {
  width: 150px;
  height: 150px;
  border-radius: 16px;
}
.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--lift);
  color: var(--navy);
  font-size: 15px;
  text-decoration: none;
  transition: transform .2s cubic-bezier(.2, .7, .2, 1), box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.tile:hover {
  transform: translateY(-4px);
  background: #fff;
  border-color: var(--teal);
  box-shadow: 0 2px 4px rgba(15, 47, 77, .05), 0 20px 44px -14px rgba(15, 47, 77, .3);
}
.tile:focus-visible { outline: 2px solid var(--teal-dark); outline-offset: 3px; }
.tile svg { width: 52px; height: 52px; }
.ghost {
  border: 1px solid rgba(255, 255, 255, .6);
  background: rgba(255, 255, 255, .22);
}
.ghost:nth-last-child(-n+2) { opacity: .5; }

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(5, 128px); gap: 16px; }
  .tile, .ghost { width: 128px; height: 128px; }
  .tile svg { width: 46px; height: 46px; }
}

footer { margin-top: 56px; font-size: 12px; color: var(--navy); opacity: .75; }
footer a { text-underline-offset: 2px; }
footer a:hover { opacity: .8; }

@media (max-width: 720px) {
  .brand { gap: 12px; }
  .brand img { height: 34px; }
  .brand .divider { height: 22px; }
  .brand .product { font-size: 22px; }
  .tagline { margin-bottom: 36px; font-size: 14px; }
  .grid { grid-template-columns: repeat(2, 140px); gap: 16px; }
  .tile, .ghost { width: 140px; height: 140px; }
  .ghost { display: none; }
  .ghost--pad { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .tile, .swatch, .gate, .gate-card { transition: none !important; animation: none !important; }
  .tile:hover, .swatch:hover { transform: none; }
  .sky-drift { animation: none; }
}

/* Inner pages */
.page { justify-content: flex-start; }
.back {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 40px;
  color: var(--navy);
  font-size: 14px;
  text-decoration: none;
}
.back:hover { text-decoration: underline; text-underline-offset: 3px; }
.brand.small img { height: 38px; }
.brand.small .divider { height: 24px; }
.brand.small .product { font-size: 24px; }

.page-inner { width: 100%; max-width: 1080px; display: flex; flex-direction: column; align-items: center; }
.page-inner > .videos, .page-inner > .empty, .page-inner > .section, .page-inner > .docs, .page-inner > .toolbar, .page-inner > .notes { width: 100%; }
.videos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  text-align: left;
}
.video {
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, .9);
  box-shadow: var(--lift);
  overflow: hidden;
  color: var(--text);
}
.video .frame { aspect-ratio: 16 / 9; background: #E9EEF5; }
.video .frame iframe, .video .frame video { width: 100%; height: 100%; border: 0; display: block; }
.video .meta { padding: 14px 18px 18px; }
.video h2 { font-size: 15px; font-weight: 500; color: var(--navy); }
.video p { margin-top: 4px; font-size: 13px; line-height: 1.5; }

.empty {
  padding: 56px 24px;
  border: 1px dashed rgba(255, 255, 255, .9);
  border-radius: 16px;
  background: rgba(255, 255, 255, .6);
  color: var(--text);
}
.empty svg { width: 52px; height: 52px; margin-bottom: 12px; }
.empty h2 { font-size: 17px; font-weight: 500; color: var(--navy); }
.empty p { margin-top: 6px; font-size: 14px; }
.empty code { font-size: 13px; background: #EEF2F7; padding: 2px 6px; border-radius: 6px; }

@media (max-width: 720px) {
  .back { margin-bottom: 28px; }
  .brand.small img { height: 30px; }
  .brand.small .product { font-size: 20px; }
  .videos { grid-template-columns: 1fr; }
}

/* Brand assets */
.section { text-align: left; margin-bottom: 48px; }
.section h2 { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); opacity: .8; margin-bottom: 16px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.card { border: 1px solid var(--glass-border); border-radius: 16px; background: rgba(255, 255, 255, .9); box-shadow: var(--lift); overflow: hidden; color: var(--text); }
.card .preview { height: 170px; display: flex; align-items: center; justify-content: center; padding: 28px; background: #fff; border-bottom: 1px solid var(--ghost-border); }
.card .preview img { max-width: 100%; max-height: 100%; }
.card .row, .files li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; }
.card h3 { font-size: 15px; font-weight: 500; color: var(--navy); }
.card p, .files li span { font-size: 13px; }
.files strong { color: var(--navy); font-weight: 500; margin-right: 6px; }
.button {
  flex-shrink: 0;
  padding: 8px 16px;
  border: 1px solid var(--tile-border);
  border-radius: 10px;
  background: #fff;
  color: var(--navy);
  font: 500 13px Poppins, sans-serif;
  text-decoration: none;
  transition: border-color .2s ease;
}
.button:hover, .button:focus-visible { border-color: var(--teal); outline: none; }

.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.swatch {
  display: flex; flex-direction: column; text-align: left; cursor: pointer;
  border: 1px solid var(--glass-border); border-radius: 16px; overflow: hidden;
  background: rgba(255, 255, 255, .9); box-shadow: var(--lift); padding: 0; font: inherit; color: var(--text);
  transition: transform .2s ease, border-color .2s ease;
}
.swatch:hover, .swatch:focus-visible { transform: translateY(-3px); border-color: var(--teal); outline: none; }
.swatch .chip { height: 88px; border-bottom: 1px solid rgba(26, 48, 85, .06); }
.swatch .label { display: flex; flex-direction: column; padding: 12px 14px 14px; font-size: 12px; }
.swatch strong { font-size: 14px; font-weight: 500; color: var(--navy); }
.swatch .hex { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; margin: 2px 0 4px; color: var(--navy); }
.swatch .use { color: var(--muted); }
.hint { margin-top: 12px; font-size: 12px; color: var(--navy); opacity: .75; }

.type .specimen { font-size: 72px; font-weight: 500; color: var(--navy); line-height: 1; padding: 28px 18px 8px; }

.toast {
  z-index: 10;
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  padding: 10px 18px; border-radius: 999px; background: var(--navy); color: #fff;
  font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 720px) {
  .cards { grid-template-columns: 1fr; }
  .swatches { grid-template-columns: repeat(2, 1fr); }
}

/* Password gate (layout and colours from the Engage language chooser) */
.gate {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: 20px;
  color: var(--navy);
  animation: gate-fade .3s; transition: opacity .25s;
}
.gate.leaving { opacity: 0; }
.gate-card {
  position: relative; width: min(420px, 100%);
  border-radius: 4px; overflow: hidden; background: #fff;
  box-shadow: 0 2px 4px rgba(15, 47, 77, .04), 0 24px 64px -12px rgba(15, 47, 77, .2);
  animation: gate-pop .35s cubic-bezier(.2, .7, .2, 1);
}
.gate-card.shake { animation: gate-shake .4s cubic-bezier(.36, .07, .19, .97); }
.gate-card .top { background: #f5f8fc; padding: 40px 28px 30px; border-bottom: 1px solid #d9e1eb; text-align: center; }
.gate-card .top img { width: 210px; max-width: 100%; height: auto; display: inline-block; }
.gate-card .body { padding: 26px 28px 30px; }
.gate .eyebrow {
  display: block; text-align: center; margin-bottom: 20px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #54657a;
}
.gate-row { display: flex; flex-direction: column; gap: 12px; }
.gate-field { position: relative; flex: 1; }
.gate-field input {
  width: 100%; height: 52px; padding: 0 48px 0 16px;
  border: 1px solid #c3cfdc; border-radius: 4px; background: #fff;
  font: 400 16px Poppins, sans-serif; color: var(--navy); letter-spacing: .04em;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.gate-field input:hover { border-color: var(--navy); }
.gate-field input:focus { outline: none; border-color: var(--teal-dark); box-shadow: 0 0 0 3px rgba(10, 127, 118, .18); }
.gate-field input[aria-invalid="true"] { border-color: #b4232c; }
.gate-reveal {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 0; border-radius: 4px; background: none; color: #54657a; cursor: pointer;
}
.gate-reveal:hover, .gate-reveal[aria-pressed="true"] { color: var(--navy); }
.gate-reveal:focus-visible { outline: 2px solid var(--teal-dark); outline-offset: 0; }
.gate-submit {
  height: 52px; padding: 0 28px; border: 0; border-radius: 4px;
  background: var(--navy); color: #fff; cursor: pointer;
  font: 600 14.5px Poppins, sans-serif; letter-spacing: .08em; text-transform: uppercase;
  transition: background .2s ease, transform .2s cubic-bezier(.2, .7, .2, 1);
}
.gate-submit:hover { background: #0f2a45; transform: translateY(-1px); }
.gate-submit:focus-visible { outline: 2px solid var(--teal-dark); outline-offset: 2px; }
.gate-submit:disabled { opacity: .7; cursor: progress; transform: none; }
.gate-error { min-height: 20px; margin-top: 10px; font-size: 13px; color: #b4232c; text-align: center; }
.gate-error:empty { visibility: hidden; }

@keyframes gate-fade { from { opacity: 0; } }
@keyframes gate-pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes gate-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.gate-submit { width: 100%; }

/* Liquid glass tiles on the sky */
.has-sky .tile, .has-sky .ghost { position: relative; isolation: isolate; overflow: hidden; }
.has-sky .tile {
  background: linear-gradient(160deg, rgba(255, 255, 255, .42) 0%, rgba(255, 255, 255, .16) 55%, rgba(255, 255, 255, .26) 100%);
  border: 1px solid rgba(255, 255, 255, .55);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .85),      /* bright top rim */
    inset 0 -1px 0 rgba(255, 255, 255, .25),     /* soft bottom rim */
    inset 0 0 18px rgba(255, 255, 255, .18),     /* inner glow */
    0 4px 14px -8px rgba(15, 47, 77, .12);       /* gentle lift off the sky */
}
/* Curved specular highlight across the top of the glass */
.has-sky .tile::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  background:
    radial-gradient(120% 60% at 30% -10%, rgba(255, 255, 255, .55), transparent 60%),
    radial-gradient(80% 50% at 90% 110%, rgba(255, 255, 255, .22), transparent 70%);
  pointer-events: none;
}
/* Light sweep on hover */
.has-sky .tile::after {
  content: "";
  position: absolute; top: 0; bottom: 0; left: -60%; width: 50%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-18deg);
  opacity: 0;
  pointer-events: none;
}
.has-sky .tile:hover {
  background: linear-gradient(160deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, .24) 55%, rgba(255, 255, 255, .34) 100%);
  border-color: rgba(255, 255, 255, .85);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    inset 0 -1px 0 rgba(255, 255, 255, .35),
    inset 0 0 22px rgba(255, 255, 255, .25),
    0 8px 20px -10px rgba(15, 47, 77, .16);
}
.has-sky .tile:hover::after { animation: glass-sweep .9s cubic-bezier(.2, .7, .2, 1); }
.has-sky .tile { text-shadow: 0 1px 0 rgba(255, 255, 255, .5); font-weight: 500; }
.has-sky .ghost {
  background: linear-gradient(160deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .05));
  border: 1px solid rgba(255, 255, 255, .35);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  backdrop-filter: blur(10px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45);
}
@keyframes glass-sweep { from { left: -60%; opacity: 1; } to { left: 130%; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .has-sky .tile:hover::after { animation: none; } }
/* Without backdrop-filter support, fall back to frosted white so labels stay readable */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .has-sky .tile { background: rgba(255, 255, 255, .82); }
}

/* PDFs list */
.docs { list-style: none; display: flex; flex-direction: column; gap: 12px; text-align: left; }
.doc {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px;
  border: 1px solid var(--tile-border); border-radius: 16px;
  background: rgba(255, 255, 255, .9); box-shadow: 0 1px 2px rgba(15, 47, 77, .03);
  color: var(--text);
}
.doc > svg { width: 40px; height: 40px; flex-shrink: 0; }
.doc-meta { flex: 1; min-width: 0; }
.doc h2 { font-size: 15px; font-weight: 500; color: var(--navy); }
.doc p { margin-top: 2px; font-size: 13px; }
.doc-actions { display: flex; gap: 8px; }
@media (max-width: 720px) {
  .doc { flex-wrap: wrap; }
  .doc-actions { width: 100%; }
  .doc-actions .button { flex: 1; text-align: center; }
}

/* Managing items: buttons, toolbar, dialog */
.button { cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.button.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.button.primary:hover, .button.primary:focus-visible { background: #0f2a45; border-color: #0f2a45; }
.button.small { padding: 6px 12px; font-size: 12.5px; }
.button:disabled { opacity: .6; cursor: progress; }
.icon-button {
  width: 34px; height: 34px; flex-shrink: 0;
  display: inline-grid; place-items: center;
  border: 1px solid transparent; border-radius: 10px; background: none;
  color: var(--muted); cursor: pointer;
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.icon-button:hover, .icon-button:focus-visible { color: var(--navy); background: #f1f4f8; border-color: var(--tile-border); outline: none; }
.icon-button.danger:hover, .icon-button.danger:focus-visible { color: #b4232c; background: #fdf1f1; border-color: #f2cfd1; }

.toolbar { display: flex; justify-content: flex-end; margin-bottom: 16px; }
.empty .button { margin-top: 18px; }
.item-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.item-actions .button { margin-left: 4px; }
.doc-actions { align-items: center; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-head h2 { margin-bottom: 0; }
.section-empty { padding: 22px; border: 1px dashed var(--tile-border); border-radius: 16px; font-size: 14px; color: var(--text); background: rgba(255, 255, 255, .5); }
.row-text { min-width: 0; }
.row-text h3, .doc h2, .video h2 { overflow-wrap: anywhere; }
.files li { border: 1px solid var(--tile-border); border-radius: 16px; background: rgba(255, 255, 255, .9); margin-bottom: 10px; }
.files { list-style: none; }
.files small { color: var(--muted); }
.card .preview > svg { width: 64px; height: 64px; }
.video .meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.video .meta-text { min-width: 0; }

.item-dialog {
  width: min(480px, calc(100% - 32px)); margin: auto; padding: 0;
  border: 0; border-radius: 16px; background: #fff; color: var(--navy);
  box-shadow: 0 2px 4px rgba(15, 47, 77, .04), 0 24px 64px -12px rgba(15, 47, 77, .3);
  text-align: left;
}
.item-dialog::backdrop { background: rgba(15, 35, 60, .35); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.item-dialog[open] { animation: gate-pop .25s cubic-bezier(.2, .7, .2, 1); }
.item-dialog form { padding: 20px 24px 22px; display: flex; flex-direction: column; gap: 16px; }
.item-dialog header { display: flex; align-items: center; justify-content: space-between; }
.item-dialog h2 { font-size: 18px; font-weight: 500; }
.item-dialog footer { display: flex; justify-content: flex-end; gap: 8px; margin: 4px 0 0; opacity: 1; font-size: inherit; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field[hidden] { display: none; }
.field > label { font-size: 13px; font-weight: 500; }
.field .optional { font-weight: 400; color: var(--muted); }
.field input[type=text], .field input[type=url], .field textarea, .field select {
  width: 100%; padding: 10px 12px; border: 1px solid #c3cfdc; border-radius: 10px;
  font: 400 14px Poppins, sans-serif; color: var(--navy); background: #fff; resize: vertical;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--teal-dark); box-shadow: 0 0 0 3px rgba(10, 127, 118, .15); }

.segmented { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 12px; background: #eef2f7; }
.segmented label { position: relative; text-align: center; padding: 8px; border-radius: 9px; font-size: 13px; font-weight: 500; color: var(--text); cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label:has(input:checked) { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(15, 47, 77, .12); }
.segmented label:has(input:focus-visible) { outline: 2px solid var(--teal-dark); outline-offset: 1px; }

.dropzone {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 22px 16px; border: 1.5px dashed #c3cfdc; border-radius: 12px; background: #f8fafc;
  text-align: center; font-size: 13.5px; color: var(--text); cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.dropzone:hover, .dropzone.dragging, .dropzone:focus-within { border-color: var(--teal-dark); background: #f0faf9; }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone strong { color: var(--navy); font-weight: 500; }
.dropzone small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.dropzone-current { font-size: 13px; font-weight: 500; color: var(--teal-dark); overflow-wrap: anywhere; }
.dropzone-current:empty { display: none; }

.progress { height: 6px; border-radius: 99px; background: #eef2f7; overflow: hidden; }
.progress[hidden] { display: none; }
.progress span { display: block; height: 100%; width: 0; background: var(--teal-dark); transition: width .15s linear; }
.form-error { min-height: 0; font-size: 13px; color: #b4232c; }
.form-error:empty { display: none; }

@media (max-width: 720px) {
  .doc-actions { flex-wrap: wrap; }
  .files li { flex-wrap: wrap; }
}

/* Notes */
.notes-toolbar { justify-content: space-between; gap: 12px; }
.search {
  flex: 1; max-width: 360px; display: flex; align-items: center; gap: 8px;
  padding: 0 12px; height: 40px; border: 1px solid var(--tile-border); border-radius: 12px;
  background: #fff; color: var(--muted);
}
.search:focus-within { border-color: var(--teal-dark); box-shadow: 0 0 0 3px rgba(10, 127, 118, .15); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 400 14px Poppins, sans-serif; color: var(--navy); }

.notes { columns: 3 280px; column-gap: 16px; text-align: left; }
.note {
  break-inside: avoid; margin-bottom: 16px; padding: 18px 18px 14px;
  border: 1px solid var(--tile-border); border-radius: 16px;
  background: rgba(255, 255, 255, .92); box-shadow: 0 1px 2px rgba(15, 47, 77, .03);
  color: var(--text); cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.note[hidden] { display: none; }
.note:hover { border-color: var(--teal); box-shadow: 0 8px 20px -12px rgba(15, 47, 77, .25); transform: translateY(-2px); }
.note:focus-visible { outline: 2px solid var(--teal-dark); outline-offset: 2px; }
.note h2 { font-size: 15px; font-weight: 500; color: var(--navy); overflow-wrap: anywhere; }
.note-body {
  margin-top: 6px; font-size: 13.5px; line-height: 1.6; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 10; -webkit-box-orient: vertical; overflow: hidden;
}
.note-body a { color: var(--teal-dark); }
.note time { display: block; margin-top: 12px; font-size: 11.5px; color: var(--muted); }

.note-dialog { width: min(680px, calc(100% - 32px)); }
.note-dialog form { gap: 10px; }
.note-dialog header { gap: 8px; }
.note-title {
  flex: 1; min-width: 0; border: 0; outline: 0; padding: 4px 0;
  font: 500 20px Poppins, sans-serif; color: var(--navy); background: none;
}
.note-text {
  width: 100%; min-height: min(52vh, 420px); padding: 4px 0; border: 0; outline: 0; resize: vertical;
  font: 400 15px/1.7 Poppins, sans-serif; color: var(--navy); background: none;
}
.note-title::placeholder, .note-text::placeholder { color: #a8b3c2; }
.note-dialog footer { align-items: center; border-top: 1px solid var(--ghost-border); padding-top: 14px; }
.note-delete { margin-right: auto; color: #b4232c; }
.note-delete:hover, .note-delete:focus-visible { border-color: #f2cfd1; background: #fdf1f1; }
.note-delete[hidden] { display: none; }
.note-hint { font-size: 12px; color: var(--muted); margin-right: 4px; }
@media (max-width: 720px) {
  .note-hint { display: none; }
  .search { max-width: none; }
}

/* Pinned row on the launcher */
.pinned { width: calc(5 * 150px + 4 * 24px); margin-bottom: 28px; text-align: left; }
.pinned-label { margin: 0 0 10px 2px; font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); opacity: .7; }
.pinned-list { display: flex; flex-wrap: wrap; gap: 16px; }
.pin {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 12px;
  min-width: 240px; padding: 12px 20px 12px 14px; border-radius: 14px;
  color: var(--navy); text-decoration: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, .42) 0%, rgba(255, 255, 255, .16) 55%, rgba(255, 255, 255, .26) 100%);
  border: 1px solid rgba(255, 255, 255, .55);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), inset 0 -1px 0 rgba(255, 255, 255, .25), 0 4px 14px -8px rgba(15, 47, 77, .12);
  transition: transform .2s cubic-bezier(.2, .7, .2, 1), background .2s ease, border-color .2s ease;
}
.pin:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, .85); background: linear-gradient(160deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, .24) 55%, rgba(255, 255, 255, .34) 100%); }
.pin:focus-visible { outline: 2px solid var(--teal-dark); outline-offset: 3px; }
.pin svg { width: 32px; height: 32px; flex-shrink: 0; }
.pin-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.pin-text strong { font-size: 14.5px; font-weight: 500; }
.pin-text span { font-size: 12px; color: var(--navy); opacity: .65; overflow-wrap: anywhere; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .pin { background: rgba(255, 255, 255, .82); }
}
@media (max-width: 900px) { .pinned { width: calc(5 * 128px + 4 * 16px); } }
@media (max-width: 720px) {
  .pinned { width: calc(2 * 140px + 16px); margin-bottom: 20px; }
  .pinned-list { flex-direction: column; gap: 10px; }
  .pin { min-width: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .pin { transition: none; } .pin:hover { transform: none; } }

/* Minutes */
.page-inner > .minutes { width: 100%; }
.minutes { text-align: left; }
.minutes-group { margin-bottom: 28px; }
.minutes-group[hidden], .minute[hidden] { display: none; }
.minutes-month { margin: 0 0 10px 2px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); opacity: .7; }
.date-badge {
  width: 52px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center;
  padding: 6px 0 7px; border-radius: 12px; background: #eaf8f6; color: var(--teal-dark); line-height: 1.1;
}
.date-badge span { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.date-badge strong { font-size: 20px; font-weight: 500; color: var(--navy); }
.minute-desc { margin-top: 4px; color: var(--text); }

/* Launcher cards: 90% white (chosen over clear glass), a hint of sky still shows through */
.has-sky .tile, .has-sky .pin {
  background: rgba(255, 255, 255, .9);
  border-color: #fff;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 14px -8px rgba(15, 47, 77, .12);
  text-shadow: none;
}
.has-sky .tile::before, .has-sky .pin::before { display: none; }
.has-sky .tile:hover, .has-sky .pin:hover {
  background: #fff;
  border-color: var(--teal);
  box-shadow: 0 8px 20px -10px rgba(15, 47, 77, .16);
}

/* Internal pages: top bar across the full width — pinned apps (left), apps switcher (right) */
.page { padding-top: 156px; }
.topbar {
  position: absolute; top: 28px; left: 32px; right: 32px; z-index: 20;
  display: flex; align-items: flex-start; justify-content: space-between;
}
.topbar-pinned { display: flex; gap: 12px; }
.topbar-pin {
  width: 92px; height: 92px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--tile-border); border-radius: 16px; background: rgba(255, 255, 255, .9);
  color: var(--navy); font-size: 12.5px; text-decoration: none;
  box-shadow: 0 1px 2px rgba(15, 47, 77, .03);
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.topbar-pin svg { width: 36px; height: 36px; }
.topbar-pin:hover { border-color: var(--teal); background: #fff; transform: translateY(-2px); }
.topbar-pin:focus-visible { outline: 2px solid var(--teal-dark); outline-offset: 2px; }
.apps-button {
  width: 52px; height: 52px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: none; color: #54657a; cursor: pointer;
  transition: color .15s ease, background .15s ease;
}
.apps-button:hover, .apps-button[aria-expanded="true"] { color: var(--navy); background: rgba(27, 58, 90, .07); }
.apps-button:focus-visible { outline: 2px solid var(--teal-dark); outline-offset: 2px; }

.apps-switcher { position: relative; }
.apps-panel {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 50;
  width: 340px; max-height: calc(100vh - 120px); overflow-y: auto;
  padding: 14px; border-radius: 20px; background: #fff;
  border: 1px solid var(--ghost-border);
  box-shadow: 0 2px 6px rgba(15, 47, 77, .06), 0 24px 56px -16px rgba(15, 47, 77, .28);
  text-align: left; animation: panel-in .18s cubic-bezier(.2, .7, .2, 1);
  transform-origin: top right;
}
.apps-panel[hidden] { display: none; }
.apps-home {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 8px;
  border-radius: 12px; background: #f5f8fc; color: var(--navy); font-size: 14px; font-weight: 500; text-decoration: none;
}
.apps-home:hover, .apps-home:focus-visible { background: #eaf8f6; outline: none; }
.apps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.apps-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 6px 12px; border-radius: 14px; color: var(--navy);
  font-size: 12.5px; text-align: center; text-decoration: none; line-height: 1.25;
}
.apps-item svg { width: 36px; height: 36px; }
.apps-item:hover, .apps-item:focus-visible { background: #f1f5f9; outline: none; }
.apps-item.is-current { background: #eaf8f6; }
@keyframes panel-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } }

.home-link { display: inline-flex; border-radius: 6px; }
.home-link:focus-visible { outline: 2px solid var(--teal-dark); outline-offset: 4px; }

@media (max-width: 720px) {
  .page { padding-top: 128px; }
  .topbar { top: 20px; left: 16px; right: 16px; }
  .topbar-pin { width: 76px; height: 76px; font-size: 11.5px; gap: 6px; }
  .topbar-pin svg { width: 30px; height: 30px; }
  .apps-panel { width: min(340px, calc(100vw - 32px)); }
}
@media (prefers-reduced-motion: reduce) { .apps-panel { animation: none; } .topbar-pin:hover { transform: none; } }

/* Universal search */
.search-bar {
  display: flex; align-items: center; gap: 10px;
  width: min(460px, 100%); height: 48px; margin: -20px 0 32px; padding: 0 12px 0 16px;
  border: 1px solid #fff; border-radius: 14px; background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 4px 14px -8px rgba(15, 47, 77, .12);
  color: #54657a; font: 400 15px Poppins, sans-serif; text-align: left; cursor: text;
  transition: border-color .15s ease, background .15s ease;
}
.search-bar:hover { background: #fff; border-color: var(--teal); }
.search-bar:focus-visible { outline: 2px solid var(--teal-dark); outline-offset: 3px; }
.search-bar span { flex: 1; }
.search-bar kbd, .search-esc {
  padding: 3px 7px; border: 1px solid var(--tile-border); border-radius: 6px; background: #f5f8fc;
  font: 500 11.5px Poppins, sans-serif; color: #54657a;
}
.topbar-actions { display: flex; align-items: center; gap: 4px; }

.search-dialog {
  width: min(640px, calc(100% - 32px)); max-height: min(70vh, 640px); margin: 12vh auto auto; padding: 0;
  border: 0; border-radius: 18px; background: #fff; color: var(--navy); text-align: left;
  box-shadow: 0 2px 6px rgba(15, 47, 77, .06), 0 32px 80px -20px rgba(15, 47, 77, .4);
  overflow: hidden;
}
.search-dialog[open] { display: flex; flex-direction: column; animation: gate-pop .2s cubic-bezier(.2, .7, .2, 1); }
.search-dialog::backdrop { background: rgba(15, 35, 60, .35); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.search-box { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--ghost-border); color: #54657a; }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 400 17px Poppins, sans-serif; color: var(--navy); }
.search-box input::-webkit-search-cancel-button { display: none; }
.search-results { overflow-y: auto; padding: 6px 8px 8px; }
.search-results:empty { display: none; }
.search-group h3 { margin: 10px 10px 4px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.search-result { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; color: var(--navy); text-decoration: none; }
.search-result[aria-selected="true"] { background: #eef6f6; }
.sr-icon svg { width: 30px; height: 30px; display: block; }
.sr-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sr-text strong { font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-text span { font-size: 12.5px; color: #54657a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-text mark { background: #d6f3ef; color: inherit; border-radius: 3px; padding: 0 1px; }
.sr-ext { color: var(--muted); font-size: 14px; }
.search-more { display: block; margin: 2px 10px 6px; font-size: 12.5px; color: var(--teal-dark); }
.search-status { padding: 14px 20px 18px; font-size: 14px; color: #54657a; }
.search-status:empty { display: none; }

/* An item opened from search gets a brief highlight */
.doc:target, .video:target, .card:target, .files li:target, .note:target {
  scroll-margin-top: 120px;
  animation: target-flash 2.4s ease;
}
@keyframes target-flash {
  0%, 60% { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(9, 207, 192, .25); }
}
@media (max-width: 720px) {
  .search-bar { margin-top: -12px; }
  .search-bar kbd { display: none; }
  .search-dialog { margin-top: 16px; max-height: calc(100vh - 32px); }
}
@media (prefers-reduced-motion: reduce) { .search-dialog[open] { animation: none; } }

/* Launcher search: underline only (no box), typed search text 16px bold */
.search-bar {
  height: 44px; padding: 0 4px; border: 0; border-bottom: 1.5px solid rgba(27, 58, 90, .35); border-radius: 0;
  background: none; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none;
  color: var(--navy);
}
.search-bar:hover { background: none; border-color: transparent; border-bottom-color: var(--navy); }
.search-bar:focus-visible { outline: none; border-bottom-color: var(--teal-dark); box-shadow: 0 1.5px 0 var(--teal-dark); }
.search-bar span { opacity: .75; }
.search-bar kbd { background: rgba(255, 255, 255, .6); border-color: rgba(27, 58, 90, .2); }
.search-box input { font: 600 16px Poppins, sans-serif; }
.search-box input::placeholder { font-weight: 400; color: #a8b3c2; }

/* Launcher: inline search with a dropdown (no pop-up window) */
.search-inline { position: relative; z-index: 30; width: min(460px, 100%); margin: -20px 0 52px; }
.search-inline .search-bar { width: 100%; margin: 0; cursor: text; }
.search-bar input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none;
  font: 600 16px Poppins, sans-serif; color: var(--navy);
}
.search-bar input::placeholder { font-weight: 400; color: var(--navy); opacity: .7; }
.search-bar input::-webkit-search-cancel-button { display: none; }
.search-bar:focus-within { border-bottom-color: var(--teal-dark); box-shadow: 0 1.5px 0 var(--teal-dark); }
.search-dropdown {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0;
  max-height: min(60vh, 520px); overflow-y: auto;
  border-radius: 16px; background: #fff; text-align: left;
  border: 1px solid var(--ghost-border);
  box-shadow: 0 2px 6px rgba(15, 47, 77, .06), 0 24px 56px -16px rgba(15, 47, 77, .3);
  animation: panel-in .15s cubic-bezier(.2, .7, .2, 1);
}
.search-dropdown[hidden] { display: none; }
@media (max-width: 720px) { .search-inline { margin-top: -12px; } }
@media (prefers-reduced-motion: reduce) { .search-dropdown { animation: none; } }

/* Launcher search: keep the plain underline while typing (no focus colour) */
.search-bar:focus-within, .search-bar:focus-within:hover {
  border-bottom-color: rgba(27, 58, 90, .35);
  box-shadow: none;
}
.search-bar input:focus, .search-bar input:focus-visible { outline: none; box-shadow: none; }

/* Launcher grid: 6 across on mid and large screens; same icon size, smaller labels, tighter gaps */
@media (min-width: 721px) {
  .grid { grid-template-columns: repeat(6, 132px); gap: 14px; }
  .tile, .ghost { width: 132px; height: 132px; }
  .tile { gap: 10px; font-size: 13px; }
  .tile svg { width: 52px; height: 52px; }
  .pinned { width: calc(6 * 132px + 5 * 14px); }
  .pinned-list { gap: 14px; }
}
@media (min-width: 721px) and (max-width: 900px) {
  .grid { grid-template-columns: repeat(6, 112px); gap: 10px; }
  .tile, .ghost { width: 112px; height: 112px; border-radius: 14px; }
  .tile { gap: 8px; font-size: 12px; }
  .pinned { width: calc(6 * 112px + 5 * 10px); }
}

/* Documents: file-type badge */
.doc[hidden] { display: none; }
.type-badge {
  width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center;
  border-radius: 12px; background: #eef2f7; color: #54657a;
  font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.type-docx, .type-doc, .type-odt, .type-rtf { background: #e7f0fd; color: #1d5bb8; }
.type-xlsx, .type-xls, .type-ods, .type-csv { background: #e5f6ee; color: #137a4a; }
.type-pptx, .type-ppt, .type-odp { background: #fdeee6; color: #b4501d; }
.type-pdf { background: #fdecec; color: #b4232c; }
.type-link { background: #eaf8f6; color: var(--teal-dark); font-size: 16px; }

/* No backdrop blur on launcher cards: at 90% white it was barely visible, and Chrome
   can fail to repaint blurred cards that scroll into view (they showed as blank squares). */
.has-sky .tile, .has-sky .pin, .has-sky .ghost { -webkit-backdrop-filter: none; backdrop-filter: none; }

/* Hub: breadcrumbs, heading, folder rows */
.crumbs { width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0 22px; font-size: 13.5px; color: var(--muted); text-align: left; }
.crumbs a { color: var(--teal-dark); text-decoration: none; overflow-wrap: anywhere; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.crumb-current { color: var(--navy); font-weight: 500; overflow-wrap: anywhere; }
.hub-head { width: 100%; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; text-align: left; }
.hub-title { font-size: 22px; font-weight: 500; color: var(--navy); overflow-wrap: anywhere; }
.hub-sub { margin-top: 2px; font-size: 13px; color: var(--text); }
.hub-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hub-hint { font-size: 12.5px; color: var(--muted); }
.hub-hint kbd { padding: 2px 6px; border: 1px solid var(--tile-border); border-radius: 6px; background: #f5f8fc; font: 500 11px Poppins, sans-serif; }
.page-inner > .crumbs, .page-inner > .hub-head { width: 100%; }
.type-png, .type-jpg, .type-jpeg, .type-gif, .type-webp { background: #efeafd; color: #5b3fc4; }
.type-mp4, .type-mov, .type-m4v, .type-webm { background: #e3f6f8; color: #0f6f7c; }
.type-psd { background: #e6ebf5; color: #1a3a6b; }
.type-zip { background: #f3eee4; color: #7d5a14; }

/* Hub: uploads */
.upload-panel {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: min(380px, calc(100vw - 40px));
  max-height: 50vh; overflow-y: auto; padding: 14px 16px; border-radius: 16px; background: #fff; color: var(--navy); text-align: left;
  box-shadow: 0 2px 6px rgba(15, 47, 77, .08), 0 24px 56px -16px rgba(15, 47, 77, .35);
}
.upload-panel[hidden] { display: none; }
.upload-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; font-size: 14px; }
.upload-head strong { font-weight: 500; }
#upload-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
#upload-list li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; font-size: 12.5px; }
.u-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-state { color: var(--muted); }
.u-bar { grid-column: 1 / -1; height: 4px; border-radius: 99px; background: #eef2f7; overflow: hidden; }
.u-bar i { display: block; height: 100%; width: 0; background: var(--teal-dark); transition: width .15s linear; }
#upload-list .is-ok .u-state { color: var(--teal-dark); }
#upload-list .is-failed .u-state { color: #b4232c; }
.drop-overlay {
  position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 24px;
  background: rgba(15, 35, 60, .45); color: #fff; font-size: 18px; text-align: center; pointer-events: none;
}
.drop-overlay[hidden] { display: none; }
.drop-overlay > div { padding: 36px 48px; border: 2px dashed rgba(255, 255, 255, .8); border-radius: 20px; }
@media (max-width: 720px) {
  .hub-head { align-items: flex-start; }
  .hub-hint { display: none; }
  .upload-panel { right: 12px; bottom: 12px; width: calc(100vw - 24px); }
}
#upload-list .is-failed { grid-template-columns: 1fr; }
#upload-list .is-failed .u-state { white-space: normal; }

/* Investor list */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.page-inner > .inv-filters, .page-inner > .inv-grid, .page-inner > .inv-count { width: 100%; }
.inv-filters { display: flex; flex-direction: column; gap: 12px; margin-bottom: 8px; text-align: left; }
.inv-row { display: flex; flex-wrap: wrap; gap: 10px; }
.inv-row .search { flex: 1 1 280px; max-width: none; }
.select select {
  height: 40px; padding: 0 34px 0 12px; border: 1px solid var(--tile-border); border-radius: 12px; background: #fff;
  font: 400 14px Poppins, sans-serif; color: var(--navy); cursor: pointer;
}
.select select:focus { outline: none; border-color: var(--teal-dark); box-shadow: 0 0 0 3px rgba(10, 127, 118, .15); }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.chips-label { width: 56px; flex-shrink: 0; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.chips .chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--tile-border); border-radius: 999px;
  background: #fff; color: var(--navy); font: 400 13px Poppins, sans-serif; cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.chips .chip i { font-style: normal; font-size: 11.5px; color: var(--muted); }
.chips .chip:hover { border-color: var(--teal); }
.chips .chip:focus-visible { outline: 2px solid var(--teal-dark); outline-offset: 2px; }
.chips .chip.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.chips .chip.is-on i { color: rgba(255, 255, 255, .7); }
.inv-count { margin: 14px 0 12px; font-size: 13px; color: var(--text); text-align: left; }
.link-button { border: 0; background: none; padding: 0; color: var(--teal-dark); font: 500 12.5px Poppins, sans-serif; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-button:hover { color: var(--navy); }
.link-button[hidden] { display: none; }
.export { gap: 8px; }
.export-label { font-size: 13px; color: var(--text); margin-right: 2px; }
.export-label strong { font-weight: 500; color: var(--navy); }

.inv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 16px; text-align: left; }
.inv {
  display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 16px;
  border: 1px solid var(--tile-border); border-radius: 16px; background: rgba(255, 255, 255, .92); box-shadow: 0 1px 2px rgba(15, 47, 77, .03);
  color: var(--text);
}
.inv[hidden] { display: none; }
.inv header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.inv h3 { font-size: 16px; font-weight: 500; color: var(--navy); overflow-wrap: anywhere; }
.inv h3 a { color: inherit; text-decoration: underline; text-decoration-color: rgba(10, 127, 118, .4); text-underline-offset: 3px; }
.inv h3 a:hover { color: var(--teal-dark); }
.pill { flex-shrink: 0; padding: 3px 10px; border-radius: 999px; background: #eef2f7; color: #54657a; font-size: 11.5px; font-weight: 500; white-space: nowrap; }
.t-impact-investor { background: #e0f6f2; color: #0a6b62; }
.t-venture-capital-firm { background: #efeafd; color: #5b3fc4; }
.t-accelerator { background: #fdeee6; color: #b4501d; }
.t-angel-syndicate { background: #fdeaf3; color: #a3306a; }
.t-investment-management-firm { background: #e7f0fd; color: #1d5bb8; }
.t-development { background: #e8f5e3; color: #2e7a1a; }
.inv-hq { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--navy); }
.inv-hq svg { color: var(--muted); flex-shrink: 0; }
.inv-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.inv-tags span { padding: 2px 9px; border: 1px solid var(--tile-border); border-radius: 6px; background: #f8fafc; font-size: 12px; color: var(--text); }
.inv-invests { font-size: 13px; line-height: 1.55; }
.inv-invests strong { font-weight: 500; color: var(--navy); margin-right: 6px; }
.inv-invests .muted, .muted { color: var(--muted); }
.inv-desc {
  font-size: 13.5px; line-height: 1.6;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
}
.inv.is-open .inv-desc { -webkit-line-clamp: unset; display: block; }
.inv-toggle { align-self: flex-start; }
.inv:target { scroll-margin-top: 120px; animation: target-flash 2.4s ease; }
@media (max-width: 720px) {
  .chips-label { width: 100%; }
  .inv-row .select { flex: 1 1 140px; }
  .inv-row .select select { width: 100%; }
  .export-label { display: none; }
}

/* Folders and files as cards, 5 across (Documents, Hub, PDFs) */
.page-inner > .item-grid { width: 100%; }
.item-grid { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.item-card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px 14px 14px;
  border: 1px solid var(--tile-border); border-radius: 16px; background: rgba(255, 255, 255, .9);
  box-shadow: 0 1px 2px rgba(15, 47, 77, .03); color: var(--text); text-align: center;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.item-card[hidden] { display: none; }
.item-card:hover { border-color: var(--teal); box-shadow: 0 8px 20px -12px rgba(15, 47, 77, .25); transform: translateY(-2px); }
.item-main { flex: 1; width: 100%; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; color: inherit; text-decoration: none; border-radius: 12px; }
a.item-main:focus-visible { outline: 2px solid var(--teal-dark); outline-offset: 4px; }
.item-icon svg { width: 52px; height: 52px; display: block; }
.item-main .type-badge.lg { width: 52px; height: 52px; border-radius: 14px; font-size: 12px; }
.item-card h2 {
  font-size: 14px; font-weight: 500; line-height: 1.35; color: var(--navy); width: 100%; margin-top: 4px;
  overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
}
a.item-main:hover h2 { color: var(--teal-dark); }
.item-card p { font-size: 12px; line-height: 1.4; color: var(--text); }
.item-card .item-desc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; color: var(--muted); }
.item-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; width: 100%; }
.item-foot .button { padding: 6px 12px; font-size: 12.5px; }
.item-tools { position: absolute; top: 6px; right: 6px; z-index: 1; display: flex; opacity: .55; transition: opacity .15s ease; }
.item-card:hover .item-tools, .item-card:focus-within .item-tools { opacity: 1; }
.item-tools .icon-button { width: 28px; height: 28px; }
.item-card:target { scroll-margin-top: 120px; animation: target-flash 2.4s ease; }
@media (max-width: 960px) { .item-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 720px) { .item-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .item-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
@media (prefers-reduced-motion: reduce) { .item-card { transition: none; } .item-card:hover { transform: none; } }

/* Image previews on file cards (Brand assets) */
.item-thumb {
  width: 100%; height: 78px; padding: 10px; box-sizing: border-box;
  border: 1px solid var(--ghost-border); border-radius: 12px; background: #f5f8fc;
}
/* fixed box + object-fit keeps any image (including SVGs with no set size) inside it */
.item-thumb img { width: 100%; height: 56px; object-fit: contain; display: block; }
.item-card.has-thumb { padding-top: 36px; }
.item-thumb.on-dark { background: var(--navy); border-color: var(--navy); }

/* Sections under a folder grid (Brand assets: Colours, Typography) */
.page-inner > section.section:first-of-type { margin-top: 40px; }

/* ---- Peru Pilot budget page ---- */
.pp-lede { color: var(--text); font-size: 14px; max-width: 70ch; margin: 2px 0 14px; }
.pp-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.pp-nav a { text-decoration: none; font-size: 13px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.9); border: 1px solid var(--ghost-border); color: var(--navy); }
.pp-nav a:hover, .pp-nav a:focus-visible { border-color: var(--teal); outline: none; }
.pp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 26px; }
.pp-card { background: rgba(255,255,255,.9); border: 1px solid var(--glass-border); border-radius: 18px; padding: 20px 22px; box-shadow: var(--lift); }
.pp-card h3 { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.pp-big { font-size: 34px; font-weight: 600; margin-top: 6px; letter-spacing: -.02em; }
.pp-cap { font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.pp-card dl div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--ghost-border); font-size: 13.5px; }
.pp-card dt { color: var(--text); } .pp-card dd { font-weight: 500; }
.pp-block { margin-bottom: 28px; }
.pp-h { font-size: 18px; font-weight: 600; margin-bottom: 12px; }
.pp-block h4 { font-size: 14px; font-weight: 600; margin: 4px 0 8px; }
.pp-desc { color: var(--text); font-size: 13.5px; margin: -4px 0 12px; max-width: 80ch; }
.pp-cats { background: rgba(255,255,255,.9); border: 1px solid var(--glass-border); border-radius: 16px; padding: 6px 18px; box-shadow: var(--lift); }
.pp-cat { display: grid; grid-template-columns: minmax(180px, 2.2fr) repeat(3, 1fr); gap: 16px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--ghost-border); font-size: 13.5px; }
.pp-cat-head { font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; }
.pp-cat-head span:not(:first-child), .pp-sum span:not(:first-child), .pp-total span:not(:first-child) { text-align: right; }
.pp-val { display: block; text-align: right; }
.pp-val b { font-weight: 500; font-variant-numeric: tabular-nums; }
.pp-val i { display: block; height: 5px; border-radius: 3px; margin-top: 5px; margin-left: auto; min-width: 1px; background: var(--navy); }
.pp-val.pp-m i { background: var(--teal); } .pp-val.pp-u i { background: #a9b7d0; }
.pp-sum { font-weight: 500; } .pp-sum span:not(:first-child), .pp-total span:not(:first-child) { font-variant-numeric: tabular-nums; }
.pp-total { border-bottom: 0; font-weight: 600; font-size: 15px; }
.pp-changes { list-style: none; background: rgba(255,255,255,.9); border: 1px solid var(--glass-border); border-radius: 16px; padding: 4px 18px; box-shadow: var(--lift); }
.pp-changes li { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--ghost-border); font-size: 13.5px; }
.pp-changes li:last-child { border-bottom: 0; } .pp-changes span { color: var(--text); }
.pp-table-wrap { overflow-x: auto; background: rgba(255,255,255,.9); border: 1px solid var(--glass-border); border-radius: 14px; margin-bottom: 14px; }
.pp-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pp-table th, .pp-table td { padding: 9px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--ghost-border); }
.pp-table thead th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; white-space: nowrap; }
.pp-table tbody th { font-weight: 600; white-space: nowrap; }
.pp-table tr:last-child td, .pp-table tr:last-child th { border-bottom: 0; }
.pp-table .r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pp-basis { color: var(--text); font-size: 12.5px; min-width: 200px; } .pp-unit { color: var(--muted); white-space: nowrap; }
.pp-muted { color: var(--muted); }
.pp-sumrow td, tr.pp-sumrow { background: #e6faf8; font-weight: 600; }
.pp-tag { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 999px; background: #e1e8f4; color: var(--navy); margin-right: 4px; white-space: nowrap; }
.pp-tag.u { background: #e6faf8; color: var(--teal-dark); }
.pp-seg { display: inline-flex; background: rgba(255,255,255,.9); border: 1px solid var(--ghost-border); border-radius: 999px; padding: 3px; margin-bottom: 14px; }
.pp-seg button { font: inherit; font-size: 13px; border: 0; background: none; color: var(--navy); padding: 7px 18px; border-radius: 999px; cursor: pointer; }
.pp-seg button[aria-selected="true"] { background: var(--navy); color: #fff; }
.pp-group { background: rgba(255,255,255,.9); border: 1px solid var(--glass-border); border-radius: 14px; margin-bottom: 10px; overflow: hidden; }
.pp-group > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 18px; font-weight: 500; font-size: 14px; }
.pp-group > summary::-webkit-details-marker { display: none; }
.pp-group > summary::after { content: '▾'; color: var(--muted); margin-left: auto; padding-left: 10px; transition: transform .15s; }
.pp-group:not([open]) > summary::after { transform: rotate(-90deg); }
.pp-group > summary small { color: var(--muted); font-weight: 400; }
.pp-group > summary b { font-variant-numeric: tabular-nums; order: 2; }
.pp-group > summary::after { order: 3; }
.pp-group .pp-table-wrap { border: 0; border-top: 1px solid var(--ghost-border); border-radius: 0; margin: 0; background: none; }
.pp-totals { background: rgba(255,255,255,.9); border: 1px solid var(--glass-border); border-radius: 14px; padding: 6px 18px; margin-top: 14px; max-width: 420px; margin-left: auto; }
.pp-totals p { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--ghost-border); font-size: 13.5px; }
.pp-totals p:last-child { border-bottom: 0; } .pp-totals .pp-grand { font-weight: 600; font-size: 16px; }
.pp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 14px; }
.pp-list { list-style: none; background: rgba(255,255,255,.9); border: 1px solid var(--glass-border); border-radius: 14px; padding: 4px 16px; }
.pp-list li { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--ghost-border); font-size: 13.5px; }
.pp-list li:last-child { border-bottom: 0; } .pp-list small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; } .pp-list b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.pp-list .pp-sumrow { margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.pp-bullets { margin: 0 0 0 20px; font-size: 13.5px; color: var(--text); line-height: 1.7; }
.pp-notes { background: rgba(255,255,255,.9); border: 1px solid var(--glass-border); border-radius: 14px; padding: 6px 18px; display: grid; grid-template-columns: 200px 1fr; font-size: 13.5px; }
.pp-notes dt, .pp-notes dd { padding: 10px 0; border-bottom: 1px solid var(--ghost-border); }
.pp-notes dt { font-weight: 600; } .pp-notes dd { color: var(--text); }
.pp-notes .pp-notehead { grid-column: 1 / -1; color: var(--teal-dark); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; padding-top: 16px; }
@media (max-width: 860px) {
  .pp-cards, .pp-two { grid-template-columns: 1fr; }
  .pp-cat { grid-template-columns: 1fr 1fr 1fr; } .pp-cat-name { grid-column: 1 / -1; font-weight: 500; }
  .pp-cat-head span:first-child { display: none; }
  .pp-changes li, .pp-notes { grid-template-columns: 1fr; gap: 2px; }
  .pp-notes dt { border-bottom: 0; padding-bottom: 0; }
}
#peru { text-align: left; }
#peru .pp-card h3, #peru .pp-big, #peru .pp-cap { text-align: left; }
#peru > .pp-lede, #peru > .pp-nav, #peru > .pp-cards, #peru > .pp-block { width: 100%; }
.pp-group > summary b, .pp-group > summary small { margin-left: auto; }
.pp-group > summary::after { margin-left: 0; }

#peru > .pp-lede { max-width: none; text-align: left; }
#peru .pp-lede, #peru .pp-desc { margin-left: 0; margin-right: auto; }

/* ---- Minutes: cards and the reading modal ---- */
.mm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.mm-card { position: relative; display: flex; flex-direction: column; gap: 6px; background: rgba(255,255,255,.92); border: 1px solid var(--glass-border); border-radius: 20px; padding: 18px 20px 16px; box-shadow: var(--lift); cursor: pointer; transition: transform .18s, box-shadow .18s, border-color .18s; text-align: left; }
.mm-card:hover, .mm-card:focus-visible { transform: translateY(-3px); border-color: var(--teal); outline: none; box-shadow: 0 2px 4px rgba(15,47,77,.05), 0 22px 40px -18px rgba(15,47,77,.3); }
.mm-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
.mm-card-actions { display: flex; gap: 2px; opacity: 0; transition: opacity .15s; }
.mm-card:hover .mm-card-actions, .mm-card:focus-within .mm-card-actions { opacity: 1; }
.mm-card h2 { font-size: 17px; font-weight: 500; line-height: 1.3; overflow-wrap: anywhere; }
.mm-date { font-size: 13px; color: var(--muted); }
.mm-card .minute-desc { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mm-kind { margin-top: auto; padding-top: 8px; font-size: 12px; color: var(--muted); }
.mm-people { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 2px; padding: 0; }
.mm-people li { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: #eef2f9; color: var(--navy); }
.mm-people li.more { background: #e6faf8; color: var(--teal-dark); }
.mm-people[hidden] { display: none; }
@media (hover: none) { .mm-card-actions { opacity: 1; } }

.mm { border: 0; padding: 0; background: transparent; width: min(920px, calc(100% - 32px)); max-width: none; max-height: calc(100vh - 48px); margin: auto; overflow: visible; color: var(--navy); }
.mm::backdrop { background: rgba(12, 24, 44, .62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.mm[open] { animation: mm-in .28s cubic-bezier(.2, .8, .2, 1); }
.mm[open]::backdrop { animation: mm-fade .25s ease-out; }
@keyframes mm-in { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes mm-fade { from { opacity: 0; } to { opacity: 1; } }
.mm-sheet { position: relative; background: #fff; border-radius: 28px; box-shadow: 0 40px 90px -30px rgba(0,0,0,.55); display: flex; flex-direction: column; max-height: calc(100vh - 48px); overflow: hidden; text-align: left; }
.mm-close { position: absolute; top: 18px; right: 18px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--ghost-border); background: #fff; color: var(--navy); display: grid; place-items: center; cursor: pointer; transition: background .15s, border-color .15s; }
.mm-close:hover, .mm-close:focus-visible { background: #f2f5fa; border-color: var(--teal); outline: none; }
.mm-head { padding: 34px 40px 22px; border-bottom: 1px solid var(--ghost-border); }
.mm-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-dark); margin-bottom: 8px; }
.mm-head h2 { font-size: 30px; font-weight: 600; letter-spacing: -.015em; line-height: 1.2; padding-right: 52px; margin-bottom: 14px; }
.mm-head .mm-people { margin: 0 0 16px; } .mm-head .mm-people li { font-size: 13px; padding: 5px 13px; }
.mm-head-actions { display: flex; gap: 8px; }
.mm-head-actions [hidden] { display: none; }
.mm-body { overflow-y: auto; padding: 8px 40px 40px; outline: none; }
.mm-prose { max-width: 70ch; font-size: 15px; line-height: 1.7; color: #3b4d63; }
.mm-prose h3 { font-size: 20px; font-weight: 600; color: var(--navy); margin: 32px 0 10px; }
.mm-prose h4 { font-size: 15px; font-weight: 600; color: var(--navy); margin: 22px 0 6px; }
.mm-prose p { margin: 0 0 12px; }
.mm-prose ul { margin: 0 0 14px; padding-left: 0; list-style: none; }
.mm-prose li { position: relative; padding: 4px 0 4px 22px; }
.mm-prose li::before { content: ''; position: absolute; left: 4px; top: 14px; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.mm-prose pre { white-space: pre-wrap; font: inherit; }
.mm-prose a { color: var(--teal-dark); }
.mm-pdf { width: 100%; height: 70vh; border: 0; border-radius: 12px; margin-top: 16px; background: #f2f5fa; }
.mm-none { color: var(--muted); padding: 28px 0; }
.mm-skel { height: 14px; border-radius: 7px; margin: 22px 0; background: linear-gradient(90deg, #eef2f9, #f8fafd, #eef2f9); background-size: 200% 100%; animation: mm-shimmer 1.2s linear infinite; }
.mm-skel.s { width: 60%; }
@keyframes mm-shimmer { to { background-position: -200% 0; } }
@media (max-width: 640px) {
  .mm { width: 100%; max-height: 100vh; margin: auto 0 0; }
  .mm-sheet { border-radius: 24px 24px 0 0; max-height: 94vh; }
  .mm-head { padding: 26px 22px 18px; } .mm-head h2 { font-size: 23px; } .mm-body { padding: 4px 22px 32px; }
}
@media (prefers-reduced-motion: reduce) { .mm[open], .mm[open]::backdrop, .mm-skel { animation: none; } }
.mm-format { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-size: 12px; font-weight: 500; padding: 3px 10px 3px 8px; border-radius: 999px; background: #e8f0ff; color: #2563c9; margin: 2px 0; }
.mm-format:not(.mm-f-zoom) { background: #eef2f9; color: var(--navy); padding-left: 10px; }
