:root {
  --ris-green: #14924a;
  --ris-green-dark: #073f2a;
  --ris-ink: #10231d;
  --ris-muted: #65746f;
  --ris-line: #dbe7e1;
  --ris-bg: #f4f8f6;
  --ris-soft: #eef7f1;
  --ris-white: #ffffff;
  --ris-shadow: 0 18px 48px rgba(17, 41, 31, 0.13);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ris-ink);
  background: var(--ris-bg);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.ris-hero {
  min-height: 520px;
  color: var(--ris-white);
  background:
    linear-gradient(90deg, rgba(7, 44, 30, 0.86), rgba(7, 44, 30, 0.58) 54%, rgba(7, 44, 30, 0.18)),
    url('/image/source/site/bg.jpg') center / cover no-repeat;
}

.ris-hero-compact {
  min-height: 390px;
}

.ris-nav {
  width: min(1180px, calc(100% - 40px));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ris-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 19px;
  font-weight: 900;
}

.ris-brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  color: var(--ris-green-dark);
  background: var(--ris-white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.ris-nav-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 800;
}

.ris-hero-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0 72px;
}

.ris-eyebrow {
  margin: 0 0 14px;
  color: #cfeee0;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.ris-hero h1 {
  max-width: 740px;
  margin: 0;
  font-size: 46px;
  line-height: 1.08;
}

.ris-hero-copy {
  max-width: 600px;
  margin: 18px 0 34px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
  line-height: 1.5;
}

.ris-login,
.ris-search {
  max-width: 930px;
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--ris-shadow);
}

.ris-login {
  grid-template-columns: minmax(200px, 1fr) minmax(200px, 1fr);
}

.ris-search {
  grid-template-columns: minmax(280px, 1fr) 160px 58px;
}

.ris-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid #dce8e2;
  border-radius: 8px;
  background: #fbfefd;
}

.ris-field span {
  color: var(--ris-muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.ris-field input,
.ris-field select {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ris-ink);
  background: transparent;
  font-weight: 800;
}

.ris-login-footer {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.ris-login-footer button,
.ris-search-button {
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--ris-green);
  cursor: pointer;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(20, 146, 74, 0.24);
}

.ris-login-footer button {
  min-height: 46px;
  padding: 0 24px;
}

.ris-error {
  margin: 0;
  color: #b62424;
  font-size: 15px;
}

.ris-search-button {
  width: 58px;
  min-height: 58px;
}

.ris-search-button span {
  width: 18px;
  height: 18px;
  display: inline-block;
  border: 3px solid #fff;
  border-radius: 50%;
  position: relative;
}

.ris-search-button span::after {
  content: "";
  width: 10px;
  height: 3px;
  position: absolute;
  right: -8px;
  bottom: -5px;
  border-radius: 4px;
  background: #fff;
  transform: rotate(45deg);
}

.ris-main {
  width: min(1180px, calc(100% - 40px));
  margin: -42px auto 70px;
}

.ris-summary,
.ris-status {
  border: 1px solid var(--ris-line);
  border-radius: 8px;
  background: var(--ris-white);
  box-shadow: 0 14px 34px rgba(31, 54, 45, 0.08);
}

.ris-summary {
  min-height: 84px;
  margin-bottom: 18px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ris-summary strong {
  margin-right: 7px;
  color: var(--ris-green);
  font-size: 26px;
}

.ris-summary span {
  color: var(--ris-muted);
  font-weight: 800;
}

.ris-pager {
  display: flex;
  align-items: center;
  gap: 9px;
}

.ris-pager button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--ris-line);
  border-radius: 8px;
  color: var(--ris-green-dark);
  background: #fff;
  cursor: pointer;
  font-weight: 900;
}

.ris-pager button:disabled {
  color: #9aa7a2;
  cursor: default;
}

.ris-status {
  padding: 28px 22px;
  color: var(--ris-muted);
  font-weight: 800;
  text-align: center;
}

.ris-status[hidden] {
  display: none;
}

.ris-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.ris-card {
  overflow: hidden;
  border: 1px solid var(--ris-line);
  border-radius: 8px;
  background: var(--ris-white);
  box-shadow: 0 14px 28px rgba(31, 54, 45, 0.07);
}

.ris-card button {
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.ris-card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  background: #d7e6df;
}

.ris-card-body {
  padding: 14px;
}

.ris-card h2 {
  margin: 0 0 6px;
  color: var(--ris-green-dark);
  font-size: 18px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.ris-card p {
  margin: 0;
  color: var(--ris-muted);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.ris-card-meta {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.ris-chip {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 8px;
  color: var(--ris-green-dark);
  background: var(--ris-soft);
  font-size: 12px;
  font-weight: 900;
}

.ris-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2, 17, 12, 0.68);
}

.ris-modal[hidden] {
  display: none;
}

.ris-modal-panel {
  width: min(900px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  position: relative;
  border-radius: 8px;
  background: var(--ris-white);
  box-shadow: var(--ris-shadow);
}

.ris-modal-close {
  width: 42px;
  height: 42px;
  position: absolute;
  top: 12px;
  right: 12px;
  border: 0;
  border-radius: 8px;
  color: var(--ris-ink);
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
}

.ris-modal img {
  width: 100%;
  max-height: 70vh;
  display: block;
  object-fit: contain;
  background: #f5f8f6;
}

.ris-modal-text {
  padding: 18px 22px 22px;
}

.ris-modal-text h2 {
  margin: 0 0 8px;
  color: var(--ris-green-dark);
}

.ris-modal-text p {
  margin: 0;
  color: var(--ris-muted);
}

@media (max-width: 980px) {
  .ris-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .ris-hero h1 {
    font-size: 34px;
  }

  .ris-login,
  .ris-search {
    grid-template-columns: 1fr;
  }

  .ris-search-button {
    width: 100%;
  }

  .ris-login-footer,
  .ris-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .ris-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .ris-nav,
  .ris-hero-inner,
  .ris-main {
    width: min(100% - 24px, 1180px);
  }

  .ris-brand {
    font-size: 16px;
  }

  .ris-brand-mark {
    width: 36px;
    height: 36px;
  }

  .ris-grid {
    grid-template-columns: 1fr;
  }
}
