/* Riksdagen › Partiernas samsyn — the public pages.

   The page shell (breadcrumbs, header, panels) is statistik.css and the matrix
   and vote list are politics/css/djupdyk.css, shared with the signed-in panel.
   This file only adds what the public page has on top: links instead of
   buttons in the matrix, the lead text, the tables of links, the SamfonyFetch
   call to action and the sign-up dialog. */

.rs-lead {
  max-width: 62rem;
  margin: 0 0 0.5rem;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--brand-color-text, #122033);
}

.rs-updated {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  color: var(--brand-color-text-muted, #5d6c80);
}

/* A matrix cell here is a link to the pair's page. djupdyk.css styles it as a
   block button; centre the number and drop the underline. */
a.dj-heat-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--brand-color-text, #122033);
}

a.dj-heat-cell:focus-visible {
  outline: 2px solid var(--brand-color-accent-strong, #1157bf);
  outline-offset: 2px;
}

.rs-pair-heading {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: var(--brand-font-weight-bold, 700);
  color: var(--brand-color-heading, #0b1627);
}

.rs-panel .dj-detail-title {
  font-size: 0.9rem;
}

.rs-inline-cta {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin: 0.9rem 0 0;
  font-size: 0.85rem;
  color: var(--brand-color-text-muted, #5d6c80);
}

.rs-link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand-color-accent-strong, #1157bf);
  font-weight: var(--brand-font-weight-semibold, 600);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rs-pct {
  margin-left: 0.25rem;
  font-variant-numeric: tabular-nums;
  color: var(--brand-color-text-muted, #5d6c80);
}

.rs-table th,
.rs-table td {
  font-size: 0.9rem;
}

.rs-table th[scope="row"] .dj-dot {
  margin-right: 0.35rem;
  vertical-align: middle;
}

.rs-pair-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 0.4rem 1rem;
}

.rs-pair-links a {
  text-decoration: none;
  font-weight: var(--brand-font-weight-semibold, 600);
}

.rs-pair-links a:hover {
  text-decoration: underline;
}

/* SamfonyFetch, between the data and the method. */
.rs-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  margin-bottom: 1.2rem;
  padding: 1.6rem;
  border: 1px solid #cfe0f6;
  border-radius: 1rem;
  background: linear-gradient(135deg, #f1f7ff 0%, #ffffff 70%);
  box-shadow: 0 14px 30px rgba(16, 24, 40, 0.05);
}

.rs-cta-text {
  flex: 1 1 26rem;
}

.rs-cta-list li {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin-bottom: 0.3rem;
  font-size: 0.92rem;
}

.rs-cta-list .bi {
  color: var(--brand-color-accent-strong, #1157bf);
}

.rs-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.rs-method p {
  max-width: 62rem;
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ── The sign-up dialog ──────────────────────────────────────────────────── */

/* margin: auto is the UA default that centres a modal <dialog>; the site's
   resets take it away. */
.rs-gate {
  margin: auto;
  width: min(28rem, calc(100vw - 2rem));
  padding: 1.6rem;
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 24px 60px rgba(16, 24, 40, 0.25);
  color: var(--brand-color-text, #122033);
}

.rs-gate::backdrop {
  background: rgba(11, 22, 39, 0.45);
}

.rs-gate-close-form {
  position: absolute;
  top: 1rem;
  right: 1rem;
  margin: 0;
}

.rs-gate-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  background: #e8f1fd;
  color: var(--brand-color-accent-strong, #1157bf);
  font-size: 1.2rem;
}

.rs-gate-text {
  font-size: 0.92rem;
  color: var(--brand-color-text-muted, #5d6c80);
}

.rs-gate-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1rem;
}

.rs-gate-actions form {
  margin: 0;
}

.rs-gate .login-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  min-height: 2.75rem;
  border: 1px solid #d3dbe6;
  border-radius: 8px;
  background: #ffffff;
  color: #212529;
  font-weight: var(--brand-font-weight-bold, 700);
}

.rs-gate .login-google-btn:hover,
.rs-gate .login-google-btn:focus-visible {
  border-color: rgba(15, 136, 242, 0.5);
  box-shadow: 0 0 0 0.25rem rgba(15, 136, 242, 0.15);
}

.rs-gate .login-google-btn svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.rs-gate-login {
  align-self: center;
  font-size: 0.85rem;
}
