/* =========================
   RICARDO FREITAS — Editorial System
   Spec: Anton / Inter / IBM Plex Mono
   Colors: Ink #1A1A1A, Paper #F2F2EF, Accent #9E1C1C
   Grid: max content 1320, site 1440, outer margins 24/48/96
   Spacing: 8px system, section ~144px (desktop)
   ========================= */

/* 1) Tokens */
:root {
  /* Colors */
  --rf-ink: #1A1A1A;
  --rf-paper: #F2F2EF;
  --rf-red: #9E1C1C;
  --rf-mid: #8C8C8C;
  --rf-line: #D6D6D6;

  /* Fonts */
  --rf-font-display: "Anton", Impact, "Arial Black", sans-serif;
  --rf-font-body: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --rf-font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Type sizes (desktop targets) */
  --rf-base: 16px;

  /* Layout */
  --rf-max-content: 1320px;
  --rf-max-site: 1440px;

  /* Outer margins (gutter externo) */
  --rf-outer-mobile: 24px;  /* 20–24 */
  --rf-outer-tablet: 48px;
  --rf-outer-desktop: 96px;

  /* Inner gutter between columns */
  --rf-gutter-mobile: 16px;
  --rf-gutter-tablet: 20px;
  --rf-gutter-desktop: 24px;

  /* Spacing scale (8px system) */
  --rf-8: 8px;
  --rf-16: 16px;
  --rf-24: 24px;
  --rf-32: 32px;
  --rf-48: 48px;
  --rf-64: 64px;
  --rf-96: 96px;
  --rf-128: 128px;
  --rf-144: 144px; /* section spacing recommended */
  --rf-160: 160px;

  /* UI */
  --rf-radius: 0px; /* no radius */
  --rf-shadow: none; /* no shadows */
}

