html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.navbar-logo {
  display: inline-flex;
  align-items: center;
  padding-top: 0;
  padding-bottom: 0;
}

.navbar-logo img {
  display: block;
  width: auto;
  height: 42px;
  max-width: 180px;
  object-fit: contain;
}

.maintenance-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 180px);
  padding: 3rem 1rem;
  text-align: center;
}

.maintenance-panel {
  width: 100%;
  max-width: 720px;
}

.maintenance-logo {
  width: min(220px, 70vw);
  height: auto;
  margin-bottom: 2rem;
}

.maintenance-panel h1 {
  margin-bottom: 0.75rem;
  color: #1d2b2f;
  font-size: clamp(2.25rem, 8vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
}

.maintenance-subtitle {
  margin-bottom: 1rem;
  color: #38545c;
  font-size: clamp(1.2rem, 4vw, 1.75rem);
  font-weight: 600;
}

.maintenance-message {
  max-width: 560px;
  margin: 0 auto;
  color: #52666c;
  font-size: 1.1rem;
  line-height: 1.7;
}

.article-page {
  color: #1f2a2e;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}

.article-main {
  min-width: 0;
}

.article-header {
  max-width: 780px;
  margin: 0 auto 1.75rem;
  text-align: center;
}

.article-category {
  display: inline-block;
  margin-bottom: 0.8rem;
  color: #3f6874;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease, text-decoration-color 0.15s ease;
}

.article-category:hover,
.article-category:focus-visible {
  color: #214a57;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.article-category:focus-visible {
  outline: 0.15rem solid rgba(37, 140, 251, 0.35);
  outline-offset: 0.2rem;
}

.article-header h1 {
  margin-bottom: 0.65rem;
  color: #172126;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 750;
  line-height: 1.08;
}

.article-date {
  margin-bottom: 0;
  color: #6f7d84;
  font-size: 0.96rem;
  font-style: italic;
}

.article-image-button {
  display: block;
  width: min(100%, 700px);
  margin: 0 auto 2rem;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 0.5rem;
  cursor: zoom-in;
}

.article-image {
  display: block;
  width: 100%;
  max-width: 700px;
  height: auto;
  margin: 0 auto;
}

.article-image-button:focus-visible {
  outline: 0.2rem solid #258cfb;
  outline-offset: 0.2rem;
}

.article-content {
  max-width: 760px;
  margin: 0 auto;
  color: #26363b;
  font-size: 1.08rem;
  line-height: 1.8;
}

.article-bulletin {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: min(100%, 760px);
  margin: 0 auto 1.75rem;
  color: #6a7b82;
}

.article-bulletin-line {
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(to right, rgba(106, 123, 130, 0.15), rgba(106, 123, 130, 0.45), rgba(106, 123, 130, 0.15));
}

.article-bulletin-label {
  margin: 0;
  color: #5f6f76;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

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

.article-content p,
.article-content ul,
.article-content ol,
.article-content blockquote,
.article-content figure {
  margin-bottom: 1.25rem;
}

.article-sidebar {
  min-width: 0;
}

.article-sidebar-panel {
  padding: 1.25rem;
  border: 1px solid #dde5e8;
  border-radius: 0.5rem;
  background: #f8fafb;
}

.article-sidebar-label {
  margin-bottom: 0.35rem;
  color: #65777e;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-sidebar-title {
  margin-bottom: 0.5rem;
  color: #172126;
  font-weight: 700;
}

.article-sidebar-date {
  margin-bottom: 0;
  color: #6a7b82;
  font-size: 0.95rem;
}

.article-lightbox[hidden] {
  display: none;
}

.article-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: flex;
  background: rgba(8, 13, 16, 0.92);
}

.article-lightbox-scroll {
  width: 100%;
  height: 100%;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4rem 1rem 2rem;
  text-align: center;
}

.article-lightbox-image {
  display: inline-block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 6rem);
  transform-origin: top center;
}

.article-lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1081;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
}

.article-lightbox-close:focus-visible {
  outline: 0.2rem solid #fff;
  outline-offset: 0.15rem;
}

body.article-lightbox-open {
  overflow: hidden;
}

@media (min-width: 992px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr) 240px;
    align-items: start;
  }

  .article-sidebar {
    position: sticky;
    top: 1.5rem;
  }

  .article-lightbox-image {
    max-width: none;
  }
}

@media (max-width: 575.98px) {
  .navbar-logo img {
    height: 36px;
    max-width: 150px;
  }

  .maintenance-page {
    min-height: calc(100vh - 160px);
    padding: 2rem 0.5rem;
  }

  .article-layout {
    padding-top: 0.75rem;
  }

  .article-header {
    text-align: left;
  }

  .article-header h1 {
    font-size: 2rem;
  }

  .article-category {
    font-size: 0.84rem;
    letter-spacing: 0.1em;
  }

  .article-content {
    font-size: 1rem;
    line-height: 1.7;
  }

  .article-bulletin {
    gap: 0.65rem;
    margin-bottom: 1.4rem;
  }

  .article-bulletin-label {
    font-size: 0.9rem;
    letter-spacing: 0.2em;
  }

  .article-lightbox-scroll {
    display: flex;
    align-items: center;
    padding: 4rem 0.75rem 1.5rem;
  }

  .article-lightbox-image {
    max-height: calc(100vh - 5.5rem);
  }
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}
