/* KEMS Investor Data Room: app layout on top of the kemscorp.com stylesheet
   (site.css: tokens, fonts, .btn, .field/.input, .eyebrow, .link-arrow). */

body.dr { min-height: 100vh; display: flex; flex-direction: column; }
.dr .logo-w { display: none; }
:root[data-theme="dark"] .dr .logo-n { display: none; }
:root[data-theme="dark"] .dr .logo-w { display: block; }

/* ------------------------------------------------------------- header -- */
.dr-top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--ink) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.dr-top__in { max-width: 1180px; margin: 0 auto; padding: 14px var(--gut); display: flex; align-items: center; gap: 18px; }
.dr-logo img { height: 26px; width: auto; display: block; }
.dr-tag { font-size: 11px; font-weight: 600; letter-spacing: 0.17em; text-transform: uppercase; color: var(--brass); padding-left: 18px; border-left: 1px solid var(--line-strong); white-space: nowrap; }
.dr-sp { flex: 1; }
.dr-nav { flex: 1; display: flex; gap: 22px; justify-content: center; }
.dr-nav a { font-size: 12px; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; color: var(--fg-2); padding: 6px 0; border-bottom: 1px solid transparent; white-space: nowrap; }
.dr-nav a:hover { color: var(--fg); }
.dr-nav a[aria-current="page"] { color: var(--fg); border-bottom-color: var(--brass); }
.dr-acts { display: flex; align-items: center; gap: 12px; }
.dr-who { font-size: 13px; color: var(--fg-3); max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: var(--fg-2); cursor: pointer; }
.dr-icon:hover { color: var(--brass-bright); border-color: var(--brass); }
.dr-out { margin: 0; }
.btn--sm { padding: 10px 16px; font-size: 11.5px; }

/* --------------------------------------------------------------- main -- */
.dr-main { flex: 1; width: 100%; max-width: 900px; margin: 0 auto; padding: clamp(32px, 5vw, 64px) var(--gut) 72px; }
.dr-main--wide { max-width: 1180px; }
.dr-h { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 3.6vw, 42px); line-height: 1.05; letter-spacing: -0.01em; margin: 0 0 14px; }
.dr-h--page { font-size: clamp(34px, 4.4vw, 52px); }
.dr-h2 { font-family: var(--display); font-weight: 400; font-size: 25px; line-height: 1.1; margin: 0 0 18px; }
.dr-lede { color: var(--fg-2); font-size: 16.5px; line-height: 1.65; max-width: 62ch; margin: 0 0 28px; }
.dr-small { font-size: 14px; color: var(--fg-2); line-height: 1.6; margin: 18px 0 0; }
.dr-small a, .dr-lede a, .dr-empty a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 3px; }
.dr-staff-link { padding-top: 16px; border-top: 1px solid var(--line); }
.dr-sub { display: block; font-size: 13px; color: var(--fg-3); margin-top: 3px; font-weight: 400; }
.dr-empty { color: var(--fg-2); padding: 22px 0; }

/* -------------------------------------------------------------- cards -- */
.dr-card { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(22px, 3vw, 34px); margin-bottom: 24px; }
.dr-card--auth { max-width: 470px; margin: clamp(8px, 4vh, 48px) auto 24px; }
.dr-card--soft { background: transparent; }
.dr-card--flush { padding: 0; overflow: hidden; }
.dr-form .field:last-of-type { margin-bottom: 26px; }
.dr-wide { width: 100%; justify-content: center; }
.dr-code { font-size: 28px; letter-spacing: 0.45em; text-align: center; font-variant-numeric: tabular-nums; padding-left: 0.45em; }
.dr-row-links { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 20px; font-size: 14px; }
.dr-row-links form { margin: 0; }
.dr-row-links a { color: var(--fg-2); text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 3px; }
.dr-linkbtn { background: none; border: 0; padding: 4px 0; font: inherit; font-size: 13.5px; color: var(--fg); text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 3px; cursor: pointer; }
.dr-linkbtn:hover { color: var(--brass-bright); }
.dr-linkbtn--warn { text-decoration-color: #c25b5b; }

.dr-flash { max-width: 900px; margin: 0 auto 24px; padding: 14px 18px; border: 1px solid var(--brass-deep); border-left-width: 4px; border-radius: var(--r); background: color-mix(in srgb, var(--brass) 8%, transparent); font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.dr-main--wide .dr-flash { max-width: none; }
.dr-flash--err { border-color: #c25b5b; background: color-mix(in srgb, #c25b5b 9%, transparent); }
.dr-flash a { color: var(--fg); text-decoration: underline; }
.dr-preview { margin: 0 0 24px; padding: 12px 16px; border: 1px dashed var(--brass-deep); border-radius: var(--r); font-size: 14px; color: var(--fg-2); }
.dr-preview a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--brass); }

/* -------------------------------------------------------------- rooms -- */
.dr-rooms { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 22px; margin: 8px 0 32px; }
.dr-room { display: flex; flex-direction: column; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color 0.25s, transform 0.25s var(--ease); }
.dr-room:hover { border-color: var(--brass); transform: translateY(-2px); }
.dr-room__media { aspect-ratio: 16 / 10; background: #fff; display: grid; place-items: center; overflow: hidden; }
.dr-room__media img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 55%; }
.dr-room__mark { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(150deg, var(--navy) 0%, #0b1a30 100%); font-family: var(--display); font-size: clamp(72px, 9vw, 110px); color: #e6d0a4; }
.dr-room__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.dr-room__loc { margin: 0; font-size: 11.5px; font-weight: 600; letter-spacing: 0.17em; text-transform: uppercase; color: var(--brass); }
.dr-room__t { font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1.05; margin: 0; }
.dr-room__d { margin: 0 0 8px; color: var(--fg-2); font-size: 15px; line-height: 1.6; flex: 1; }

.dr-wire { padding: clamp(16px, 2.2vw, 22px) clamp(18px, 3vw, 32px); border: 1px solid var(--brass-deep); border-radius: var(--r); background: color-mix(in srgb, var(--brass) 6%, transparent); text-align: center; }
.dr-wire p { margin: 0 auto; max-width: 64ch; font-size: 15px; line-height: 1.65; }
.dr-wire .dr-wire__k { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); margin-bottom: 6px; }
.dr-wire a { color: var(--fg); white-space: nowrap; text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 3px; }

/* -------------------------------------------------------------- admin -- */
.dr-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.dr-head .dr-h { margin-bottom: 0; }
.dr-stats { display: flex; gap: 22px; font-size: 13.5px; color: var(--fg-2); }
.dr-stats b { font-family: var(--display); font-weight: 400; font-size: 30px; color: var(--fg); margin-right: 6px; }
.dr-split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.dr-steps { margin: 0; padding-left: 20px; color: var(--fg-2); font-size: 15px; line-height: 1.6; display: grid; gap: 10px; }
fieldset.field { border: 0; padding: 0; margin: 0 0 20px; }
.dr-rooms-pick legend { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-2); margin-bottom: 10px; padding: 0; }
.field .dr-check, .dr-check { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 8px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--ink-3); font-size: 15px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--fg); cursor: pointer; }
.field .dr-check input, .dr-check input { flex: none; width: 18px; height: 18px; margin: 0; padding: 0; accent-color: var(--brass-deep); }
.dr-check:has(input:checked) { border-color: var(--brass); }