/* 2) Base / Reset-ish */
html { font-size: var(--rf-base); }
body.rf {
  background: var(--rf-paper);
  color: var(--rf-ink);
  font-family: var(--rf-font-body);
  font-weight: 400;
  line-height: 1.65; /* 1.55–1.7 */
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { border-radius: var(--rf-radius) !important; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: rgba(158, 28, 28, 0.18); }

/* No shadows anywhere (Bootstrap sometimes adds) */
.btn, .offcanvas, .dropdown-menu, .modal-content, .card { box-shadow: var(--rf-shadow) !important; }

/* 3) Container system (max site + outer margins)
   Use .container as normal in HTML; this overrides width/padding to match spec. */
.container {
  max-width: var(--rf-max-site);
  padding-left: var(--rf-outer-mobile);
  padding-right: var(--rf-outer-mobile);
}

/* Inner content width: keep reading width within 1320 on large screens */
@media (min-width: 992px) {
  .container { padding-left: var(--rf-outer-desktop); padding-right: var(--rf-outer-desktop); }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  .container { padding-left: var(--rf-outer-tablet); padding-right: var(--rf-outer-tablet); }
}

/* Bootstrap row gutter override to match spec */
.row { --bs-gutter-x: var(--rf-gutter-mobile); }
@media (min-width: 768px) { .row { --bs-gutter-x: var(--rf-gutter-tablet); } }
@media (min-width: 992px) { .row { --bs-gutter-x: var(--rf-gutter-desktop); } }

/* 4) Typography scale (mobile-first with desktop targets) */
h1, h2 {
  font-family: var(--rf-font-display);
  font-weight: 400; /* Anton */
  text-transform: uppercase;
  letter-spacing: -0.02em; /* -0.02 to 0 */
  line-height: 1.0; /* 0.95–1.05 */
  margin: 0;
}

h3, h4, h5, h6 {
  font-family: var(--rf-font-body);
  letter-spacing: 0;
  margin: 0;
}

h3 {
  font-weight: 600; /* Inter semibold */
  line-height: 1.2;
}

/* Size targets:
   H1 96–120 desktop, H2 56–72 desktop, H3 28–32 desktop
   Use clamp to behave on mobile without breaking layout */
.rf h1.display-4 {
  font-size: clamp(3.25rem, 7.5vw, 7.5rem); /* ~52px -> 120px */
}

.rf h2 {
  font-size: clamp(2.25rem, 5vw, 4.5rem); /* ~36px -> 72px */
}

.rf h3.h4, /* featured title */
.rf h3 {
  font-size: clamp(1.5rem, 2.2vw, 2rem); /* 24 -> 32 */
}

/* Body sizes */
.rf p, .rf li, .rf a, .rf button {
  font-size: clamp(1rem, 0.35vw + 0.95rem, 1.125rem); /* 16 -> 18 */
}

/* Small */
.small, small {
  font-size: clamp(0.8125rem, 0.2vw + 0.78rem, 0.875rem); /* 13 -> 14 */
}

/* Mono meta */
.rf .rf-meta,
.rf .rf-project-index,
.rf .rf-project-meta {
  font-family: var(--rf-font-mono);
  font-weight: 400;
  font-size: clamp(0.6875rem, 0.15vw + 0.66rem, 0.75rem); /* 11 -> 12 */
  line-height: 1.4;
  letter-spacing: 0.08em; /* captions/labels caps */
  text-transform: uppercase;
}

/* Utility: tracking for labels/caps */
.tracking-wide { letter-spacing: 0.12em; text-transform: uppercase; }

/* 5) Dividers / Borders */
.border-top, .border-bottom, .rf-line {
  border-color: var(--rf-line) !important;
}
hr { border-color: var(--rf-line); opacity: 1; }

/* 6) Spacing rhythm */
.pt-header { padding-top: 72px; } /* header fixed height baseline */
@media (min-width: 992px) { .pt-header { padding-top: 80px; } }

/* Anchors not hidden under fixed header */
:target { scroll-margin-top: 96px; }

/* Sections: mobile tighter, desktop ~144px */
.rf-section { padding-top: var(--rf-64); padding-bottom: var(--rf-64); }
@media (min-width: 992px) {
  .rf-section { padding-top: var(--rf-144); padding-bottom: var(--rf-144); }
}

/* Title -> content spacing */
.rf .rf-title-gap { margin-bottom: var(--rf-32); }
@media (min-width: 992px) { .rf .rf-title-gap { margin-bottom: var(--rf-48); } }

/* Paragraph spacing */
.rf p { margin-bottom: var(--rf-16); }
.rf p:last-child { margin-bottom: 0; }

/* 7) Links / UI */
.rf a {
  text-decoration: none;
  color: var(--rf-ink);
}
.rf a:hover {
  color: var(--rf-red);
}

/* Visible focus (a11y) */
.rf a:focus-visible,
.rf button:focus-visible {
  outline: 2px solid var(--rf-red);
  outline-offset: 3px;
}

/* Header */
.rf-header {
  background: var(--rf-paper) !important;
  border-bottom: 1px solid var(--rf-line) !important;
}
.rf-header .navbar {
  min-height: 56px; /* spec 56–64 */
}
@media (min-width: 768px) {
  .rf-header .navbar { min-height: 64px; }
}

.rf-brand {
  font-family: var(--rf-font-body);
  font-weight: 600; /* Inter semibold */
  font-size: 0.875rem; /* 14 */
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rf-ink);
}
.rf-brand:hover { color: var(--rf-ink); }

.rf-menu-btn {
  border: 0;
  background: transparent;
  padding: 0;
  font-family: var(--rf-font-body);
  font-weight: 600;
  font-size: 0.875rem; /* 14 */
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rf-ink);
}
.rf-menu-btn:hover { color: var(--rf-red); }

/* Offcanvas: no shadows, lines as dividers */
.offcanvas {
  background: var(--rf-paper);
  color: var(--rf-ink);
  border-left: 1px solid var(--rf-line);
}
.offcanvas-header { border-bottom: 1px solid var(--rf-line) !important; }
.btn-close { filter: none; opacity: 0.6; }
.btn-close:hover { opacity: 1; }

/* Nav links in offcanvas */
.rf-navlink {
  padding-left: 0;
  padding-right: 0;
  font-family: var(--rf-font-body);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rf-ink);
}
.rf-navlink:hover { color: var(--rf-red); text-decoration: underline; text-decoration-color: var(--rf-red); text-underline-offset: 4px; }

/* CTA principal (editorial) — aplica em .rf-cta */
.rf-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--rf-8);
  padding: 10px 14px;
  border: 1px solid var(--rf-line);
  background: transparent;
  color: var(--rf-ink);
  font-family: var(--rf-font-body);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rf-cta::after {
  content: "—";
  color: var(--rf-red);
  transform: translateY(-1px);
}

.rf-cta:hover {
  border-color: var(--rf-ink);
  color: var(--rf-ink);
}
.rf-cta:hover::after { content: "—"; color: var(--rf-red); }

/* 8) Hero bits */
.rf-mark {
  color: var(--rf-red); /* accent only */
  font-size: 1.25rem;
  line-height: 1;
}

