/* One card per setting. Shared by the public guide and the admin preview. */

.wrap-read { width: min(44rem, calc(100% - 2rem)); margin-inline: auto; }

.setting-cards {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.setting-card {
  background: var(--bg-elev, #FFFFFF);
  color: var(--ink, #111827);
  border: 1px solid var(--line, #D1D5DB);
  padding: 1rem;
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  overflow-wrap: break-word;
}
.setting-card:target { background: #E8EEF5; }
.setting-card h3 {
  font-size: 1.25rem;
  line-height: 1.5;
  margin: 0 0 0.5rem;
  color: var(--ink, #111827);
}
.setting-card h4,
.path .label {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.5;
  margin: 0 0 0.35rem;
  color: var(--ink, #111827);
}
.card-head { margin: 0 0 1rem; }
.badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0 0;
}
.verdict-badge {
  display: inline-block;
  margin: 0.5rem 0 0;
  padding: 0.35rem 0.65rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  border-radius: 0.25rem;
}
.badge-row .verdict-badge { margin: 0; }
/* Quiet fact. Navy text on the page surface. Not a verdict colour. */
.fact-pill {
  display: inline-block;
  margin: 0;
  padding: 0.15rem 0.55rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  color: #1E3A5F;
  background: #F6F7F9;
  border: 1px solid #D1D5DB;
  border-radius: 999px;
}
/* Text on a tint. Contrast is checked from these values (WCAG AA, 4.5:1). */
.verdict-badge.verdict-safe { background: #E8F5EE; color: #166534; }
.verdict-badge.verdict-lose { background: #FEF3C7; color: #92400E; }
.verdict-badge.verdict-no { background: #FDECEC; color: #991B1B; }
.verdict-badge.verdict-action { background: #F6F7F9; color: #1E3A5F; }
.action-line { font-size: 1rem; line-height: 1.5; margin: 0 0 1rem; color: #111827; }

.card-split { display: grid; gap: 1rem; margin: 0 0 1rem; }
.card-split > * { min-width: 0; }
.setting-card { container-type: inline-size; }
/* Two columns only when each one is at least 18rem (18 + 18 + 1rem gap). */
@container (min-width: 37rem) {
  .card-split { grid-template-columns: minmax(18rem, 1fr) minmax(18rem, 1fr); }
}

.setting-card section { margin: 0 0 1rem; }
.setting-card section:last-child { margin-bottom: 0; }
.setting-card ul,
.setting-card ol {
  margin: 0.25rem 0 0;
  padding-left: 1.25rem;
  font-size: 1rem;
  line-height: 1.5;
}
.setting-card li { margin: 0.35rem 0; }
.setting-card p { font-size: 1rem; line-height: 1.5; }
.setting-card summary {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  min-height: 44px;
  padding: 0.4rem 0;
  cursor: pointer;
}
.back-review a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 1rem;
}
.vary { margin: 0; }
.owner-reports {
  margin: 0.75rem 0 0;
  padding: 0.75rem 1rem;
  background: #F6F7F9;
  border: 1px solid #1E3A5F;
  font-size: 1rem;
  line-height: 1.5;
}
.owner-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: #1E3A5F;
}
.owner-reports ul { margin: 0.25rem 0 0; }
.owner-reports a { font-weight: 700; }
.preview-banner {
  background: #FEF3C7;
  color: #92400E;
  border: 2px solid #92400E;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 1rem;
}
.back-review { margin: 0 0 1rem; }

.device-target,
.concerns,
.concern-list p,
.concern-list a,
.path-note {
  font-size: 1rem;
  line-height: 1.5;
}
.device-target { margin: 0 0 1rem; }
.concerns { margin: 0 0 1.5rem; max-width: 100%; }
.concerns h2 { font-size: 1.5rem; line-height: 1.3; margin: 0 0 0.75rem; }
.concern-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  max-width: 100%;
}
.concern {
  background: #FFFFFF;
  color: #111827;
  border: 1px solid #D1D5DB;
  scroll-margin-top: 1.25rem;
  max-width: 100%;
}
.concern summary {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  padding: 0.55rem 0.85rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  color: #111827;
  cursor: pointer;
  list-style: none;
  overflow-wrap: break-word;
}
.concern summary::-webkit-details-marker,
.concern summary::marker { display: none; content: ""; }
.concern summary::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid #1E3A5F;
  border-bottom: 2px solid #1E3A5F;
  transform: rotate(-45deg);
  flex: none;
  position: relative;
  top: -0.05rem;
}
.concern[open] summary::before {
  transform: rotate(45deg);
  top: -0.12rem;
}
.concern-body {
  padding: 0 0.85rem 0.75rem 2.15rem;
  color: #4B5563;
  font-size: 1rem;
  line-height: 1.5;
  overflow-wrap: break-word;
}
.concern-body p { margin: 0 0 0.35rem; font-size: 1rem; line-height: 1.5; color: #4B5563; }
.concern-body ul { margin: 0; padding: 0 0 0 1.1rem; }
.concern-body li { margin: 0; }
.concern-body a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 1rem;
  line-height: 1.5;
}
.path-note { margin: 0.35rem 0 0.75rem; }

#concerns,
.setting-card {
  scroll-margin-top: 1.25rem;
}
.back-to-list {
  margin: 0.75rem 0 0;
  font-size: 1rem;
  line-height: 1.5;
}
.back-to-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 1rem;
  font-weight: 500;
}
.all-settings {
  position: fixed;
  z-index: 5;
  right: calc(1rem + env(safe-area-inset-right));
  bottom: calc(1rem + env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0.35rem 0.9rem;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.5;
  color: #FFFFFF;
  background: #1E3A5F;
  border: 2px solid #1E3A5F;
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(30, 58, 95, 0.22);
  text-decoration: none;
  white-space: nowrap;
}
.all-settings:hover,
.all-settings:focus-visible {
  color: #FFFFFF;
  background: #16304F;
  border-color: #16304F;
  outline-color: #111827;
}
@media (max-width: 600px) {
  .all-settings {
    position: static;
    right: auto;
    bottom: auto;
    margin: 1rem 0 0;
  }
}
body.guide-page {
  padding-top: env(safe-area-inset-top);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
body.guide-page .wrap-read {
  padding-bottom: calc(44px + 1rem + env(safe-area-inset-bottom));
}
body.guide-page .site-footer {
  padding-bottom: calc(2rem + 44px + 1rem + env(safe-area-inset-bottom));
}
