/* Missions1040: brand colours and fonts. Change them here. */
:root {
  --brand-primary: #13607D;
  --brand-primary-dark: #092d3b;
  --brand-primary-light: #5cc0e6;
  --brand-accent: #C9963F;
  --brand-background: #ffffff;
  --brand-surface: #f9fafb;
  --brand-text-primary: #111827;
  --brand-text-secondary: #6b7280;
  --color-primary: #13607D;
  --color-primary-dark: #092d3b;
  --color-primary-light: #5cc0e6;
  --color-accent: #C9963F;
  --color-surface: #f9fafb;
  --color-text-primary: #111827;
  --color-text-secondary: #6b7280;
  --brand-font-heading: "Libre Franklin", system-ui, sans-serif;
  --brand-font: "Libre Franklin", system-ui, sans-serif;
  --font-heading: "Libre Franklin", system-ui, sans-serif;
  --brand-font-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;
}

body {
  margin: 0;
}

/*
 * Field Report — the tenant-site section system. Source of truth: DESIGN.md.
 *
 * Plain CSS, not Tailwind utilities: the site app's Tailwind build only scans
 * apps/site, so utility classes written in this package were never generated.
 * Every rule is scoped to an `fr-` class so importing this file into the admin
 * app (page preview) cannot restyle the admin UI.
 *
 * Per-org brand values arrive as custom properties from renderSite's brand vars
 * (--brand-primary, --brand-accent, --brand-font-heading, --brand-font-body).
 * The fallbacks below are the DESIGN.md defaults.
 */

.fr {
  --fr-primary: var(--brand-primary, #13607d);
  --fr-primary-hover: var(--brand-primary-dark, #0f4e66);
  --fr-accent: var(--brand-accent, #c9963f);
  --fr-accent-hover: #b7862f;
  --fr-on-accent: #15232b;
  --fr-ink: #15232b;
  --fr-muted: #566770;
  --fr-hairline: #dce4e7;
  --fr-input-border: #aebcc2;
  --fr-surface: #f3f6f7;
  --fr-bg: #ffffff;
  --fr-sans: var(--brand-font-heading, "Libre Franklin"), "Helvetica Neue", Arial, sans-serif;
  --fr-serif: var(--brand-font-body, "Source Serif 4"), Georgia, "Times New Roman", serif;
  --fr-gutter: clamp(20px, 4vw, 48px);
  --fr-section: clamp(64px, 9vw, 120px);

  background: var(--fr-bg);
  color: var(--fr-ink);
  font-family: var(--fr-serif);
  font-size: 1.1875rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  color-scheme: light;
}

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

.fr a {
  color: var(--fr-primary);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.fr a:hover {
  color: var(--fr-primary-hover);
}
.fr :focus-visible {
  outline: 2px solid var(--fr-primary);
  outline-offset: 3px;
}

/* ---------- layout ---------- */

.fr-sec {
  padding: var(--fr-section) 0;
}
.fr-sec--surface {
  background: var(--fr-surface);
}
.fr-sec--give {
  border-top: 3px solid var(--fr-accent);
}
.fr-sec--tight {
  padding: clamp(40px, 6vw, 72px) 0;
}
/* Two plain white sections in a row share one gap instead of stacking two
   full paddings (230px of blank page at desktop). A surface band or the give
   band keeps its own padding, because its tint is what marks the edge. */
.fr-sec:not(.fr-sec--surface):not(.fr-sec--give) + .fr-sec:not(.fr-sec--surface):not(.fr-sec--give) {
  padding-top: calc(var(--fr-section) / 3);
}
.fr-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--fr-gutter);
}
.fr-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px var(--fr-gutter);
}
.fr-c-1-4 {
  grid-column: 1 / span 4;
}
.fr-c-1-5 {
  grid-column: 1 / span 5;
}
.fr-c-1-6 {
  grid-column: 1 / span 6;
}
.fr-c-1-7 {
  grid-column: 1 / span 7;
}
.fr-c-1-10 {
  grid-column: 1 / span 10;
}
.fr-c-6-12 {
  grid-column: 6 / span 7;
}
.fr-c-7-12 {
  grid-column: 7 / span 6;
}
.fr-c-8-12 {
  grid-column: 8 / span 5;
}
.fr-c-9-12 {
  grid-column: 9 / span 4;
}
.fr-c-all {
  grid-column: 1 / -1;
}
.fr-end {
  align-self: end;
}
.fr-center-v {
  align-self: center;
}
.fr-measure {
  max-width: 36em;
}
@media (max-width: 860px) {
  .fr-grid > * {
    grid-column: 1 / -1;
  }
}

/* ---------- type ---------- */

.fr-display,
.fr-h2,
.fr-h3,
.fr-label,
.fr-cap,
.fr-sans {
  font-family: var(--fr-sans);
}
.fr-display {
  font-weight: 700;
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
.fr-h2 {
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
.fr-h3 {
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0;
}
.fr-lede {
  font-size: 1.25rem;
  line-height: 1.55;
  max-width: 34em;
  margin: 24px 0 0;
}
.fr-sub {
  color: var(--fr-muted);
  margin: 16px 0 0;
}
.fr-body p {
  margin: 0 0 1.05em;
}
.fr-body p:last-child {
  margin-bottom: 0;
}
.fr-body--after-heading {
  margin-top: 24px;
}
.fr-label {
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fr-muted);
}
.fr-cap {
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--fr-muted);
  margin-top: 10px;
}
.fr-num {
  font-family: var(--fr-sans);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ---------- buttons ---------- */

.fr-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 36px;
}
.fr .fr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--fr-sans);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.1;
  padding: 0.9em 1.35em;
  border-radius: 6px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.15s ease-out,
    color 0.15s ease-out,
    border-color 0.15s ease-out;
}
.fr .fr-btn--primary {
  background: var(--fr-primary);
  color: #fff;
}
.fr .fr-btn--primary:hover {
  background: var(--fr-primary-hover);
  color: #fff;
}
.fr .fr-btn--give {
  background: var(--fr-accent);
  color: var(--fr-on-accent);
}
.fr .fr-btn--give:hover {
  background: var(--fr-accent-hover);
  color: var(--fr-on-accent);
}
.fr .fr-btn--secondary {
  background: transparent;
  color: var(--fr-primary);
  border-color: var(--fr-primary);
}
.fr .fr-btn--secondary:hover {
  background: var(--fr-surface);
}
.fr .fr-btn--text {
  background: transparent;
  color: var(--fr-primary);
  padding-left: 0;
  padding-right: 0;
}
.fr .fr-btn--text:hover {
  text-decoration: underline;
}
.fr .fr-btn--block {
  width: 100%;
}
.fr .fr-btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ---------- media ---------- */

