/*!
 * Lights of Peace quizzes
 * Design follows the site's newer quizzes (green, Georgia headings, soft gradient page).
 * Selectors are scoped to .lopq-root and written to outrank Salient's global
 * p / button / list / heading rules.
 */

.lopq-root,
.lopq-root * ,
.lopq-root *::before,
.lopq-root *::after {
  box-sizing: border-box;
}

.lopq-root {
  --lopq-green: #2f7a50;
  --lopq-green-dark: #235e3d;
  --lopq-ink: #24352d;
  --lopq-heading: #173d2a;
  --lopq-muted: #5b6b63;
  --lopq-line: #e1e9e3;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow-x: hidden;
  color: var(--lopq-ink);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-align: left;
}

.lopq-root.lopq-root--contained {
  width: auto;
  margin-left: 0;
}

/* ---------- Salient resets (paragraph padding, heading spacing, lists, links) ---------- */
.lopq-root p,
.lopq-root h1,
.lopq-root h2,
.lopq-root h3,
.lopq-root ul,
.lopq-root li,
.lopq-root fieldset,
.lopq-root legend,
.lopq-root label {
  padding: 0;
  letter-spacing: normal;
  text-transform: none;
}

.lopq-root p {
  margin: 0 0 12px;
  font-size: inherit;
  line-height: 1.6;
}

.lopq-root h1,
.lopq-root h2,
.lopq-root h3 {
  margin-top: 0;
  font-weight: 700;
}

.lopq-root strong,
.lopq-root b {
  font-family: inherit;
  font-weight: 700;
}

/* Keep scrolled-to sections clear of Salient's fixed header. */
.lopq-root .lopq-intro,
.lopq-root .lopq-question,
.lopq-root .lopq-result,
.lopq-root .lopq-validation,
.lopq-root .lopq-worksheets {
  scroll-margin-top: 150px;
}

@media (max-width: 999px) {
  .lopq-root .lopq-intro,
  .lopq-root .lopq-question,
  .lopq-root .lopq-result,
  .lopq-root .lopq-validation,
  .lopq-root .lopq-worksheets {
    scroll-margin-top: 90px;
  }
}

.lopq-root a {
  color: #24633f;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.lopq-root a:hover,
.lopq-root a:focus {
  color: var(--lopq-green-dark);
}

.lopq-root ul.lopq-list,
.lopq-root ul.lopq-support-list {
  margin: 8px 0 12px 1.25em;
  list-style: disc outside;
}

.lopq-root ul.lopq-list li,
.lopq-root ul.lopq-support-list li {
  margin: 0 0 6px;
  list-style: disc outside;
}

.lopq-root [hidden] {
  display: none !important;
}

/* ---------- page + cards ---------- */
.lopq-root .lopq-bg {
  min-height: 100vh;
  padding: clamp(28px, 5vw, 72px) 20px;
  background:
    radial-gradient(circle at 10% 10%, rgba(201, 229, 212, 0.88), transparent 34%),
    radial-gradient(circle at 90% 5%, rgba(229, 203, 232, 0.72), transparent 32%),
    linear-gradient(135deg, #f1f8f3 0%, #fdf7ed 50%, #f8f1f8 100%);
}

.lopq-root.lopq-root--contained .lopq-bg {
  min-height: 0;
  border-radius: 22px;
}

.lopq-root .lopq-container {
  width: min(100%, 900px);
  margin: 0 auto;
}

.lopq-root .lopq-card {
  margin: 0 0 18px;
  padding: clamp(24px, 4vw, 38px);
  background: #ffffff;
  border: 1px solid var(--lopq-line);
  border-radius: 22px;
  box-shadow: 0 14px 36px rgba(36, 53, 45, 0.10);
}

.lopq-root .lopq-intro {
  border-top: 6px solid var(--lopq-green);
}

.lopq-root .lopq-eyebrow {
  margin: 0 0 8px;
  color: var(--lopq-green);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lopq-root .lopq-title {
  margin: 0 0 10px;
  color: var(--lopq-heading);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3.35rem);
  line-height: 1.08;
}

.lopq-root .lopq-subtitle {
  margin: 0 0 14px;
  color: #496056;
  font-size: clamp(1.05rem, 2vw, 1.22rem);
}

.lopq-root .lopq-text {
  color: #3f554a;
}

.lopq-root .lopq-note {
  margin: 16px 0 0;
  padding: 14px 16px;
  color: #4f4838;
  background: #fff8e7;
  border: 1px solid #ead8a5;
  border-radius: 12px;
  font-size: 0.94rem;
}

.lopq-root .lopq-note--crisis {
  color: #5c2b26;
  background: #fdf0ee;
  border-color: #e8b4ab;
}

/* ---------- progress ---------- */
.lopq-root .lopq-progress {
  margin: 0 0 18px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #dce7df;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(36, 53, 45, 0.10);
}

.lopq-root .lopq-progress-copy {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 9px;
  color: #3f554a;
  font-size: 0.93rem;
  font-weight: 700;
}

.lopq-root .lopq-track {
  width: 100%;
  height: 10px;
  overflow: hidden;
  background: #e5ece7;
  border-radius: 999px;
}

.lopq-root .lopq-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--lopq-green) 0%, #7aa783 100%);
  border-radius: inherit;
  transition: width 260ms ease;
}