.dr-table-wrap { overflow-x: auto; }
.dr-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.dr-table th { text-align: left; font-size: 11.5px; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; color: var(--fg-2); padding: 14px 18px; border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
.dr-table td { padding: 15px 18px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.45; }
.dr-table tr:last-child td { border-bottom: 0; }
.dr-table tr.is-off td { opacity: 0.55; }
.dr-acts-cell { text-align: right; white-space: nowrap; }
.dr-acts-cell form { display: inline-flex; gap: 16px; margin: 0; }
.dr-chip { display: inline-block; padding: 4px 10px; margin: 0 4px 4px 0; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 12px; white-space: nowrap; }
.dr-status { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.dr-status--on { background: color-mix(in srgb, #3f8f5f 16%, transparent); color: var(--fg); }
.dr-status--wait { background: color-mix(in srgb, var(--brass) 16%, transparent); color: var(--fg); }
.dr-status--off { background: color-mix(in srgb, #c25b5b 16%, transparent); color: var(--fg); }

.dr-mail__h { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.dr-mail__h .dr-sub { margin: 0; }
.dr-mail__to { margin: 0 0 6px; font-size: 14px; color: var(--fg-2); }
.dr-mail__s { font-family: var(--body); font-weight: 600; font-size: 17px; margin: 0 0 14px; }
.dr-mail__err { margin: 0 0 10px; padding: 10px 14px; border-left: 3px solid #c25b5b; background: color-mix(in srgb, #c25b5b 10%, transparent); font-size: 14px; color: var(--fg); }
.dr-state { margin: 0 0 24px; padding: 14px 18px; border: 1px solid color-mix(in srgb, #3f8f5f 45%, transparent); border-radius: var(--r); background: color-mix(in srgb, #3f8f5f 10%, transparent); font-size: 15px; line-height: 1.55; color: var(--fg); }
.dr-mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 14px; letter-spacing: 0; }
.dr-log-h { margin-top: 40px; }
.dr-mail__b { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--body); font-size: 14.5px; line-height: 1.65; color: var(--fg-2); background: var(--ink); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }

/* ------------------------------------------------------------- footer -- */
.dr-foot { border-top: 1px solid var(--line); }
.dr-foot__in { max-width: 1180px; margin: 0 auto; padding: 22px var(--gut); display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; font-size: 13px; color: var(--fg-3); }
.dr-foot a { color: var(--fg-2); }

/* The full admin menu (five items) leaves no room for the signed-in address
   until the header is wide; it's still on the Team page. */
.dr-out .btn { white-space: nowrap; }
@media (max-width: 1360px) {
  .dr-top__in:has(.dr-nav a:nth-child(4)) .dr-who { display: none; }
}
@media (max-width: 900px) {
  .dr-split { grid-template-columns: minmax(0, 1fr); }
  .dr-nav { order: 3; flex-basis: 100%; justify-content: flex-start; gap: 18px; overflow-x: auto; }
  .dr-top__in { flex-wrap: wrap; }
  .dr-sp { display: none; }
  .dr-acts { margin-left: auto; }
}
@media (max-width: 560px) {
  .dr-who, .dr-tag { display: none; }
  .dr-table th:nth-child(4), .dr-table td:nth-child(4), .dr-table th:nth-child(5), .dr-table td:nth-child(5) { display: none; }
}