.fr-fig {
  margin: 0;
}
.fr-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2px;
  background: var(--fr-surface);
  filter: saturate(0.82) contrast(1.04) sepia(0.06);
}
.fr-photo--square {
  aspect-ratio: 1;
}
.fr-figure {
  display: block;
  width: 100%;
  height: auto;
}
.fr-video {
  width: 100%;
  border: 0;
  display: block;
  border-radius: 2px;
  background: var(--fr-surface);
}

/* ---------- rows (programs, testimonials, team) ---------- */

.fr-rows {
  list-style: none;
  margin: 0;
  padding: 0;
}
.fr-row {
  display: grid;
  grid-template-columns: minmax(160px, 38%) 1fr;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--fr-hairline);
}
.fr-row:last-child {
  border-bottom: 1px solid var(--fr-hairline);
}
.fr-row p {
  margin: 0;
  font-size: 1.05rem;
}
.fr-row--media {
  grid-template-columns: 96px 1fr;
  align-items: start;
}
@media (max-width: 860px) {
  .fr-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .fr-row--media {
    grid-template-columns: 72px 1fr;
    gap: 16px;
  }
}

/* ---------- stats ---------- */

.fr-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0 var(--fr-gutter);
  margin-top: 40px;
}
.fr-stat {
  border-top: 1px solid var(--fr-hairline);
  padding-top: 18px;
}
.fr-stat-value {
  font-family: var(--fr-sans);
  font-weight: 700;
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  display: block;
}
.fr-stat-value--word {
  font-size: 1.5rem;
  line-height: 1.2;
}
.fr-stat-label {
  display: block;
  margin-top: 8px;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--fr-muted);
}

/* ---------- quotes ---------- */