.lopq-root .lopq-float {
  position: fixed;
  z-index: 9000;
  top: 0;
  left: 0;
  width: 100%;
  margin: 0;
  padding: 10px 18px 12px;
  background: #ffffff;
  border: 1px solid #dce7df;
  border-top: 0;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 10px 24px rgba(36, 53, 45, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 0s linear 160ms;
  pointer-events: none;
}

.lopq-root .lopq-float.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.lopq-root .lopq-float .lopq-progress-copy {
  margin-bottom: 6px;
  font-size: 0.88rem;
}

.lopq-root .lopq-float .lopq-track {
  height: 8px;
}

/* ---------- questions ---------- */
.lopq-root .lopq-section-heading {
  margin: 30px 0 14px;
  padding: 13px 18px;
  color: #244f37;
  background: rgba(233, 244, 236, 0.96);
  border-left: 5px solid #4d8f68;
  border-radius: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 3vw, 1.62rem);
  line-height: 1.25;
}

.lopq-root .lopq-question {
  min-width: 0;
  margin: 0 0 18px;
  padding: clamp(22px, 3.5vw, 30px);
  background: #ffffff;
  border: 1px solid var(--lopq-line);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(36, 53, 45, 0.08);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.lopq-root .lopq-question:hover {
  border-color: #bfd4c5;
}

.lopq-root .lopq-question:focus-within {
  border-color: #4d8f68;
  box-shadow: 0 0 0 4px rgba(47, 122, 80, 0.13), 0 12px 30px rgba(36, 53, 45, 0.10);
}

.lopq-root .lopq-question.is-missing {
  border-color: #bc5c5c;
  box-shadow: 0 0 0 4px rgba(188, 92, 92, 0.10);
}

.lopq-root .lopq-question legend {
  display: flex;
  align-items: flex-start;
  float: left;
  width: 100%;
  margin: 0 0 18px;
  color: var(--lopq-ink);
  font-family: inherit;
  font-size: clamp(1.03rem, 2vw, 1.16rem);
  font-weight: 700;
  line-height: 1.48;
  border: 0;
}

.lopq-root .lopq-question legend + * {
  clear: both;
}

.lopq-root .lopq-qnum {
  display: inline-flex;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-right: 12px;
  color: #ffffff;
  background: var(--lopq-green);
  border-radius: 50%;
  font-size: 0.92rem;
  line-height: 1;
}

.lopq-root .lopq-qtext {
  padding-top: 4px;
}

.lopq-root .lopq-options {
  display: grid;
  gap: 10px;
}

.lopq-root .lopq-option {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  margin: 0;
  padding: 12px 14px;
  color: #394d43;
  background: #fbfdfb;
  border: 1px solid #dfe8e1;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.45;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.lopq-root .lopq-options--lettered .lopq-option {
  grid-template-columns: 22px 34px 1fr;
  min-height: 58px;
}

.lopq-root .lopq-option:hover {
  background: #f1f7f2;
  border-color: #a9c6b2;
}

.lopq-root .lopq-option.is-selected {
  color: var(--lopq-heading);
  background: #e9f4ec;
  border-color: #4d8f68;
  box-shadow: inset 0 0 0 1px #4d8f68;
}

.lopq-root .lopq-option input[type="radio"] {
  -webkit-appearance: radio;
  appearance: auto;
  position: static;
  width: 19px;
  height: 19px;
  margin: 0;
  padding: 0;
  opacity: 1;
  accent-color: var(--lopq-green);
  cursor: pointer;
}

.lopq-root .lopq-option input[type="radio"]:focus-visible {
  outline: 3px solid #d49043;
  outline-offset: 3px;
}

.lopq-root .lopq-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: #2f6f4a;
  background: #e7f0e9;
  border-radius: 50%;
  font-size: 0.84rem;
  font-weight: 800;
}

