/* Rescue Listings: shared styles for the pet listing pages (pets, pet, for-rescues, admin, privacy). */

@font-face {
  font-family: Outfit;
  src: url('/assets/fonts/Outfit-Variable.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #243e32;
  --forest: #244f3b;
  --green: #365f48;
  --mint: #e5eddd;
  --paper: #f9f8f2;
  --white: #fff;
  --line: #d8ddd2;
  --muted: #5e6b61;
  --orange: #e8a877;
  --peach: #f3dfc9;
  --focus: #a95319;
  --danger: #8f3520;
  --danger-soft: #fbe9e2;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 12px 30px #263d3010;
  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: Outfit, Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

main { flex: 1 0 auto; width: 100%; }
main:focus { outline: none; }

img { max-width: 100%; }

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }

h1, h2, h3 { font-weight: 500; letter-spacing: -.03em; line-height: 1.15; }
h1 { font-size: clamp(2.1rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); }
h3 { font-size: 1.15rem; letter-spacing: -.015em; }

a { color: inherit; text-underline-offset: 4px; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }

[hidden] { display: none !important; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.rl-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.rl-muted { color: var(--muted); }
.rl-small { font-size: .86rem; line-height: 1.55; }

/* Layout */

.rl-wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding: 28px 20px 64px;
}
.rl-wrap--narrow { max-width: 860px; }
.rl-narrow { max-width: 820px; margin-inline: auto; }
h1:focus { outline: none; }

.rl-page-head { margin-bottom: 26px; }
.rl-page-head h1 { margin-bottom: 12px; }
.rl-lead { font-size: 1.08rem; line-height: 1.65; color: var(--muted); max-width: 60ch; }
.rl-kicker {
  font-size: .74rem;
  font-weight: 550;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}

.rl-stack > * + * { margin-top: 16px; }
.rl-stack-lg > * + * { margin-top: 28px; }

/* Header */

#rl-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  min-height: 73px;
  position: relative;
  z-index: 20;
}
.rl-skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 50;
  padding: 12px 16px;
  background: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 550;
}
.rl-skip:focus { top: 10px; }

.rl-header__inner {
  max-width: 1240px;
  margin-inline: auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.rl-brand { display: flex; align-items: center; min-height: 48px; flex: 0 1 auto; min-width: 0; }
.rl-brand img { display: block; width: 190px; height: auto; }

.rl-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 10px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 550;
}
.rl-menu-btn__bars { display: grid; gap: 4px; width: 18px; }
.rl-menu-btn__bars i { display: block; height: 2px; border-radius: 2px; background: currentColor; }

.rl-nav {
  display: none;
  flex-basis: 100%;
  flex-direction: column;
  padding: 6px 0 8px;
  border-top: 1px solid var(--line);
}
.rl-nav.is-open { display: flex; }
.rl-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 8px 4px;
  font-size: 1rem;
  font-weight: 450;
  text-decoration: none;
  border-bottom: 1px solid #eef0ea;
}
.rl-nav a:last-child { border-bottom: 0; }
.rl-nav a:hover { color: var(--green); text-decoration: underline; }
.rl-nav a[aria-current='page'] {
  font-weight: 650;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
}

@media (min-width: 1000px) {
  .rl-header__inner { padding: 14px 32px; flex-wrap: nowrap; }
  .rl-brand img { width: 216px; }
  .rl-menu-btn { display: none; }
  .rl-nav,
  .rl-nav.is-open {
    display: flex;
    flex-basis: auto;
    flex-direction: row;
    align-items: center;
    gap: 26px;
    padding: 0;
    border-top: 0;
  }
  .rl-nav a { min-height: 44px; padding: 6px 0; font-size: .93rem; border-bottom: 0; white-space: nowrap; }
}

/* Footer */

#rl-footer {
  flex-shrink: 0;
  background: var(--forest);
  color: #e6efe6;
  min-height: 300px;
}
#rl-footer :where(a, button):focus-visible { outline-color: var(--orange); }
.rl-footer__inner {
  max-width: 1240px;
  margin-inline: auto;
  padding: 44px 20px 40px;
  display: grid;
  gap: 22px;
}
.rl-footer__brand { display: inline-flex; align-items: center; min-height: 48px; width: fit-content; }
.rl-footer__brand img { display: block; width: 210px; height: auto; }
.rl-footer__line { font-size: 1.02rem; line-height: 1.6; max-width: 40ch; }
.rl-footer__nav { display: flex; flex-wrap: wrap; gap: 2px 26px; }
.rl-footer__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: .95rem;
  text-decoration: none;
}
.rl-footer__nav a:hover { color: var(--white); text-decoration: underline; }
.rl-footer__note {
  padding-top: 20px;
  border-top: 1px solid #ffffff2e;
  font-size: .84rem;
  line-height: 1.6;
  color: #c9d9cc;
}

