:root {
  --blue: #0750a4;
  --blue-dark: #052c59;
  --blue-light: #2b69b1;
  --footer-bg: #0d233c;
  --footer-text: #2e455f;
  --orange: #f26527;
  --text: #585858;
  --text-muted: #c4c7cd;
  --border: #f2f2f2;
  --surface: #fafafa;
  --surface-alt: #f3f3f3;
  --container: 928px;
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: Arial, "Open Sans", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

main,
main .container {
  text-align: center;
}

h1,
h2,
h3,
h4 {
  font-family: "Open Sans", sans-serif;
  font-weight: 300;
  color: var(--blue);
  margin: 0 0 0.75rem;
}

h1 {
  font-size: 2.1rem;
}

h2 {
  font-size: 1.8rem;
}

h3 {
  font-size: 1.5rem;
}

.button {
  display: inline-block;
  padding: 0 18px;
  height: 37px;
  line-height: 37px;
  font-size: 0.95em;
  font-weight: 400;
  text-align: center;
  border: 0;
  cursor: pointer;
}

.button.blue {
  background: var(--blue);
  color: #fff;
}

.button.blue:hover {
  opacity: 0.9;
  text-decoration: none;
}

.padd {
  padding: 40px 0;
}

.fancy-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: block;
  text-align: justify;
  text-justify: inter-word;
  max-width: 820px;
  width: 100%;
}

.fancy-list li {
  position: relative;
  padding: 0 0 8px 14px;
  text-align: justify;
}

.fancy-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  background: var(--orange);
}

.listing-intro {
  max-width: 820px;
  margin: 0 auto 1.5rem;
  text-align: center;
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  text-align: left;
}

.faq-item {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
  border-bottom: 0;
}

.faq-item dt {
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 0.35rem;
}

.faq-item dd {
  margin: 0;
  color: var(--text);
}

.faq-section h2 {
  text-align: center;
}

/* Header */
.site-header {
  padding-top: 0;
}

.header-bar {
  position: relative;
  min-height: 130px;
  overflow: hidden;
}

.header-bar::after {
  content: "";
  display: table;
  clear: both;
}

#header-logo {
  float: left;
  margin-top: 17px;
  margin-right: 14px;
}

#header-logo img {
  display: block;
  width: auto;
  height: auto;
}

#header-title {
  float: left;
  margin-top: 33px;
  font-family: "Open Sans", sans-serif;
}

#header-title strong {
  display: block;
  color: #075da4;
  font-weight: 600;
  font-size: 1.35em;
  line-height: 1.25em;
}

#header-title span {
  display: block;
  color: #c4c7cd;
  font-weight: 400;
  font-size: 0.75em;
  line-height: 2em;
}

#header-info {
  float: right;
  margin-top: 18px;
}

#header-info-links {
  float: right;
  color: #eaeaea;
  font-size: 0.9em;
}

#header-info-links a {
  color: var(--blue);
}

.header-sep {
  display: inline-block;
  margin: 0 8px 0 12px;
  color: #eaeaea;
}

.sprite {
  background: url("../img/sprite.png");
}

.header-organizatii,
.header-membri {
  display: inline-block;
  width: 21px;
  height: 14px;
  margin-right: 6px;
  margin-bottom: -2px;
}

.header-membri {
  background-position: 0 -14px;
  margin-right: 7px;
}

#header-info-112 {
  clear: right;
  float: right;
  margin-top: 36px;
}

.header-phone {
  float: left;
  width: 38px;
  height: 38px;
  background-position: -21px 0;
  margin-right: 6px;
}

#header-info-112-text {
  float: left;
  color: #075da4;
  font-size: 0.95em;
  height: 31px;
  line-height: 1em;
  border-right: 2px solid #f0f0f0;
  padding-top: 2px;
  padding-right: 11px;
  margin-top: 3px;
  margin-right: 9px;
  letter-spacing: 0.4px;
}

#header-info-112-text span {
  color: #c4c7cd;
  font-size: 0.85em;
  letter-spacing: 0;
}

