:root {
  --red: #c00508;
  --red-dark: #b70a0b;
  --gold: #d0a027;
  --ink: #171717;
  --muted: #636363;
  --paper: #f4f5f6;
  --white: #fff;
  --shadow: 0 12px 30px rgba(30, 24, 24, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.container { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  width: 100%;
  color: white;
  background: radial-gradient(ellipse at 50% 45%, #c40708 0%, #c00508 56%, #b70a0b 100%);
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.header-inner { min-height: 132px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header-inner.container { width: min(1220px, calc(100% - 40px)); }
.brand { display: flex; align-items: center; flex: 0 1 420px; min-width: 300px; }
.brand-logo { display: block; width: min(420px, 100%); height: 116px; object-fit: contain; object-position: left center; }

.main-nav { display: flex; align-items: center; gap: 13px; font-weight: 700; font-size: 13px; }
.main-nav > a:not(.join-button) { padding-block: 12px; position: relative; }
.main-nav > a:not(.join-button)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 4px; height: 2px; background: var(--gold); transition: right .25s ease;
}
.main-nav > a:hover::after, .main-nav > a.active::after { right: 0; }
.main-nav .active { color: #f2c044; }
.join-button { padding: 13px 18px; color: #8f1717; background: white; border-radius: 7px; box-shadow: 0 4px 13px rgba(0,0,0,.15); text-transform: uppercase; }
.nav-menu-button { padding: 12px 0; border: 0; color: inherit; background: transparent; font: inherit; cursor: pointer; }
.nav-menu-button:hover, .nav-menu-button:focus-visible { color: #f2c044; }
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { display: flex; align-items: center; gap: 5px; }
.nav-dropdown-menu { position: absolute; z-index: 5; top: calc(100% + 5px); right: 0; display: none; min-width: 145px; padding: 7px; border-radius: 7px; color: #333; background: white; box-shadow: 0 12px 30px rgba(0,0,0,.25); }
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a { display: block; padding: 11px 13px; border-radius: 5px; text-transform: uppercase; }
.nav-dropdown-menu a:hover { color: white; background: var(--red); }
.social-dropdown-menu { min-width: 190px; }
.social-dropdown-menu .social-menu-link { display: flex; align-items: center; gap: 10px; text-transform: none; }
.social-menu-icon { display: grid; flex: 0 0 29px; place-items: center; width: 29px; height: 29px; border-radius: 8px; color: white; }
.social-menu-icon svg { display: block; width: 20px; height: 20px; fill: currentColor; stroke: currentColor; stroke-width: 1.8; }
.social-menu-link.instagram .social-menu-icon { background: linear-gradient(145deg, #7b2bd2, #e1306c 55%, #f6a229); }
.social-menu-link.instagram svg { fill: none; }
.social-menu-link.instagram .social-icon-dot { fill: currentColor; stroke: none; }
.social-menu-link.facebook .social-menu-icon { border-radius: 50%; background: #1877f2; }
.social-menu-link:hover .social-menu-icon { color: white; }
.menu-toggle { display: none; border: 0; background: transparent; padding: 8px; }
.menu-toggle span { display: block; width: 27px; height: 2px; margin: 6px; background: white; }

.hero {
  position: relative;
  min-height: 625px;
  color: white;
  background: #1a536f url("assets/hero-sindicato-v2-optimized.jpg") center / cover no-repeat;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,20,31,.76) 0%, rgba(7,25,34,.57) 43%, rgba(5,17,22,.14) 74%), linear-gradient(0deg, rgba(0,0,0,.35), transparent 45%); }
.hero-content { position: relative; z-index: 1; padding-top: 120px; }
.hero-copy { max-width: 690px; text-align: left; }
.eyebrow, .section-kicker { display: block; margin-bottom: 14px; color: #f1be3c; font-size: 13px; font-weight: 800; letter-spacing: 2.3px; text-transform: uppercase; }
.hero h1 {
  max-width: 710px;
  margin: 0;
  font-size: clamp(40px, 5vw, 65px);
  line-height: .99;
  letter-spacing: -2.2px;
  text-transform: uppercase;
  text-shadow: 0 3px 6px rgba(0,0,0,.6);
}
.hero p { margin: 20px 0 24px; font-size: 24px; }
.hero-actions { display: flex; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 23px; border: 2px solid transparent; border-radius: 7px; font-size: 13px; font-weight: 800; text-transform: uppercase; transition: transform .2s, box-shadow .2s, background .2s; }
.button:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.button-light { color: #201c1c; background: white; }
.button-outline { color: white; border-color: white; background: rgba(0,0,0,.15); }
.button-outline:hover { color: #222; background: white; }

.quick-access { position: relative; z-index: 5; min-height: 295px; background: radial-gradient(circle at 88% 65%, #fff, transparent 24%), #f3f4f5; }
.cards-grid { display: grid; grid-template-columns: 1fr 1fr .96fr; gap: 18px; transform: translateY(-38px); }
.info-card { min-height: 178px; padding: 22px 19px 16px; border-radius: 7px; background: white; box-shadow: var(--shadow); }
.card-title { display: flex; align-items: center; min-height: 42px; gap: 12px; border-bottom: 1px solid #e4e4e4; }
.card-title h2 { margin: 0; font-size: 20px; text-transform: uppercase; letter-spacing: -.5px; }
.title-icon { display: grid; flex: 0 0 32px; place-items: center; color: var(--red); }
.title-icon svg { width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.people-icon { margin-left: auto; color: #c79742; letter-spacing: -5px; }
.worker-icon { margin-left: auto; display: grid; place-items: center; width: 32px; height: 32px; color: #6a2a24; background: #e5af42; border-radius: 50% 50% 8px 8px; }
.info-card > a:not(.news-item), .services-list > a { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; min-height: 51px; border-bottom: 1px solid #e6e6e6; font-size: 14px; font-weight: 700; }
.info-card > a:not(.news-item):last-child, .services-list > a:last-child { border-bottom: 0; }
.info-card > a span, .services-list > a span { color: var(--red); font-size: 19px; }
.info-card > a b, .services-list > a b { font-size: 23px; font-weight: 400; }
.services-empty { margin: 18px 0 4px; color: #777; font: 12px Arial, sans-serif; }
.news-card { grid-row: span 2; padding-bottom: 10px; }
.news-item { display: grid; grid-template-columns: 62px 1fr; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid #ececec; }
.news-item:last-child { border-bottom: 0; }
.news-item > span:last-child { color: var(--ink); }
.news-item strong, .news-item small { display: block; }
.news-item strong { margin-bottom: 3px; font-size: 13px; }
.news-item small { font-size: 10px; line-height: 1.2; color: #555; }
.news-thumb { display: grid; place-items: center; width: 62px; height: 45px; border-radius: 3px; color: white !important; font-size: 8px !important; font-weight: 900; letter-spacing: .5px; }
.news-item img.news-thumb { object-fit: cover; }
.news-thumb.red { background: linear-gradient(145deg, #ca2525, #7a1111); }
.news-thumb.team { background: linear-gradient(145deg, #225b7b, #102c3e); }
.news-thumb.gold { background: linear-gradient(145deg, #d9aa30, #805f0c); }
.partner-banner {
  grid-column: 1 / 3;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 88px;
  padding: 15px 28px;
  color: white;
  border-radius: 7px;
  background: linear-gradient(110deg, #b67b00, #d8a725);
  box-shadow: var(--shadow);
  font-size: 20px;
}
.partner-banner strong { display: block; text-transform: uppercase; }
.partner-logo { padding: 9px 15px; color: #ffe335; background: #b20d16; box-shadow: 0 4px 10px rgba(0,0,0,.2); font-size: 27px; font-weight: 950; font-style: italic; transform: skew(-5deg); }
.banner-arrow { margin-left: auto; font-size: 28px; }

.about-section { padding: 88px 0 100px; background: white; }
.section-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.about-section h2, .join-section h2 { margin: 0; font-size: clamp(34px, 4vw, 52px); line-height: 1.04; letter-spacing: -1.5px; text-transform: uppercase; }
.about-section p { margin: 5px 0 22px; color: var(--muted); font-family: Arial, sans-serif; font-size: 18px; line-height: 1.65; }
.text-link { color: var(--red); font-weight: 800; text-transform: uppercase; }
.text-link span { margin-left: 10px; }
.join-section { padding: 65px 0; color: white; background: linear-gradient(110deg, #a50f11, #cf2020); }
.join-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; }

.site-footer { color: white; background: radial-gradient(ellipse at 35% 40%, #c40708 0%, #c00508 58%, #b70a0b 100%); }
.footer-grid { display: grid; grid-template-columns: 1.35fr 1.15fr 1.25fr .7fr; gap: 32px; align-items: center; min-height: 126px; }
.footer-logo { display: block; width: min(280px, 100%); max-height: 104px; object-fit: contain; object-position: left center; }
address, .contact-list, .social-list { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-style: normal; }
.site-footer a:hover { color: #f6c544; }
.copyright { padding: 13px 20px; text-align: center; background: #a6080a; font-size: 11px; opacity: .92; }
.powered-by { position: absolute; left: 8px; bottom: 4px; font: 400 7px/1 Arial, sans-serif; letter-spacing: .15px; opacity: .6; }

.content-modal {
  width: min(620px, calc(100% - 28px));
  max-height: min(760px, calc(100vh - 30px));
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 12px;
  color: var(--ink);
  background: white;
  box-shadow: 0 24px 70px rgba(0,0,0,.38);
}
.content-modal::backdrop { background: rgba(12, 15, 18, .72); backdrop-filter: blur(3px); }
.content-modal.categories-view { width: min(940px, calc(100% - 28px)); }
.modal-shell { position: relative; padding: 42px 44px 38px; }
.modal-close {
  position: absolute; top: 15px; right: 16px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; color: #555; background: #f0f0f0; font-size: 26px; line-height: 1; cursor: pointer;
}
.modal-close:hover { color: white; background: var(--red); }
.modal-kicker { display: block; margin-bottom: 10px; color: var(--red); font-size: 11px; font-weight: 900; letter-spacing: 2px; text-transform: uppercase; }
.content-modal h2 { margin: 0 40px 18px 0; font-size: clamp(28px, 5vw, 39px); line-height: 1; text-transform: uppercase; }
.modal-body { color: #555; font-family: Arial, sans-serif; font-size: 15px; line-height: 1.6; }
.modal-body p { margin: 0 0 16px; }
.modal-body ul { margin: 0 0 20px; padding-left: 20px; }
.modal-body li { margin: 7px 0; }
.president-card { display: flex; align-items: center; gap: 17px; margin: 0 0 24px; padding: 14px 18px; border: 1px solid #ead5d5; border-radius: 12px; background: #fff8f8; box-shadow: 0 7px 20px rgba(126, 10, 13, .08); }
.president-card img { flex: 0 0 auto; width: 82px; height: 82px; border: 3px solid white; border-radius: 50%; object-fit: cover; object-position: center 24%; box-shadow: 0 0 0 2px var(--red); }
.president-card div { display: flex; flex-direction: column; gap: 2px; }
.president-card strong { color: var(--ink); font-size: 18px; line-height: 1.2; }
.president-card span { color: var(--red); font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.modal-news-image { display: block; width: 100%; max-height: 310px; margin: 0 0 20px; object-fit: cover; border-radius: 7px; }
.news-empty { padding: 30px 10px; color: #777; text-align: center; font: 13px Arial, sans-serif; }
.modal-note { padding: 14px 16px; border-left: 4px solid var(--gold); background: #faf6eb; color: #493a17; border-radius: 4px; }
.modal-cta { display: inline-flex; margin-top: 4px; padding: 13px 19px; border: 0; border-radius: 6px; color: white; background: var(--red); font-family: inherit; font-size: 13px; font-weight: 800; text-transform: uppercase; cursor: pointer; }
.join-form { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 22px; }
.legal-assistance-form[hidden] { display: none; }
.join-form label { display: grid; gap: 6px; color: #333; font-size: 12px; font-weight: 700; }
.join-form label.full { grid-column: 1 / -1; }
.join-form input, .join-form select {
  width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid #d6d6d6; border-radius: 6px; color: #222; background: white; font: inherit;
}
.join-form input:focus, .join-form select:focus { outline: 3px solid rgba(192,5,8,.12); border-color: var(--red); }
.join-form .modal-cta { grid-column: 1 / -1; justify-content: center; min-height: 46px; }
.form-feedback { grid-column: 1 / -1; margin: 0 !important; color: #23652b; font-weight: 700; }
.salary-floor-search { display: grid; gap: 10px; margin-top: 18px; }
.salary-floor-search label { color: #333; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.salary-floor-search select { width: 100%; min-height: 48px; padding: 0 13px; border: 1px solid #d2d2d2; border-radius: 7px; color: #222; background: white; font: 14px Arial, sans-serif; }
.salary-floor-search select:focus { outline: 3px solid rgba(192,5,8,.12); border-color: var(--red); }
.salary-floor-result { display: grid; gap: 6px; margin-top: 10px; padding: 20px; border-left: 5px solid var(--gold); border-radius: 7px; background: #faf6eb; }
.salary-floor-result[hidden] { display: none; }
.salary-floor-result > span { color: #6e5a22; font-size: 11px; font-weight: 900; text-transform: uppercase; }
.salary-floor-result > strong { color: var(--red); font-size: clamp(20px, 4vw, 25px); line-height: 1.25; overflow-wrap: anywhere; white-space: pre-wrap; }
.salary-floor-result > small { color: #555; font-size: 12px; }
.salary-floor-result > p { margin: 8px 0 0; color: #493a17; }
.salary-floor-admin-value { color: var(--red) !important; font-size: 20px !important; font-weight: 900; white-space: pre-wrap; }
.contact-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.contact-choice { min-height: 112px; padding: 18px; border: 1px solid #e0e0e0; border-radius: 8px; color: #333; background: #fafafa; text-align: left; cursor: pointer; }
.contact-choice:hover { color: white; border-color: var(--red); background: var(--red); }
.contact-choice strong, .contact-choice small { display: block; }
.contact-choice strong { margin-bottom: 7px; font: 900 20px "Arial Narrow", Arial, sans-serif; text-transform: uppercase; }
.contact-choice small { line-height: 1.35; }
.contact-form textarea { width: 100%; min-height: 130px; padding: 11px 12px; border: 1px solid #d6d6d6; border-radius: 6px; resize: vertical; font: inherit; }
.contact-form textarea:focus { outline: 3px solid rgba(192,5,8,.12); border-color: var(--red); }
.contact-back { width: max-content; padding: 0; border: 0; color: var(--red); background: transparent; font-weight: 800; cursor: pointer; }
.categories-intro { display: flex; justify-content: space-between; gap: 25px; align-items: center; margin-bottom: 20px; }
.categories-intro p { max-width: 580px; margin: 0; }
.city-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.city-tags span { padding: 6px 9px; border-radius: 14px; color: #8e0b0d; background: #f8e5e5; font-size: 10px; font-weight: 800; white-space: nowrap; }
.category-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.category-card { overflow: hidden; border: 1px solid #e2e2e2; border-radius: 8px; background: #fafafa; }
.category-card.category-wide { grid-column: 1 / -1; }
.category-card summary { display: grid; grid-template-columns: 43px 1fr auto; gap: 12px; align-items: center; min-height: 72px; padding: 12px 15px; color: #282828; cursor: pointer; list-style: none; }
.category-card summary::-webkit-details-marker { display: none; }
.category-card summary:hover { background: #f5eded; }
.category-card[open] summary { color: #8f0c0e; background: #fbefef; border-bottom: 1px solid #ead4d4; }
.category-symbol { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 50%; color: white; background: var(--red); font-size: 20px; }
.category-card summary strong, .category-card summary small { display: block; }
.category-card summary strong { font: 900 17px "Arial Narrow", Arial, sans-serif; text-transform: uppercase; }
.category-card summary small { margin-top: 3px; color: #777; font-size: 10px; }
.category-card summary b { color: #8e0b0d; font-size: 10px; text-transform: uppercase; }
.cnae-list { display: grid; padding: 6px 14px 13px; }
.cnae-list a { display: grid; grid-template-columns: 92px 1fr; gap: 10px; align-items: center; padding: 8px 3px; border-bottom: 1px solid #e7e7e7; color: #333; }
.cnae-list a:last-child { border-bottom: 0; }
.cnae-list a:hover span { color: var(--red); }
.cnae-list code { color: var(--red); font: 800 12px Arial, sans-serif; }
.cnae-list span { font-size: 11px; }
.cnae-chip-list { display: flex; flex-wrap: wrap; gap: 7px; padding: 14px; }
.cnae-chip-list a { padding: 7px 9px; border: 1px solid #e0c4c4; border-radius: 5px; color: #8f0c0e; background: white; font: 800 11px Arial, sans-serif; }
.cnae-chip-list a:hover { color: white; border-color: var(--red); background: var(--red); }
.cnae-legacy-note { margin: -3px 14px 14px !important; padding: 10px; border-radius: 5px; color: #6b5219; background: #fff5da; font-size: 10px; }
.categories-source { margin: 18px 0 0 !important; color: #777; font-size: 10px; text-align: right; }
.categories-source a { color: var(--red); font-weight: 700; }
body.modal-open { overflow: hidden; }
.membership-modal { width: min(1180px, calc(100% - 24px)); height: calc(100vh - 24px); max-height: none; padding: 0; overflow: auto; border: 0; border-radius: 12px; color: #222; background: #f4f5f6; box-shadow: 0 24px 80px rgba(0,0,0,.45); }
.membership-modal::backdrop { background: rgba(8,11,14,.78); backdrop-filter: blur(3px); }
.membership-shell { min-height: 100%; }
.membership-header { position: relative; display: flex; align-items: center; justify-content: center; min-height: 150px; padding: 18px 70px; background: radial-gradient(ellipse at 50% 45%, #c40708, #a5080a 70%); }
.membership-header img { display: block; width: min(610px, 80%); height: 115px; object-fit: contain; }
.membership-close { position: absolute; top: 18px; right: 20px; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; color: #777; background: white; font-size: 30px; cursor: pointer; }
.membership-close:hover { color: white; background: #83080a; }
.membership-form { display: grid; gap: 18px; padding: 24px; }
.membership-free-notice { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 18px 24px; border: 3px solid #f0b900; border-radius: 10px; color: #4b3200; background: linear-gradient(135deg, #fff7a8, #ffd83d); box-shadow: 0 0 0 0 rgba(240,185,0,.55); font: 700 16px/1.4 Arial, sans-serif; text-align: center; animation: membership-free-pulse 1.5s ease-in-out infinite; }
.membership-free-notice strong { display: block; color: #a0090c; font-size: 24px; line-height: 1.15; text-transform: uppercase; }
.membership-free-icon { display: grid; flex: 0 0 auto; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: #fff; background: #b20a0d; font-size: 25px; box-shadow: 0 3px 9px rgba(107,7,9,.25); }
@keyframes membership-free-pulse { 0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(240,185,0,.55); } 50% { transform: scale(1.012); box-shadow: 0 0 0 9px rgba(240,185,0,0); } }
.membership-intro, .membership-card, .membership-submit-card { padding: 22px; border: 1px solid #e1e1e1; border-radius: 9px; background: white; box-shadow: 0 3px 12px rgba(0,0,0,.07); }
.membership-intro h2, .membership-card h3 { margin: 0 0 12px; color: #b20a0d; }
.membership-intro h2 { font-size: 24px; }
.membership-intro p, .membership-card > p { margin: 0; color: #666; font: 14px/1.5 Arial, sans-serif; }
.membership-card h3 { padding-bottom: 10px; border-bottom: 1px solid #ededed; font-size: 18px; }
.membership-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 20px; }
.membership-grid .span-2 { grid-column: span 2; }
.membership-grid .span-3 { grid-column: span 3; }
.membership-grid .span-4 { grid-column: 1 / -1; }
.membership-grid label { display: grid; gap: 7px; color: #282828; font: 700 12px Arial, sans-serif; }
.membership-grid input, .membership-grid select { width: 100%; min-width: 0; min-height: 44px; padding: 0 12px; border: 1px solid #d5d9de; border-radius: 5px; color: #222; background: white; font: 13px Arial, sans-serif; }
.membership-grid input:focus, .membership-grid select:focus { outline: 3px solid rgba(192,5,8,.1); border-color: var(--red); }
.membership-signature-section { display: grid; gap: 14px; }
.membership-file-drop { display: grid; gap: 9px; padding: 18px; border: 2px dashed #ccd1d6; border-radius: 7px; color: #333; font: 700 12px Arial, sans-serif; cursor: pointer; }
.membership-file-drop input { max-width: 100%; }
.membership-file-drop span { color: var(--red); font-weight: 800; }
.membership-submit-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px 24px; }
.membership-submit-card > p:first-child { margin: 0; color: #555; font: 13px/1.5 Arial, sans-serif; }
.membership-submit { min-height: 48px; padding: 0 28px; border: 0; border-radius: 6px; color: white; background: var(--red); font: 800 14px Arial, sans-serif; text-transform: uppercase; cursor: pointer; }
.membership-submit:hover { background: #99070a; }
.membership-submit:disabled { opacity: .6; cursor: wait; }
.membership-feedback { grid-column: 1 / -1; margin: 0; padding: 14px; border-radius: 6px; color: #23652b; background: #edf8ee; font: 700 13px Arial, sans-serif; }
.membership-feedback[hidden] { display: none; }

.admin-access {
  position: absolute; right: 12px; width: 22px; height: 22px; padding: 0; border: 0; color: white; background: transparent; opacity: .08; font-size: 8px; cursor: pointer;
}
.admin-access:hover, .admin-access:focus-visible { opacity: .65; }
.copyright { position: relative; }
.admin-login-modal, .admin-panel-modal { padding: 0; border: 0; color: var(--ink); background: white; box-shadow: 0 25px 80px rgba(0,0,0,.45); }
.admin-login-modal::backdrop, .admin-panel-modal::backdrop { background: rgba(8,10,12,.82); backdrop-filter: blur(4px); }
.admin-login-modal { width: min(440px, calc(100% - 28px)); border-radius: 12px; }
.admin-login-form { position: relative; display: grid; gap: 15px; padding: 42px; }
.admin-login-form h2 { margin: 0; font-size: 31px; line-height: 1; text-transform: uppercase; }
.admin-login-form > p:not(.admin-message) { margin: -5px 0 4px; color: #666; font-family: Arial, sans-serif; font-size: 14px; }
.admin-login-form label, .admin-editor label { display: grid; gap: 7px; color: #333; font-family: Arial, sans-serif; font-size: 12px; font-weight: 700; }
.admin-login-form input, .admin-editor input, .admin-editor textarea {
  width: 100%; padding: 11px 12px; border: 1px solid #d2d2d2; border-radius: 6px; color: #222; background: white; font: 14px Arial, sans-serif;
}
.admin-login-form input { min-height: 45px; }
.admin-login-form input:focus, .admin-editor input:focus, .admin-editor textarea:focus { outline: 3px solid rgba(192,5,8,.12); border-color: var(--red); }
.admin-message { min-height: 20px; margin: 0; color: #a41012; font-family: Arial, sans-serif; font-size: 12px; font-weight: 700; }
.admin-message.success { color: #26702e; }
.admin-primary-button, .admin-secondary-button, .admin-header-actions button, .admin-section-heading button, .admin-item-actions button {
  min-height: 42px; padding: 0 17px; border: 0; border-radius: 6px; font: 800 12px "Arial Narrow", Arial, sans-serif; text-transform: uppercase; cursor: pointer;
}
.admin-primary-button { color: white; background: var(--red); }
.admin-secondary-button { color: #333; background: #e8e8e8; }
.admin-primary-button:hover { background: #a6080a; }
.admin-primary-button:disabled { opacity: .55; cursor: wait; }

.admin-panel-modal { width: min(1180px, calc(100% - 24px)); height: min(820px, calc(100vh - 24px)); border-radius: 13px; }
.admin-panel-shell { min-height: 100%; background: #f4f5f6; }
.admin-panel-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 104px; padding: 24px 30px; color: white; background: radial-gradient(ellipse at 45% 45%, #c40708, #b70a0b); }
.admin-panel-header .modal-kicker { margin: 0 0 5px; color: #f2c144; }
.admin-panel-header h2 { margin: 0; font-size: clamp(25px, 4vw, 38px); text-transform: uppercase; }
.admin-header-actions { display: flex; gap: 8px; }
.admin-header-actions button { color: white; background: rgba(255,255,255,.15); }
.admin-header-actions .admin-panel-close { width: 42px; padding: 0; font-size: 25px; }
.admin-tabs { display: flex; gap: 4px; padding: 0 24px; background: #fff; border-bottom: 1px solid #dedede; }
.admin-tabs button { min-height: 52px; padding: 0 24px; border: 0; border-bottom: 3px solid transparent; color: #666; background: transparent; font: 800 13px "Arial Narrow", Arial, sans-serif; text-transform: uppercase; cursor: pointer; }
.admin-tabs button:hover { color: var(--red); }
.admin-tabs button.active { color: var(--red); border-bottom-color: var(--red); }
.admin-tabs .members-tab-button { color: white; background: var(--red); border-bottom-color: #860006; box-shadow: inset 0 0 0 2px rgba(255,255,255,.22); }
.admin-tabs .members-tab-button:hover { color: white; background: #a6080a; }
.admin-tabs .members-tab-button.active { color: white; background: #850006; border-bottom-color: #f2c144; }
.admin-badge { display: inline-grid; place-items: center; min-width: 19px; height: 19px; margin-left: 5px; padding: 0 5px; border-radius: 10px; color: white; background: var(--red); font-size: 10px; }
.admin-tab-view[hidden] { display: none !important; }
.admin-panel-grid { display: grid; grid-template-columns: minmax(330px, .9fr) minmax(360px, 1.1fr); gap: 22px; padding: 24px; }
.admin-editor, .admin-news-manager { padding: 25px; border-radius: 9px; background: white; box-shadow: 0 5px 18px rgba(0,0,0,.08); }
.admin-editor h3, .admin-news-manager h3 { margin: 0 0 20px; font-size: 22px; text-transform: uppercase; }
.admin-editor form { display: grid; gap: 14px; }
.admin-date-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.admin-editor textarea { min-height: 145px; resize: vertical; line-height: 1.5; }
.image-upload span { color: #888; font-size: 10px; font-weight: 400; }
.admin-image-preview { width: 100%; max-height: 170px; object-fit: cover; border-radius: 6px; }
.admin-form-actions { display: flex; justify-content: flex-end; gap: 9px; }
.admin-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.admin-section-heading button { min-height: 34px; color: var(--red); background: #f4e5e5; }
.admin-heading-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.admin-section-heading .admin-new-button { color: white; background: var(--red); }
.admin-section-heading .admin-new-button:hover { background: #a6080a; }
.admin-news-list { display: grid; gap: 12px; max-height: 580px; overflow: auto; padding-right: 4px; }
.admin-news-item { display: grid; grid-template-columns: 38px 86px 1fr; align-items: center; gap: 12px; padding: 13px 13px 13px 8px; border: 1px solid #e1e1e1; border-radius: 7px; background: #fff; transition: opacity .15s, box-shadow .15s, transform .15s; }
.admin-news-item.dragging { z-index: 2; opacity: .72; border-color: var(--red); box-shadow: 0 10px 24px rgba(0,0,0,.16); transform: scale(.99); }
.admin-news-list.saving-order { cursor: progress; }
.news-drag-handle { display: grid; place-items: center; align-content: center; gap: 1px; width: 38px; min-height: 70px; padding: 0; border: 0; border-radius: 6px; color: #777; background: #f0f0f0; cursor: grab; touch-action: none; user-select: none; }
.news-drag-handle:active { cursor: grabbing; }
.news-drag-handle:hover, .news-drag-handle:focus-visible { color: var(--red); background: #f8e5e5; outline: 2px solid rgba(192,5,8,.18); }
.news-drag-handle span { font-size: 24px; line-height: 1; }
.news-drag-handle small { font: 700 7px Arial, sans-serif; text-transform: uppercase; }
.admin-order-hint { margin: -15px 0 18px; color: #777; font: 11px Arial, sans-serif; }
.admin-news-item img, .admin-news-placeholder { width: 86px; height: 72px; object-fit: cover; border-radius: 5px; }
.admin-news-placeholder { display: grid; place-items: center; color: #aaa; background: #ededed; font-size: 10px; }
.admin-news-item h4 { margin: 0 0 5px; font-size: 16px; }
.admin-news-item p { margin: 0 0 9px; color: #777; font-family: Arial, sans-serif; font-size: 11px; line-height: 1.35; }
.admin-item-actions { display: flex; gap: 7px; }
.admin-item-actions button { min-height: 30px; padding: 0 11px; color: #333; background: #ededed; font-size: 10px; }
.admin-item-actions .delete-news { color: #a30c0e; background: #f8e5e5; }
.admin-empty { padding: 30px; color: #777; text-align: center; font-family: Arial, sans-serif; }
.selected-file { min-height: 18px; margin: -6px 0 0; color: #5c5c5c; font: 11px Arial, sans-serif; }
.convention-admin-item { display: block; }
.convention-admin-item .convention-meta { margin-bottom: 7px; color: var(--red); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.convention-admin-item .admin-item-actions a { display: inline-flex; align-items: center; min-height: 30px; padding: 0 11px; border-radius: 6px; color: #333; background: #ededed; font: 800 10px "Arial Narrow", Arial, sans-serif; text-transform: uppercase; }
.conventions-public-list { display: grid; gap: 12px; margin: 18px 0; }
.convention-category-filter { display: grid; gap: 7px; margin: 18px 0 22px; color: #333; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.convention-category-filter select { width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid #d2d2d2; border-radius: 7px; color: #222; background: white; font: 14px Arial, sans-serif; text-transform: none; }
.convention-category-filter select:focus { outline: 3px solid rgba(192,5,8,.12); border-color: var(--red); }
.convention-category-group { margin-top: 22px; }
.convention-category-group[hidden] { display: none; }
.convention-category-group h3 { margin: 0; padding-bottom: 8px; border-bottom: 2px solid var(--gold); color: #333; font-size: 17px; text-transform: uppercase; }
.convention-category-group .conventions-public-list { margin-top: 12px; }
.convention-public-item { display: grid; grid-template-columns: 42px 1fr auto; gap: 13px; align-items: center; padding: 14px; border: 1px solid #e4e4e4; border-radius: 7px; color: #333; background: #fafafa; }
.convention-public-icon { display: grid; place-items: center; width: 42px; height: 48px; border-radius: 4px; color: white; background: var(--red); font: 900 9px Arial, sans-serif; }
.convention-public-item strong, .convention-public-item small { display: block; }
.convention-public-item small { margin-top: 4px; color: #777; font-size: 10px; }
.convention-public-download { color: var(--red); font-weight: 900; font-size: 20px; }
.admin-messages-shell { margin: 24px; padding: 25px; border-radius: 9px; background: white; box-shadow: 0 5px 18px rgba(0,0,0,.08); }
.messages-heading { margin-bottom: 18px; }
.messages-heading h3 { margin: 0; font-size: 24px; text-transform: uppercase; }
.messages-heading .modal-kicker { margin-bottom: 4px; }
.message-tabs { display: flex; gap: 8px; padding-bottom: 16px; border-bottom: 1px solid #e2e2e2; overflow-x: auto; }
.message-tabs button { min-height: 40px; padding: 0 15px; border: 0; border-radius: 6px; color: #555; background: #ededed; font: 800 12px "Arial Narrow", Arial, sans-serif; text-transform: uppercase; white-space: nowrap; cursor: pointer; }
.message-tabs button.active { color: white; background: var(--red); }
.message-tabs span { margin-left: 5px; opacity: .75; }
.admin-messages-list { display: grid; gap: 12px; max-height: 520px; padding-top: 16px; overflow: auto; }
.admin-message-card { position: relative; padding: 18px 20px; border: 1px solid #dedede; border-left: 5px solid #aaa; border-radius: 7px; background: #fff; }
.admin-message-card.new { border-left-color: var(--red); background: #fffafa; }
.message-card-top { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 11px; }
.message-card-top strong { font-size: 17px; }
.message-card-top time { color: #888; font: 10px Arial, sans-serif; }
.message-contact { margin: 0 0 10px; color: #555; font: 12px Arial, sans-serif; }
.message-content { margin: 0 0 14px; color: #333; white-space: pre-wrap; font: 14px/1.5 Arial, sans-serif; }
.message-extra { display: flex; flex-wrap: wrap; gap: 7px 18px; margin-bottom: 12px; color: #666; font: 11px Arial, sans-serif; }
.message-status { display: inline-block; margin-right: 8px; padding: 3px 7px; border-radius: 10px; color: #777; background: #eee; font: 800 9px Arial, sans-serif; text-transform: uppercase; }
.admin-file-link { display: inline-flex; align-items: center; min-height: 30px; padding: 0 11px; border-radius: 6px; color: white; background: #444; font: 800 10px "Arial Narrow", Arial, sans-serif; text-transform: uppercase; }
.admin-file-link:hover { background: var(--red); }
.admin-message-card.new .message-status { color: #a10c0e; background: #f6dede; }
.admin-item-actions .approve-membership { color: white; background: #24703a; }
.admin-item-actions .approve-membership:hover { background: #19562b; }
.admin-item-actions .reject-membership { color: white; background: #a40d10; }
.admin-item-actions .reject-membership:hover { background: #79080a; }
.admin-members-shell { margin: 24px; padding: 25px; border-radius: 9px; background: white; box-shadow: 0 5px 18px rgba(0,0,0,.08); }
.members-heading h3 { margin: 0; font-size: 24px; text-transform: uppercase; }
.member-search-form { display: grid; gap: 7px; margin: 20px 0; padding: 17px; border-radius: 7px; background: #f5f5f5; }
.member-search-form label { color: #333; font: 800 11px Arial, sans-serif; text-transform: uppercase; }
.member-search-form > div { display: flex; gap: 8px; }
.member-search-form input { flex: 1; min-width: 140px; min-height: 42px; padding: 0 12px; border: 1px solid #d2d2d2; border-radius: 6px; font: 13px Arial, sans-serif; }
.member-search-form button { min-height: 42px; padding: 0 16px; border: 0; border-radius: 6px; color: white; background: var(--red); font: 800 11px Arial, sans-serif; text-transform: uppercase; cursor: pointer; }
.member-search-form #members-show-all { color: #333; background: #ddd; }
.admin-members-list { display: grid; gap: 18px; max-height: 590px; overflow: auto; }
.member-profile { display: grid; grid-template-columns: 150px 1fr; gap: 22px; padding: 20px; border: 1px solid #ddd; border-left: 5px solid #24703a; border-radius: 8px; background: #fff; }
.member-photo-area { display: grid; place-items: center; align-self: start; width: 150px; min-height: 190px; overflow: hidden; border: 1px solid #d5d5d5; border-radius: 7px; color: #888; background: #f3f3f3; font: 11px Arial, sans-serif; }
.member-photo-area img { display: block; width: 100%; height: 190px; object-fit: cover; }
.member-profile-body > header { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 13px; border-bottom: 1px solid #e5e5e5; }
.member-profile-body h4 { margin: 0 0 5px; font-size: 22px; text-transform: uppercase; }
.member-profile-body header p { margin: 0; color: #666; font: 11px Arial, sans-serif; }
.member-profile-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: flex-start; gap: 7px; }
.member-profile-actions > span { padding: 6px 10px; border-radius: 12px; font: 900 9px Arial, sans-serif; text-transform: uppercase; }
.member-profile-actions .member-status-active { color: #216837; background: #e0f2e5; }
.member-profile-actions .member-status-inactive { color: #9d0005; background: #ffe1e2; }
.member-profile-actions button { min-height: 29px; padding: 0 10px; border: 0; border-radius: 5px; color: #333; background: #e5e5e5; font: 800 9px Arial, sans-serif; text-transform: uppercase; cursor: pointer; }
.member-profile-actions button:first-of-type { color: white; background: var(--red); }
.member-profile-actions .delete-member { color: white; background: #721014; }
.member-profile-actions .delete-member:hover { background: #4f080b; }
.opposition-letter-alert { margin: 15px 0 0; padding: 13px; border: 2px solid #b00005; border-radius: 6px; color: #b00005; background: #fff0f0; font: 950 16px Arial, sans-serif; text-align: center; letter-spacing: .4px; }
.opposition-letter-alert[hidden] { display: none; }
.member-details-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 18px; padding: 17px 0; }
.member-details-grid > div { display: grid; gap: 3px; min-width: 0; }
.member-details-grid strong { color: #777; font: 800 9px Arial, sans-serif; text-transform: uppercase; }
.member-details-grid span { overflow-wrap: anywhere; color: #292929; font: 12px/1.4 Arial, sans-serif; }
.member-documents { padding-top: 13px; border-top: 1px solid #e5e5e5; }
.member-documents h5 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; }
.member-documents > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #eee; font: 12px Arial, sans-serif; }
.member-documents > div span { display: flex; flex-wrap: wrap; gap: 7px; }
.member-documents a { padding: 6px 9px; border-radius: 5px; color: white; background: #444; font: 800 9px Arial, sans-serif; text-transform: uppercase; }
.member-documents a:hover { background: var(--red); }
.member-documents button { padding: 6px 9px; border: 0; border-radius: 5px; color: white; background: #8d1115; font: 800 9px Arial, sans-serif; text-transform: uppercase; cursor: pointer; }
.member-documents button:hover { background: #650a0d; }
.member-documents button:disabled, .member-profile-actions button:disabled { opacity: .55; cursor: wait; }
.member-search-prompt { padding: 45px 20px; }
.member-search-results { display: grid; gap: 9px; }
.member-search-results button { display: flex; align-items: center; justify-content: space-between; gap: 15px; width: 100%; padding: 15px 17px; border: 1px solid #ddd; border-left: 5px solid var(--red); border-radius: 7px; color: #222; background: white; text-align: left; cursor: pointer; }
.member-search-results button:hover { color: white; background: var(--red); }
.member-search-results strong, .member-search-results span { display: block; }
.member-search-results strong { font-size: 15px; text-transform: uppercase; }
.member-search-results span { color: #777; font: 11px Arial, sans-serif; }
.member-search-results button:hover span { color: white; }
.member-edit-form { display: grid; gap: 13px; margin-top: 17px; padding: 17px; border: 1px solid #ddd; border-radius: 7px; background: #f7f7f7; }
.member-edit-form[hidden] { display: none; }
.member-edit-form h5 { margin: 0; color: var(--red); font-size: 15px; text-transform: uppercase; }
.member-edit-form fieldset { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 0; padding: 13px; border: 1px solid #d6d6d6; border-radius: 6px; }
.member-edit-form legend { padding: 0 6px; font: 800 11px Arial, sans-serif; text-transform: uppercase; }
.member-edit-form label { display: flex; align-items: center; gap: 7px; font: 13px Arial, sans-serif; }
.member-edit-form input { width: 18px; height: 18px; accent-color: var(--red); }
.member-edit-form .opposition-letter-upload { display: grid; align-items: initial; gap: 7px; padding: 13px; border: 1px dashed #c8c8c8; border-radius: 6px; background: white; }
.member-edit-form .opposition-letter-upload[hidden] { display: none; }
.member-edit-form .opposition-letter-upload strong { font: 800 11px Arial, sans-serif; text-transform: uppercase; }
.member-edit-form .opposition-letter-upload input[type="file"] { width: 100%; height: auto; padding: 9px; border: 1px solid #d2d2d2; border-radius: 5px; background: #fafafa; }
.member-edit-form .opposition-letter-upload span { color: #666; font: 11px/1.4 Arial, sans-serif; }
.member-edit-form > div { display: flex; gap: 8px; }
.member-edit-form button { min-height: 36px; padding: 0 13px; border: 0; border-radius: 6px; color: white; background: var(--red); font: 800 10px Arial, sans-serif; text-transform: uppercase; cursor: pointer; }
.member-edit-form button[data-cancel-member-edit] { color: #333; background: #ddd; }
.member-edit-form [role="status"] { margin: 0; color: #a10c0e; font: 700 12px Arial, sans-serif; }
.member-edit-form [role="status"][hidden] { display: none; }
.admin-banner-shell { margin: 24px; padding: 26px; border-radius: 9px; background: white; box-shadow: 0 5px 18px rgba(0,0,0,.08); }
.admin-banner-shell h3 { margin: 0 0 22px; font-size: 24px; text-transform: uppercase; }
.admin-banner-form { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(330px, 1.2fr); gap: 28px; }
.banner-editor-fields { display: grid; gap: 17px; align-content: start; }
.banner-editor-fields > label { display: grid; gap: 7px; color: #333; font: 700 12px Arial, sans-serif; }
.banner-editor-fields input[type="file"], .banner-editor-fields input[type="url"] { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #d2d2d2; border-radius: 6px; font: 13px Arial, sans-serif; }
.banner-editor-fields .admin-checkbox { display: flex; align-items: center; gap: 9px; }
.banner-editor-fields .admin-checkbox input { width: 18px; height: 18px; accent-color: var(--red); }
.banner-admin-preview-wrap > span { display: block; margin-bottom: 8px; color: #555; font: 800 11px Arial, sans-serif; text-transform: uppercase; }
.banner-admin-preview { display: grid; place-items: center; min-height: 280px; overflow: hidden; border: 2px dashed #d6d6d6; border-radius: 9px; background: #f5f5f5; }
.banner-admin-preview p { color: #888; font: 13px Arial, sans-serif; }
.banner-admin-preview img { display: block; width: 100%; max-height: 420px; object-fit: contain; }

.mobile-banner-overlay { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 12px; background: rgba(5,8,11,.7); backdrop-filter: blur(3px); animation: banner-fade-in .25s ease-out; }
.mobile-banner-overlay[hidden] { display: none !important; }
.mobile-banner { position: relative; width: fit-content; max-width: 96vw; max-height: 92vh; animation: banner-rise .3s ease-out; }
.mobile-banner a { display: block; width: fit-content; overflow: hidden; border-radius: 12px; background: transparent; box-shadow: 0 24px 80px rgba(0,0,0,.45); }
.mobile-banner a:not([href]) { cursor: default; }
.mobile-banner img { display: block; width: auto; max-width: 96vw; height: auto; max-height: 92vh; object-fit: contain; }
.mobile-banner-close { position: absolute; z-index: 2; top: -15px; right: -15px; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 3px solid white; border-radius: 50%; color: white; background: #c00508; box-shadow: 0 5px 18px rgba(0,0,0,.35); font-size: 28px; line-height: 1; cursor: pointer; }
.mobile-banner-close:hover { background: #920406; transform: scale(1.06); }
@keyframes banner-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes banner-rise { from { opacity: 0; transform: translateY(22px) scale(.97); } to { opacity: 1; transform: none; } }

@media (max-width: 1030px) {
  .main-nav { gap: 14px; font-size: 12px; }
  .brand { flex-basis: 360px; }
  .brand-logo { height: 96px; }
  .hero h1 { max-width: 610px; font-size: 52px; }
}

@media (max-width: 1180px) {
  .header-inner { min-height: 108px; }
  .menu-toggle { display: block; position: relative; z-index: 2; }
  .main-nav {
    position: absolute; top: 0; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 4px; padding: 116px 25px 25px; background: #a81012; box-shadow: 0 12px 30px rgba(0,0,0,.25);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px !important; font-size: 15px; }
  .main-nav .nav-menu-button { width: 100%; padding: 10px; text-align: left; font-size: 15px; }
  .main-nav .join-button { margin-top: 8px; text-align: center; }
  .nav-dropdown-menu { position: static; margin: 2px 10px 6px; color: white; background: rgba(0,0,0,.15); box-shadow: none; }
  .nav-dropdown-menu a:hover { background: rgba(255,255,255,.12); }
}

@media (max-width: 820px) {
  .header-inner { min-height: 86px; }
  .brand { flex-basis: 300px; }
  .menu-toggle { display: block; position: relative; z-index: 2; }
  .main-nav {
    position: absolute; top: 0; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 4px; padding: 96px 25px 25px; background: #a81012; box-shadow: 0 12px 30px rgba(0,0,0,.25);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px !important; font-size: 15px; }
  .main-nav .nav-menu-button { width: 100%; padding: 10px; text-align: left; font-size: 15px; }
  .nav-dropdown-menu { position: static; margin: 2px 10px 6px; color: white; background: rgba(0,0,0,.15); box-shadow: none; }
  .nav-dropdown-menu a:hover { background: rgba(255,255,255,.12); }
  .main-nav .join-button { margin-top: 8px; text-align: center; }
  .hero { min-height: 720px; background-position: 63% center; align-items: flex-end; }
  .hero-shade { background: linear-gradient(0deg, rgba(3,15,22,.94) 0%, rgba(5,20,29,.7) 52%, rgba(0,0,0,.15) 100%); }
  .hero-content { padding: 145px 0 145px; }
  .hero-copy { max-width: 580px; }
  .hero h1 { font-size: clamp(37px, 9vw, 53px); }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .news-card { grid-column: 1 / -1; grid-row: auto; }
  .partner-banner { grid-column: 1 / -1; }
  .section-grid { gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; padding: 30px 0; }
  .admin-panel-modal { width: calc(100% - 12px); height: calc(100vh - 12px); }
  .admin-panel-grid { grid-template-columns: 1fr; }
  .admin-news-list { max-height: none; }
  .membership-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .membership-grid .span-3, .membership-grid .span-4 { grid-column: 1 / -1; }
  .member-details-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .container { width: min(100% - 28px, 1120px); }
  .brand { flex-basis: 245px; min-width: 0; }
  .brand-logo { height: 68px; }
  .hero { min-height: 660px; background-position: 69% center; }
  .hero-content { padding-bottom: 115px; }
  .eyebrow { font-size: 10px; }
  .hero h1 { letter-spacing: -1.3px; }
  .hero p { font-size: 20px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .cards-grid { grid-template-columns: 1fr; transform: translateY(-60px); }
  .info-card, .news-card, .partner-banner { grid-column: auto; }
  .partner-banner { gap: 13px; padding: 15px; font-size: 15px; }
  .partner-logo { font-size: 20px; }
  .banner-arrow { display: none; }
  .quick-access { padding-bottom: 0; }
  .about-section { padding: 28px 0 75px; }
  .section-grid { grid-template-columns: 1fr; gap: 20px; }
  .about-section p { font-size: 16px; }
  .join-inner { align-items: stretch; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .modal-shell { padding: 38px 22px 28px; }
  .join-form { grid-template-columns: 1fr; }
  .join-form label.full, .join-form .modal-cta, .form-feedback { grid-column: auto; }
  .admin-login-form { padding: 38px 24px 28px; }
  .admin-panel-header { align-items: flex-start; padding: 20px; }
  .admin-panel-grid { padding: 12px; }
  .admin-editor, .admin-news-manager { padding: 18px; }
  .admin-news-item { grid-template-columns: 34px 66px 1fr; gap: 8px; }
  .news-drag-handle { width: 34px; min-height: 62px; }
  .admin-news-item img, .admin-news-placeholder { width: 66px; height: 62px; }
  .admin-tabs { padding: 0 10px; }
  .admin-tabs button { flex: 1; padding: 0 10px; }
  .admin-date-fields { grid-template-columns: 1fr; }
  .convention-public-item { grid-template-columns: 36px 1fr; }
  .convention-public-icon { width: 36px; height: 42px; }
  .convention-public-download { display: none; }
  .contact-choice-grid { grid-template-columns: 1fr; }
  .categories-intro { align-items: flex-start; flex-direction: column; gap: 12px; }
  .city-tags { justify-content: flex-start; }
  .category-grid { grid-template-columns: 1fr; }
  .category-card.category-wide { grid-column: auto; }
  .category-card summary { grid-template-columns: 39px 1fr; }
  .category-card summary b { display: none; }
  .category-symbol { width: 39px; height: 39px; }
  .admin-messages-shell { margin: 12px; padding: 17px; }
  .message-card-top { flex-direction: column; gap: 4px; }
  .admin-banner-shell { margin: 12px; padding: 18px; }
  .admin-banner-form { grid-template-columns: 1fr; }
  .banner-admin-preview { min-height: 190px; }
  .mobile-banner-overlay { padding: 15px; }
  .mobile-banner-close { top: -11px; right: -8px; width: 38px; height: 38px; }
  .membership-modal { width: calc(100% - 8px); height: calc(100vh - 8px); }
  .membership-header { min-height: 105px; padding: 12px 52px 12px 18px; }
  .membership-header img { width: 100%; height: 80px; }
  .membership-close { top: 12px; right: 12px; width: 36px; height: 36px; }
  .membership-form { padding: 10px; }
  .membership-free-notice { align-items: center; gap: 10px; padding: 14px 12px; font-size: 13px; }
  .membership-free-notice strong { font-size: 19px; }
  .membership-free-icon { width: 40px; height: 40px; font-size: 21px; }
  .membership-intro, .membership-card, .membership-submit-card { padding: 16px; }
  .membership-grid { grid-template-columns: 1fr; }
  .membership-grid .span-2, .membership-grid .span-3, .membership-grid .span-4 { grid-column: auto; }
  .membership-submit-card { grid-template-columns: 1fr; }
  .membership-submit { width: 100%; }
  .admin-members-shell { margin: 12px; padding: 14px; }
  .member-search-form > div { flex-direction: column; }
  .member-profile { grid-template-columns: 1fr; padding: 15px; }
  .member-photo-area { width: 120px; min-height: 152px; }
  .member-photo-area img { height: 152px; }
  .member-details-grid { grid-template-columns: 1fr; }
  .member-profile-body > header { flex-direction: column; }
  .member-profile-actions { justify-content: flex-start; }
  .member-documents > div { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .membership-free-notice { animation: none; }
}

@media print {
  @page { margin: 12mm; }
  body.printing-member { background: white !important; }
  body.printing-member > *:not(.member-print-sheet) { display: none !important; }
  body.printing-member .member-print-sheet { display: block !important; width: 100%; }
  body.printing-member .member-profile.print-target {
    position: static;
    display: grid;
    grid-template-columns: 125px 1fr;
    gap: 18px;
    width: 100%;
    height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: white;
    box-shadow: none;
  }
  body.printing-member .member-photo-area { width: 125px; min-height: 158px; border-color: #aaa; }
  body.printing-member .member-photo-area img { height: 158px; }
  body.printing-member .member-details-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