@media (min-width: 800px) {
  .rl-footer__inner {
    padding: 56px 32px 44px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    column-gap: 48px;
  }
  .rl-footer__nav { grid-column: 2; grid-row: 1 / span 2; flex-direction: column; gap: 0; }
  .rl-footer__note { grid-column: 1 / -1; }
}

/* Buttons */

.rl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 11px 22px;
  background: var(--forest);
  border: 1px solid var(--forest);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: .97rem;
  font-weight: 550;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: background-color .15s, border-color .15s, color .15s;
}
.rl-btn:hover { background: var(--green); border-color: var(--green); }
.rl-btn:disabled,
.rl-btn[aria-disabled='true'] { opacity: .5; pointer-events: none; }

.rl-btn--secondary { background: var(--white); color: var(--forest); border-color: #b9c6b6; }
.rl-btn--secondary:hover { background: var(--mint); border-color: var(--green); color: var(--forest); }

.rl-btn--danger { background: var(--danger); border-color: var(--danger); }
.rl-btn--danger:hover { background: #762a18; border-color: #762a18; }

.rl-btn--small { min-height: 40px; padding: 7px 14px; font-size: .88rem; }
.rl-btn--block { display: flex; width: 100%; }

.rl-link-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 2px;
  background: none;
  border: 0;
  color: var(--forest);
  font-weight: 550;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.rl-link-btn:hover { color: var(--green); }

.rl-btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Form fields */

.rl-field { display: grid; gap: 6px; min-width: 0; }
.rl-field > label,
.rl-label { font-size: .88rem; font-weight: 550; }
.rl-hint { font-size: .82rem; color: var(--muted); line-height: 1.45; }

.rl-input,
.rl-select {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 10px 14px;
  background: var(--white);
  border: 1px solid #b9c6b6;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  line-height: 1.3;
}
.rl-input::placeholder { color: #88958a; }
.rl-input:hover,
.rl-select:hover { border-color: var(--green); }
.rl-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23244f3b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3.5 6 4.5 4.5L12.5 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 15px;
  text-overflow: ellipsis;
}
.rl-input[aria-invalid='true'] { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }

.rl-form { display: grid; gap: 16px; }
.rl-form-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 620px) {
  .rl-form-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Cards and panels */

.rl-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
}
.rl-card > h2,
.rl-card > h3 { margin-bottom: 10px; }
@media (min-width: 700px) {
  .rl-card { padding: 28px; }
}
.rl-card--mint { background: var(--mint); border-color: #d3dfc9; }

.rl-panel {
  max-width: 640px;
  margin: 24px auto;
  padding: 38px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}
.rl-panel h1,
.rl-panel h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); margin-bottom: 12px; }
.rl-panel p { color: var(--muted); max-width: 48ch; margin-inline: auto; }
.rl-panel .rl-btn { margin-top: 22px; }
.rl-panel__art { display: block; width: 92px; height: 92px; margin: 0 auto 18px; border-radius: 50%; object-fit: cover; }

/* Notices */