.fr-quote {
  margin: 0;
}
.fr-quote p {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.5;
}
.fr-quote--lead p {
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  line-height: 1.4;
}
.fr-quote footer {
  margin-top: 10px;
  font-family: var(--fr-sans);
  font-size: 0.85rem;
  color: var(--fr-muted);
  letter-spacing: 0.02em;
}
.fr-quote footer b {
  color: var(--fr-ink);
  font-weight: 600;
}
.fr-quote--scripture footer {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

/* ---------- giving ---------- */

/* DonationAsk: one panel per frequency. Monthly shows by default; the
   one-time panel shows when it is the URL target (#give-once). No script. */
.fr-give--once {
  display: none;
}
.fr-give--once:target {
  display: block;
}
.fr-give--once:target ~ .fr-give--monthly {
  display: none;
}
/* Segmented control: 6px outside, 4px inside, 3px pad (DESIGN.md Shapes). */
.fr-seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 3px;
  margin: 0 0 16px;
  border: 1px solid var(--fr-hairline);
  border-radius: 6px;
  background: var(--fr-surface);
  font-family: var(--fr-sans);
  font-weight: 600;
  font-size: 0.95rem;
}
.fr .fr-seg a {
  display: block;
  text-align: center;
  padding: 0.55em 0.75em;
  border-radius: 4px;
  color: var(--fr-muted);
  text-decoration: none;
  transition:
    background-color 150ms ease-out,
    color 150ms ease-out;
}
.fr .fr-seg a:hover {
  color: var(--fr-ink);
}
.fr .fr-seg a[aria-current="true"] {
  background: var(--fr-bg);
  color: var(--fr-ink);
}
.fr-amounts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  font-family: var(--fr-sans);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-size: 1.15rem;
}
.fr .fr-amount {
  display: block;
  text-align: center;
  padding: 0.55em 0.5em;
  border: 1px solid var(--fr-input-border);
  border-radius: 6px;
  background: var(--fr-bg);
  color: var(--fr-ink);
  text-decoration: none;
  transition: border-color 150ms ease-out;
}
.fr .fr-amount:hover {
  border-color: var(--fr-primary);
  color: var(--fr-ink);
}
/* Selected amount: a 1px inset gold ring plus a pale gold tint. */
.fr .fr-amount--selected,
.fr .fr-amount--selected:hover {
  border-color: var(--fr-accent);
  outline: 1px solid var(--fr-accent);
  outline-offset: -2px;
  background: #fbf6ec;
}
.fr .fr-amount--selected:focus-visible {
  outline: 2px solid var(--fr-primary);
  outline-offset: 3px;
}
@media (max-width: 860px) {
  .fr-amounts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.fr-fine {
  font-family: var(--fr-sans);
  font-size: 0.85rem;
  color: var(--fr-muted);
  margin: 14px 0 0;
  line-height: 1.45;
}
.fr-goal {
  margin: 0 0 20px;
}
.fr-goal-bar {
  height: 6px;
  background: var(--fr-hairline);
  border-radius: 3px;
  overflow: hidden;
}
.fr-goal-bar span {
  display: block;
  height: 100%;
  background: var(--fr-primary);
}
.fr-goal-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-family: var(--fr-sans);
  font-size: 0.9rem;
  color: var(--fr-muted);
  font-variant-numeric: tabular-nums;
}
.fr-panel {
  border: 1px solid var(--fr-hairline);
  border-top: 3px solid var(--fr-accent);
  border-radius: 6px;
  padding: 28px;
  background: var(--fr-bg);
}

/* ---------- forms ---------- */

.fr-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--fr-sans);
  font-size: 0.95rem;
  margin-bottom: 16px;
}
.fr-field > span {
  font-weight: 600;
}
.fr-input {
  font: inherit;
  padding: 0.75em 0.9em;
  border: 1px solid var(--fr-input-border);
  border-radius: 3px;
  color: var(--fr-ink);
  background: #fff;
  width: 100%;
}
.fr-input:focus {
  outline: 2px solid var(--fr-primary);
  outline-offset: 0;
  border-color: var(--fr-primary);
}

/* ---------- motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .fr-figure--reveal {
    animation: fr-reveal 0.6s ease-out 0.2s both;
  }
  @keyframes fr-reveal {
    from {
      opacity: 0;
    }
  }
}

/* ---------- site chrome (renderSite header and footer) ---------- */

