/* Applied only to the two managed author pages; no Newspress layout is rendered. */
body.heat-standalone {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: #f5f6f9;
  color: #172032;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  /* Newspress may set global dark-mode tokens on html; the standalone
     author workspace is intentionally always light. Override only here. */
  --np-bg: whitesmoke;
  --np-surface: #fff;
  --np-soft: #f3f5f8;
  --np-text: #172032;
  --np-heading: #172032;
  --np-muted: #5b6677;
  --np-border: #d6dde6;
}

/* Keep the standalone canvas readable even if Newspress dark mode is active. */
html[data-theme="dark"] body.heat-standalone {
  background: whitesmoke;
  color: #172032;
}
body.heat-standalone--account .heat-author-portal > .heat-author-header h1,
body.heat-standalone--account .heat-author-portal > .heat-author-card h2,
body.heat-standalone--account .heat-author-portal > .heat-author-grid .heat-author-card h2 {
  color: #172032;
}
/* Author workspace surfaces. */
body.heat-standalone--account .heat-author-portal {
  --heat-dashboard-accent: #831200;
  --heat-dashboard-border: #dfe4eb;
  --heat-dashboard-text: #172032;
}
body.heat-standalone--account .heat-author-portal > .heat-author-header h1 {
  margin: 0 0 18px;
  font-size: clamp(1.55rem, 2.7vw, 2rem);
  font-weight: 750;
  line-height: 1.25;
}
body.heat-standalone--account .heat-author-portal > .heat-author-toolbar {
  margin: 16px 0 20px;
}
body.heat-standalone--account .heat-author-portal .heat-author-card {
  border-color: var(--heat-dashboard-border);
  border-radius: 8px;
  padding: clamp(12px,3vw,20px);
}
body.heat-standalone--account .heat-author-portal .heat-author-card h2 {
  font-size: 1.125rem;
  font-weight: 750;
}
body.heat-standalone--account .heat-author-grid a.he-column-btn-light,
body.heat-standalone--account .heat-author-grid a.he-column-btn-light:visited {
  background: var(--heat-dashboard-accent);
  border-color: var(--heat-dashboard-accent);
  color: #fff;
  text-decoration: none;
}
body.heat-standalone--account .heat-author-grid a.he-column-btn-light:hover {
  background: #6c0f02;
  border-color: #6c0f02;
  color: #fff;
  text-decoration: none;
}
@media (max-width: 600px) {
  body.heat-standalone--account .heat-author-portal .heat-author-card { padding: 18px; }
  body.heat-standalone--account .heat-author-portal > .heat-author-toolbar { align-items: center; }
}
body.heat-standalone,
body.heat-standalone * { box-sizing: border-box; }
body.heat-standalone .heat-standalone__main {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding: 0 clamp(16px, 3vw, 36px) 36px;
}
body.heat-standalone .heat-standalone__navigation {
  display: flex;
  align-items: center;
  width: min(100%, 1180px);
  min-height: 58px;
  margin: 0 auto;
}
body.heat-standalone .heat-standalone__navigation a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  color: #4b5566;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
  text-decoration: none;
}
body.heat-standalone .heat-standalone__navigation a:hover { color: #831200; text-decoration: underline; }
body.heat-standalone .heat-standalone__navigation svg { flex: none; }
body.heat-standalone .heat-standalone__content {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  justify-content: center;
  width: min(100%, 1180px);
  min-width: 0;
  margin: 0 auto;
}
body.heat-standalone .heat-standalone__content > .heat-author-portal,
body.heat-standalone .heat-standalone__content > .he-column-form-app,
body.heat-standalone .heat-standalone__content > .heat-column-auth {
  width: 100%;
  margin-top: 0;
  margin-bottom: 0;
}
body.heat-standalone .heat-standalone__content > .heat-author-portal {
  max-width: 1180px;
  padding: 0;
}
body.heat-standalone .heat-author-portal .heat-author-auth { margin-top: 0; margin-bottom: 0; }
body.heat-standalone .heat-standalone__content > .he-column-form-app { max-width: 900px; }
body.heat-standalone .heat-standalone__content > .heat-column-auth { max-width: unset; }
body.heat-standalone--dashboard .heat-standalone__content {
  width: 100%;
  justify-content: flex-start;
}
body.heat-standalone--dashboard .heat-standalone__content > .heat-author-portal { max-width: none; }
body.heat-standalone--dashboard .heat-author-dashboard {
  min-height: 100vh;
  min-height: 100svh;
  border: 0;
  border-radius: 0;
}
body.heat-standalone :is(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid #831200;
  outline-offset: 3px;
}
body.heat-standalone .heat-standalone__skip {
  position: absolute;
  z-index: 100;
  left: 12px;
  top: -100px;
  padding: 10px 14px;
  background: #fff;
  color: #172032;
  border: 2px solid #831200;
  border-radius: 6px;
}
body.heat-standalone .heat-standalone__skip:focus { top: 12px; }
@media (max-width: 600px) {
  body.heat-standalone .heat-standalone__main { padding: 0 14px 24px; }
  body.heat-standalone .heat-standalone__navigation { min-height: 52px; }
  body.heat-standalone .heat-standalone__content { justify-content: flex-start; }
}

body.heat-standalone--dashboard .heat-standalone__main { padding: 0; }

/* Full-page canvas for the managed author screens. */
body.heat-standalone main#heat-standalone-main { background: whitesmoke; }

/* Password toggle is enabled by JS; unaffected forms remain usable without JS. */
#heat-standalone-main .heat-password-field { display: block; position: relative; min-width: 0; }
#heat-standalone-main .heat-password-field > input { width: 100%; box-sizing: border-box; }
#heat-standalone-main .heat-password-field.is-ready > input { padding-right: 50px; }
#heat-standalone-main .heat-password-toggle { display: none; position: absolute; inset-inline-end: 7px; top: 50%; transform: translateY(-50%); align-items: center; justify-content: center; width: 36px; height: 36px; padding: 8px; border: 0; border-radius: 6px; background: transparent; color: #556174; cursor: pointer; }
#heat-standalone-main .heat-password-toggle.is-ready { display: flex; }
#heat-standalone-main .heat-password-toggle:hover { background: #f0f2f5; color: #831200; }
#heat-standalone-main .heat-password-toggle:focus-visible { outline: 2px solid #831200; outline-offset: 2px; }
#heat-standalone-main .heat-password-toggle svg { display: block; width: 20px; height: 20px; }
#heat-standalone-main .heat-password-toggle .heat-eye-hide { display: none; }
#heat-standalone-main .heat-password-toggle[aria-pressed="true"] .heat-eye-hide { display: block; }
#heat-standalone-main .heat-password-toggle[aria-pressed="true"] .heat-eye-show { display: none; }

/* Expand the editor workspace while leaving anonymous login panels unchanged. */
body.heat-standalone--submit .heat-standalone__content>.he-column-form-app,
body.heat-standalone--citizen .heat-standalone__content>.he-column-form-app{max-width:1040px;margin:18px auto 38px}
