/* U4 Network — site shell (flexbox) */
:root {
  --u4-red: #de151e;
  --u4-red-dark: #b91018;
  --u4-navy: #214559;
  --u4-navy-deep: #0f1419;
  --u4-slate: #5a7896;
  --u4-mist: #e9ebf0;
  --u4-line: #b2c2d1;
  --u4-text: #1a2a36;
  --u4-muted: #475e76;
  --u4-white: #ffffff;
  --u4-max: 1080px;
  --font-display: "Libre Baskerville", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --font-body: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--u4-text);
  background:
    linear-gradient(180deg, #dfe5ec 0%, var(--u4-mist) 40%, #eef1f5 100%);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--u4-red);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus-visible {
  color: var(--u4-red-dark);
  text-decoration: underline;
}

.container {
  width: min(100% - 2rem, var(--u4-max));
  margin-inline: auto;
}

/* —— Header brand bar —— */
.site-header {
  background: var(--u4-navy-deep);
  color: var(--u4-white);
}

.site-header__top {
  display: flex;
  justify-content: flex-end;
  gap: 1.25rem;
  padding: 0.45rem 0;
  font-size: 0.85rem;
}

.site-header__top a {
  color: #d7e2ec;
  text-decoration: none;
}

.site-header__top a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-brand {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 168px;
  background:
    linear-gradient(100deg, rgba(15, 20, 25, 0.72) 0%, rgba(33, 69, 89, 0.45) 48%, rgba(222, 21, 30, 0.28) 100%),
    url("/assets/img/header.jpg") center / cover no-repeat;
  border-bottom: 4px solid var(--u4-red);
}

.site-brand__link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0 1.5rem;
  text-decoration: none;
  color: #fff;
}

.site-brand__link:hover {
  text-decoration: none;
  color: #fff;
}

.site-brand__logo {
  width: min(220px, 52vw);
  height: auto;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

.site-brand__text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.site-brand__name {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.site-brand__tag {
  font-size: 0.92rem;
  opacity: 0.92;
  letter-spacing: 0.02em;
}

/* —— Nav —— */
.site-nav {
  background: var(--u4-red);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08);
}

.site-nav__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.site-nav__toggle {
  display: none;
  margin: 0.55rem 0;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: transparent;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

.site-nav__list a {
  display: block;
  padding: 0.85rem 1.1rem;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  transition: background 0.2s ease;
}

.site-nav__list li:last-child a {
  border-right: none;
}

.site-nav__list a:hover,
.site-nav__list a:focus-visible,
.site-nav__list a.is-active {
  background: rgba(0, 0, 0, 0.18);
  text-decoration: none;
  color: #fff;
}

/* —— Main —— */
.site-main {
  flex: 1 0 auto;
  padding: 1.75rem 0 3rem;
}

.site-panel {
  background: var(--u4-white);
  border: 1px solid #d5dbe3;
  box-shadow: 0 8px 28px rgba(33, 69, 89, 0.07);
  padding: clamp(1.25rem, 3vw, 2.25rem);
}

.page-header {
  margin: 0 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--u4-red);
}

.page-header h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  line-height: 1.25;
  color: var(--u4-navy);
  font-weight: 700;
}

.content-body {
  color: var(--u4-text);
}

.content-body h2,
.content-body h3,
.content-body h4 {
  font-family: var(--font-display);
  color: var(--u4-navy);
  line-height: 1.3;
  margin: 1.4rem 0 0.55rem;
}

.content-body h2 {
  font-size: 1.35rem;
}

.content-body h3 {
  font-size: 1.15rem;
}

.content-body p {
  margin: 0 0 0.9rem;
}

.content-body ul,
.content-body ol {
  margin: 0 0 1rem 1.25rem;
  padding: 0;
}

.content-body li {
  margin-bottom: 0.35rem;
}

.content-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}

.content-body th,
.content-body td {
  border: 1px solid var(--u4-line);
  padding: 0.55rem 0.7rem;
  vertical-align: top;
  text-align: left;
}

.content-body th {
  background: #f2f5f8;
  color: var(--u4-navy);
}

.content-body img {
  display: block;
  margin: 0.75rem 0;
}

/* Home */
.home-banner {
  margin: 0 0 1.25rem;
  padding: 0.9rem 1.1rem;
  background: linear-gradient(90deg, var(--u4-navy) 0%, #2f617f 100%);
  color: #fff;
  font-weight: 600;
}

.home-banner a {
  color: #fff;
  text-decoration: underline;
}

.home-banner a:hover {
  color: #ffd7d9;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.news-card {
  padding-bottom: 1.35rem;
  border-bottom: 1px solid #e2e7ed;
}

.news-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.news-card__date {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
  color: var(--u4-slate);
  letter-spacing: 0.02em;
}

.news-card h2 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.3;
}

.news-card h2 a {
  color: var(--u4-navy);
  text-decoration: none;
}

.news-card h2 a:hover {
  color: var(--u4-red);
  text-decoration: underline;
}

.news-card__more {
  display: inline-block;
  margin-top: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e2e7ed;
}

.partners a {
  display: block;
  opacity: 0.92;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.partners a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.partners img {
  margin: 0;
  max-height: 52px;
  width: auto;
}

/* Blog list (r-template_blog) */
.blog-container {
  width: 100%;
}

.blog-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.blog-card {
  padding: 1rem 0;
  border-bottom: 1px solid #e2e7ed;
}

.blog-title {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.blog-title a {
  color: var(--u4-navy);
}

.blog-preview p {
  margin: 0;
  color: var(--u4-muted);
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: var(--u4-navy-deep);
  color: #c9d5e0;
  padding: 1.75rem 0 1.25rem;
  font-size: 0.95rem;
}

.site-footer a {
  color: #fff;
}

.site-footer__row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: center;
}

.site-footer__social {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.site-footer__social img {
  display: block;
  width: 28px;
  height: 28px;
  margin: 0;
}

.site-footer__note {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  opacity: 0.8;
}

.romli-links,
.romli-sitewide {
  margin-top: 1.5rem;
}

/* Mobile */
@media (max-width: 760px) {
  .site-brand {
    min-height: 130px;
  }

  .site-nav__toggle {
    display: inline-block;
  }

  .site-nav__list {
    display: none;
    width: 100%;
    flex-direction: column;
    padding-bottom: 0.5rem;
  }

  .site-nav.is-open .site-nav__list {
    display: flex;
  }

  .site-nav__list a {
    border-right: none;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }

  .site-header__top {
    justify-content: center;
  }

  .content-body table {
    display: block;
    overflow-x: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  a,
  .partners a {
    transition: none;
  }
}