.fr-site-head {
  border-bottom: 1px solid var(--fr-hairline);
  background: var(--fr-bg);
}
.fr-site-head .fr-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}
.fr-brand {
  display: inline-flex;
  align-items: center;
  font-family: var(--fr-sans);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--fr-ink);
  text-decoration: none;
}
.fr .fr-brand {
  color: var(--fr-ink);
  text-decoration: none;
}
.fr-brand img {
  height: 46px;
  width: auto;
  display: block;
}
.fr-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--fr-sans);
  font-weight: 500;
  font-size: 0.95rem;
}
.fr .fr-nav a:not(.fr-btn) {
  color: var(--fr-ink);
  text-decoration: none;
}
.fr .fr-nav a:not(.fr-btn):hover,
.fr .fr-nav a[aria-current="page"]:not(.fr-btn) {
  color: var(--fr-primary);
}
.fr-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.fr-nav-menu {
  display: none;
  position: relative;
}
.fr-nav-menu summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--fr-sans);
  font-weight: 600;
  padding: 0.6em 0.2em;
}
.fr-nav-menu summary::-webkit-details-marker {
  display: none;
}
.fr-nav-menu[open] .fr-nav-panel {
  display: flex;
}
.fr-nav-panel {
  display: none;
  flex-direction: column;
  gap: 4px;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 200px;
  background: var(--fr-bg);
  border: 1px solid var(--fr-hairline);
  border-radius: 6px;
  padding: 8px;
  z-index: 20;
}
.fr .fr-nav-panel a {
  padding: 10px 12px;
  border-radius: 3px;
}
.fr .fr-nav-panel a:hover {
  background: var(--fr-surface);
}
@media (max-width: 860px) {
  .fr-nav-links {
    display: none;
  }
  .fr-nav-menu {
    display: block;
  }
  .fr-brand img {
    height: 38px;
  }
}

.fr-site-foot {
  border-top: 1px solid var(--fr-hairline);
  padding: 56px 0 40px;
  font-family: var(--fr-sans);
  font-size: 0.9rem;
  color: var(--fr-muted);
}
.fr-site-foot .fr-wrap {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px var(--fr-gutter);
}
.fr .fr-site-foot a {
  color: var(--fr-ink);
  text-decoration: none;
}
.fr .fr-site-foot a:hover {
  color: var(--fr-primary);
}
.fr-foot-org {
  grid-column: 1 / span 6;
}
.fr-foot-nav {
  grid-column: 8 / span 5;
}
.fr-foot-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px var(--fr-gutter);
}
@media (max-width: 860px) {
  .fr-foot-org,
  .fr-foot-nav {
    grid-column: 1 / -1;
  }
}
.fr-foot-social {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}
.fr .fr-foot-social a {
  color: var(--fr-muted);
}
.fr-foot-social svg {
  width: 20px;
  height: 20px;
}
.fr-foot-legal {
  grid-column: 1 / -1;
  border-top: 1px solid var(--fr-hairline);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
}

/* A stub giving target (renderSite): the site has nowhere to send a gift yet.
   The Give button is marked, dashed and tagged, and points at the footer note. */