.lopq-root .lopq-option.is-selected .lopq-letter {
  color: #ffffff;
  background: var(--lopq-green);
}

/* ---------- buttons (outrank Salient's body[data-button-style] button rules) ---------- */
.lopq-root .lopq-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.lopq-root .lopq-actions-card .lopq-actions {
  margin-top: 0;
}

.lopq-root .lopq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin: 0;
  padding: 13px 22px;
  color: var(--lopq-btn-outline-text, #2f6f4a);
  background: #ffffff;
  border: 2px solid var(--lopq-btn-outline-border, #9fbea9);
  border-radius: var(--lopq-btn-radius, 12px);
  box-shadow: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: normal;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  cursor: pointer;
  opacity: 1;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.lopq-root .lopq-btn:hover {
  transform: translateY(-1px);
  box-shadow: none;
}

.lopq-root .lopq-btn:focus-visible,
.lopq-root .lopq-text-btn:focus-visible {
  outline: 3px solid #d49043;
  outline-offset: 3px;
}

.lopq-root .lopq-btn.lopq-btn--primary {
  flex: 1 1 260px;
  color: var(--lopq-btn-text, #ffffff);
  background: var(--lopq-btn, var(--lopq-green));
  border-color: var(--lopq-btn, var(--lopq-green));
}

.lopq-root .lopq-btn.lopq-btn--primary:hover {
  color: var(--lopq-btn-hover-text, #ffffff);
  background: var(--lopq-btn-hover, var(--lopq-green-dark));
  border-color: var(--lopq-btn-hover, var(--lopq-green-dark));
}

.lopq-root .lopq-btn.lopq-btn--secondary {
  flex: 0 1 auto;
}

.lopq-root .lopq-btn.lopq-btn--secondary:hover {
  color: var(--lopq-btn-outline-text, #2f6f4a);
  background: var(--lopq-btn-outline-hover, #edf5ef);
}

.lopq-root .lopq-text-btn {
  display: inline;
  margin: 0;
  padding: 0;
  color: #24633f;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font: inherit;
  font-weight: 700;
  letter-spacing: normal;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-transform: none;
  cursor: pointer;
}

.lopq-root .lopq-text-btn.lopq-text-btn.lopq-text-btn {
  border-radius: 0 !important;
  -webkit-border-radius: 0 !important;
}

/* Salient sets border-radius: 4px !important on every button and a lift shadow on
   submit buttons when hovered (body[data-button-style] ... button[type=submit]:hover).
   The repeated class gives these rules enough weight to win. */
.lopq-root .lopq-btn.lopq-btn.lopq-btn {
  border-radius: var(--lopq-btn-radius, 12px) !important;
  -webkit-border-radius: var(--lopq-btn-radius, 12px) !important;
}

.lopq-root .lopq-btn.lopq-btn.lopq-btn:hover,
.lopq-root .lopq-btn.lopq-btn.lopq-btn:focus {
  box-shadow: none !important;
  transform: translateY(-1px);
}

/* Salient also forces its own dark green on submit buttons when hovered
   (button[type=submit]:hover { background-color: ... !important }) and fades them to 85%. */
.lopq-root .lopq-btn.lopq-btn.lopq-btn:hover {
  opacity: 1 !important;
}

.lopq-root .lopq-btn.lopq-btn--primary.lopq-btn--primary:hover {
  color: var(--lopq-btn-hover-text, #ffffff) !important;
  background-color: var(--lopq-btn-hover, var(--lopq-green-dark)) !important;
  border-color: var(--lopq-btn-hover, var(--lopq-green-dark)) !important;
}

.lopq-root .lopq-validation {
  margin: 16px 0 0;
  padding: 12px 14px;
  color: #7d2d2d;
  background: #fff0f0;
  border: 1px solid #e3a2a2;
  border-radius: 10px;
  font-weight: 700;
}

/* ---------- results ---------- */
.lopq-root .lopq-result {
  padding: clamp(26px, 5vw, 44px);
}

.lopq-root .lopq-result:focus {
  outline: none;
}

.lopq-root .lopq-result-heading {
  margin: 0 0 22px;
  color: var(--lopq-heading);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 4vw, 2.55rem);
  line-height: 1.15;
}

.lopq-root .lopq-summary {
  --tone-bg: #eef7f0;
  --tone-line: #91b99c;
  --tone-ink: #2f6f4a;
  --tone-fill: linear-gradient(90deg, #2f7a50 0%, #7aa783 100%);
  margin: 0 0 22px;
  padding: 24px;
  background: var(--tone-bg);
  border: 2px solid var(--tone-line);
  border-radius: 16px;
}

.lopq-root .lopq-tone--calm {
  --tone-bg: #eef7f0;
  --tone-line: #91b99c;
  --tone-ink: #2f6f4a;
  --tone-fill: linear-gradient(90deg, #2f7a50 0%, #7aa783 100%);
}

.lopq-root .lopq-tone--mild {
  --tone-bg: #f3f7ea;
  --tone-line: #b4cb8c;
  --tone-ink: #4c6a22;
  --tone-fill: linear-gradient(90deg, #6f9a3a 0%, #a9c47a 100%);
}

.lopq-root .lopq-tone--moderate {
  --tone-bg: #fff6e6;
  --tone-line: #e2bf7a;
  --tone-ink: #845613;
  --tone-fill: linear-gradient(90deg, #c88a24 0%, #e5b766 100%);
}

.lopq-root .lopq-tone--high {
  --tone-bg: #fdf0ee;
  --tone-line: #e0a69c;
  --tone-ink: #93392c;
  --tone-fill: linear-gradient(90deg, #b5523f 0%, #d98b7c 100%);
}

.lopq-root .lopq-summary .lopq-fill,
.lopq-root .lopq-bar-row .lopq-fill {
  background: var(--tone-fill);
}

.lopq-root .lopq-kicker {
  margin: 0 0 4px;
  color: #64746c;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lopq-root .lopq-summary-label {
  margin: 0 0 8px;
  color: var(--tone-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.25;
}

.lopq-root .lopq-summary-score {
  margin: 0 0 12px;
  color: #475b51;
}

.lopq-root .lopq-summary-score strong {
  margin-right: 12px;
  color: var(--lopq-ink);
  font-size: 1.15rem;
}

.lopq-root .lopq-summary-range {
  display: inline-block;
  color: #5b6b63;
  font-size: 0.92rem;
}

.lopq-root .lopq-summary .lopq-track {
  margin: 4px 0 14px;
  background: rgba(255, 255, 255, 0.8);
}

.lopq-root .lopq-summary-text {
  margin: 0;
}

.lopq-root .lopq-block {
  margin: 0 0 18px;
  padding: 22px 24px;
  background: #ffffff;
  border: 1px solid #dce7df;
  border-left: 6px solid #4d8f68;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(36, 53, 45, 0.07);
}

.lopq-root .lopq-block--next {
  background: #f4f1fb;
  border-color: #ddd7f3;
  border-left-color: #8b7bc4;
}

.lopq-root .lopq-block--focus {
  background: #f1f6fb;
  border-color: #d3e4f2;
  border-left-color: #5d8db8;
}

.lopq-root .lopq-block-title,
.lopq-root .lopq-detail h3 {
  margin: 0 0 12px;
  color: var(--lopq-heading);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  line-height: 1.25;
}

.lopq-root .lopq-block p:last-child,
.lopq-root .lopq-detail p:last-child,
.lopq-root .lopq-notice p:last-child,
.lopq-root .lopq-crisis p:last-child {
  margin-bottom: 0;
}

.lopq-root .lopq-muted {
  color: var(--lopq-muted);
  font-size: 0.92rem;
}

.lopq-root .lopq-subscales {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin: 0 0 18px;
}

.lopq-root .lopq-subscale {
  padding: 22px;
  background: var(--tone-bg);
  border: 2px solid var(--tone-line);
  border-radius: 16px;
}

.lopq-root .lopq-subscale-title {
  margin: 0 0 6px;
  color: var(--lopq-heading);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
}

.lopq-root .lopq-subscale-score {
  margin: 0 0 2px;
  color: var(--lopq-ink);
  font-size: 1.6rem;
  font-weight: 800;
}

.lopq-root .lopq-subscale-level {
  margin: 0 0 8px;
  color: var(--tone-ink);
  font-weight: 800;
}

.lopq-root .lopq-subscale-text {
  margin: 0;
  color: #3f554a;
}

.lopq-root .lopq-bars {
  display: grid;
  gap: 14px;
}

.lopq-root .lopq-bar-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  font-weight: 700;
}

.lopq-root .lopq-bar-value {
  color: var(--tone-ink);
  white-space: nowrap;
}

.lopq-root .lopq-tally {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
}

.lopq-root .lopq-tally-row {
  display: grid;
  grid-template-columns: 34px 1fr 108px;
  align-items: center;
  gap: 10px;
}

.lopq-root .lopq-tally .lopq-track {
  background: rgba(255, 255, 255, 0.85);
}

.lopq-root .lopq-tally-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #2f6f4a;
  background: #ffffff;
  border: 2px solid #91b99c;
  border-radius: 50%;
  font-weight: 800;
}

.lopq-root .lopq-tally-row.is-top .lopq-tally-letter {
  color: #ffffff;
  background: var(--lopq-green);
  border-color: var(--lopq-green);
}

.lopq-root .lopq-tally-count {
  color: #53665c;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: right;
}

.lopq-root .lopq-detail {
  margin: 18px 0 0;
  padding: 24px;
  background: #ffffff;
  border: 1px solid #dce7df;
  border-left: 6px solid #4d8f68;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(36, 53, 45, 0.07);
}

.lopq-root .lopq-next-steps {
  margin: 22px 0 0;
  padding: 24px;
  color: #3c4f45;
  background: #fff8e7;
  border: 1px solid #ead8a5;
  border-radius: 14px;
}

.lopq-root .lopq-next-steps h3 {
  margin: 0 0 10px;
  color: #4b432f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
}

.lopq-root .lopq-next-steps a {
  font-weight: 800;
  text-decoration-thickness: 2px;
}

.lopq-root .lopq-notice {
  margin: 0 0 18px;
  padding: 18px 22px;
  border-radius: 14px;
  border: 2px solid #e2bf7a;
  background: #fff6e6;
  color: #5a4520;
}

.lopq-root .lopq-notice-title,
.lopq-root .lopq-crisis-title {
  margin: 0 0 6px;
  font-weight: 800;
}

.lopq-root .lopq-crisis {
  margin: 0 0 18px;
  padding: 20px 22px;
  color: #5c2b26;
  background: #fdf0ee;
  border: 2px solid #d98b7c;
  border-radius: 14px;
}

.lopq-root .lopq-crisis-title {
  color: #8a2f22;
  font-size: 1.1rem;
}

.lopq-root .lopq-support-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: 8px;
  vertical-align: middle;
}

.lopq-root a.lopq-support-link {
  display: inline-block;
  padding: 2px 12px;
  color: #ffffff;
  background: #a2402f;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
}

.lopq-root a.lopq-support-link:hover,
.lopq-root a.lopq-support-link:focus {
  color: #ffffff;
  background: #84301f;
}

.lopq-root .lopq-crisis-outro {
  font-weight: 700;
}

/* ---------- worksheets for you ---------- */
.lopq-root .lopq-worksheets {
  margin: 4px 0 0;
  padding: 24px;
  background: #f4f9f5;
  border: 1px solid #d3e5d8;
  border-radius: 16px;
}

.lopq-root .lopq-worksheets-intro {
  color: #3f554a;
}

.lopq-root .lopq-worksheet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0 0;
}

.lopq-root .lopq-worksheet {
  display: flex;
  flex-direction: column;
  padding: 18px 18px 16px;
  background: #ffffff;
  border: 1px solid #dce7df;
  border-top: 4px solid #4d8f68;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(36, 53, 45, 0.06);
}

.lopq-root .lopq-worksheet-book {
  margin: 0 0 6px;
  color: #2f7a50;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.lopq-root .lopq-worksheet-title {
  margin: 0 0 6px;
  padding: 0;
  color: var(--lopq-heading);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: normal;
  text-transform: none;
}

.lopq-root .lopq-worksheet-text {
  flex: 1 1 auto;
  margin: 0 0 14px;
  color: #4a5d53;
  font-size: 0.95rem;
}

.lopq-root a.lopq-worksheet-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  color: var(--lopq-btn-text, #ffffff);
  background: var(--lopq-btn, var(--lopq-green));
  border-radius: var(--lopq-link-radius, 999px);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.lopq-root a.lopq-worksheet-link::after {
  content: "\2197";
  font-weight: 400;
}

.lopq-root a.lopq-worksheet-link:hover,
.lopq-root a.lopq-worksheet-link:focus {
  color: var(--lopq-btn-hover-text, #ffffff);
  background: var(--lopq-btn-hover, var(--lopq-green-dark));
}

.lopq-root a.lopq-worksheet-link:focus-visible {
  outline: 3px solid #d49043;
  outline-offset: 3px;
}

.lopq-root .lopq-worksheets-more {
  margin: 14px 0 0;
  font-weight: 700;
}

.lopq-root .lopq-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- save to care plan ---------- */
.lopq-root .lopq-save {
  margin: 22px 0 0;
  padding: 24px;
  background: #f2effa;
  border: 1px solid #ddd7f3;
  border-radius: 16px;
}

.lopq-root .lopq-save-title {
  margin: 0 0 8px;
  color: #3d3466;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
}

.lopq-root .lopq-save-text {
  color: #3f4a45;
}

.lopq-root .lopq-save-privacy {
  color: #5d6560;
  font-size: 0.9rem;
}

.lopq-root .lopq-save-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.lopq-root .lopq-save-actions .lopq-btn.lopq-btn--primary {
  flex: 0 1 auto;
}

.lopq-root .lopq-save-status p {
  margin: 14px 0 0;
}

.lopq-root .lopq-save-done {
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid #cfe1d1;
  border-radius: 10px;
}

.lopq-root .lopq-save-done a,
.lopq-root .lopq-save-done .lopq-text-btn {
  margin-left: 10px;
  font-weight: 700;
}

.lopq-root .lopq-disclaimer {
  margin: 22px 0 0;
  padding-top: 18px;
  color: var(--lopq-muted);
  border-top: 1px solid #dce6df;
  font-size: 0.92rem;
}

.lopq-root .lopq-disclaimer + .lopq-disclaimer {
  margin-top: 8px;
  padding-top: 0;
  border-top: 0;
}

.lopq-root .lopq-noscript {
  padding: 24px;
  text-align: center;
}

/* ---------- phones ---------- */
@media (max-width: 680px) {
  .lopq-root .lopq-bg {
    padding: 24px 14px 44px;
  }

  .lopq-root .lopq-card,
  .lopq-root .lopq-question {
    border-radius: 16px;
  }

  .lopq-root .lopq-progress {
    padding: 12px 14px;
  }

  .lopq-root .lopq-option {
    gap: 8px;
    padding: 11px;
  }

  .lopq-root .lopq-options--lettered .lopq-option {
    grid-template-columns: 20px 30px 1fr;
  }

  .lopq-root .lopq-tally-row {
    grid-template-columns: 32px 1fr;
  }

  .lopq-root .lopq-tally-count {
    grid-column: 2;
    text-align: left;
  }

  .lopq-root .lopq-actions,
  .lopq-root .lopq-save-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .lopq-root .lopq-btn {
    width: 100%;
  }

  .lopq-root .lopq-block,
  .lopq-root .lopq-detail,
  .lopq-root .lopq-save,
  .lopq-root .lopq-summary,
  .lopq-root .lopq-worksheets {
    padding: 18px;
  }

  .lopq-root .lopq-worksheet-grid {
    grid-template-columns: 1fr;
  }

  .lopq-root .lopq-support-links {
    display: flex;
    margin: 6px 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lopq-root *,
  .lopq-root *::before,
  .lopq-root *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
