/* TOPHEADS — share-card block for the standalone quizzes.
 *
 * Colours are the brand tokens (navy #1A1A2E, champagne #C8A96E), written out
 * rather than inherited from each quiz's --navy: those pages still carry the
 * historical #1A2744 drift, and a new surface should be on canon.
 *
 * Typography inherits from the host quiz so the block reads as part of the page.
 */

.qshare {
  margin: 28px 0 8px;
  padding: 22px 22px 20px;
  border: 1px solid #ECEAE3;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(26, 26, 46, 0.04);
  text-align: left;
}

.qshare-title {
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #7A766E;
  font-weight: 600;
  margin-bottom: 12px;
}

.qshare-note {
  font-size: 13px;
  line-height: 1.6;
  color: #56524B;
  margin: 12px 0 14px;
  max-width: 620px;
}

.qshare-err {
  font-size: 12.5px;
  line-height: 1.55;
  color: #8A3B33;
  margin-top: 10px;
}

.qshare-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 11px 20px;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid #1A1A2E;
  background: #fff;
  color: #1A1A2E;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.2px;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.qshare-btn:hover { background: #FAF9F5; }
.qshare-btn:focus-visible { outline: 2px solid #C8A96E; outline-offset: 2px; }
.qshare-btn[disabled] { opacity: 0.6; cursor: wait; }

.qshare-btn--primary { background: #1A1A2E; color: #fff; }
.qshare-btn--primary:hover { background: #2E2E48; box-shadow: 0 4px 14px rgba(26, 26, 46, 0.18); }

.qshare-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

.qshare-seg {
  display: inline-flex;
  border: 1px solid #ECEAE3;
  border-radius: 10px;
  overflow: hidden;
  background: #FAF9F5;
  margin-bottom: 14px;
}

.qshare-seg-btn {
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 9px 14px;
  min-height: 44px;
  border: none;
  background: transparent;
  color: #7A766E;
  cursor: pointer;
}

.qshare-seg-btn[aria-pressed="true"] { background: #1A1A2E; color: #fff; }
.qshare-seg-btn:focus-visible { outline: 2px solid #C8A96E; outline-offset: -2px; }

.qshare-card {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  border: 1px solid #ECEAE3;
  border-radius: 12px;
  background: #1A1A2E;
}

.qshare-text {
  width: 100%;
  box-sizing: border-box;
  margin-top: 16px;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.6;
  color: #2B2A33;
  border: 1px solid #ECEAE3;
  border-radius: 10px;
  padding: 12px 14px;
  background: #FAF9F5;
  resize: vertical;
  min-height: 132px;
}

.qshare-text:focus { outline: none; border-color: #C8A96E; }

.qshare-link {
  font-family: inherit;
  font-size: 13px;
  color: #7A766E;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}

.qshare-link:hover { color: #1A1A2E; }

/* The quizzes hide their chrome when printed; the share block is screen-only
   for the same reason — a PDF has nothing to share to. */
@media print { .qshare { display: none !important; } }
