body { background: var(--bg); color: var(--text); }

.navbar { background: var(--primary); }

.navbar .nav-link, .navbar .navbar-brand { color: #fff !important; }

.navbar .nav-link:hover { color: rgba(255,255,255,.85) !important; }

.btn-primary { background: var(--primary); border-color: var(--primary); }

.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

.badge-accent { background: var(--accent); color: #111; }

.card { border: 1px solid var(--border); border-radius: 18px; }

.section-title { font-weight: 800; color: var(--primary); }

.soft-shadow { box-shadow: 0 10px 30px rgba(0,0,0,0.08); }

/* =========================
   ABOUT PAGE
========================= */
.about-page .page-title{
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 8px;
}
.about-page .page-subtitle{
  opacity: .8;
  margin: 0 0 16px;
}

.about-card{
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 10px 30px rgba(0,0,0,.04);
}

.about-image{
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.08);
}
.about-image img{
  width: 100%;
  height: 320px;
  object-fit: cover;
  display:block;
}

.section-title{
  font-size: 18px;
  font-weight: 800;
}
.muted{ opacity: .88; }

.mini-points{
  display:grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 10px;
}
.mini-point{
  display:flex;
  align-items:center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  background: #fff;
}

.soft-hr{
  margin: 18px 0;
  border-top: 1px solid rgba(0,0,0,.08);
}

.grid-2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 8px;
}
.info-box{
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  padding: 14px;
  background: #fff;
}
.info-box h4{ font-size: 16px; font-weight: 800; margin: 0 0 10px; }
.info-box ul{ margin: 0; padding-left: 18px; opacity: .9; }

.feature-list{
  display:flex;
  flex-direction:column;
  gap: 12px;
}
.feature-item{
  display:flex;
  gap: 12px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  padding: 12px;
  background:#fff;
}
.feature-icon{
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(139,0,0,.08);
}
.feature-title{ font-weight: 800; }
.feature-text{ font-size: 14px; opacity: .85; }

.callout{
  border-radius: 16px;
  padding: 14px;
  border: 1px solid rgba(139,0,0,.14);
  background: linear-gradient(180deg, rgba(139,0,0,.06), rgba(0,0,0,0));
}
.callout-title{ font-weight: 900; margin-bottom: 4px; }
.callout-text{ opacity: .88; }

/* =========================
   SIDEBAR (RIGHT)
========================= */
.sticky-side{ position: sticky; top: 90px; }
@media (max-width: 992px){
  .grid-2{ grid-template-columns: 1fr; }
  .sticky-side{ position: static; }
  .about-image img{ height: 240px; }
}

.side-card{
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 10px 30px rgba(0,0,0,.04);
  overflow: hidden;
}
.side-card-header{
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,.06);
  font-weight: 900;
  padding: 12px 14px;
}
.tag{
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(139,0,0,.18);
  background: rgba(139,0,0,.08);
  color: #8b0000;
  margin-left: 8px;
}