.rl-notice {
  padding: 14px 16px;
  background: var(--mint);
  border: 1px solid #cddbc4;
  border-left: 5px solid var(--green);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  line-height: 1.55;
}
.rl-notice strong { font-weight: 650; }
.rl-notice--warn { background: #fbf1e4; border-color: #edd5b8; border-left-color: var(--orange); }
.rl-notice--error { background: var(--danger-soft); border-color: #efc9bd; border-left-color: var(--danger); color: #6d2614; }
.rl-notice--ok { background: #eaf3e3; border-color: #c9dcc0; border-left-color: var(--forest); }

.rl-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: var(--peach);
  border-radius: 999px;
  color: #6a3d17;
  font-size: .76rem;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}
.rl-tag--ok { background: var(--mint); color: var(--forest); }
.rl-tag--error { background: var(--danger-soft); color: var(--danger); }
.rl-tag--muted { background: #eceee7; color: var(--muted); }

.rl-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.rl-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  background: var(--mint);
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 500;
}
.rl-chip svg { width: 15px; height: 15px; flex: none; }
.rl-chip--no { background: #f1ede4; color: #5a5446; }

/* Prose */

.rl-prose {
  max-width: 760px;
  margin-inline: auto;
  padding: 36px 20px 72px;
  font-size: 1.04rem;
  line-height: 1.75;
}
.rl-prose h1 { margin-bottom: 22px; }
.rl-prose h2 { margin: 40px 0 12px; }
.rl-prose h3 { margin: 28px 0 8px; }
.rl-prose p,
.rl-prose ul,
.rl-prose ol { margin-bottom: 16px; }
.rl-prose ul,
.rl-prose ol { padding-left: 1.3em; }
.rl-prose li + li { margin-top: 6px; }
.rl-prose a { color: var(--forest); font-weight: 500; }
.rl-prose a:hover { color: var(--green); }
.rl-prose hr { border: 0; border-top: 1px solid var(--line); margin: 34px 0; }
.rl-prose small { color: var(--muted); }

/* Find a pet */

.rl-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.rl-filters__search { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
@media (min-width: 720px) {
  .rl-filters { grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 20px; gap: 14px; }
}

.rl-results-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
  min-height: 48px;
  margin: 18px 0 10px;
}
.rl-results-bar p { font-weight: 550; }

.rl-pet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  padding: 0;
}
@media (min-width: 640px) { .rl-pet-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1000px) { .rl-pet-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; } }

.rl-pet-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.rl-pet-card:hover { border-color: #a9bca6; box-shadow: var(--shadow); transform: translateY(-2px); }
.rl-pet-card:focus-visible { outline-offset: 2px; }
.rl-pet-card__photo { position: relative; aspect-ratio: 4 / 3; background: var(--mint); }
.rl-pet-card__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rl-pet-card__photo .rl-tag { position: absolute; left: 8px; bottom: 8px; box-shadow: 0 1px 4px #0002; }
.rl-pet-card__body { display: flex; flex-direction: column; gap: 3px; padding: 12px 12px 14px; flex: 1; }
.rl-pet-card__name { font-size: 1.12rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; }
.rl-pet-card__breed { font-size: .9rem; line-height: 1.4; }
.rl-pet-card__meta,
.rl-pet-card__place { font-size: .84rem; line-height: 1.45; color: var(--muted); }
.rl-pet-card__org {
  margin-top: auto;
  padding-top: 9px;
  font-size: .8rem;
  line-height: 1.4;
  color: var(--green);
  font-weight: 500;
}
@media (min-width: 640px) {
  .rl-pet-card__body { padding: 16px 16px 18px; gap: 4px; }
  .rl-pet-card__name { font-size: 1.25rem; }
}

.rl-skel { pointer-events: none; }
.rl-skel .rl-pet-card__photo,
.rl-skel__block,
.rl-skel__line {
  background: linear-gradient(100deg, #e9eee3 30%, #f4f6ef 50%, #e9eee3 70%);
  background-size: 300% 100%;
  animation: rl-shimmer 1.4s linear infinite;
}
.rl-skel__line { height: 13px; border-radius: 6px; margin-top: 6px; }
.rl-skel__line--name { height: 20px; width: 60%; margin-top: 0; }
.rl-skel__line--short { width: 45%; }
.rl-skel__line--title { height: 42px; width: 70%; margin: 0 0 18px; }
@keyframes rl-shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) {
  .rl-skel .rl-pet-card__photo,
  .rl-skel__block,
  .rl-skel__line { animation: none; }
  .rl-pet-card { transition: none; }
  .rl-pet-card:hover { transform: none; }
}

.rl-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 30px;
}
.rl-pager span { font-size: .93rem; color: var(--muted); min-width: 64px; text-align: center; }

/* Pet detail */

.rl-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-bottom: 10px;
  font-size: .93rem;
  font-weight: 550;
  color: var(--forest);
  text-decoration: none;
}
.rl-back:hover { text-decoration: underline; }
.rl-back svg { width: 18px; height: 18px; }

.rl-pet { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
.rl-pet__top { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
.rl-pet__bottom { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) {
  .rl-pet__top { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 44px; align-items: start; }
  .rl-pet__bottom { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 44px; }
}

.rl-gallery__main {
  aspect-ratio: 4 / 3;
  background: var(--mint);
  border-radius: var(--radius);
  overflow: hidden;
}
.rl-gallery__main img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rl-gallery__thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; list-style: none; padding: 0; }
.rl-gallery__thumb {
  display: block;
  width: 72px;
  height: 56px;
  padding: 0;
  background: var(--mint);
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  opacity: .75;
}
.rl-gallery__thumb:hover { opacity: 1; }
.rl-gallery__thumb[aria-current='true'] { border-color: var(--forest); opacity: 1; }
.rl-gallery__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }

.rl-pet__name { margin-bottom: 6px; }
.rl-pet__breed { font-size: 1.2rem; color: var(--muted); line-height: 1.4; }
.rl-pet__summary > * + * { margin-top: 20px; }
.rl-pet__summary > .rl-pet__breed { margin-top: 0; }

.rl-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.rl-facts > div { background: var(--white); padding: 13px 16px; }
.rl-facts > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.rl-facts dt { font-size: .74rem; font-weight: 550; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.rl-facts dd { font-size: 1.05rem; font-weight: 500; line-height: 1.35; margin-top: 2px; }

.rl-subhead { font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }

.rl-description p { white-space: pre-line; max-width: 68ch; }
.rl-description p + p { margin-top: 14px; }
.rl-description h2 { margin-bottom: 14px; }

.rl-rescue-box h2 { font-size: 1.3rem; margin-bottom: 4px; }
.rl-rescue-box__about { margin-top: 12px; white-space: pre-line; font-size: .96rem; }
.rl-rescue-box__links { display: grid; gap: 2px; margin-top: 12px; }
.rl-rescue-box__links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 550; color: var(--forest); width: fit-content; }

/* For rescues */

.rl-pitch h1 { margin-bottom: 14px; }

.rl-split { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 940px) {
  .rl-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; }
}