.fr .fr-btn--stub {
  outline: 2px dashed var(--fr-accent);
  outline-offset: 3px;
}
.fr-stub-tag {
  margin-left: 0.5em;
  padding: 1px 6px;
  border-radius: 3px;
  background: var(--fr-bg);
  color: var(--fr-ink);
  font-size: 0.7em;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.fr-giving-stub {
  grid-column: 1 / -1;
  margin: 0;
  padding: 10px 12px;
  border: 1px dashed var(--fr-accent);
  border-radius: 3px;
  background: var(--fr-surface);
  color: var(--fr-ink);
}
/* A static export's contact form with no address to send to (ContactForm). */
.fr-form-stub {
  align-self: start;
  margin: 0;
  padding: 10px 12px;
  border: 1px dashed var(--fr-accent);
  border-radius: 3px;
  background: var(--fr-surface);
  color: var(--fr-ink);
}

/* ---------- compact strip (non-giving calls to action) ---------- */

.fr-strip {
  padding: clamp(40px, 5vw, 64px) 0;
  border-top: 1px solid var(--fr-hairline);
}
.fr-strip-grid {
  align-items: center;
}
.fr-strip-actions .fr-actions {
  margin-top: 0;
  justify-content: flex-end;
}
.fr-h2--sm {
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
}
.fr-c-1-2 {
  grid-column: 1 / span 2;
}
.fr-c-3-8 {
  grid-column: 3 / span 6;
}
.fr-c-9-12 {
  grid-column: 9 / span 4;
}
@media (max-width: 860px) {
  .fr-strip-grid > .fr-c-1-2 {
    grid-column: 1 / span 1;
    max-width: 120px;
  }
  .fr-strip-actions .fr-actions {
    justify-content: flex-start;
  }
}

/* ---------- donor portal (apps/site /portal) ---------- */

.fr-portal-head {
  padding: clamp(40px, 6vw, 72px) 0 0;
}
.fr-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  margin-top: 28px;
  border-bottom: 1px solid var(--fr-hairline);
  font-family: var(--fr-sans);
  font-weight: 500;
  font-size: 0.95rem;
}
.fr .fr-tabs a {
  color: var(--fr-muted);
  text-decoration: none;
  padding: 12px 0;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
}
.fr .fr-tabs a:hover {
  color: var(--fr-ink);
}
.fr .fr-tabs a[aria-current="page"] {
  color: var(--fr-ink);
  border-bottom-color: var(--fr-primary);
}
.fr-portal-body {
  padding: 40px 0 clamp(64px, 9vw, 120px);
}
.fr-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.fr-table-wrap {
  overflow-x: auto;
}
.fr-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--fr-sans);
  font-size: 0.95rem;
}
.fr-table th {
  text-align: left;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fr-muted);
  padding: 0 16px 10px 0;
  border-bottom: 1px solid var(--fr-hairline);
  white-space: nowrap;
}
.fr-table td {
  padding: 14px 16px 14px 0;
  border-bottom: 1px solid var(--fr-hairline);
  vertical-align: top;
}
.fr-table .fr-num {
  white-space: nowrap;
  font-weight: 400;
}
.fr-tag {
  display: inline-block;
  font-family: var(--fr-sans);
  font-weight: 600;
  font-size: 0.78rem;
  line-height: 1;
  padding: 0.4em 0.6em;
  border-radius: 3px;
  background: var(--fr-surface);
  color: var(--fr-ink);
  white-space: nowrap;
}
.fr-tag--ok {
  background: #e8f3ec;
  color: #1f5a38;
}
.fr-tag--warn {
  background: #fbf1e1;
  color: #7a4c0b;
}
.fr-tag--bad {
  background: #fbeae9;
  color: #8e1d17;
}
.fr-card {
  border: 1px solid var(--fr-hairline);
  border-radius: 6px;
  padding: 24px;
  background: var(--fr-bg);
}
/* Stacked cards (settings) get space between them; cards in a grid don't. */
.fr-stack > .fr-card + .fr-card {
  margin-top: 24px;
}
.fr-card--give {
  border-top: 3px solid var(--fr-accent);
}
.fr-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 24px;
}
.fr-select {
  font: inherit;
  font-family: var(--fr-sans);
  padding: 0.55em 0.8em;
  border: 1px solid var(--fr-input-border);
  border-radius: 3px;
  background: #fff;
  color: var(--fr-ink);
}
.fr-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-family: var(--fr-sans);
  font-size: 0.95rem;
  margin-bottom: 16px;
}
.fr-check input {
  margin-top: 3px;
  accent-color: var(--fr-primary);
}
.fr-note {
  font-family: var(--fr-sans);
  font-size: 0.9rem;
  margin: 12px 0 0;
}
.fr-note--ok {
  color: #1f5a38;
}
.fr-note--bad {
  color: #8e1d17;
}
.fr-field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  gap: 0 16px;
}
.fr-empty {
  font-family: var(--fr-sans);
  color: var(--fr-muted);
  padding: 32px 0;
  border-top: 1px solid var(--fr-hairline);
  border-bottom: 1px solid var(--fr-hairline);
}

/* ---------- gallery ---------- */
.fr-gallery {
  display: grid;
  grid-template-columns: repeat(var(--fr-gallery-cols, 2), minmax(0, 1fr));
  gap: 40px var(--fr-gutter);
}
/* DESIGN.md Layout: at 860px and below every block is one column. */
@media (max-width: 860px) {
  .fr-gallery {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) { .fr-site-head .fr-stub-tag { display: none; } }
