/* Darshanjoshi.com brand applied to the Roundcube Elastic application shell. */
@font-face {
  font-family: Inter;
  src: url('/branding/fonts/inter.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --darsh-paper: #f8f5ef;
  --darsh-card: #fffdf9;
  --darsh-ink: #29241f;
  --darsh-muted: #756c63;
  --darsh-line: #ded6cb;
  --darsh-action: #a4472c;
  --darsh-action-hover: #873b25;
  --darsh-lavender: #e6deef;
  --darsh-peach: #f0e4d4;
  --darsh-mint: #dfebe1;
  --darsh-focus: #805795;
  --darsh-on-action: #fffaf5;
}
html.dark-mode {
  --darsh-paper: #29241f;
  --darsh-card: #332d27;
  --darsh-ink: #f8f5ef;
  --darsh-muted: #cabdaf;
  --darsh-line: #66594d;
  --darsh-action: #efb397;
  --darsh-action-hover: #f2c8b2;
  --darsh-lavender: #4c3d57;
  --darsh-peach: #48392f;
  --darsh-mint: #334338;
  --darsh-focus: #ceb2df;
  --darsh-on-action: #29241f;
}
html body {
  font-family: Inter, Arial, Helvetica, sans-serif;
  background: var(--darsh-paper);
  color: var(--darsh-ink);
}
html body input, html body select, html body textarea, html body button {
  font-family: Inter, Arial, Helvetica, sans-serif;
}
::selection { color: var(--darsh-ink); background: var(--darsh-lavender); }
html body a { color: var(--darsh-action); }
html body :focus-visible { outline: 2px solid var(--darsh-focus); outline-offset: 3px; }
html body .form-control {
  color: var(--darsh-ink);
  background: var(--darsh-card);
  border-color: var(--darsh-line);
  border-radius: 8px;
}
html body .form-control:focus {
  background: var(--darsh-card);
  color: var(--darsh-ink);
  border-color: var(--darsh-focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--darsh-focus) 18%, transparent);
}
html body .btn-primary, html body .button.mainaction {
  color: var(--darsh-on-action);
  background: var(--darsh-action);
  border-color: var(--darsh-action);
  border-radius: 8px;
}
html body .btn-primary:hover, html body .button.mainaction:hover {
  background: var(--darsh-action-hover);
  border-color: var(--darsh-action-hover);
}
/* Layout IDs verified against the 1.7.4 Elastic layout source. */
html body #layout, html body #layout-menu, html body #layout-sidebar {
  background: var(--darsh-paper);
  color: var(--darsh-ink);
  border-color: var(--darsh-line);
}
html body #layout-list, html body #layout-content {
  background: var(--darsh-card);
  color: var(--darsh-ink);
  border-color: var(--darsh-line);
}
html body #layout > div > .header, html body #layout > div > .footer {
  background: var(--darsh-paper);
  color: var(--darsh-ink);
  border-color: var(--darsh-line);
}
html body #layout > div > .header a.button { color: var(--darsh-ink); }
html body #layout-menu .popover-header { background: var(--darsh-paper) !important; }
html body #taskmenu { background: var(--darsh-paper); }
html body #taskmenu a { color: var(--darsh-ink); background: transparent; }
html body #taskmenu a:hover { background: var(--darsh-peach); }
html body #taskmenu a.selected { color: var(--darsh-ink); background: var(--darsh-lavender); }
html body #taskmenu a.logout { color: var(--darsh-action); }

/* The login layout and IDs below are present in the saved live login HTML. */
html body.task-login {
  min-width: 280px;
  height: auto;
  min-height: 100%;
  overflow: auto;
  background: radial-gradient(ellipse at 82% 28%, #edccaf70, transparent 48%),
    radial-gradient(ellipse at 12% 80%, #e6deef80, transparent 50%), var(--darsh-paper);
}
html.dark-mode body.task-login { background: var(--darsh-paper); }
html body.task-login #layout {
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  min-height: 100vh;
  min-height: 100svh;
  padding: 36px 20px;
  background: transparent;
  overflow: visible;
  box-sizing: border-box;
}
html body.task-login #layout-content {
  display: block;
  flex: none;
  width: min(100%, 460px);
  max-width: 460px;
  min-width: 0;
  height: auto;
  margin: 0;
  padding: 38px;
  border: 1px solid var(--darsh-line);
  border-radius: 16px;
  box-shadow: 0 18px 70px #76513712;
  box-sizing: border-box;
  overflow: visible;
}
html body.task-login #logo {
  display: block;
  width: 240px;
  max-width: 100%;
  height: 72px;
  max-height: none;
  margin: 0 0 32px;
  padding: 0;
  object-fit: contain;
  object-position: left;
  position: static;
  top: auto;
}
#darsh-mail-intro { margin-bottom: 25px; text-align: left; }
#darsh-mail-intro .darsh-eyebrow {
  color: var(--darsh-muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 9px;
  line-height: 1.8;
  letter-spacing: .8px;
  margin: 0 0 12px;
}
#darsh-mail-intro h2 {
  color: var(--darsh-ink);
  font-size: 35px;
  line-height: 1.1;
  font-weight: 450;
  letter-spacing: -1.5px;
  margin: 0 0 13px;
}
#darsh-mail-intro p:last-child {
  color: var(--darsh-muted);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}
html body.task-login #login-form { width: 100%; max-width: none; margin: 0; text-align: left; top: auto; position: static; }
html body.task-login #login-form table { width: 100%; }
html body.task-login #login-form .form-control {
  height: 46px;
  font-size: 15px;
  box-sizing: border-box;
}
html body.task-login #login-form .formbuttons { margin-top: 22px; }
html body.task-login #rcmloginsubmit { width: 100%; min-height: 46px; font-weight: 500; }
html body.task-login #login-footer {
  color: var(--darsh-muted);
  line-height: 1.8;
  font-size: 12px;
  margin: 24px 0 0;
}
#darsh-mail-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  padding-top: 22px;
  margin-top: 22px;
  border-top: 1px solid var(--darsh-line);
  font-size: 12px;
}
#darsh-mail-links a { text-underline-offset: 3px; }
@media (max-width: 480px) {
  html body.task-login #layout { padding: 20px 12px; }
  html body.task-login #layout-content { padding: 28px 22px; }
  html body.task-login #logo { width: 216px; height: 65px; margin-bottom: 26px; }
}
@media (forced-colors: active) {
  html body :focus-visible { outline-color: Highlight; }
  html body.task-login #layout-content { border: 1px solid CanvasText; }
}