.rl-steps { list-style: none; padding: 0; counter-reset: rl-step; display: grid; gap: 18px; margin-top: 26px; }
.rl-steps li { counter-increment: rl-step; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; }
.rl-steps li::before {
  content: counter(rl-step);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--mint);
  border-radius: 50%;
  font-weight: 600;
  color: var(--forest);
}
.rl-steps strong { display: block; font-weight: 600; font-size: 1.05rem; }
.rl-steps span { color: var(--muted); font-size: .95rem; }

.rl-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; background: var(--mint); border-radius: 12px; margin-bottom: 22px; }
.rl-tab {
  min-height: 46px;
  padding: 8px 10px;
  background: transparent;
  border: 0;
  border-radius: 9px;
  font-weight: 550;
  color: var(--forest);
}
.rl-tab[aria-selected='true'] { background: var(--white); box-shadow: 0 1px 4px #263d3022; }

.rl-statgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.rl-stat { padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.rl-stat dt { font-size: .74rem; font-weight: 550; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.rl-stat dd { font-size: 1.25rem; font-weight: 550; line-height: 1.3; margin-top: 3px; }
.rl-stat dd.rl-stat__text { font-size: 1rem; }

.rl-samples { margin-top: 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px; list-style: none; padding: 0; }
.rl-samples li { font-size: .86rem; line-height: 1.35; min-width: 0; }
.rl-samples img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: var(--mint); margin-bottom: 6px; }
.rl-samples strong { display: block; font-weight: 600; }

.rl-confirm { margin-top: 16px; padding: 18px; background: var(--danger-soft); border: 1px solid #efc9bd; border-radius: 12px; }
.rl-confirm h3 { margin-bottom: 6px; }
.rl-confirm p { margin-bottom: 14px; }

.rl-account-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 20px; margin-bottom: 18px; }

/* Admin */

.rl-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.rl-table { width: 100%; min-width: 1000px; border-collapse: collapse; font-size: .9rem; line-height: 1.45; }
.rl-table th,
.rl-table td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.rl-table th { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; background: var(--paper); white-space: nowrap; }
.rl-table tr:last-child td { border-bottom: 0; }
.rl-table td .rl-btn + .rl-btn { margin-left: 6px; }
.rl-table__actions { white-space: nowrap; }

.rl-pre {
  margin: 12px 0 0;
  padding: 14px;
  background: #1f3a2c;
  color: #e6efe6;
  border-radius: 10px;
  font: .82rem/1.55 ui-monospace, SFMono-Regular, Consolas, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 320px;
  overflow: auto;
}

.rl-section-title { margin: 36px 0 14px; }

.rl-blocked-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.rl-blocked {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.rl-blocked > div { min-width: 0; }
.rl-flash { margin-top: 16px; }