#header-info-112-number {
  float: left;
  font-family: "Open Sans", sans-serif;
  color: #075da4;
  font-weight: 600;
  font-size: 2.4em;
  height: 31px;
  line-height: 31px;
  margin-top: 2px;
  letter-spacing: -1px;
}

.menu-toggle {
  display: none;
  margin: 16px 0 0 auto;
  background: var(--blue);
  color: #fff;
  border: 0;
  padding: 10px 14px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 4px;
}

.menu-toggle-bars {
  position: relative;
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  box-shadow: 0 -7px 0 #fff, 0 7px 0 #fff;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bars {
  background: transparent;
  box-shadow: none;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before,
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 2px;
  background: #fff;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before {
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after {
  transform: rotate(-45deg);
}

.site-nav {
  margin-top: 12px;
  background: var(--blue);
}

.site-nav ul {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  width: min(var(--container), calc(100% - 40px));
}

.site-nav .nav-soon {
  display: block;
  color: rgba(255, 255, 255, 0.55);
  padding: 0 12px;
  height: 36px;
  line-height: 36px;
  font-size: 0.95rem;
  white-space: nowrap;
  cursor: default;
}

.site-nav .submenu .nav-soon {
  height: auto;
  line-height: 1.35;
  padding: 10px 14px;
  white-space: normal;
}

.site-nav .nav-soon em {
  font-style: normal;
  font-size: 0.8em;
  opacity: 0.9;
}

.site-footer .site-nav .nav-soon {
  color: rgba(255, 255, 255, 0.45);
}

.site-nav a {
  display: block;
  color: #fff;
  padding: 0 12px;
  height: 36px;
  line-height: 36px;
  font-size: 1.05rem;
  text-align: center;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.active {
  background: var(--blue-light);
  text-decoration: none;
}

.site-nav .has-submenu {
  position: relative;
}

.site-nav .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 320px;
  max-width: min(420px, 90vw);
  background: var(--blue-dark);
  z-index: 1000;
  flex-direction: column;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.site-nav .has-submenu:hover > .submenu,
.site-nav .has-submenu.open > .submenu,
.site-nav .has-submenu:focus-within > .submenu {
  display: flex;
}

.site-nav .submenu a {
  height: auto;
  line-height: 1.4;
  padding: 10px 14px;
  white-space: normal;
  text-align: left;
}

.site-nav .submenu .has-submenu {
  position: relative;
}

.site-nav .submenu .submenu {
  top: 0;
  left: 100%;
}

.site-nav .submenu .submenu-toggle-nested::after {
  content: " ▸";
}

.site-nav .submenu-toggle::after {
  content: " ▾";
  font-size: 0.85em;
  opacity: 0.85;
}

/* Hero */
.hero-slider {
  position: relative;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero-slide {
  display: none;
  min-height: 305px;
}

.hero-slide.active {
  display: block;
}

.hero-slide .container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 305px;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}

.hero-image {
  flex: 0 1 420px;
  width: 100%;
  max-width: 420px;
  height: auto;
  max-height: 280px;
  object-fit: contain;
}

.hero-content {
  flex: 0 1 420px;
  width: 100%;
  max-width: 420px;
  padding: 20px 0;
  text-align: left;
}

.hero-content h2 {
  font-size: 1.9rem;
  padding-bottom: 10px;
}

.hero-kicker {
  margin: 0 0 6px;
  color: var(--blue);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.home-card h2 {
  font-size: 1.2rem;
  margin: 0.75rem 0 0.5rem;
}

.hero-controls {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-controls button {
  pointer-events: auto;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 0;
  background: rgba(7, 80, 164, 0.75);
  color: #fff;
  cursor: pointer;
  font-size: 1.4rem;
}

.hero-prev {
  left: 12px;
}

.hero-next {
  right: 12px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: #ccc;
  cursor: pointer;
}

.hero-dots button.active {
  background: var(--blue);
}

/* Home sections */
.intro-section {
  text-align: center;
}

.intro-section p {
  max-width: 820px;
  margin: 0 auto 1rem;
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}

.home-card {
  text-align: center;
}

.home-card .card-image {
  display: block;
  height: 185px;
  overflow: hidden;
  margin-bottom: 12px;
}

.home-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-card p {
  margin-bottom: 12px;
}

.news-list a {
  display: block;
  padding: 16px 28px 16px 16px;
  margin-bottom: 7px;
  background: var(--surface-alt);
  color: #929191;
  position: relative;
}

.news-list a:hover {
  background: #eee;
  text-decoration: none;
}

.news-list a::after {
  content: "›";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #dedede;
  font-size: 1.4rem;
}

.news-list span {
  color: #6c93bf;
}

/* Page banner */
.page-banner {
  background: #00499e;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.page-banner .container {
  min-height: 132px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  background: url("../img/h1-bg.jpg") right center no-repeat;
  background-image: image-set(
    url("../img/h1-bg.webp") type("image/webp"),
    url("../img/h1-bg.jpg") type("image/jpeg")
  );
  background-position: right center;
  background-repeat: no-repeat;
  padding-right: 300px;
}

.page-banner h1 {
  color: #fff;
  margin: 0;
  max-width: 34rem;
  line-height: 1.25;
}

.content-block {
  margin-bottom: 2rem;
  text-align: left;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.content-block h2,
.content-block h3 {
  text-align: left;
}

.content-block p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.article-list article {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.content-block pre,
.card-note {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 12px 16px;
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 0.95rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  justify-items: center;
}

.team-card {
  background: var(--surface-alt);
  padding: 20px;
  text-align: center;
  width: 100%;
  max-width: 280px;
}

.team-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.team-card strong {
  display: block;
  font-size: 1.2rem;
  color: var(--blue);
  margin-bottom: 6px;
}

.article-list article {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.article-list h2 {
  font-size: 1.4rem;
}

.article-meta {
  color: #bfbfbf;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.article-image {
  margin: 0 auto 1.25rem;
}

.article-image img {
  display: block;
  max-width: min(100%, 820px);
  margin: 0 auto;
  height: auto;
}

.article-file a {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 600;
}

.article-rich {
  text-align: left;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.article-rich p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.article-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  max-width: 920px;
  margin: 0 auto 1.5rem;
}

.article-gallery-event {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.article-gallery-event .article-gallery-item {
  width: calc((100% - 40px) / 5);
  max-width: 208px;
  flex: 0 0 calc((100% - 40px) / 5);
}

.article-gallery-event + .gallery-note,
.article-gallery-event ~ .gallery-note {
  max-width: 920px;
  margin: 0 auto 1.5rem;
  color: var(--text-muted, #666);
  font-size: 0.95rem;
}

.article-rich h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
  text-align: left;
}

.gallery-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
  max-width: 1100px;
  margin: 0 auto 1rem;
}

.gallery-count {
  color: var(--text-muted, #666);
  font-size: 0.95rem;
}

.gallery-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 1100px;
  margin: 0 auto 1.5rem;
}

.gallery-page-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.gallery-page-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--blue-dark);
  cursor: pointer;
  font: inherit;
  line-height: 1;
}

.gallery-page-btn:hover:not(:disabled) {
  background: var(--blue-light);
  color: #fff;
  border-color: var(--blue-light);
}

.gallery-page-btn.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  font-weight: 600;
}

.gallery-page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.gallery-page-nav {
  min-width: auto;
  padding: 0 14px;
}

.gallery-page-gap {
  min-width: 20px;
  text-align: center;
  color: var(--text-muted, #666);
}

.article-gallery-item {
  display: block;
  overflow: hidden;
  background: var(--surface-alt);
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 0;
  padding: 0;
  cursor: pointer;
  width: 100%;
}

.article-gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.article-gallery-item picture {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
}

.article-gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 120px;
  object-fit: cover;
  display: block;
  background: transparent;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
}

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

.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
}

.gallery-lightbox-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 56px 72px;
}

.gallery-lightbox-figure {
  margin: 0;
  max-width: min(1100px, calc(100vw - 144px));
  max-height: calc(100vh - 112px);
  text-align: center;
}

.gallery-lightbox-figure img {
  max-width: 100%;
  max-height: calc(100vh - 160px);
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 6px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.gallery-lightbox-caption {
  margin-top: 12px;
  color: #fff;
  font-size: 0.95rem;
}

.gallery-lightbox-close,
.gallery-lightbox-nav {
  position: absolute;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  line-height: 1;
  transition: background 0.2s ease;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.22);
}

.gallery-lightbox-close {
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.8rem;
}

.gallery-lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 2rem;
}

.gallery-lightbox-prev {
  left: 16px;
}

.gallery-lightbox-next {
  right: 16px;
}

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

.article-video,
.article-youtube {
  max-width: 848px;
  margin: 0 auto 1.5rem;
}

.article-video video {
  width: 100%;
  height: auto;
  background: #000;
  display: block;
}

.article-youtube {
  position: relative;
  aspect-ratio: 16 / 9;
}

.article-youtube iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Organizatii */
.org-layout {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  grid-template-areas:
    "controls map"
    "panel map";
  gap: 24px;
  align-items: start;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.org-controls {
  grid-area: controls;
  width: 100%;
  text-align: left;
}

.org-panel {
  grid-area: panel;
  display: none;
  background: var(--surface-alt);
  padding: 20px;
  text-align: left;
}

.org-layout--open .org-panel {
  display: block;
}

.org-panel h3 {
  margin-top: 0;
}

.org-layout > div {
  width: 100%;
}

.county-select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  font-size: 16px;
  margin-top: 8px;
  min-height: 44px;
}

.org-item {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #ddd;
}

.org-item div {
  margin-top: 4px;
}

.org-item a {
  word-break: break-word;
}

.org-item:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.org-map {
  grid-area: map;
  width: 100%;
  max-width: 100%;
  margin: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.org-map svg {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
}

.org-map path {
  cursor: pointer;
}

/* Literele județului nu blochează hover/click pe formă */
.org-map text,
.org-map tspan {
  pointer-events: none !important;
  user-select: none;
  -webkit-user-select: none;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 720px;
  margin: 0 auto;
  justify-items: center;
}

.contact-data,
.contact-form {
  width: 100%;
  text-align: center;
}

.contact-data {
  font-size: 1.1rem;
}

.contact-form {
  background: #6c8195;
  padding: 24px;
  text-align: left;
}

.contact-form label {
  display: block;
  color: #fff;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 0;
  padding: 10px 12px;
  margin-bottom: 14px;
  font: inherit;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form button {
  width: 100%;
  background: var(--orange);
  color: #fff;
  border: 0;
  height: 40px;
  cursor: pointer;
}

.contact-form button:hover {
  background: #0080bd;
}

.contact-form .form-note {
  color: #fff;
  font-size: 0.85rem;
  margin-top: 10px;
}

.map-embed {
  margin-top: 24px;
  border: 0;
  width: 100%;
  min-height: 360px;
}

/* Footer */
.site-footer {
  background: var(--footer-bg);
  border-top: 53px solid #efefef;
  padding: 50px 0 80px;
  color: #fff;
}

.site-footer .site-nav {
  background: var(--blue-dark);
  margin-bottom: 30px;
}

.site-footer .site-nav a:hover {
  background: #063469;
}

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: center;
  justify-items: center;
  text-align: center;
}

.footer-logo {
  width: 45px;
}

.footer-title {
  color: #fff;
  font-size: 1.1rem;
}

.footer-info {
  color: var(--footer-text);
  font-size: 0.9rem;
  line-height: 1.35;
}

.footer-info a {
  color: var(--footer-text);
}

.footer-emergency {
  text-align: center;
  line-height: 1.1;
}

.footer-emergency span {
  display: block;
  font-size: 2.4rem;
  font-weight: 600;
}

@media (max-width: 1100px) {
  .site-nav a {
    padding: 0 10px;
    font-size: 0.98rem;
  }

  .site-nav .submenu {
    min-width: 280px;
  }
}

@media (max-width: 900px) {
  :root {
    --container: 100%;
  }

  body {
    font-size: 15px;
  }

  body.nav-open {
    overflow: hidden;
  }

  .article-gallery-event .article-gallery-item {
    width: calc((100% - 12px) / 2);
    max-width: none;
    flex: 0 0 calc((100% - 12px) / 2);
  }

  .container {
    width: calc(100% - 28px);
  }

  .padd {
    padding: 28px 0;
  }

  h1 {
    font-size: 1.65rem;
    line-height: 1.25;
  }

  h2 {
    font-size: 1.4rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  .intro-section h1,
  .intro-section p,
  .listing-intro,
  .content-block p,
  .fancy-list,
  .fancy-list li,
  .article-list p,
  .home-card p {
    text-align: left;
    text-justify: auto;
    hyphens: manual;
  }

  .intro-section .container,
  .faq-section .container {
    text-align: left;
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 2000;
    background: #fff;
    box-shadow: 0 1px 0 rgba(7, 80, 164, 0.12);
    padding-top: env(safe-area-inset-top, 0px);
  }

  .header-bar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "logo title toggle"
      "info info info";
    align-items: center;
    column-gap: 10px;
    row-gap: 8px;
    min-height: 0;
    padding: 10px 0;
    overflow: visible;
  }

  .header-bar::after {
    display: none;
  }

  #header-logo,
  #header-title,
  #header-info,
  #header-info-links,
  #header-info-112,
  .header-phone,
  #header-info-112-text,
  #header-info-112-number {
    float: none;
  }

  #header-logo {
    grid-area: logo;
    margin: 0;
  }

  #header-logo img {
    width: 56px;
    height: 56px;
    max-height: none;
  }

  #header-title {
    grid-area: title;
    margin: 0;
    text-align: left;
    min-width: 0;
  }

  #header-title strong {
    font-size: 0.88rem;
    line-height: 1.25;
  }

  #header-title span {
    display: none;
  }

  #header-info {
    grid-area: info;
    margin: 0;
    text-align: left;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    padding-top: 4px;
    border-top: 1px solid var(--border);
  }

  #header-info-links {
    margin: 0;
    font-size: 0.85rem;
  }

  #header-info-112 {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
  }

  #header-info-112-text {
    border-right: 0;
    padding-right: 0;
    margin: 0;
    height: auto;
    line-height: 1.15;
    font-size: 0.78rem;
  }

  #header-info-112-number {
    font-size: 1.55rem;
    height: auto;
    line-height: 1;
    margin: 0;
  }

  .header-phone,
  #header-info-112-text,
  #header-info-112-number {
    float: none;
  }

  .menu-toggle {
    grid-area: toggle;
    display: inline-flex;
    position: static;
    width: auto;
    min-width: 44px;
    min-height: 44px;
    margin: 0;
    padding: 10px 12px;
  }

  .menu-toggle-label {
    font-size: 0.9rem;
  }

  #primary-nav {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .site-nav {
    margin-top: 0;
  }

  .site-nav > ul {
    display: none;
    flex-direction: column;
    width: 100%;
    max-height: min(70vh, 560px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .site-nav.open > ul {
    display: flex;
  }

  .site-nav a {
    height: auto;
    min-height: 48px;
    line-height: 1.35;
    padding: 14px 16px;
    white-space: normal;
    text-align: left;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .site-nav .submenu {
    position: static;
    min-width: 0;
    max-width: none;
    display: none;
    width: 100%;
    box-shadow: none;
  }

  .site-nav .submenu a {
    padding-left: 28px;
    background: rgba(0, 0, 0, 0.12);
  }

  .site-nav .submenu .submenu a {
    padding-left: 42px;
    background: rgba(0, 0, 0, 0.18);
  }

  .site-nav .submenu .submenu-toggle-nested::after {
    content: " ▾";
  }

  .site-nav .has-submenu.open > .submenu {
    display: flex;
  }

  .site-nav .has-submenu:hover > .submenu {
    display: none;
  }

  .site-nav .has-submenu.open:hover > .submenu,
  .site-nav .has-submenu.open:focus-within > .submenu {
    display: flex;
  }

  .hero-slider {
    border-top: 0;
  }

  .hero-slide {
    min-height: auto;
  }

  .hero-slide .container {
    min-height: auto;
    padding: 20px 0 52px;
  }

  .hero-inner {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }

  .hero-content {
    text-align: center;
    padding: 0 44px;
    max-width: none;
  }

  .hero-content h2 {
    font-size: 1.45rem;
    line-height: 1.25;
  }

  .hero-content p {
    font-size: 0.98rem;
    line-height: 1.5;
  }

  .hero-image {
    max-width: min(100%, 360px);
    max-height: 220px;
    width: 100%;
    object-fit: cover;
  }

  .hero-controls button {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  .hero-prev {
    left: 4px;
  }

  .hero-next {
    right: 4px;
  }

  .hero-dots {
    bottom: 12px;
  }

  .page-banner .container {
    min-height: 88px;
    padding: 18px 12px;
    padding-right: 36%;
    background-size: auto 100%;
    background-position: right center;
  }

  .page-banner h1 {
    max-width: none;
    font-size: 1.4rem;
  }

  .home-grid,
  .contact-grid,
  .footer-bottom {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .home-card {
    text-align: left;
  }

  .home-card .card-image {
    height: 180px;
  }

  .faq-section details {
    text-align: left;
  }

  .news-list a {
    padding: 14px 36px 14px 14px;
    font-size: 0.95rem;
    min-height: 48px;
  }

  .org-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "controls"
      "map"
      "panel";
    gap: 16px;
  }

  .org-panel {
    padding: 16px;
  }

  .org-map {
    min-height: 280px;
  }

  .county-select {
    min-height: 48px;
    font-size: 16px;
  }

  .contact-data,
  .contact-form {
    text-align: left;
  }

  .contact-form {
    padding: 20px 16px;
  }

  .contact-form input,
  .contact-form textarea,
  .contact-form button {
    font-size: 16px;
  }

  .contact-form button {
    min-height: 48px;
  }

  .map-embed {
    min-height: 240px;
  }

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .article-list article {
    text-align: left;
    padding-bottom: 1.25rem;
  }

  .article-list h2 {
    font-size: 1.2rem;
  }

  .gallery-toolbar,
  .gallery-pagination {
    gap: 8px;
  }

  .site-footer {
    padding: 28px 0 calc(36px + env(safe-area-inset-bottom, 0px));
    border-top-width: 24px;
  }

  .site-footer .site-nav {
    display: none;
  }

  .footer-bottom {
    text-align: center;
    justify-items: center;
  }

  .footer-info {
    font-size: 0.9rem;
  }

  .footer-emergency span {
    font-size: 2rem;
  }
}

@media (max-width: 640px) {
  .header-bar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "logo title toggle";
    padding: 8px 0;
  }

  #header-info {
    display: none;
  }

  #header-logo img {
    width: 48px;
    height: 48px;
  }

  #header-title strong {
    font-size: 0.84rem;
  }

  .menu-toggle-label {
    display: none;
  }

  .menu-toggle {
    padding: 12px;
  }

  .page-banner .container {
    padding: 16px 4px;
    padding-right: 0;
    background-image: none;
    min-height: 72px;
  }

  .page-banner h1 {
    font-size: 1.25rem;
  }

  .hero-content h2 {
    font-size: 1.28rem;
  }

  .button {
    width: 100%;
    max-width: 100%;
  }

  .hero-content .button {
    max-width: 280px;
  }

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

  .article-gallery-event .article-gallery-item {
    width: 100%;
    flex: 0 0 100%;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .container {
    width: calc(100% - 20px);
  }

  .padd {
    padding: 20px 0;
  }

  h1 {
    font-size: 1.4rem;
  }

  .hero-slide .container {
    padding: 16px 0 48px;
  }

  .hero-image {
    max-height: 190px;
  }

  .gallery-lightbox-dialog {
    padding: 48px 12px;
  }

  .gallery-lightbox-figure {
    max-width: calc(100vw - 24px);
  }

  .gallery-lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.6rem;
  }

  .gallery-lightbox-prev {
    left: 8px;
  }

  .gallery-lightbox-next {
    right: 8px;
  }
}

@media (hover: none) and (pointer: coarse) {
  .site-nav .has-submenu:hover > .submenu {
    display: none;
  }

  .site-nav .has-submenu.open > .submenu {
    display: flex;
  }

  a,
  button,
  .button,
  .county-select,
  .news-list a {
    -webkit-tap-highlight-color: rgba(7, 80, 164, 0.15);
  }
}