/* Keep long text off Anton */
.rf-lead, .rf-about, .rf-final {
  font-family: var(--rf-font-body);
  font-weight: 400;
  letter-spacing: 0;
  max-width: 52ch; /* editorial reading */
}
@media (max-width: 575.98px) {
  .rf-lead, .rf-about, .rf-final { max-width: 36ch; }
}

.rf-lead { color: var(--rf-ink); line-height: 1.55; }

/* 9) Projects list (editorial) */
.rf-projects {
  border-top: 1px solid var(--rf-line);
}

.rf-project {
  border-bottom: 1px solid var(--rf-line);
}

/* Titles in list: Inter 16–18, index mono 12, hover red line */
.rf-project-link {
  display: grid;
  grid-template-columns: 3.5rem 1fr auto;
  gap: var(--rf-24);
  align-items: baseline;
  padding: var(--rf-16) 0; /* list items 12–16px visual density */
  color: var(--rf-ink);
  position: relative;
}

.rf-project-title {
  font-family: var(--rf-font-body);
  font-weight: 400;
  font-size: clamp(1rem, 0.35vw + 0.95rem, 1.125rem); /* 16–18 */
  line-height: 1.55;
}

.rf-project-meta {
  color: var(--rf-mid);
}

/* Hover accent line (thin red) */
.rf-project-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 10px;
  width: 0;
  height: 1px;
  background: var(--rf-red);
  transition: width 160ms ease;
}

.rf-project-link:hover::after,
.rf-project-link:focus-visible::after {
  width: 48px;
}

@media (max-width: 575.98px) {
  .rf-project-link {
    grid-template-columns: 2.75rem 1fr;
    gap: var(--rf-16);
    row-gap: 6px;
  }
  .rf-project-meta { grid-column: 2 / -1; }
}

/* 10) Featured project */
.rf-featured-media {
  border: 1px solid var(--rf-line);
  background: #e9e9e6;
}
.rf-featured h3, .rf-featured .h4 { color: var(--rf-ink); }

/* 11) Principles / method */
.rf-principles { display: grid; gap: var(--rf-32); }
@media (min-width: 992px) { .rf-principles { gap: var(--rf-48); } }

.rf-principle {
  padding-top: var(--rf-24);
  border-top: 1px solid var(--rf-line);
}
.rf-principle:first-child { padding-top: 0; border-top: 0; }

.rf-principle p { color: var(--rf-mid); }

/* 12) Interruption module (one disruptive element) */
.rf-interrupt-word {
  font-family: var(--rf-font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.95;
  font-size: clamp(3rem, 12vw, 7.5rem);
  color: var(--rf-ink);
}

.rf-interrupt-word::after {
  content: "";
  display: block;
  width: 64px;
  height: 2px;
  background: var(--rf-red);
  margin: var(--rf-24) auto 0;
}

/* 13) Services list */
.rf-services li {
  padding: 12px 0; /* 12–16 */
  border-top: 1px solid var(--rf-line);
}
.rf-services li:first-child { border-top: 0; padding-top: 0; }

/* 14) Footer */
footer {
  background: var(--rf-paper);
}
.rf-footer-link {
  font-family: var(--rf-font-body);
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--rf-ink);
}
.rf-footer-link:hover { color: var(--rf-red); text-decoration: underline; text-decoration-color: var(--rf-red); text-underline-offset: 4px; }

/* 15) Optional: controlled texture / grunge (apply as a class to a block)
   Use on borders / small areas only (4–10% opacity), never full-page. */
.rf-grunge {
  position: relative;
}
.rf-grunge::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.06; /* 4–10% */
  mix-blend-mode: multiply;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(26,26,26,0.55) 0 1px, transparent 2px),
    radial-gradient(circle at 70% 60%, rgba(26,26,26,0.45) 0 1px, transparent 2px),
    radial-gradient(circle at 40% 80%, rgba(26,26,26,0.35) 0 1px, transparent 2px);
  background-size: 140px 140px;
  background-repeat: repeat;
}

/* Ensure pseudo texture sits under content */
.rf-grunge > * { position: relative; }

/* Section labels (caps) — Inter UI */
.rf-label {
  font-family: var(--rf-font-body);
  font-weight: 600;
  font-size: clamp(0.8125rem, 0.2vw + 0.78rem, 0.875rem); /* 13–14 */
  letter-spacing: 0.12em; /* +0.08 a +0.14 */
  text-transform: uppercase;
  color: var(--rf-mid);
  margin: 0;
}

