@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@100..900&display=swap');

/* =========================================================
   Design System: Parliran Static Template
   ========================================================= */
:root {
  --font-family-base: "Vazirmatn", "Vazir", Tahoma, Arial, sans-serif;

  --color-ink-950: #111111;
  --color-ink-900: #1a1a1a;
  --color-ink-850: #262626;
  --color-ink-700: #505050;
  --color-ink-600: #6d6d6d;
  --color-ink-500: #8f8f8f;
  --color-ink-400: #ababab;
  --color-ink-300: #c9c9c9;
  --color-ink-200: #e7e7e7;
  --color-ink-100: #f5f5f5;
  --color-white: #ffffff;

  --color-primary: #0c74b9;
  --color-primary-700: #075f9c;
  --color-primary-soft: #a8d1f2;
  --color-success: #1f8f66;
  --color-danger: #d60000;
  --color-surface: #ffffff;
  --color-surface-soft: #f8f8f7;
  --color-surface-mint: #edf6f6;
  --color-section-blue: #eef7f8;
  --color-media: #737371;
  --color-footer: #f0eee8;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 56px;
  --space-10: 72px;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  --shadow-card: 0 10px 30px rgba(17, 17, 17, .045);
  --shadow-soft: 0 16px 40px rgba(17, 17, 17, .07);
  --shadow-dropdown: 0 18px 40px rgba(17, 17, 17, .12);
  --border-soft: 1px solid rgba(17, 17, 17, .075);
  --border-mint: 1px solid #e4eeee;

  --container-width: 1110px;
  --header-height: 118px;
  --ease: cubic-bezier(.2, .65, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-family-base);
  background: var(--color-white);
  color: var(--color-ink-850);
  font-size: 14px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }

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

.ds-tint-block { background: var(--color-section-blue); }
.section-white { background: var(--color-white); }
.section-gray { background: #f7f7f7; }

/* Header */
.site-header {
  position: relative;
  z-index: 20;
  background: var(--color-white);
  min-height: 142px;
}

/* Simple header (interior pages) */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 10px;
  min-height: 76px;
}
.header-hamburger {
  width: 30px;
  height: 22px;
  cursor: pointer;
  position: relative;
  display: none;
}
.header-hamburger::before,
.header-hamburger::after,
.header-hamburger .hh-bar {
  content: "";
  position: absolute;
  right: 0;
  width: 100%;
  height: 3px;
  background: var(--color-ink-700);
  border-radius: 2px;
}
.header-hamburger::before { top: 0; }
.header-hamburger .hh-bar { top: 9px; }
.header-hamburger::after { bottom: 0; }
.header-logo { display: flex; align-items: center; }
.header-logo img { width: 210px; height: auto; display: block; }
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-cta-link {
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 12px;
  font-weight: 700;
  transition: opacity .18s var(--ease);
}
.header-cta-link:hover { opacity: .85; color: var(--color-white); }

/* Simple top nav */
.top-nav {
  background: var(--color-ink-850);
}
.top-nav-inner {
  display: flex;
  align-items: center;
}
.top-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0;
}
.top-nav-list .top-nav-item { position: relative; }
.top-nav-list .top-nav-link {
  display: block;
  padding: 11px 18px;
  color: rgba(255,255,255,.78);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: color .18s var(--ease);
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}
.top-nav-list .top-nav-link:hover,
.top-nav-list .top-nav-item:hover > .top-nav-link { color: var(--color-white); }
.top-nav-list .has-top-submenu > .top-nav-link::after {
  content: "▾";
  font-size: 9px;
  margin-right: 4px;
  opacity: .6;
}
.top-nav-list .top-submenu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--color-white);
  border: var(--border-soft);
  border-radius: var(--radius-xs);
  box-shadow: var(--shadow-card);
  min-width: 190px;
  z-index: 30;
  padding: 6px 0;
}
.top-nav-list .top-nav-item:hover .top-submenu,
.top-nav-list .top-nav-item.is-open .top-submenu { display: block; }
.top-nav-list .top-submenu a {
  display: block;
  padding: 8px 18px;
  font-size: 12px;
  color: var(--color-ink-700);
  text-decoration: none;
  transition: background .15s var(--ease);
}
.top-nav-list .top-submenu a:hover {
  background: var(--color-bg);
  color: var(--color-ink-950);
}

/* Page header alt (interior pages) */
.page-header-alt {
  background: var(--color-ink-850);
  color: var(--color-white);
  padding: 32px 0 28px;
}
.page-header-alt h1 {
  font-size: 24px;
  font-weight: 850;
  margin: 0 0 6px;
}
.page-header-alt .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,.55);
  background: none;
  padding: 0;
  margin: 0;
}
.page-header-alt .breadcrumb a {
  color: rgba(255,255,255,.78);
  text-decoration: none;
}
.page-header-alt .breadcrumb a:hover { color: #fff; }
.page-header-alt .breadcrumb span:last-child { color: rgba(255,255,255,.9); }
.header-top {
  min-height: 82px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, auto);
  align-items: center;
  gap: 18px;
  padding-block: 12px 10px;
}
.brand-note {
  direction: rtl;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--color-ink-700);
  font-size: 11px;
  line-height: 1.45;
  justify-self: start;
  text-decoration: none;
}
.brand-note-media {
  width: clamp(64px, 6vw, 88px);
  height: clamp(64px, 6vw, 88px);
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.brand-note-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.brand-note-title {
  margin-top: 2px;
  color: var(--color-ink-900);
  font-size: 12px;
  font-weight: 700;
}
.brand-note strong {
  display: block;
  margin-top: 4px;
  color: var(--color-ink-950);
  font-size: 13px;
  font-weight: 850;
}
.header-logo-simple {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.brand-note:hover .header-logo-simple {
  opacity: .92;
}
.header-left-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  justify-self: end;
}
.header-service-pill,
.header-contact-card {
  text-decoration: none;
  color: var(--color-ink-800);
  border: 1px solid #ececec;
  background: #fbfbfb;
  transition: transform .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
}
.header-service-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 15px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}
.header-service-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-inline-end: 7px;
  border-radius: 50%;
  background: var(--color-danger);
}
.header-contact-card {
  min-width: 142px;
  min-height: 44px;
  display: grid;
  align-content: center;
  border-radius: 14px;
  padding: 6px 13px;
  line-height: 1.35;
}
.header-contact-card span { color: var(--color-ink-500); font-size: 10px; }
.header-contact-card strong { color: var(--color-ink-950); font-size: 13px; letter-spacing: .3px; }
.header-service-pill:hover,
.header-contact-card:hover {
  color: var(--color-ink-950);
  background: var(--color-white);
  border-color: #dedede;
  transform: translateY(-1px);
}
.black-rail {
  height: 12px;
  background: var(--color-ink-950);
  position: relative;
  border-radius: 1px;
}
.black-rail::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 112px;
  height: 4px;
  transform: translate(-50%, -50%);
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.28);
}
.seal-img {
  width: 98px;
  height: 98px;
  object-fit: contain;
}
.main-navbar {
  min-height: 54px;
  padding: 15px 0 0;
  align-items: center;
  position: relative;
  z-index: 35;
}
.navbar-nav { gap: 18px; }
.main-navbar .nav-link {
  color: var(--color-ink-700);
  font-size: 13px;
  padding: 0;
  position: relative;
  white-space: nowrap;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.7;
  cursor: pointer;
}
.main-navbar .nav-link:hover { color: var(--color-ink-950); }
.main-navbar .nav-link.active { color: var(--color-ink-950); font-weight: 750; }
.main-navbar .nav-link.active::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-danger);
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
}
.top-nav-menu { align-items: center; }
.top-nav-item { position: relative; }
.top-submenu-caret {
  width: 7px;
  height: 7px;
  border-inline-start: 1.5px solid var(--color-ink-300);
  border-bottom: 1.5px solid var(--color-ink-300);
  transform: rotate(-45deg);
  margin-inline-start: 2px;
  transition: transform .18s var(--ease), border-color .18s var(--ease);
}
.top-nav-item:hover .top-submenu-caret,
.top-nav-item.is-open .top-submenu-caret { border-color: var(--color-ink-700); transform: rotate(135deg); }
.top-submenu {
  list-style: none;
  margin: 0;
  padding: 8px;
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: 230px;
  z-index: 60;
  background: var(--color-white);
  border: var(--border-soft);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-dropdown);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .18s var(--ease), visibility .18s var(--ease), transform .18s var(--ease);
}
.top-submenu::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: -14px;
  height: 14px;
}
@media (min-width: 992px) {
  .top-nav-item:hover > .top-submenu,
  .top-nav-item.is-open > .top-submenu,
  .top-nav-item:focus-within > .top-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}
.top-submenu a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--color-ink-700);
  line-height: 1.8;
}
.top-submenu a:hover { background: #f7f7f7; color: var(--color-ink-950); }

.search-trigger {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  position: relative;
  border-radius: 50%;
  transition: background .18s var(--ease);
}
.search-trigger:hover,
.search-trigger.is-active { background: #fafafa; }
.search-trigger::before {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1.6px solid var(--color-ink-300);
  border-radius: 50%;
  inset-inline-start: 10px;
  top: 10px;
}
.search-trigger::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 1.6px;
  background: var(--color-ink-300);
  transform: rotate(-45deg);
  inset-inline-start: 23px;
  top: 24px;
  border-radius: 2px;
}
.header-search-panel {
  position: absolute;
  inset-inline: 0;
  top: 146px;
  z-index: 30;
  background: rgba(255,255,255,.97);
  border: var(--border-soft);
  box-shadow: var(--shadow-dropdown);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: 18px 22px 20px;
  backdrop-filter: blur(10px);
}
.header-search-panel[hidden] { display: none !important; }
.header-search-form { display: grid; gap: 10px; }
.header-search-label { font-size: 12px; color: var(--color-ink-600); }
.header-search-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 10px;
}
.header-search-field input {
  height: 42px;
  border: 1px solid #e9eeee;
  border-radius: var(--radius-pill);
  padding: 0 18px;
  outline: 0;
  color: var(--color-ink-850);
}
.header-search-field input:focus { border-color: #c4dcdf; box-shadow: 0 0 0 4px rgba(12,116,185,.06); }
.header-search-field button {
  border: 0;
  border-radius: var(--radius-pill);
  color: var(--color-white);
  background: var(--color-ink-850);
  font-size: 13px;
}
.header-search-results {
  display: none;
  border-top: 1px solid #f0f0f0;
  margin-top: 6px;
  padding-top: 10px;
}
.header-search-results.is-visible { display: grid; gap: 8px; }
.header-search-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--color-ink-700);
  background: #fbfbfb;
  font-size: 12px;
}
.header-search-result strong { color: var(--color-ink-950); font-size: 13px; }
.header-search-empty { color: var(--color-ink-500); font-size: 12px; padding: 6px 2px; }

/* Hero */
.hero-section {
  padding-top: 28px;
  padding-bottom: 48px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 245px;
  gap: 22px;
  align-items: stretch;
  direction: rtl;
}
.quick-menu {
  background: var(--color-white);
  border: var(--border-soft);
  border-radius: var(--radius-sm);
  height: 100%;
  min-height: var(--hero-equal-height, 420px);
  align-self: stretch;
  position: relative;
  z-index: 12;
  box-shadow: 0 1px 0 rgba(0,0,0,.015);
}
.quick-menu-list,
.quick-submenu { list-style: none; margin: 0; padding: 0; }
.quick-menu-item { position: relative; }
.quick-menu-link {
  width: 100%;
  min-height: 30px;
  border: 0;
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 17px 0 13px;
  color: var(--color-ink-700);
  border-bottom: var(--border-soft);
  font-size: 13px;
  text-align: right;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.quick-menu-item:last-child > .quick-menu-link { border-bottom: 0; }
.quick-menu-link b {
  width: 7px;
  height: 7px;
  border-top: 1.5px solid var(--color-ink-300);
  border-left: 1.5px solid var(--color-ink-300);
  transform: rotate(135deg);
  flex: 0 0 auto;
}
.quick-menu-item:hover > .quick-menu-link,
.quick-menu-item.is-open > .quick-menu-link {
  color: var(--color-ink-950);
  background: #fbfbfb;
}
.quick-submenu {
  position: absolute;
  top: 0;
  right: calc(100% + 8px);
  left: auto;
  inset-inline-start: auto;
  inset-inline-end: auto;
  width: 230px;
  z-index: 40;
  background: var(--color-white);
  border: var(--border-soft);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-dropdown);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(8px);
  transition: opacity .18s var(--ease), visibility .18s var(--ease), transform .18s var(--ease);
}
.quick-menu-item:hover > .quick-submenu,
.quick-menu-item.is-open > .quick-submenu,
.quick-menu-item:focus-within > .quick-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}
.quick-submenu a {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--color-ink-700);
}
.quick-submenu a:hover { background: #f7f7f7; color: var(--color-ink-950); }
/* Minimal Swiper structural fallback; official Swiper CSS is loaded from CDN as well. */
.hero-slider .swiper-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  height: 100%;
  box-sizing: content-box;
}
.hero-slider .swiper-slide {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-slider {
  width: 100%;
  height: var(--hero-equal-height, 420px);
  min-height: var(--hero-equal-height, 420px);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  direction: ltr;
}
.news-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  isolation: isolate;
  background: #ddd;
  box-shadow: var(--shadow-card);
}
.news-card > a {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
  position: relative;
}
.news-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-card-main { height: var(--hero-equal-height, 420px); box-shadow: none; border-radius: 0; direction: rtl; }
.side-news {
  display: grid;
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  height: var(--hero-equal-height, 420px);
}
.side-card { height: 100%; border-radius: var(--radius-sm); overflow: hidden; }
.news-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0) 8%, rgba(0,0,0,.36) 43%, rgba(0,0,0,.86) 100%);
}
.news-content {
  position: absolute;
  inset-inline: 18px;
  bottom: 14px;
  z-index: 2;
  color: var(--color-white);
}
.news-kicker {
  display: inline-block;
  font-size: 11px;
  opacity: .84;
  margin-bottom: 6px;
}
.news-card-main h1 {
  font-size: 20px;
  line-height: 1.65;
  margin: 0;
  font-weight: 850;
}
.side-card .news-content { inset-inline: 14px; bottom: 10px; }
.side-card h2 { font-size: 13px; line-height: 1.65; margin: 0; font-weight: 800; }
.hero-slider-pagination {
  position: absolute;
  z-index: 3;
  inset-inline: 0;
  bottom: 8px !important;
  display: flex;
  justify-content: center;
  gap: 5px;
}
.hero-slider-pagination .swiper-pagination-bullet {
  width: 16px;
  height: 3px;
  border-radius: 8px;
  background: rgba(255,255,255,.55);
  opacity: 1;
}
.hero-slider-pagination .swiper-pagination-bullet-active { background: var(--color-white); }
.hero-slider-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 28px;
  height: 28px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .18s var(--ease), background .18s var(--ease);
}
.hero-slider:hover .hero-slider-arrow { opacity: 1; }
.hero-slider-arrow:hover { background: rgba(255,255,255,.34); }
.hero-slider-next { left: 12px; }
.hero-slider-prev { right: 12px; }
.hero-slider-next::before,
.hero-slider-prev::before {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  top: 10px;
  left: 10px;
}
.hero-slider-next::before { transform: rotate(-45deg); }
.hero-slider-prev::before { transform: rotate(135deg); left: 8px; }

/* Access */
.access-panel {
  margin-top: 50px;
  height: 118px;
  border: var(--border-soft);
  border-radius: var(--radius-sm);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  background: var(--color-white);
}
.access-item {
  min-height: 74px;
  display: grid;
  place-items: center;
  gap: 8px;
  text-align: center;
  color: var(--color-ink-600);
  font-size: 13px;
  position: relative;
}
.access-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 1px;
  background: #f0f0f0;
}
.access-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #efefef;
  background: #fbfbfb;
  position: relative;
}
.access-icon::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 22px;
  top: 9px;
  right: 11px;
  border: 1px solid #bababa;
  border-radius: 3px;
  background: var(--color-white);
}
.document-plus::after { content: "+"; position: absolute; top: 5px; right: 18px; color: #999; font-size: 16px; }
.document-text::after { content: "▤"; position: absolute; top: 13px; right: 14px; color: #999; font-size: 13px; }
.document-search::after { content: "⌁"; position: absolute; top: 10px; right: 13px; color: #999; font-size: 15px; }

/* Shared Sections */
.section-heading {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  margin-bottom: 32px;
}
.section-heading h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 850;
  color: var(--color-ink-850);
}
.tabs {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tab-pill,
.soft-button {
  border: 1px solid var(--color-ink-200);
  background: var(--color-white);
  color: var(--color-ink-700);
  border-radius: var(--radius-pill);
  padding: 7px 18px 6px;
  min-height: 34px;
  font-size: 12px;
  transition: all .18s var(--ease);
}
.tab-pill.active,
.tab-pill:hover {
  border-color: var(--color-ink-850);
  background: var(--color-ink-850);
  color: var(--color-white);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: tabFade .22s var(--ease); }
@keyframes tabFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Representatives */
.representatives-section { padding: 80px 0 64px; }
.representative-layout {
  display: grid;
  grid-template-columns: minmax(0, 650px) 420px;
  gap: 44px;
  align-items: center;
}
.representative-map { position: relative; min-height: 470px; }
.map-badge { position: absolute; top: 0; right: 40px; z-index: 2; color: var(--color-ink-600); }
.map-img { width: 100%; height: 440px; object-fit: contain; margin-top: 20px; }
.muted-map { filter: saturate(.75); opacity: .92; }
.faded-map { filter: grayscale(.35); opacity: .78; }
.people-panel {
  background: var(--color-surface-mint);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  min-height: 468px;
  display: flex;
  flex-direction: column;
}
.people-scroll-wrap {
  flex: 1;
  overflow-y: auto;
  max-height: 380px;
  margin-top: 14px;
  scrollbar-width: thin;
  scrollbar-color: #c4dcdd transparent;
}
.people-scroll-wrap::-webkit-scrollbar { width: 4px; }
.people-scroll-wrap::-webkit-scrollbar-thumb { background: #c4dcdd; border-radius: 4px; }
.searchbox {
  height: 38px;
  border-radius: var(--radius-pill);
  background: var(--color-white);
  border: var(--border-mint);
  display: flex;
  align-items: center;
  padding-inline: 14px;
  gap: 8px;
  width: 100%;
  flex: 0 0 auto;
}
.searchbox.small { max-width: 190px; }
.searchbox input {
  border: 0;
  outline: 0;
  width: 100%;
  color: var(--color-ink-700);
  background: transparent;
  font-size: 12px;
}
.searchbox input::placeholder { color: #b7c6c7; }
.search-icon {
  width: 12px;
  height: 12px;
  border: 1.5px solid #b7c6c7;
  border-radius: 50%;
  position: relative;
  flex: 0 0 auto;
}
.search-icon::after {
  content: "";
  width: 6px;
  height: 1.5px;
  background: #b7c6c7;
  border-radius: 2px;
  transform: rotate(-45deg);
  position: absolute;
  right: 8px;
  top: 9px;
}
.person-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.person-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  color: var(--color-ink-850);
}
.person-list strong { display: block; font-weight: 850; font-size: 13px; line-height: 1.5; }
.person-list small { display: block; color: var(--color-ink-600); font-size: 10px; line-height: 1.7; }
.person-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dedede, #9b9b9b);
  flex: 0 0 auto;
  box-shadow: 0 3px 8px rgba(0,0,0,.08);
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.person-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.avatar-1 { background: linear-gradient(135deg,#e9e1d9 0%,#bbb 52%,#3d3d3d 100%); }
.avatar-2 { background: linear-gradient(135deg,#d4a66e 0%,#f3d3a4 44%,#8c5f35 100%); }
.avatar-3 { background: linear-gradient(135deg,#e3e4e6 0%,#3e4754 70%,#151515 100%); }
.avatar-4 { background: linear-gradient(135deg,#efeee7 0%,#c4b8aa 62%,#2d2d2d 100%); }
.avatar-5 { background: linear-gradient(135deg,#f1f1f1 0%,#8fa5a7 50%,#303a42 100%); }
.avatar-6 { background: linear-gradient(135deg,#f0e0cc 0%,#c7966f 52%,#202020 100%); }

/* Commissions */
.commissions-section { padding: 70px 0 78px; }
.commission-card {
  background: var(--color-white);
  border: var(--border-soft);
  border-radius: var(--radius-sm);
  min-height: 530px;
  padding: 52px 54px 42px;
}
.commission-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  row-gap: 45px;
  column-gap: 32px;
}
.commission-grid.compact-grid { align-content: start; }
.commission-item {
  min-height: 76px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.commission-item strong {
  font-family: Georgia, var(--font-family-base);
  font-size: 25px;
  line-height: 1.2;
  font-weight: 850;
  letter-spacing: -.8px;
  color: var(--color-primary);
  margin-bottom: 5px;
}
.commission-item.green strong { color: var(--color-success); }
.commission-item span {
  font-size: 11px;
  color: var(--color-ink-600);
  line-height: 1.8;
}

/* Real Commissions Section */
.commissions-real {
  padding: 64px 0;
  background: var(--color-white);
}
.comreal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.comreal-card {
  display: block;
  padding: 24px 22px;
  border: var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  text-decoration: none;
  transition: all .2s var(--ease);
}
.comreal-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  transform: translateY(-3px);
}
.comreal-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-xs);
  background: var(--color-primary-soft);
  display: grid;
  place-items: center;
  font-size: 20px;
  margin-bottom: 14px;
}
.comreal-card h3 {
  font-size: 14px;
  font-weight: 850;
  color: var(--color-ink-950);
  margin: 0 0 8px;
}
.comreal-card p {
  font-size: 11px;
  line-height: 1.9;
  color: var(--color-ink-500);
  margin: 0;
}

/* Fractions */
.fractions-section { padding: 74px 0 66px; }
.fraction-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.fraction-link {
  display: block;
  padding: 14px 18px;
  border-radius: var(--radius-xs);
  background: var(--color-white);
  color: var(--color-ink-700);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  border: var(--border-soft);
  transition: all .18s var(--ease);
  text-align: center;
}
.fraction-link:hover {
  border-color: var(--color-ink-300);
  color: var(--color-ink-950);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}
.fraction-toolbar { margin-bottom: 18px; display: flex; justify-content: flex-end; }
.fraction-card {
  background: var(--color-white);
  border: var(--border-soft);
  border-radius: var(--radius-sm);
  min-height: 335px;
  padding: 42px 54px;
  position: relative;
  box-shadow: var(--shadow-card);
}
.fraction-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.fraction-columns ul { list-style: none; margin: 0; padding: 0; }
.fraction-columns li {
  color: var(--color-ink-700);
  font-size: 13px;
  line-height: 2.15;
  padding: 0 0 10px;
  border-bottom: 1px solid #f1f1f1;
}
.fraction-columns li:last-child { border-bottom: 0; }
.rail-arrow {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 260px;
  border: 1px solid #eeeeee;
  border-radius: var(--radius-pill);
  background: var(--color-white);
  color: var(--color-ink-300);
  font-size: 26px;
}
.fraction-card::after {
  content: "";
  position: absolute;
  bottom: 16px;
  left: 50%;
  width: 28px;
  height: 4px;
  border-radius: 10px;
  background: var(--color-ink-850);
  transform: translateX(-50%);
}

/* Friendship */
.friendship-section { padding: 72px 0 70px; }
.friendship-heading { justify-content: flex-start; margin-bottom: 38px; }
.friendship-layout {
  display: grid;
  grid-template-columns: minmax(0, 650px) 440px;
  gap: 42px;
  align-items: center;
}
.world-map-wrap { position: relative; min-height: 330px; display: grid; place-items: center; }
.world-map-img { width: 100%; max-height: 330px; object-fit: contain; }
.friend-list {
  min-height: 320px;
  background: var(--color-surface-soft);
  border-radius: var(--radius-sm);
  padding: 22px 28px;
  display: flex;
  flex-direction: column;
}
.friend-scroll-wrap {
  flex: 1;
  overflow-y: auto;
  max-height: 320px;
  scrollbar-width: thin;
  scrollbar-color: #ddd transparent;
}
.friend-scroll-wrap::-webkit-scrollbar { width: 4px; }
.friend-scroll-wrap::-webkit-scrollbar-thumb { background: #ddd; border-radius: 4px; }
.friend-list ul { list-style: none; padding: 0; margin: 0; }
.friend-list li {
  font-size: 12px;
  color: var(--color-ink-700);
  padding: 9px 0;
  border-bottom: 1px solid #ececec;
}
.friend-list li:last-child { border-bottom: 0; }

/* Multimedia */
.multimedia-section {
  background: #2a2a28;
  padding: 64px 0 72px;
  color: var(--color-white);
}
.media-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.media-header h2 {
  font-size: 28px;
  font-weight: 850;
  margin: 0;
}
.media-tab-group,
.media-tabs {
  display: flex;
  gap: 6px;
  background: rgba(255,255,255,.08);
  border-radius: var(--radius-pill);
  padding: 4px;
}
.media-tabs {
  flex-wrap: wrap;
  margin: 0 0 24px;
  background: #eef7fc;
  border: 1px solid rgba(12, 116, 185, .16);
}
.media-tab {
  border: 0;
  border-radius: var(--radius-pill);
  padding: 8px 22px;
  background: transparent;
  color: rgba(255,255,255,.6);
  font-size: 13px;
  cursor: pointer;
  transition: all .18s var(--ease);
}
.media-tabs .media-tab {
  color: #0f2334;
  font-weight: 800;
}
.media-tab:hover { color: var(--color-white); }
.media-tabs .media-tab:hover { background: rgba(12, 116, 185, .12); color: #08334f; }
.media-tab.active {
  background: var(--color-white);
  color: var(--color-ink-850);
  font-weight: 750;
}
.media-tabs .media-tab.active {
  background: #0c74b9;
  color: var(--color-white);
  box-shadow: 0 8px 18px rgba(12, 116, 185, .2);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.media-card {
  position: relative;
  height: 160px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #444;
  cursor: pointer;
  display: block;
  color: inherit;
  text-decoration: none;
}
.media-card-lg {
  grid-column: span 2;
  grid-row: span 2;
  height: auto;
}
.media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s var(--ease);
}
.media-card:hover img { transform: scale(1.06); }
.media-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.88) 100%);
  z-index: 1;
}
.media-card-footer {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  z-index: 2;
  padding: 14px 16px;
}
.media-card-footer h3 {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  font-weight: 800;
  color: var(--color-white);
}
.media-card-lg .media-card-footer h3 { font-size: 16px; }
.media-play-btn {
  position: absolute;
  z-index: 3;
  top: 12px;
  left: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.92);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
  transition: transform .18s var(--ease);
}
.media-play-btn::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 9px solid #2a2a28;
  margin-right: 2px;
}
.media-play-btn:hover { transform: scale(1.1); }
.media-view-all {
  display: inline-block;
  margin-top: 28px;
  padding: 9px 32px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-pill);
  color: rgba(255,255,255,.7);
  font-size: 12px;
  transition: all .18s var(--ease);
  text-align: center;
}
.media-view-all:hover {
  background: rgba(255,255,255,.1);
  color: var(--color-white);
  border-color: rgba(255,255,255,.4);
}

/* Footer */
.site-footer {
  background: #e8e6df;
  padding: 56px 0 0;
  color: var(--color-ink-700);
}
.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}
.footer-col h4 {
  font-size: 14px;
  font-weight: 850;
  color: var(--color-ink-850);
  margin: 0 0 16px;
}
.footer-brand-col img {
  width: 72px;
  height: auto;
  margin-bottom: 12px;
}
.footer-brand-col p {
  font-size: 13px;
  line-height: 1.9;
  margin: 0;
  color: var(--color-ink-600);
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col li { margin-bottom: 10px; }
.footer-col li:last-child { margin-bottom: 0; }
.footer-col a {
  font-size: 13px;
  color: var(--color-ink-600);
  transition: color .18s var(--ease);
}
.footer-col a:hover { color: var(--color-ink-950); }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 12px;
  color: var(--color-ink-600);
}
.footer-contact-item span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.footer-contact-item .fc-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,.05);
  display: grid;
  place-items: center;
  font-size: 12px;
  flex: 0 0 auto;
  margin-top: 2px;
}
.footer-divider {
  height: 1px;
  background: rgba(0,0,0,.07);
  margin: 32px 0;
}
.footer-orgs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.footer-orgs a {
  min-height: 52px;
  background: rgba(255,255,255,.6);
  border-radius: var(--radius-xs);
  color: var(--color-ink-600);
  text-align: center;
  display: grid;
  place-items: center;
  font-size: 11px;
  line-height: 1.6;
  padding: 8px 10px;
  transition: all .18s var(--ease);
  border: 1px solid rgba(0,0,0,.03);
  overflow-wrap: anywhere;
  word-break: break-word;
}
.footer-orgs a:hover {
  background: rgba(255,255,255,.9);
  color: var(--color-ink-950);
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px 0 28px;
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0,0,0,.04);
  display: grid;
  place-items: center;
  font-size: 13px;
  color: var(--color-ink-500);
  transition: all .18s var(--ease);
}
.footer-social a:hover {
  background: var(--color-ink-850);
  color: var(--color-white);
}
.footer-copy {
  font-size: 11px;
  color: var(--color-ink-400);
}

/* Motion and component states */
.news-card,
.access-item,
.commission-item,
.media-card,
.org-links a,
.quick-menu-link {
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), opacity .18s var(--ease), background .18s var(--ease);
}
.news-card:hover,
.media-card:hover { transform: translateY(-2px); }
.access-item:hover,
.commission-item:hover,
.org-links a:hover { opacity: .78; }
[data-filter-hidden="true"] { display: none !important; }

/* Responsive */
@media (max-width: 991.98px) {
  .site-container { width: min(calc(100% - 28px), var(--container-width)); }
  .site-header { min-height: auto; }
  .header-top {
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: auto;
    padding-block: 14px 12px;
  }
  .brand-note { justify-self: center; text-align: right; width: 100%; }
  .brand-note-media { width: 80px; height: 80px; }
  .header-logo-simple { width: 100%; }
  .header-left-actions { grid-column: 1; justify-self: center; justify-content: center; flex-wrap: wrap; }
  .seal-img { width: 78px; height: 78px; }
  .main-navbar { padding-top: 18px; }
  .top-nav-menu { align-items: stretch; gap: 0; padding-top: 14px; }
  .main-navbar .nav-link { width: 100%; justify-content: space-between; padding: 9px 0; }
  .top-nav-item { width: 100%; }
  .top-submenu {
    position: static;
    width: auto;
    box-shadow: none;
    border: 0;
    border-radius: 10px;
    margin: 0 0 8px;
    padding: 4px 16px 8px;
    background: #fbfbfb;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }
  .top-submenu::before { display: none; }
  .top-nav-item.is-open > .top-submenu { display: block; }
  .header-search-panel { top: 100%; }
  .hero-grid,
  .representative-layout,
  .friendship-layout,
  .multimedia-layout { grid-template-columns: 1fr; }
  .quick-menu { order: 3; min-height: auto; }
  .hero-slider { height: 280px; min-height: 280px; }
  .news-card-main { height: 280px; }
  .side-news { grid-template-columns: repeat(2, 1fr); grid-template-rows: none; height: auto; }
  .side-card { height: 180px; }
  .quick-submenu {
    position: static;
    width: auto;
    box-shadow: none;
    border: 0;
    border-bottom: var(--border-soft);
    border-radius: 0;
    padding: 0 20px 8px;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    background: #fbfbfb;
  }
  .quick-menu-item.is-open > .quick-submenu { display: block; }
  .section-heading { flex-wrap: wrap; }
  .commission-grid { grid-template-columns: repeat(3, 1fr); }
  .fraction-columns { grid-template-columns: 1fr; gap: 0; }
  .fraction-grid { grid-template-columns: repeat(2, 1fr); }
  .fraction-link { padding: 12px 14px; font-size: 11px; }
  .media-grid { grid-template-columns: repeat(3, 1fr); }
  .media-card-lg { grid-column: span 2; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand-col { grid-column: span 2; }
}

@media (max-width: 575.98px) {
  body { font-size: 13px; }
  .brand-note { display: flex; }
  .header-top { justify-content: center; gap: 12px; }
  .brand-note-media { width: 64px; height: 64px; }
  .header-logo-simple { width: 100%; }
  .header-left-actions { width: 100%; gap: 8px; }
  .header-service-pill, .header-contact-card { flex: 1 1 0; min-width: 0; }
  .header-service-pill { padding-inline: 10px; font-size: 11px; }
  .header-contact-card { min-width: 0; padding-inline: 10px; }
  .header-contact-card strong { font-size: 12px; }
  .black-rail { width: 100%; border-radius: 0; }
  .black-rail::after { width: 86px; }
  .navbar-nav { gap: 12px; padding-top: 14px; }
  .header-search-panel { top: 100%; padding: 14px; border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
  .header-search-field { grid-template-columns: 1fr; }
  .header-search-field button { height: 38px; }
  .hero-section { padding-top: 18px; }
  .hero-slider, .news-card-main { height: 280px; min-height: 280px; }
  .side-news { grid-template-columns: 1fr; }
  .side-card { height: 170px; }
  .access-panel { grid-template-columns: 1fr; height: auto; padding: 10px 0; }
  .access-item:not(:last-child)::after { display: none; }
  .representatives-section,
  .commissions-section,
  .fractions-section,
  .friendship-section { padding: 52px 0; }
  .section-heading h2 { font-size: 23px; }
  .tabs { overflow-x: auto; padding-bottom: 6px; }
  .tab-pill { white-space: nowrap; padding-inline: 14px; }
  .people-panel,
  .friend-list { padding: 16px; }
  .representative-map { min-height: auto; }
  .map-img { height: auto; }
  .commission-card { padding: 30px 20px; }
  .commission-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
  .commission-item strong { font-size: 20px; }
  .fraction-card { padding: 34px 24px; }
  .rail-arrow { display: none; }
  .media-grid { grid-template-columns: repeat(2, 1fr); }
  .media-card-lg { grid-column: span 2; grid-row: auto; }
  .media-card { height: 140px; }
  .media-header { flex-direction: column; align-items: flex-start; }
  .footer-main { grid-template-columns: 1fr; gap: 24px; }
  .footer-brand-col { grid-column: span 1; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-orgs { grid-template-columns: repeat(3, 1fr); }
  .top-nav-list { overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  .top-nav-list .top-nav-link { padding: 11px 12px; font-size: 11px; }
}

/* Tourism directory: all rules are isolated from the shared tourism/home cards. */
.tourism-directory-page { --tourism-accent: #236b4b; --tourism-accent-soft: #edf6f1; width: 100%; max-width: 100%; color: var(--color-ink-950); overflow-x: clip; }
.tourism-directory-page .site-container,
.tourism-directory-page .tourism-directory-intro-copy,
.tourism-directory-page .tourism-directory-section-heading,
.tourism-directory-page .tourism-directory-results { min-width: 0; max-width: 100%; }
.tourism-directory-page .tourism-directory-header { padding: 30px 0 26px; min-height: 0; background: #111820; }
.tourism-directory-page .tourism-directory-header h1 { margin: 0 0 6px; color: #fff; font-size: clamp(23px, 3vw, 31px); font-weight: 750; }
.tourism-directory-page .tourism-directory-header > .site-container > p { margin: 0 0 11px; color: rgba(255,255,255,.7); font-size: 12.5px; }
.tourism-directory-page .tourism-directory-header .breadcrumb { color: rgba(255,255,255,.58); font-size: 10.5px; }
.tourism-directory-page .tourism-directory-header .breadcrumb a { color: rgba(255,255,255,.82); }
.tourism-directory-page .tourism-directory-intro { padding: 38px 0; background: #fff; }
.tourism-directory-page .tourism-directory-intro-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr); gap: 32px; align-items: center; }
.tourism-directory-page .tourism-directory-eyebrow,
.tourism-directory-page .tourism-directory-section-heading > div > span { display: block; margin-bottom: 6px; color: var(--tourism-accent); font-size: 10.5px; font-weight: 650; }
.tourism-directory-page .tourism-directory-intro-copy h2 { margin: 0 0 10px; color: var(--color-ink-950); font-size: clamp(21px, 2.4vw, 27px); font-weight: 720; }
.tourism-directory-page .tourism-directory-intro-copy > p { max-width: 700px; margin: 0 0 7px; color: var(--color-ink-600); font-size: 12px; line-height: 1.9; }
.tourism-directory-page .tourism-directory-intro-subtext { color: var(--color-ink-500) !important; }
.tourism-directory-page .tourism-directory-intro-actions { display: flex; gap: 8px; margin-top: 15px; }
.tourism-directory-page .tourism-directory-primary-action,
.tourism-directory-page .tourism-directory-secondary-action { display: inline-flex; min-height: 36px; align-items: center; justify-content: center; padding: 7px 16px; border: 1px solid var(--tourism-accent); border-radius: 7px; font-size: 11.5px; font-weight: 650; }
.tourism-directory-page .tourism-directory-primary-action { background: var(--tourism-accent); color: #fff; }
.tourism-directory-page .tourism-directory-secondary-action { background: #fff; color: var(--tourism-accent); }
.tourism-directory-page .tourism-directory-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.tourism-directory-page .tourism-directory-stat { min-width: 0; padding: 9px 8px; border: 1px solid #dfe9e4; border-radius: 7px; background: #f9fbfa; text-align: center; }
.tourism-directory-page .tourism-directory-stat strong { display: block; color: var(--tourism-accent); font-size: 19px; font-weight: 680; line-height: 1.2; }
.tourism-directory-page .tourism-directory-stat span { display: block; margin-top: 3px; overflow-wrap: anywhere; color: var(--color-ink-500); font-size: 9.5px; }
.tourism-directory-page .tourism-directory-intro-media { aspect-ratio: 16 / 10; min-width: 0; margin: 0; overflow: hidden; border: 1px solid #dfe7e3; border-radius: 9px; background: var(--tourism-accent-soft); }
.tourism-directory-page .tourism-directory-intro-media img { width: 100%; height: 100%; object-fit: cover; }
.tourism-directory-page .tourism-directory-attractions { padding: 40px 0 46px; background: #f6f8fa; scroll-margin-top: 18px; }
.tourism-directory-page .tourism-directory-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.tourism-directory-page .tourism-directory-section-heading h2 { margin: 0; color: var(--color-ink-950); font-size: 20px; font-weight: 720; }
.tourism-directory-page .tourism-directory-section-heading > p { margin: 0; color: var(--color-ink-500); font-size: 11.5px; }
.tourism-directory-page .tourism-type-tabs { display: flex; width: 100%; max-width: 100%; gap: 7px; margin-bottom: 15px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.tourism-directory-page .tourism-type-tabs::-webkit-scrollbar { display: none; }
.tourism-directory-page .tourism-type-tab { display: inline-flex; flex: 0 0 auto; min-height: 38px; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid #d7e0e5; border-radius: 7px; background: #fff; color: #203c3b; font-size: 11.5px; font-weight: 520; }
.tourism-directory-page .tourism-type-tab svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.tourism-directory-page .tourism-type-tab b { min-width: 19px; padding: 1px 5px; border-radius: 9px; background: #edf1f3; color: inherit; font-size: 9.5px; font-weight: 650; text-align: center; }
.tourism-directory-page .tourism-type-tab.is-active { border-color: var(--tourism-accent); background: var(--tourism-accent); color: #fff; font-weight: 650; }
.tourism-directory-page .tourism-type-tab.is-active b { background: rgba(255,255,255,.18); }
.tourism-directory-page .tourism-type-tab[aria-disabled="true"] { pointer-events: none; opacity: .65; }
.tourism-directory-page .tourism-directory-status { min-height: 18px; margin: 0; color: var(--color-ink-500); font-size: 10.5px; }
.tourism-directory-page .tourism-directory-results { transition: opacity .18s ease; }
.tourism-directory-page .tourism-directory-results[aria-busy="true"] { opacity: .58; }
.tourism-directory-page .tourism-directory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.tourism-directory-page .tourism-directory-card { display: flex; min-width: 0; height: 100%; flex-direction: column; overflow: hidden; border: 1px solid #dce4e8; border-radius: 9px; background: #fff; box-shadow: 0 4px 15px rgba(15,35,52,.035); transition: transform .18s ease, box-shadow .18s ease; }
.tourism-directory-page .tourism-directory-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15,35,52,.075); }
.tourism-directory-page .tourism-directory-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--tourism-accent-soft); }
.tourism-directory-page .tourism-directory-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .22s ease; }
.tourism-directory-page .tourism-directory-card:hover .tourism-directory-media img { transform: scale(1.025); }
.tourism-directory-page .tourism-directory-badge { position: absolute; right: 9px; bottom: 9px; padding: 3px 7px; border-radius: 5px; background: rgba(20,65,47,.88); color: #fff; font-size: 10px; font-weight: 560; }
.tourism-directory-page .tourism-directory-body { display: flex; flex: 1; min-width: 0; flex-direction: column; padding: 12px 13px 13px; }
.tourism-directory-page .tourism-directory-title { display: -webkit-box; margin: 0 0 5px; overflow: hidden; font-size: 14.5px; font-weight: 650; line-height: 1.7; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.tourism-directory-page .tourism-directory-title a { color: var(--color-ink-950); }
.tourism-directory-page .tourism-directory-description { display: -webkit-box; min-height: 41px; margin: 0 0 8px; overflow: hidden; color: var(--color-ink-500); font-size: 11.5px; line-height: 1.8; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.tourism-directory-page .tourism-directory-meta { display: grid; gap: 5px; margin: 0 0 9px; padding: 0; list-style: none; }
.tourism-directory-page .tourism-directory-meta li { display: flex; min-width: 0; align-items: center; gap: 5px; color: var(--color-ink-500); font-size: 10.5px; }
.tourism-directory-page .tourism-directory-meta svg { width: 13px; height: 13px; flex: 0 0 auto; fill: none; stroke: var(--tourism-accent); stroke-width: 1.7; }
.tourism-directory-page .tourism-directory-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tourism-directory-page .tourism-directory-action { display: inline-flex; width: max-content; align-items: center; gap: 4px; margin-top: auto; color: var(--tourism-accent); font-size: 11.5px; font-weight: 650; }
.tourism-directory-page .tourism-directory-action svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.tourism-directory-page :is(.tourism-type-tab,.tourism-directory-primary-action,.tourism-directory-secondary-action,.tourism-directory-action,.tourism-gallery-item,.tourism-directory-cta-box a):focus-visible { outline: 3px solid rgba(35,107,75,.3); outline-offset: 3px; }
.tourism-directory-page .tourism-directory-empty { grid-column: 1 / -1; padding: 32px 18px; border: 1px dashed #ccd9d2; border-radius: 9px; background: #fff; text-align: center; }
.tourism-directory-page .tourism-directory-empty svg { width: 31px; fill: none; stroke: var(--tourism-accent); stroke-width: 1.5; }
.tourism-directory-page .tourism-directory-empty h3 { margin: 7px 0 3px; font-size: 15px; }
.tourism-directory-page .tourism-directory-empty p { margin: 0 0 10px; color: var(--color-ink-500); font-size: 11.5px; }
.tourism-directory-page .tourism-directory-empty a { color: var(--tourism-accent); font-size: 11.5px; font-weight: 650; }
.tourism-directory-page .tourism-directory-gallery { padding: 40px 0; background: #fff; }
.tourism-directory-page .tourism-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.tourism-directory-page .tourism-gallery-item { position: relative; aspect-ratio: 4 / 3; padding: 0; overflow: hidden; border: 0; border-radius: 8px; background: var(--tourism-accent-soft); color: #fff; cursor: pointer; }
.tourism-directory-page .tourism-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .22s ease; }
.tourism-directory-page .tourism-gallery-item:hover img { transform: scale(1.025); }
.tourism-directory-page .tourism-gallery-item > span { position: absolute; right: 0; bottom: 0; left: 0; padding: 24px 10px 8px; overflow: hidden; background: linear-gradient(transparent,rgba(7,21,16,.72)); font-size: 10.5px; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.tourism-directory-page .tourism-gallery-item > svg { position: absolute; top: 8px; left: 8px; width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: rgba(0,0,0,.35); fill: none; stroke: #fff; stroke-width: 1.5; }
.tourism-directory-page .tourism-gallery-empty { padding: 20px; border: 1px dashed #d4dfda; border-radius: 8px; color: var(--color-ink-500); font-size: 11.5px; text-align: center; }
.tourism-directory-page .tourism-directory-cta { padding: 0 0 42px; background: #fff; }
.tourism-directory-page .tourism-directory-cta-box { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; padding: 20px 24px; border-radius: 9px; background: #174c37; color: #fff; }
.tourism-directory-page .tourism-directory-cta-box h2 { margin: 0 0 4px; font-size: 18px; font-weight: 680; }
.tourism-directory-page .tourism-directory-cta-box p { margin: 0; color: rgba(255,255,255,.72); font-size: 11.5px; }
.tourism-directory-page .tourism-directory-cta-box a { display: inline-flex; min-height: 37px; align-items: center; justify-content: center; padding: 8px 15px; border-radius: 7px; background: #fff; color: #174c37; font-size: 11.5px; font-weight: 650; }
@media (max-width: 991.98px) {
  .tourism-directory-page .tourism-directory-intro-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .tourism-directory-page .tourism-directory-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tourism-directory-page .tourism-directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
  .tourism-directory-page .tourism-directory-intro-grid { grid-template-columns: 1fr; }
  .tourism-directory-page .tourism-directory-intro-media { max-height: 310px; }
  .tourism-directory-page .tourism-directory-section-heading { display: block; }
  .tourism-directory-page .tourism-directory-section-heading > p { margin-top: 5px; }
  .tourism-directory-page .tourism-directory-cta-box { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 639.98px) {
  .tourism-directory-page .tourism-directory-header { padding: 22px 0 19px; }
  .tourism-directory-page .tourism-directory-header > .site-container > p { font-size: 11px; line-height: 1.7; }
  .tourism-directory-page .tourism-directory-intro { padding: 26px 0; }
  .tourism-directory-page .tourism-directory-intro-grid { gap: 18px; }
  .tourism-directory-page .tourism-directory-intro-subtext { display: none; }
  .tourism-directory-page .tourism-directory-intro-actions > a { flex: 1; padding-inline: 8px; }
  .tourism-directory-page .tourism-directory-intro-media { max-height: 230px; }
  .tourism-directory-page .tourism-directory-attractions { padding: 30px 0 34px; }
  .tourism-directory-page .tourism-directory-grid { grid-template-columns: 1fr; gap: 11px; }
  .tourism-directory-page .tourism-directory-card { display: grid; grid-template-columns: 40% minmax(0,60%); }
  .tourism-directory-page .tourism-directory-media { height: 100%; min-height: 170px; aspect-ratio: auto; }
  .tourism-directory-page .tourism-directory-title { font-size: 13px; }
  .tourism-directory-page .tourism-directory-description { min-height: 36px; font-size: 10.7px; }
  .tourism-directory-page .tourism-directory-meta li:nth-child(n+2) { display: none; }
  .tourism-directory-page .tourism-directory-gallery { padding: 30px 0; }
  .tourism-directory-page .tourism-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 7px; }
  .tourism-directory-page .tourism-directory-cta { padding-bottom: 30px; }
  .tourism-directory-page .tourism-directory-cta-box { padding: 17px; text-align: right; }
  .tourism-directory-page .tourism-directory-cta-box a { width: 100%; }
}
@media (max-width: 374.98px) {
  .tourism-directory-page .tourism-directory-card { display: flex; }
  .tourism-directory-page .tourism-directory-media { height: auto; min-height: 0; aspect-ratio: 16 / 7; }
}


/* Custom fix: vertical submenu opens to the left of the hovered item on desktop. */
.hero-section, .hero-grid, .quick-menu, .site-header, .main-navbar { overflow: visible; }
.quick-menu-item:hover { z-index: 45; }
@media (min-width: 992px) {
  .quick-submenu { right: calc(100% + 8px); left: auto; }
}
@media (max-width: 991.98px) {
  .quick-submenu { right: auto; left: auto; }
}

/* =========================================================
   Page Header / Breadcrumb
   ========================================================= */
.page-header {
  background: var(--color-ink-950);
  color: var(--color-white);
  padding: 36px 0 32px;
}
.page-header h1 {
  font-size: 26px;
  font-weight: 850;
  margin: 0 0 8px;
}
.breadcrumb-nav {
  font-size: 12px;
  color: rgba(255,255,255,.6);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.breadcrumb-nav a { color: rgba(255,255,255,.8); }
.breadcrumb-nav a:hover { color: #fff; }
.breadcrumb-sep { opacity: .5; }

/* =========================================================
   Single Post Page
   ========================================================= */
.single-post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  padding: 48px 0 64px;
  align-items: start;
}
.single-post-breadcrumb-bar {
  padding-block: 12px;
}
.single-post-breadcrumb-bar .breadcrumb-nav {
  min-width: 0;
  flex-wrap: nowrap;
  font-size: 11.5px;
}
.single-post-breadcrumb-bar .breadcrumb-nav > * {
  flex: 0 0 auto;
}
.single-post-breadcrumb-bar .breadcrumb-nav > :last-child {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.single-post-article {
  min-width: 0;
  background: var(--color-white);
  border-radius: var(--radius-sm);
  border: var(--border-soft);
  overflow: hidden;
}
.single-post-article .post-featured-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
.single-post-body {
  padding: 32px 36px;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--color-ink-500);
  margin-bottom: 20px;
}
.post-meta span { display: flex; align-items: center; gap: 5px; }
.post-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--color-ink-300); }
.single-post-body h1 {
  font-size: 28px;
  font-weight: 850;
  line-height: 1.55;
  margin: 0 0 16px;
  color: var(--color-ink-950);
}
.single-post-body .post-excerpt {
  font-size: 15px;
  color: var(--color-ink-600);
  line-height: 1.9;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f1f1f1;
}
.single-post-body .post-content {
  font-size: 14px;
  line-height: 2.1;
  color: var(--color-ink-850);
}
.single-post-body .post-content p { margin: 0 0 18px; }
.post-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #f1f1f1;
}
.post-tag {
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  background: #f5f5f5;
  color: var(--color-ink-600);
  font-size: 11px;
}
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #f1f1f1;
}
.post-nav-link {
  padding: 16px;
  border-radius: var(--radius-sm);
  background: #fafafa;
  font-size: 12px;
  color: var(--color-ink-600);
  transition: background .18s var(--ease);
}
.post-nav-link:hover { background: #f0f0f0; }
.post-nav-link strong {
  display: block;
  font-size: 13px;
  color: var(--color-ink-850);
  font-weight: 800;
  margin-top: 4px;
}
.post-nav-next { text-align: left; }

/* Sidebar */
.single-post-page .single-post-sidebar {
  min-width: 0;
  position: sticky;
  top: calc(var(--desktop-sticky-stack-height, 89px) + 16px);
  align-self: start;
  display: grid;
  gap: 24px;
}
.sidebar-card {
  background: var(--color-white);
  border: var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 22px 20px;
}
.sidebar-card h3 {
  font-size: 15px;
  font-weight: 850;
  margin: 0 0 14px;
  color: var(--color-ink-950);
}
.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-list li {
  padding: 8px 0;
  border-bottom: 1px solid #f5f5f5;
  font-size: 12px;
}
.sidebar-list li:last-child { border-bottom: 0; }
.sidebar-list a {
  color: var(--color-ink-700);
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-list a:hover { color: var(--color-ink-950); }
.sidebar-list a::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-ink-300);
  flex: 0 0 auto;
}

/* =========================================================
   Archive / Blog Page
   ========================================================= */
.archive-page { padding: 48px 0 64px; }
.archive-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}
.archive-header h1 {
  font-size: 26px;
  font-weight: 850;
  margin: 0;
  color: var(--color-ink-950);
}
.archive-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.archive-card {
  border: var(--border-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-white);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.archive-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.archive-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.archive-card-body {
  padding: 20px;
}
.archive-card-body .card-cat {
  display: inline-block;
  font-size: 10px;
  color: var(--color-primary);
  font-weight: 750;
  margin-bottom: 8px;
}
.archive-card-body h2 {
  font-size: 16px;
  font-weight: 850;
  line-height: 1.6;
  margin: 0 0 10px;
  color: var(--color-ink-950);
}
.archive-card-body p {
  font-size: 12px;
  color: var(--color-ink-600);
  line-height: 1.9;
  margin: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.archive-card-body .card-date {
  font-size: 11px;
  color: var(--color-ink-400);
  margin-top: 12px;
  display: block;
}

/* Pagination */
.pagination-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
}
.pagination-nav a,
.pagination-nav span {
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-ink-200);
  border-radius: var(--radius-xs);
  font-size: 12px;
  color: var(--color-ink-700);
  transition: all .18s var(--ease);
}
.pagination-nav a:hover {
  border-color: var(--color-ink-850);
  background: var(--color-ink-850);
  color: var(--color-white);
}
.pagination-nav .current {
  border-color: var(--color-ink-850);
  background: var(--color-ink-850);
  color: var(--color-white);
  font-weight: 750;
}

/* =========================================================
   Guild Single Page
   ========================================================= */
.guild-hero {
  background: var(--color-ink-950);
  color: var(--color-white);
  padding: 0;
  position: relative;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  align-items: center;
}
.guild-hero-bg {
  position: absolute;
  inset: 0;
  opacity: .15;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.guild-hero-content {
  position: relative;
  z-index: 2;
  padding: 48px 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
}
.guild-hero-logo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: 2px solid rgba(255,255,255,.2);
  display: grid;
  place-items: center;
  font-size: 36px;
  font-weight: 850;
  color: rgba(255,255,255,.8);
  flex: 0 0 auto;
}
.guild-hero-text h1 {
  font-size: 30px;
  font-weight: 850;
  margin: 0 0 6px;
}
.guild-hero-text p {
  font-size: 13px;
  color: rgba(255,255,255,.65);
  margin: 0;
  line-height: 1.8;
}
.guild-hero-stats {
  display: flex;
  gap: 24px;
  margin-top: 14px;
}
.guild-hero-stats span {
  font-size: 12px;
  color: rgba(255,255,255,.7);
  display: flex;
  align-items: center;
  gap: 5px;
}
.guild-hero-stats strong {
  color: var(--color-white);
  font-weight: 850;
}

.guild-section { padding: 56px 0; }
.guild-section-alt { background: #f8f8f7; }
.guild-section-title {
  font-size: 22px;
  font-weight: 850;
  margin: 0 0 28px;
  color: var(--color-ink-950);
  display: flex;
  align-items: center;
  gap: 12px;
}
.guild-section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-ink-200);
}

/* Guild News Slider */
.guild-news-slider {
  border-radius: var(--radius-sm);
  overflow: hidden;
  height: 320px;
  position: relative;
}
.guild-news-slider .swiper-slide {
  position: relative;
  height: 320px;
}
.guild-news-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.guild-news-slider .slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(0,0,0,.85) 100%);
  z-index: 1;
}
.guild-news-slider .slide-text {
  position: absolute;
  bottom: 24px;
  right: 24px;
  left: 24px;
  z-index: 2;
  color: var(--color-white);
}
.guild-news-slider .slide-text h3 {
  font-size: 20px;
  font-weight: 850;
  margin: 0 0 6px;
}
.guild-news-slider .slide-text span {
  font-size: 12px;
  opacity: .7;
}
.guild-news-slider .slider-arrows {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 16px;
  pointer-events: none;
}
.guild-news-slider .slider-arrows button {
  pointer-events: auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.2);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: background .18s var(--ease);
}
.guild-news-slider .slider-arrows button:hover { background: rgba(255,255,255,.4); }
.guild-news-slider .swiper-pagination {
  position: absolute;
  bottom: 12px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 5px;
  width: 100%;
}
.guild-news-slider .swiper-pagination .swiper-pagination-bullet {
  width: 20px;
  height: 3px;
  border-radius: 4px;
  background: rgba(255,255,255,.45);
  opacity: 1;
}
.guild-news-slider .swiper-pagination .swiper-pagination-bullet-active {
  background: var(--color-white);
}

/* Guild Members */
.guild-head-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: start;
  background: var(--color-white);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-sm);
  padding: 32px 36px;
  box-shadow: var(--shadow-card);
}
.guild-head-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--color-primary-soft);
  display: grid;
  place-items: center;
  font-size: 36px;
  font-weight: 900;
  color: var(--color-primary);
  flex: 0 0 auto;
}
.guild-head-info strong {
  display: block;
  font-size: 20px;
  font-weight: 850;
  color: var(--color-ink-950);
}
.guild-head-info > span {
  display: block;
  font-size: 12px;
  color: var(--color-ink-500);
  margin: 4px 0 12px;
}
.guild-head-info p {
  font-size: 13px;
  line-height: 2;
  color: var(--color-ink-600);
  margin: 0 0 16px;
  max-width: 560px;
}
.guild-head-contact {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.guild-head-contact a {
  display: inline-block;
  padding: 8px 22px;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 12px;
  font-weight: 700;
  transition: opacity .18s var(--ease);
}
.guild-head-contact a:hover { opacity: .85; }
.guild-head-contact a:last-child {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.guild-members-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.guild-member-card {
  background: var(--color-white);
  border: var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 24px 16px;
  text-align: center;
  transition: transform .18s var(--ease);
}
.guild-member-card:hover { transform: translateY(-2px); }
.guild-member-card .member-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-ink-200);
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 850;
  color: var(--color-ink-500);
}
.guild-member-card.is-head {
  border-color: var(--color-primary);
  border-width: 2px;
  position: relative;
}
.guild-member-card.is-head::before {
  content: "رییس اتحادیه";
  position: absolute;
  top: -10px;
  right: 50%;
  transform: translateX(50%);
  background: var(--color-primary);
  color: #fff;
  font-size: 10px;
  padding: 2px 12px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.guild-member-card strong {
  display: block;
  font-size: 14px;
  font-weight: 850;
  color: var(--color-ink-950);
}
.guild-member-card small {
  display: block;
  font-size: 11px;
  color: var(--color-ink-500);
  margin-top: 4px;
}

/* Guild Grid Layout for various sections */
.guild-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.guild-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.guild-4col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Guild Info Cards */
.guild-info-card {
  border: var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 24px;
  background: var(--color-white);
  min-height: 120px;
}
.guild-info-card h4 {
  font-size: 14px;
  font-weight: 850;
  margin: 0 0 12px;
  color: var(--color-ink-950);
}
.guild-info-card p,
.guild-info-card li {
  font-size: 12px;
  color: var(--color-ink-600);
  line-height: 2;
}
.guild-info-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Price List Table */
.price-table-wrap {
  overflow-x: auto;
  border: var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--color-white);
}
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.price-table th {
  background: var(--color-ink-950);
  color: var(--color-white);
  padding: 12px 16px;
  text-align: right;
  font-weight: 750;
  font-size: 12px;
  white-space: nowrap;
}
.price-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f1f1;
  color: var(--color-ink-700);
}
.price-table tr:last-child td { border-bottom: 0; }
.price-table tr:hover td { background: #fafafa; }

/* Guild Gallery Tabs */
.guild-gallery-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
.guild-gallery-tabs .tab-pill { cursor: pointer; }

/* Guild Complaint CTA */
.guild-complaint-cta {
  border: var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 32px 24px;
  background: var(--color-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  min-height: 120px;
}
.guild-complaint-cta strong {
  font-size: 15px;
  font-weight: 850;
  color: var(--color-ink-950);
}

/* Guild Search Section */
.guild-search-desc {
  font-size: 13px;
  color: var(--color-ink-500);
  margin: -16px 0 18px;
  line-height: 1.8;
}

/* Guild Gallery */
.guild-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.guild-gallery-item {
  height: 160px;
  border-radius: var(--radius-xs);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.guild-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s var(--ease);
}
.guild-gallery-item:hover img { transform: scale(1.05); }
.guild-gallery-item.video::after {
  content: "▶";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  display: grid;
  place-items: center;
  font-size: 16px;
  color: var(--color-ink-850);
}
.guild-gallery-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 12px;
}
.guild-gallery-more a {
  color: var(--color-primary);
  font-weight: 750;
  padding: 6px 20px;
  border: 1px solid var(--color-primary-soft);
  border-radius: var(--radius-pill);
  transition: all .18s var(--ease);
}
.guild-gallery-more a:hover {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

/* Guild Search */
.guild-search-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 12px;
  max-width: 520px;
}
.guild-search-box input {
  height: 44px;
  border: 1px solid #e5e5e5;
  border-radius: var(--radius-pill);
  padding: 0 18px;
  outline: 0;
  font-size: 13px;
}
.guild-search-box input:focus { border-color: #c4dcdf; box-shadow: 0 0 0 4px rgba(12,116,185,.06); }
.guild-search-box button {
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--color-ink-850);
  color: var(--color-white);
  font-size: 13px;
  cursor: pointer;
}

/* Guild Contact */
.guild-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.guild-contact-card {
  border: var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 20px;
  background: var(--color-white);
  display: flex;
  align-items: center;
  gap: 16px;
}
.guild-contact-card .contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f5f5f5;
  display: grid;
  place-items: center;
  font-size: 18px;
  flex: 0 0 auto;
}
.guild-contact-card strong {
  display: block;
  font-size: 13px;
  font-weight: 850;
  color: var(--color-ink-950);
}
.guild-contact-card span {
  font-size: 12px;
  color: var(--color-ink-600);
}

/* Social Icons */
.guild-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.guild-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--color-ink-200);
  display: grid;
  place-items: center;
  font-size: 14px;
  color: var(--color-ink-500);
  transition: all .18s var(--ease);
}
.guild-social a:hover {
  border-color: var(--color-ink-850);
  background: var(--color-ink-850);
  color: var(--color-white);
}

/* Guild Articles List */
.guild-article-list { display: grid; gap: 16px; }
.guild-article-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 16px;
  border: var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  transition: transform .18s var(--ease);
}
.guild-article-item:hover { transform: translateX(-3px); }
.guild-article-item img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-xs);
}
.guild-article-item h4 {
  font-size: 14px;
  font-weight: 850;
  margin: 0 0 6px;
  color: var(--color-ink-950);
}
.guild-article-item p {
  font-size: 12px;
  color: var(--color-ink-600);
  margin: 0;
  line-height: 1.8;
}
.guild-article-item .item-date {
  font-size: 11px;
  color: var(--color-ink-400);
  margin-top: 6px;
  display: block;
}

/* Guild Commission List */
.guild-commission-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.guild-commission-item {
  padding: 16px 20px;
  border: var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform .18s var(--ease);
}
.guild-commission-item:hover { transform: translateY(-2px); }
.guild-commission-item .com-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-ink-950);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 750;
  flex: 0 0 auto;
}
.guild-commission-item strong {
  font-size: 13px;
  font-weight: 850;
  color: var(--color-ink-950);
}
.guild-commission-item small {
  display: block;
  font-size: 11px;
  color: var(--color-ink-500);
}

/* Guild Rules */
.guild-rules-list { display: grid; gap: 12px; }
.guild-rule-item {
  padding: 16px 20px;
  border: var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: transform .18s var(--ease);
}
.guild-rule-item:hover { transform: translateX(-3px); }
.guild-rule-item .rule-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #f5f5f5;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: 16px;
}
.guild-rule-item strong {
  font-size: 13px;
  font-weight: 850;
  color: var(--color-ink-950);
}
.guild-rule-item small {
  display: block;
  font-size: 11px;
  color: var(--color-ink-500);
}

/* Guild layout (sidebar + content) */
.guild-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 32px;
  padding: 40px 0;
  align-items: start;
}

/* Guild sidebar quick nav */
.guild-side-nav {
  position: sticky;
  top: 24px;
  border: var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  padding: 16px;
}
.guild-side-nav h4 {
  font-size: 14px;
  font-weight: 850;
  margin: 0 0 12px;
  color: var(--color-ink-950);
}
.guild-side-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.guild-side-nav li { border-bottom: 1px solid #f5f5f5; }
.guild-side-nav li:last-child { border-bottom: 0; }
.guild-side-nav a {
  display: block;
  padding: 8px 0;
  font-size: 12px;
  color: var(--color-ink-600);
  transition: color .18s var(--ease);
}
.guild-side-nav a:hover { color: var(--color-ink-950); }

/* Meeting Minutes */
.guild-minutes-list { display: grid; gap: 10px; }
.guild-minute-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border: var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  transition: transform .18s var(--ease);
}
.guild-minute-item:hover { transform: translateX(-3px); }
.guild-minute-item .minute-info strong {
  display: block;
  font-size: 13px;
  font-weight: 850;
  color: var(--color-ink-950);
}
.guild-minute-item .minute-info span {
  font-size: 11px;
  color: var(--color-ink-400);
}
.guild-minute-item .minute-dl {
  font-size: 11px;
  color: var(--color-primary);
  font-weight: 750;
}

/* Education items */
.guild-edu-item {
  padding: 20px;
  border: var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  text-align: center;
  transition: transform .18s var(--ease);
}
.guild-edu-item:hover { transform: translateY(-2px); }
.guild-edu-item .edu-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f5f5f5;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  font-size: 20px;
}
.guild-edu-item strong {
  display: block;
  font-size: 13px;
  font-weight: 850;
  color: var(--color-ink-950);
}
.guild-edu-item span {
  font-size: 11px;
  color: var(--color-ink-500);
  margin-top: 4px;
  display: block;
}

/* Announcements */
.guild-announce-list { display: grid; gap: 12px; }
.guild-announce-item {
  padding: 16px 20px;
  border: var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform .18s var(--ease);
}
.guild-announce-item:hover { transform: translateX(-3px); }
.guild-announce-item .announce-badge {
  width: 4px;
  height: 32px;
  border-radius: 4px;
  background: var(--color-danger);
  flex: 0 0 auto;
}
.guild-announce-item strong {
  font-size: 13px;
  font-weight: 850;
  color: var(--color-ink-950);
}
.guild-announce-item span {
  font-size: 11px;
  color: var(--color-ink-400);
  margin-right: auto;
  white-space: nowrap;
}

/* =========================================================
   Tourism Section (Homepage)
   ========================================================= */
.tourism-section {
  padding: 64px 0;
  background: var(--color-white);
}
.tourism-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 28px;
}
.tourism-card {
  border: var(--border-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-white);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.tourism-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.tourism-card a { display: block; }
.tourism-img-wrap {
  position: relative;
  overflow: hidden;
}
.tourism-img-wrap img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform .3s var(--ease);
}
.tourism-card:hover .tourism-img-wrap img { transform: scale(1.06); }
.tourism-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  background: rgba(0,0,0,.55);
  color: var(--color-white);
  font-size: 10px;
  font-weight: 750;
  backdrop-filter: blur(4px);
}
.tourism-card-body {
  padding: 16px;
}
.tourism-card-body h3 {
  font-size: 14px;
  font-weight: 850;
  margin: 0 0 6px;
  color: var(--color-ink-950);
}
.tourism-card-body p {
  font-size: 11px;
  color: var(--color-ink-500);
  margin: 0;
  line-height: 1.8;
}

/* =========================================================
   Home Ad Banners
   ========================================================= */
.home-ad-banners {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 24px 0 24px;
}
.mid-ad { padding: 40px 0; }
.ad-banner {
  position: relative;
  height: 130px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: block;
}
.ad-banner-placeholder {
  outline: 1px dashed rgba(255,255,255,.35);
  outline-offset: -8px;
}
.ad-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s var(--ease);
}
.ad-banner:hover img { transform: scale(1.04); }
.ad-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 100%);
  z-index: 1;
}
.ad-banner-text {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 18px;
  font-weight: 850;
  letter-spacing: 1px;
  line-height: 1.7;
  padding: 0 18px;
  text-align: center;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* In-post gallery */
.post-gallery {
  margin: 36px 0 28px;
}
.post-gallery h3 {
  font-size: 15px;
  font-weight: 850;
  margin: 0 0 14px;
  color: var(--color-ink-950);
}
.post-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.post-gallery-item {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-xs);
  overflow: hidden;
  cursor: pointer;
}
.post-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s var(--ease);
}
.post-gallery-item:hover img { transform: scale(1.06); }

@media (max-width: 575.98px) {
  .post-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 576px) and (max-width: 767.98px) {
  .post-gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Gallery album video indicator */
.gallery-album-video .gallery-album-img {
  position: relative;
}
.gallery-album-video .gallery-album-body h3::after {
  content: "🎥";
  font-size: 14px;
  margin-right: 6px;
}

/* Galleries directory */
.galleries-directory-page { background: #f3f5f7; }
.galleries-directory-page .galleries-directory-header { padding-block: 30px 27px; background: #111; color: #fff; }
.galleries-directory-page .galleries-directory-header .breadcrumb-nav { margin-bottom: 8px; }
.galleries-directory-page .galleries-directory-header .breadcrumb-nav a { color: rgba(255,255,255,.72); }
.galleries-directory-page .galleries-directory-header .breadcrumb-nav span { color: rgba(255,255,255,.52); }
.galleries-directory-page .galleries-directory-header h1 { margin: 0; color: #fff; font-size: 25px; font-weight: 750; line-height: 1.55; }
.galleries-directory-page .galleries-directory-header p { margin: 5px 0 0; color: rgba(255,255,255,.7); font-size: 12.5px; line-height: 1.8; }
.galleries-directory-page .galleries-directory-main { padding-block: 30px 52px; }
.galleries-directory-page .galleries-directory-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; padding: 17px 18px; border: 1px solid rgba(15,35,52,.1); border-radius: 10px; background: #fff; box-shadow: 0 3px 12px rgba(15,35,52,.035); }
.galleries-directory-page .galleries-directory-heading { min-width: 0; }
.galleries-directory-page .galleries-directory-heading > span { display: block; margin-bottom: 2px; color: var(--color-primary); font-size: 10.5px; font-weight: 700; }
.galleries-directory-page .galleries-directory-heading h2 { margin: 0; outline: 0; color: var(--color-ink-900); font-size: 20px; font-weight: 700; line-height: 1.55; }
.galleries-directory-page .galleries-directory-heading h2:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 4px; border-radius: 4px; }
.galleries-directory-page .galleries-directory-heading p { margin: 3px 0 0; color: var(--color-ink-550,#667481); font-size: 12px; }
.galleries-directory-page .galleries-directory-count { width: 94px; min-height: 64px; flex: 0 0 94px; display: flex; align-items: center; justify-content: center; flex-direction: column; border: 1px solid rgba(9,95,152,.1); border-radius: 9px; background: #eef7fb; color: #174b70; }
.galleries-directory-page .galleries-directory-count strong { font-size: 25px; font-weight: 750; line-height: 1; }
.galleries-directory-page .galleries-directory-count span { margin-top: 5px; color: #587181; font-size: 11px; }
.galleries-directory-page .galleries-filter-toolbar { margin-bottom: 20px; padding: 13px 14px; border: 1px solid rgba(15,35,52,.1); border-radius: 9px; background: #f9fbfc; }
.galleries-directory-page .galleries-filter-row { display: grid; grid-template-columns: minmax(320px,1fr) auto; align-items: center; gap: 10px; }
.galleries-directory-page .galleries-directory-search { height: 40px; display: grid; grid-template-columns: minmax(0,1fr) auto; }
.galleries-directory-page .galleries-directory-search input { min-width: 0; height: 40px; padding-inline: 11px; border: 1px solid rgba(15,35,52,.14); border-inline-end: 0; border-radius: 0 7px 7px 0; outline: 0; background: #fff; color: var(--color-ink-800); font-family: inherit; font-size: 12px; }
.galleries-directory-page .galleries-directory-search input:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(9,95,152,.1); }
.galleries-directory-page .galleries-directory-search button { height: 40px; padding-inline: 15px; border: 1px solid var(--color-primary); border-radius: 7px 0 0 7px; background: var(--color-primary); color: #fff; font-family: inherit; font-size: 11.5px; font-weight: 650; cursor: pointer; }
.galleries-directory-page .galleries-directory-clear { height: 40px; display: inline-flex; align-items: center; justify-content: center; padding-inline: 12px; border: 1px solid rgba(15,35,52,.14); border-radius: 7px; background: #fff; color: var(--color-ink-700); font-size: 11.5px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.galleries-directory-page .galleries-type-tabs { display: flex; gap: 7px; margin-top: 11px; overflow-x: auto; padding: 1px; scrollbar-width: none; scroll-snap-type: x proximity; }
.galleries-directory-page .galleries-type-tabs::-webkit-scrollbar { display: none; }
.galleries-directory-page .galleries-type-tab { min-height: 38px; display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; padding-inline: 11px; border: 1px solid rgba(15,35,52,.13); border-radius: 7px; background: #fff; color: #173b55; font-size: 12px; font-weight: 500; text-decoration: none; white-space: nowrap; scroll-snap-align: start; }
.galleries-directory-page .galleries-type-tab small { min-width: 21px; height: 20px; display: inline-flex; align-items: center; justify-content: center; padding-inline: 5px; border-radius: 999px; background: #edf2f5; color: #536675; font-size: 10px; font-weight: 650; }
.galleries-directory-page .galleries-type-tab:hover { border-color: var(--color-primary); color: var(--color-primary); }
.galleries-directory-page .galleries-type-tab.is-active { border-color: var(--color-primary); background: var(--color-primary); color: #fff; font-weight: 650; }
.galleries-directory-page .galleries-type-tab.is-active small { background: rgba(255,255,255,.2); color: #fff; }
.galleries-directory-page .galleries-directory-results { position: relative; outline: none; }
.galleries-directory-page .galleries-directory-results:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 5px; border-radius: 9px; }
.galleries-directory-page .galleries-directory-results-content { transition: opacity .18s ease; }
.galleries-directory-page .galleries-directory-results.is-loading .galleries-directory-results-content { opacity: .46; }
.galleries-directory-page .galleries-directory-results.is-loading .galleries-directory-pagination,
.galleries-directory-page .galleries-type-tabs.is-loading { pointer-events: none; }
.galleries-directory-page .galleries-directory-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: stretch; gap: 16px; }
.galleries-directory-page .gallery-directory-card { min-width: 0; height: 100%; display: flex; overflow: hidden; flex-direction: column; border: 1px solid rgba(15,35,52,.1); border-radius: 9px; background: #fff; box-shadow: 0 3px 12px rgba(15,35,52,.035); transition: border-color .18s ease,box-shadow .18s ease,transform .18s ease; }
.galleries-directory-page .gallery-directory-card:hover { border-color: rgba(9,95,152,.24); box-shadow: 0 7px 20px rgba(15,35,52,.075); transform: translateY(-2px); }
.galleries-directory-page .gallery-directory-media { position: relative; width: 100%; overflow: hidden; aspect-ratio: 16 / 10; background: #eaf2f6; color: #315d78; }
.galleries-directory-page .gallery-directory-media img { position: relative; z-index: 1; width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }
.galleries-directory-page .gallery-directory-media-fallback { position: absolute; z-index: 0; inset: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(145deg,#edf5f8,#dce9ef); }
.galleries-directory-page .gallery-directory-media-fallback svg { width: 47px; height: 47px; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; opacity: .78; }
.galleries-directory-page .gallery-directory-media.has-cover .gallery-directory-media-fallback { display: none; }
.galleries-directory-page .gallery-directory-media.is-cover-failed img { display: none; }
.galleries-directory-page .gallery-directory-media.is-cover-failed .gallery-directory-media-fallback { display: flex; }
.galleries-directory-page .gallery-directory-overlay { position: absolute; z-index: 2; inset: auto 0 0; height: 42%; background: linear-gradient(to top,rgba(8,25,39,.58),transparent); pointer-events: none; }
.galleries-directory-page .gallery-directory-media.has-fallback .gallery-directory-overlay,
.galleries-directory-page .gallery-directory-media.is-cover-failed .gallery-directory-overlay { background: linear-gradient(to top,rgba(20,62,87,.34),transparent); }
.galleries-directory-page .gallery-directory-badges { position: absolute; z-index: 3; inset: auto 10px 9px; display: flex; align-items: center; justify-content: space-between; gap: 7px; pointer-events: none; }
.galleries-directory-page .gallery-directory-type,
.galleries-directory-page .gallery-directory-media-count { min-height: 23px; display: inline-flex; align-items: center; padding-inline: 7px; border: 1px solid rgba(255,255,255,.22); border-radius: 5px; background: rgba(9,31,47,.72); color: #fff; backdrop-filter: blur(3px); font-size: 10px; font-weight: 650; }
.galleries-directory-page .gallery-directory-body { min-width: 0; display: flex; flex: 1; flex-direction: column; padding: 14px; }
.galleries-directory-page .gallery-directory-title { display: -webkit-box; overflow: hidden; margin: 0; color: #102f47; font-size: 14.5px; font-weight: 650; line-height: 1.7; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.galleries-directory-page .gallery-directory-description { display: -webkit-box; overflow: hidden; margin: 7px 0 0; color: var(--color-ink-550,#667481); font-size: 12px; line-height: 1.75; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.galleries-directory-page .gallery-directory-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 11px; border-top: 1px solid rgba(15,35,52,.075); }
.galleries-directory-page .gallery-directory-date { min-width: 0; display: inline-flex; align-items: center; gap: 5px; color: #7a8893; font-size: 10.5px; white-space: nowrap; }
.galleries-directory-page .gallery-directory-date svg { width: 15px; height: 15px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.galleries-directory-page .gallery-directory-action { min-height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 3px; padding-inline: 9px; border-radius: 7px; color: var(--color-primary); font-size: 11px; font-weight: 650; text-decoration: none; white-space: nowrap; }
.galleries-directory-page .gallery-directory-action:hover { background: #eef6fb; }
.galleries-directory-page .gallery-directory-action:focus-visible { outline: 3px solid rgba(9,95,152,.25); outline-offset: 2px; }
.galleries-directory-page .gallery-directory-action svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.galleries-directory-page .galleries-directory-empty { min-height: 260px; display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 30px 20px; border: 1px solid rgba(15,35,52,.1); border-radius: 9px; background: #fff; text-align: center; }
.galleries-directory-page .galleries-directory-empty > svg { width: 42px; height: 42px; margin-bottom: 10px; fill: none; stroke: var(--color-primary); stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.galleries-directory-page .galleries-directory-empty h2 { margin: 0; color: var(--color-ink-900); font-size: 18px; font-weight: 650; }
.galleries-directory-page .galleries-directory-empty p { margin: 7px 0 0; color: var(--color-ink-550,#667481); font-size: 12px; }
.galleries-directory-page .galleries-directory-empty a { min-height: 39px; display: inline-flex; align-items: center; margin-top: 15px; padding-inline: 14px; border-radius: 7px; background: var(--color-primary); color: #fff; font-size: 12px; font-weight: 600; text-decoration: none; }
.galleries-directory-page .galleries-directory-pagination { direction: rtl; display: grid; grid-template-columns: auto minmax(0,auto) auto; grid-template-areas: 'previous pages next'; align-items: center; justify-content: center; gap: 6px; margin-top: 30px; }
.galleries-directory-page .galleries-directory-pagination > .galleries-page-edge,
.galleries-directory-page .galleries-page-numbers > .galleries-page-link,
.galleries-directory-page .galleries-page-numbers > .galleries-page-ellipsis,
.galleries-directory-page .galleries-directory-pagination > .galleries-page-summary { min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; padding-inline: 10px; border: 1px solid rgba(15,35,52,.13); border-radius: 7px; background: #fff; color: var(--color-ink-700); font-size: 12px; font-weight: 500; text-decoration: none; }
.galleries-directory-page .galleries-directory-pagination > .galleries-page-edge:first-child { grid-area: previous; }
.galleries-directory-page .galleries-directory-pagination > .galleries-page-edge:last-child { grid-area: next; }
.galleries-directory-page .galleries-page-numbers { direction: ltr; grid-area: pages; display: inline-flex; gap: 6px; }
.galleries-directory-page .galleries-directory-pagination a:hover { border-color: var(--color-primary); color: var(--color-primary); }
.galleries-directory-page .galleries-directory-pagination .is-current { border-color: var(--color-primary); background: var(--color-primary); color: #fff; font-weight: 700; }
.galleries-directory-page .galleries-directory-pagination .is-disabled { opacity: .45; background: #f4f6f7; pointer-events: none; }
.galleries-directory-page .galleries-page-ellipsis { min-width: 24px; padding: 0; border-color: transparent; background: transparent; }
.galleries-directory-page .galleries-page-summary { display: none; }
.galleries-directory-page .galleries-directory-feedback { position: absolute; width: 1px; height: 1px; overflow: hidden; margin: -1px; padding: 0; border: 0; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.galleries-directory-page .galleries-directory-results.is-loading .galleries-directory-feedback { position: absolute; z-index: 5; top: min(180px,35%); inset-inline: 50% auto; width: auto; height: 38px; overflow: visible; display: inline-flex; align-items: center; gap: 8px; margin: 0; padding-inline: 13px; border: 1px solid rgba(15,35,52,.12); border-radius: 7px; background: #fff; color: var(--color-ink-700); box-shadow: 0 4px 14px rgba(15,35,52,.08); clip: auto; clip-path: none; font-size: 12px; font-weight: 600; transform: translateX(50%); }
.galleries-directory-page .galleries-directory-results.is-loading .galleries-directory-feedback::before { width: 14px; height: 14px; content: ''; border: 2px solid rgba(9,95,152,.2); border-top-color: var(--color-primary); border-radius: 50%; animation: galleries-directory-spin .7s linear infinite; }
.galleries-directory-page .galleries-directory-results.has-error .galleries-directory-feedback { position: static; width: auto; height: auto; overflow: visible; display: block; margin: 12px 0 0; padding: 10px 12px; border: 1px solid rgba(185,28,28,.18); border-radius: 7px; background: #fff7f7; color: #9f1d1d; clip: auto; clip-path: none; font-size: 12px; white-space: normal; }
@keyframes galleries-directory-spin { to { transform: rotate(360deg); } }
@media (max-width: 1199.98px) {
  .galleries-directory-page .galleries-directory-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 639.98px) {
  .galleries-directory-page .galleries-directory-header { padding-block: 23px 20px; }
  .galleries-directory-page .galleries-directory-header h1 { font-size: 21px; }
  .galleries-directory-page .galleries-directory-header p { font-size: 11.5px; }
  .galleries-directory-page .galleries-directory-main { padding-block: 22px 40px; }
  .galleries-directory-page .galleries-directory-toolbar { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start; gap: 3px 10px; margin-bottom: 11px; padding: 13px; }
  .galleries-directory-page .galleries-directory-heading { display: contents; }
  .galleries-directory-page .galleries-directory-heading > span,
  .galleries-directory-page .galleries-directory-heading h2 { grid-column: 1; }
  .galleries-directory-page .galleries-directory-heading h2 { font-size: 17px; }
  .galleries-directory-page .galleries-directory-heading p { grid-column: 1 / -1; grid-row: 3; font-size: 11px; line-height: 1.7; }
  .galleries-directory-page .galleries-directory-count { grid-column: 2; grid-row: 1 / 3; width: 78px; min-height: 58px; flex-basis: 78px; }
  .galleries-directory-page .galleries-directory-count strong { font-size: 22px; }
  .galleries-directory-page .galleries-filter-toolbar { margin-bottom: 14px; padding: 12px; }
  .galleries-directory-page .galleries-filter-row { grid-template-columns: 1fr auto; }
  .galleries-directory-page .galleries-directory-search { grid-column: 1 / -1; }
  .galleries-directory-page .galleries-directory-clear { height: 34px; padding-inline: 9px; font-size: 10.5px; }
  .galleries-directory-page .galleries-directory-grid { grid-template-columns: 1fr; gap: 11px; }
  .galleries-directory-page .gallery-directory-card { flex-direction: row; min-height: 164px; }
  .galleries-directory-page .gallery-directory-media { width: 40%; flex: 0 0 40%; aspect-ratio: auto; border-radius: 0; }
  .galleries-directory-page .gallery-directory-body { width: 60%; padding: 11px; }
  .galleries-directory-page .gallery-directory-title { font-size: 13px; }
  .galleries-directory-page .gallery-directory-description { margin-top: 5px; font-size: 11px; -webkit-line-clamp: 2; }
  .galleries-directory-page .gallery-directory-badges { inset: auto 7px 7px; align-items: flex-start; flex-direction: column; }
  .galleries-directory-page .gallery-directory-type,
  .galleries-directory-page .gallery-directory-media-count { min-height: 21px; font-size: 9px; }
  .galleries-directory-page .gallery-directory-footer { align-items: flex-end; padding-top: 7px; }
  .galleries-directory-page .gallery-directory-date { font-size: 9.5px; }
  .galleries-directory-page .gallery-directory-action { min-height: 40px; padding-inline: 6px; font-size: 10.5px; }
  .galleries-directory-page .galleries-page-numbers { display: none; }
  .galleries-directory-page .galleries-page-summary { grid-area: pages; min-width: 104px; height: 40px; display: inline-flex; white-space: nowrap; }
  .galleries-directory-page .galleries-directory-pagination { grid-template-columns: minmax(64px,1fr) auto minmax(64px,1fr); width: 100%; margin-top: 22px; }
  .galleries-directory-page .galleries-page-edge { width: 100%; min-width: 64px; height: 40px; }
}
@media (max-width: 380px) {
  .galleries-directory-page .gallery-directory-card { flex-direction: column; }
  .galleries-directory-page .gallery-directory-media { width: 100%; flex: 0 0 auto; aspect-ratio: 16 / 9; }
  .galleries-directory-page .gallery-directory-body { width: 100%; }
  .galleries-directory-page .galleries-directory-pagination { grid-template-columns: minmax(58px,1fr) auto minmax(58px,1fr); gap: 4px; }
  .galleries-directory-page .galleries-page-summary { min-width: 98px; padding-inline: 6px; font-size: 11px; }
  .galleries-directory-page .galleries-page-edge { min-width: 58px; padding-inline: 7px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .galleries-directory-page .gallery-directory-card,
  .galleries-directory-page .galleries-directory-results-content { transition: none; }
  .galleries-directory-page .galleries-directory-results.is-loading .galleries-directory-feedback::before { animation-duration: 1.4s; }
}

/* =========================================================
   Gallery Pages (Archive + Single)
   ========================================================= */
.gallery-albums-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 48px 0 64px;
}
.gallery-album-card {
  border: var(--border-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-white);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.gallery-album-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.gallery-album-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.gallery-album-body {
  padding: 18px 20px;
}
.gallery-album-body h3 {
  font-size: 16px;
  font-weight: 850;
  margin: 0 0 6px;
  color: var(--color-ink-950);
}
.gallery-album-body p {
  font-size: 12px;
  color: var(--color-ink-500);
  margin: 0;
  line-height: 1.8;
}
.gallery-album-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
  font-size: 11px;
  color: var(--color-ink-400);
}

/* Gallery Single Page */
.gallery-single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 32px;
  padding: 40px 0 56px;
  align-items: start;
}
.gallery-single-main h1 {
  font-size: 24px;
  font-weight: 850;
  margin: 0 0 6px;
  color: var(--color-ink-950);
}
.gallery-single-main .gallery-desc {
  font-size: 13px;
  color: var(--color-ink-500);
  margin: 0 0 20px;
  line-height: 1.8;
}
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.gallery-thumb {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-xs);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s var(--ease);
}
.gallery-thumb:hover img { transform: scale(1.06); }
.gallery-thumb.video-thumb::after {
  content: "▶";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  display: grid;
  place-items: center;
  font-size: 14px;
  color: var(--color-ink-850);
}

/* Gallery Sidebar */
.gallery-sidebar { display: grid; gap: 20px; }
.gallery-sidebar-card {
  border: var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  background: var(--color-white);
}
.gallery-sidebar-card h4 {
  font-size: 14px;
  font-weight: 850;
  margin: 0 0 14px;
  color: var(--color-ink-950);
}
.gallery-sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.gallery-sidebar-list li {
  padding: 8px 0;
  border-bottom: 1px solid #f5f5f5;
  font-size: 12px;
}
.gallery-sidebar-list li:last-child { border-bottom: 0; }
.gallery-sidebar-list a {
  color: var(--color-ink-600);
  display: flex;
  align-items: center;
  gap: 8px;
}
.gallery-sidebar-list a:hover { color: var(--color-ink-950); }
.gallery-sidebar-list a::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-ink-300);
  flex: 0 0 auto;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.92);
  backdrop-filter: blur(8px);
}
.lightbox.is-open { display: flex; align-items: center; justify-content: center; }
.lightbox-close {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: var(--color-white);
  font-size: 22px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .18s var(--ease);
  z-index: 10;
}
.lightbox-close:hover { background: rgba(255,255,255,.25); }
.lightbox-img {
  max-width: 90%;
  max-height: 85%;
  object-fit: contain;
  border-radius: 4px;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: var(--color-white);
  font-size: 20px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .18s var(--ease);
  z-index: 10;
}
.lightbox-nav:hover { background: rgba(255,255,255,.25); }
.lightbox-prev { right: 20px; }
.lightbox-next { left: 20px; }
.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.6);
  font-size: 13px;
  z-index: 10;
}

/* Lightbox mobile */
@media (max-width: 575.98px) {
  .gallery-albums-grid,
  .gallery-thumbs { grid-template-columns: repeat(2, 1fr); }
  .gallery-single-layout { grid-template-columns: 1fr; }
  .lightbox-img { max-width: 96%; max-height: 70%; }
  .lightbox-prev { right: 8px; }
  .lightbox-next { left: 8px; }
  .lightbox-nav { width: 36px; height: 36px; font-size: 16px; }
}
@media (max-width: 991.98px) {
  .gallery-single-layout { grid-template-columns: 1fr; }
  .gallery-albums-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Centered section heading */
.section-heading-centered {
  flex-direction: column;
  gap: 8px;
  text-align: center;
}
.section-heading-centered h2 { font-size: 24px; }
.section-heading-centered p {
  font-size: 13px;
  color: var(--color-ink-500);
  margin: 0;
}

/* How-to section */
.howto-section { padding: 64px 0; }

/* How-to cards (نحوه) */
.howto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.howto-card {
  border: var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 28px 24px;
  background: var(--color-white);
  text-align: center;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.howto-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.howto-card .howto-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  background: var(--color-primary-soft);
  font-size: 22px;
  color: var(--color-primary);
}
.howto-card h3 {
  font-size: 16px;
  font-weight: 850;
  margin: 0 0 8px;
  color: var(--color-ink-950);
}
.howto-card p {
  font-size: 12px;
  color: var(--color-ink-500);
  margin: 0;
  line-height: 1.9;
}
.howto-card .howto-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 12px;
  color: var(--color-primary);
  font-weight: 750;
}

/* =========================================================
   Blank Page
   ========================================================= */
.blank-page {
  padding: 48px 0 64px;
  min-height: 60vh;
}
.blank-page-content {
  max-width: 800px;
  margin: 0 auto;
}
.blank-page-content h1 {
  font-size: 26px;
  font-weight: 850;
  margin: 0 0 24px;
  color: var(--color-ink-950);
}
.blank-page-content p {
  font-size: 14px;
  line-height: 2.1;
  color: var(--color-ink-600);
}

/* =========================================================
   Tourism Page (tourism.html)
   ========================================================= */
.page-header-tourism {
  background: linear-gradient(135deg, #1a4a2e, #2d7d4e);
}
.tourism-intro {
  padding: 56px 0 48px;
  background: var(--color-white);
}
.tourism-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.tourism-intro-text h2 {
  font-size: 28px;
  font-weight: 850;
  margin: 0 0 16px;
  color: var(--color-ink-950);
}
.tourism-intro-text p {
  font-size: 13px;
  line-height: 2;
  color: var(--color-ink-600);
  margin: 0 0 12px;
}
.tourism-stats {
  display: flex;
  gap: 24px;
  margin-top: 24px;
}
.tourism-stat {
  text-align: center;
  padding: 16px 20px;
  background: var(--color-primary-soft);
  border-radius: var(--radius-xs);
  flex: 1;
}
.tourism-stat strong {
  display: block;
  font-size: 22px;
  font-weight: 900;
  color: var(--color-primary);
}
.tourism-stat span {
  font-size: 11px;
  color: var(--color-ink-500);
  margin-top: 4px;
  display: block;
}
.tourism-intro-img {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.tourism-intro-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tourism-attractions {
  padding: 56px 0;
  background: var(--color-bg);
}
.tourism-attractions > .site-container > .tabs {
  justify-content: center;
  margin-bottom: 32px;
}

.tourism-card-lg .tourism-card-body {
  padding: 20px 0 0;
}
.tourism-card-lg .tourism-card-body h3 {
  font-size: 16px;
  font-weight: 850;
  margin: 0 0 8px;
}
.tourism-card-lg .tourism-card-body p {
  font-size: 12px;
  color: var(--color-ink-500);
  line-height: 1.9;
  margin: 0 0 10px;
}
.tourism-card-footer {
  display: flex;
  gap: 16px;
  font-size: 11px;
  color: var(--color-ink-400);
}

.tourism-grid-lg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tourism-gallery {
  padding: 56px 0 48px;
  background: var(--color-white);
}
.tourism-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.tourism-gallery-item {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-xs);
  overflow: hidden;
  cursor: pointer;
}
.tourism-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s var(--ease);
}
.tourism-gallery-item:hover img { transform: scale(1.06); }

.tourism-cta {
  padding: 64px 0;
  background: var(--color-bg);
}
.tourism-cta-box {
  text-align: center;
  padding: 48px 32px;
  background: linear-gradient(135deg, #1a4a2e, #2d7d4e);
  border-radius: var(--radius-sm);
  color: var(--color-white);
}
.tourism-cta-box h2 {
  font-size: 26px;
  font-weight: 850;
  margin: 0 0 12px;
}
.tourism-cta-box p {
  font-size: 13px;
  line-height: 2;
  max-width: 600px;
  margin: 0 auto 24px;
  opacity: .85;
}
.cta-button {
  display: inline-block;
  padding: 12px 32px;
  border-radius: var(--radius-pill);
  background: var(--color-white);
  color: #1a4a2e;
  font-size: 14px;
  font-weight: 750;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.2);
}

@media (max-width: 991.98px) {
  .tourism-intro-grid { grid-template-columns: 1fr; gap: 32px; }
  .tourism-intro-text { order: 1; }
  .tourism-intro-img { order: 0; }
  .tourism-grid-lg { grid-template-columns: repeat(2, 1fr); }
  .tourism-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575.98px) {
  .tourism-stats { flex-direction: column; gap: 12px; }
  .tourism-grid-lg { grid-template-columns: 1fr; }
  .tourism-gallery-grid { grid-template-columns: 1fr; }
  .tourism-intro-text h2 { font-size: 22px; }
  .tourism-cta-box { padding: 36px 20px; }
  .tourism-cta-box h2 { font-size: 20px; }
}

/* =========================================================
   Video Page (video.html)
   ========================================================= */
.video-single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 32px;
  padding: 40px 0 56px;
  align-items: start;
}
.video-player-wrap {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #000;
}
.video-player {
  position: relative;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-player img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-player-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.4);
}
.video-big-play {
  position: absolute;
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform .18s var(--ease);
  z-index: 2;
}
.video-big-play:hover { transform: scale(1.1); }
.video-big-play::after {
  content: "▶";
  font-size: 22px;
  color: #222;
  margin-right: 3px;
}
.video-single-body {
  padding: 20px 0;
}
.video-meta {
  display: flex;
  gap: 20px;
  font-size: 12px;
  color: var(--color-ink-500);
  margin-bottom: 14px;
}
.video-single-body h2 {
  font-size: 20px;
  font-weight: 850;
  margin: 0 0 14px;
  color: var(--color-ink-950);
}
.video-single-body p {
  font-size: 13px;
  line-height: 2;
  color: var(--color-ink-600);
  margin: 0 0 10px;
}
.video-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.video-sidebar { display: grid; gap: 20px; }
.video-sidebar-card {
  border: var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  background: var(--color-white);
}
.video-sidebar-card h4 {
  font-size: 14px;
  font-weight: 850;
  margin: 0 0 14px;
  color: var(--color-ink-950);
}
.video-related-list { display: grid; gap: 12px; }
.video-related-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  align-items: start;
}
.vri-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
}
.vri-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vri-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,.85);
}
.vri-play-icon::after {
  content: "▶";
  font-size: 10px;
  color: #222;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin-right: 1px;
}
.vri-body strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-ink-800);
  line-height: 1.6;
}
.vri-body span {
  font-size: 11px;
  color: var(--color-ink-400);
  margin-top: 4px;
  display: block;
}

@media (max-width: 991.98px) {
  .video-single-layout { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
  .video-meta { flex-wrap: wrap; gap: 10px; }
  .video-single-body h2 { font-size: 17px; }
  .video-big-play { width: 48px; height: 48px; }
  .video-big-play::after { font-size: 18px; }
}

/* =========================================================
   Mobile Responsive for new pages
   ========================================================= */
@media (max-width: 991.98px) {
  .single-post-layout { grid-template-columns: 1fr; }
  .single-post-page .single-post-sidebar { position: static; top: auto; }
  .single-post-body { padding: 24px 20px; }
  .single-post-body h1 { font-size: 22px; }
  .post-nav { grid-template-columns: 1fr; }
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
  .guild-hero-content { grid-template-columns: 1fr; text-align: center; }
  .guild-hero-logo { margin: 0 auto; }
  .guild-hero-stats { justify-content: center; flex-wrap: wrap; }
  .guild-members-grid { grid-template-columns: repeat(2, 1fr); }
  .guild-head-card { grid-template-columns: 1fr; text-align: center; padding: 24px 20px; }
  .guild-head-avatar { margin: 0 auto; }
  .guild-head-info p { max-width: 100%; }
  .guild-head-contact { justify-content: center; }
  .guild-2col,
  .guild-contact-grid { grid-template-columns: 1fr; }
  .guild-3col,
  .guild-4col,
  .guild-gallery-grid,
  .guild-commission-list,
  .tourism-grid { grid-template-columns: repeat(2, 1fr); }
  .comreal-grid { grid-template-columns: repeat(2, 1fr); }
  .guild-article-item { grid-template-columns: 1fr; }
  .guild-article-item img { width: 100%; height: 160px; }
  .guild-search-box { max-width: 100%; grid-template-columns: 1fr; }
  .guild-layout { grid-template-columns: 1fr; }
  .guild-side-nav { display: none; }
  .howto-grid { grid-template-columns: 1fr; }
  .home-ad-banners { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 575.98px) {
  .page-header { padding: 24px 0 20px; }
  .page-header h1 { font-size: 20px; }
  .single-post-breadcrumb-bar { padding-block: 10px; }
  .archive-grid { grid-template-columns: 1fr; }
  .archive-header { flex-direction: column; align-items: flex-start; }
  .guild-section { padding: 36px 0; }
  .guild-members-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .guild-3col,
  .guild-4col,
  .guild-gallery-grid,
  .guild-commission-list { grid-template-columns: 1fr; }
  .tourism-grid { grid-template-columns: 1fr; }
  .comreal-grid { grid-template-columns: 1fr; }
  .home-ad-banners { grid-template-columns: 1fr; }
  .fraction-grid { grid-template-columns: 1fr; }
  .guild-news-slider,
  .guild-news-slider .swiper-slide { height: 220px; }
  .guild-news-slider .slide-text h3 { font-size: 16px; }
  .guild-hero { min-height: auto; }
  .guild-hero-content { padding: 32px 0; }
  .guild-hero-text h1 { font-size: 22px; }
  .howto-card { padding: 20px 16px; }
  .media-grid { grid-template-columns: 1fr; }
  .media-card-lg { grid-column: span 1; }
  .footer-orgs { grid-template-columns: repeat(2, 1fr); }
  .header-logo img { width: 160px; }
  .header-cta-link { padding: 6px 14px; font-size: 11px; }
  .header-hamburger { display: block; }
  .top-nav { overflow-x: auto; }
  .page-header-alt { padding: 24px 0 20px; }
  .page-header-alt h1 { font-size: 20px; }
}

.complaint-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
  padding: 24px;
}

.complaint-card .form-label {
  font-weight: 700;
  color: #1f2937;
}

.complaint-card .form-control {
  border-radius: 14px;
  border-color: rgba(15, 23, 42, .14);
  min-height: 46px;
}

.complaint-card textarea.form-control {
  min-height: 130px;
}

/* Laravel Blade Fixes */
.pagination-nav .disabled {
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, .08);
  color: rgba(31, 41, 55, .45);
  background: rgba(255, 255, 255, .55);
}

.post-meta .dot {
  width: 5px;
  height: 5px;
  padding: 0;
  border-radius: 50%;
  background: rgba(31, 41, 55, .35);
}

.gallery-album-card .gallery-album-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-player iframe,
.video-player video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.guild-contact-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .06);
}

/* =========================================================
   Asnaf Golestan dynamic home refinements
   ========================================================= */
.news-card,
.howto-card,
.commission-item,
.comreal-card,
.archive-card {
  border: 1px solid rgba(12, 116, 185, .10);
}

.news-card::after,
.media-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
  z-index: 2;
}

.howto-card:nth-child(1n) { background: linear-gradient(180deg, #ffffff 0%, #eff8ff 100%); }
.howto-card:nth-child(2n) { background: linear-gradient(180deg, #ffffff 0%, #effcf6 100%); }
.howto-card:nth-child(3n) { background: linear-gradient(180deg, #ffffff 0%, #fff7ec 100%); }

.home-ad-banners {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 52px);
  padding: 34px 0 42px;
}
.ad-banner {
  min-height: 165px;
  box-shadow: 0 18px 45px rgba(17, 17, 17, .10);
}
.ad-banner-text {
  font-size: clamp(18px, 2vw, 24px);
}

.price-ticker-section {
  padding: 36px 0 24px;
}
.price-ticker-card {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  padding: 20px;
  border: 1px solid rgba(12, 116, 185, .12);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #f7fbff 0%, #ffffff 45%, #fff7e8 100%);
  box-shadow: var(--shadow-card);
}
.price-ticker-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}
.price-ticker-heading > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #fff0c7;
  font-size: 24px;
}
.price-ticker-heading h2 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 850;
  color: var(--color-ink-950);
}
.price-ticker-heading p {
  margin: 0;
  font-size: 11px;
  color: var(--color-ink-500);
  line-height: 1.8;
}
.price-ticker-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.price-ticker-item {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(17,17,17,.06);
}
.price-ticker-item span,
.price-ticker-item small {
  display: block;
  color: var(--color-ink-500);
  font-size: 11px;
}
.price-ticker-item strong {
  display: block;
  margin: 6px 0 2px;
  color: var(--color-primary-700);
  font-size: 18px;
  font-weight: 900;
}

.union-home-item {
  align-items: center !important;
  background: linear-gradient(135deg, #ffffff 0%, #f2f9ff 100%);
}
.union-home-item > a {
  flex: 1 1 auto;
  min-width: 0;
}
.union-home-item > a > div {
  min-width: 0;
}
.union-home-item strong,
.union-home-item small {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.union-home-actions {
  display: flex;
  flex-wrap: wrap;
  flex: 0 0 auto;
  gap: 6px;
  margin-right: auto;
}
.union-home-actions a {
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: rgba(12,116,185,.10);
  color: var(--color-primary-700);
  font-size: 10px;
  font-weight: 750;
}

.office-services-section .commission-card {
  min-height: 0;
  padding: 22px;
  background:
    radial-gradient(circle at top right, rgba(12, 116, 185, .11), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(247, 251, 255, .86));
  border: 1px solid rgba(12, 116, 185, .10);
  border-radius: 28px;
  box-shadow: 0 22px 55px rgba(15, 23, 42, .07);
  overflow: visible;
}

.office-services-section .commission-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.office-services-section .commission-item {
  position: relative;
  isolation: isolate;
  min-height: 152px;
  padding: 24px 22px 22px;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: right;
  border: 1px solid rgba(15, 23, 42, .07);
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .055);
  overflow: hidden;
  transform-origin: center;
}

.office-services-section .commission-item::before {
  content: "";
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: currentColor;
  opacity: .13;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .70);
}

.office-services-section .commission-item::after {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 5px;
  background: currentColor;
  opacity: .72;
}

.office-services-section .commission-item strong {
  margin-bottom: 9px;
  font-family: var(--font-family-base);
  font-size: 20px;
  line-height: 1.45;
  letter-spacing: 0;
}

.office-services-section .commission-item span {
  color: var(--color-ink-600);
  font-size: 12px;
  line-height: 2;
}

.office-services-section .commission-item:hover {
  z-index: 3;
  opacity: 1;
  transform: scale(1.035);
  box-shadow: 0 18px 42px rgba(15, 23, 42, .12);
}

.service-color-1 { color: #075f9c; background: linear-gradient(135deg, #edf8ff, #ffffff); }
.service-color-2 { color: #1f8f66; background: linear-gradient(135deg, #effcf6, #ffffff); }
.service-color-3 { color: #b66a00; background: linear-gradient(135deg, #fff7ec, #ffffff); }
.service-color-4 { color: #6741d9; background: linear-gradient(135deg, #f5f1ff, #ffffff); }
.commission-item.service-color-1 strong { color: #075f9c; }
.commission-item.service-color-2 strong { color: #1f8f66; }
.commission-item.service-color-3 strong { color: #b66a00; }
.commission-item.service-color-4 strong { color: #6741d9; }

.comreal-card {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}
.commission-task-mini {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.commission-task-mini li {
  position: relative;
  padding-right: 16px;
  margin-top: 6px;
  color: var(--color-ink-600);
  font-size: 11px;
  line-height: 1.8;
}
.commission-task-mini li::before {
  content: "";
  position: absolute;
  right: 0;
  top: .8em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}

@media (max-width: 991.98px) {
  .price-ticker-card { grid-template-columns: 1fr; }
  .price-ticker-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575.98px) {
  .price-ticker-grid { grid-template-columns: 1fr; }
  .home-ad-banners { gap: 18px; }
  .ad-banner { min-height: 140px; }
}

/* Dynamic guild Blade page refinements */
.guild-logo-img {
  width: 74px;
  height: 74px;
  object-fit: contain;
  border-radius: 50%;
}
.guild-hero-breadcrumb,
.guild-hero-breadcrumb a,
.guild-hero-breadcrumb span {
  color: rgba(255,255,255,.72) !important;
}
.guild-commission-dynamic {
  align-items: flex-start;
  background: linear-gradient(135deg, #ffffff 0%, #f7fbff 100%);
}
.guild-task-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  gap: 5px;
}
.guild-task-list li {
  position: relative;
  padding-right: 14px;
  color: var(--color-ink-600);
  font-size: 11px;
  line-height: 1.8;
}
.guild-task-list li::before {
  content: "";
  position: absolute;
  right: 0;
  top: .8em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}
.guild-member-card,
.guild-rule-item,
.guild-article-item,
.guild-edu-item,
.guild-announce-item,
.guild-minute-item,
.guild-contact-card {
  border-color: rgba(12,116,185,.12);
}
.guild-members-grid .guild-member-card:nth-child(1n) { background: linear-gradient(180deg, #fff, #eff8ff); }
.guild-members-grid .guild-member-card:nth-child(2n) { background: linear-gradient(180deg, #fff, #effcf6); }
.guild-members-grid .guild-member-card:nth-child(3n) { background: linear-gradient(180deg, #fff, #fff7ec); }
.guild-announce-item {
  text-decoration: none;
  color: inherit;
}
.guild-article-list > .guild-info-card,
.guild-announce-list > .guild-info-card,
.guild-minutes-list > .guild-info-card,
.guild-gallery-grid > .guild-info-card {
  width: 100%;
}
.guild-gallery-grid > .guild-info-card {
  grid-column: 1 / -1;
}
.guild-complaint-cta {
  background: linear-gradient(135deg, #0c74b9 0%, #1f8f66 100%);
}
.guild-complaint-cta .tab-pill:not(.active) {
  background: rgba(255,255,255,.14);
  color: #fff;
  border-color: rgba(255,255,255,.25);
}
.guild-complaint-cta .tab-pill.active {
  background: #fff;
  color: var(--color-primary-700);
}
.guild-social a {
  background: #fff;
}
@media (max-width: 575.98px) {
  .guild-head-card { grid-template-columns: 1fr; text-align: center; }
  .guild-head-avatar { margin: 0 auto; }
}

.union-ajax-status {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: rgba(12, 116, 185, .08);
  color: var(--color-primary-700);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}
.union-home-empty {
  background: linear-gradient(135deg, #fff7ec 0%, #ffffff 100%) !important;
}

/* Project Visual Refinements */
:root {
  --project-card-border: rgba(12, 80, 132, .22);
  --project-card-bg: linear-gradient(180deg, #ffffff 0%, #f5fbff 100%);
  --project-card-shadow: 0 14px 32px rgba(15, 35, 52, .10);
}
.header-logo-simple { max-width: 100%; max-height: 100%; object-fit: contain; image-rendering: auto; }
.brand-note strong { font-size: clamp(.86rem, 1.15vw, 1.08rem); line-height: 1.6; color: #082f49; }
.market-ticker-wrap { background: linear-gradient(90deg, #082f49, #0c74b9); border-top: 1px solid rgba(255,255,255,.18); border-bottom: 1px solid rgba(8,47,73,.22); color: #fff; }
.market-ticker { min-height: 46px; display: flex; align-items: center; gap: 16px; overflow: hidden; }
.market-ticker-title { flex: 0 0 auto; font-weight: 900; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.16); }
.market-ticker-items { position: relative; flex: 1; min-height: 40px; }
.market-ticker-item { position: absolute; inset: 0; display: flex; align-items: center; gap: 12px; opacity: 0; transform: translateY(12px); transition: opacity .45s ease, transform .45s ease; pointer-events: none; }
.market-ticker-item.is-active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.market-price { font-weight: 900; color: #fff7cc; }
.market-ticker-item small { color: rgba(255,255,255,.86); }
.archive-card, .service-card, .system-card, .commission-card, .gallery-card, .video-card, .tourism-card, .news-card, .sidebar-card, .admin-panel-card, .guild-info-card, .guild-head-card, .guild-card, .price-card, .quick-menu, .footer-col { border: 1px solid var(--project-card-border) !important; background: var(--project-card-bg); box-shadow: var(--project-card-shadow); }
.archive-card:hover, .service-card:hover, .system-card:hover, .commission-card:hover, .gallery-card:hover, .video-card:hover, .tourism-card:hover, .guild-info-card:hover, .guild-card:hover, .price-card:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(15, 35, 52, .14); border-color: rgba(12,116,185,.36) !important; }
.guild-filter-card { margin: 0 0 24px; padding: 18px; border: 1px solid rgba(12,116,185,.24); border-radius: var(--radius-md); background: linear-gradient(135deg, #f8fcff 0%, #eef8f3 100%); box-shadow: 0 14px 30px rgba(15,35,52,.08); }
.guild-filter-card .form-label { font-weight: 800; color: #08334f; }
.guild-filter-card .form-control { border: 1px solid rgba(12,116,185,.24); min-height: 46px; border-radius: 14px; }
.hero-section { --hero-equal-height: 360px; }
.hero-slider, .quick-menu, .side-news { min-height: var(--hero-equal-height); height: var(--hero-equal-height); }
.news-card-main { min-height: var(--hero-equal-height); height: var(--hero-equal-height); }
.news-card-main img { height: 100%; min-height: var(--hero-equal-height); object-fit: cover; }
.news-card-main .news-content h1 { font-size: clamp(1.25rem, 2.1vw, 1.8rem); line-height: 1.55; }
.footer-brand-col img { max-width: 140px; height: auto; object-fit: contain; }
.site-footer .footer-col {
  border: 0 !important;
  background: transparent;
  box-shadow: none;
  padding: 0;
}
.site-footer .footer-brand-col :is(p, div) {
  font-size: 13px;
  line-height: 1.9;
  margin: 0;
  color: var(--color-ink-600);
}
.footer-social a { border: 1px solid rgba(255,255,255,.28); }
@media (max-width: 991.98px) {
  .hero-section { --hero-equal-height: 320px; }
  .quick-menu, .side-news { min-height: auto; height: auto; }
  .hero-slider, .news-card-main, .news-card-main img { min-height: var(--hero-equal-height); height: var(--hero-equal-height); }
  .market-ticker { align-items: flex-start; flex-direction: column; gap: 4px; padding-block: 8px; }
  .market-ticker-items { width: 100%; min-height: 58px; }
  .market-ticker-item { flex-wrap: wrap; align-content: center; }
}
@media (max-width: 767.98px) {
  .header-top { grid-template-columns: 1fr; }
  .brand-note { justify-self: center; text-align: center; }
  .brand-note-copy { align-items: center; }
  .brand-note-media { width: 72px; height: 72px; }
  .brand-note strong { font-size: 1rem; }
  .hero-section { --hero-equal-height: 260px; }
  .quick-menu, .side-news { min-height: auto; height: auto; }
  .hero-slider, .news-card-main, .news-card-main img { min-height: var(--hero-equal-height); height: var(--hero-equal-height); }
  .news-card-main .news-content h1 { font-size: 1.35rem; }
  .market-ticker-item { font-size: .86rem; gap: 8px; }
}

/* RTL chevrons: top menus open downward/upward; vertical quick menus point to the left where their submenu opens. */
.top-submenu-caret {
  border: 0;
  border-right: 1.5px solid var(--color-ink-300);
  border-bottom: 1.5px solid var(--color-ink-300);
  transform: rotate(45deg);
  transform-origin: center;
}
.top-nav-item:hover .top-submenu-caret,
.top-nav-item.is-open .top-submenu-caret,
.top-nav-link[aria-expanded="true"] .top-submenu-caret {
  border-color: var(--color-ink-700);
  border-right: 0;
  border-bottom: 0;
  border-left: 1.5px solid var(--color-ink-700);
  border-top: 1.5px solid var(--color-ink-700);
  transform: rotate(45deg);
}
.quick-menu-link {
  direction: rtl;
}
.quick-menu-link b {
  border: 0;
  border-left: 1.5px solid var(--color-ink-300);
  border-bottom: 1.5px solid var(--color-ink-300);
  transform: rotate(45deg);
  transform-origin: center;
  transition: border-color .18s var(--ease);
}
.quick-menu-item:hover > .quick-menu-link b,
.quick-menu-item.is-open > .quick-menu-link b,
.quick-menu-link[aria-expanded="true"] b {
  border-color: var(--color-ink-700);
  transform: rotate(45deg);
}
@media (max-width: 991.98px) {
  .quick-menu-link b {
    border-left: 0;
    border-bottom: 0;
    border-right: 1.5px solid var(--color-ink-300);
    border-bottom: 1.5px solid var(--color-ink-300);
    transform: rotate(45deg);
  }
  .quick-menu-item.is-open > .quick-menu-link b,
  .quick-menu-link[aria-expanded="true"] b {
    border-color: var(--color-ink-700);
    border-right: 0;
    border-bottom: 0;
    border-left: 1.5px solid var(--color-ink-700);
    border-top: 1.5px solid var(--color-ink-700);
    transform: rotate(45deg);
  }
}

/* Scoped public news archive. */
.news-archive-hero {
  padding-block: 28px 25px;
  background: var(--color-ink-950);
  box-shadow: none;
}

.news-archive-hero .breadcrumb-nav { margin-bottom: 8px; }
.news-archive-hero .breadcrumb-nav a { color: rgba(255, 255, 255, .72); }
.news-archive-hero .breadcrumb-nav span { color: rgba(255, 255, 255, .52); }
.news-archive-hero h1 { margin: 0; color: #fff; font-size: 25px; font-weight: 750; line-height: 1.55; }
.news-archive-hero p { max-width: 720px; margin: 5px 0 0; color: rgba(255, 255, 255, .7); font-size: 12.5px; line-height: 1.8; }

.news-archive-page {
  padding-block: 34px 62px;
  background: #f7f8fa;
}

.news-archive-toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(320px, 460px) auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding: 16px 18px;
  border: 1px solid rgba(15, 35, 52, .1);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(15, 35, 52, .045);
}

.news-archive-toolbar-heading { min-width: 0; }
.news-archive-toolbar-heading h2 { margin: 0; color: #102f47; font-size: 20px; font-weight: 650; line-height: 1.5; }
.news-archive-toolbar-heading p { margin: 2px 0 0; color: var(--color-ink-500); font-size: 12px; line-height: 1.6; }

.news-archive-search {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.news-archive-search input,
.news-archive-sidebar-search input,
.news-archive-union-form select {
  width: 100%;
  min-width: 0;
  height: 40px;
  border: 1px solid rgba(15, 35, 52, .16);
  background: #fff;
  color: var(--color-ink-850);
  font-family: inherit;
  font-size: 12px;
  outline: 0;
}

.news-archive-search input {
  padding-inline: 12px;
  border-inline-end: 0;
  border-radius: 0 8px 8px 0;
}

.news-archive-search button,
.news-archive-sidebar-search button,
.news-archive-union-form button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 16px;
  border: 1px solid var(--color-primary);
  border-radius: 8px;
  background: var(--color-primary);
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.news-archive-search button { border-radius: 8px 0 0 8px; }
.news-archive-search input:focus,
.news-archive-sidebar-search input:focus,
.news-archive-union-form select:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(12, 116, 185, .13); }
.news-archive-search button:focus-visible,
.news-archive-sidebar-search button:focus-visible,
.news-archive-union-form button:focus-visible,
.news-archive-filter-toggle:focus-visible { outline: 3px solid rgba(12, 116, 185, .2); outline-offset: 2px; }

.news-archive-clear {
  color: var(--color-primary);
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.news-archive-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 24px;
  align-items: start;
}

.news-archive-main { min-width: 0; }
.news-archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.news-archive-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(15, 35, 52, .1);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 35, 52, .04);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.news-archive-card:hover {
  border-color: rgba(12, 116, 185, .24);
  box-shadow: 0 8px 22px rgba(15, 35, 52, .075);
  transform: translateY(-2px);
}

.news-archive-card-link { height: 100%; display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.news-archive-card-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #edf2f5; }
.news-archive-card-media img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; transition: transform .25s ease; }
.news-archive-card:hover .news-archive-card-media img { transform: scale(1.025); }

.news-archive-card-badge {
  position: absolute;
  inset-inline: 8px auto;
  bottom: 8px;
  max-width: calc(100% - 16px);
  overflow: hidden;
  padding: 3px 7px;
  border-radius: 5px;
  background: var(--color-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-archive-card-content { min-height: 184px; display: flex; flex: 1; flex-direction: column; padding: 13px 13px 11px; }
.news-archive-card-content h2 {
  min-height: 67px;
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 7px;
  color: var(--color-ink-900);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.news-archive-card-content p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--color-ink-550, #667481);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.news-archive-card-footer {
  min-height: 31px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 9px;
  border-top: 1px solid rgba(15, 35, 52, .075);
  color: var(--color-ink-450, #7b8791);
  font-size: 11px;
  line-height: 1.4;
}

.news-archive-card-footer span { display: inline-flex; align-items: center; gap: 3px; color: var(--color-primary); font-weight: 600; white-space: nowrap; }
.news-archive-card-footer svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.news-archive-sidebar {
  position: sticky;
  top: calc(var(--desktop-sticky-stack-height, 89px) + 18px);
  display: grid;
  gap: 14px;
}

.news-archive-sidebar-card,
.news-archive-mobile-filters {
  padding: 16px;
  border: 1px solid rgba(15, 35, 52, .1);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(15, 35, 52, .035);
}

.news-archive-sidebar-card h2 { margin: 0 0 11px; color: #102f47; font-size: 14px; font-weight: 650; line-height: 1.6; }
.news-archive-sidebar-search,
.news-archive-union-form { display: grid; gap: 9px; }
.news-archive-sidebar-search label,
.news-archive-union-form label { color: var(--color-ink-600); font-size: 11.5px; font-weight: 500; }
.news-archive-sidebar-search input,
.news-archive-union-form select { padding-inline: 10px; border-radius: 7px; }
.news-archive-sidebar-clear { justify-self: start; color: var(--color-primary); font-size: 11px; font-weight: 600; text-decoration: none; }

.news-archive-filter-toggle,
.news-archive-mobile-filters { display: none; }
.news-archive-filter-actions { display: flex; align-items: center; gap: 8px; }
.news-archive-filter-actions a { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; padding-inline: 12px; border: 1px solid rgba(15, 35, 52, .13); border-radius: 8px; color: var(--color-ink-700); font-size: 11.5px; font-weight: 600; text-decoration: none; }

.news-archive-results { position: relative; outline: none; }
.news-archive-results:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 5px; border-radius: 8px; }
.news-archive-results-content { transition: opacity .18s ease; }
.news-archive-results.is-loading .news-archive-results-content { opacity: .48; }
.news-archive-results.is-loading .news-archive-pagination { pointer-events: none; }
.news-archive-feedback {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  color: var(--color-ink-700);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.7;
  white-space: nowrap;
}
.news-archive-results.is-loading .news-archive-feedback {
  position: absolute;
  z-index: 2;
  top: min(180px, 35%);
  inset-inline: 50% auto;
  min-height: 38px;
  width: auto;
  height: auto;
  overflow: visible;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-inline: 13px;
  border: 1px solid rgba(15, 35, 52, .12);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 35, 52, .08);
  clip: auto;
  clip-path: none;
  white-space: nowrap;
  transform: translateX(50%);
}
.news-archive-results.is-loading .news-archive-feedback::before {
  width: 14px;
  height: 14px;
  content: '';
  border: 2px solid rgba(9, 95, 152, .2);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: news-archive-spin .7s linear infinite;
}
.news-archive-results.has-error .news-archive-feedback {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  display: block;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(185, 28, 28, .18);
  border-radius: 7px;
  background: #fff7f7;
  color: #9f1d1d;
  clip: auto;
  clip-path: none;
  white-space: normal;
}
@keyframes news-archive-spin { to { transform: rotate(360deg); } }

.news-archive-page .news-archive-pagination {
  direction: rtl;
  display: grid;
  grid-template-columns: auto minmax(0, auto) auto;
  grid-template-areas: 'previous pages next';
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 30px;
}

.news-archive-page .news-archive-pagination > .news-archive-page-edge,
.news-archive-page .news-archive-page-numbers > .news-archive-pagination-link,
.news-archive-page .news-archive-page-numbers > .news-archive-page-ellipsis,
.news-archive-page .news-archive-pagination > .news-archive-page-summary {
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15, 35, 52, .13);
  border-radius: 7px;
  background: #fff;
  color: var(--color-ink-700);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color .16s ease, background-color .16s ease, color .16s ease;
}

.news-archive-page .news-archive-pagination > .news-archive-page-edge:first-child { grid-area: previous; direction: rtl; }
.news-archive-page .news-archive-pagination > .news-archive-page-edge:last-child { grid-area: next; direction: rtl; }
.news-archive-page .news-archive-page-numbers {
  direction: ltr;
  grid-area: pages;
  width: auto;
  height: auto;
  display: inline-flex;
  gap: 6px;
  border: 0;
  background: transparent;
}
.news-archive-page .news-archive-pagination a:hover { border-color: var(--color-primary); background: #f2f8fc; color: var(--color-primary); }
.news-archive-page .news-archive-pagination .is-current { border-color: var(--color-primary); background: var(--color-primary); color: #fff; font-weight: 700; }
.news-archive-page .news-archive-pagination .is-disabled { opacity: .45; background: #f4f6f7; cursor: not-allowed; pointer-events: none; }
.news-archive-page .news-archive-pagination .news-archive-page-ellipsis { min-width: 24px; padding: 0; border-color: transparent; background: transparent; pointer-events: none; }
.news-archive-page .news-archive-pagination > .news-archive-page-summary { display: none; }

.news-archive-empty {
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 30px 20px;
  border: 1px solid rgba(15, 35, 52, .1);
  border-radius: 10px;
  background: #fff;
  text-align: center;
}

.news-archive-empty > svg { width: 38px; height: 38px; margin-bottom: 10px; fill: none; stroke: var(--color-primary); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.news-archive-empty h2 { margin: 0; color: var(--color-ink-900); font-size: 18px; font-weight: 650; }
.news-archive-empty p { margin: 7px 0 0; color: var(--color-ink-550, #667481); font-size: 12px; }
.news-archive-empty a { min-height: 38px; display: inline-flex; align-items: center; margin-top: 15px; padding-inline: 14px; border-radius: 7px; background: var(--color-primary); color: #fff; font-size: 12px; font-weight: 600; text-decoration: none; }

@media (max-width: 1199.98px) {
  .news-archive-layout { grid-template-columns: minmax(0, 1fr) 255px; gap: 20px; }
  .news-archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 991.98px) {
  .news-archive-toolbar { grid-template-columns: minmax(180px, 1fr) minmax(300px, 1.2fr) auto; }
  .news-archive-layout { grid-template-columns: 1fr; }
  .news-archive-sidebar { display: none; }
  .news-archive-mobile-filters { display: block; margin: 10px 0 16px; }
  .news-archive-page.is-filter-enhanced .news-archive-filter-toggle {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 4px;
    padding-inline: 13px;
    border: 1px solid rgba(15, 35, 52, .14);
    border-radius: 8px;
    background: #fff;
    color: #102f47;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
  }
  .news-archive-filter-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
  .news-archive-page.is-filter-enhanced .news-archive-mobile-filters[hidden] { display: none; }
}

@media (max-width: 767.98px) {
  .news-archive-hero { padding-block: 23px 20px; }
  .news-archive-hero h1 { font-size: 21px; }
  .news-archive-hero p { font-size: 11.5px; }
  .news-archive-page { padding-block: 22px 42px; }
  .news-archive-toolbar { grid-template-columns: 1fr; gap: 10px; margin-bottom: 13px; padding: 14px; }
  .news-archive-toolbar-heading h2 { font-size: 18px; }
  .news-archive-clear { justify-self: start; }
  .news-archive-grid { grid-template-columns: 1fr; gap: 11px; }
  .news-archive-page .news-archive-pagination > .news-archive-page-numbers { display: none; }
  .news-archive-page .news-archive-pagination > .news-archive-page-summary { grid-area: pages; width: auto; min-width: 104px; height: 40px; display: inline-flex; padding-inline: 10px; white-space: nowrap; }
  .news-archive-page .news-archive-pagination { grid-template-columns: minmax(64px, 1fr) auto minmax(64px, 1fr); width: 100%; gap: 6px; margin-top: 22px; }
  .news-archive-page .news-archive-pagination .news-archive-page-edge { width: 100%; min-width: 64px; height: 40px; }
}

@media (min-width: 381px) and (max-width: 640px) {
  .news-archive-card-link { min-height: 154px; display: grid; grid-template-columns: 41% minmax(0, 59%); }
  .news-archive-card-media { height: 100%; min-height: 154px; aspect-ratio: auto; }
  .news-archive-card-content { min-height: 154px; padding: 10px; }
  .news-archive-card-content h2 { min-height: 58px; margin-bottom: 4px; font-size: 13px; line-height: 1.5; }
  .news-archive-card-content p { font-size: 11px; line-height: 1.55; -webkit-line-clamp: 2; }
  .news-archive-card-footer { min-height: 27px; padding-top: 7px; font-size: 10px; }
  .news-archive-card-footer span { font-size: 10px; }
  .news-archive-card-badge { inset-inline: 6px auto; bottom: 6px; max-width: calc(100% - 12px); font-size: 9px; }
}

@media (max-width: 380px) {
  .news-archive-search input { font-size: 11px; }
  .news-archive-card-content { min-height: 166px; padding: 11px; }
  .news-archive-card-content h2 { min-height: 61px; font-size: 13px; }
  .news-archive-card-content p { font-size: 11px; -webkit-line-clamp: 2; }
  .news-archive-page .news-archive-pagination { grid-template-columns: minmax(58px, 1fr) auto minmax(58px, 1fr); gap: 4px; }
  .news-archive-page .news-archive-page-summary { min-width: 98px; padding-inline: 6px; font-size: 11px; }
  .news-archive-page .news-archive-pagination .news-archive-page-edge { min-width: 58px; padding-inline: 7px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .news-archive-results-content { transition: none; }
  .news-archive-results.is-loading .news-archive-feedback::before { animation-duration: 1.4s; }
}

/* Guilds directory: organizational cards and controls isolated from generic archive UI. */
.guilds-directory-page { background: #f3f5f7; }
.guilds-directory-page .guilds-directory-header { padding-block: 30px 27px; background: #111; color: #fff; }
.guilds-directory-page .guilds-directory-header .breadcrumb-nav { margin-bottom: 8px; }
.guilds-directory-page .guilds-directory-header .breadcrumb-nav a { color: rgba(255,255,255,.72); }
.guilds-directory-page .guilds-directory-header .breadcrumb-nav span { color: rgba(255,255,255,.52); }
.guilds-directory-page .guilds-directory-header h1 { margin: 0; color: #fff; font-size: 25px; font-weight: 750; line-height: 1.55; }
.guilds-directory-page .guilds-directory-header p { margin: 5px 0 0; color: rgba(255,255,255,.7); font-size: 12.5px; line-height: 1.8; }
.guilds-directory-page .guilds-directory-main { padding-block: 30px 56px; }
.guilds-directory-page .guilds-directory-toolbar { display: grid; grid-template-columns: minmax(220px,.8fr) minmax(320px,1.5fr) auto; align-items: end; gap: 14px; margin-bottom: 14px; padding: 16px; border: 1px solid rgba(15,35,52,.1); border-radius: 9px; background: #fff; box-shadow: 0 3px 12px rgba(15,35,52,.035); }
.guilds-directory-page .guilds-directory-heading h2 { margin: 0; outline: 0; color: var(--color-ink-900); font-size: 20px; font-weight: 700; line-height: 1.55; }
.guilds-directory-page .guilds-directory-heading h2:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 4px; border-radius: 4px; }
.guilds-directory-page .guilds-directory-heading p { margin: 3px 0 0; color: var(--color-ink-450,#7b8791); font-size: 12px; }
.guilds-directory-page .guilds-directory-search { height: 40px; display: grid; grid-template-columns: minmax(0,1fr) auto; }
.guilds-directory-page .guilds-directory-search input { min-width: 0; height: 40px; padding-inline: 11px; border: 1px solid rgba(15,35,52,.14); border-inline-end: 0; border-radius: 0 7px 7px 0; outline: 0; background: #fff; color: var(--color-ink-800); font-family: inherit; font-size: 12px; }
.guilds-directory-page .guilds-directory-search input:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(9,95,152,.1); }
.guilds-directory-page .guilds-directory-search button { height: 40px; padding-inline: 15px; border: 1px solid var(--color-primary); border-radius: 7px 0 0 7px; background: var(--color-primary); color: #fff; font-family: inherit; font-size: 11.5px; font-weight: 650; cursor: pointer; }
.guilds-directory-page .guilds-directory-clear { height: 40px; display: inline-flex; align-items: center; justify-content: center; padding-inline: 12px; border: 1px solid rgba(15,35,52,.14); border-radius: 7px; background: #fff; color: var(--color-ink-700); font-size: 11.5px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.guilds-directory-page .guilds-type-tabs { display: flex; gap: 7px; margin-bottom: 18px; overflow-x: auto; padding: 2px 1px 5px; scrollbar-width: none; scroll-snap-type: x proximity; }
.guilds-directory-page .guilds-type-tabs::-webkit-scrollbar { display: none; }
.guilds-directory-page .guilds-type-tab { min-height: 40px; display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; padding-inline: 11px; border: 1px solid rgba(15,35,52,.13); border-radius: 7px; background: #fff; color: #173b55; font-size: 12px; font-weight: 500; text-decoration: none; white-space: nowrap; scroll-snap-align: start; transition: border-color .16s ease,background-color .16s ease,color .16s ease; }
.guilds-directory-page .guilds-type-tab svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.guilds-directory-page .guilds-type-tab small { min-width: 22px; height: 21px; display: inline-flex; align-items: center; justify-content: center; padding-inline: 5px; border-radius: 999px; background: #edf2f5; color: #536675; font-size: 10px; font-weight: 650; }
.guilds-directory-page .guilds-type-tab:hover { border-color: var(--color-primary); color: var(--color-primary); }
.guilds-directory-page .guilds-type-tab.is-active { border-color: var(--color-primary); background: var(--color-primary); color: #fff; font-weight: 650; }
.guilds-directory-page .guilds-type-tab.is-active small { background: rgba(255,255,255,.2); color: #fff; }
.guilds-directory-page .guilds-directory-results { position: relative; outline: none; }
.guilds-directory-page .guilds-directory-results:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 5px; border-radius: 9px; }
.guilds-directory-page .guilds-directory-results-content { transition: opacity .18s ease; }
.guilds-directory-page .guilds-directory-results.is-loading .guilds-directory-results-content { opacity: .46; }
.guilds-directory-page .guilds-directory-results.is-loading .guilds-directory-pagination,
.guilds-directory-page .guilds-type-tabs.is-loading { pointer-events: none; }
.guilds-directory-page .guilds-directory-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: stretch; gap: 16px; }
.guilds-directory-page .guild-directory-card { min-width: 0; height: 100%; display: flex; flex-direction: column; padding: 14px; border: 1px solid rgba(15,35,52,.1); border-radius: 9px; background: #fff; box-shadow: 0 3px 12px rgba(15,35,52,.035); transition: border-color .18s ease,box-shadow .18s ease,transform .18s ease; }
.guilds-directory-page .guild-directory-card:hover { border-color: rgba(9,95,152,.24); box-shadow: 0 7px 20px rgba(15,35,52,.075); transform: translateY(-2px); }
.guilds-directory-page .guild-directory-card-header { display: flex; align-items: flex-start; gap: 11px; }
.guilds-directory-page .guild-directory-logo { width: 66px; height: 66px; flex: 0 0 66px; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid rgba(15,35,52,.1); border-radius: 9px; background: #eef6fb; color: #174b70; }
.guilds-directory-page .guild-directory-logo img { width: 100%; height: 100%; display: block; object-fit: contain; background: #fff; }
.guilds-directory-page .guild-directory-logo-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.guilds-directory-page .guild-directory-logo.has-image .guild-directory-logo-fallback { display: none; }
.guilds-directory-page .guild-directory-logo.is-image-failed img { display: none; }
.guilds-directory-page .guild-directory-logo.is-image-failed .guild-directory-logo-fallback { display: flex; }
.guilds-directory-page .guild-directory-logo svg { width: 31px; height: 31px; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.guilds-directory-page .guild-directory-identity { min-width: 0; flex: 1; }
.guilds-directory-page .guild-directory-type { min-height: 23px; display: inline-flex; align-items: center; margin-bottom: 5px; padding-inline: 7px; border: 1px solid rgba(9,95,152,.14); border-radius: 5px; background: #eef6fb; color: #165174; font-size: 10px; font-weight: 650; }
.guilds-directory-page .guild-directory-type.type-production { background: #f3f6fb; color: #34516d; }
.guilds-directory-page .guild-directory-type.type-distribution { background: #eef8f7; color: #28645d; }
.guilds-directory-page .guild-directory-type.type-service { background: #f3f4fa; color: #4c5275; }
.guilds-directory-page .guild-directory-type.type-specialized { background: #f8f4ee; color: #745b35; }
.guilds-directory-page .guild-directory-title { display: -webkit-box; overflow: hidden; margin: 0; color: #102f47; font-size: 14.5px; font-weight: 650; line-height: 1.7; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.guilds-directory-page .guild-directory-body { display: flex; flex: 1; flex-direction: column; }
.guilds-directory-page .guild-directory-description { display: -webkit-box; overflow: hidden; margin: 11px 0 0; color: var(--color-ink-550,#667481); font-size: 12px; line-height: 1.75; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.guilds-directory-page .guild-directory-meta { display: grid; gap: 8px; margin-top: 12px; padding-top: 11px; border-top: 1px solid rgba(15,35,52,.075); }
.guilds-directory-page .guild-directory-manager,
.guilds-directory-page .guild-directory-phone { min-width: 0; display: flex; align-items: center; gap: 8px; color: #425b6d; }
.guilds-directory-page .guild-directory-meta svg { width: 16px; height: 16px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.guilds-directory-page .guild-directory-meta span { min-width: 0; display: grid; gap: 1px; }
.guilds-directory-page .guild-directory-meta small { color: #87939d; font-size: 9.5px; line-height: 1.3; }
.guilds-directory-page .guild-directory-meta strong,
.guilds-directory-page .guild-directory-meta a { overflow: hidden; color: #29475d; font-size: 11.5px; font-weight: 600; line-height: 1.5; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.guilds-directory-page .guild-directory-phone a:hover { color: var(--color-primary); text-decoration: underline; }
.guilds-directory-page .guild-directory-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: auto; padding-top: 14px; }
.guilds-directory-page .guild-directory-actions a { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; padding-inline: 9px; border: 1px solid var(--color-primary); border-radius: 7px; background: var(--color-primary); color: #fff; font-size: 11px; font-weight: 650; text-align: center; text-decoration: none; }
.guilds-directory-page .guild-directory-actions a:only-child { grid-column: 1 / -1; }
.guilds-directory-page .guild-directory-actions .guild-directory-complaint { border-color: rgba(168,45,45,.48); background: #fff; color: #a52f2f; }
.guilds-directory-page .guild-directory-actions a:focus-visible { outline: 3px solid rgba(9,95,152,.25); outline-offset: 2px; }
.guilds-directory-page .guilds-directory-empty { grid-column: 1 / -1; min-height: 260px; display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 30px 20px; border: 1px solid rgba(15,35,52,.1); border-radius: 9px; background: #fff; text-align: center; }
.guilds-directory-page .guilds-directory-empty > svg { width: 42px; height: 42px; margin-bottom: 10px; fill: none; stroke: var(--color-primary); stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.guilds-directory-page .guilds-directory-empty h2 { margin: 0; color: var(--color-ink-900); font-size: 18px; font-weight: 650; }
.guilds-directory-page .guilds-directory-empty p { margin: 7px 0 0; color: var(--color-ink-550,#667481); font-size: 12px; }
.guilds-directory-page .guilds-directory-empty a { min-height: 39px; display: inline-flex; align-items: center; margin-top: 15px; padding-inline: 14px; border-radius: 7px; background: var(--color-primary); color: #fff; font-size: 12px; font-weight: 600; text-decoration: none; }
.guilds-directory-page .guilds-directory-pagination { direction: rtl; display: grid; grid-template-columns: auto minmax(0,auto) auto; grid-template-areas: 'previous pages next'; align-items: center; justify-content: center; gap: 6px; margin-top: 30px; }
.guilds-directory-page .guilds-directory-pagination > .guilds-page-edge,
.guilds-directory-page .guilds-page-numbers > .guilds-page-link,
.guilds-directory-page .guilds-page-numbers > .guilds-page-ellipsis,
.guilds-directory-page .guilds-directory-pagination > .guilds-page-summary { min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; padding-inline: 10px; border: 1px solid rgba(15,35,52,.13); border-radius: 7px; background: #fff; color: var(--color-ink-700); font-size: 12px; font-weight: 500; text-decoration: none; }
.guilds-directory-page .guilds-directory-pagination > .guilds-page-edge:first-child { grid-area: previous; }
.guilds-directory-page .guilds-directory-pagination > .guilds-page-edge:last-child { grid-area: next; }
.guilds-directory-page .guilds-page-numbers { direction: ltr; grid-area: pages; display: inline-flex; gap: 6px; }
.guilds-directory-page .guilds-directory-pagination a:hover { border-color: var(--color-primary); color: var(--color-primary); }
.guilds-directory-page .guilds-directory-pagination .is-current { border-color: var(--color-primary); background: var(--color-primary); color: #fff; font-weight: 700; }
.guilds-directory-page .guilds-directory-pagination .is-disabled { opacity: .45; background: #f4f6f7; pointer-events: none; }
.guilds-directory-page .guilds-page-ellipsis { min-width: 24px; padding: 0; border-color: transparent; background: transparent; }
.guilds-directory-page .guilds-page-summary { display: none; }
.guilds-directory-page .guilds-directory-feedback { position: absolute; width: 1px; height: 1px; overflow: hidden; margin: -1px; padding: 0; border: 0; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.guilds-directory-page .guilds-directory-results.is-loading .guilds-directory-feedback { position: absolute; z-index: 2; top: min(180px,35%); inset-inline: 50% auto; width: auto; height: 38px; overflow: visible; display: inline-flex; align-items: center; gap: 8px; margin: 0; padding-inline: 13px; border: 1px solid rgba(15,35,52,.12); border-radius: 7px; background: #fff; color: var(--color-ink-700); box-shadow: 0 4px 14px rgba(15,35,52,.08); clip: auto; clip-path: none; font-size: 12px; font-weight: 600; transform: translateX(50%); }
.guilds-directory-page .guilds-directory-results.is-loading .guilds-directory-feedback::before { width: 14px; height: 14px; content: ''; border: 2px solid rgba(9,95,152,.2); border-top-color: var(--color-primary); border-radius: 50%; animation: guilds-directory-spin .7s linear infinite; }
.guilds-directory-page .guilds-directory-results.has-error .guilds-directory-feedback { position: static; width: auto; height: auto; overflow: visible; display: block; margin: 12px 0 0; padding: 10px 12px; border: 1px solid rgba(185,28,28,.18); border-radius: 7px; background: #fff7f7; color: #9f1d1d; clip: auto; clip-path: none; font-size: 12px; white-space: normal; }
@keyframes guilds-directory-spin { to { transform: rotate(360deg); } }
@media (max-width:1199.98px) {
  .guilds-directory-page .guilds-directory-toolbar { grid-template-columns: minmax(200px,.8fr) minmax(300px,1.5fr) auto; }
  .guilds-directory-page .guilds-directory-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width:767.98px) {
  .guilds-directory-page .guilds-directory-header { padding-block: 23px 20px; }
  .guilds-directory-page .guilds-directory-header h1 { font-size: 21px; }
  .guilds-directory-page .guilds-directory-header p { font-size: 11.5px; }
  .guilds-directory-page .guilds-directory-main { padding-block: 22px 42px; }
  .guilds-directory-page .guilds-directory-toolbar { grid-template-columns: 1fr; gap: 10px; margin-bottom: 11px; padding: 14px; }
  .guilds-directory-page .guilds-directory-heading h2 { font-size: 18px; }
  .guilds-directory-page .guilds-directory-clear { justify-self: start; }
  .guilds-directory-page .guilds-type-tabs { margin-inline: -2px; margin-bottom: 14px; }
  .guilds-directory-page .guilds-type-tab { min-height: 40px; padding-inline: 10px; font-size: 11.5px; }
  .guilds-directory-page .guilds-directory-grid { grid-template-columns: 1fr; gap: 11px; }
  .guilds-directory-page .guild-directory-card { padding: 12px; border-radius: 8px; }
  .guilds-directory-page .guild-directory-logo { width: 56px; height: 56px; flex-basis: 56px; }
  .guilds-directory-page .guild-directory-logo svg { width: 27px; height: 27px; }
  .guilds-directory-page .guild-directory-title { font-size: 13px; }
  .guilds-directory-page .guild-directory-description { font-size: 11.5px; }
  .guilds-directory-page .guild-directory-actions a { min-height: 40px; }
  .guilds-directory-page .guilds-page-numbers { display: none; }
  .guilds-directory-page .guilds-page-summary { grid-area: pages; min-width: 104px; height: 40px; display: inline-flex; white-space: nowrap; }
  .guilds-directory-page .guilds-directory-pagination { grid-template-columns: minmax(64px,1fr) auto minmax(64px,1fr); width: 100%; margin-top: 22px; }
  .guilds-directory-page .guilds-page-edge { width: 100%; min-width: 64px; height: 40px; }
}
@media (max-width:380px) {
  .guilds-directory-page .guild-directory-actions { grid-template-columns: 1fr; }
  .guilds-directory-page .guild-directory-actions a:only-child { grid-column: auto; }
  .guilds-directory-page .guilds-directory-pagination { grid-template-columns: minmax(58px,1fr) auto minmax(58px,1fr); gap: 4px; }
  .guilds-directory-page .guilds-page-summary { min-width: 98px; padding-inline: 6px; font-size: 11px; }
  .guilds-directory-page .guilds-page-edge { min-width: 58px; padding-inline: 7px; font-size: 11px; }
}
@media (prefers-reduced-motion:reduce) {
  .guilds-directory-page .guild-directory-card,
  .guilds-directory-page .guilds-directory-results-content { transition: none; }
  .guilds-directory-page .guilds-directory-results.is-loading .guilds-directory-feedback::before { animation-duration: 1.4s; }
}

/* Announcements archive: isolated from generic archives, news cards and shared pagination. */
.announcements-archive-page { background: #f3f5f7; }
.announcements-archive-page .announcements-page-header { padding-block: 30px 27px; background: #111; color: #fff; }
.announcements-archive-page .announcements-page-header .breadcrumb-nav { margin-bottom: 8px; }
.announcements-archive-page .announcements-page-header .breadcrumb-nav a { color: rgba(255, 255, 255, .72); }
.announcements-archive-page .announcements-page-header .breadcrumb-nav span { color: rgba(255, 255, 255, .52); }
.announcements-archive-page .announcements-page-header h1 { margin: 0; color: #fff; font-size: 25px; font-weight: 750; line-height: 1.55; }
.announcements-archive-page .announcements-page-header p { margin: 5px 0 0; color: rgba(255, 255, 255, .7); font-size: 12.5px; line-height: 1.8; }
.announcements-archive-page .announcements-archive-main { padding-block: 30px 56px; }

.announcements-archive-page .announcements-toolbar {
  display: grid;
  grid-template-columns: minmax(205px, .7fr) minmax(0, 2.3fr);
  align-items: end;
  gap: 18px;
  margin-bottom: 22px;
  padding: 16px;
  border: 1px solid rgba(15, 35, 52, .1);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(15, 35, 52, .035);
}
.announcements-archive-page .announcements-toolbar-heading h2 { margin: 0; color: var(--color-ink-900); font-size: 20px; font-weight: 700; line-height: 1.55; }
.announcements-archive-page .announcements-toolbar-heading p { margin: 3px 0 0; color: var(--color-ink-450, #7b8791); font-size: 12px; line-height: 1.6; }
.announcements-archive-page .announcements-filters { display: grid; grid-template-columns: minmax(190px, 1.25fr) minmax(0, 2.15fr); align-items: end; gap: 10px; }
.announcements-archive-page .announcements-filter-panel { display: grid; grid-template-columns: minmax(150px, .9fr) minmax(195px, 1.25fr) auto; align-items: end; gap: 10px; }
.announcements-archive-page .announcements-filter-field { min-width: 0; display: grid; gap: 5px; }
.announcements-archive-page .announcements-filter-field label { color: var(--color-ink-600); font-size: 11.5px; font-weight: 600; }
.announcements-archive-page .announcements-filter-field input,
.announcements-archive-page .announcements-filter-field select {
  width: 100%;
  height: 40px;
  padding-inline: 10px;
  border: 1px solid rgba(15, 35, 52, .14);
  border-radius: 7px;
  outline: 0;
  background: #fff;
  color: var(--color-ink-800);
  font-family: inherit;
  font-size: 12px;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.announcements-archive-page .announcements-filter-field input:focus,
.announcements-archive-page .announcements-filter-field select:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(9, 95, 152, .1); }
.announcements-archive-page .announcements-filter-actions { display: flex; align-items: center; gap: 7px; }
.announcements-archive-page .announcements-filter-actions button,
.announcements-archive-page .announcements-filter-actions a {
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 12px;
  border: 1px solid var(--color-primary);
  border-radius: 7px;
  background: var(--color-primary);
  color: #fff;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.announcements-archive-page .announcements-filter-actions a { border-color: rgba(15, 35, 52, .14); background: #fff; color: var(--color-ink-700); }
.announcements-archive-page .announcements-filter-toggle { display: none; }

.announcements-archive-page .announcements-results { position: relative; outline: none; }
.announcements-archive-page .announcements-results:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 5px; border-radius: 9px; }
.announcements-archive-page .announcements-results-content { transition: opacity .18s ease; }
.announcements-archive-page .announcements-results.is-loading .announcements-results-content { opacity: .48; }
.announcements-archive-page .announcements-results.is-loading .announcements-pagination { pointer-events: none; }
.announcements-archive-page .announcements-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 16px; }

.announcements-archive-page .announcement-card {
  overflow: hidden;
  border: 1px solid rgba(15, 35, 52, .1);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(15, 35, 52, .035);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.announcements-archive-page .announcement-card:hover { border-color: rgba(9, 95, 152, .24); box-shadow: 0 7px 20px rgba(15, 35, 52, .075); transform: translateY(-2px); }
.announcements-archive-page .announcement-card.is-important { border-inline-start: 3px solid #d9573f; }
.announcements-archive-page .announcement-card-link { display: block; color: inherit; text-decoration: none; }
.announcements-archive-page .announcement-card-link:focus-visible { outline: 3px solid rgba(9, 95, 152, .28); outline-offset: -3px; }
.announcements-archive-page .announcement-card-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #e9edf0; }
.announcements-archive-page .announcement-card-media img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .25s ease; }
.announcements-archive-page .announcement-card:hover .announcement-card-media img { transform: scale(1.018); }
.announcements-archive-page .announcement-card-media .announcement-category-badge { position: absolute; inset-inline: 9px auto; bottom: 9px; max-width: calc(100% - 18px); }
.announcements-archive-page .announcement-card-body { min-height: 244px; display: flex; flex-direction: column; padding: 14px; }
.announcements-archive-page .announcement-card.is-no-image .announcement-card-body { min-height: 218px; }
.announcements-archive-page .announcement-card-document { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 10px; border-radius: 8px; background: #eef6fb; color: var(--color-primary); }
.announcements-archive-page .announcement-card-document svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.announcements-archive-page .announcement-card-badges { min-height: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 7px; }
.announcements-archive-page .announcement-card.has-image .announcement-card-badges:empty { min-height: 0; margin: 0; }
.announcements-archive-page .announcement-category-badge,
.announcements-archive-page .announcement-important-badge { min-height: 23px; display: inline-flex; align-items: center; padding-inline: 8px; border-radius: 5px; background: rgba(9, 95, 152, .94); color: #fff; font-size: 10px; font-weight: 650; line-height: 1.2; }
.announcements-archive-page .announcement-important-badge { background: #d9573f; }
.announcements-archive-page .announcement-card-body h2 { display: -webkit-box; overflow: hidden; margin: 0 0 7px; color: #102f47; font-size: 14.5px; font-weight: 650; line-height: 1.75; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.announcements-archive-page .announcement-card-body > p { display: -webkit-box; overflow: hidden; margin: 0; color: var(--color-ink-550, #667481); font-size: 12px; font-weight: 400; line-height: 1.75; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.announcements-archive-page .announcement-card-meta { display: flex; flex-wrap: wrap; gap: 7px 12px; margin-top: 11px; padding-top: 10px; border-top: 1px solid rgba(15, 35, 52, .075); color: var(--color-ink-450, #7b8791); font-size: 10.5px; }
.announcements-archive-page .announcement-card-meta span { min-width: 0; display: inline-flex; align-items: center; gap: 4px; }
.announcements-archive-page .announcement-card-meta svg,
.announcements-archive-page .announcement-card-action svg { width: 15px; height: 15px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.announcements-archive-page .announcement-card-action { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; margin-top: auto; padding-top: 12px; color: var(--color-primary); font-size: 11.5px; font-weight: 650; }

.announcements-archive-page .announcements-empty { min-height: 260px; display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 30px 20px; border: 1px solid rgba(15, 35, 52, .1); border-radius: 9px; background: #fff; text-align: center; }
.announcements-archive-page .announcements-empty > svg { width: 39px; height: 39px; margin-bottom: 10px; fill: none; stroke: var(--color-primary); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.announcements-archive-page .announcements-empty h2 { margin: 0; color: var(--color-ink-900); font-size: 18px; font-weight: 650; }
.announcements-archive-page .announcements-empty p { margin: 7px 0 0; color: var(--color-ink-550, #667481); font-size: 12px; }
.announcements-archive-page .announcements-empty a { min-height: 38px; display: inline-flex; align-items: center; margin-top: 15px; padding-inline: 14px; border-radius: 7px; background: var(--color-primary); color: #fff; font-size: 12px; font-weight: 600; text-decoration: none; }

.announcements-archive-page .announcements-pagination { direction: rtl; display: grid; grid-template-columns: auto minmax(0, auto) auto; grid-template-areas: 'previous pages next'; align-items: center; justify-content: center; gap: 6px; margin-top: 30px; }
.announcements-archive-page .announcements-pagination > .announcements-page-edge,
.announcements-archive-page .announcements-page-numbers > .announcements-page-link,
.announcements-archive-page .announcements-page-numbers > .announcements-page-ellipsis,
.announcements-archive-page .announcements-pagination > .announcements-page-summary { min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; padding-inline: 10px; border: 1px solid rgba(15, 35, 52, .13); border-radius: 7px; background: #fff; color: var(--color-ink-700); font-size: 12px; font-weight: 500; text-decoration: none; transition: border-color .16s ease, background-color .16s ease, color .16s ease; }
.announcements-archive-page .announcements-pagination > .announcements-page-edge:first-child { grid-area: previous; direction: rtl; }
.announcements-archive-page .announcements-pagination > .announcements-page-edge:last-child { grid-area: next; direction: rtl; }
.announcements-archive-page .announcements-page-numbers { direction: ltr; grid-area: pages; display: inline-flex; gap: 6px; }
.announcements-archive-page .announcements-pagination a:hover { border-color: var(--color-primary); background: #f2f8fc; color: var(--color-primary); }
.announcements-archive-page .announcements-pagination .is-current { border-color: var(--color-primary); background: var(--color-primary); color: #fff; font-weight: 700; }
.announcements-archive-page .announcements-pagination .is-disabled { opacity: .45; background: #f4f6f7; cursor: not-allowed; pointer-events: none; }
.announcements-archive-page .announcements-pagination .announcements-page-ellipsis { min-width: 24px; padding: 0; border-color: transparent; background: transparent; }
.announcements-archive-page .announcements-pagination > .announcements-page-summary { display: none; }

.announcements-archive-page .announcements-feedback { position: absolute; width: 1px; height: 1px; overflow: hidden; margin: -1px; padding: 0; border: 0; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.announcements-archive-page .announcements-results.is-loading .announcements-feedback { position: absolute; z-index: 2; top: min(180px, 35%); inset-inline: 50% auto; width: auto; height: 38px; overflow: visible; display: inline-flex; align-items: center; gap: 8px; margin: 0; padding-inline: 13px; border: 1px solid rgba(15, 35, 52, .12); border-radius: 7px; background: #fff; color: var(--color-ink-700); box-shadow: 0 4px 14px rgba(15, 35, 52, .08); clip: auto; clip-path: none; font-size: 12px; font-weight: 600; transform: translateX(50%); }
.announcements-archive-page .announcements-results.is-loading .announcements-feedback::before { width: 14px; height: 14px; content: ''; border: 2px solid rgba(9, 95, 152, .2); border-top-color: var(--color-primary); border-radius: 50%; animation: announcements-spin .7s linear infinite; }
.announcements-archive-page .announcements-results.has-error .announcements-feedback { position: static; width: auto; height: auto; overflow: visible; display: block; margin: 12px 0 0; padding: 10px 12px; border: 1px solid rgba(185, 28, 28, .18); border-radius: 7px; background: #fff7f7; color: #9f1d1d; clip: auto; clip-path: none; font-size: 12px; white-space: normal; }
@keyframes announcements-spin { to { transform: rotate(360deg); } }

@media (max-width: 1199.98px) {
  .announcements-archive-page .announcements-toolbar { grid-template-columns: 1fr; align-items: stretch; }
  .announcements-archive-page .announcements-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
  .announcements-archive-page .announcements-page-header { padding-block: 23px 20px; }
  .announcements-archive-page .announcements-page-header h1 { font-size: 21px; }
  .announcements-archive-page .announcements-page-header p { font-size: 11.5px; }
  .announcements-archive-page .announcements-archive-main { padding-block: 22px 42px; }
  .announcements-archive-page .announcements-toolbar { gap: 12px; margin-bottom: 16px; padding: 14px; }
  .announcements-archive-page .announcements-toolbar-heading h2 { font-size: 18px; }
  .announcements-archive-page .announcements-filters { display: block; }
  .announcements-archive-page .announcements-filter-toggle { width: 100%; height: 40px; align-items: center; justify-content: center; gap: 7px; margin-top: 10px; padding-inline: 12px; border: 1px solid rgba(15, 35, 52, .14); border-radius: 7px; background: #fff; color: #102f47; font-family: inherit; font-size: 12px; font-weight: 650; cursor: pointer; }
  .announcements-archive-page .announcements-filter-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
  .announcements-archive-page.is-filter-enhanced .announcements-filter-toggle { display: flex; }
  .announcements-archive-page .announcements-filter-panel { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 10px; padding: 12px; border: 1px solid rgba(15, 35, 52, .1); border-radius: 8px; background: #f7f9fa; }
  .announcements-archive-page.is-filter-enhanced .announcements-filter-panel[hidden] { display: none; }
  .announcements-archive-page .announcements-filter-actions { flex-wrap: wrap; }
  .announcements-archive-page .announcements-grid { grid-template-columns: 1fr; gap: 11px; }
  .announcements-archive-page .announcement-card-body { min-height: 220px; padding: 12px; }
  .announcements-archive-page .announcement-card.is-no-image .announcement-card-body { min-height: 196px; }
  .announcements-archive-page .announcement-card-body h2 { font-size: 13px; }
  .announcements-archive-page .announcement-card-body > p { font-size: 11.5px; -webkit-line-clamp: 2; }
  .announcements-archive-page .announcements-pagination > .announcements-page-numbers { display: none; }
  .announcements-archive-page .announcements-pagination > .announcements-page-summary { grid-area: pages; min-width: 104px; height: 40px; display: inline-flex; white-space: nowrap; }
  .announcements-archive-page .announcements-pagination { grid-template-columns: minmax(64px, 1fr) auto minmax(64px, 1fr); width: 100%; margin-top: 22px; }
  .announcements-archive-page .announcements-pagination .announcements-page-edge { width: 100%; min-width: 64px; height: 40px; }
}

@media (max-width: 380px) {
  .announcements-archive-page .announcements-pagination { grid-template-columns: minmax(58px, 1fr) auto minmax(58px, 1fr); gap: 4px; }
  .announcements-archive-page .announcements-pagination > .announcements-page-summary { min-width: 98px; padding-inline: 6px; font-size: 11px; }
  .announcements-archive-page .announcements-pagination .announcements-page-edge { min-width: 58px; padding-inline: 7px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .announcements-archive-page .announcement-card,
  .announcements-archive-page .announcement-card-media img,
  .announcements-archive-page .announcements-results-content { transition: none; }
  .announcements-archive-page .announcements-results.is-loading .announcements-feedback::before { animation-duration: 1.4s; }
}

/* Continuous market ticker; all rules remain isolated from the rest of the header. */
.market-ticker-wrap {
  width: 100%;
  overflow: hidden;
  border: 0;
  background: linear-gradient(90deg, #082f49, #0c74b9);
  color: #fff;
  box-shadow: none;
}

.market-ticker-wrap .market-ticker {
  min-height: 40px;
  height: 40px;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  padding-block: 0;
  overflow: hidden;
}

.market-ticker-wrap .market-ticker-title,
.market-ticker-wrap .market-ticker-label {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 7px;
  padding: 0 16px;
  border: 0;
  border-inline-end: 1px solid rgba(255, 255, 255, .16);
  border-radius: 0;
  background: rgba(255, 255, 255, .10);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.market-ticker-wrap .market-ticker-label-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.market-ticker-wrap .market-ticker-items,
.market-ticker-wrap .market-ticker-viewport {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  min-height: 0;
  display: block;
  overflow: auto hidden;
  overflow-x: auto;
  overflow-y: hidden;
  direction: ltr;
  white-space: nowrap;
  scrollbar-width: none;
}

.market-ticker-wrap .market-ticker-items::-webkit-scrollbar,
.market-ticker-wrap .market-ticker-viewport::-webkit-scrollbar { display: none; }

.market-ticker-wrap [data-market-ticker-enhanced="true"] .market-ticker-viewport { overflow-x: hidden; }

.market-ticker-wrap .market-ticker-track {
  width: max-content;
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: stretch;
  will-change: transform;
}

.market-ticker-wrap .market-ticker-group {
  width: max-content;
  min-width: max-content;
  height: 100%;
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  flex: 0 0 auto;
  direction: rtl;
}

.market-ticker-wrap .market-ticker-item {
  position: static;
  inset: auto;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 7px;
  padding: 0 16px;
  border-inline-end: 1px solid rgba(255, 255, 255, .28);
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  direction: rtl;
  white-space: nowrap;
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: none;
  pointer-events: auto;
}

.market-ticker-wrap .market-ticker-item strong {
  color: rgba(255, 255, 255, .86);
  font-size: 12px;
  font-weight: 500;
}

.market-ticker-wrap .market-ticker-item .market-price {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.market-ticker-wrap .market-ticker-item small { display: none; }

.market-ticker-wrap [data-market-ticker-enhanced="true"].is-market-running .market-ticker-track {
  animation: market-ticker-scroll var(--market-ticker-duration, 24s) linear infinite;
}

.market-ticker-wrap .market-ticker-viewport:hover .market-ticker-track,
.market-ticker-wrap .market-ticker-viewport:focus-within .market-ticker-track {
  animation-play-state: paused;
}

.market-ticker-wrap [data-market-ticker-enhanced="true"] .market-ticker-viewport::before,
.market-ticker-wrap [data-market-ticker-enhanced="true"] .market-ticker-viewport::after {
  content: "";
  position: absolute;
  inset-block: 0;
  z-index: 2;
  width: 22px;
  pointer-events: none;
}

.market-ticker-wrap [data-market-ticker-enhanced="true"] .market-ticker-viewport::before {
  right: 0;
  background: linear-gradient(to left, rgba(12, 116, 185, .96), transparent);
}

.market-ticker-wrap [data-market-ticker-enhanced="true"] .market-ticker-viewport::after {
  left: 0;
  background: linear-gradient(to right, rgba(8, 47, 73, .96), transparent);
}

@keyframes market-ticker-scroll {
  to { transform: translate3d(calc(var(--market-ticker-distance) * -1), 0, 0); }
}

@media (max-width: 767.98px) {
  .market-ticker-wrap .market-ticker {
    min-height: 36px;
    height: 36px;
  }

  .market-ticker-wrap .market-ticker-title,
  .market-ticker-wrap .market-ticker-label {
    min-height: 36px;
    gap: 5px;
    padding-inline: 10px;
    font-size: 0;
  }

  .market-ticker-wrap .market-ticker-label-icon {
    width: 15px;
    height: 15px;
  }

  .market-ticker-wrap .market-ticker-title::after,
  .market-ticker-wrap .market-ticker-label::after {
    content: "طلا و ارز";
    font-size: 11px;
    font-weight: 600;
  }

  .market-ticker-wrap .market-ticker-item {
    min-height: 36px;
    gap: 6px;
    padding-inline: 12px;
    font-size: 11px;
  }

  .market-ticker-wrap .market-ticker-item strong { font-size: 11.5px; }
  .market-ticker-wrap .market-ticker-item .market-price { font-size: 12.5px; }

  .market-ticker-wrap [data-market-ticker-enhanced="true"] .market-ticker-viewport::before,
  .market-ticker-wrap [data-market-ticker-enhanced="true"] .market-ticker-viewport::after { width: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .market-ticker-wrap [data-market-ticker-enhanced="true"] .market-ticker-viewport {
    overflow-x: auto;
    scroll-behavior: auto;
  }

  .market-ticker-wrap [data-market-ticker-enhanced="true"].is-market-running .market-ticker-track,
  .market-ticker-wrap [data-market-ticker-enhanced="true"].is-market-static .market-ticker-track {
    animation: none;
    transform: none;
    will-change: auto;
  }

  .market-ticker-wrap [data-market-ticker-enhanced="true"] .market-ticker-group[aria-hidden="true"] {
    display: none;
  }
}

@media (max-width: 991.98px) {
  .office-services-section .commission-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575.98px) {
  .office-services-section .commission-card { padding: 14px; border-radius: 22px; }
  .office-services-section .commission-grid { grid-template-columns: 1fr; gap: 14px; }
  .office-services-section .commission-item { min-height: 132px; padding: 20px 18px; }
}

/* Commission archive and detail pages */
.commissions-hero {
  position: relative;
  overflow: hidden;
}
.commissions-hero::after {
  content: "";
  position: absolute;
  inset-inline-start: 7%;
  bottom: -70px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  pointer-events: none;
}
.commissions-hero .site-container { position: relative; z-index: 1; }
.commissions-hero p {
  max-width: 620px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, .82);
  line-height: 2;
}
.commissions-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-success);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 10px;
}
.commissions-hero .commissions-eyebrow { color: rgba(255, 255, 255, .78); }
.commissions-page,
.commission-detail-page { padding: 46px 0 72px; }
.commissions-intro-card,
.commission-detail-card,
.commission-sidebar-card,
.commissions-empty-state {
  background: #fff;
  border: 1px solid rgba(12, 116, 185, .12);
  border-radius: 28px;
  box-shadow: 0 18px 45px rgba(15, 35, 52, .08);
}
.commissions-intro-card {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 28px;
  margin-bottom: 24px;
}
.commissions-intro-card h2,
.commission-description-card h2 { margin: 0 0 10px; color: var(--color-ink-850); }
.commissions-intro-card p { margin: 0; color: var(--color-ink-600); line-height: 2; }
.commissions-count-box {
  min-width: 132px;
  min-height: 104px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  text-align: center;
  background: linear-gradient(135deg, rgba(12,116,185,.11), rgba(52,168,83,.12));
  color: var(--color-primary);
}
.commissions-count-box strong { display: block; font-size: 34px; line-height: 1; }
.commissions-count-box span { display: block; margin-top: 8px; font-size: 12px; color: var(--color-ink-600); }
.commissions-list-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.commission-list-card {
  position: relative;
  display: flex;
  gap: 16px;
  min-height: 210px;
  padding: 24px;
  border-radius: 26px;
  background: linear-gradient(180deg, #fff, #f8fbff);
  border: 1px solid rgba(12, 116, 185, .12);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(15, 35, 52, .07);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.commission-list-card:hover {
  transform: translateY(-5px);
  border-color: rgba(12, 116, 185, .34);
  box-shadow: 0 22px 46px rgba(15, 35, 52, .13);
}
.commission-list-number {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(12, 116, 185, .09);
  color: var(--color-primary);
  font-weight: 900;
}
.commission-list-content h3 { margin: 2px 0 10px; font-size: 19px; color: var(--color-ink-850); }
.commission-list-content p { margin: 0; color: var(--color-ink-600); line-height: 2; font-size: 13px; }
.commission-list-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 800;
}
.commission-list-meta span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(12, 116, 185, .08);
}
.commissions-empty-state { grid-column: 1 / -1; padding: 34px; text-align: center; }
.commissions-empty-state p { margin: 10px 0 0; color: var(--color-ink-600); }
.commissions-pagination { margin-top: 28px; }
.commission-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: start;
}
.commission-detail-main,
.commission-detail-sidebar { display: grid; gap: 20px; }
.commission-detail-sidebar { position: sticky; top: 18px; }
.commission-detail-cover { margin: 0; border-radius: 30px; overflow: hidden; box-shadow: 0 18px 45px rgba(15, 35, 52, .10); }
.commission-detail-cover img { width: 100%; height: 360px; object-fit: cover; display: block; }
.commission-detail-card,
.commission-sidebar-card { padding: 26px; }
.commission-rich-text { color: var(--color-ink-700); line-height: 2.15; }
.commission-rich-text p:last-child { margin-bottom: 0; }
.commission-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--color-ink-850);
  font-size: 21px;
  font-weight: 900;
}
.commission-section-title small {
  color: var(--color-primary);
  background: rgba(12, 116, 185, .08);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
}
.commission-task-list,
.commission-session-list { display: grid; gap: 12px; }
.commission-task-card,
.commission-session-card {
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 20px;
  padding: 18px;
  background: #fbfdff;
}
.commission-task-card strong,
.commission-session-card strong { display: block; margin-bottom: 8px; color: var(--color-ink-850); }
.commission-task-card div,
.commission-session-card p { color: var(--color-ink-600); line-height: 2; margin: 0; }
.commission-session-card { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.commission-session-card span { display: inline-block; margin-bottom: 8px; color: var(--color-success); font-size: 12px; font-weight: 800; }
.commission-download-link,
.commission-back-link,
.commission-attachment-list a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 999px;
  padding: 9px 14px;
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.commission-sidebar-card h3 { margin: 0 0 16px; color: var(--color-ink-850); }
.commission-stat-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(15, 23, 42, .07);
  color: var(--color-ink-600);
}
.commission-stat-row strong { color: var(--color-primary); }
.commission-back-link { width: 100%; margin-top: 18px; }
.commission-member-list,
.commission-attachment-list { display: flex; flex-wrap: wrap; gap: 8px; }
.commission-member-list span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(52, 168, 83, .10);
  color: var(--color-success);
  font-size: 12px;
  font-weight: 800;
}
.commission-attachment-list a { background: rgba(12, 116, 185, .10); color: var(--color-primary); }
@media (max-width: 991.98px) {
  .commissions-list-grid,
  .commission-detail-layout { grid-template-columns: 1fr; }
  .commission-detail-sidebar { position: static; }
}
@media (max-width: 575.98px) {
  .commissions-intro-card,
  .commission-session-card { flex-direction: column; }
  .commissions-list-grid { gap: 14px; }
  .commission-list-card { min-height: auto; padding: 20px; }
  .commission-detail-cover img { height: 240px; }
}

/* Systems directory */
.systems-directory-page { background: #f3f5f7; }
.systems-directory-page .systems-directory-header { padding-block: 30px 27px; background: #111; color: #fff; }
.systems-directory-page .systems-directory-header .breadcrumb-nav { margin-bottom: 8px; }
.systems-directory-page .systems-directory-header .breadcrumb-nav a { color: rgba(255,255,255,.72); }
.systems-directory-page .systems-directory-header .breadcrumb-nav span { color: rgba(255,255,255,.52); }
.systems-directory-page .systems-directory-header h1 { margin: 0; color: #fff; font-size: 25px; font-weight: 750; line-height: 1.55; }
.systems-directory-page .systems-directory-header p { margin: 5px 0 0; color: rgba(255,255,255,.7); font-size: 12.5px; line-height: 1.8; }
.systems-directory-page .systems-directory-main { padding-block: 30px 56px; }
.systems-directory-page .systems-directory-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 13px; padding: 17px 18px; border: 1px solid rgba(15,35,52,.1); border-radius: 10px; background: #fff; box-shadow: 0 3px 12px rgba(15,35,52,.035); }
.systems-directory-page .systems-directory-heading { min-width: 0; }
.systems-directory-page .systems-directory-heading > span { display: block; margin-bottom: 2px; color: var(--color-primary); font-size: 10.5px; font-weight: 700; }
.systems-directory-page .systems-directory-heading h2 { margin: 0; outline: 0; color: var(--color-ink-900); font-size: 20px; font-weight: 700; line-height: 1.55; }
.systems-directory-page .systems-directory-heading h2:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 4px; border-radius: 4px; }
.systems-directory-page .systems-directory-heading p { margin: 3px 0 0; color: var(--color-ink-550,#667481); font-size: 12px; }
.systems-directory-page .systems-directory-count { width: 102px; min-height: 68px; flex: 0 0 102px; display: flex; align-items: center; justify-content: center; flex-direction: column; border: 1px solid rgba(9,95,152,.1); border-radius: 9px; background: #eef7fb; color: #174b70; }
.systems-directory-page .systems-directory-count strong { font-size: 26px; font-weight: 750; line-height: 1; }
.systems-directory-page .systems-directory-count span { margin-top: 6px; color: #587181; font-size: 11px; }
.systems-directory-page .systems-filter-toolbar { margin-bottom: 18px; padding: 14px; border: 1px solid rgba(15,35,52,.1); border-radius: 9px; background: #fff; box-shadow: 0 3px 12px rgba(15,35,52,.025); }
.systems-directory-page .systems-filter-row { display: grid; grid-template-columns: minmax(320px,1fr) auto auto; align-items: center; gap: 12px; }
.systems-directory-page .systems-directory-search { height: 40px; display: grid; grid-template-columns: minmax(0,1fr) auto; }
.systems-directory-page .systems-directory-search input { min-width: 0; height: 40px; padding-inline: 11px; border: 1px solid rgba(15,35,52,.14); border-inline-end: 0; border-radius: 0 7px 7px 0; outline: 0; background: #fff; color: var(--color-ink-800); font-family: inherit; font-size: 12px; }
.systems-directory-page .systems-directory-search input:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(9,95,152,.1); }
.systems-directory-page .systems-directory-search button { height: 40px; padding-inline: 15px; border: 1px solid var(--color-primary); border-radius: 7px 0 0 7px; background: var(--color-primary); color: #fff; font-family: inherit; font-size: 11.5px; font-weight: 650; cursor: pointer; }
.systems-directory-page .systems-filter-row > p { margin: 0; color: #667481; font-size: 11.5px; white-space: nowrap; }
.systems-directory-page .systems-directory-clear { height: 40px; display: inline-flex; align-items: center; justify-content: center; padding-inline: 12px; border: 1px solid rgba(15,35,52,.14); border-radius: 7px; background: #fff; color: var(--color-ink-700); font-size: 11.5px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.systems-directory-page .systems-category-tabs { display: flex; gap: 7px; margin-top: 12px; overflow-x: auto; padding: 1px 1px 2px; scrollbar-width: none; scroll-snap-type: x proximity; }
.systems-directory-page .systems-category-tabs::-webkit-scrollbar { display: none; }
.systems-directory-page .systems-category-tab { min-height: 38px; display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; padding-inline: 11px; border: 1px solid rgba(15,35,52,.13); border-radius: 7px; background: #fff; color: #173b55; font-size: 12px; font-weight: 500; text-decoration: none; white-space: nowrap; scroll-snap-align: start; }
.systems-directory-page .systems-category-tab small { min-width: 21px; height: 20px; display: inline-flex; align-items: center; justify-content: center; padding-inline: 5px; border-radius: 999px; background: #edf2f5; color: #536675; font-size: 10px; font-weight: 650; }
.systems-directory-page .systems-category-tab:hover { border-color: var(--color-primary); color: var(--color-primary); }
.systems-directory-page .systems-category-tab.is-active { border-color: var(--color-primary); background: var(--color-primary); color: #fff; font-weight: 650; }
.systems-directory-page .systems-category-tab.is-active small { background: rgba(255,255,255,.2); color: #fff; }
.systems-directory-page .systems-directory-results { position: relative; outline: none; }
.systems-directory-page .systems-directory-results:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 5px; border-radius: 9px; }
.systems-directory-page .systems-directory-results-content { transition: opacity .18s ease; }
.systems-directory-page .systems-directory-results.is-loading .systems-directory-results-content { opacity: .46; }
.systems-directory-page .systems-directory-results.is-loading .systems-directory-pagination,
.systems-directory-page .systems-category-tabs.is-loading { pointer-events: none; }
.systems-directory-page .systems-directory-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: stretch; gap: 16px; }
.systems-directory-page .system-directory-card { min-width: 0; height: 100%; display: flex; flex-direction: column; padding: 16px; border: 1px solid rgba(15,35,52,.1); border-radius: 9px; background: #fff; box-shadow: 0 3px 12px rgba(15,35,52,.035); transition: border-color .18s ease,box-shadow .18s ease,transform .18s ease; }
.systems-directory-page .system-directory-card:hover { border-color: rgba(9,95,152,.24); box-shadow: 0 7px 20px rgba(15,35,52,.075); transform: translateY(-2px); }
.systems-directory-page .system-directory-card-header { display: flex; align-items: flex-start; gap: 11px; }
.systems-directory-page .system-directory-icon { width: 48px; height: 48px; flex: 0 0 48px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(9,95,152,.1); border-radius: 8px; background: #eef6fb; color: #174b70; }
.systems-directory-page .system-directory-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.systems-directory-page .system-directory-identity { min-width: 0; flex: 1; }
.systems-directory-page .system-directory-category { min-height: 22px; display: inline-flex; align-items: center; margin-bottom: 4px; padding-inline: 7px; border: 1px solid rgba(9,95,152,.12); border-radius: 5px; background: #f1f7fa; color: #426278; font-size: 10px; font-weight: 600; }
.systems-directory-page .system-directory-title { display: -webkit-box; overflow: hidden; margin: 0; color: #102f47; font-size: 14.5px; font-weight: 650; line-height: 1.7; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.systems-directory-page .system-directory-body { display: flex; flex: 1; flex-direction: column; }
.systems-directory-page .system-directory-description { display: -webkit-box; overflow: hidden; margin: 11px 0 0; color: var(--color-ink-550,#667481); font-size: 12px; line-height: 1.8; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.systems-directory-page .system-directory-actions { display: grid; grid-template-columns: minmax(90px,.85fr) minmax(120px,1.15fr); gap: 7px; margin-top: auto; padding-top: 15px; }
.systems-directory-page .system-directory-actions a { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding-inline: 9px; border: 1px solid var(--color-primary); border-radius: 7px; font-size: 11px; font-weight: 650; text-align: center; text-decoration: none; }
.systems-directory-page .system-directory-actions a:only-child { grid-column: 1 / -1; }
.systems-directory-page .system-directory-details { background: #eef6fb; color: var(--color-primary); }
.systems-directory-page .system-directory-entry { background: var(--color-primary); color: #fff; }
.systems-directory-page .system-directory-entry svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.systems-directory-page .system-directory-actions a:focus-visible { outline: 3px solid rgba(9,95,152,.25); outline-offset: 2px; }
.systems-directory-page .systems-directory-empty { min-height: 260px; display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 30px 20px; border: 1px solid rgba(15,35,52,.1); border-radius: 9px; background: #fff; text-align: center; }
.systems-directory-page .systems-directory-empty > svg { width: 42px; height: 42px; margin-bottom: 10px; fill: none; stroke: var(--color-primary); stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.systems-directory-page .systems-directory-empty h2 { margin: 0; color: var(--color-ink-900); font-size: 18px; font-weight: 650; }
.systems-directory-page .systems-directory-empty p { margin: 7px 0 0; color: var(--color-ink-550,#667481); font-size: 12px; }
.systems-directory-page .systems-directory-empty a { min-height: 39px; display: inline-flex; align-items: center; margin-top: 15px; padding-inline: 14px; border-radius: 7px; background: var(--color-primary); color: #fff; font-size: 12px; font-weight: 600; text-decoration: none; }
.systems-directory-page .systems-directory-pagination { direction: rtl; display: grid; grid-template-columns: auto minmax(0,auto) auto; grid-template-areas: 'previous pages next'; align-items: center; justify-content: center; gap: 6px; margin-top: 30px; }
.systems-directory-page .systems-directory-pagination > .systems-page-edge,
.systems-directory-page .systems-page-numbers > .systems-page-link,
.systems-directory-page .systems-page-numbers > .systems-page-ellipsis,
.systems-directory-page .systems-directory-pagination > .systems-page-summary { min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; padding-inline: 10px; border: 1px solid rgba(15,35,52,.13); border-radius: 7px; background: #fff; color: var(--color-ink-700); font-size: 12px; font-weight: 500; text-decoration: none; }
.systems-directory-page .systems-directory-pagination > .systems-page-edge:first-child { grid-area: previous; }
.systems-directory-page .systems-directory-pagination > .systems-page-edge:last-child { grid-area: next; }
.systems-directory-page .systems-page-numbers { direction: ltr; grid-area: pages; display: inline-flex; gap: 6px; }
.systems-directory-page .systems-directory-pagination a:hover { border-color: var(--color-primary); color: var(--color-primary); }
.systems-directory-page .systems-directory-pagination .is-current { border-color: var(--color-primary); background: var(--color-primary); color: #fff; font-weight: 700; }
.systems-directory-page .systems-directory-pagination .is-disabled { opacity: .45; background: #f4f6f7; pointer-events: none; }
.systems-directory-page .systems-page-ellipsis { min-width: 24px; padding: 0; border-color: transparent; background: transparent; }
.systems-directory-page .systems-page-summary { display: none; }
.systems-directory-page .systems-directory-feedback { position: absolute; width: 1px; height: 1px; overflow: hidden; margin: -1px; padding: 0; border: 0; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.systems-directory-page .systems-directory-results.is-loading .systems-directory-feedback { position: absolute; z-index: 2; top: min(180px,35%); inset-inline: 50% auto; width: auto; height: 38px; overflow: visible; display: inline-flex; align-items: center; gap: 8px; margin: 0; padding-inline: 13px; border: 1px solid rgba(15,35,52,.12); border-radius: 7px; background: #fff; color: var(--color-ink-700); box-shadow: 0 4px 14px rgba(15,35,52,.08); clip: auto; clip-path: none; font-size: 12px; font-weight: 600; transform: translateX(50%); }
.systems-directory-page .systems-directory-results.is-loading .systems-directory-feedback::before { width: 14px; height: 14px; content: ''; border: 2px solid rgba(9,95,152,.2); border-top-color: var(--color-primary); border-radius: 50%; animation: systems-directory-spin .7s linear infinite; }
.systems-directory-page .systems-directory-results.has-error .systems-directory-feedback { position: static; width: auto; height: auto; overflow: visible; display: block; margin: 12px 0 0; padding: 10px 12px; border: 1px solid rgba(185,28,28,.18); border-radius: 7px; background: #fff7f7; color: #9f1d1d; clip: auto; clip-path: none; font-size: 12px; white-space: normal; }
@keyframes systems-directory-spin { to { transform: rotate(360deg); } }
@media (max-width: 1199.98px) {
  .systems-directory-page .systems-directory-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 767.98px) {
  .systems-directory-page .systems-directory-header { padding-block: 23px 20px; }
  .systems-directory-page .systems-directory-header h1 { font-size: 21px; }
  .systems-directory-page .systems-directory-header p { font-size: 11.5px; }
  .systems-directory-page .systems-directory-main { padding-block: 22px 42px; }
  .systems-directory-page .systems-directory-toolbar { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start; gap: 3px 10px; margin-bottom: 11px; padding: 13px; }
  .systems-directory-page .systems-directory-heading { display: contents; }
  .systems-directory-page .systems-directory-heading > span,
  .systems-directory-page .systems-directory-heading h2 { grid-column: 1; }
  .systems-directory-page .systems-directory-heading h2 { font-size: 17px; }
  .systems-directory-page .systems-directory-heading p { grid-column: 1 / -1; grid-row: 3; font-size: 11px; line-height: 1.7; }
  .systems-directory-page .systems-directory-count { grid-column: 2; grid-row: 1 / 3; width: 82px; min-height: 60px; flex-basis: 82px; }
  .systems-directory-page .systems-directory-count strong { font-size: 23px; }
  .systems-directory-page .systems-filter-toolbar { margin-bottom: 14px; padding: 12px; }
  .systems-directory-page .systems-filter-row { grid-template-columns: 1fr auto; gap: 9px; }
  .systems-directory-page .systems-directory-search { grid-column: 1 / -1; }
  .systems-directory-page .systems-filter-row > p { font-size: 10.5px; }
  .systems-directory-page .systems-directory-clear { height: 34px; padding-inline: 9px; font-size: 10.5px; }
  .systems-directory-page .systems-category-tabs { margin-inline: -1px; }
  .systems-directory-page .systems-directory-grid { grid-template-columns: 1fr; gap: 11px; }
  .systems-directory-page .system-directory-card { padding: 12px; border-radius: 8px; }
  .systems-directory-page .system-directory-icon { width: 42px; height: 42px; flex-basis: 42px; }
  .systems-directory-page .system-directory-icon svg { width: 26px; height: 26px; }
  .systems-directory-page .system-directory-title { font-size: 13px; }
  .systems-directory-page .system-directory-description { margin-top: 8px; font-size: 11px; -webkit-line-clamp: 2; }
  .systems-directory-page .system-directory-actions { padding-top: 11px; }
  .systems-directory-page .systems-page-numbers { display: none; }
  .systems-directory-page .systems-page-summary { grid-area: pages; min-width: 104px; height: 40px; display: inline-flex; white-space: nowrap; }
  .systems-directory-page .systems-directory-pagination { grid-template-columns: minmax(64px,1fr) auto minmax(64px,1fr); width: 100%; margin-top: 22px; }
  .systems-directory-page .systems-page-edge { width: 100%; min-width: 64px; height: 40px; }
}
@media (max-width: 380px) {
  .systems-directory-page .system-directory-actions { grid-template-columns: 1fr; }
  .systems-directory-page .system-directory-actions a:only-child { grid-column: auto; }
  .systems-directory-page .systems-directory-pagination { grid-template-columns: minmax(58px,1fr) auto minmax(58px,1fr); gap: 4px; }
  .systems-directory-page .systems-page-summary { min-width: 98px; padding-inline: 6px; font-size: 11px; }
  .systems-directory-page .systems-page-edge { min-width: 58px; padding-inline: 7px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .systems-directory-page .system-directory-card,
  .systems-directory-page .systems-directory-results-content { transition: none; }
  .systems-directory-page .systems-directory-results.is-loading .systems-directory-feedback::before { animation-duration: 1.4s; }
}

/* Systems and electronic services pages */
.portal-hero {
  position: relative;
  overflow: hidden;
}
.portal-hero::before,
.portal-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.portal-hero::before {
  inset-inline-end: 8%;
  top: -90px;
  width: 260px;
  height: 260px;
  background: rgba(255, 255, 255, .12);
}
.portal-hero::after {
  inset-inline-start: 12%;
  bottom: -110px;
  width: 210px;
  height: 210px;
  background: rgba(52, 168, 83, .18);
}
.portal-hero .site-container { position: relative; z-index: 1; }
.portal-hero p {
  max-width: 660px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, .84);
  line-height: 2;
}
.portal-eyebrow {
  display: inline-flex;
  color: var(--color-success);
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 10px;
}
.portal-hero .portal-eyebrow { color: rgba(255, 255, 255, .78); }
.portal-page,
.portal-detail-page { padding: 46px 0 74px; }
.portal-intro-card,
.portal-filter-panel,
.portal-card,
.portal-detail-card,
.portal-sidebar-card,
.portal-empty-state {
  background: #fff;
  border: 1px solid rgba(12, 116, 185, .12);
  border-radius: 28px;
  box-shadow: 0 18px 45px rgba(15, 35, 52, .08);
}
.portal-intro-card {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 28px;
  margin-bottom: 20px;
}
.portal-intro-card h2 { margin: 0 0 10px; color: var(--color-ink-850); }
.portal-intro-card p { margin: 0; color: var(--color-ink-600); line-height: 2; }
.portal-count-box {
  min-width: 132px;
  min-height: 104px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  text-align: center;
  background: linear-gradient(135deg, rgba(12,116,185,.12), rgba(52,168,83,.12));
  color: var(--color-primary);
}
.service-count-box { background: linear-gradient(135deg, rgba(103,65,217,.12), rgba(12,116,185,.10)); }
.portal-count-box strong { display: block; font-size: 34px; line-height: 1; }
.portal-count-box span { display: block; margin-top: 8px; font-size: 12px; color: var(--color-ink-600); }
.portal-filter-panel { padding: 20px; margin-bottom: 24px; }
.portal-search-form {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}
.portal-search-form .form-control {
  min-height: 46px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, .10);
}
.portal-primary-action,
.portal-secondary-action,
.portal-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.portal-primary-action {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(12, 116, 185, .20);
}
.portal-secondary-action,
.portal-tab {
  background: rgba(12, 116, 185, .08);
  color: var(--color-primary);
}
.portal-primary-action:hover,
.portal-secondary-action:hover,
.portal-tab:hover { transform: translateY(-2px); }
.portal-tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.portal-tab.active { background: var(--color-ink-850); color: #fff; }
.portal-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.portal-card {
  min-height: 270px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: linear-gradient(180deg, #fff, #f8fbff);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.portal-card:hover {
  transform: translateY(-5px);
  border-color: rgba(12, 116, 185, .34);
  box-shadow: 0 22px 46px rgba(15, 35, 52, .13);
}
.portal-card-icon,
.portal-detail-icon {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: rgba(12, 116, 185, .09);
  color: var(--color-primary);
  font-size: 28px;
  flex: 0 0 auto;
}
.service-card-modern .portal-card-icon,
.service-detail-icon { background: rgba(103, 65, 217, .10); color: #6741d9; }
.portal-card-category {
  display: inline-flex;
  margin-bottom: 9px;
  color: var(--color-success);
  font-size: 12px;
  font-weight: 900;
}
.portal-card-body h3 { margin: 0 0 10px; color: var(--color-ink-850); font-size: 19px; }
.portal-card-body p { margin: 0; color: var(--color-ink-600); font-size: 13px; line-height: 2; }
.portal-card-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.portal-empty-state { grid-column: 1 / -1; padding: 34px; text-align: center; }
.portal-empty-state p { margin: 10px 0 0; color: var(--color-ink-600); }
.portal-pagination { margin-top: 28px; }
.portal-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: start;
}
.portal-detail-main,
.portal-detail-sidebar { display: grid; gap: 20px; }
.portal-detail-sidebar { position: sticky; top: 18px; }
.portal-detail-cover { margin: 0; border-radius: 30px; overflow: hidden; box-shadow: 0 18px 45px rgba(15, 35, 52, .10); }
.portal-detail-cover img { width: 100%; height: 360px; object-fit: cover; display: block; }
.portal-detail-card,
.portal-sidebar-card { padding: 26px; }
.portal-detail-heading { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.portal-detail-heading h2 { margin: 0; color: var(--color-ink-850); }
.portal-lead {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(12, 116, 185, .07);
  color: var(--color-ink-700);
  line-height: 2;
  font-weight: 700;
}
.portal-rich-text { color: var(--color-ink-700); line-height: 2.15; }
.portal-rich-text p:last-child { margin-bottom: 0; }
.portal-main-link { margin-top: 22px; }
.portal-sidebar-card h3 { margin: 0 0 16px; color: var(--color-ink-850); }
.portal-stat-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(15, 23, 42, .07);
  color: var(--color-ink-600);
}
.portal-stat-row strong { color: var(--color-primary); text-align: left; }
.portal-full-action { width: 100%; margin-top: 18px; }
.portal-related-list { display: grid; gap: 10px; }
.portal-related-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: #fbfdff;
  border: 1px solid rgba(15, 23, 42, .07);
  color: inherit;
  text-decoration: none;
}
.portal-related-item > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(12, 116, 185, .08);
  font-size: 21px;
}
.portal-related-item strong { display: block; color: var(--color-ink-850); }
.portal-related-item small { display: block; margin-top: 4px; color: var(--color-ink-500); }
@media (max-width: 991.98px) {
  .portal-card-grid,
  .portal-detail-layout { grid-template-columns: 1fr; }
  .portal-detail-sidebar { position: static; }
}
@media (max-width: 575.98px) {
  .portal-intro-card,
  .portal-search-form,
  .portal-card-actions { flex-direction: column; align-items: stretch; }
  .portal-card { min-height: auto; }
  .portal-detail-cover img { height: 240px; }
  .portal-detail-heading { align-items: flex-start; }
}

/* Daily news timeline */
.daily-news-section{padding:38px 0;direction:rtl}.daily-news-shell{background:linear-gradient(135deg,#fff 0%,#f7fbff 100%);border:1px solid rgba(12,116,185,.16);border-radius:24px;box-shadow:0 18px 46px rgba(15,35,52,.08);padding:24px}.daily-news-header{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:14px}.daily-news-kicker{display:inline-flex;color:#0c74b9;font-weight:800;font-size:13px;margin-bottom:6px}.daily-news-header h1,.daily-news-header h2{margin:0;color:#0f2334;font-size:26px}.daily-news-header p{margin:6px 0 0;color:#64748b}.daily-news-controls{display:flex;gap:8px;flex-wrap:wrap}.daily-news-controls a{border:1px solid rgba(12,116,185,.22);background:#fff;color:#0c74b9;border-radius:999px;padding:9px 16px;font-weight:800;text-decoration:none}.daily-news-controls a.disabled{pointer-events:none;opacity:.45;background:#eef2f7;color:#64748b}.daily-news-list{position:relative}.daily-news-item{border-bottom:1px solid rgba(15,35,52,.09)}.daily-news-item:last-child{border-bottom:0}.daily-news-card{display:grid;grid-template-columns:82px 132px 1fr;gap:18px;align-items:center;padding:18px 0;text-decoration:none;color:inherit}.daily-news-time{font:800 20px/1.2 sans-serif;color:#0c74b9;text-align:center;background:#eaf6ff;border-radius:18px;padding:14px 8px;position:relative}.daily-news-time:after{content:"";position:absolute;left:-29px;top:50%;width:18px;height:2px;background:rgba(12,116,185,.25)}.daily-news-thumb{width:132px;height:86px;object-fit:cover;border-radius:16px;background:#eef2f7}.daily-news-meta{display:flex;gap:7px;flex-wrap:wrap;align-items:center;margin-bottom:7px}.daily-news-category,.daily-news-badge{display:inline-flex;border-radius:999px;padding:4px 9px;font-size:12px;font-weight:800}.daily-news-category{background:#f1f5f9;color:#334155}.daily-news-badge.urgent{background:#fee2e2;color:#b91c1c}.daily-news-badge.important{background:#fff7ed;color:#c2410c}.daily-news-badge.featured{background:#ecfeff;color:#0e7490}.daily-news-content h3{margin:0 0 7px;color:#0f2334;font-size:18px;line-height:1.65;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.daily-news-content p{margin:0;color:#64748b;line-height:1.9;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.daily-news-more{display:inline-block;margin-top:8px;color:#0c74b9;font-weight:800}.daily-news-empty{padding:28px;text-align:center;background:#fff;border:1px dashed rgba(12,116,185,.25);border-radius:18px;color:#64748b}.daily-news-footer{text-align:center;margin-top:16px}.daily-news-page{padding-top:28px}.breadcrumb{display:flex;gap:10px;margin-bottom:16px;color:#64748b}.breadcrumb a{color:#0c74b9;text-decoration:none}@media (max-width:768px){.daily-news-shell{padding:16px;border-radius:18px}.daily-news-header{align-items:flex-start;flex-direction:column}.daily-news-controls{width:100%;display:grid;grid-template-columns:repeat(3,1fr)}.daily-news-controls a{text-align:center;padding:11px 8px}.daily-news-card{grid-template-columns:1fr;gap:10px}.daily-news-time{width:max-content;font-size:16px;padding:8px 12px}.daily-news-time:after{display:none}.daily-news-thumb{width:100%;height:180px}.daily-news-content h3{font-size:16px;-webkit-line-clamp:3}}

/* Targeted fixes: keep archive sidebars beside content and make systems hover subtle. */
.archive-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.archive-main { min-width: 0; }
.archive-sidebar { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 18px; }
.fractions-section#systems .fraction-link:hover,
#systems .fraction-link:hover {
  background: var(--color-white);
  box-shadow: none;
  transform: none;
  border-color: var(--color-ink-200);
  font-weight: 850;
}
@media (max-width: 992px) { .archive-layout { grid-template-columns: 1fr; } .archive-sidebar { position: static; } }

/* Polished archive filters for announcements and guilds. */
.archive-filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1.35fr) minmax(180px, .9fr) minmax(220px, 1fr) auto;
  gap: 14px;
  align-items: end;
  margin: 0 0 28px;
  padding: 18px;
  border: 1px solid rgba(12, 116, 185, .18);
  border-radius: 22px;
  background: linear-gradient(135deg, #ffffff 0%, #f3faff 55%, #f4fbf7 100%);
  box-shadow: 0 16px 34px rgba(15, 35, 52, .08);
}
.archive-filter-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.archive-filter-field label { color: #08334f; font-size: 12px; font-weight: 900; }
.archive-filter-panel .form-control {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(12, 116, 185, .22);
  border-radius: 15px;
  background-color: #fff;
  color: #0f2334;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}
.archive-filter-actions { display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.archive-filter-actions .tab-pill { min-height: 46px; white-space: nowrap; }
.guild-card .archive-card-img { background: #eef6fb; object-fit: cover; }
.guild-card-logo {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  overflow: hidden;
  background: #eef6fb;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.guild-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}
.guild-card-logo span {
  color: #0c74b9;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}
@media (max-width: 1100px) { .archive-filter-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); } .archive-filter-actions { justify-content: flex-start; } }
@media (max-width: 640px) { .archive-filter-panel { grid-template-columns: 1fr; padding: 14px; border-radius: 18px; } .archive-filter-actions .tab-pill { width: 100%; justify-content: center; } }

/* Systems: keep cards/static backgrounds in place; lift only the hovered action button/link. */
.system-card-modern:hover {
  transform: none;
  border-color: rgba(12, 116, 185, .12);
  box-shadow: 0 18px 45px rgba(15, 35, 52, .08);
}
.system-card-modern .portal-primary-action:hover,
.system-card-modern .portal-secondary-action:hover,
.fractions-section#systems .fraction-link:hover,
#systems .fraction-link:hover {
  transform: translateY(-2px);
}


.chamber-members-home {
  position: relative;
  overflow: hidden;
  padding: 64px 0 72px;
  background:
    radial-gradient(circle at 12% 12%, rgba(249, 186, 54, 0.22), transparent 34%),
    radial-gradient(circle at 88% 8%, rgba(13, 86, 123, 0.16), transparent 30%),
    linear-gradient(180deg, #f8fbfd 0%, #eef6fa 100%);
}

.chamber-members-home::before,
.chamber-members-home::after {
  content: '';
  position: absolute;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(13, 86, 123, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.chamber-members-home::before {
  top: -120px;
  right: -80px;
}

.chamber-members-home::after {
  left: -90px;
  bottom: -140px;
}

.chamber-members-heading {
  position: relative;
  z-index: 1;
  align-items: flex-end;
  gap: 18px;
}

.chamber-members-heading p {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted-color, #667085);
  line-height: 2;
}

.chamber-members-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.chamber-member-card {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid rgba(13, 86, 123, 0.11);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 58px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.chamber-member-card:hover {
  transform: translateY(-7px);
  border-color: rgba(13, 86, 123, 0.26);
  box-shadow: 0 30px 78px rgba(15, 23, 42, 0.14);
}

.chamber-member-card-glow {
  position: absolute;
  inset: 0 0 auto;
  height: 78px;
  background: linear-gradient(135deg, rgba(13, 86, 123, 0.17), rgba(249, 186, 54, 0.24));
  pointer-events: none;
}

.chamber-member-card a {
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  align-items: center;
  color: inherit;
  text-align: center;
  text-decoration: none;
}

.chamber-member-photo-wrap {
  position: relative;
  width: 112px;
  height: 112px;
  margin-top: 24px;
  padding: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color, #0d567b), #f9ba36);
  box-shadow: 0 16px 34px rgba(13, 86, 123, 0.18);
}

.chamber-member-photo-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #eef4f8;
}

.chamber-member-number {
  position: absolute;
  right: 0;
  bottom: 6px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--primary-color, #0d567b);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(13, 86, 123, 0.24);
}

.chamber-member-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 14px 14px 18px;
}

.chamber-member-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(13, 86, 123, 0.08);
  color: var(--primary-color, #0d567b);
  font-size: 0.72rem;
  font-weight: 900;
}

.chamber-member-body h3 {
  margin: 0 0 8px;
  color: #102a43;
  font-size: 0.96rem;
  line-height: 1.55;
  font-weight: 900;
}

.chamber-member-position {
  margin: 0;
  color: #b7791f;
  font-size: 0.82rem;
  line-height: 1.6;
  font-weight: 900;
}

.chamber-member-bio {
  margin: 14px 0 0;
  color: var(--muted-color, #667085);
  font-size: 0.94rem;
  line-height: 1.95;
}

.chamber-member-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: auto;
  padding-top: 18px;
  color: #7a8794;
  font-size: 0.86rem;
}

.chamber-member-meta strong {
  color: var(--primary-color, #0d567b);
}

.chamber-members-empty {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px;
  border: 1px dashed rgba(13, 86, 123, 0.24);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.08);
}

.chamber-members-empty img {
  width: 128px;
  height: 128px;
  flex: 0 0 128px;
  object-fit: cover;
  border: 7px solid #fff;
  border-radius: 50%;
  box-shadow: 0 14px 30px rgba(13, 86, 123, 0.16);
}

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

@media (max-width: 780px) {
  .chamber-members-home { padding: 68px 0 76px; }
  .chamber-members-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chamber-members-heading { align-items: flex-start; }
}

@media (max-width: 560px) {
  .chamber-members-grid { grid-template-columns: 1fr; }
  .chamber-members-empty { flex-direction: column; text-align: center; }
}

/* Dedicated news category section separated from the archive sidebar. */
.archive-category-section {
  margin: 0 0 28px;
  padding: 22px;
  border: 1px solid rgba(12, 116, 185, .16);
  border-radius: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #f3faff 62%, #f8fbff 100%);
  box-shadow: 0 18px 38px rgba(15, 35, 52, .08);
}
.archive-category-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.archive-category-kicker { display: inline-flex; color: #0c74b9; font-size: 12px; font-weight: 900; margin-bottom: 6px; }
.archive-category-head h2 { margin: 0; color: #0f2334; font-size: 23px; }
.archive-category-reset,
.archive-category-chip { text-decoration: none; transition: .18s ease; }
.archive-category-reset { flex: 0 0 auto; border: 1px solid rgba(12, 116, 185, .22); border-radius: 999px; padding: 10px 16px; color: #0c74b9; background: #fff; font-weight: 900; }
.archive-category-reset.active,
.archive-category-reset:hover { background: #0c74b9; color: #fff; }
.archive-category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.archive-category-chip { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "icon title" "icon count"; gap: 3px 10px; align-items: center; padding: 14px; border: 1px solid rgba(15, 35, 52, .09); border-radius: 18px; background: rgba(255, 255, 255, .86); color: #0f2334; }
.archive-category-chip span { grid-area: icon; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 14px; background: #eaf6ff; color: #0c74b9; font-size: 13px; font-weight: 900; }
.archive-category-chip strong { grid-area: title; font-size: 14px; line-height: 1.7; }
.archive-category-chip small { grid-area: count; color: #64748b; font-size: 12px; }
.archive-category-chip:hover,
.archive-category-chip.active { border-color: rgba(12, 116, 185, .36); background: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(12, 116, 185, .12); }
.archive-category-chip.active span { background: #0c74b9; color: #fff; }
.archive-category-empty { grid-column: 1 / -1; padding: 18px; border: 1px dashed rgba(12, 116, 185, .28); border-radius: 18px; color: #64748b; text-align: center; background: #fff; }
@media (max-width: 768px) { .archive-category-section { padding: 16px; border-radius: 18px; } .archive-category-head { align-items: stretch; flex-direction: column; } .archive-category-reset { text-align: center; } }

.empty-state{background:#fff;border:1px dashed #cbd5e1;border-radius:16px;padding:28px;text-align:center;color:#64748b}.chamber-member-bio,.chamber-member-meta{display:none!important}

/* Fix homepage quick menu parents with direct links and nested toggles */
.quick-menu-combo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.quick-menu-title-link {
  flex: 1;
  color: inherit;
  text-decoration: none;
}
.quick-menu-toggle {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.quick-menu-toggle b {
  width: 7px;
  height: 7px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
.quick-menu-item.is-open .quick-menu-toggle b { transform: rotate(-45deg); }

/* Keep congratulation/condolence manager card content inside the sidebar */
.congratulation-single-section { margin-bottom: 56px; }
.congratulation-single-layout { align-items: start; }
.congratulation-manager-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}
.congratulation-manager-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 18px;
}
.congratulation-manager-info h4,
.congratulation-manager-info p { margin-top: 0; }
.congratulation-union-link {
  align-self: stretch;
  display: inline-flex;
  justify-content: center;
  text-align: center;
  margin-top: 4px;
}

.guild-members-slider{display:flex;gap:20px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;padding:4px 2px 16px;scrollbar-color:var(--color-primary) transparent}.guild-members-slider .guild-member-card{flex:0 0 min(240px,78vw);scroll-snap-align:start}.guild-members-slider::-webkit-scrollbar{height:8px}.guild-members-slider::-webkit-scrollbar-thumb{background:var(--color-primary);border-radius:999px}.guild-members-slider::-webkit-scrollbar-track{background:rgba(12,116,185,.1);border-radius:999px}

/* Homepage flow and RTL stability. */
.home-main {
  display: flex;
  flex-direction: column;
}
.home-ad-banners .ad-banner {
  isolation: isolate;
}
.home-ad-banners .ad-banner img {
  height: 100%;
  min-height: inherit;
}

.chamber-members-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  overflow: visible;
  padding: 4px 2px 18px;
}
.chamber-member-card { min-width: 0; }
.chamber-members-empty { flex: 1 0 100%; }

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

@media (max-width: 780px) {
  .chamber-members-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .chamber-member-card { flex-basis: min(245px, 82vw); }
}

/* Homepage refinements */
.home-ad-banners .ad-banner,
.home-ad-banners .ad-banner-placeholder {
  border-radius: 26px;
  min-height: 170px;
}

.home-ad-banners .ad-banner-placeholder {
  cursor: default;
}

.home-ad-banners .ad-banner-placeholder .ad-banner-overlay {
  background: linear-gradient(180deg, rgba(11, 24, 38, 0.18) 0%, rgba(11, 24, 38, 0.55) 100%);
}

.home-ad-banners .ad-banner-placeholder .ad-banner-text {
  justify-content: flex-end;
  align-items: flex-end;
  padding: 18px 20px;
  font-size: 14px;
  letter-spacing: 0;
}

.friendship-layout {
  grid-template-columns: minmax(0, 1.1fr) 380px;
  gap: 28px;
}

.friend-list {
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(13, 86, 123, 0.08);
  border-radius: 28px;
}

.friend-list a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  color: #183042;
  line-height: 1.85;
  word-break: break-word;
}

.friend-list strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.8;
}

.friend-list small {
  display: block;
  color: #6b7280;
  font-size: 0.84rem;
  line-height: 1.9;
}

.friend-list a > span:first-child {
  flex: 0 0 auto;
  font-size: 1.1rem;
  line-height: 1;
}

.friend-list li {
  padding: 12px 0;
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

.chamber-members-grid-simple {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.chamber-member-card-simple {
  border-radius: 24px;
  border-color: rgba(13, 86, 123, 0.08);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.05);
}

.chamber-member-card-simple:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.chamber-member-card-simple .chamber-member-card-glow {
  display: none;
}

.chamber-member-card-simple a {
  align-items: flex-start;
  text-align: right;
  padding: 18px 18px 20px;
}

.chamber-member-photo-wrap-simple {
  width: 92px;
  height: 92px;
  margin-top: 0;
  padding: 0;
  border-radius: 22px;
  background: transparent;
  box-shadow: none;
}

.chamber-member-photo-wrap-simple img {
  border-radius: 18px;
  border-width: 0;
}

.chamber-member-photo-wrap-simple .chamber-member-number {
  width: 28px;
  height: 28px;
  right: -6px;
  bottom: -6px;
  font-size: 12px;
}

.chamber-member-body-simple {
  align-items: flex-start;
  padding: 14px 0 0;
}

.chamber-member-body-simple h3 {
  font-size: 1.02rem;
  margin-bottom: 4px;
}

.chamber-member-body-simple .chamber-member-label {
  margin-bottom: 8px;
  padding: 4px 10px;
  background: #eef4f8;
}

.chamber-member-body-simple .chamber-member-position {
  color: #64748b;
  font-size: 0.88rem;
}

.chamber-member-link {
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  color: var(--primary-color, #0d567b);
  font-size: 0.84rem;
  font-weight: 800;
}

.chamber-member-meta {
  display: none;
}

@media (max-width: 1100px) {
  .chamber-members-grid-simple {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .friendship-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .chamber-members-grid-simple {
    grid-template-columns: 1fr;
  }

  .friend-list {
    padding: 16px 18px;
  }

  .friend-list li {
    padding: 10px 0;
  }
}

/* Keep union logos circular without distorting their original proportions. */
.person-avatar img {
  object-fit: contain;
  padding: 3px;
  background: #fff;
}

/* Prevent long union data (most notably email/website values) from widening the
   whole page on narrow screens. Grid and flex children default to a min-width
   based on their content, so one unbroken value could previously create a
   horizontal scrollbar and make every following section look off-centre. */
.guild-page,
.guild-layout,
.guild-layout > div,
.guild-section,
.guild-head-info,
.guild-contact-grid,
.guild-contact-card {
  min-width: 0;
  max-width: 100%;
}

.guild-hero-logo {
  overflow: hidden;
}

.guild-hero-logo img,
.guild-head-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.guild-contact-card span,
.guild-head-info,
.guild-head-info :is(strong, span, p, a) {
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 575.98px) {
  .guild-layout {
    width: min(calc(100% - 28px), var(--container-width));
    gap: 0;
    padding-block: 28px;
  }

  .guild-section-title {
    font-size: 19px;
  }

  .guild-contact-card {
    padding: 16px;
    gap: 12px;
  }
}

/* Chamber members should wrap on small screens instead of creating a horizontal scroller. */
@media (max-width: 560px) {
  .chamber-members-grid,
  .chamber-members-grid-simple {
    display: grid;
    grid-template-columns: 1fr;
    overflow-x: visible;
    scroll-snap-type: none;
  }

  .chamber-members-grid .chamber-member-card,
  .chamber-members-grid-simple .chamber-member-card {
    width: 100%;
    max-width: none;
    flex-basis: auto;
  }
}

/* Controlled public-site refinement: preserve the existing composition. */
.ui-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-mobile-actions,
.mobile-drawer-header,
.mobile-phone-trigger,
.mobile-nav-overlay { display: none; }

.mobile-header-tools { display: flex; align-items: center; gap: 8px; }
.mobile-icon-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.search-trigger::before,
.search-trigger::after { display: none; }

.header-top {
  min-height: 72px;
  gap: 16px;
  padding-block: 8px;
}

.brand-note { gap: 12px; }
.brand-note-media { width: 68px; height: 68px; }
.brand-note-copy > span:first-child { font-size: 11px; font-weight: 400; color: var(--color-ink-500); }
.brand-note strong { font-size: .92rem; font-weight: 650; line-height: 1.55; }
.brand-note-title { font-size: 11px; font-weight: 500; }

.header-service-pill,
.header-contact-card {
  height: 40px;
  min-height: 40px;
  padding-inline: 14px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: none;
}

.header-service-pill {
  gap: 7px;
}

.header-service-pill::before { display: none; }
.header-contact-card {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  border-color: #a8292f;
  background: #b72f36;
}
.header-contact-card span,
.header-contact-card strong { color: #fff; font-size: inherit; font-weight: 600; }
.header-contact-card:hover,
.header-contact-card:focus-visible { color: #fff; border-color: #8e2027; background: #97242b; }
.main-navbar { min-height: 48px; padding-top: 6px; border-top: 1px solid #f0f2f4; }
.navbar-nav { gap: 20px; }
.main-navbar .nav-link { min-height: 40px; font-size: 13.5px; font-weight: 500; }
.main-navbar .nav-link.active { font-weight: 600; }
.top-submenu { border-radius: 10px; box-shadow: 0 10px 26px rgba(15, 35, 52, .09); }
.top-submenu a { min-height: 40px; display: flex; align-items: center; font-size: 13px; font-weight: 500; }

.market-ticker { min-height: 38px; gap: 12px; }
.market-ticker-title { padding: 4px 10px; border-radius: 8px; font-size: 12px; font-weight: 600; }
.market-ticker-items { min-height: 34px; }
.market-ticker-item { font-size: 12.5px; font-weight: 400; }
.market-price { font-weight: 700; }

.hero-section { --hero-equal-height: 380px; padding-block: 28px 42px; }
.hero-grid { grid-template-columns: 250px minmax(0, 1fr) 230px; gap: 14px; }
.hero-slider,
.news-card-main,
.side-card,
.quick-menu { border-radius: 12px; }
.news-card-main,
.side-card { overflow: hidden; }
.news-overlay { background: linear-gradient(180deg, rgba(5, 20, 32, .04) 30%, rgba(5, 20, 32, .72) 100%); }
.news-card-main h1 { max-width: 32ch; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-weight: 650; }
.side-card h2 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; }

.home-main > section:not(.hero-section) { scroll-margin-top: 24px; }
.section-heading h2,
.media-header h2 { font-size: clamp(21px, 2vw, 23px); font-weight: 700; }
.home-main :is(.howto-card h3, .latest-news-card h3, .tourism-card h3, .comreal-card h3) { font-weight: 600; }

.howto-card,
.commission-card,
.comreal-card,
.tourism-card,
.media-card,
.chamber-member-card,
.people-panel,
.friend-list {
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 35, 52, .055);
}

.howto-card { min-height: 210px; padding: 22px 18px; }
.howto-card .howto-icon { width: 48px; height: 48px; font-size: 22px; filter: saturate(.55); }
.howto-card h3 { font-size: 14px; }
.howto-card p { font-size: 12px; }
.representative-layout { grid-template-columns: minmax(0, 1fr) minmax(320px, 390px); gap: 28px; }
.people-panel { padding: 20px; }
.tabs { scrollbar-width: thin; }
.tab-pill { min-height: 40px; border-radius: 10px; }

.home-ad-banners { gap: 22px; padding-block: 28px 36px; }
.home-ad-banners .ad-banner,
.home-ad-banners .ad-banner-placeholder { min-height: 150px; border-radius: 14px; box-shadow: 0 8px 24px rgba(15, 35, 52, .06); }
.ad-banner-overlay { background: linear-gradient(180deg, rgba(8, 20, 32, .04), rgba(8, 20, 32, .5)); }
a[href=""].ad-banner { pointer-events: none; }

.site-footer { padding-top: 42px; }
.footer-main { gap: 28px; }
.footer-col h4 { margin-bottom: 16px; }
.footer-col li { margin-bottom: 7px; }
.footer-col a,
.footer-contact-item { font-size: 12.5px; line-height: 1.85; }
.footer-contact-item { margin-bottom: 9px; }
.footer-contact-item .fc-icon { border-radius: 8px; }
.footer-divider { margin-block: 24px; }
.footer-orgs { gap: 8px; }
.footer-orgs a { min-height: 46px; border-radius: 8px; }

html,
body { max-width: 100%; overflow-x: clip; }
img,
svg { max-width: 100%; }

@media (max-width: 1100px) and (min-width: 992px) {
  .hero-grid { grid-template-columns: 220px minmax(0, 1fr) 205px; }
  .navbar-nav { gap: 12px; }
  .main-navbar .nav-link { font-size: 12.5px; }
}

@media (max-width: 991.98px) {
  .site-header { min-height: 72px; }
  .header-top { min-height: 72px; display: flex; justify-content: center; padding-block: 6px; }
  .brand-note { width: auto; justify-self: auto; }
  .brand-note-media { width: 58px; height: 58px; }
  .brand-note-copy,
  .header-left-actions { display: none; }

  .main-navbar {
    position: absolute;
    inset: 0;
    width: min(calc(100% - 28px), var(--container-width));
    min-height: 72px;
    padding: 0;
    border: 0;
    justify-content: space-between;
    pointer-events: none;
  }
  .navbar-toggler,
  .mobile-phone-trigger,
  .search-trigger,
  .navbar-collapse { pointer-events: auto; }

  .mobile-header-tools { gap: 8px; }
  .mobile-phone-trigger { display: inline-flex; }

  .site-header .navbar-toggler.mobile-icon-button,
  .site-header .mobile-phone-trigger.mobile-icon-button,
  .site-header .search-trigger.mobile-icon-button,
  .site-header .mobile-drawer-close.mobile-icon-button {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(15, 35, 52, .14);
    border-radius: 9px;
    color: var(--color-ink-800);
    background: #fff;
    box-shadow: none;
    transition: color .18s ease, border-color .18s ease, background .18s ease;
  }
  .site-header .mobile-icon-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .site-header .navbar-toggler.mobile-icon-button:hover,
  .site-header .navbar-toggler.mobile-icon-button:focus-visible,
  .site-header .search-trigger.mobile-icon-button:hover,
  .site-header .search-trigger.mobile-icon-button:focus-visible,
  .site-header .mobile-icon-button.is-active { color: var(--color-primary); border-color: rgba(12, 116, 185, .34); background: #f3f9fd; }
  .site-header .mobile-phone-trigger.mobile-icon-button {
    border-color: #a8292f;
    background: #b72f36;
    color: #fff;
  }
  .site-header .mobile-phone-trigger.mobile-icon-button:hover,
  .site-header .mobile-phone-trigger.mobile-icon-button:focus-visible { border-color: #8e2027; background: #97242b; color: #fff; }
  .site-header .mobile-phone-trigger.mobile-icon-button:focus-visible { outline-color: rgba(183, 47, 54, .28); }
  .site-header .mobile-phone-trigger.mobile-icon-button.is-disabled { cursor: default; opacity: .62; }
  .search-trigger::before,
  .search-trigger::after { display: none; }

  .mobile-nav-overlay {
    position: fixed;
    z-index: 1040;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    padding: 0;
    border: 0;
    background: rgba(15, 23, 42, .22);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease;
    cursor: default;
  }
  .mobile-nav-overlay.is-visible { opacity: 1; visibility: visible; pointer-events: auto; }
  .mobile-nav-overlay[hidden] { display: none; }
  body.mobile-nav-open { overflow: hidden; touch-action: none; }

  .main-navbar .navbar-collapse.collapse,
  .main-navbar .navbar-collapse.collapsing {
    position: fixed;
    z-index: 1050;
    inset-block: 0;
    right: 0;
    left: auto;
    display: block;
    width: 86vw;
    max-width: 360px;
    height: 100dvh !important;
    max-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0 18px 22px;
    border: 0;
    border-radius: 0;
    background: #fff;
    opacity: 1;
    filter: none;
    backdrop-filter: none;
    isolation: isolate;
    box-shadow: -18px 0 42px rgba(7, 18, 28, .18);
    visibility: hidden;
    transform: translateX(105%);
    transition: transform .22s ease, visibility .22s ease;
  }
  .main-navbar .navbar-collapse.show,
  .main-navbar .navbar-collapse.collapsing {
    visibility: visible;
    transform: translateX(0);
  }
  .main-navbar .navbar-collapse.collapsing.is-closing {
    transform: translateX(105%);
  }
  .mobile-drawer-header { position: sticky; z-index: 2; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; margin-inline: -18px; padding-inline: 18px; border-bottom: 1px solid #edf0f2; background: #fff; }
  .mobile-drawer-brand { min-width: 0; display: flex; align-items: center; gap: 9px; color: var(--color-ink-900); text-decoration: none; font-size: 12.5px; font-weight: 600; }
  .mobile-drawer-brand img { width: 38px; height: 38px; object-fit: contain; }
  .mobile-drawer-brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-drawer-close { display: inline-flex; padding: 0; }
  .mobile-drawer-close svg { width: 19px; height: 19px; }
  .mobile-drawer-close:focus-visible,
  .navbar-toggler:focus-visible,
  .mobile-phone-trigger:focus-visible,
  .search-trigger:focus-visible { outline: 3px solid rgba(12, 116, 185, .22); outline-offset: 2px; }

  .top-nav-menu { width: 100%; margin: 0; padding: 10px 0 6px; }
  .main-navbar .nav-link { min-height: 44px; padding: 9px 4px; font-size: 13.5px; font-weight: 500; }
  .top-submenu { padding-inline: 10px; }
  .header-mobile-actions { display: grid; grid-template-columns: 1fr; gap: 8px; padding-top: 14px; border-top: 1px solid #eef1f4; }
  .header-mobile-actions a { min-height: 42px; display: flex; align-items: center; gap: 7px; padding: 8px 10px; border: 1px solid #e4e9ed; border-radius: 8px; color: var(--color-ink-800); font-size: 12.5px; font-weight: 500; text-decoration: none; }
  .header-mobile-actions a:last-child { color: #fff; border-color: #a8292f; background: #b72f36; }
  .header-mobile-actions a:last-child:hover { background: #97242b; }
  .header-search-panel { top: 72px; }

  .market-ticker { min-height: 44px; padding-block: 5px; }
  .market-ticker-items { min-height: 38px; }
  .hero-section { --hero-equal-height: 310px; padding-top: 22px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-slider { order: 1; }
  .side-news { order: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .quick-menu { order: 3; }
  .quick-menu-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-menu-item:nth-child(odd) { border-inline-end: 1px solid #eef1f4; }
  .quick-menu-link { min-height: 40px; padding-inline: 10px; border-radius: 7px; font-size: 12.5px; font-weight: 500; }

  .howto-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .representative-layout { grid-template-columns: 1fr; }
  .representative-map { min-height: auto; }
  .tabs { max-width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; }
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .footer-brand-col { grid-column: 1 / -1; }
}

/* Homepage latest news: one scoped editorial layout plus AJAX controls. */
#latest-news.latest-news-section { padding: 42px 0; direction: rtl; overflow: clip; }
#latest-news .latest-news-shell { width: 100%; padding: 22px; border: 1px solid #edf0f2; border-radius: 8px; background: #fff; box-shadow: none; }
#latest-news .latest-news-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
#latest-news .latest-news-heading h2 { margin: 0 0 3px; font-size: 21px; font-weight: 700; }
#latest-news .latest-news-heading p { margin: 0; color: var(--color-ink-500); font-size: 12px; font-weight: 400; }
#latest-news .latest-news-archive { min-height: 34px; display: inline-flex; align-items: center; flex: 0 0 auto; padding: 0 13px; border-radius: 5px; background: var(--color-primary); color: #fff; font-size: 11.5px; font-weight: 600; text-decoration: none; }
#latest-news .latest-news-archive:hover { background: #095f98; color: #fff; }
#latest-news .latest-news-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(230px, 3fr); gap: 24px; align-items: start; }
#latest-news .latest-news-list,
#latest-news .latest-news-grid,
#latest-news .latest-news-ads { min-width: 0; }
#latest-news .latest-news-grid { display: grid; gap: 0; transition: opacity .18s ease; }
#latest-news .latest-news-list.is-loading .latest-news-grid { opacity: .55; }
#latest-news .latest-news-card { width: 100%; min-width: 0; display: flex; flex-direction: row; align-items: center; gap: 16px; padding: 13px 6px; border: 0; border-bottom: 1px solid #edf0f2; border-radius: 0; background: transparent; box-shadow: none; overflow: hidden; transition: background .18s ease; }
#latest-news .latest-news-card:first-child { padding-top: 6px; }
#latest-news .latest-news-card:hover { background: #f8fafb; transform: none; box-shadow: none; }
#latest-news .latest-news-thumb-link { position: relative; width: 140px; min-width: 140px; max-width: 140px; height: 79px; flex: 0 0 140px; display: block; align-self: center; overflow: hidden; border-radius: 5px; background: #eef2f4; }
#latest-news .latest-news-thumb-link > img { position: absolute; inset: 0; width: 100%; min-width: 100%; max-width: 100%; height: 100%; display: block; margin: 0; object-fit: cover; object-position: center; border-radius: inherit; box-shadow: none; transform: none; }
#latest-news .latest-news-category { position: absolute; z-index: 1; inset: auto 5px 5px auto; max-width: calc(100% - 10px); padding: 2px 5px; overflow: hidden; border-radius: 3px; background: rgba(10, 25, 36, .72); color: #fff; font-size: 8.5px; font-weight: 500; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
#latest-news .latest-news-thumb-link::after { content: none; }
#latest-news .latest-news-card-body { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
#latest-news .latest-news-card-body > time { display: block; margin: 0 0 3px; color: var(--color-ink-500); font-size: 10.5px; font-weight: 400; }
#latest-news .latest-news-card h3 { display: -webkit-box; margin: 0 0 3px; overflow: hidden; color: var(--color-ink-900); font-size: 14.5px; font-weight: 700; line-height: 1.7; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
#latest-news .latest-news-card h3 a { color: inherit; text-decoration: none; }
#latest-news .latest-news-card h3 a:hover { color: var(--color-primary); }
#latest-news .latest-news-card-body p { display: -webkit-box; margin: 0; overflow: hidden; color: #68747e; font-size: 12px; line-height: 1.8; unicode-bidi: plaintext; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
#latest-news .latest-news-ads { display: grid; gap: 12px; align-content: start; }
#latest-news .latest-news-ad { position: relative; min-height: 0; display: block; overflow: hidden; border: 1px solid #e6ebee; border-radius: 6px; background: #f1f4f6; color: #fff; box-shadow: none; isolation: isolate; }
#latest-news .latest-news-ad img { width: 100%; height: auto; aspect-ratio: 16 / 8; display: block; object-fit: cover; }
#latest-news .latest-news-ad > span { position: absolute; inset: auto 0 0; padding: 20px 10px 8px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.68)); font-size: 11px; font-weight: 600; line-height: 1.7; }
#latest-news .latest-news-ad-placeholder { cursor: default; }
#latest-news .latest-news-pagination { display: flex; justify-content: center; gap: 8px; padding-top: 12px; }
#latest-news .latest-news-page-button { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 1px solid rgba(15,35,52,.15); border-radius: 6px; background: #fff; color: var(--color-ink-800); transition: background .18s ease, border-color .18s ease, color .18s ease; }
#latest-news .latest-news-page-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#latest-news .latest-news-page-button:hover { border-color: rgba(12,116,185,.4); background: #f3f9fd; color: var(--color-primary); }
#latest-news .latest-news-page-button.is-disabled,
#latest-news .latest-news-page-button.is-loading-disabled { opacity: .38; pointer-events: none; }
#latest-news .latest-news-status:not(.visually-hidden) { margin: 10px 0 0; color: #a8292f; font-size: 12px; }

@media (max-width: 1100px) {
  #latest-news .latest-news-layout { grid-template-columns: minmax(0, 1fr) minmax(210px, 28%); gap: 18px; }
  #latest-news .latest-news-thumb-link { width: 125px; min-width: 125px; max-width: 125px; height: 70px; flex-basis: 125px; }
}

@media (max-width: 899.98px) {
  #latest-news .latest-news-layout { grid-template-columns: 1fr; }
  #latest-news .latest-news-ads { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
  #latest-news.latest-news-section { padding: 30px 0; }
  #latest-news .latest-news-shell { padding: 15px; border-radius: 6px; }
  #latest-news .latest-news-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 2px 8px; }
  #latest-news .latest-news-heading > div { display: contents; }
  #latest-news .latest-news-heading h2 { grid-column: 1; grid-row: 1; font-size: 18px; white-space: nowrap; }
  #latest-news .latest-news-heading p { grid-column: 1 / -1; grid-row: 2; font-size: 11px; }
  #latest-news .latest-news-archive { grid-column: 2; grid-row: 1; min-height: 32px; justify-self: end; padding-inline: 10px; font-size: 11px; white-space: nowrap; }
  #latest-news .latest-news-card { gap: 13px; padding-block: 11px; }
  #latest-news .latest-news-thumb-link { width: 110px; min-width: 110px; max-width: 110px; height: 62px; flex-basis: 110px; }
  #latest-news .latest-news-card h3 { font-size: 13px; }
  #latest-news .latest-news-card-body p { font-size: 11.5px; -webkit-line-clamp: 1; }
}

@media (max-width: 420px) {
  #latest-news .latest-news-shell { padding: 12px; }
  #latest-news .latest-news-card { gap: 10px; padding-block: 10px; }
  #latest-news .latest-news-thumb-link { width: 95px; min-width: 95px; max-width: 95px; height: 54px; flex-basis: 95px; }
  #latest-news .latest-news-card h3 { font-size: 12.5px; line-height: 1.65; }
  #latest-news .latest-news-card-body > time { font-size: 9.5px; }
  #latest-news .latest-news-card-body p { font-size: 10.5px; }
  #latest-news .latest-news-ads { grid-template-columns: 1fr; }
}

/* Scoped refinement: homepage electronic services, unions and tourism. */
.home-refined-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.home-refined-heading h2 { margin: 0; font-size: 22px; font-weight: 650; line-height: 1.55; }
.home-refined-heading p { margin: 4px 0 0; color: var(--color-ink-600); font-size: 13px; font-weight: 400; }
.home-refined-action {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0 14px;
  border: 1px solid var(--color-primary);
  border-radius: 7px;
  background: var(--color-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease;
}
.home-refined-action:hover { border-color: #095f98; background: #095f98; color: #fff; }

.home-services-refined { padding-block: 46px; }
.home-services-refined .howto-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.home-services-refined .howto-card {
  min-height: 164px;
  align-items: flex-start;
  padding: 18px;
  border: 1px solid rgba(15, 35, 52, .1);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(15, 35, 52, .035);
  text-align: start;
  transform: none;
}
.home-services-refined .howto-card:nth-child(n) { background: #fff; }
.home-services-refined .howto-card:hover { border-color: rgba(12, 116, 185, .35); box-shadow: 0 5px 16px rgba(15, 35, 52, .06); transform: translateY(-1px); }
.home-services-refined .howto-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 11px;
  border-radius: 8px;
  background: #eef7fd;
  color: var(--color-primary);
  filter: none;
}
.home-services-refined .howto-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.home-services-refined .howto-card h3 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0 0 5px; color: var(--color-ink-900); font-size: 15px; font-weight: 600; line-height: 1.65; }
.home-services-refined .howto-card p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0 0 8px; color: var(--color-ink-600); font-size: 12.5px; font-weight: 400; line-height: 1.8; }
.home-services-refined .howto-link { margin-top: auto; color: var(--color-primary); font-size: 12px; font-weight: 500; }
.home-services-refined .howto-link-mobile { display: none; }
.home-services-refined .howto-card:hover .howto-link { text-decoration: underline; }

#representatives { padding-block: 48px; }
#representatives .tabs { display: flex; gap: 8px; margin-bottom: 14px; }
#representatives .tabs .tab-pill { min-height: 36px; padding: 6px 12px; border: 1px solid rgba(15, 35, 52, .12); border-radius: 7px; background: #fff; color: var(--color-ink-700); font-size: 13px; font-weight: 500; }
#representatives .tabs .tab-pill.active { border-color: var(--color-primary); background: var(--color-primary); color: #fff; }
#representatives .representative-layout { grid-template-columns: minmax(0, 1.15fr) minmax(330px, .9fr); gap: 16px; align-items: stretch; }
#representatives .representative-map { min-height: 0; aspect-ratio: 16 / 9; border: 1px solid rgba(15, 35, 52, .1); border-radius: 9px; overflow: hidden; background: #f4f7f9; }
#representatives .representative-map .map-img { width: 100%; height: 100%; object-fit: cover; }
#representatives .people-panel { min-height: 0; padding: 14px; border: 1px solid rgba(15, 35, 52, .1); border-radius: 9px; background: #f8fafb; box-shadow: none; }
#representatives .searchbox { height: 40px; margin-bottom: 10px; padding-inline: 12px; border: 1px solid rgba(15, 35, 52, .13); border-radius: 8px; background: #fff; }
#representatives .searchbox:focus-within { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(12, 116, 185, .1); }
#representatives .searchbox input { font-size: 13px; }
#representatives .search-icon { width: 15px; height: 15px; }
#representatives .people-scroll-wrap { max-height: 330px; padding-inline-end: 3px; overflow-y: auto; }
#representatives .people-scroll-wrap::-webkit-scrollbar { width: 4px; }
#representatives .people-scroll-wrap::-webkit-scrollbar-thumb { border-radius: 4px; background: #b8c7d1; }
#representatives .person-list { display: grid; gap: 6px; }
#representatives .person-list li { min-height: 0; padding: 9px; border: 1px solid rgba(15, 35, 52, .08); border-radius: 7px; background: #fff; }
#representatives .union-home-item { display: flex; align-items: center; gap: 8px; }
#representatives .union-home-item > a { min-width: 0; flex: 1 1 auto; }
#representatives .person-avatar { width: 44px; height: 44px; min-width: 44px; border: 1px solid rgba(15, 35, 52, .1); box-shadow: none; }
#representatives .person-list strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13.5px; font-weight: 600; line-height: 1.55; }
#representatives .person-list small { max-width: 260px; overflow: hidden; color: var(--color-ink-600); font-size: 11.5px; font-weight: 400; line-height: 1.6; text-overflow: ellipsis; white-space: nowrap; }
#representatives .union-home-actions { flex: 0 0 auto; }
#representatives .union-home-actions a { min-height: 31px; display: inline-flex; align-items: center; padding: 0 9px; border: 1px solid rgba(12, 116, 185, .25); border-radius: 6px; background: #eff8fe; color: var(--color-primary); font-size: 11.5px; font-weight: 500; text-decoration: none; }
#representatives .union-home-actions a:hover { border-color: var(--color-primary); background: #e2f2fc; }
#representatives .union-ajax-status { padding: 8px; color: var(--color-ink-600); font-size: 12px; text-align: center; }

#tourism { padding-block: 48px; }
#tourism .tourism-heading { margin-bottom: 12px; }
#tourism .tourism-heading-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
#tourism .tourism-heading-actions .tab-pill { min-height: 36px; padding: 6px 12px; border: 1px solid rgba(15, 35, 52, .14); border-radius: 7px; background: #f8fafb; color: var(--color-ink-800); font-size: 13px; font-weight: 600; white-space: nowrap; }
#tourism .tourism-heading-actions .tab-pill.active { border-color: rgba(12, 116, 185, .32); background: #f2f8fc; color: var(--color-primary); }
#tourism .tourism-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
#tourism .tourism-tabs .tab-pill { min-height: 36px; padding: 6px 12px; border: 1px solid rgba(15, 35, 52, .12); border-radius: 7px; background: #fff; color: var(--color-ink-700); font-size: 13px; font-weight: 500; }
#tourism .tourism-tabs .tab-pill.active { border-color: var(--color-primary); background: var(--color-primary); color: #fff; }
#tourism .tourism-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
#tourism .tourism-card { height: 100%; border: 1px solid rgba(15, 35, 52, .1); border-radius: 8px; background: #fff; box-shadow: 0 4px 14px rgba(15, 35, 52, .04); transform: none; }
#tourism .tourism-card:hover { border-color: rgba(12, 116, 185, .3); box-shadow: 0 6px 18px rgba(15, 35, 52, .065); transform: translateY(-1px); }
#tourism .tourism-card > a { height: 100%; display: flex; flex-direction: column; }
#tourism .tourism-img-wrap { aspect-ratio: 16 / 10; }
#tourism .tourism-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
#tourism .tourism-badge { inset: auto 8px 8px auto; padding: 3px 7px; border-radius: 5px; font-size: 10.5px; font-weight: 500; }
#tourism .tourism-card-body { flex: 1 1 auto; padding: 11px 12px 12px; }
#tourism .tourism-card-body h3 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0 0 5px; font-size: 14px; font-weight: 600; line-height: 1.65; }
#tourism .tourism-card-body p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; color: var(--color-ink-600); font-size: 12px; font-weight: 400; line-height: 1.75; }

@media (min-width: 768px) and (max-width: 991.98px) {
  .home-services-refined .howto-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  #representatives .representative-layout { grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr); gap: 12px; }
  #tourism .tourism-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
  .home-refined-heading { flex-direction: row; align-items: center; gap: 10px; margin-bottom: 13px; }
  .home-refined-heading h2 { font-size: 18px; font-weight: 650; }
  .home-refined-heading p { font-size: 12.5px; }
  .home-refined-action { min-height: 36px; padding-inline: 10px; font-size: 12px; }
  .home-services-refined { padding-block: 32px; }
  .home-services-refined .howto-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .home-services-refined .howto-card { min-width: 0; min-height: 142px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px; padding: 9px; border-radius: 8px; text-align: center; }
  .home-services-refined .howto-icon { width: 32px; height: 32px; margin: 0 auto 2px; border-radius: 6px; }
  .home-services-refined .howto-icon svg { width: 27px; height: 27px; }
  .home-services-refined .howto-card h3 { width: 100%; min-height: 51px; margin: 0; font-size: 11px; font-weight: 600; line-height: 1.55; text-align: center; -webkit-line-clamp: 3; }
  .home-services-refined .howto-card p { display: none; }
  .home-services-refined .howto-link { min-height: 20px; display: inline-flex; align-items: center; justify-content: center; margin-top: auto; color: var(--color-primary); font-size: 10px; font-weight: 500; line-height: 1.4; opacity: 1; visibility: visible; transform: none; }
  .home-services-refined .howto-link-mobile { display: inline; }
  .home-services-refined .howto-link-desktop { display: none; }
  .home-services-refined .howto-link-mobile::after { content: ' ←'; font-size: .9em; }
  #representatives { padding-block: 34px; }
  #representatives .tabs { max-width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; scrollbar-width: none; }
  #representatives .tabs::-webkit-scrollbar { display: none; }
  #representatives .tabs .tab-pill { flex: 0 0 auto; min-height: 34px; padding: 5px 10px; white-space: nowrap; }
  #representatives .representative-layout { display: flex; flex-direction: column; gap: 10px; }
  #representatives .representative-map { width: 100%; aspect-ratio: 16 / 9; order: 1; }
  #representatives .people-panel { width: 100%; order: 2; padding: 12px; }
  #representatives .people-scroll-wrap { max-height: 310px; }
  #representatives .person-list li { padding: 7px; }
  #representatives .person-avatar { width: 38px; height: 38px; min-width: 38px; }
  #representatives .person-list strong { font-size: 12.5px; }
  #representatives .person-list small { max-width: 150px; font-size: 11px; }
  #representatives .union-home-actions a { min-height: 29px; padding-inline: 7px; font-size: 11px; }
  #tourism { padding-block: 34px; }
  #tourism .tourism-heading { align-items: center; }
  #tourism .tourism-heading-actions { flex: 0 0 auto; gap: 6px; }
  #tourism .tourism-heading-actions .tab-pill,
  #tourism .tourism-heading-actions .home-refined-action { min-height: 35px; padding-inline: 9px; font-size: 11.5px; white-space: nowrap; }
  #tourism .tourism-tabs { max-width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; scrollbar-width: none; }
  #tourism .tourism-tabs::-webkit-scrollbar { display: none; }
  #tourism .tourism-tabs .tab-pill { flex: 0 0 auto; white-space: nowrap; }
  #tourism .tourism-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  #tourism .tourism-card-body { padding: 8px; }
  #tourism .tourism-card-body h3 { font-size: 12px; line-height: 1.65; }
  #tourism .tourism-card-body p { display: none; }
  #tourism .tourism-badge { inset: auto 6px 6px auto; padding: 2px 5px; font-size: 10px; }
}

@media (max-width: 339.98px) { .home-services-refined .howto-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Scoped refinement: homepage systems, commissions and contact. */
.home-systems-section,
.home-commissions-section,
.home-contact-section { padding-block: 46px; }
.systems-section-heading,
.commissions-section-heading,
.contact-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.systems-section-heading h2,
.commissions-section-heading h2,
.contact-section-heading h2 { margin: 0; font-size: 22px; font-weight: 650; line-height: 1.55; }
.systems-section-heading p,
.commissions-section-heading p,
.contact-section-heading p { margin: 4px 0 0; color: var(--color-ink-600); font-size: 13px; font-weight: 400; }
.home-corporate-action { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; padding: 0 14px; border: 1px solid var(--color-primary); border-radius: 7px; background: var(--color-primary); color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; transition: background .18s ease, border-color .18s ease; }
.home-corporate-action:hover { border-color: #095f98; background: #095f98; color: #fff; }

.home-systems-section .systems-unified-shell { padding: 18px; border: 1px solid rgba(15,35,52,.09); border-radius: 9px; background: #f8fafb; }
.home-systems-section .systems-subtitle { margin: 0 0 11px; color: var(--color-ink-800); font-size: 14px; font-weight: 600; }
.home-systems-section .systems-primary-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 15px; }
.home-systems-section .commission-item { min-height: 146px; display: flex; align-items: flex-start; padding: 16px 17px; border: 1px solid rgba(15,35,52,.1); border-radius: 9px; background: #fff; color: var(--color-ink-900); box-shadow: 0 3px 12px rgba(15,35,52,.035); transform: none; }
.home-systems-section .commission-item::before { display: none; }
.home-systems-section .commission-item::after { inset-block: 12px; inset-inline-start: 0; width: 3px; border-radius: 0 3px 3px 0; background: var(--color-primary); opacity: .75; }
.home-systems-section .commission-item:hover { border-color: rgba(12,116,185,.32); box-shadow: 0 5px 16px rgba(15,35,52,.06); transform: translateY(-1px); }
.home-systems-section .system-card-icon { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 9px; border-radius: 7px; background: #eef7fd; color: var(--color-primary); }
.home-systems-section .system-card-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.home-systems-section .commission-item strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0 0 5px; font-size: 15px; font-weight: 600; line-height: 1.6; }
.home-systems-section .commission-item .system-card-description { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--color-ink-600); font-size: 12.5px; font-weight: 400; line-height: 1.75; }
.home-systems-section .systems-links-group { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(15,35,52,.09); scroll-margin-top: 24px; }
.home-systems-section .systems-links-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.home-systems-section .systems-utility-link { min-height: 52px; display: flex; align-items: center; justify-content: center; padding: 7px 12px; border: 1px solid rgba(15,35,52,.1); border-radius: 7px; background: #fff; color: var(--color-ink-700); font-size: 12.5px; font-weight: 500; line-height: 1.55; text-align: center; text-decoration: none; }
.home-systems-section .systems-utility-link:hover { border-color: rgba(12,116,185,.38); background: #f2f9fd; color: var(--color-primary); }

.home-commissions-section .comreal-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.home-commissions-section .comreal-card { min-height: 178px; padding: 15px; border: 1px solid rgba(15,35,52,.1); border-radius: 8px; background: #fff; box-shadow: 0 3px 12px rgba(15,35,52,.035); transform: none; }
.home-commissions-section .comreal-card:hover { border-color: rgba(12,116,185,.32); box-shadow: 0 5px 16px rgba(15,35,52,.06); transform: translateY(-1px); }
.home-commissions-section .comreal-icon { width: 32px; height: 32px; margin-bottom: 9px; border-radius: 7px; background: #eef7fd; color: var(--color-primary); font-size: 0; }
.home-commissions-section .comreal-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.home-commissions-section .comreal-card h3 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0 0 5px; font-size: 14px; font-weight: 600; line-height: 1.65; }
.home-commissions-section .comreal-card p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0 0 7px; color: var(--color-ink-600); font-size: 12px; font-weight: 400; line-height: 1.7; }
.home-commissions-section .commission-task-mini { margin-top: auto; padding-top: 6px; border-top: 1px solid rgba(15,35,52,.07); color: var(--color-ink-500); font-size: 10.5px; font-weight: 400; }
.home-commissions-section .commission-task-mini li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-commissions-section .commission-task-mini li:not(:first-child) { display: none; }

.home-contact-section .friendship-layout { grid-template-columns: minmax(0,1.2fr) minmax(330px,.9fr); gap: 18px; align-items: start; }
.home-contact-section .world-map-wrap { min-height: 0; aspect-ratio: 16/10; border: 1px solid rgba(15,35,52,.09); border-radius: 8px; overflow: hidden; background: #f4f7f9; }
.home-contact-section .world-map-img { width: 100%; height: 100%; max-height: none; object-fit: contain; }
.home-contact-section .friend-list { min-height: 0; height: auto; padding: 8px 14px; border: 1px solid rgba(15,35,52,.09); border-radius: 8px; background: #f8fafb; box-shadow: none; }
.home-contact-section .friend-scroll-wrap { flex: none; max-height: none; height: auto; overflow: visible; scrollbar-width: auto; }
.home-contact-section .friend-list li { padding: 0; border-bottom: 1px solid rgba(15,35,52,.08); }
.home-contact-section .friend-list li:last-child { border-bottom: 0; }
.home-contact-section .friend-list a { min-height: 62px; display: flex; flex-direction: row; align-items: center; gap: 10px; padding: 10px 0; }
.home-contact-section .contact-item-icon { width: 32px; height: 32px; min-width: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 7px; background: #eef7fd; color: var(--color-primary); }
.home-contact-section .contact-item-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.home-contact-section .contact-item-copy { min-width: 0; }
.home-contact-section .friend-list strong { margin: 0; color: var(--color-ink-900); font-size: 13.5px; font-weight: 600; line-height: 1.6; }
.home-contact-section .friend-list small { color: var(--color-ink-600); font-size: 12px; font-weight: 400; line-height: 1.65; }

@media (min-width:768px) and (max-width:991.98px) {
  .home-systems-section .systems-primary-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .home-systems-section .systems-links-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .home-commissions-section .comreal-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .home-contact-section .friendship-layout { grid-template-columns: minmax(0,1.1fr) minmax(300px,.9fr); }
}

@media (max-width:767.98px) {
  .home-systems-section, .home-commissions-section, .home-contact-section { padding-block: 34px; }
  .systems-section-heading, .commissions-section-heading, .contact-section-heading { flex-direction: row; align-items: center; gap: 10px; margin-bottom: 13px; }
  .systems-section-heading h2, .commissions-section-heading h2, .contact-section-heading h2 { font-size: 18px; font-weight: 650; }
  .systems-section-heading p, .commissions-section-heading p, .contact-section-heading p { font-size: 12px; }
  .home-corporate-action { min-height: 36px; padding-inline: 9px; font-size: 11.5px; }
  .home-systems-section .systems-unified-shell { padding: 11px; }
  .home-systems-section .systems-primary-grid, .home-systems-section .systems-links-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .home-systems-section .commission-item { min-width: 0; min-height: 126px; padding: 11px; }
  .home-systems-section .system-card-icon { width: 28px; height: 28px; margin-bottom: 6px; }
  .home-systems-section .system-card-icon svg { width: 17px; height: 17px; }
  .home-systems-section .commission-item strong { font-size: 12px; }
  .home-systems-section .commission-item .system-card-description { -webkit-line-clamp: 2; font-size: 11px; }
  .home-systems-section .systems-utility-link { min-height: 49px; padding: 6px; font-size: 11px; }
  .home-commissions-section .comreal-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .home-commissions-section .comreal-card { min-width: 0; min-height: 146px; padding: 10px; }
  .home-commissions-section .comreal-icon { width: 27px; height: 27px; margin-bottom: 6px; }
  .home-commissions-section .comreal-icon svg { width: 17px; height: 17px; }
  .home-commissions-section .comreal-card h3 { font-size: 11.5px; }
  .home-commissions-section .comreal-card p { -webkit-line-clamp: 1; font-size: 10.8px; }
  .home-commissions-section .commission-task-mini { font-size: 9.5px; }
  .home-contact-section .friendship-layout { display: flex; flex-direction: column; gap: 10px; }
  .home-contact-section .world-map-wrap { width: 100%; order: 1; aspect-ratio: 16/9; }
.home-contact-section .friend-list { width: 100%; order: 2; padding: 5px 10px; }
  .home-contact-section .friend-list :is(a, .contact-link-static) { min-height: 54px; padding: 8px 0; }
  .home-contact-section .contact-item-icon { width: 30px; height: 30px; min-width: 30px; }
  .home-contact-section .contact-item-icon svg { width: 19px; height: 19px; }
  .home-contact-section .friend-list strong { font-size: 12.5px; }
  .home-contact-section .friend-list small { font-size: 11px; }
}

.home-contact-section .friend-list .contact-link-static { display: flex; align-items: center; gap: 10px; color: var(--color-ink-800); }

/* Scoped refinement: homepage chamber members. */
.chamber-members-home { padding-block: 46px; overflow: hidden; background: #f7fafc; }
.chamber-members-home::before, .chamber-members-home::after { display: none; }
.members-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.members-section-heading h2 { margin: 0; font-size: 22px; font-weight: 650; line-height: 1.55; }
.members-section-heading p { margin: 4px 0 0; color: var(--color-ink-600); font-size: 13px; font-weight: 400; line-height: 1.7; }
.members-view-all { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; padding: 0 14px; border: 1px solid var(--color-primary); border-radius: 7px; background: var(--color-primary); color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; transition: background .18s ease, border-color .18s ease; }
.members-view-all:hover { border-color: #095f98; background: #095f98; color: #fff; }
.members-swiper { width: 100%; overflow: visible; }
.members-swiper .chamber-members-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 15px; margin: 0; padding: 0; transform: none; }
.members-swiper .chamber-member-card { width: auto; min-height: 100%; margin: 0; border: 1px solid rgba(15,35,52,.1); border-radius: 9px; background: #fff; box-shadow: 0 3px 12px rgba(15,35,52,.035); transform: none; }
.members-swiper .chamber-member-card:hover { border-color: rgba(12,116,185,.3); box-shadow: 0 5px 16px rgba(15,35,52,.06); transform: translateY(-1px); }
.members-swiper .chamber-member-card-glow { display: none; }
.members-swiper .chamber-member-card > a { align-items: stretch; padding: 14px; text-align: start; }
.members-swiper .chamber-member-photo-wrap { width: 100%; height: auto; aspect-ratio: 1/1; position: relative; margin: 0; padding: 3px; border: 0; border-radius: 50%; background: conic-gradient(from 35deg, #7957a8, #c85b8e, #dd7558, #d7a743, #7957a8); box-shadow: 0 3px 10px rgba(15,35,52,.08); }
.members-swiper .chamber-member-photo-wrap img { width: 100%; height: 100%; display: block; border: 2px solid #fff; border-radius: 50%; object-fit: cover; object-position: top center; }
.members-swiper .chamber-member-number { width: 20px; height: 20px; right: 7px; bottom: 7px; border: 1px solid rgba(255,255,255,.85); background: rgba(15,35,52,.42); font-size: 9px; font-weight: 500; box-shadow: none; }
.members-swiper .chamber-member-body { align-items: flex-start; padding: 10px 0 0; text-align: start; }
.members-swiper .chamber-member-label { margin-bottom: 5px; padding: 2px 6px; border-radius: 5px; color: var(--color-ink-500); font-size: 10px; font-weight: 400; }
.members-swiper .chamber-member-body h3 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0 0 4px; color: var(--color-ink-900); font-size: 14.5px; font-weight: 600; line-height: 1.6; }
.members-swiper .chamber-member-position { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; color: var(--color-ink-600); font-size: 12.5px; font-weight: 400; line-height: 1.65; }
.members-swiper .chamber-member-meta { display: none; }

@media (max-width:1199.98px) and (min-width:992px) { .members-swiper .chamber-members-grid { grid-template-columns: repeat(4,minmax(0,1fr)); } }
@media (max-width:991.98px) and (min-width:768px) { .members-swiper .chamber-members-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; } }
@media (max-width:767.98px) {
  .chamber-members-home { padding-block: 34px; }
  .members-section-heading { flex-direction: row; align-items: center; gap: 9px; margin-bottom: 13px; }
  .members-section-heading h2 { font-size: 18px; font-weight: 650; }
  .members-section-heading p { display: none; }
  .members-view-all { min-height: 36px; padding-inline: 9px; font-size: 11.5px; }
  .members-swiper { overflow: hidden; }
  .members-swiper .chamber-members-grid { display: flex; gap: 0; }
  .members-swiper .chamber-member-card { height: auto; border-radius: 7px; box-shadow: none; }
  .members-swiper .chamber-member-card > a { padding: 7px; }
  .members-swiper .chamber-member-photo-wrap { padding: 3px; border-radius: 50%; }
  .members-swiper .chamber-member-photo-wrap img { border-radius: 50%; }
  .members-swiper .chamber-member-number, .members-swiper .chamber-member-label, .members-swiper .chamber-member-meta { display: none; }
  .members-swiper .chamber-member-body { padding-top: 6px; }
  .members-swiper .chamber-member-body h3 { margin-bottom: 2px; font-size: 10.5px; line-height: 1.5; }
  .members-swiper .chamber-member-position { -webkit-line-clamp: 2; font-size: 9.5px; line-height: 1.5; }
}

/* Scoped refinement: public site footer. */
.site-footer { padding: 36px 0 0; border-top: 1px solid rgba(255,255,255,.1); background: #172f46; color: rgba(255,255,255,.74); }
.site-footer .footer-main { display: grid; grid-template-columns: 1.35fr repeat(2,minmax(0,1fr)); gap: 24px; align-items: start; }
.site-footer .footer-col { min-width: 0; }
.site-footer .footer-brand-col img { width: auto; max-width: 110px; height: 58px; margin: 0 0 8px; object-fit: contain; }
.site-footer .footer-brand-col h3 { margin: 0 0 6px; color: #fff; font-size: 15px; font-weight: 600; line-height: 1.6; }
.site-footer .footer-brand-col :is(p, div) { margin: 0; color: rgba(255,255,255,.7); font-size: 12.5px; font-weight: 400; line-height: 1.8; }
.site-footer .footer-contact-heading { margin: 0 0 8px; color: #fff; font-size: 14px; font-weight: 600; line-height: 1.6; }
.site-footer .footer-contact-panel { display: block; }
.site-footer .footer-accordion-toggle { width: 100%; min-height: 28px; display: flex; align-items: center; justify-content: space-between; padding: 0; border: 0; background: transparent; color: #fff; font-size: 14px; font-weight: 600; text-align: start; pointer-events: none; }
.site-footer .footer-accordion-symbol { display: none; }
.site-footer .footer-accordion-panel[hidden] { display: block; }
.site-footer .footer-col ul { margin: 8px 0 0; padding: 0; }
.site-footer .footer-col li { margin: 0; }
.site-footer .footer-col li a { min-height: 29px; display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,.72); font-size: 12.5px; font-weight: 400; line-height: 1.55; }
.site-footer .footer-col li a:hover { color: #fff; }
.site-footer .footer-col li a svg { width: 14px; height: 14px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.site-footer .footer-contact-item { min-height: 34px; display: flex; align-items: center; gap: 8px; margin: 5px 0 0; color: rgba(255,255,255,.72); font-size: 12.5px; font-weight: 400; line-height: 1.65; text-decoration: none; }
.site-footer a.footer-contact-item:hover { color: #fff; }
.site-footer .footer-contact-item .fc-icon { width: 27px; height: 27px; margin: 0; border-radius: 6px; background: rgba(255,255,255,.08); color: #fff; }
.site-footer .footer-contact-item .fc-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.site-footer .footer-divider { margin: 24px 0 0; background: rgba(255,255,255,.12); }
.site-footer .footer-bottom { min-height: 48px; padding: 7px 0 9px; }
.site-footer .footer-copy { color: rgba(255,255,255,.64); font-size: 11.5px; }
.site-footer .footer-social { gap: 6px; }
.site-footer .footer-social a { width: 30px; height: 30px; border: 1px solid rgba(255,255,255,.18); border-radius: 6px; background: rgba(255,255,255,.06); color: rgba(255,255,255,.78); }
.site-footer .footer-social a:hover { border-color: rgba(255,255,255,.42); background: rgba(255,255,255,.12); color: #fff; }
.site-footer .footer-social svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

@media (min-width:768px) and (max-width:991.98px) {
  .site-footer .footer-main { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
  .site-footer .footer-brand-col { grid-column: 1/-1; }
}
@media (max-width:767.98px) {
  .site-footer { padding-top: 24px; }
  .site-footer .footer-main { display: block; }
  .site-footer .footer-brand-col { max-width: 520px; display: flex; flex-direction: column; align-items: center; margin: 0 auto 12px; text-align: center; }
  .site-footer .footer-brand-col img { width: auto; max-width: 118px; height: 54px; margin-inline: auto; object-fit: contain; }
  .site-footer .footer-brand-col h3 { font-size: 14px; }
  .site-footer .footer-brand-col :is(p, div) { max-width: 44ch; margin-inline: auto; font-size: 11.5px; line-height: 1.7; text-align: center; }
  .site-footer .footer-accordion { border-bottom: 1px solid rgba(255,255,255,.11); }
  .site-footer .footer-accordion-toggle { min-height: 44px; font-size: 13px; pointer-events: auto; cursor: pointer; }
  .site-footer .footer-accordion-toggle:focus-visible { outline: 2px solid rgba(255,255,255,.7); outline-offset: -2px; }
  .site-footer .footer-accordion-symbol { position: relative; width: 16px; height: 16px; display: block; }
  .site-footer .footer-accordion-symbol::before, .site-footer .footer-accordion-symbol::after { content: ''; position: absolute; top: 7px; left: 2px; width: 12px; height: 1.5px; border-radius: 2px; background: currentColor; transition: transform .18s ease; }
  .site-footer .footer-accordion-symbol::after { transform: rotate(90deg); }
  .site-footer .footer-accordion-toggle[aria-expanded='true'] .footer-accordion-symbol::after { transform: rotate(0); }
  .site-footer .footer-accordion-panel[hidden] { display: none; }
  .site-footer .footer-accordion-panel { padding: 2px 0 9px; }
  .site-footer .footer-col ul { margin-top: 0; }
  .site-footer .footer-col li a { min-height: 32px; font-size: 12px; }
  .site-footer .footer-contact-col { padding-top: 12px; text-align: start; }
  .site-footer .footer-contact-heading { margin-bottom: 5px; font-size: 13px; }
  .site-footer .footer-contact-panel { display: block; }
  .site-footer .footer-contact-item { min-height: 40px; margin: 0; font-size: 11.5px; }
  .site-footer .footer-divider { margin-top: 14px; }
  .site-footer .footer-bottom { min-height: 46px; gap: 9px; padding-block: 7px; }
}

@media (max-width: 575.98px) {
  .site-container { width: min(calc(100% - 24px), var(--container-width)); }
  .main-navbar { width: min(calc(100% - 24px), var(--container-width)); }
  .market-ticker-title { display: none; }
  .hero-section { --hero-equal-height: 260px; padding-block: 16px 30px; }
  .side-news { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .side-card { height: auto; aspect-ratio: 16 / 10; }
  .side-card .news-content { inset-inline: 9px; bottom: 8px; }
  .side-card h2 { font-size: 11.5px; line-height: 1.55; font-weight: 600; }
  .news-card-main h1 { font-size: 18px; line-height: 1.6; font-weight: 650; }
  .quick-menu { border-radius: 7px; }
  .quick-menu-link { font-size: 12px; font-weight: 500; }
  .section-heading h2,
  .media-header h2 { font-size: clamp(17px, 5vw, 19px); }
  .howto-card { min-height: 185px; padding: 18px 14px; }
  .home-ad-banners { grid-template-columns: 1fr; gap: 14px; }
  .home-ad-banners .ad-banner,
  .home-ad-banners .ad-banner-placeholder { min-height: 130px; }
  .footer-main { grid-template-columns: 1fr; gap: 22px; }
  .footer-brand-col { grid-column: auto; }
  .footer-orgs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-bottom { gap: 14px; }
}

@media (max-width: 380px) {
  .howto-grid { grid-template-columns: 1fr; }
  .home-services-refined .howto-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quick-menu-link { padding-inline: 8px; font-size: 11px; }
  .footer-orgs { grid-template-columns: 1fr; }
}

/* Header stacking and sticky rows: scoped to the public header and ticker. */
:root {
  --desktop-sticky-nav-height: 49px;
  --desktop-sticky-stack-height: 89px;
}

@media (min-width: 992px) {
  /* Let the sticky navigation use the document as its containing block. */
  .site-header {
    display: contents;
    width: 100%;
    max-width: none;
    background: #fff;
  }

  .site-header .header-top {
    position: relative;
    z-index: auto;
    isolation: isolate;
    background: transparent;
  }

  .site-header .header-top::before,
  .site-header .main-navbar::before {
    content: "";
    position: absolute;
    inset-block: 0;
    left: 50%;
    z-index: -1;
    width: 100vw;
    transform: translateX(-50%);
    background: #fff;
    pointer-events: none;
  }

  .site-header .main-navbar {
    position: sticky;
    top: 0;
    z-index: 1070;
    isolation: isolate;
    background: transparent;
  }

  .site-header .main-navbar::before {
    border-bottom: 1px solid rgba(15, 35, 52, .07);
    box-shadow: 0 3px 10px rgba(15, 35, 52, .035);
  }

  .market-ticker-wrap {
    position: sticky;
    top: var(--desktop-sticky-nav-height);
    z-index: 1060;
  }

  .site-header .header-search-panel {
    position: fixed;
    top: var(--desktop-sticky-nav-height);
    z-index: 1080;
  }

  .site-header .main-navbar .nav-link {
    font-size: 13px;
    font-weight: 400;
  }

  .site-header .main-navbar .nav-link.active { font-weight: 600; }

  .site-header .top-submenu a {
    font-size: 12.5px;
    font-weight: 400;
  }

  main :where(section[id], [data-scroll-target][id]) {
    scroll-margin-top: calc(var(--desktop-sticky-stack-height) + 16px);
  }

  main.home-main > section[id]:not(.hero-section) {
    scroll-margin-top: calc(var(--desktop-sticky-stack-height) + 16px);
  }
}

@media (max-width: 991.98px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 1070;
    background: #fff;
  }

  /* Avoid trapping the fixed drawer below its sibling overlay. */
  .site-header .main-navbar { z-index: auto; }

  .site-header .mobile-nav-overlay {
    z-index: 1080;
    background: rgba(15, 23, 42, .20);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    filter: none;
    backdrop-filter: none;
    transition: opacity .2s ease, visibility .2s ease;
  }

  .site-header .mobile-nav-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .site-header .main-navbar .navbar-collapse.collapse,
  .site-header .main-navbar .navbar-collapse.collapsing {
    z-index: 1090;
    width: min(86vw, 360px);
    max-width: none;
    background-color: #fff;
    background-image: none;
    opacity: 1;
    visibility: hidden;
    filter: none;
    backdrop-filter: none;
    mix-blend-mode: normal;
    transform: translateX(100%);
    transition: transform .22s ease;
  }

  .site-header .main-navbar .navbar-collapse.show,
  .site-header .main-navbar .navbar-collapse.collapsing {
    visibility: visible;
    transform: translateX(0);
  }

  .site-header .main-navbar .navbar-collapse.collapsing.is-closing {
    transform: translateX(100%);
  }

  .site-header .mobile-drawer-header { z-index: 1091; }

  /* The ticker remains in normal flow below the sticky mobile header. */
  .market-ticker-wrap {
    position: static;
    top: auto;
    z-index: auto;
  }
}

/* =========================================================
   Contact Page — scoped redesign
   ========================================================= */
.contact-page {
  --contact-accent: var(--color-primary, #0c74b9);
  --contact-accent-dark: var(--color-primary-700, #075f9c);
  --contact-ink: #102f47;
  --contact-muted: #667684;
  --contact-border: rgba(15, 47, 71, .11);
  --contact-soft: #f5f9fc;
  background: #f6f8fa;
}
.contact-page .contact-page-header { padding-block: 30px 27px; }
.contact-page .contact-page-header h1 { margin-bottom: 4px; }
.contact-page .contact-page-header p { max-width: 670px; margin: 0; color: rgba(255, 255, 255, .68); font-size: 12.5px; line-height: 1.8; }
.contact-page .contact-page-main { padding-block: 30px 58px; }
.contact-page .contact-page-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .72fr); align-items: center; gap: 18px; margin-bottom: 16px; }
.contact-page .contact-page-eyebrow { display: inline-flex; margin-bottom: 3px; color: var(--contact-accent); font-size: 10.5px; font-weight: 750; }
.contact-page .contact-page-intro-copy h2 { margin: 0; color: var(--contact-ink); font-size: 21px; font-weight: 750; line-height: 1.6; }
.contact-page .contact-page-intro-copy p { max-width: 690px; margin: 4px 0 0; color: var(--contact-muted); font-size: 12.2px; line-height: 1.85; }
.contact-page .contact-complaint-notice { min-width: 0; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 12px 13px; border: 1px solid rgba(191, 74, 56, .16); border-radius: 9px; background: #fff8f6; }
.contact-page .contact-complaint-notice-icon { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: rgba(191, 74, 56, .1); color: #a83d2e; }
.contact-page .contact-complaint-notice-icon svg { width: 20px; height: 20px; }
.contact-page .contact-complaint-notice span:nth-child(2) { min-width: 0; }
.contact-page .contact-complaint-notice strong { display: block; color: #52251f; font-size: 11.8px; font-weight: 700; }
.contact-page .contact-complaint-notice small { display: block; margin-top: 1px; color: #8d625c; font-size: 10.3px; line-height: 1.65; }
.contact-page .contact-complaint-notice a { min-height: 34px; display: inline-flex; align-items: center; justify-content: center; padding-inline: 12px; border-radius: 7px; background: #a83d2e; color: #fff; font-size: 10.5px; font-weight: 650; white-space: nowrap; }
.contact-page .contact-complaint-notice a:hover { background: #8f3124; color: #fff; }
.contact-page svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.contact-page .contact-quick-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.contact-page .contact-quick-action { min-width: 0; min-height: 64px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--contact-border); border-radius: 9px; background: #fff; box-shadow: 0 7px 22px rgba(15, 47, 71, .035); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.contact-page .contact-quick-action:hover { border-color: rgba(12, 116, 185, .25); box-shadow: 0 9px 25px rgba(15, 47, 71, .065); transform: translateY(-1px); }
.contact-page .contact-quick-action:focus-visible { outline: 3px solid rgba(12, 116, 185, .18); outline-offset: 2px; }
.contact-page .contact-quick-action-icon { width: 38px; height: 38px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: #edf6fb; color: var(--contact-accent); }
.contact-page .contact-quick-action-icon svg { width: 19px; height: 19px; }
.contact-page .contact-quick-action > span:last-child { min-width: 0; display: grid; gap: 1px; }
.contact-page .contact-quick-action small { color: var(--contact-muted); font-size: 10px; }
.contact-page .contact-quick-action strong { overflow: hidden; color: var(--contact-ink); font-size: 11.5px; font-weight: 700; line-height: 1.55; text-overflow: ellipsis; white-space: nowrap; }
.contact-page .contact-page-layout { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(285px, .8fr); align-items: start; gap: 18px; }
.contact-page .contact-form-card,
.contact-page .contact-info-card,
.contact-page .contact-support-card { border: 1px solid var(--contact-border); border-radius: 10px; background: #fff; box-shadow: 0 12px 32px rgba(15, 47, 71, .045); }
.contact-page .contact-form-card { padding: 20px; }
.contact-page .contact-card-heading { display: flex; align-items: center; gap: 10px; padding-bottom: 15px; margin-bottom: 16px; border-bottom: 1px solid rgba(15, 47, 71, .075); }
.contact-page .contact-card-heading-icon { width: 40px; height: 40px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: #edf6fb; color: var(--contact-accent); }
.contact-page .contact-card-heading-icon svg { width: 21px; height: 21px; }
.contact-page .contact-card-heading h2 { margin: 0; color: var(--contact-ink); font-size: 17px; font-weight: 750; line-height: 1.55; }
.contact-page .contact-card-heading p { margin: 1px 0 0; color: var(--contact-muted); font-size: 10.5px; }
.contact-page .contact-card-heading-compact { margin-bottom: 5px; }
.contact-page .contact-form-status:empty { display: none; }
.contact-page .contact-alert { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 14px; padding: 11px 12px; border: 1px solid; border-radius: 8px; font-size: 11px; line-height: 1.75; }
.contact-page .contact-alert > span { width: 25px; height: 25px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; }
.contact-page .contact-alert svg { width: 15px; height: 15px; stroke-width: 2; }
.contact-page .contact-alert p { margin: 0; }
.contact-page .contact-alert strong { display: block; margin-bottom: 1px; }
.contact-page .contact-alert-success { border-color: rgba(31, 143, 102, .2); background: #f1faf6; color: #176c4e; }
.contact-page .contact-alert-success > span { background: rgba(31, 143, 102, .11); }
.contact-page .contact-alert-danger { border-color: rgba(190, 49, 49, .2); background: #fff5f5; color: #9b2929; }
.contact-page .contact-alert-danger > span { background: rgba(190, 49, 49, .1); }
.contact-page .contact-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 14px; }
.contact-page .contact-field { min-width: 0; display: grid; align-content: start; gap: 5px; }
.contact-page .contact-field-full { grid-column: 1 / -1; }
.contact-page .contact-field label { color: #263f52; font-size: 11.2px; font-weight: 650; }
.contact-page .contact-field label > span { color: #c5473a; }
.contact-page .contact-field label small { color: var(--contact-muted); font-size: 9.8px; font-weight: 450; }
.contact-page .contact-field-label-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.contact-page .contact-message-counter { color: var(--contact-muted); font-size: 9.8px; direction: rtl; }
.contact-page .contact-control { width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid rgba(15, 47, 71, .16); border-radius: 8px; background: #fff; color: #1e3444; font: inherit; font-size: 12px; line-height: 1.65; outline: 0; transition: border-color .17s ease, box-shadow .17s ease, background .17s ease; }
.contact-page .contact-control:hover { border-color: rgba(15, 47, 71, .25); }
.contact-page .contact-control:focus { border-color: var(--contact-accent); box-shadow: 0 0 0 3px rgba(12, 116, 185, .1); }
.contact-page .contact-control.is-invalid,
.contact-page .contact-control[aria-invalid="true"] { border-color: #c83e3e; background: #fffafa; box-shadow: 0 0 0 3px rgba(200, 62, 62, .07); }
.contact-page .contact-textarea { min-height: 150px; resize: vertical; }
.contact-page .contact-field-help { color: #7c8993; font-size: 9.5px; line-height: 1.55; }
.contact-page .contact-field-error { display: block; color: #b72f2f; font-size: 9.8px; font-weight: 550; line-height: 1.55; }
.contact-page .contact-honeypot { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; }
.contact-page .contact-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 15px; margin-top: 15px; border-top: 1px solid rgba(15, 47, 71, .075); }
.contact-page .contact-privacy-note { max-width: 470px; display: flex; align-items: flex-start; gap: 6px; margin: 0; color: var(--contact-muted); font-size: 9.8px; line-height: 1.7; }
.contact-page .contact-privacy-note svg { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 2px; }
.contact-page .contact-submit-button { min-width: 126px; min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding-inline: 16px; border: 0; border-radius: 8px; background: var(--contact-ink); color: #fff; font: inherit; font-size: 11.2px; font-weight: 700; transition: background .18s ease, transform .18s ease, opacity .18s ease; }
.contact-page .contact-submit-button:hover { background: var(--contact-accent-dark); transform: translateY(-1px); }
.contact-page .contact-submit-button:focus-visible { outline: 3px solid rgba(12, 116, 185, .24); outline-offset: 2px; }
.contact-page .contact-submit-button:disabled { cursor: wait; opacity: .7; transform: none; }
.contact-page .contact-submit-button > svg { width: 17px; height: 17px; }
.contact-page .contact-submit-spinner { display: none; width: 15px; height: 15px; border: 2px solid rgba(255, 255, 255, .38); border-top-color: #fff; border-radius: 50%; animation: contact-button-spin .65s linear infinite; }
.contact-page .contact-submit-button.is-loading .contact-submit-spinner { display: inline-block; }
.contact-page .contact-submit-button.is-loading > svg { display: none; }
@keyframes contact-button-spin { to { transform: rotate(360deg); } }
.contact-page .contact-info-column { display: grid; gap: 12px; }
.contact-page .contact-info-card { padding: 17px; }
.contact-page .contact-info-list { display: grid; }
.contact-page .contact-info-item { min-width: 0; display: grid; grid-template-columns: 34px minmax(0, 1fr) 16px; align-items: center; gap: 9px; padding-block: 11px; border-bottom: 1px solid rgba(15, 47, 71, .07); color: inherit; }
.contact-page .contact-info-item:last-child { border-bottom: 0; }
.contact-page a.contact-info-item:hover strong { color: var(--contact-accent); }
.contact-page a.contact-info-item:focus-visible { outline: 3px solid rgba(12, 116, 185, .15); outline-offset: 2px; border-radius: 6px; }
.contact-page .contact-info-icon { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--contact-soft); color: var(--contact-accent); }
.contact-page .contact-info-icon svg { width: 17px; height: 17px; }
.contact-page .contact-info-item > span:nth-child(2) { min-width: 0; display: grid; gap: 1px; }
.contact-page .contact-info-item small { color: var(--contact-muted); font-size: 9.5px; }
.contact-page .contact-info-item strong { overflow-wrap: anywhere; color: #274154; font-size: 10.7px; font-weight: 650; line-height: 1.75; transition: color .17s ease; }
.contact-page .contact-info-arrow { width: 15px; height: 15px; color: #9aa6ae; }
.contact-page .contact-info-item-static { grid-template-columns: 34px minmax(0, 1fr); }
.contact-page .contact-map-button { min-height: 40px; display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 10px; padding-inline: 12px; border: 1px solid rgba(12, 116, 185, .17); border-radius: 8px; background: #edf6fb; color: var(--contact-accent-dark); font-size: 10.7px; font-weight: 650; }
.contact-page .contact-map-button svg { width: 17px; height: 17px; }
.contact-page .contact-map-button:hover { border-color: rgba(12, 116, 185, .3); background: #e4f2fa; color: var(--contact-accent-dark); }
.contact-page .contact-support-card { display: flex; align-items: flex-start; gap: 10px; padding: 14px; background: var(--contact-ink); color: #fff; }
.contact-page .contact-support-icon { width: 36px; height: 36px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: rgba(255, 255, 255, .1); color: #fff; }
.contact-page .contact-support-icon svg { width: 19px; height: 19px; }
.contact-page .contact-support-card h2 { margin: 0 0 2px; color: #fff; font-size: 12.2px; font-weight: 700; }
.contact-page .contact-support-card p { margin: 0; color: rgba(255, 255, 255, .72); font-size: 9.8px; line-height: 1.75; }
.contact-page .invalid-feedback[data-client-error-for] { margin: 0 !important; color: #b72f2f !important; font-size: 9.8px !important; }
.contact-page .alert[data-client-validation-summary] { margin-bottom: 14px; border-radius: 8px; font-size: 10.5px; }
.contact-page .contact-form.is-submitting { pointer-events: none; }

@media (max-width: 991.98px) {
  .contact-page .contact-page-intro { grid-template-columns: 1fr; }
  .contact-page .contact-complaint-notice { max-width: 620px; }
  .contact-page .contact-page-layout { grid-template-columns: 1fr; }
  .contact-page .contact-info-column { grid-template-columns: minmax(0, 1fr) minmax(240px, .55fr); align-items: start; }
}

@media (max-width: 767.98px) {
  .contact-page .contact-page-header { padding-block: 24px 21px; }
  .contact-page .contact-page-header h1 { font-size: 20px; }
  .contact-page .contact-page-header p { font-size: 11px; }
  .contact-page .contact-page-main { padding-block: 22px 38px; }
  .contact-page .contact-page-intro { gap: 12px; margin-bottom: 12px; }
  .contact-page .contact-page-intro-copy h2 { font-size: 17px; }
  .contact-page .contact-page-intro-copy p { font-size: 11px; }
  .contact-page .contact-complaint-notice { grid-template-columns: 34px minmax(0, 1fr) auto; padding: 10px; }
  .contact-page .contact-complaint-notice-icon { width: 34px; height: 34px; }
  .contact-page .contact-quick-actions { grid-template-columns: repeat(3, minmax(145px, 1fr)); overflow-x: auto; padding-bottom: 3px; margin-inline: -2px; scrollbar-width: none; scroll-snap-type: x proximity; }
  .contact-page .contact-quick-actions::-webkit-scrollbar { display: none; }
  .contact-page .contact-quick-action { min-height: 58px; scroll-snap-align: start; }
  .contact-page .contact-form-card { padding: 15px 13px; }
  .contact-page .contact-card-heading { padding-bottom: 12px; margin-bottom: 13px; }
  .contact-page .contact-card-heading-icon { width: 36px; height: 36px; }
  .contact-page .contact-card-heading h2 { font-size: 15px; }
  .contact-page .contact-form-grid { grid-template-columns: 1fr; gap: 12px; }
  .contact-page .contact-field-full { grid-column: auto; }
  .contact-page .contact-control { min-height: 43px; }
  .contact-page .contact-textarea { min-height: 132px; }
  .contact-page .contact-form-footer { align-items: stretch; flex-direction: column; }
  .contact-page .contact-submit-button { width: 100%; }
  .contact-page .contact-privacy-note { max-width: none; }
  .contact-page .contact-info-column { grid-template-columns: 1fr; }
  .contact-page .contact-info-card { padding: 14px; }
}

@media (max-width: 479.98px) {
  .contact-page .contact-complaint-notice { grid-template-columns: 32px minmax(0, 1fr); }
  .contact-page .contact-complaint-notice a { grid-column: 1 / -1; width: 100%; }
  .contact-page .contact-quick-actions { grid-template-columns: repeat(3, minmax(132px, 1fr)); }
  .contact-page .contact-quick-action { padding: 9px; }
  .contact-page .contact-quick-action-icon { width: 34px; height: 34px; }
  .contact-page .contact-quick-action strong { font-size: 10.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .contact-page .contact-quick-action,
  .contact-page .contact-submit-button { transition: none; }
  .contact-page .contact-submit-spinner { animation-duration: 1.2s; }
}

/* ========================================================================

   Single guild profile — consolidated scoped styles

   ======================================================================== */

.guild-profile-page {
  --gp-navy: #17324b;
  --gp-navy-deep: #0e2436;
  --gp-blue: #1479b8;
  --gp-blue-soft: #eaf6fc;
  --gp-green: #159583;
  --gp-green-soft: #edf9f6;
  --gp-red: #b82f3b;
  --gp-surface: #fff;
  --gp-surface-soft: #f7f9fb;
  overflow: clip;
  --gp-shadow: none;
  --gp-line: #e2e9ee;
  --gp-text: #182630;
  --gp-muted: #5f6c77;
  background: #fff;
  color: var(--gp-text);
  font-size: 14px;
}

.guild-profile-page * {
  box-sizing: border-box;
}

.guild-profile-page *::before {
  box-sizing: border-box;
}

.guild-profile-page *::after {
  box-sizing: border-box;
}

.guild-profile-page :is(a, button) {
  -webkit-tap-highlight-color: transparent;
}

.guild-profile-page :is(a, button):focus-visible {
  outline: 3px solid rgba(20, 121, 184, .25);
  outline-offset: 3px;
}

.guild-profile-page [id] {
  scroll-margin-top: calc(var(--desktop-sticky-stack-height, 90px) + 20px);
}

.guild-profile-hero {
  position: relative;
  isolation: isolate;
  color: #fff;
  overflow: hidden;
  background: #102c40;
}

.guild-profile-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-position: center;
  background-size: cover;
  background-image:
    linear-gradient(100deg, rgba(9, 29, 43, .96), rgba(14, 49, 68, .9)),
    var(--guild-profile-cover, none);
}

.guild-profile-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-size: auto, 54px 54px, 54px 54px;
  background: radial-gradient(circle at 90% 18%, rgba(255, 255, 255, .045) 0 48px, transparent 49px);
}

.guild-profile-hero__inner {
  align-items: center;
  min-height: 280px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  gap: 12px;
  padding-block: 24px 40px;
}

.guild-profile-hero__content {
  min-width: 0;
  flex: 1 1 auto;
}

.guild-profile-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  color: #cbd6de;
  gap: 7px;
  margin-bottom: 0;
  font-size: 11px;
  line-height: 1.75;
}

.guild-profile-breadcrumb a {
  color: inherit;
}

.guild-profile-breadcrumb a:hover {
  color: #fff;
}

.guild-profile-breadcrumb > span:last-child {
  color: #fff;
}

.guild-profile-kicker {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border-radius: 999px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  gap: 7px;
  margin-bottom: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #d3dfe7;
  font-size: 11px;
  font-weight: 600;
}

.guild-profile-kicker i {
  flex: 0 0 auto;
  border-radius: 50%;
  background: #4ac4b4;
  width: 7px;
  height: 7px;
  box-shadow: 0 0 0 4px rgba(74, 196, 180, .1);
}

.guild-profile-hero h1 {
  margin: 0 0 11px;
  color: #fff;
  max-width: 790px;
  margin-bottom: 6px;
  font-size: clamp(27px, 2.4vw, 30px);
  font-weight: 800;
  line-height: 1.45;
}

.guild-profile-hero__content > p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, .76);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.85;
}

.guild-profile-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}

.guild-profile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
  min-height: 38px;
  gap: 7px;
  padding-inline: 14px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 700;
  box-shadow: none;
}

.guild-profile-btn:hover {
  transform: translateY(-1px);
}

.guild-profile-btn:focus-visible,
.guild-profile-quickbar__item:focus-visible,
.guild-profile-manager__actions a:focus-visible,
.guild-profile-contact-card:focus-visible,
.guild-profile-socials a:focus-visible,
.guild-profile-side-card li a:focus-visible,
.guild-profile-side-contact a:focus-visible {
  outline: 3px solid rgba(62, 174, 226, .45);
  outline-offset: 3px;
}

.guild-profile-btn:active {
  transform: translateY(0);
}

.guild-profile-btn svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  width: 17px;
  height: 17px;
}

.guild-profile-btn--light {
  background: #fff;
  color: #132b3e;
  box-shadow: none;
}

.guild-profile-btn--light:hover {
  border-color: #dbe8ef;
  background: #edf5f8;
  color: #132b3e;
}

.guild-profile-btn--light:active {
  background: #e2edf2;
  color: #132b3e;
}

.guild-profile-btn--outline {
  border-color: rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .07);
  color: #fff;
}

.guild-profile-btn--outline:hover {
  border-color: rgba(255, 255, 255, .55);
  background: rgba(255, 255, 255, .16);
  color: #fff;
}

.guild-profile-btn--outline:active {
  background: rgba(255, 255, 255, .22);
  color: #fff;
}

.guild-profile-hero__identity {
  justify-items: center;
  gap: 18px;
  min-width: 88px;
  display: block;
  flex: 0 0 88px;
}

.guild-profile-emblem {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .26);
  overflow: hidden;
  width: 88px;
  height: 88px;
  padding: 8px;
  border-color: rgba(255, 255, 255, .4);
  border-radius: 13px;
  background: #fff;
  box-shadow: none;
}

.guild-profile-emblem img {
  background: #fff;
  object-fit: contain;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  box-shadow: none;
  padding: 3px;
}

.guild-profile-emblem > span {
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--gp-navy);
  font-weight: 900;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  box-shadow: none;
  font-size: 27px;
}

.guild-profile-emblem > span[hidden] {
  display: none;
}

.guild-profile-hero__stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0;
  margin-top: 10px;
}

.guild-profile-hero__stats > div {
  justify-items: center;
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 5px;
  padding: 0 11px;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, .22);
  border-radius: 0;
  background: transparent;
}

.guild-profile-hero__stats strong {
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.guild-profile-hero__stats span {
  color: rgba(255, 255, 255, .72);
  font-size: 10px;
  line-height: 1.6;
}

.guild-profile-quickbar {
  position: relative;
  z-index: 2;
  margin-top: -18px;
}

.guild-profile-quickbar__inner {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--gp-line);
  background: #fff;
  min-height: 64px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  border-radius: 9px;
  box-shadow: 0 5px 16px rgba(20, 46, 66, .05);
}

.guild-profile-quickbar__item {
  min-width: 0;
  display: flex;
  align-items: center;
  border-left: 1px solid var(--gp-line);
  color: var(--gp-text);
  transition: background-color .2s ease, color .2s ease;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
}

.guild-profile-quickbar__item:last-child {
  border-left: 0;
}

.guild-profile-quickbar__item:hover {
  background: #f8fbfd;
  color: var(--gp-navy);
}

.guild-profile-quickbar__item:active {
  background: #eef5f8;
  color: var(--gp-navy);
}

.guild-profile-quickbar__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  background: var(--gp-blue-soft);
  color: var(--gp-blue);
  width: 30px;
  height: 30px;
  border-radius: 7px;
}

.guild-profile-quickbar__icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  width: 16px;
  height: 16px;
}

.guild-profile-quickbar__item > span:last-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.guild-profile-quickbar__item strong {
  overflow: hidden;
  color: #1d2a35;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
}

.guild-profile-quickbar__item small {
  overflow: hidden;
  color: var(--gp-muted);
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guild-profile-layout {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 24px;
  padding-block: 42px 68px;
}

.guild-profile-content {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.guild-profile-section {
  min-width: 0;
  border: 1px solid var(--gp-line);
  background: var(--gp-surface);
  padding: 22px;
  border-radius: 12px;
  box-shadow: none;
}

.guild-profile-section__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 19px;
}

.guild-profile-section__head > div {
  display: grid;
  gap: 3px;
}

.guild-profile-section__head span {
  color: var(--gp-blue);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.7;
}

.guild-profile-section__head h2 {
  margin: 0;
  color: var(--gp-text);
  font-size: 20px;
  font-weight: 750;
  line-height: 1.55;
}

.guild-profile-section__head p {
  margin: 0;
  color: var(--gp-muted);
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.85;
}

.guild-profile-manager {
  display: grid;
  align-items: center;
  border: 1px solid #dcebf3;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 19px;
  padding: 18px;
  border-radius: 11px;
  background: #f8fbfc;
}

.guild-profile-manager__avatar {
  position: relative;
  display: grid;
  place-items: center;
  overflow: visible;
  color: #0b6a9e;
  width: 104px;
  height: 104px;
  border-radius: 14px;
  background: #d9edf7;
}

.guild-profile-manager__avatar img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.guild-profile-manager__avatar > span {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 32px;
}

.guild-profile-manager__avatar > span[hidden] {
  display: none;
}

.guild-profile-manager__avatar small {
  position: absolute;
  right: 50%;
  transform: translateX(50%);
  border-radius: 999px;
  background: var(--gp-navy);
  color: #fff;
  white-space: nowrap;
  bottom: -8px;
  padding: 4px 8px;
  font-size: 9px;
  font-weight: 600;
}

.guild-profile-manager__info {
  min-width: 0;
}

.guild-profile-manager__info h3 {
  margin: 0 0 3px;
  color: #17232e;
  margin-bottom: 4px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.55;
}

.guild-profile-manager__info > strong {
  display: block;
  color: var(--gp-blue);
  margin-bottom: 8px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.75;
}

.guild-profile-manager__info > p {
  margin: 0;
  color: var(--gp-muted);
  max-width: 650px;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.95;
}

.guild-profile-manager__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}

.guild-profile-manager__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--gp-line);
  background: #fff;
  color: #24323e;
  min-height: 36px;
  padding-inline: 12px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 600;
  gap: 7px;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.guild-profile-manager__actions a .ui-icon {
  width: 16px;
  height: 16px;
}

.guild-profile-manager__actions a:first-child {
  border-color: var(--gp-navy);
  background: var(--gp-navy);
  color: #fff;
}

.guild-profile-manager__actions a:hover {
  border-color: #cbdbe5;
  background: #edf5f8;
  color: #17324b;
}

.guild-profile-manager__actions a:first-child:hover {
  border-color: #244861;
  background: #244861;
  color: #fff;
}

.guild-profile-manager__actions a:active {
  background: #e1edf2;
  color: #17324b;
}

.guild-profile-manager__actions a:first-child:active {
  background: #0e2436;
  color: #fff;
}

.guild-profile-services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.guild-profile-service {
  min-width: 0;
  display: grid;
  border: 1px solid var(--gp-line);
  background: #fff;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  border-radius: 10px;
  box-shadow: none;
  gap: 8px;
  padding: 15px;
}

.guild-profile-service:hover {
  border-color: #b9d9eb;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(20, 54, 76, .06);
}

.guild-profile-service__icon {
  display: grid;
  place-items: center;
  background: #f0f7fa;
  color: var(--gp-navy);
  width: 38px;
  height: 38px;
  border-radius: 9px;
}

.guild-profile-service__icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  width: 19px;
  height: 19px;
}

.guild-profile-service strong {
  color: #22303b;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.65;
}

.guild-profile-service small {
  color: var(--gp-muted);
  font-size: 11.5px;
  line-height: 1.8;
}

.guild-profile-members {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guild-profile-member {
  min-width: 0;
  display: flex;
  border: 1px solid var(--gp-line);
  background: #fff;
  border-radius: 10px;
  box-shadow: none;
  align-items: flex-start;
  gap: 12px;
  padding: 15px;
}

.guild-profile-member__avatar {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  background: var(--gp-blue-soft);
  color: var(--gp-blue);
  font-weight: 900;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  font-size: 16px;
}

.guild-profile-member > div {
  min-width: 0;
}

.guild-profile-member h3 {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #24313c;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.7;
  white-space: normal;
  text-overflow: initial;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.guild-profile-member strong {
  margin: 2px 0 0;
  display: -webkit-box;
  margin-top: 3px;
  overflow: hidden;
  color: var(--gp-muted);
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.75;
  white-space: normal;
  text-overflow: initial;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.guild-profile-member p {
  margin: 2px 0 0;
  display: -webkit-box;
  margin-top: 3px;
  overflow: hidden;
  color: var(--gp-muted);
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.75;
  white-space: normal;
  text-overflow: initial;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.guild-profile-commissions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.guild-profile-commission {
  min-width: 0;
  display: grid;
  border: 1px solid var(--gp-line);
  background: #fff;
  border-radius: 10px;
  box-shadow: none;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 13px;
  padding: 16px;
}

.guild-profile-commission__number {
  display: grid;
  place-items: center;
  background: var(--gp-green-soft);
  color: var(--gp-green);
  font-weight: 900;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 12px;
}

.guild-profile-commission__number .ui-icon {
  width: 20px;
  height: 20px;
}

.guild-profile-commission h3 {
  margin: 0 0 4px;
  color: #24313c;
  margin-bottom: 5px;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.7;
}

.guild-profile-commission p {
  margin: 0;
  color: var(--gp-muted);
  font-size: 11.5px;
  line-height: 1.85;
}

.guild-profile-commission ul {
  display: grid;
  margin: 10px 0 0;
  padding: 0 15px 0 0;
  gap: 5px;
  margin-top: 10px;
  color: #4f5d68;
  font-size: 11.5px;
  line-height: 1.85;
}

.guild-profile-documents {
  display: grid;
  gap: 10px;
}

.guild-profile-list {
  display: grid;
  gap: 10px;
}

.guild-profile-education {
  display: grid;
  gap: 10px;
}

.guild-profile-document {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  border: 1px solid var(--gp-line);
  background: #fff;
  border-radius: 10px;
  box-shadow: none;
  gap: 13px;
  padding: 15px;
}

.guild-profile-document > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--gp-blue-soft);
  color: var(--gp-blue);
}

.guild-profile-list > a > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--gp-blue-soft);
  color: var(--gp-blue);
}

.guild-profile-education > a > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--gp-blue-soft);
  color: var(--gp-blue);
}

.guild-profile-document svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.guild-profile-list svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.guild-profile-education svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.guild-profile-document h3 {
  margin: 0 0 3px;
  color: #25323d;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.7;
}

.guild-profile-list h3 {
  margin: 0 0 3px;
  color: #25323d;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.7;
}

.guild-profile-education h3 {
  margin: 0 0 3px;
  color: #25323d;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.7;
}

.guild-profile-document p {
  margin: 0;
  color: var(--gp-muted);
  font-size: 11.5px;
  line-height: 1.85;
}

.guild-profile-list p {
  margin: 0;
  color: var(--gp-muted);
  font-size: 11.5px;
  line-height: 1.85;
}

.guild-profile-education p {
  margin: 0;
  color: var(--gp-muted);
  font-size: 11.5px;
  line-height: 1.85;
}

.guild-profile-document > a {
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border: 1px solid #cde0eb;
  border-radius: 8px;
  color: var(--gp-blue);
  min-height: 36px;
  padding-inline: 11px;
  font-size: 11.5px;
  font-weight: 600;
}

.guild-profile-posts {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guild-profile-post {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--gp-line);
  background: #fff;
  transition: transform .2s ease, box-shadow .2s ease;
  border-radius: 10px;
  box-shadow: none;
}

.guild-profile-post:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(20, 54, 76, .06);
}

.guild-profile-post > a {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.guild-profile-post__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eef3f6;
}

.guild-profile-post__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}

.guild-profile-post:hover .guild-profile-post__media img {
  transform: scale(1.035);
}

.guild-profile-post__body {
  display: grid;
  gap: 6px;
  padding: 15px;
}

.guild-profile-post__body > span {
  color: var(--gp-blue);
  font-size: 10.5px;
  font-weight: 600;
}

.guild-profile-post__body h3 {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #202d38;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.75;
}

.guild-profile-post__body p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--gp-muted);
  font-size: 12px;
  line-height: 1.85;
}

.guild-profile-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--gp-line);
  border-radius: 12px;
}

.guild-profile-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

.guild-profile-table th {
  padding: 13px 14px;
  border-bottom: 1px solid var(--gp-line);
  text-align: right;
  font-size: 10px;
  background: #f5f8fa;
  color: #34424e;
  font-weight: 900;
}

.guild-profile-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--gp-line);
  text-align: right;
  font-size: 10px;
  color: #586570;
}

.guild-profile-table tr:last-child td {
  border-bottom: 0;
}

.guild-profile-price-image {
  display: block;
  overflow: hidden;
  border: 1px solid var(--gp-line);
  border-radius: 12px;
  background: #f3f7f9;
}

.guild-profile-price-image img {
  width: 100%;
  max-height: 650px;
  object-fit: contain;
}

.guild-profile-complaint {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  overflow: hidden;
  color: #fff;
  gap: 22px;
  padding: 22px;
  border-radius: 12px;
  background: #117d82;
}

.guild-profile-complaint::after {
  content: "";
  position: absolute;
  top: -78px;
  left: -48px;
  width: 210px;
  height: 210px;
  border: 34px solid rgba(255, 255, 255, .07);
  border-radius: 50%;
  display: none;
}

.guild-profile-complaint > div {
  position: relative;
  z-index: 1;
}

.guild-profile-complaint > div:first-child > span {
  color: #bce9e3;
  font-size: 10.5px;
  font-weight: 600;
}

.guild-profile-complaint h2 {
  margin: 2px 0 7px;
  color: #fff;
  margin-block: 3px 5px;
  font-size: 19px;
  font-weight: 750;
}

.guild-profile-complaint p {
  max-width: 620px;
  margin: 0;
  color: #daf3ef;
  font-size: 12px;
  line-height: 1.85;
}

.guild-profile-complaint > div:last-child {
  display: flex;
  gap: 8px;
}

.guild-profile-list > a {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  border: 1px solid var(--gp-line);
  background: #fff;
  transition: border-color .2s ease, transform .2s ease;
  border-radius: 10px;
  box-shadow: none;
  gap: 13px;
  padding: 15px;
}

.guild-profile-education > a {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  border: 1px solid var(--gp-line);
  background: #fff;
  transition: border-color .2s ease, transform .2s ease;
  border-radius: 10px;
  box-shadow: none;
  gap: 13px;
  padding: 15px;
}

.guild-profile-list > a:hover {
  transform: translateY(-1px);
  border-color: #bad8e9;
}

.guild-profile-education > a:hover {
  transform: translateY(-1px);
  border-color: #bad8e9;
}

.guild-profile-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.guild-profile-gallery > a {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 11px;
  background: #edf3f6;
}

.guild-profile-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}

.guild-profile-gallery > a:hover img {
  transform: scale(1.04);
}

.guild-profile-gallery > a::after {
  content: "";
  position: absolute;
  inset: 42% 0 0;
  background: linear-gradient(transparent, rgba(7, 22, 33, .78));
}

.guild-profile-gallery > a.is-video::before {
  content: "▶";
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  color: var(--gp-navy);
  font-size: 12px;
}

.guild-profile-gallery > a > span {
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 10px;
  left: 12px;
  overflow: hidden;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guild-profile-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.guild-profile-contact-card {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  border: 1px solid var(--gp-line);
  background: #fff;
  border-radius: 10px;
  box-shadow: none;
  gap: 12px;
  padding: 15px;
  color: var(--gp-text);
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

a.guild-profile-contact-card:hover {
  border-color: #c8dce8;
  background: #f4f9fb;
  color: var(--gp-navy);
}

a.guild-profile-contact-card:active {
  background: #eaf3f7;
  color: var(--gp-navy);
}

.guild-profile-contact-card > span {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--gp-blue-soft);
  color: var(--gp-blue);
  width: 40px;
  height: 40px;
}

.guild-profile-contact-card svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.guild-profile-contact-card > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.guild-profile-contact-card strong {
  color: #24313c;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.7;
}

.guild-profile-contact-card p {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--gp-muted);
  font-size: 11.5px;
  line-height: 1.85;
}

.guild-profile-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.guild-profile-socials a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid var(--gp-line);
  border-radius: 8px;
  color: #31404c;
  min-height: 36px;
  padding-inline: 12px;
  font-size: 11.5px;
  font-weight: 600;
  background: #fff;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.guild-profile-socials a:hover {
  border-color: var(--social-accent, var(--gp-blue));
  background: #f3f8fa;
  color: var(--social-accent, var(--gp-blue));
}

.guild-profile-socials a:active {
  background: #e8f2f6;
  color: var(--social-accent, var(--gp-blue));
}

.guild-profile-social--instagram { --social-accent: #a33a87; }
.guild-profile-social--telegram { --social-accent: #168ac1; }
.guild-profile-social--whatsapp { --social-accent: #168f4d; }
.guild-profile-social--eitaa { --social-accent: #d26d24; }
.guild-profile-social--bale { --social-accent: #168a78; }
.guild-profile-social--rubika { --social-accent: #6256b5; }
.guild-profile-social--website { --social-accent: #1479b8; }

.guild-profile-socials svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.guild-profile-page .ui-icon__fill {
  fill: currentColor;
  stroke: none;
}

.guild-profile-empty {
  display: flex;
  align-items: center;
  border: 1px dashed #d5e0e7;
  color: var(--gp-muted);
  gap: 10px;
  padding: 14px;
  border-radius: 9px;
  background: #fafbfc;
}

.guild-profile-empty svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  fill: none;
  stroke: #8ca0ad;
  stroke-width: 1.8;
}

.guild-profile-empty p {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.8;
}

.guild-profile-sidebar {
  position: sticky;
  display: grid;
  top: calc(var(--desktop-sticky-stack-height, 90px) + 16px);
  gap: 12px;
}

.guild-profile-side-card {
  border: 1px solid var(--gp-line);
  background: #fff;
  padding: 15px;
  border-radius: 10px;
  box-shadow: none;
}

.guild-profile-side-card h2 {
  margin: 0 0 12px;
  color: #22303b;
  margin-bottom: 11px;
  font-size: 13.5px;
  font-weight: 750;
  line-height: 1.65;
}

.guild-profile-side-card ul {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guild-profile-side-card li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #44515d;
  transition: background-color .2s ease, color .2s ease;
  padding: 8px 9px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.7;
}

.guild-profile-side-card li a:hover {
  background: #f0f7fb;
  color: var(--gp-blue);
}

.guild-profile-side-card li a.is-active {
  background: #f0f7fb;
  color: var(--gp-blue);
}

.guild-profile-side-card li a:active {
  background: #e5f1f7;
  color: var(--gp-navy);
}

.guild-profile-side-card li svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  width: 14px;
  height: 14px;
}

.guild-profile-status {
  display: flex;
  align-items: center;
  border: 1px solid #ccecdf;
  background: #f0fbf7;
  gap: 9px;
  padding: 10px;
  border-radius: 8px;
}

.guild-profile-status > i {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #2da56a;
  box-shadow: 0 0 0 5px rgba(45, 165, 106, .1);
}

.guild-profile-status > span {
  display: grid;
  gap: 2px;
}

.guild-profile-status strong {
  color: #234f39;
  font-size: 11.5px;
  font-weight: 700;
}

.guild-profile-status small {
  color: #4d7963;
  font-size: 10.5px;
  line-height: 1.7;
}

.guild-profile-side-contact {
  display: grid;
  gap: 9px;
}

.guild-profile-side-contact a {
  display: flex;
  align-items: flex-start;
  color: #33414c;
  gap: 9px;
  padding: 7px;
  border-radius: 7px;
  transition: background-color .18s ease, color .18s ease;
}

.guild-profile-side-contact a:hover {
  background: #f0f7fb;
  color: var(--gp-blue);
}

.guild-profile-side-contact a:active {
  background: #e5f1f7;
  color: var(--gp-navy);
}

.guild-profile-side-contact svg {
  flex: 0 0 auto;
  margin-top: 2px;
  fill: none;
  stroke: var(--gp-blue);
  stroke-width: 1.8;
  width: 17px;
  height: 17px;
}

.guild-profile-side-contact span {
  min-width: 0;
  display: grid;
}

.guild-profile-side-contact strong {
  font-size: 11.5px;
  font-weight: 700;
}

.guild-profile-side-contact small {
  overflow: hidden;
  color: var(--gp-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10.5px;
  line-height: 1.65;
}

.guild-profile-hero__profile {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 20px;
}

.guild-profile-emblem--fallback {
  width: 88px;
  height: 88px;
  border-radius: 13px;
  border-color: rgba(255, 255, 255, .4);
  background: #fff;
}

.guild-profile-emblem--fallback > span {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  font-size: 27px;
}

.guild-profile-hero__stats > div:first-child {
  padding-right: 0;
}

.guild-profile-hero__stats > div:last-child {
  padding-left: 0;
  border-left: 0;
}

#guild-news .guild-profile-news-list {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

#guild-news .guild-profile-post {
  width: 100%;
  max-width: none;
  min-width: 0;
  overflow: hidden;
  padding-block: 13px;
  border: 0;
  border-bottom: 1px solid #edf0f2;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: background-color .18s ease;
}

#guild-news .guild-profile-post:last-child {
  border-bottom: 0;
}

#guild-news .guild-profile-post:hover {
  transform: none;
  background: #f8fbfd;
  box-shadow: none;
}

#guild-news .guild-profile-post > a {
  width: 100%;
  min-width: 0;
  height: auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  direction: rtl;
  color: inherit;
  text-decoration: none;
}

#guild-news .guild-profile-post__media {
  width: 140px;
  min-width: 140px;
  max-width: 140px;
  flex: 0 0 140px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 5px;
  background: #eef2f4;
}

#guild-news .guild-profile-post__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: none;
}

#guild-news .guild-profile-post:hover .guild-profile-post__media img {
  transform: none;
}

#guild-news .guild-profile-post__body {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  padding: 0;
}

#guild-news .guild-profile-post__body > span {
  margin-bottom: 3px;
  color: var(--gp-muted);
  font-size: 10.5px;
  font-weight: 400;
}

#guild-news .guild-profile-post__body h3 {
  display: -webkit-box;
  margin: 0 0 3px;
  overflow: hidden;
  color: #202d38;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
  transition: color .18s ease;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

#guild-news .guild-profile-post:hover .guild-profile-post__body h3 {
  color: var(--gp-blue);
}

#guild-news .guild-profile-post__body p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #68747e;
  font-size: 12px;
  line-height: 1.8;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

#guild-news .guild-profile-post:only-child {
  grid-column: auto;
  width: 100%;
  max-width: none;
  justify-self: stretch;
}

#guild-news .guild-profile-post:only-child > a {
  display: flex;
  grid-template-columns: none;
  align-items: center;
}

#guild-news .guild-profile-post:only-child .guild-profile-post__media {
  min-height: 0;
  aspect-ratio: 16 / 9;
}

.guild-profile-post:only-child {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 650px;
  justify-self: start;
}

.guild-profile-post:only-child > a {
  display: grid;
  grid-template-columns: minmax(210px, 42%) minmax(0, 1fr);
  align-items: stretch;
}

.guild-profile-post:only-child .guild-profile-post__media {
  min-height: 220px;
  aspect-ratio: auto;
}

@media (max-width: 1099.98px) {

  .guild-profile-hero__inner {
    gap: 30px;
  }

  .guild-profile-layout {
    grid-template-columns: minmax(0, 1fr) 230px;
  }

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

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

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

}

@media (max-width: 899.98px) {

  .guild-profile-hero__inner {
    grid-template-columns: minmax(0, 1fr) 145px;
    min-height: 270px;
  }

  .guild-profile-emblem {
    width: 136px;
    height: 136px;
  }

  .guild-profile-emblem img {
    width: 86px;
    height: 86px;
  }

  .guild-profile-emblem > span {
    width: 86px;
    height: 86px;
  }

  .guild-profile-layout {
    grid-template-columns: 1fr;
  }

  .guild-profile-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guild-profile-sidebar > nav {
    display: none;
  }

  .guild-profile-hero__profile {
    gap: 16px;
  }

}

@media (max-width: 639.98px) {

  .guild-profile-page [id] {
    scroll-margin-top: 78px;
  }

  .guild-profile-hero__inner {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 10px;
    padding-block: 20px 38px;
  }

  .guild-profile-breadcrumb {
    margin-bottom: 0;
    font-size: 10.5px;
  }

  .guild-profile-kicker {
    margin-bottom: 8px;
    font-size: 10.5px;
  }

  .guild-profile-hero h1 {
    max-width: 440px;
    font-size: 23px;
    line-height: 1.55;
  }

  .guild-profile-hero__content > p {
    max-width: 440px;
    font-size: 12.5px;
    line-height: 1.85;
  }

  .guild-profile-hero__actions {
    width: min(100%, 380px);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 13px;
  }

  .guild-profile-btn {
    min-height: 38px;
    padding-inline: 11px;
    font-size: 11.5px;
  }

  .guild-profile-hero__identity {
    left: 12px;
    bottom: 12px;
    position: static;
    min-width: 0;
    display: block;
    flex-basis: auto;
  }

  .guild-profile-emblem {
    width: 72px;
    height: 72px;
    padding: 7px;
    border-radius: 11px;
    box-shadow: none;
  }

  .guild-profile-emblem img {
    font-size: 20px;
    box-shadow: none;
    width: 100%;
    height: 100%;
    border-radius: 7px;
  }

  .guild-profile-emblem > span {
    font-size: 20px;
    box-shadow: none;
    width: 100%;
    height: 100%;
    border-radius: 7px;
  }

  .guild-profile-hero__stats {
    display: flex;
    justify-content: flex-start;
    margin-top: 9px;
  }

  .guild-profile-quickbar {
    margin-top: -16px;
  }

  .guild-profile-quickbar__item {
    min-width: 118px;
    flex: 0 0 118px;
    justify-content: flex-start;
    gap: 8px;
    padding: 10px;
    border-bottom: 0;
  }

  .guild-profile-quickbar__icon {
    width: 32px;
    height: 32px;
  }

  .guild-profile-quickbar__icon svg {
    width: 16px;
    height: 16px;
  }

  .guild-profile-quickbar__item strong {
    font-size: 11.5px;
  }

  .guild-profile-quickbar__item small {
    font-size: 8px;
  }

  .guild-profile-layout {
    gap: 14px;
    padding-block: 30px 48px;
  }

  .guild-profile-content {
    gap: 14px;
  }

  .guild-profile-section {
    padding: 16px;
    border-radius: 10px;
  }

  .guild-profile-section__head {
    align-items: flex-start;
    margin-bottom: 15px;
  }

  .guild-profile-section__head span {
    font-size: 10.5px;
  }

  .guild-profile-section__head h2 {
    font-size: 17.5px;
  }

  .guild-profile-section__head p {
    font-size: 11.5px;
  }

  .guild-profile-manager {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
    border-radius: 9px;
  }

  .guild-profile-manager__avatar {
    width: 78px;
    height: 78px;
    border-radius: 11px;
  }

  .guild-profile-manager__avatar > span {
    font-size: 25px;
  }

  .guild-profile-manager__info h3 {
    font-size: 15px;
  }

  .guild-profile-manager__info > strong {
    font-size: 11.5px;
  }

  .guild-profile-manager__info > p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 11.5px;
    line-height: 1.8;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .guild-profile-manager__actions {
    display: flex;
    gap: 6px;
    margin-top: 10px;
  }

  .guild-profile-manager__actions a {
    min-height: 34px;
    padding-inline: 9px;
    font-size: 10.5px;
  }

  .guild-profile-services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .guild-profile-members {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .guild-profile-commissions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .guild-profile-posts {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .guild-profile-contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .guild-profile-service {
    padding: 12px;
  }

  .guild-profile-service__icon {
    width: 34px;
    height: 34px;
  }

  .guild-profile-service strong {
    font-size: 12.5px;
  }

  .guild-profile-service small {
    font-size: 11px;
  }

  .guild-profile-member {
    align-items: flex-start;
    gap: 9px;
    padding: 11px;
  }

  .guild-profile-member__avatar {
    width: 40px;
    height: 40px;
    border-radius: 9px;
    font-size: 14px;
  }

  .guild-profile-member h3 {
    font-size: 12px;
  }

  .guild-profile-commission h3 {
    font-size: 12px;
  }

  .guild-profile-post__body h3 {
    font-size: 12px;
  }

  .guild-profile-commission {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 9px;
    padding: 11px;
  }

  .guild-profile-commission__number {
    width: 32px;
    height: 32px;
  }

  .guild-profile-document {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px;
  }

  .guild-profile-document > span {
    width: 38px;
    height: 38px;
  }

  .guild-profile-list > a > span {
    width: 38px;
    height: 38px;
  }

  .guild-profile-education > a > span {
    width: 38px;
    height: 38px;
  }

  .guild-profile-document > a {
    min-height: 34px;
    padding-inline: 9px;
    font-size: 10.5px;
  }

  .guild-profile-post__body {
    padding: 12px;
  }

  .guild-profile-post__body p {
    font-size: 11px;
  }

  .guild-profile-complaint {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 18px;
    border-radius: 10px;
  }

  .guild-profile-complaint h2 {
    font-size: 17px;
  }

  .guild-profile-complaint p {
    font-size: 11.5px;
  }

  .guild-profile-complaint > div:last-child {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .guild-profile-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .guild-profile-contact-card {
    padding: 12px;
  }

  .guild-profile-contact-card > span {
    width: 36px;
    height: 36px;
  }

  .guild-profile-sidebar {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .guild-profile-hero::after {
    display: none;
  }

  .guild-profile-hero__profile {
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
  }

  .guild-profile-btn svg {
    width: 15px;
    height: 15px;
  }

  .guild-profile-emblem--fallback {
    width: 72px;
    height: 72px;
    padding: 7px;
    border-radius: 11px;
    box-shadow: none;
  }

  .guild-profile-emblem--fallback > span {
    width: 100%;
    height: 100%;
    border-radius: 7px;
  }

  .guild-profile-hero__stats > div {
    display: flex;
    padding-inline: 8px;
  }

  .guild-profile-quickbar__inner {
    display: flex;
    overflow-x: auto;
    border-radius: 10px;
    scrollbar-width: none;
  }

  .guild-profile-quickbar__inner::-webkit-scrollbar {
    display: none;
  }

  .guild-profile-manager__avatar small {
    bottom: -6px;
    padding: 3px 6px;
    font-size: 8px;
  }

  .guild-profile-member strong {
    font-size: 10.5px;
  }

  .guild-profile-member p {
    font-size: 10.5px;
  }

  .guild-profile-commission p {
    font-size: 10.5px;
  }

  .guild-profile-commission ul {
    font-size: 10.5px;
  }

  .guild-profile-document h3 {
    font-size: 12.5px;
  }

  .guild-profile-list h3 {
    font-size: 12.5px;
  }

  .guild-profile-education h3 {
    font-size: 12.5px;
  }

  .guild-profile-document p {
    font-size: 11px;
  }

  .guild-profile-list p {
    font-size: 11px;
  }

  .guild-profile-education p {
    font-size: 11px;
  }

  .guild-profile-post:only-child {
    max-width: none;
  }

  .guild-profile-post:only-child > a {
    display: flex;
    flex-direction: column;
  }

  .guild-profile-post:only-child .guild-profile-post__media {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .guild-profile-post__body > span {
    font-size: 10px;
  }

  .guild-profile-contact-card strong {
    font-size: 11.5px;
  }

  .guild-profile-contact-card p {
    font-size: 10.5px;
  }

  .guild-profile-socials a {
    font-size: 10.5px;
  }

  .guild-profile-side-card--status {
    display: none;
  }

  .guild-profile-side-card {
    padding: 13px;
    border-radius: 9px;
  }

  .guild-profile-side-card h2 {
    font-size: 12.5px;
  }

}

@media (max-width: 389.98px) {

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

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

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

  .guild-profile-posts {
    grid-template-columns: 1fr;
  }

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

  .guild-profile-hero__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .guild-profile-complaint > div:last-child {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .guild-profile-document {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .guild-profile-document > a {
    grid-column: 1 / -1;
    justify-self: stretch;
    justify-content: center;
  }

  .guild-profile-quickbar__item {
    min-width: 112px;
    flex-basis: 112px;
  }

}

@media (max-width: 991.98px) {

  #guild-news .guild-profile-post > a {
    gap: 12px;
  }

  #guild-news .guild-profile-post__media {
    width: 125px;
    min-width: 125px;
    max-width: 125px;
    flex-basis: 125px;
  }

  #guild-news .guild-profile-post__body h3 {
    font-size: 13px;
  }

}

@media (max-width: 767.98px) {

  #guild-news .guild-profile-post {
    padding-block: 11px;
  }

  #guild-news .guild-profile-post__media {
    width: 110px;
    min-width: 110px;
    max-width: 110px;
    flex-basis: 110px;
  }

  #guild-news .guild-profile-post__body h3 {
    font-size: 12.75px;
  }

  #guild-news .guild-profile-post__body p {
    font-size: 11.5px;
    -webkit-line-clamp: 1;
  }

}

@media (max-width: 420px) {

  #guild-news .guild-profile-post > a {
    gap: 10px;
  }

  #guild-news .guild-profile-post__media {
    width: 95px;
    min-width: 95px;
    max-width: 95px;
    flex-basis: 95px;
  }

  #guild-news .guild-profile-post__body > span {
    font-size: 9.5px;
  }

  #guild-news .guild-profile-post__body h3 {
    font-size: 12.5px;
    line-height: 1.65;
  }

  #guild-news .guild-profile-post__body p {
    font-size: 10.5px;
  }

}

/* ==========================================================================
   Home final layout fixes — 2026-08-06
   1) Latest-news thumbnails keep one immutable size.
   2) Representatives image is fully contained inside its desktop grid column.
   ========================================================================== */

/* Representatives: prevent intrinsic image width from expanding/overlapping the grid. */
.home-main #representatives .representative-layout {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px !important;
  align-items: stretch !important;
  overflow: hidden;
  box-sizing: border-box;
}

.home-main #representatives .representative-map,
.home-main #representatives .people-panel {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

.home-main #representatives .representative-map {
  position: relative !important;
  aspect-ratio: 16 / 9 !important;
  min-height: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  contain: layout paint;
  isolation: isolate;
}

.home-main #representatives .representative-map .map-img {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: cover !important;
  object-position: center !important;
  transform: none !important;
  box-sizing: border-box;
}

.home-main #representatives .people-panel {
  overflow: hidden;
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .home-main #representatives .representative-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
}

@media (max-width: 767.98px) {
  .home-main #representatives .representative-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    overflow: visible;
  }

  .home-main #representatives .representative-map {
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    order: 1;
  }

  .home-main #representatives .people-panel {
    width: 100% !important;
    order: 2;
  }
}

/* Shared Laravel paginator: Bootstrap 5 markup with one RTL ordering contract. */
.pagination-rtl { direction: rtl; width: 100%; margin-block: 28px 0; }
.pagination-rtl .pagination { display: flex; flex-flow: row wrap; align-items: center; justify-content: center; gap: 6px; direction: rtl; margin: 0; padding: 0; list-style: none; }
.pagination-rtl .page-item { display: block; margin: 0; }
.pagination-rtl .page-link { display: inline-flex; min-width: 38px; min-height: 38px; align-items: center; justify-content: center; gap: 6px; padding: 6px 11px; border: 1px solid rgba(15,35,52,.15); border-radius: 7px; background: #fff; color: var(--color-ink-700,#334155); font: inherit; line-height: 1; text-decoration: none; transition: border-color .16s ease,background-color .16s ease,color .16s ease; }
.pagination-rtl a.page-link:hover,
.pagination-rtl a.page-link:focus-visible { border-color: var(--color-primary,#0c74b9); background: #f2f8fc; color: var(--color-primary,#0c74b9); }
.pagination-rtl a.page-link:focus-visible { outline: 3px solid rgba(12,116,185,.2); outline-offset: 2px; }
.pagination-rtl .page-item.active .page-link { border-color: var(--color-primary,#0c74b9); background: var(--color-primary,#0c74b9); color: #fff; font-weight: 700; }
.pagination-rtl .page-item.disabled .page-link { cursor: not-allowed; opacity: .48; background: #f4f6f7; pointer-events: none; }
.pagination-rtl .pagination-ellipsis { min-width: 24px; padding-inline: 3px; border-color: transparent; background: transparent; }
.news-archive-page nav.pagination-rtl.news-archive-pagination,
.announcements-archive-page nav.pagination-rtl.announcements-pagination,
.guilds-directory-page nav.pagination-rtl.guilds-directory-pagination,
.systems-directory-page nav.pagination-rtl.systems-directory-pagination,
.galleries-directory-page nav.pagination-rtl.galleries-directory-pagination { display: block; width: 100%; margin-top: 30px; }
#latest-news nav.pagination-rtl.latest-news-pagination { display: block; }
#latest-news .pagination-rtl .latest-news-page-button { width: auto; min-width: 38px; padding-inline: 10px; }
@media (max-width: 575.98px) {
  .pagination-rtl .pagination { gap: 4px; }
  .pagination-rtl .page-link { min-width: 36px; min-height: 36px; padding-inline: 9px; font-size: 12px; }
}
