.r25,
.r25-home {
  color-scheme: light;
  box-sizing: border-box;
  color: #182538;
  background: #ffffff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

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

.r25 {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding: clamp(1rem, 3vw, 2rem);
}

.r25-home {
  min-width: 0;
  margin-block: 1.25rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid #c6d3e2;
  border-radius: 1rem;
  background: #f4f8fd;
}

.r25 h1,
.r25 h2,
.r25 h3,
.r25-home h2,
.r25-home h3 {
  color: #14243a;
  line-height: 1.4;
  margin-block: 0 0.65rem;
  text-wrap: pretty;
}

.r25 h1 { font-size: clamp(1.65rem, 5vw, 2.25rem); }
.r25 h2,
.r25-home h2 { font-size: clamp(1.25rem, 3vw, 1.55rem); }
.r25 h3,
.r25-home h3 { font-size: 1.125rem; }
.r25 p,
.r25-home p { margin-block: 0 0.85rem; }

.r25 a,
.r25-home a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  padding-block: 0.35rem;
  color: #1557a0;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

.r25 a:hover,
.r25-home a:hover { color: #073b75; text-decoration-thickness: 2px; }

.r25 :focus-visible,
.r25-home :focus-visible {
  outline: 3px solid #175ec1;
  outline-offset: 3px;
}

.r25 [hidden],
.r25-home [hidden] { display: none !important; }

.r25 .r25-intro,
.r25 .r25-note,
.r25 .r25-disclaimer,
.r25-home .r25-note {
  color: #435269;
  max-width: 75ch;
}

.r25 .r25-controls,
.r25 .r25-filters,
.r25 .r25-toolbar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  align-items: end;
  gap: 0.85rem;
  margin-block: 1.25rem;
  padding: 1rem;
  border: 1px solid #c6d3e2;
  border-radius: 0.85rem;
  background: #f4f7fb;
}

.r25 label,
.r25 .r25-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
}

.r25 .r25-wide { grid-column: 1 / -1; }
.r25 .r25-check,
.r25 label:has(input[type="checkbox"]) {
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  cursor: pointer;
}

.r25 input,
.r25 select,
.r25 button {
  min-width: 0;
  min-height: 44px;
  max-width: 100%;
  border: 1px solid #788ba4;
  border-radius: 0.55rem;
  background: #ffffff;
  color: #182538;
  font: inherit;
}

.r25 input[type="search"],
.r25 input[type="text"],
.r25 select {
  width: 100%;
  padding: 0.6rem 0.75rem;
}

.r25 input::placeholder { color: #59677b; opacity: 1; }
.r25 input[type="checkbox"] {
  flex: 0 0 1.3rem;
  width: 1.3rem;
  height: 1.3rem;
  min-height: 1.3rem;
  margin: 0;
  accent-color: #1557a0;
}

.r25 button {
  padding: 0.6rem 0.9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: normal;
}

.r25 button:hover:not(:disabled) { background: #eaf1fb; border-color: #1557a0; }
.r25 button:disabled,
.r25 input:disabled,
.r25 select:disabled { color: #59677b; background: #edf1f5; cursor: not-allowed; opacity: 1; }
.r25 .r25-mark[aria-pressed="true"] { color: #ffffff; background: #1557a0; border-color: #1557a0; }
.r25 .r25-mark[aria-pressed="true"]:hover { background: #073b75; }

.r25 #r25-status {
  margin-block: 1rem;
  color: #435269;
  font-size: 0.9375rem;
}

.r25 #r25-empty {
  padding: 1.25rem;
  border: 1px dashed #788ba4;
  border-radius: 0.85rem;
  background: #f4f7fb;
  color: #253954;
}

.r25 .r25-grid,
.r25 .r25-list,
.r25 .r25-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 1rem;
  padding: 0;
  margin-block: 1rem;
  list-style: none;
}

.r25 .r25-item {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.65rem;
  padding: clamp(1rem, 2vw, 1.3rem);
  margin: 0;
  border: 1px solid #c6d3e2;
  border-radius: 0.85rem;
  background: #ffffff;
}

.r25 .r25-item > :last-child { margin-bottom: 0; }
.r25 .r25-meta,
.r25 .r25-tags,
.r25 .r25-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  min-width: 0;
}

.r25 .r25-meta { color: #435269; font-size: 0.9375rem; }
.r25 .r25-actions { margin-top: auto; padding-top: 0.5rem; }
.r25 .r25-tag,
.r25 .r25-badge {
  display: inline-block;
  max-width: 100%;
  padding: 0.15rem 0.6rem;
  border: 1px solid #bfd0e5;
  border-radius: 1rem;
  background: #edf4fc;
  color: #244871;
  font-size: 0.875rem;
  font-weight: 600;
}

.r25 details,
.r25 .r25-source,
.r25 .r25-privacy {
  margin-block: 1rem;
  padding: 1rem;
  border: 1px solid #c6d3e2;
  border-radius: 0.75rem;
  background: #f7f9fc;
  color: #435269;
}

.r25 summary { min-height: 44px; padding-block: 0.5rem; color: #182538; cursor: pointer; font-weight: 600; }
.r25 img,
.r25-home img { max-width: 100%; height: auto; }

@media (max-width: 30rem) {
  .r25 .r25-controls,
  .r25 .r25-filters,
  .r25 .r25-toolbar { grid-template-columns: minmax(0, 1fr); padding: 0.85rem; }
  .r25 .r25-actions > button,
  .r25 .r25-actions > a { justify-content: center; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .r25 *,
  .r25-home * { scroll-behavior: auto; }
}