/* Display H2 helper */
.rf-display-2 {
  font-family: var(--rf-font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.0;
  font-size: clamp(2.25rem, 5vw, 4.5rem); /* 56–72 desktop target-ish */
  margin: 0;
}

/* H3 helper */
.rf-h3 {
  font-family: var(--rf-font-body);
  font-weight: 600;
  line-height: 1.2;
  font-size: clamp(1.75rem, 2.2vw, 2rem); /* ~28–32 */
  margin: 0;
}

/* Project buttons should look like links (not buttons) */
.rf-project-btn {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: var(--rf-16) 0;
  cursor: pointer;
}

/* Modal styling: paper/ink/lines, no shadows, no radius */
.rf-modal {
  background: var(--rf-paper);
  color: var(--rf-ink);
  border: 1px solid var(--rf-line);
  border-radius: 0;
  box-shadow: none;
}

.modal-header, .modal-footer {
  border-color: var(--rf-line) !important;
}

.modal-header {
  align-items: flex-start;
  gap: var(--rf-24);
}

/* Optional: slightly tighter modal padding on mobile */
@media (max-width: 575.98px) {
  .modal-body { padding: 16px; }
  .modal-header, .modal-footer { padding: 16px; }
}

/* Logo image in header */
.rf-logo-link { display: inline-flex; align-items: center; }
.rf-logo {
  height: 75px; /* ajusta conforme o teu logo */
  width: auto;
  display: block;
}

/* HERO background image */
.rf-hero {
  position: relative;
  background:
    /*linear-gradient(90deg, rgba(242,242,239,0.92) 20%, rgba(242,242,239,0.86) 80%, rgba(242,242,239,0.96) 100%),*/
    url("../img/hero.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Optional: a bit more height for hero without changing layout */
@media (min-width: 768px) {
  .rf-hero { min-height: 70vh; display: flex; align-items: flex-end; }
}

/* Project image cards (clickable, no button look) */
.rf-project-card {
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.rf-project-thumb {
  display: block;
  border: 1px solid var(--rf-line);
  background: #e9e9e6;
}

.rf-project-caption {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 8px 12px;
  align-items: baseline;
  padding-top: 12px;
}

@media (min-width: 992px) {
  .rf-project-caption { grid-template-columns: 3.5rem 1fr; }
}

/* Place meta on a new line in the caption */
.rf-project-caption .rf-project-meta {
  grid-column: 2 / -1;
  color: var(--rf-mid);
}

/* Hover micro-accent (thin red line) */
.rf-project-card:focus-visible { outline: 2px solid var(--rf-red); outline-offset: 3px; }
.rf-project-thumb { position: relative; overflow: hidden; }
.rf-project-thumb::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--rf-red);
  transition: width 160ms ease;
}
.rf-project-card:hover .rf-project-thumb::after,
.rf-project-card:focus-visible .rf-project-thumb::after {
  width: 48px;
}

/* Featured slideshow controls more minimal */
.rf-carousel .rf-carousel-control {
  width: 48px;
  opacity: 0.7;
}
.rf-carousel .rf-carousel-control:hover { opacity: 1; }

/* Make carousel icons ink-like (Bootstrap icons are white by default) */
.rf-carousel .carousel-control-prev-icon,
.rf-carousel .carousel-control-next-icon {
  filter: invert(1); /* turns white into black-ish */
  opacity: 0.9;
}

/* Ensure modals match system (if not already in your CSS) */
.rf-modal{
  background: var(--rf-paper);
  color: var(--rf-ink);
  border: 1px solid var(--rf-line);
  box-shadow: none;
  border-radius: 0;
}
.modal-header,.modal-footer{ border-color: var(--rf-line)!important; }

/* =========================
   Hamburger → X (editorial)
   ========================= */

.rf-hamburger {
  width: 28px;
  height: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.rf-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--rf-ink);
  transition:
    transform 180ms ease,
    opacity 120ms ease,
    background-color 120ms ease;
  transform-origin: center;
}

/* Hover: acento subtil */
.rf-hamburger:hover span {
  background: var(--rf-red);
}

/* Estado ABERTO — Bootstrap adiciona .show ao offcanvas
   Usamos o seletor :has() (suportado nos browsers modernos) */
body:has(.offcanvas.show) .rf-hamburger span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

body:has(.offcanvas.show) .rf-hamburger span:nth-child(2) {
  opacity: 0;
}

body:has(.offcanvas.show) .rf-hamburger span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Acento vermelho só quando aberto */
body:has(.offcanvas.show) .rf-hamburger span {
  background: var(--rf-red);
}

/* Foco visível (a11y) */
.rf-hamburger:focus-visible {
  outline: 2px solid var(--rf-red);
  outline-offset: 4px;
}

/* X editorial no offcanvas (mesma linguagem do hamburger) */
.rf-close {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  position: relative;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.rf-close span {
  position: absolute;
  width: 22px;
  height: 2px;
  background: var(--rf-ink);
  transition: background-color 120ms ease, transform 180ms ease;
  transform-origin: center;
}

/* forma do X */
.rf-close span:nth-child(1) { transform: rotate(45deg); }
.rf-close span:nth-child(2) { transform: rotate(-45deg); }

/* hover: acento */
.rf-close:hover span { background: var(--rf-red); }

/* foco visível */
.rf-close:focus-visible {
  outline: 2px solid var(--rf-red);
  outline-offset: 4px;
}

/* opcional: quando o offcanvas está aberto, o X fica em vermelho (consistente com hamburger aberto) */
body:has(.offcanvas.show) .rf-close span { background: var(--rf-red); }

/* Manifesto — Inter 600 CAPS, 3/4 do tamanho anterior */
.rf-section .rf-manifesto {
  font-family: var(--rf-font-body); /* Inter */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rf-ink);

  /* ⬇️ 3/4 do tamanho anterior */
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);

  line-height: 1.2;

  max-width: 56ch;
  margin: 0;
}
@media (max-width: 575.98px) {
  .rf-section .rf-manifesto {
    font-size: clamp(1.15rem, 4.5vw, 1.5rem);
    max-width: 42ch;
  }
}