.banner-link{ text-decoration: none; display:block; }
.banner{
  border-radius: 16px;
  padding: 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border: 1px solid rgba(0,0,0,.08);
}
.banner-light{ background: #fff7cc; }
.banner-dark{ background: #0f5a2a; color: #fff; }
.banner-title{ font-weight: 900; font-size: 16px; }
.banner-sub{ font-size: 13px; opacity: .85; }
.banner-icon{ font-size: 22px; }

.side-tip{
  font-size: 13px;
  opacity: .85;
}

.btn-primary{
  background:#8b0000;
  border-color:#8b0000;
}
.btn-outline-primary{
  border-color:#8b0000;
  color:#8b0000;
}
.btn-outline-primary:hover{
  background:#8b0000;
  color:#fff;
}

.update-item{
  display:flex;
  gap: 12px;
  padding: 12px 14px;
  border-top: 1px solid rgba(0,0,0,.06);
  text-decoration:none;
  color: inherit;
}
.update-item:hover{ background: rgba(0,0,0,.02); }

.resident-pwa-install{
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 1060;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 12px 28px rgba(0,0,0,.14);
  backdrop-filter: blur(10px);
}
.resident-pwa-install[hidden]{ display:none !important; }
.resident-pwa-install .install-copy{
  display:flex;
  align-items:center;
  gap:10px;
  min-width: 0;
}
.resident-pwa-install .install-text{
  display:flex;
  flex-direction:column;
  line-height:1.2;
  min-width:0;
}
.resident-pwa-install .install-title{
  font-weight: 800;
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.resident-pwa-install .install-sub{
  font-size: 12px;
  color: rgba(0,0,0,.68);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.resident-pwa-install .install-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex: 0 0 auto;
}
.resident-pwa-install .btn{
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 12px;
  line-height: 1.1;
}
.resident-pwa-install .icon-btn{
  width: 32px;
  height: 32px;
  padding: 0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
@media (min-width: 992px){
  .resident-pwa-install{
    left: 20px;
    right: 20px;
    max-width: 420px;
    margin-left: auto;
  }
}

body.has-resident-pwa-install{
  padding-bottom: 92px;
}

.date-pill{
  width: 46px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.10);
  overflow:hidden;
  text-align:center;
}
.date-pill .dd{
  background: #0f5a2a;
  color:#fff;
  font-weight: 900;
  padding: 6px 0;
}
.date-pill .mm{
  font-size: 12px;
  padding: 6px 0;
  background:#fff;
  opacity:.85;
}

.u-title{ font-weight: 800; font-size: 14px; }
.u-sub{ font-size: 12px; opacity: .75; margin-top: 2px; }
.view-all{
  font-weight: 800;
  text-decoration:none;
  color:#0f5a2a;
}

/* HOME V2 */
.home-v2 .soft-shadow{ box-shadow: 0 10px 30px rgba(0,0,0,.06) !important; }

/* Hero */
.hv-hero{ border-radius: 18px; border: 1px solid rgba(0,0,0,.08); }
.hv-hero-wrap{ position: relative; min-height: 420px; }
.hv-hero-img{ width:100%; height:420px; object-fit:cover; display:block; }
.hv-hero-overlay{
  position:absolute; inset:0;
  background: linear-gradient(90deg, rgba(122,16,32,.82), rgba(122,16,32,.20) 60%, rgba(0,0,0,.05));
}
.hv-hero-content{
  position:absolute; inset:0;
  display:flex; align-items:center;
  padding: 22px 22px;
}
.hv-pill{
  width: fit-content;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .2px;
}
.hv-title{
  color:#fff;
  font-weight: 1000;
  margin-top: 10px;
  font-size: 38px;
  line-height: 1.15;
  max-width: 720px;
}
.hv-sub{ color: rgba(255,255,255,.85); max-width: 600px; margin-top: 6px; }
.hv-actions{ display:flex; gap:10px; flex-wrap:wrap; margin-top: 14px; }

@media (max-width: 992px){
  .hv-hero-wrap{ min-height: 320px; }
  .hv-hero-img{ height:320px; }
  .hv-title{ font-size: 28px; }
}

/* Tiles */
.hv-tile{
  display:flex; gap: 12px; align-items:center;
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.08);
  text-decoration:none;
  background:#fff;
  transition:.15s ease;
  box-shadow: 0 10px 25px rgba(0,0,0,.04);
}
.hv-tile:hover{ transform: translateY(-1px); box-shadow: 0 14px 30px rgba(0,0,0,.06); }
.hv-ico{
  width: 44px; height: 44px;
  border-radius: 16px;
  display:flex; align-items:center; justify-content:center;
  background: rgba(122,16,32,.08);
  border: 1px solid rgba(122,16,32,.14);
  font-size: 20px;
}
.hv-tile-title{ font-weight: 900; color: var(--primary, #7a1020); }
.hv-tile-sub{ font-size: 12.5px; opacity:.8; }

/* Section headings */
.hv-section-head{
  display:flex; justify-content:space-between; align-items:flex-end;
  gap: 14px; margin-bottom: 12px;
}
.hv-section-title{ margin:0; font-weight: 1000; }
.hv-section-sub{ font-size: 12.5px; opacity:.75; margin-top: 4px; }

/* Cards (Notices/News) */
.hv-card{
  height: 100%;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,.08);
  background:#fff;
  padding: 14px 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,.04);
}
.hv-card-top{ display:flex; justify-content:space-between; align-items:center; margin-bottom: 10px; }
.hv-badge{
  font-size: 11px; font-weight: 1000;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(122,16,32,.10);
  border: 1px solid rgba(122,16,32,.16);
  color: var(--primary, #7a1020);
}
.hv-badge--news{ background: rgba(15,90,42,.12); border-color: rgba(15,90,42,.20); color:#0f5a2a; }
.hv-pin{
  font-size: 12px; font-weight: 900;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.04);
  border: 1px solid rgba(0,0,0,.08);
}
.hv-card-title{ font-weight: 1000; line-height: 1.25; margin-bottom: 6px; }
.hv-card-date{ font-size: 12px; opacity:.75; }
.hv-card-text{ font-size: 13px; opacity:.82; margin-top: 10px; }
.hv-card-actions{ margin-top: 14px; }

/* Doc highlight */
.hv-doc{ border-radius: 18px; border:1px solid rgba(0,0,0,.08); overflow:hidden; }
.hv-doc-inner{
  padding: 18px;
  display:flex; justify-content:space-between; gap: 16px; flex-wrap:wrap;
  background: linear-gradient(90deg, rgba(122,16,32,.06), rgba(200,162,74,.10));
}
.hv-doc-kicker{ font-weight: 1000; color: var(--primary, #7a1020); letter-spacing:.2px; }
.hv-doc-title{ margin: 6px 0 4px; font-weight: 1000; }
.hv-doc-sub{ opacity:.8; }
.hv-doc-chips{ display:flex; gap:8px; flex-wrap:wrap; margin-top: 10px; }
.hv-chip{
  font-size: 12px; font-weight: 900;
  padding: 6px 10px; border-radius: 999px;
  background: rgba(255,255,255,.6);
  border: 1px solid rgba(0,0,0,.08);
}
.hv-doc-btns{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.hv-doc-tip{ padding: 12px 18px; font-size: 12.5px; opacity:.78; background:#fff; border-top:1px solid rgba(0,0,0,.06); }

/* Downloads list */
.hv-list{ border-radius: 18px; border: 1px solid rgba(0,0,0,.08); }
.hv-li{ display:flex; justify-content:space-between; align-items:center; gap: 14px; }
.hv-li-left{ display:flex; align-items:flex-start; gap: 12px; }
.hv-file{
  width: 40px; height: 40px; border-radius: 14px;
  display:flex; align-items:center; justify-content:center;
  background: rgba(0,0,0,.04);
  border: 1px solid rgba(0,0,0,.08);
}
.hv-li-title{ font-weight: 900; }
.hv-li-sub{ font-size: 12.5px; opacity:.78; display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.hv-cat{
  font-size: 11px; font-weight: 900;
  padding: 4px 8px; border-radius: 999px;
  background: rgba(15,90,42,.10);
  border: 1px solid rgba(15,90,42,.18);
  color: #0f5a2a;
}
.hv-dot{ opacity:.6; }

/* ========================================
   HOME PRO REDESIGN
======================================== */
.home-pro { margin-bottom: 2.5rem; }

.hp-hero {
  border: 1px solid rgba(30, 20, 15, 0.10);
  border-radius: 22px;
  background: #fff;
}

.hp-hero-frame {
  position: relative;
  min-height: 460px;
}

.hp-hero-frame--plain {
  background:
    radial-gradient(1200px 400px at -20% 0%, rgba(255, 198, 141, .35), transparent 60%),
    linear-gradient(115deg, #501018, #8e1c2a 52%, #d39d60 130%);
}

.hp-hero-img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  display: block;
}

.hp-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(92deg, rgba(31, 8, 10, .78), rgba(31, 8, 10, .42) 42%, rgba(31, 8, 10, .08) 100%);
}

.hp-hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 760px;
}

.hp-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 12px;
  letter-spacing: .4px;
  text-transform: uppercase;
  font-weight: 700;
  padding: .4rem .75rem;
}

.hp-title {
  margin-top: .95rem;
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -.3px;
  text-wrap: balance;
}

.hp-sub {
  margin-top: .55rem;
  margin-bottom: 0;
  color: rgba(255, 255, 255, .88);
  font-size: 1.05rem;
  max-width: 620px;
}

.hp-actions {
  margin-top: 1.2rem;
  display: flex;
  gap: .7rem;
  flex-wrap: wrap;
}

.hp-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(0,0,0,.08);
  background: linear-gradient(180deg, #fff, #faf5ef);
}

.hp-stat {
  padding: .95rem 1rem;
  border-right: 1px solid rgba(0,0,0,.06);
}

.hp-stat:last-child { border-right: none; }

.hp-stat-num {
  font-size: 1.28rem;
  font-weight: 900;
  color: #581017;
  line-height: 1;
}

.hp-stat-label {
  font-size: .78rem;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: #7b6c62;
  margin-top: .25rem;
}

.hp-quick {
  height: 100%;
  display: flex;
  align-items: center;
  gap: .8rem;
  border: 1px solid rgba(88, 16, 23, .12);
  border-radius: 16px;
  background: #fff;
  text-decoration: none;
  padding: .95rem 1rem;
  box-shadow: 0 8px 22px rgba(34, 15, 12, .06);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.hp-quick:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(34, 15, 12, .10);
  border-color: rgba(88, 16, 23, .24);
}

.hp-quick-key {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #581017;
  background: linear-gradient(180deg, #fff3e2, #f8dfbd);
  border: 1px solid rgba(88, 16, 23, .14);
  flex: 0 0 44px;
}

.hp-quick-title {
  display: block;
  color: #581017;
  font-weight: 800;
  line-height: 1.2;
}

.hp-quick-sub {
  display: block;
  margin-top: .2rem;
  color: #7b6c62;
  font-size: .86rem;
}

.hp-panel {
  border-radius: 18px;
  border: 1px solid rgba(88, 16, 23, .10);
}

.hp-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.hp-section-title {
  margin: 0;
  color: #1d1b1a;
  font-weight: 900;
  letter-spacing: -.2px;
}

.hp-section-sub {
  margin-top: .25rem;
  color: #766c65;
  font-size: .88rem;
}

.hp-card {
  border: 1px solid rgba(88, 16, 23, .10);
  border-radius: 14px;
  background: #fff;
  padding: .95rem;
}

.hp-card--notice {
  background: linear-gradient(180deg, #fff, #fff8f3);
}

.hp-card--news {
  background: linear-gradient(180deg, #fff, #f7fafc);
}

.hp-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .6rem;
}

.hp-badge {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .35px;
  text-transform: uppercase;
  border-radius: 999px;
  color: #581017;
  background: rgba(88, 16, 23, .10);
  border: 1px solid rgba(88, 16, 23, .14);
  padding: .28rem .62rem;
}

.hp-badge--news {
  color: #0f4f3d;
  background: rgba(15, 79, 61, .10);
  border-color: rgba(15, 79, 61, .16);
}

.hp-pin {
  font-size: .72rem;
  font-weight: 700;
  color: #6e625b;
}

.hp-card-title {
  margin: .6rem 0 .2rem;
  font-size: 1rem;
  font-weight: 800;
  color: #272220;
}

.hp-card-date {
  font-size: .78rem;
  color: #7f7269;
}

.hp-card-text {
  margin: .52rem 0 .68rem;
  font-size: .9rem;
  color: #5d5550;
}

.hp-card-link {
  color: #7a1020;
  font-weight: 700;
  text-decoration: none;
}

.hp-card-link:hover { text-decoration: underline; }

.hp-doc {
  border-radius: 18px;
  border: 1px solid rgba(88, 16, 23, .12);
  overflow: hidden;
}

.hp-doc-inner {
  display: flex;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
  padding: 1.3rem 1.35rem;
  background:
    radial-gradient(500px 140px at 0% 0%, rgba(214, 158, 90, .18), transparent 65%),
    linear-gradient(180deg, #fff9f1, #fff);
}

.hp-doc-kicker {
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .35px;
  color: #7a1020;
  font-weight: 800;
}

.hp-doc-title {
  margin-top: .3rem;
  margin-bottom: .4rem;
  font-size: 1.45rem;
  color: #2a2220;
  font-weight: 900;
}

.hp-doc-text {
  margin: 0;
  color: #645c56;
  max-width: 620px;
}

.hp-doc-tags {
  margin-top: .8rem;
  display: flex;
  gap: .45rem;
  flex-wrap: wrap;
}

.hp-doc-tags span {
  border: 1px solid rgba(88, 16, 23, .14);
  color: #6d1a22;
  background: rgba(122, 16, 32, .06);
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  padding: .3rem .58rem;
}

.hp-doc-cta {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

.hp-download-list {
  display: flex;
  flex-direction: column;
  gap: .65rem;
}

.hp-download-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border: 1px solid rgba(88, 16, 23, .10);
  border-radius: 12px;
  padding: .8rem .85rem;
  background: #fff;
}

.hp-download-title {
  font-size: .95rem;
  font-weight: 800;
  color: #2a2320;
}

.hp-download-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .45rem;
  color: #7d726a;
  font-size: .8rem;
  margin-top: .2rem;
}

.hp-download-cat {
  border-radius: 999px;
  padding: .2rem .48rem;
  background: rgba(15, 79, 61, .10);
  color: #0f4f3d;
  border: 1px solid rgba(15, 79, 61, .14);
  font-weight: 700;
  font-size: .72rem;
}

@media (max-width: 1200px) {
  .hp-hero-content { max-width: 680px; }
}

@media (max-width: 992px) {
  .hp-hero-frame { min-height: 390px; }
  .hp-hero-img { height: 390px; }
  .hp-hero-content { padding: 1.3rem; }
  .hp-stats { grid-template-columns: repeat(2, 1fr); }
  .hp-stat:nth-child(2) { border-right: none; }
  .hp-stat { border-bottom: 1px solid rgba(0,0,0,.06); }
  .hp-stat:nth-last-child(-n+2) { border-bottom: none; }
}

@media (max-width: 768px) {
  .hp-hero-frame { min-height: 330px; }
  .hp-hero-img { height: 330px; }
  .hp-actions { gap: .55rem; }
  .hp-doc-title { font-size: 1.22rem; }
  .hp-download-item {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* ========================================
   HOMEPAGE REFERENCE STYLE
======================================== */
.home-ref {
  max-width: 1200px;
}

.ref-hero {
  border: 0;
  border-radius: 0;
  overflow: hidden;
}

.ref-hero-frame {
  min-height: 520px;
  position: relative;
}

.ref-hero-frame--fallback {
  background: linear-gradient(120deg, #8f1b27, #571019 62%, #2c090d);
}

.ref-hero-img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
}

.ref-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(250,246,242,.80), rgba(255,255,255,.12) 54%, rgba(0,0,0,.18));
}

.ref-hero-content {
  position: absolute;
  left: 70px;
  top: 70px;
  z-index: 2;
  max-width: 460px;
  color: #4b1016;
}

.ref-kicker {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
}

.ref-title {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
  margin: .35rem 0 .65rem;
  color: #68141d;
}

.ref-sub {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  color: #5a141b;
}

.ref-tag {
  margin-top: .7rem;
  color: #6c232a;
  font-style: italic;
  font-size: 1.15rem;
}

.ref-notice-band {
  margin-top: 0;
  background:
    radial-gradient(140% 90% at 0% 0%, rgba(255,255,255,.08), transparent 55%),
    linear-gradient(135deg, #8f1b27, #66131d 70%, #571019);
  padding: 1.8rem 1.6rem 2rem;
}

.ref-head h3 {
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
  margin: 0;
}

.ref-outline-light {
  color: #fff;
  border: 1px solid rgba(255,255,255,.45);
  background: rgba(255,255,255,.08);
}

.ref-outline-light:hover {
  color: #fff;
  background: rgba(255,255,255,.18);
}

.ref-notice-card {
  border: 0;
  border-radius: 8px;
  background: #fff;
  padding: 1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.16);
}

.ref-notice-card h4,
.ref-download-card h4 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #5e121a;
  margin-bottom: .35rem;
}

.ref-date {
  color: #7c6c63;
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: .45rem;
}

.ref-notice-card p,
.ref-download-card p {
  color: #4b433e;
  font-size: 1rem;
  min-height: 54px;
}

.ref-actions {
  margin-top: 1.3rem;
}

.ref-action {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25), 0 8px 18px rgba(0,0,0,.14);
}

.ref-action:hover {
  color: #fff;
  filter: brightness(1.04);
}

.ref-a1 { background: linear-gradient(180deg, #8e1d2a, #6f141f); }
.ref-a2 { background: linear-gradient(180deg, #d0a144, #b4822f); }
.ref-a3 { background: linear-gradient(180deg, #566b34, #3d4f26); }
.ref-a4 { background: linear-gradient(180deg, #8f2030, #6d1422); }

.ref-rulebook {
  border: 1px solid rgba(80,42,30,.14);
  border-radius: 8px;
  background: linear-gradient(180deg, #f9f4ee, #f5eee5);
  padding: 1.2rem;
}

.ref-book {
  min-height: 210px;
  border-radius: 8px;
  background: linear-gradient(180deg, #7e1520, #65111a);
  color: #f7e4bd;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 800;
  box-shadow: inset 0 0 0 4px rgba(255, 221, 173, .22);
}

.ref-rulebook h3 {
  font-size: 2.2rem;
  color: #63131b;
  font-weight: 900;
  margin-bottom: .35rem;
}

.ref-rulebook p {
  color: #695e56;
  font-size: 1.15rem;
}

.ref-file-grid {
  margin-top: .8rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .55rem;
}

.ref-file-grid a {
  display: block;
  padding: .62rem .72rem;
  border-radius: 6px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.10);
  color: #5d161e;
  text-decoration: none;
  font-weight: 700;
}

.ref-file-grid a:hover { background: #fff9f4; }

.ref-downloads {
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 8px;
  background: #f7f3ee;
}

.ref-downloads h3 {
  color: #61171f;
  font-weight: 900;
  font-size: 2rem;
}

.ref-download-card {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.10);
  background: #fff;
}

.ref-download-banner {
  height: 150px;
  background:
    linear-gradient(120deg, rgba(236,146,72,.45), rgba(130,181,106,.35)),
    repeating-linear-gradient(45deg, #d8d3cb 0 12px, #e4ddd4 12px 24px);
}

@media (max-width: 992px) {
  .ref-hero-frame,
  .ref-hero-img {
    min-height: 380px;
    height: 380px;
  }

  .ref-hero-content {
    left: 26px;
    top: 30px;
    max-width: 360px;
  }

  .ref-kicker { font-size: 1.55rem; }
  .ref-title { font-size: 2.8rem; }
  .ref-sub { font-size: 1.35rem; }

  .ref-rulebook h3,
  .ref-head h3,
  .ref-downloads h3 {
    font-size: 1.55rem;
  }

  .ref-file-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   HOME NEO (CLEAN + PROFESSIONAL)
======================================== */
.home-neo {
  --neo-ink: #151515;
  --neo-soft: #6f6a66;
  --neo-card: #ffffff;
  --neo-line: rgba(23, 16, 13, 0.10);
  --neo-brand: #7a1020;
  --neo-brand-dark: #5f0d19;
  --neo-warm: #f6f2ee;
  --neo-green: #214f3e;
  max-width: 1220px;
}

.home-neo .card {
  border-radius: 20px;
  border: 1px solid var(--neo-line);
}

.neo-hero {
  overflow: hidden;
  background:
    radial-gradient(130% 110% at 95% -10%, rgba(122,16,32,.18), transparent 45%),
    radial-gradient(80% 90% at -10% 120%, rgba(33,79,62,.12), transparent 55%),
    linear-gradient(180deg, #ffffff, #fcfaf8);
}

.neo-hero-copy {
  padding: 2rem 2rem 1.6rem;
}

.neo-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(122,16,32,.08);
  color: #6f1120;
  border: 1px solid rgba(122,16,32,.16);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .35px;
  text-transform: uppercase;
  padding: .38rem .72rem;
}

.neo-chip--dark {
  background: rgba(21,21,21,.06);
  color: #1f1b19;
  border-color: rgba(21,21,21,.12);
}

.neo-hero-copy h1 {
  margin-top: .9rem;
  margin-bottom: .55rem;
  color: var(--neo-ink);
  font-size: clamp(1.85rem, 4vw, 3.2rem);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -.25px;
  text-wrap: balance;
}

.neo-hero-copy p {
  margin: 0;
  color: var(--neo-soft);
  font-size: 1.02rem;
  max-width: 620px;
}

.neo-hero-actions {
  margin-top: 1.1rem;
  display: flex;
  gap: .65rem;
  flex-wrap: wrap;
}

.neo-trust-row {
  margin-top: 1.2rem;
  display: flex;
  gap: .45rem;
  flex-wrap: wrap;
}

.neo-trust-row span {
  border: 1px solid var(--neo-line);
  background: #fff;
  border-radius: 999px;
  font-size: .76rem;
  color: #5f5954;
  font-weight: 700;
  padding: .26rem .58rem;
}

.neo-hero-stack {
  position: relative;
  min-height: 100%;
  padding: 1.2rem 1.2rem 1.2rem 0;
}

.neo-hero-image {
  width: 100%;
  height: 100%;
  min-height: 300px;
  max-height: 390px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--neo-line);
}

.neo-hero-image--fallback {
  background: linear-gradient(125deg, #f3e8da, #e8d8c2 45%, #e7eef0);
}

.neo-overlay-card {
  position: absolute;
  background: rgba(255,255,255,.93);
  border: 1px solid var(--neo-line);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(24,16,12,.10);
  padding: .75rem .85rem;
  width: min(250px, calc(100% - 2.4rem));
}

.neo-overlay-card .neo-k {
  font-size: .72rem;
  letter-spacing: .25px;
  text-transform: uppercase;
  color: #827a74;
  font-weight: 700;
}

.neo-overlay-card .neo-v {
  margin-top: .25rem;
  color: #1e1a18;
  font-weight: 800;
  font-size: .95rem;
  line-height: 1.25;
}

.neo-overlay-card a {
  margin-top: .35rem;
  display: inline-block;
  color: var(--neo-brand);
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
}

.neo-overlay-card a:hover { text-decoration: underline; }

.neo-overlay-card--a { top: 1.8rem; right: 1.8rem; }
.neo-overlay-card--b { bottom: 1.8rem; left: .8rem; }

.neo-actions .neo-action {
  display: block;
  height: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.25);
  padding: .95rem 1rem;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 10px 24px rgba(20,12,10,.14);
  transition: transform .14s ease, filter .14s ease;
}

.neo-actions .neo-action:hover {
  transform: translateY(-2px);
  color: #fff;
  filter: brightness(1.03);
}

.neo-resident-spotlight {
  overflow: hidden;
  background:
    radial-gradient(85% 130% at 0% 0%, rgba(122,16,32,.08), transparent 52%),
    radial-gradient(70% 100% at 100% 100%, rgba(33,79,62,.08), transparent 58%),
    linear-gradient(180deg, #fffefc, #f8f4ef);
  border-radius: 22px;
  border: 1px solid rgba(89, 62, 45, 0.10);
  box-shadow: 0 18px 40px rgba(24, 16, 12, 0.05);
}

.neo-resident-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1rem 1.5rem;
}

.neo-resident-inline-copy {
  display: flex;
  align-items: center;
  min-width: 0;
}

.neo-resident-inline-copy p {
  margin: 0;
  color: #201b17;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.35;
  font-weight: 700;
}

.neo-resident-inline-action {
  flex: 0 0 auto;
}

.neo-resident-cta {
  display: flex;
  align-items: center;
  justify-content: center;
}

.neo-resident-cta .btn {
  min-width: 230px;
  min-height: 46px;
  font-weight: 700;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(122,16,32,.16);
}

.neo-action strong {
  display: block;
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 800;
}

.neo-action small {
  display: block;
  margin-top: .25rem;
  font-size: .82rem;
  opacity: .9;
}

.neo-action--one { background: linear-gradient(135deg, #8d1e2a, #6f1520); }
.neo-action--two { background: linear-gradient(135deg, #9e7a2b, #c79a41); }
.neo-action--three { background: linear-gradient(135deg, #2d5c49, #24483a); }
.neo-action--four { background: linear-gradient(135deg, #70304a, #5a243b); }

.neo-block {
  background: var(--neo-card);
}

.neo-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
}

.neo-head h3 {
  margin: 0;
  color: var(--neo-ink);
  font-weight: 900;
  letter-spacing: -.2px;
}

.neo-head p {
  margin: .18rem 0 0;
  font-size: .87rem;
  color: #776f69;
}

.neo-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .9rem;
}

.neo-item {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: .8rem;
}

.neo-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--neo-brand);
  box-shadow: 0 0 0 4px rgba(122,16,32,.14);
  margin-top: .45rem;
}

.neo-item-main {
  border: 1px solid var(--neo-line);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #fefaf7);
  padding: .8rem .9rem;
}

.neo-item-top {
  display: flex;
  justify-content: space-between;
  gap: .8rem;
}

.neo-item-top h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #23201d;
}

.neo-item-top span {
  font-size: .78rem;
  color: #7c736c;
  white-space: nowrap;
}

.neo-item-main p {
  margin: .45rem 0 .55rem;
  color: #5d5651;
  font-size: .9rem;
}

.neo-item-main a,
.neo-feed-card a {
  color: var(--neo-brand);
  text-decoration: none;
  font-weight: 700;
  font-size: .86rem;
}

.neo-item-main a:hover,
.neo-feed-card a:hover { text-decoration: underline; }

.neo-feed {
  display: flex;
  flex-direction: column;
  gap: .8rem;
}

.neo-feed-card {
  border: 1px solid var(--neo-line);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #f9fbfc);
  padding: .8rem .9rem;
}

.neo-feed-date {
  color: #7f756e;
  font-size: .78rem;
  font-weight: 700;
}

.neo-feed-card h4 {
  margin: .2rem 0 .3rem;
  font-size: .97rem;
  font-weight: 800;
  color: #1f1d1b;
}

.neo-feed-card p {
  margin: 0 0 .45rem;
  font-size: .88rem;
  color: #5f5752;
}

.neo-docs {
  border: 1px solid var(--neo-line);
  overflow: hidden;
  background:
    radial-gradient(80% 150% at 0% 0%, rgba(122,16,32,.12), transparent 52%),
    linear-gradient(180deg, #fffefc, #f6f0ea);
}

.neo-docs-copy {
  padding: 1.5rem 1.5rem;
}

.neo-docs-copy h3 {
  margin-top: .7rem;
  margin-bottom: .45rem;
  color: #221f1d;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 900;
}

.neo-docs-copy p {
  margin: 0;
  color: #645c56;
}

.neo-doc-tags {
  margin-top: .8rem;
  display: flex;
  gap: .45rem;
  flex-wrap: wrap;
}

.neo-doc-tags span {
  border-radius: 999px;
  border: 1px solid var(--neo-line);
  background: #fff;
  color: #5f5852;
  font-size: .76rem;
  font-weight: 700;
  padding: .26rem .56rem;
}

.neo-docs-cta {
  height: 100%;
  padding: 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  justify-content: center;
  background: linear-gradient(180deg, rgba(255,255,255,.58), rgba(255,255,255,.96));
  border-left: 1px solid var(--neo-line);
}

.neo-download-table {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.neo-download-row {
  border: 1px solid var(--neo-line);
  border-radius: 12px;
  padding: .75rem .82rem;
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .9rem;
}

.neo-download-row h4 {
  margin: 0;
  font-size: .95rem;
  font-weight: 800;
  color: #201d1a;
}

.neo-row-meta {
  margin-top: .2rem;
  font-size: .8rem;
  color: #7a716a;
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}

@media (max-width: 1200px) {
  .neo-hero-stack { padding: 0 1.2rem 1.2rem; }
  .neo-overlay-card--a { top: 1rem; right: 2rem; }
}

@media (max-width: 992px) {
  .neo-hero-copy { padding: 1.3rem; }
  .neo-hero-stack { padding: 0 1.3rem 1.3rem; }
  .neo-overlay-card { position: static; width: 100%; margin-top: .65rem; }
  .neo-docs-cta {
    border-left: 0;
    border-top: 1px solid var(--neo-line);
  }

  .neo-resident-inline {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.1rem;
  }
}

@media (max-width: 768px) {
  .neo-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .neo-download-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ========================================
   MOBILE APP FEEL (WEBVIEW FRIENDLY)
   Desktop untouched - mobile only
======================================== */
@media (max-width: 768px) {
  :root {
    --app-gap: 14px;
    --app-radius: 16px;
  }

  html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
  }

  body {
    background: #f5f4f2;
    color: #1d1b19;
    font-size: 15px;
    line-height: 1.45;
    -webkit-tap-highlight-color: transparent;
    text-rendering: optimizeLegibility;
  }

  .container,
  .container-fluid {
    padding-left: 12px;
    padding-right: 12px;
  }

  .navbar .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .navbar-brand {
    font-size: 1.02rem;
    letter-spacing: .1px;
  }

  .navbar-toggler {
    border-color: rgba(255,255,255,.35);
    border-radius: 10px;
    padding: .32rem .5rem;
  }

  .navbar-collapse {
    margin-top: 10px;
    border-radius: 14px;
    background: rgba(0,0,0,.16);
    backdrop-filter: blur(6px);
    padding: 8px;
  }

  .navbar-nav .nav-link {
    padding: 10px 12px;
    border-radius: 10px;
    font-weight: 600;
  }

  .navbar-nav .nav-link:active,
  .navbar-nav .nav-link:hover {
    background: rgba(255,255,255,.12);
  }

  .btn,
  .btn-sm,
  .btn-lg,
  a.btn {
    min-height: 44px;
    border-radius: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }

  .btn-sm {
    min-height: 38px;
  }

  .card,
  .neo-block,
  .neo-docs,
  .neo-hero {
    border-radius: var(--app-radius);
  }

  .card {
    box-shadow: 0 8px 22px rgba(22,15,11,.07);
  }

  .home-neo {
    margin-top: 10px;
    margin-bottom: 18px;
  }

  .neo-hero-copy {
    padding: 16px 14px 12px;
  }

  .neo-chip {
    font-size: 11px;
    padding: .32rem .58rem;
  }

  .neo-hero-copy h1 {
    font-size: clamp(1.45rem, 6.1vw, 2.05rem);
    line-height: 1.15;
    margin-top: .65rem;
    margin-bottom: .45rem;
  }

  .neo-hero-copy p {
    font-size: .92rem;
    line-height: 1.4;
  }

  .neo-hero-actions {
    margin-top: .9rem;
    gap: .5rem;
  }

  .neo-trust-row {
    margin-top: .88rem;
    gap: .35rem;
  }

  .neo-trust-row span {
    font-size: .7rem;
    padding: .22rem .48rem;
  }

  .neo-hero-stack {
    padding: 0 14px 14px;
  }

  .neo-hero-image {
    min-height: 220px;
    max-height: 250px;
  }

  .neo-overlay-card {
    border-radius: 12px;
    padding: .62rem .68rem;
  }

  .neo-overlay-card .neo-v {
    font-size: .87rem;
  }

  .neo-actions {
    margin-top: 2px;
  }

  .neo-resident-inline {
    gap: .85rem;
    padding: .95rem 1rem;
  }

  .neo-resident-inline-copy {
    width: 100%;
    justify-content: center;
  }

  .neo-resident-inline-copy p {
    font-size: .95rem;
    text-align: center;
  }

  .neo-resident-inline-action,
  .neo-resident-cta,
  .neo-resident-cta .btn {
    width: 100%;
  }

  .neo-resident-cta .btn {
    min-width: 0;
  }

  .neo-actions .neo-action {
    border-radius: 14px;
    padding: .88rem .9rem;
  }

  .neo-action strong {
    font-size: .95rem;
  }

  .neo-action small {
    font-size: .78rem;
  }

  .neo-head {
    gap: .5rem;
  }

  .neo-head h3 {
    font-size: 1.08rem;
  }

  .neo-head p {
    font-size: .78rem;
    margin-top: .12rem;
  }

  .neo-item {
    grid-template-columns: 12px 1fr;
    gap: .6rem;
  }

  .neo-dot {
    width: 9px;
    height: 9px;
    margin-top: .52rem;
    box-shadow: 0 0 0 3px rgba(122,16,32,.13);
  }

  .neo-item-main,
  .neo-feed-card,
  .neo-download-row {
    border-radius: 12px;
    padding: .7rem .75rem;
  }

  .neo-item-top h4,
  .neo-feed-card h4,
  .neo-download-row h4 {
    font-size: .92rem;
    line-height: 1.3;
  }

  .neo-item-main p,
  .neo-feed-card p {
    font-size: .83rem;
    line-height: 1.4;
  }

  .neo-feed-date,
  .neo-item-top span,
  .neo-row-meta {
    font-size: .74rem;
  }

  .neo-docs-copy,
  .neo-docs-cta {
    padding: 1rem .95rem;
  }

  .neo-docs-copy h3 {
    margin-top: .55rem;
    margin-bottom: .35rem;
    font-size: 1.2rem;
    line-height: 1.25;
  }

  .neo-docs-copy p {
    font-size: .86rem;
  }

  .neo-doc-tags span {
    font-size: .69rem;
    padding: .2rem .5rem;
  }

  .neo-docs-cta {
    gap: .48rem;
  }

  .neo-download-table {
    gap: .5rem;
  }

  .neo-download-row {
    gap: .6rem;
  }

  .neo-row-meta {
    gap: .4rem;
  }

  .table-responsive {
    border-radius: 12px;
  }

  .form-control,
  .form-select,
  textarea.form-control {
    min-height: 44px;
    border-radius: 12px;
    font-size: 15px;
  }

  textarea.form-control {
    min-height: 120px;
  }

  footer {
    margin-top: 22px !important;
    padding-top: 16px !important;
    padding-bottom: calc(16px + env(safe-area-inset-bottom)) !important;
  }

  footer .small.d-flex {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
  }

  .soft-shadow {
    box-shadow: 0 10px 22px rgba(0,0,0,.07) !important;
  }
}

@media (max-width: 768px) and (prefers-reduced-motion: no-preference) {
  .neo-item-main,
  .neo-feed-card,
  .neo-download-row,
  .neo-actions .neo-action,
  .btn,
  .card {
    transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease;
  }

  .neo-item-main:active,
  .neo-feed-card:active,
  .neo-download-row:active,
  .neo-actions .neo-action:active,
  .btn:active {
    transform: translateY(1px) scale(.995);
  }
}