/* Contacto — módulo mais compacto e com conteúdo agrupado */
.rf-contact {
  /* reduz o vazio deste módulo (não mexe nos outros) */
  padding-top: var(--rf-96);
  padding-bottom: var(--rf-96);
}

@media (min-width: 992px) {
  .rf-contact {
    padding-top: var(--rf-128);
    padding-bottom: var(--rf-128);
  }
}

/* reduz o display só aqui (para não esmagar o layout) */
.rf-contact .rf-display-2 {
  font-size: clamp(2.25rem, 4.2vw, 4rem);
}

/* bloco da direita: alinha visualmente com o título */
.rf-contact-block {
  margin-top: var(--rf-32); /* aproxima do título sem ficar colado */
  max-width: 52ch;
}

@media (min-width: 992px) {
  .rf-contact-block { margin-top: var(--rf-48); }
}

/* Contacto — alinhar bloco à direita no desktop */
@media (min-width: 992px) {
  .rf-contact .rf-contact-block {
    margin-left: auto;      /* empurra o bloco para a direita */
    text-align: right;      /* alinha texto à direita */
  }
}

/* Accordion editorial */
.rf-accordion .accordion-item {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--rf-line);
}
.rf-accordion .accordion-item:last-child {
  border-bottom: 1px solid var(--rf-line);
}

.rf-accordion .accordion-button {
  background: transparent;
  color: var(--rf-ink);
  font-family: var(--rf-font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 12px 0; /* 12–16 */
  box-shadow: none;
}

.rf-accordion .accordion-button:focus {
  box-shadow: none;
}

.rf-accordion .accordion-button:not(.collapsed) {
  color: var(--rf-ink);
}

.rf-accordion .accordion-button::after {
  /* ícone + / — minimal (sem svg) */
  background-image: none;
  content: "+";
  font-family: var(--rf-font-mono);
  color: var(--rf-mid);
  transform: none;
  width: auto;
  height: auto;
  margin-left: auto;
}

.rf-accordion .accordion-button:not(.collapsed)::after {
  content: "—";
  color: var(--rf-red);
}

.rf-accordion .accordion-body {
  padding: 0 0 16px 0;
  color: var(--rf-mid);
  font-family: var(--rf-font-body);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.65;
}

/* Footer socials — ícones editoriais */
.rf-socials {
  display: flex;
  gap: 16px;
}

.rf-social {
  display: inline-flex;
  width: 18px;
  height: 18px;
  color: var(--rf-ink);
}

.rf-social svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
  transition: color 0.15s ease;
}

.rf-social:hover {
  color: var(--rf-red);
}

/* foco acessível */
.rf-social:focus-visible {
  outline: 2px solid var(--rf-red);
  outline-offset: 3px;
}

.rf-lang {
  font-family: var(--rf-font-body);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rf-ink);
  text-decoration: none;
}
.rf-lang:hover { color: var(--rf-red); }

.rf-modal .modal-header {
  display: flex;
}

.rf-modal .modal-header > *:last-child {
  margin-left: auto;
}