
body{margin:0;background:var(--rwt-bg);color:var(--rwt-text);font-family:var(--rwt-font)}
.rwt-container{max-width:1280px;margin:0 auto;padding:0 16px}
.rwt-site-header,.rwt-site-footer{background:linear-gradient(180deg,#fff,#eef6ff);border-bottom:1px solid var(--rwt-border)}
.rwt-site-footer{border-top:1px solid var(--rwt-border);border-bottom:0;padding:16px 0;margin-top:32px;color:var(--rwt-muted)}
.rwt-header-inner{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 0}
.rwt-brand{display:flex;align-items:center;gap:12px}
.rwt-site-title{font-size:24px;font-weight:800;color:var(--rwt-blue-dark);text-decoration:none}
.rwt-nav ul{display:flex;gap:16px;list-style:none;padding:0;margin:0}
.rwt-nav a{color:var(--rwt-blue-dark);text-decoration:none;font-weight:700}
.rwt-page{max-width:1280px;margin:24px auto 40px;padding:0 16px;color:var(--rwt-text)}
.rwt-title-bar{border:2px solid var(--rwt-border);background:linear-gradient(180deg,#fff,#eef6ff);color:var(--rwt-blue-dark);padding:18px 24px;text-align:center;font-size:34px;font-weight:800;border-radius:4px;box-shadow:var(--rwt-shadow);margin-bottom:24px}
.rwt-hero,.rwt-section,.rwt-hero-card{margin-bottom:28px;background:linear-gradient(180deg,#fafdff,#eef6ff);border:1px solid var(--rwt-border);border-radius:4px;box-shadow:var(--rwt-shadow);padding:22px}
.rwt-hero-grid{display:grid;grid-template-columns:1.4fr .8fr;gap:24px;align-items:start}
.rwt-feature-card,.rwt-side-card,.rwt-card{background:var(--rwt-card);border:1px solid var(--rwt-border);border-radius:4px;box-shadow:var(--rwt-shadow);padding:18px}
.rwt-side-stack{display:grid;gap:24px}
.rwt-card-head,.rwt-section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}
.rwt-card-head h2,.rwt-card-head h3,.rwt-section-head h2,.rwt-card h3{margin:0;color:var(--rwt-blue-dark)}
.rwt-button,.rwt-button:visited{display:inline-flex;align-items:center;justify-content:center;padding:10px 16px;border-radius:4px;background:linear-gradient(180deg,#2d77c7,#155090);color:#fff;text-decoration:none;font-weight:700}
.rwt-button-small{padding:8px 12px}
.rwt-mini-link{color:var(--rwt-blue);font-weight:700;text-decoration:none}
.rwt-leader-grid,.rwt-main-grid{display:grid;grid-template-columns:240px 1fr;gap:20px;align-items:start}
.rwt-leader-image{width:240px;height:300px;overflow:hidden;border:1px solid var(--rwt-border);background:#fff}
.rwt-leader-image img,.rwt-photo-wrap img,.rwt-ranking-leader-image img{width:100%;height:100%;object-fit:cover;display:block}
.rwt-noimage,.rwt-photo-placeholder,.rwt-ranking-noimage{width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:46px;font-weight:800;color:var(--rwt-blue-dark)}
.rwt-badge,.rwt-ranking-leader-badge{display:inline-block;padding:6px 10px;background:#d4a017;color:#fff;font-weight:800;border-radius:4px;margin-bottom:10px}
.rwt-leader-content h3,.rwt-ranking-leader h3{margin:0 0 10px;font-size:34px}
.rwt-leader-content h3 a,.rwt-player-link{color:var(--rwt-blue-dark);text-decoration:none;font-weight:800}
.rwt-meta-list,.rwt-ranking-leader-meta{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:12px}
.rwt-meta-pill{display:inline-flex;padding:7px 10px;border:1px solid var(--rwt-border);background:#f7fbff;border-radius:4px;font-weight:700}
.rwt-location,.rwt-flag-text{display:flex;align-items:center;gap:10px;line-height:1.4;flex-wrap:wrap}
.rwt-flag{width:20px;height:auto;border-radius:2px;box-shadow:0 0 0 1px rgba(16,61,114,.08)}
.rwt-quick-stats,.rwt-mini-stats{margin-top:16px;display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.rwt-quick-stats>div,.rwt-mini-stats>div{border:1px solid var(--rwt-border);background:#f7fbff;padding:14px;border-radius:4px}
.rwt-quick-stats span,.rwt-mini-stats span,.rwt-muted,.rwt-event-date,.rwt-event-item small{display:block;color:var(--rwt-muted);font-size:13px}
.rwt-quick-stats strong,.rwt-mini-stats strong{display:block;font-size:22px;margin-top:4px;color:var(--rwt-blue-dark)}
.rwt-mini-leader{display:grid;grid-template-columns:82px 1fr;gap:12px;align-items:center}
.rwt-mini-leader img{width:82px;height:100px;object-fit:cover;border:1px solid var(--rwt-border)}
.rwt-event-list{display:grid;gap:10px}
.rwt-event-item{display:block;padding:12px;border:1px solid var(--rwt-border);background:#f9fcff;text-decoration:none;color:var(--rwt-text);border-radius:4px}
.rwt-event-item strong{display:block;margin:4px 0}
.rwt-table-wrap,.rwt-ranking-table-wrap{overflow-x:auto}
.rwt-table{border:1px solid var(--rwt-border);background:#fff;min-width:100%}
.rwt-table-head,.rwt-table-row{display:grid;gap:0}
.rwt-rank-head,.rwt-rank-row{grid-template-columns:160px 210px 200px 120px 120px 160px 150px 140px;min-width:1260px}
.rwt-events-head,.rwt-events-row{grid-template-columns:130px 290px 160px 260px 140px 270px 150px;min-width:1400px}
.rwt-player-events-head,.rwt-player-events-row{grid-template-columns:130px 170px 260px 1.5fr 1.3fr 140px;min-width:1500px}
.rwt-event-results-head-individual,.rwt-event-results-row-individual{grid-template-columns:120px 220px 260px 180px 160px;min-width:940px}
.rwt-event-results-head-flying,.rwt-event-results-row-flying{grid-template-columns:120px 220px 320px 180px 160px;min-width:1000px}
.rwt-event-results-head-team,.rwt-event-results-row-team{grid-template-columns:120px 220px 260px 220px 180px 160px;min-width:1160px}
.rwt-ranking-head-small,.rwt-ranking-row-small{grid-template-columns:140px 240px 200px 160px 110px 170px 150px 140px;min-width:1310px}
.rwt-table-head{background:linear-gradient(180deg,#dcecff,#bfdcff);color:var(--rwt-blue-dark);font-weight:800}
.rwt-table-head>div{padding:16px 14px;border-right:1px solid rgba(16,61,114,.08)}
.rwt-table-row{border-top:1px solid #e7f0fa}
.rwt-cell{padding:16px 14px;display:flex;flex-direction:column;gap:8px;justify-content:center;min-width:0}
.rwt-place-pill{display:inline-flex;align-items:center;justify-content:center;width:max-content;min-width:58px;padding:8px 12px;border-radius:4px;background:#e8f3ff;color:var(--rwt-blue-dark);font-weight:800}
.rwt-medal{font-size:26px;line-height:1;display:inline-flex;align-items:center}
.rwt-empty{background:#fff;border:1px solid var(--rwt-border);border-radius:4px;padding:24px;color:var(--rwt-muted)}
.rwt-photo-wrap{border:1px solid var(--rwt-border);min-height:420px;display:flex;align-items:center;justify-content:center;background:linear-gradient(180deg,#f7fbff,#e6f0fb)}
.rwt-podium-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.rwt-podium-box{border:1px solid var(--rwt-border);border-radius:4px;padding:10px 6px;background:linear-gradient(180deg,#fff,#eef7ff);text-align:center;font-size:14px;min-width:0}
.rwt-podium-box strong{display:block;font-size:20px;line-height:1;color:var(--rwt-blue-dark)}
.rwt-podium-box span{display:block;margin-top:6px;font-size:12px;font-weight:700}
.rwt-podium-box em{display:block;margin-top:8px;font-style:normal;font-size:12px;color:var(--rwt-muted);overflow-wrap:anywhere}
.rwt-place-1{background:linear-gradient(180deg,#f7fbff,#dceeff)}
.rwt-place-2{background:linear-gradient(180deg,#ffffff,#edf5ff)}
.rwt-place-3{background:linear-gradient(180deg,#ffffff,#f3f8ff)}
.rwt-name-box{border:2px solid var(--rwt-border);background:linear-gradient(180deg,#fff,#eaf4ff);border-radius:4px;padding:18px 24px;text-align:center;font-size:30px;font-weight:800;color:var(--rwt-blue-dark);box-shadow:var(--rwt-shadow);margin-bottom:18px}
.rwt-data-list{display:grid;gap:12px}
.rwt-data-row{display:grid;grid-template-columns:240px 1fr;gap:16px;align-items:center;padding:12px 14px;border:1px solid var(--rwt-border);background:linear-gradient(180deg,#fff,#f7fbff);border-radius:4px}
.rwt-rank-link{color:var(--rwt-blue-dark);text-decoration:none;font-weight:800;border-bottom:1px solid rgba(16,61,114,.2)}
.rwt-rank-link:hover{color:var(--rwt-blue);border-bottom-color:var(--rwt-blue)}
.rwt-rank-pill{display:inline-block;width:max-content;padding:8px 12px;border-radius:4px;color:#fff;font-weight:700;font-size:13px;line-height:1.3}
.rwt-rank-gold{background:#d4a017}.rwt-rank-red{background:#d64b4b}.rwt-rank-blue{background:#2d77c7}.rwt-rank-ice{background:#61a8d8}.rwt-rank-silver{background:#7c90a8}.rwt-rank-default{background:#4b6c92}
.rwt-status{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:4px;font-size:13px;text-transform:uppercase;letter-spacing:.06em}
.rwt-status-active{background:#dff6ea;color:#157347}.rwt-status-inactive{background:#ffe5e5;color:#b02a37}
.rwt-ranking-actions{margin:0 0 16px;display:flex;gap:12px;flex-wrap:wrap}
.rwt-ranking-hub-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.rwt-ranking-hub-card{display:block;padding:20px;border:1px solid var(--rwt-border);background:linear-gradient(180deg,#fff,#f7fbff);text-decoration:none;color:var(--rwt-text);border-radius:4px;box-shadow:var(--rwt-shadow)}
.rwt-ranking-hub-title{display:block;font-weight:800;color:var(--rwt-blue-dark);margin-bottom:8px}
.rwt-ranking-hub-value{display:block;font-size:28px;color:var(--rwt-blue-dark)}
.rwt-ranking-hub-link{display:block;margin-top:10px;color:var(--rwt-blue);font-weight:700}
.rwt-ranking-leader{display:grid;grid-template-columns:180px 1fr;gap:20px;margin:0 0 18px;padding:18px;background:linear-gradient(180deg,#fff7df,#fff);border:1px solid #ecd38a;border-radius:4px}
.rwt-ranking-leader-image{width:180px;height:220px;overflow:hidden;border:1px solid var(--rwt-border);background:#fff}
.rwt-current-player-row{background:#eaf4ff !important}
.rwt-player-list{margin:0;padding-left:18px}
.rwt-generic-content{background:var(--rwt-card);border:1px solid var(--rwt-border);padding:24px;border-radius:4px;box-shadow:var(--rwt-shadow)}
@media (max-width:1024px){.rwt-hero-grid,.rwt-main-grid,.rwt-leader-grid{grid-template-columns:1fr}.rwt-leader-image{width:100%;height:340px}}
@media (max-width:900px){.rwt-ranking-hub-grid{grid-template-columns:1fr}.rwt-ranking-leader{grid-template-columns:1fr}.rwt-ranking-leader-image{width:100%;height:280px}}
@media (max-width:767px){.rwt-title-bar{font-size:24px;padding:14px 18px}.rwt-card-head,.rwt-section-head{flex-direction:column;align-items:flex-start}.rwt-quick-stats,.rwt-mini-stats{grid-template-columns:1fr}.rwt-data-row{grid-template-columns:1fr;gap:8px}.rwt-podium-grid{grid-template-columns:1fr}}


body.rwt-modal-open{overflow:hidden}
.rwt-ranking-search-toolbar{display:flex;justify-content:flex-end;margin:0 0 18px}
.rwt-ranking-modal[hidden]{display:none!important}
.rwt-ranking-modal{position:fixed;inset:0;z-index:99999}
.rwt-ranking-modal-backdrop{position:absolute;inset:0;background:rgba(16,61,114,.35);backdrop-filter:blur(2px)}
.rwt-ranking-modal-dialog{position:relative;z-index:2;max-width:980px;margin:4vh auto;background:var(--rwt-card);border:1px solid var(--rwt-border);box-shadow:var(--rwt-shadow);max-height:92vh;overflow:auto;padding:14px}
.rwt-ranking-modal-close{position:absolute;top:8px;right:10px;background:transparent;border:0;font-size:32px;line-height:1;color:var(--rwt-blue-dark);cursor:pointer}
.rwt-ranking-modal-section{border:1px solid var(--rwt-border);background:linear-gradient(180deg,#fafdff,#eef6ff);padding:12px;margin-bottom:12px}
.rwt-ranking-modal-title{text-align:center;font-size:28px;font-weight:800;color:var(--rwt-blue-dark);margin-bottom:12px}
.rwt-ranking-filters-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.rwt-filter-box{border:1px solid var(--rwt-border);background:#fff;padding:10px}
.rwt-filter-box label{display:block;color:var(--rwt-blue-dark);margin-bottom:6px}
.rwt-filter-box select,.rwt-filter-box input{width:100%;padding:10px;border:1px solid var(--rwt-border);background:#fff;color:var(--rwt-text);font:inherit}
.rwt-ranking-search-head,.rwt-ranking-search-row{grid-template-columns:130px 240px 180px 200px 220px;min-width:970px}
.rwt-ranking-explainer p{margin:0 0 10px;font-size:18px;line-height:1.45}
@media (max-width:900px){
  .rwt-ranking-filters-grid{grid-template-columns:1fr}
  .rwt-ranking-modal-dialog{margin:2vh 10px}
  .rwt-ranking-modal-title{font-size:22px}
}


/* v1.5.5 profile layout fixes */
.rwt-page{overflow-x:hidden}
.rwt-hero-card,.rwt-section,.rwt-hero{overflow:hidden}
.rwt-main-grid{
  display:grid;
  grid-template-columns:minmax(280px,360px) minmax(0,1fr);
  gap:18px;
  align-items:start;
}
.rwt-left-col,.rwt-right-col{min-width:0}
.rwt-photo-card,.rwt-podium-card,.rwt-data-card{width:100%;min-width:0}
.rwt-photo-wrap{
  min-height:420px;
  max-height:560px;
  overflow:hidden;
}
.rwt-photo-wrap img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.rwt-name-box{
  width:100%;
  min-width:0;
  font-size:clamp(26px,2.2vw,42px);
  line-height:1.15;
  overflow-wrap:anywhere;
}
.rwt-data-list{
  display:grid;
  gap:10px;
}
.rwt-data-row{
  display:grid;
  grid-template-columns:minmax(170px,240px) minmax(0,1fr);
  gap:14px;
  align-items:center;
}
.rwt-data-row > span,
.rwt-data-row > strong{
  min-width:0;
  overflow-wrap:anywhere;
}
.rwt-podium-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}
.rwt-podium-box{
  min-width:0;
  padding:10px 6px;
}
.rwt-mini-stats{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.rwt-mini-stats > div{
  min-width:0;
}

.rwt-podium-breakdown{
  margin-top:14px;
  display:grid;
  gap:10px;
}
.rwt-podium-breakdown .rwt-data-row{
  grid-template-columns:minmax(180px,1fr) auto;
  gap:18px;
  align-items:center;
}
.rwt-podium-breakdown .rwt-data-row > span{
  font-size:15px;
  line-height:1.4;
}
.rwt-podium-breakdown .rwt-data-row > strong{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
  white-space:nowrap;
  font-size:22px;
  line-height:1;
}
@media (max-width: 767px){
  .rwt-podium-breakdown .rwt-data-row{
    grid-template-columns:1fr;
    gap:10px;
  }
  .rwt-podium-breakdown .rwt-data-row > strong{
    justify-content:flex-start;
    font-size:20px;
  }
}
.rwt-table-wrap{
  overflow-x:auto;
  overflow-y:hidden;
}
.rwt-player-events-head,.rwt-player-events-row{
  grid-template-columns:130px 190px 280px minmax(260px,1.5fr) minmax(220px,1.2fr) 140px;
  min-width:1220px;
}
.rwt-player-events-row .rwt-cell,
.rwt-player-events-head > div{
  min-width:0;
  overflow-wrap:anywhere;
}
.rwt-cell small{
  overflow-wrap:anywhere;
}
.rwt-rank-pill{
  max-width:100%;
}
.rwt-location{
  min-width:0;
}
.rwt-location span{
  overflow-wrap:anywhere;
}
@media (max-width:1200px){
  .rwt-main-grid{
    grid-template-columns:minmax(260px,320px) minmax(0,1fr);
  }
  .rwt-data-row{
    grid-template-columns:minmax(150px,210px) minmax(0,1fr);
  }
}
@media (max-width:900px){
  .rwt-main-grid{
    grid-template-columns:1fr;
  }
  .rwt-photo-wrap{
    max-height:none;
    min-height:360px;
  }
  .rwt-data-row{
    grid-template-columns:1fr;
    gap:8px;
  }
  .rwt-name-box{
    font-size:30px;
  }
}


/* v1.6.0 UI overhaul */
.rwt-hero-grid{grid-template-columns:minmax(0,1.6fr) minmax(320px,0.9fr);gap:24px;align-items:start}
.rwt-leaders-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:18px}
.rwt-leader-card{background:#fff;border:1px solid #cfe0f5;box-shadow:0 8px 24px rgba(18,63,117,.07);padding:16px;display:flex;flex-direction:column;align-items:center;text-align:center;min-width:0;border-radius:8px}
.rwt-leader-card img{width:100%;max-width:180px;aspect-ratio:4/5;object-fit:cover;border-radius:6px;margin-bottom:12px}
.rwt-leader-medal{font-size:28px;line-height:1;margin-bottom:8px}
.rwt-leader-card h3{font-size:28px;line-height:1.1;margin:6px 0 10px;overflow-wrap:anywhere}
.rwt-leader-points{font-size:24px;font-weight:800;color:#184781;margin-bottom:10px}
.rwt-leader-substats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:100%;margin-top:8px}
.rwt-leader-substats > div{border:1px solid #cfe0f5;padding:10px;min-width:0}
.rwt-leader-substats span{display:block;font-size:13px;color:#5576a1}
.rwt-leader-substats strong{display:block;margin-top:4px;font-size:18px}
.rwt-main-grid{grid-template-columns:minmax(290px,360px) minmax(0,1fr)}
.rwt-photo-wrap{min-height:460px;max-height:620px}
.rwt-photo-wrap img{object-position:center}
.rwt-player-events-head,.rwt-player-events-row{grid-template-columns:120px 190px 280px minmax(240px,1fr) 170px;min-width:1000px}
.rwt-event-results-head,.rwt-event-results-row{grid-template-columns:110px 220px 180px 220px 170px 140px;min-width:1040px}
.rwt-player-events-head > div,.rwt-player-events-row > div,.rwt-event-results-head > div,.rwt-event-results-row > div{min-width:0;overflow-wrap:anywhere}
.rwt-table-row .rwt-button{min-width:112px;text-align:center}
@media (max-width:1100px){.rwt-hero-grid{grid-template-columns:1fr}.rwt-leaders-grid{grid-template-columns:1fr}}


/* v1.6.1 revert homepage leaders + latest events fix */
.rwt-leaders-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
  margin-top:18px;
  max-width:420px;
}
.rwt-leader-card{
  display:grid;
  grid-template-columns:110px minmax(0,1fr);
  gap:14px;
  align-items:start;
  text-align:left;
}
.rwt-leader-card img{
  width:110px;
  max-width:110px;
  aspect-ratio:4/5;
  margin-bottom:0;
}
.rwt-leader-media{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
}
.rwt-leader-medal{
  font-size:24px;
  margin-bottom:0;
}
.rwt-leader-body{
  min-width:0;
}
.rwt-leader-card h3{
  font-size:22px;
  margin:2px 0 8px;
}
.rwt-leader-points{
  font-size:18px;
  margin-bottom:8px;
}
.rwt-leader-substats{
  grid-template-columns:repeat(2,minmax(0,1fr));
  margin-top:10px;
}
.rwt-leader-substats > div{
  padding:8px;
}
.rwt-leader-substats strong{
  font-size:16px;
}
.rwt-location .rwt-flag,
.rwt-leader-card .rwt-flag{
  width:18px !important;
  height:12px !important;
  min-width:18px !important;
  max-width:18px !important;
  object-fit:cover;
  border-radius:2px;
}
.rwt-player-events-head,
.rwt-player-events-row{
  grid-template-columns:220px 160px 260px 120px minmax(220px,1fr) 150px;
  min-width:1130px;
}
.rwt-player-events-row .rwt-cell:first-child,
.rwt-player-events-head > div:first-child{
  padding-left:18px;
}
.rwt-player-events-row .rwt-cell:last-child,
.rwt-player-events-head > div:last-child{
  padding-right:18px;
}
.rwt-player-events-row .rwt-button{
  min-width:120px;
}
@media (max-width:1100px){
  .rwt-leaders-grid{
    max-width:none;
  }
}


/* v1.6.2 final table alignment fixes */
.rwt-rank-head,
.rwt-rank-row{
  grid-template-columns: 72px 220px 200px 110px 110px 150px 130px 120px !important;
  min-width: 1112px !important;
}

.rwt-events-head,
.rwt-events-row{
  grid-template-columns: 130px 235px 145px 260px 110px 240px 130px !important;
  min-width: 1250px !important;
}

.rwt-player-events-head,
.rwt-player-events-row{
  grid-template-columns: 120px 160px 250px minmax(240px,1fr) 220px 130px !important;
  min-width: 1120px !important;
}

.rwt-event-results-head-individual,
.rwt-event-results-row-individual,
.rwt-event-results-head-flying,
.rwt-event-results-row-flying{
  grid-template-columns: 100px 220px 260px 160px 140px !important;
  min-width: 880px !important;
}

.rwt-event-results-head-team,
.rwt-event-results-row-team{
  grid-template-columns: 100px 210px 260px 220px 160px 140px !important;
  min-width: 1090px !important;
}

.rwt-rank-head > div,
.rwt-rank-row > .rwt-cell,
.rwt-events-head > div,
.rwt-events-row > .rwt-cell,
.rwt-player-events-head > div,
.rwt-player-events-row > .rwt-cell,
.rwt-event-results-head-individual > div,
.rwt-event-results-row-individual > .rwt-cell,
.rwt-event-results-head-flying > div,
.rwt-event-results-row-flying > .rwt-cell,
.rwt-event-results-head-team > div,
.rwt-event-results-row-team > .rwt-cell{
  min-width: 0;
  overflow-wrap: anywhere;
}

.rwt-events-row > .rwt-cell:last-child,
.rwt-events-head > div:last-child,
.rwt-player-events-row > .rwt-cell:last-child,
.rwt-player-events-head > div:last-child,
.rwt-event-results-row-individual > .rwt-cell:last-child,
.rwt-event-results-head-individual > div:last-child,
.rwt-event-results-row-flying > .rwt-cell:last-child,
.rwt-event-results-head-flying > div:last-child,
.rwt-event-results-row-team > .rwt-cell:last-child,
.rwt-event-results-head-team > div:last-child{
  justify-content: center;
  align-items: center;
  text-align: center;
}

.rwt-events-row .rwt-button,
.rwt-player-events-row .rwt-button,
.rwt-event-results-row-individual .rwt-button,
.rwt-event-results-row-flying .rwt-button,
.rwt-event-results-row-team .rwt-button{
  width: 120px;
  min-width: 120px;
  max-width: 120px;
  align-self: center;
}

.rwt-table-wrap{
  overflow-x: auto;
  overflow-y: hidden;
}

.rwt-table{
  width: max-content;
  min-width: 100%;
}

.rwt-location{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
}

.rwt-location span{
  overflow-wrap:anywhere;
}

.rwt-table-head > div,
.rwt-cell{
  box-sizing:border-box;
}


/* v1.6.3 home top table + leaders cleanup */
.rwt-rank-head,
.rwt-rank-row{
  grid-template-columns: 72px 220px 200px 110px 110px 150px 130px 120px !important;
  min-width: 1112px !important;
}

.rwt-rank-head > div:nth-child(9),
.rwt-rank-row > .rwt-cell:nth-child(9){
  display:none !important;
}

.rwt-rank-table{
  width:auto !important;
  min-width:0 !important;
}

.rwt-section .rwt-table-wrap .rwt-rank-table .rwt-table-head,
.rwt-section .rwt-table-wrap .rwt-rank-table .rwt-table-row{
  width:1112px;
}

.rwt-feature-card{
  padding:18px;
}

.rwt-leaders-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
  max-width:520px;
  margin-top:10px;
}

.rwt-leader-card{
  display:grid;
  grid-template-columns:110px minmax(0,1fr);
  gap:16px;
  align-items:center;
  padding:16px;
  background:#fff;
  border:1px solid #cfe0f5;
  border-radius:8px;
  box-shadow:0 4px 14px rgba(18,63,117,.05);
}

.rwt-leader-media{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
}

.rwt-leader-card img{
  width:110px;
  height:136px;
  max-width:110px;
  object-fit:cover;
  border-radius:6px;
  margin:0;
}

.rwt-leader-body{
  min-width:0;
}

.rwt-leader-card h3{
  font-size:22px;
  line-height:1.15;
  margin:0 0 6px;
}

.rwt-leader-points{
  font-size:17px;
  font-weight:800;
  margin-bottom:6px;
}

.rwt-leader-substats{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin-top:10px;
}

.rwt-leader-substats > div{
  padding:8px 10px;
  border:1px solid #cfe0f5;
  border-radius:6px;
  background:#f8fbff;
}

.rwt-leader-substats span{
  display:block;
  font-size:12px;
  color:#5576a1;
  margin-bottom:3px;
}

.rwt-leader-substats strong{
  font-size:15px;
  line-height:1.2;
}

.rwt-leader-card .rwt-location{
  margin-top:2px;
}

.rwt-leader-card .rwt-flag{
  width:16px !important;
  height:11px !important;
  min-width:16px !important;
  max-width:16px !important;
  object-fit:cover;
  border-radius:2px;
}

@media (max-width:900px){
  .rwt-leader-card{
    grid-template-columns:1fr;
    text-align:left;
  }
  .rwt-leader-media{
    align-items:flex-start;
  }
}


/* v1.6.4 width fixes */
.rwt-rank-table{
  width:100% !important;
  min-width:100% !important;
}
.rwt-rank-table .rwt-table-head,
.rwt-rank-table .rwt-table-row{
  width:100% !important;
}
.rwt-rank-head,
.rwt-rank-row{
  grid-template-columns:72px 1.3fr 1.15fr 110px 110px 150px 130px 120px !important;
  min-width:0 !important;
}
.rwt-rank-table .rwt-table-body{
  width:100%;
}

.rwt-feature-card{
  display:flex;
  flex-direction:column;
}
.rwt-leaders-grid{
  width:100%;
  max-width:none !important;
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
}
.rwt-leader-card{
  width:100%;
  max-width:none !important;
  grid-template-columns:110px minmax(0,1fr) !important;
  align-items:center;
}
.rwt-leader-body{
  width:100%;
}
.rwt-leader-substats{
  width:100%;
  grid-template-columns:repeat(2,minmax(180px,1fr)) !important;
}
.rwt-leader-substats > div{
  min-width:0;
}
@media (max-width:900px){
  .rwt-rank-head,
  .rwt-rank-row{
    min-width:960px !important;
    grid-template-columns:72px 220px 200px 110px 110px 150px 130px 120px !important;
  }
  .rwt-leader-card{
    grid-template-columns:1fr !important;
  }
  .rwt-leader-substats{
    grid-template-columns:1fr 1fr !important;
  }
}


/* v1.7.9 search modal cleanup */
.rwt-ranking-modal-dialog{
  max-width:960px;
  padding:10px;
}
.rwt-ranking-modal-section{
  padding:10px 12px;
  margin-bottom:10px;
}
.rwt-ranking-filters-grid{
  gap:10px;
}
.rwt-ranking-modal-section:first-of-type{
  margin-top:14px;
}
.rwt-ranking-search-toolbar{
  display:flex;
  justify-content:flex-end;
  margin:0 0 18px;
}


/* v1.7.12 nationality filter with flags */
.rwt-flag-select{position:relative;}
.rwt-flag-select-toggle{
  width:100%;
  min-height:40px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 12px;
  border:1px solid #c6d9f1;
  background:#fff;
  color:#24496f;
  cursor:pointer;
}
.rwt-flag-select-value{
  display:flex;
  align-items:center;
  gap:8px;
}
.rwt-flag-select-menu{
  position:absolute;
  top:calc(100% + 4px);
  left:0;
  right:0;
  max-height:280px;
  overflow:auto;
  background:#fff;
  border:1px solid #c6d9f1;
  box-shadow:0 8px 24px rgba(0,0,0,.08);
  z-index:50;
}
.rwt-flag-select-option{
  width:100%;
  display:flex;
  align-items:center;
  gap:8px;
  padding:9px 12px;
  background:#fff;
  border:0;
  border-bottom:1px solid #eef4fb;
  text-align:left;
  cursor:pointer;
  color:#24496f;
}
.rwt-flag-select-option:hover,
.rwt-flag-select-option.is-active{
  background:#f3f8ff;
}
.rwt-flag-select .rwt-flag{
  width:18px !important;
  height:12px !important;
  min-width:18px !important;
  max-width:18px !important;
  object-fit:cover;
  border-radius:2px;
}


/* v1.7.13 ranking popup centering + close button */
.rwt-ranking-modal{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
}

.rwt-ranking-modal[hidden]{
  display:none !important;
}

.rwt-ranking-modal-dialog{
  position:relative;
  width:min(980px, calc(100vw - 48px));
  max-width:980px;
  max-height:calc(100vh - 48px);
  margin:0 auto;
  overflow:auto;
  border-radius:10px;
  box-shadow:0 18px 50px rgba(15, 41, 76, .22);
}

.rwt-ranking-modal-close{
  position:absolute;
  top:14px;
  right:14px;
  width:38px;
  height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid #b7cdea;
  border-radius:8px;
  background:#ffffff;
  color:#1d4f8b;
  font-size:26px;
  line-height:1;
  font-weight:700;
  cursor:pointer;
  z-index:20;
  transition:all .18s ease;
}

.rwt-ranking-modal-close:hover{
  background:#edf5ff;
  border-color:#94b8e6;
  transform:scale(1.03);
}

.rwt-ranking-modal-close:focus{
  outline:2px solid #7aa9e6;
  outline-offset:2px;
}

.rwt-ranking-modal-section:first-of-type{
  margin-top:0;
  padding-top:18px;
  padding-right:58px;
}

@media (max-width: 767px){
  .rwt-ranking-modal{
    padding:12px;
    align-items:flex-start;
  }

  .rwt-ranking-modal-dialog{
    width:calc(100vw - 24px);
    max-height:calc(100vh - 24px);
    border-radius:8px;
  }

  .rwt-ranking-modal-close{
    top:10px;
    right:10px;
    width:34px;
    height:34px;
    font-size:22px;
  }

  .rwt-ranking-modal-section:first-of-type{
    padding-right:48px;
  }
}


/* v1.8.0 disciplines + ads */
.rwt-ad-slot{
  margin:18px 0;
  padding:12px;
  border:1px dashed var(--rwt-border);
  background:#fff;
}


/* v1.8.3 sporty winter background + footer credit */
html, body{
  min-height:100%;
}

body{
  background:
    linear-gradient(135deg, rgba(6,59,120,.10) 0%, rgba(0,153,255,.05) 28%, rgba(255,255,255,.06) 50%, rgba(18,94,180,.07) 72%, rgba(7,46,94,.12) 100%),
    linear-gradient(180deg, #f7fbff 0%, #eef6ff 38%, #e6f0fb 100%);
  background-attachment: fixed;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:0;
  background:
    linear-gradient(155deg, transparent 0 44%, rgba(12,90,172,.05) 44% 46%, transparent 46% 100%),
    linear-gradient(25deg, transparent 0 62%, rgba(255,255,255,.22) 62% 63%, transparent 63% 100%),
    linear-gradient(160deg, transparent 0 72%, rgba(19,101,186,.05) 72% 74%, transparent 74% 100%);
  opacity:.75;
}

.rwt-site,
.rwt-page,
.rwt-ranking-modal{
  position:relative;
  z-index:1;
}

.rwt-footer{
  position:relative;
  z-index:1;
  background:linear-gradient(180deg, rgba(255,255,255,.92) 0%, rgba(240,247,255,.96) 100%);
  border-top:1px solid rgba(133,170,213,.35);
  backdrop-filter: blur(6px);
}

.rwt-footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  padding:18px 0;
}

.rwt-footer-main{
  color:#173d68;
  font-weight:600;
}

.rwt-footer-credit{
  display:flex;
  align-items:center;
  gap:10px;
  color:#173d68;
  font-size:15px;
}

.rwt-lamaweb-link{
  display:inline-flex;
  align-items:center;
  text-decoration:none;
}

.rwt-lamaweb-link img{
  height:20px;
  width:auto;
  display:block;
}

@media (max-width: 767px){
  .rwt-footer-inner{
    flex-direction:column;
    align-items:flex-start;
  }
}


/* v1.8.4 popup search overlay hardening */
.rwt-ranking-modal{
  position:fixed !important;
  inset:0 !important;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(10, 24, 44, .48);
  z-index:999999;
  padding:24px;
}
.rwt-ranking-modal[hidden]{
  display:none !important;
}
.rwt-ranking-modal-dialog{
  background:#fff;
}

.rwt-site-header{background:linear-gradient(180deg,#ffffff,#eef6ff);}


/* v1.8.7 mobile layout fixes */
img{
  max-width:100%;
  height:auto;
}

.rwt-page,
.rwt-container,
.rwt-section,
.rwt-card,
.rwt-table-wrap,
.rwt-ranking-modal-dialog{
  box-sizing:border-box;
}

@media (max-width: 1024px){
  .rwt-home-grid,
  .rwt-profile-top,
  .rwt-ranking-hub-grid,
  .rwt-profile-grid,
  .rwt-two-col,
  .rwt-main-grid{
    grid-template-columns:1fr !important;
  }

  .rwt-left-col,
  .rwt-right-col,
  .rwt-sidebar,
  .rwt-main-col{
    width:100% !important;
    min-width:0 !important;
  }

  .rwt-ranking-leader-card,
  .rwt-leader-card,
  .rwt-top3-card,
  .rwt-profile-header,
  .rwt-profile-meta{
    width:100% !important;
    max-width:100% !important;
  }
}

@media (max-width: 767px){
  html, body{
    overflow-x:hidden;
  }

  body{
    font-size:15px;
  }

  .rwt-container{
    width:min(100% - 20px, 100%) !important;
    max-width:100% !important;
    padding-left:0 !important;
    padding-right:0 !important;
  }

  .rwt-page{
    padding:12px 0 20px !important;
  }

  .rwt-section{
    padding:12px !important;
    margin-bottom:14px !important;
  }

  .rwt-section-head{
    display:block !important;
  }

  .rwt-section-head h1,
  .rwt-section-head h2,
  .rwt-section-head h3{
    font-size:1.9rem !important;
    line-height:1.15 !important;
    margin-bottom:10px !important;
    word-break:break-word;
  }

  .rwt-button,
  .rwt-button-small,
  .rwt-section-head .button,
  .rwt-section-head a{
    width:100%;
    justify-content:center;
    text-align:center;
  }

  .rwt-photo-wrap,
  .rwt-photo-card,
  .rwt-photo-card img,
  .rwt-profile-photo{
    width:100% !important;
    max-width:100% !important;
  }

  .rwt-podium-grid,
  .rwt-mini-stats,
  .rwt-ranking-hub-grid,
  .rwt-profile-stats-grid,
  .rwt-leader-stats,
  .rwt-top3-grid{
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    gap:10px !important;
  }

  .rwt-podium-box,
  .rwt-mini-stats > div,
  .rwt-ranking-hub-card,
  .rwt-profile-stat,
  .rwt-leader-stat{
    min-width:0 !important;
    width:100% !important;
  }

  .rwt-profile-title,
  .rwt-player-name,
  .rwt-ranking-title,
  .rwt-leader-name{
    font-size:2rem !important;
    line-height:1.1 !important;
    word-break:break-word;
  }

  .rwt-meta-table,
  .rwt-profile-meta-table,
  .rwt-rows,
  .rwt-data-table{
    display:block !important;
  }

  .rwt-meta-row,
  .rwt-profile-meta-row{
    display:block !important;
    padding:10px 0 !important;
  }

  .rwt-meta-row > div:first-child,
  .rwt-profile-meta-row > div:first-child{
    margin-bottom:4px;
    font-weight:700;
  }

  .rwt-table-wrap{
    overflow-x:auto !important;
    -webkit-overflow-scrolling:touch;
    padding-bottom:4px;
  }

  .rwt-table,
  .rwt-rank-table,
  .rwt-events-table{
    min-width:760px !important;
  }

  .rwt-table-head,
  .rwt-table-row{
    min-width:760px !important;
  }

  .rwt-table-head > div,
  .rwt-table-row > div,
  .rwt-cell{
    min-width:0;
    word-break:break-word;
  }

  .rwt-events-head > div:nth-child(1),
  .rwt-events-row > div:nth-child(1){
    min-width:110px;
  }

  .rwt-events-head > div:nth-child(2),
  .rwt-events-row > div:nth-child(2){
    min-width:220px;
  }

  .rwt-events-head > div:nth-child(3),
  .rwt-events-row > div:nth-child(3){
    min-width:180px;
  }

  .rwt-events-head > div:nth-child(4),
  .rwt-events-row > div:nth-child(4){
    min-width:180px;
  }

  .rwt-events-head > div:nth-child(5),
  .rwt-events-row > div:nth-child(5){
    min-width:150px;
  }

  .rwt-events-head > div:nth-child(6),
  .rwt-events-row > div:nth-child(6){
    min-width:130px;
  }

  .rwt-events-head > div:nth-child(7),
  .rwt-events-row > div:nth-child(7){
    min-width:120px;
  }

  .rwt-rank-head > div:nth-child(1),
  .rwt-rank-row > div:nth-child(1){
    min-width:120px;
  }

  .rwt-rank-head > div:nth-child(2),
  .rwt-rank-row > div:nth-child(2){
    min-width:160px;
  }

  .rwt-rank-head > div:nth-child(3),
  .rwt-rank-row > div:nth-child(3){
    min-width:160px;
  }

  .rwt-rank-head > div:nth-child(4),
  .rwt-rank-row > div:nth-child(4),
  .rwt-rank-head > div:nth-child(5),
  .rwt-rank-row > div:nth-child(5),
  .rwt-rank-head > div:nth-child(6),
  .rwt-rank-row > div:nth-child(6),
  .rwt-rank-head > div:nth-child(7),
  .rwt-rank-row > div:nth-child(7),
  .rwt-rank-head > div:nth-child(8),
  .rwt-rank-row > div:nth-child(8){
    min-width:120px;
  }

  .rwt-ranking-modal{
    padding:10px !important;
    align-items:flex-start !important;
  }

  .rwt-ranking-modal-dialog{
    width:calc(100vw - 20px) !important;
    max-width:calc(100vw - 20px) !important;
    max-height:calc(100vh - 20px) !important;
    margin:0 auto !important;
    border-radius:10px !important;
  }

  .rwt-ranking-modal-section{
    padding:10px !important;
  }

  .rwt-ranking-filters-grid{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:10px !important;
  }

  .rwt-filter-box,
  .rwt-filter-box input,
  .rwt-filter-box select,
  .rwt-flag-select,
  .rwt-flag-select-toggle{
    width:100% !important;
    min-width:0 !important;
  }

  .rwt-footer-inner{
    gap:8px !important;
  }

  .rwt-footer-main,
  .rwt-footer-credit{
    width:100%;
  }
}

@media (max-width: 520px){
  .rwt-podium-grid,
  .rwt-mini-stats,
  .rwt-ranking-hub-grid,
  .rwt-profile-stats-grid,
  .rwt-leader-stats,
  .rwt-top3-grid{
    grid-template-columns:1fr !important;
  }

  .rwt-profile-title,
  .rwt-player-name,
  .rwt-ranking-title,
  .rwt-leader-name{
    font-size:1.7rem !important;
  }

  .rwt-section-head h1,
  .rwt-section-head h2,
  .rwt-section-head h3{
    font-size:1.6rem !important;
  }
}

/* v1.8.8 mobile table header background fix */
@media (max-width: 767px){
  .rwt-table,
  .rwt-rank-table,
  .rwt-events-table{
    width:max-content !important;
    min-width:760px !important;
  }

  .rwt-rank-table .rwt-table-head,
  .rwt-rank-table .rwt-table-row,
  .rwt-events-table .rwt-table-head,
  .rwt-events-table .rwt-table-row,
  .rwt-table .rwt-table-head,
  .rwt-table .rwt-table-row{
    width:max-content !important;
    min-width:760px !important;
  }

  .rwt-table-head{
    background:linear-gradient(180deg,#dcecff,#bfdcff) !important;
  }
}


/* v1.9.1 logo header */
.rwt-brand-link{display:inline-flex;align-items:center;text-decoration:none;max-width:100%}
.rwt-default-logo{display:block;max-width:min(100%,520px);height:auto}
.custom-logo-link{display:inline-flex;align-items:center}
.custom-logo{display:block;max-height:84px;width:auto}
@media (max-width:767px){
  .rwt-header-inner{padding:10px 0;gap:12px;flex-wrap:wrap}
  .rwt-default-logo{max-width:320px}
  .custom-logo{max-height:58px}
}


/* v1.9.4 home ranking columns + css viewer access */
.home .rwt-rank-table .rwt-rank-head,
.home .rwt-rank-table .rwt-rank-row,
.front-page .rwt-rank-table .rwt-rank-head,
.front-page .rwt-rank-table .rwt-rank-row,
body.home .rwt-rank-table .rwt-rank-head,
body.home .rwt-rank-table .rwt-rank-row{
  grid-template-columns: 108px 184px 200px 110px 110px 150px 130px 120px !important;
  min-width: 1112px !important;
}

.home .rwt-rank-table .rwt-table-head > div:first-child,
.home .rwt-rank-table .rwt-table-row > .rwt-cell:first-child,
.front-page .rwt-rank-table .rwt-table-head > div:first-child,
.front-page .rwt-rank-table .rwt-table-row > .rwt-cell:first-child,
body.home .rwt-rank-table .rwt-table-head > div:first-child,
body.home .rwt-rank-table .rwt-table-row > .rwt-cell:first-child{
  white-space: nowrap;
}

.home .rwt-rank-table .rwt-table-head > div:nth-child(2),
.home .rwt-rank-table .rwt-table-row > .rwt-cell:nth-child(2),
.front-page .rwt-rank-table .rwt-table-head > div:nth-child(2),
.front-page .rwt-rank-table .rwt-table-row > .rwt-cell:nth-child(2),
body.home .rwt-rank-table .rwt-table-head > div:nth-child(2),
body.home .rwt-rank-table .rwt-table-row > .rwt-cell:nth-child(2){
  min-width: 0;
}


/* v1.9.5 homepage ranking column fixes */
.rwt-section .rwt-rank-head,
.rwt-section .rwt-rank-row{
  grid-template-columns:110px 185px 210px 138px 110px 150px 130px 120px;
  min-width:1153px;
}
.rwt-section .rwt-rank-head > div,
.rwt-section .rwt-rank-row > .rwt-cell{
  min-width:0;
}
.rwt-section .rwt-rank-head > div{
  overflow-wrap:normal;
  word-break:normal;
}
.rwt-section .rwt-rank-head > div:nth-child(4){
  white-space:nowrap;
}
.rwt-section .rwt-rank-row .rwt-cell strong,
.rwt-section .rwt-rank-row .rwt-cell span,
.rwt-section .rwt-rank-row .rwt-player-link{
  overflow-wrap:anywhere;
}
.rwt-section .rwt-rank-row .rwt-cell:last-child,
.rwt-section .rwt-rank-head > div:last-child{
  border-right:0;
}


/* v1.9.7 homepage events coefficient nowrap fix */
.home .rwt-events-head,
.home .rwt-events-row,
.front-page .rwt-events-head,
.front-page .rwt-events-row,
body.home .rwt-events-head,
body.home .rwt-events-row{
  grid-template-columns:130px 235px 145px 260px 150px 240px 130px !important;
  min-width:1290px !important;
}

.home .rwt-events-head > div:nth-child(5),
.front-page .rwt-events-head > div:nth-child(5),
body.home .rwt-events-head > div:nth-child(5),
.home .rwt-events-row > .rwt-cell:nth-child(5),
.front-page .rwt-events-row > .rwt-cell:nth-child(5),
body.home .rwt-events-row > .rwt-cell:nth-child(5){
  white-space:nowrap !important;
}


/* v1.9.9 sticky footer */
html{height:100%;}
body{min-height:100vh;display:flex;flex-direction:column;}
body > main,
body > .rwt-page,
body > .rwt-default-page{flex:1 0 auto;}
.rwt-footer{margin-top:auto;background:linear-gradient(180deg,#fff,#eef6ff);border-top:1px solid var(--rwt-border);padding:16px 0;color:var(--rwt-muted);}
.rwt-footer-inner{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;}
.rwt-footer-main{font-weight:700;color:var(--rwt-blue-dark);}
.rwt-footer-credit{display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
.rwt-lamaweb-link img{display:block;max-height:28px;width:auto;}
@media (max-width:767px){
  .rwt-footer-inner{flex-direction:column;align-items:flex-start;}
}


/* v2.0.0 footer + header + admin coefficients */
.rwt-site-header{
  position:relative;
  z-index:200;
  isolation:isolate;
}
.rwt-header-inner{
  padding:10px 0;
}
.rwt-brand,
.rwt-brand-link,
.custom-logo-link{
  position:relative;
  z-index:201;
}
.rwt-default-logo,
.custom-logo{
  display:block;
  max-height:120px;
  width:auto;
}

.rwt-footer{
  padding:8px 0 !important;
}
.rwt-footer-inner{
  padding:8px 0 !important;
  gap:10px !important;
}
.rwt-footer-main,
.rwt-footer-credit{
  font-size:14px;
  line-height:1.25;
}
.rwt-lamaweb-link img{
  max-height:22px !important;
}

@media (max-width: 767px){
  .rwt-default-logo,
  .custom-logo{
    max-height:88px;
  }
  .rwt-header-inner{
    padding:8px 0;
  }
}


/* v2.0.1 mobile layout cleanup */
@media (max-width: 767px){
  html,body{overflow-x:hidden;}

  .rwt-site-header{z-index:500;}
  .rwt-header-inner{
    padding:8px 0;
    gap:10px;
    align-items:flex-start;
  }
  .rwt-brand{width:100%;}
  .rwt-brand-link{max-width:100%;}
  .rwt-default-logo,.custom-logo{
    max-height:72px !important;
    width:auto;
    max-width:min(100%, 280px);
  }
  .rwt-nav{width:100%;}
  .rwt-nav ul{
    flex-wrap:wrap;
    gap:8px 12px;
  }

  .rwt-page{
    margin:12px auto 24px;
    padding:0 10px 20px !important;
  }

  .rwt-hero,.rwt-section,.rwt-hero-card{
    padding:12px !important;
    margin-bottom:14px !important;
  }

  .rwt-feature-card,.rwt-side-card,.rwt-card{
    padding:12px;
  }

  .rwt-title-bar{
    font-size:18px !important;
    line-height:1.2;
    padding:12px 14px !important;
    margin-bottom:14px;
  }

  .rwt-card-head,.rwt-section-head{
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
    margin-bottom:12px;
  }

  .rwt-card-head h2,.rwt-card-head h3,.rwt-section-head h2,.rwt-card h3{
    font-size:16px !important;
    line-height:1.25 !important;
    margin:0;
  }

  .rwt-button,.rwt-button-small,.rwt-card-head .rwt-button,.rwt-section-head .rwt-button,.rwt-event-item .rwt-button{
    width:auto !important;
    min-width:0 !important;
    max-width:100%;
    padding:8px 12px;
    font-size:14px;
  }

  .rwt-hero-grid,.rwt-side-stack,.rwt-main-grid,.rwt-leader-grid{
    grid-template-columns:1fr !important;
    gap:14px;
  }

  .rwt-leaders-grid{
    max-width:none;
    gap:12px;
    margin-top:8px;
  }

  .rwt-leader-card{
    grid-template-columns:78px minmax(0,1fr);
    gap:12px;
    padding:12px;
    align-items:start;
  }

  .rwt-leader-card img{
    width:78px;
    height:98px;
    max-width:78px;
  }

  .rwt-leader-medal{font-size:20px;}
  .rwt-leader-card h3{font-size:18px !important;}
  .rwt-leader-points{font-size:16px;}
  .rwt-leader-substats{grid-template-columns:1fr;gap:8px;}
  .rwt-leader-substats > div{padding:8px;}

  .rwt-mini-leader{
    grid-template-columns:68px minmax(0,1fr);
    gap:10px;
  }

  .rwt-mini-leader img{
    width:68px;
    height:82px;
  }

  .rwt-event-list{gap:8px;}
  .rwt-event-item{padding:10px;}

  .rwt-table-wrap{
    margin:0 -12px;
    padding:0 12px 4px;
  }

  .rwt-table-head > div,.rwt-cell{
    padding:12px 10px;
    font-size:14px;
  }

  .rwt-footer{padding:6px 0 !important;}
  .rwt-footer-inner{padding:6px 0 !important;gap:6px !important;}
  .rwt-footer-main,.rwt-footer-credit{font-size:12px;}
  .rwt-lamaweb-link img{max-height:18px !important;}
}

@media (max-width: 480px){
  .rwt-default-logo,.custom-logo{max-height:64px !important;max-width:220px;}
  .rwt-title-bar{font-size:17px !important;}
  .rwt-card-head h2,.rwt-card-head h3,.rwt-section-head h2,.rwt-card h3{font-size:15px !important;}
  .rwt-leader-card{grid-template-columns:70px minmax(0,1fr);}
  .rwt-leader-card img{width:70px;height:88px;max-width:70px;}
}


/* v2.0.3 mobile viewport lock + table-only horizontal scroll */
@media (max-width: 767px){
  html,
  body{
    width:100%;
    max-width:100%;
    overflow-x:hidden !important;
  }

  body{
    position:relative;
  }

  .rwt-page,
  .rwt-site-main,
  .rwt-content,
  .rwt-main-grid,
  .rwt-home-grid,
  .rwt-profile-grid,
  .rwt-ranking-hub-grid,
  .rwt-profile-top,
  .rwt-two-col,
  .rwt-hero,
  .rwt-hero-card,
  .rwt-section,
  .rwt-card{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    margin-left:auto !important;
    margin-right:auto !important;
    box-sizing:border-box !important;
    overflow-x:hidden !important;
  }

  .rwt-container{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    margin-left:auto !important;
    margin-right:auto !important;
    padding-left:12px !important;
    padding-right:12px !important;
    box-sizing:border-box !important;
  }

  .rwt-section,
  .rwt-card,
  .rwt-hero-card{
    padding-left:10px !important;
    padding-right:10px !important;
  }

  .rwt-table-wrap,
  .rwt-ranking-table-wrap{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    margin:0 !important;
    padding:0 0 6px 0 !important;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    overscroll-behavior-x:contain;
    -webkit-overflow-scrolling:touch;
    touch-action:pan-x;
  }

  .rwt-table,
  .rwt-rank-table,
  .rwt-events-table,
  .rwt-player-events-table,
  .rwt-event-results-table{
    width:max-content !important;
    min-width:760px !important;
    max-width:none !important;
  }

  .rwt-table-head,
  .rwt-table-row,
  .rwt-rank-head,
  .rwt-rank-row,
  .rwt-events-head,
  .rwt-events-row,
  .rwt-player-events-head,
  .rwt-player-events-row,
  .rwt-event-results-head,
  .rwt-event-results-row{
    width:max-content !important;
    min-width:760px !important;
  }

  .rwt-title-bar,
  .rwt-section-head,
  .rwt-card-head{
    width:100% !important;
    max-width:100% !important;
  }
}


/* v2.0.4 mobile popup overlay final fix */
.rwt-ranking-modal{position:fixed !important; inset:0 !important; z-index:99999 !important; display:flex !important; align-items:center !important; justify-content:center !important;}
.rwt-ranking-modal-backdrop{position:absolute !important; inset:0 !important; z-index:1 !important;}
.rwt-ranking-modal-dialog{position:relative !important; z-index:2 !important; width:min(980px, calc(100vw - 24px)) !important; max-width:min(980px, calc(100vw - 24px)) !important; max-height:calc(100vh - 24px) !important; margin:0 !important;}
@media (max-width: 768px){
  .rwt-ranking-modal{padding:12px !important; align-items:center !important; justify-content:center !important;}
  .rwt-ranking-modal-dialog{width:calc(100vw - 24px) !important; max-width:calc(100vw - 24px) !important; max-height:calc(100vh - 24px) !important; margin:0 !important; border-radius:10px !important;}
}


/* v2.0.4 athlete profile mobile fixes */
@media (max-width: 767px){
  .single-zawodnik .rwt-photo-wrap{
    min-height:260px !important;
    max-height:320px !important;
  }

  .single-zawodnik .rwt-table-wrap{
    overflow-x:auto !important;
    -webkit-overflow-scrolling:touch;
  }

  .single-zawodnik .rwt-player-events-table{
    min-width:1000px !important;
  }

  .single-zawodnik .rwt-player-events-head,
  .single-zawodnik .rwt-player-events-row{
    grid-template-columns:120px 160px 210px 240px 280px 130px !important;
    width:max-content !important;
    min-width:1140px !important;
  }
}


/* v2.0.5 ranking order + popup overlay fix */
.rwt-ranking-modal{position:fixed !important;inset:0 !important;z-index:2147483000 !important;padding:24px !important;display:flex !important;align-items:center !important;justify-content:center !important;}
.rwt-ranking-modal-backdrop{position:fixed !important;inset:0 !important;z-index:1 !important;}
.rwt-ranking-modal-dialog{position:fixed !important;left:50% !important;top:50% !important;transform:translate(-50%,-50%) !important;z-index:2 !important;width:min(980px, calc(100vw - 48px)) !important;max-width:min(980px, calc(100vw - 48px)) !important;max-height:calc(100vh - 48px) !important;margin:0 !important;overflow:auto !important;}
@media (max-width: 768px){.rwt-ranking-modal{padding:12px !important;}.rwt-ranking-modal-dialog{width:calc(100vw - 24px) !important;max-width:calc(100vw - 24px) !important;max-height:calc(100vh - 24px) !important;}}


/* v2.0.6 popup above header + keep event places */
.rwt-site-header{z-index:100 !important;}
.rwt-ranking-modal{z-index:1000 !important;}
.rwt-ranking-modal-dialog{z-index:1001 !important;}


/* v2.0.7 popup over header + hide result city fields */
.rwt-site-header,
.rwt-site-header *,
.rwt-brand,
.rwt-brand-link,
.custom-logo-link{
  z-index:0 !important;
}
.rwt-site-header{
  position:relative !important;
  isolation:auto !important;
}
.rwt-ranking-modal{
  z-index:2147483647 !important;
}
.rwt-ranking-modal-backdrop{
  z-index:1 !important;
}
.rwt-ranking-modal-dialog{
  z-index:2 !important;
}


/* v2.0.8 popup stacking + event table width + podium medal alignment */
.rwt-site-header,
.rwt-site-header *{
  z-index:auto !important;
}
.rwt-site-header{
  position:relative !important;
  z-index:1 !important;
}
.rwt-ranking-modal{
  z-index:2147483647 !important;
}
.rwt-ranking-modal-dialog{
  z-index:2147483647 !important;
}
.rwt-event-results-table{
  width:auto !important;
  min-width:0 !important;
}
.rwt-event-results-head-individual,
.rwt-event-results-row-individual{
  width:880px;
}
.rwt-event-results-head-flying,
.rwt-event-results-row-flying{
  width:880px;
}
.rwt-event-results-head-team,
.rwt-event-results-row-team{
  width:1090px;
}
.rwt-podium-breakdown .rwt-data-row{
  grid-template-columns:minmax(0,1fr) auto !important;
  gap:20px !important;
}
.rwt-podium-medals{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:14px !important;
  white-space:nowrap !important;
  font-size:22px !important;
}
.rwt-podium-medal-item{
  display:inline-flex !important;
  align-items:center !important;
  gap:4px !important;
}
.rwt-podium-medal-item b{
  font-size:inherit;
  line-height:1;
}
@media (max-width:767px){
  .rwt-podium-medals{
    justify-content:flex-start !important;
    flex-wrap:wrap;
    gap:10px !important;
  }
}


/* v1.7.10 event width + fly ranking detection fix */
.rwt-event-results-table{
  width:100% !important;
  min-width:100% !important;
}
.rwt-event-results-head-individual,
.rwt-event-results-row-individual,
.rwt-event-results-head-flying,
.rwt-event-results-row-flying{
  width:100% !important;
  min-width:880px !important;
}
.rwt-event-results-head-team,
.rwt-event-results-row-team{
  width:100% !important;
  min-width:1090px !important;
}

/* v1.7.11 event results full-width no empty last column */
.rwt-table-wrap .rwt-event-results-table{width:100% !important;min-width:100% !important;max-width:100% !important;}
.rwt-table-wrap .rwt-event-results-head-individual,
.rwt-table-wrap .rwt-event-results-row-individual{display:grid !important;grid-template-columns:100px minmax(180px,1.2fr) minmax(220px,1.4fr) minmax(120px,.9fr) minmax(140px,.9fr) !important;width:100% !important;min-width:100% !important;max-width:100% !important;}
.rwt-table-wrap .rwt-event-results-head-flying,
.rwt-table-wrap .rwt-event-results-row-flying{display:grid !important;grid-template-columns:100px minmax(180px,1.1fr) minmax(280px,1.7fr) minmax(120px,.9fr) minmax(140px,.9fr) !important;width:100% !important;min-width:100% !important;max-width:100% !important;}
.rwt-table-wrap .rwt-event-results-head-team,
.rwt-table-wrap .rwt-event-results-row-team{display:grid !important;grid-template-columns:100px minmax(180px,1.05fr) minmax(220px,1.25fr) minmax(220px,1.25fr) minmax(120px,.85fr) minmax(140px,.85fr) !important;width:100% !important;min-width:100% !important;max-width:100% !important;}


/* v4 layout refinements */
.rwt-ranking-actions-enhanced{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;flex-wrap:wrap;margin-bottom:18px;padding:16px 18px;border:1px solid #d6e2f0;border-radius:16px;background:linear-gradient(180deg,#f8fbff,#eef5fc);box-shadow:0 10px 24px rgba(17,57,99,.06)}
.rwt-ranking-actions-main{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.rwt-ranking-actions-filters{display:grid;grid-template-columns:repeat(4,minmax(170px,1fr));gap:14px;flex:1 1 760px}
.rwt-filter-control{display:flex;flex-direction:column;gap:6px}
.rwt-filter-control span{font-size:13px;font-weight:700;letter-spacing:.02em;color:#17457a}
.rwt-front-select,.rwt-filter-box select,.rwt-filter-box input,.rwt-flag-select-toggle{appearance:none;-webkit-appearance:none;min-height:46px;padding:11px 40px 11px 14px;border:1px solid #bfd1e3;border-radius:12px;background-color:#fff;background-image:linear-gradient(45deg,transparent 50%,#355d8c 50%),linear-gradient(135deg,#355d8c 50%,transparent 50%);background-position:calc(100% - 18px) calc(50% - 3px),calc(100% - 12px) calc(50% - 3px);background-size:6px 6px,6px 6px;background-repeat:no-repeat;color:#173f6e;font-weight:600;box-shadow:0 2px 8px rgba(17,57,99,.04);transition:border-color .2s ease, box-shadow .2s ease, transform .2s ease}
.rwt-front-select:hover,.rwt-front-select:focus,.rwt-filter-box select:hover,.rwt-filter-box select:focus,.rwt-filter-box input:hover,.rwt-filter-box input:focus,.rwt-flag-select-toggle:hover,.rwt-flag-select-toggle:focus{border-color:#7ea8d6;box-shadow:0 0 0 3px rgba(42,104,176,.12);outline:none}
.rwt-ranking-modal-dialog{border-radius:18px!important;padding:20px!important;background:linear-gradient(180deg,#ffffff,#f6fbff)!important}
.rwt-ranking-modal-section{border:1px solid #d8e4f1!important;border-radius:16px!important;background:linear-gradient(180deg,#fbfdff,#f2f7fd)!important;padding:18px!important}
.rwt-ranking-filters-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;align-items:end}
.rwt-filter-box{border:1px solid #d7e4f2;background:#fff;border-radius:14px;padding:12px;box-shadow:0 6px 16px rgba(17,57,99,.05)}
.rwt-filter-box:last-child:nth-child(5){grid-column:span 2}
.rwt-filter-box label{font-size:13px;font-weight:700;letter-spacing:.02em;color:#17457a;margin-bottom:8px}
.rwt-ranking-modal-title{text-align:left;font-size:22px;font-weight:800;color:#143d72;margin-bottom:12px}
.rwt-ranking-search-head,.rwt-ranking-search-row{grid-template-columns:130px minmax(220px,2fr) minmax(150px,1fr) minmax(170px,1.1fr) 130px!important}
.rwt-ranking-search-row{cursor:pointer;transition:background .2s ease,transform .2s ease}
.rwt-ranking-search-row:hover{background:#f3f8fe!important}
.rwt-ranking-modal-close{width:42px;height:42px;display:flex;align-items:center;justify-content:center;border-radius:12px;border:1px solid #bcd0e4;background:#fff!important;box-shadow:0 8px 18px rgba(17,57,99,.08)}
.rwt-flag-select-menu{border-radius:14px;border:1px solid #cddced;box-shadow:0 16px 36px rgba(17,57,99,.12);padding:8px;background:#fff;max-height:280px;overflow:auto}
.rwt-flag-select-option{border-radius:10px}
.rwt-ranking-head-small,.rwt-ranking-row-small{grid-template-columns:130px minmax(220px,2fr) minmax(180px,1.2fr) 160px 110px 170px 130px 120px}
@media (max-width: 1100px){.rwt-ranking-actions-filters,.rwt-ranking-filters-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rwt-filter-box:last-child:nth-child(5){grid-column:span 2}}
@media (max-width: 700px){.rwt-ranking-actions-enhanced{padding:14px}.rwt-ranking-actions-filters,.rwt-ranking-filters-grid{grid-template-columns:1fr}.rwt-filter-box:last-child:nth-child(5){grid-column:span 1}.rwt-ranking-search-head,.rwt-ranking-search-row{grid-template-columns:110px 1.4fr 1fr 1fr 110px!important}}


/* v5 popup + filters refinements */
.rwt-ranking-filters-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important;align-items:end!important}
.rwt-filter-box-name{grid-column:span 1!important}
.rwt-input-combo{position:relative}
.rwt-input-combo::before{content:"";position:absolute;right:16px;top:50%;width:8px;height:8px;border-right:2px solid #355d8c;border-bottom:2px solid #355d8c;transform:translateY(-65%) rotate(45deg);pointer-events:none;opacity:.9}
.rwt-input-combo input{padding-right:42px!important;background-image:none!important}
.rwt-filter-box-name input::-webkit-calendar-picker-indicator{opacity:0}
.rwt-filter-box-name input::-webkit-list-button{opacity:0}
.rwt-ranking-modal-section:first-of-type{padding-bottom:16px!important}
@media (max-width: 1180px){.rwt-ranking-filters-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media (max-width: 860px){.rwt-ranking-filters-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media (max-width: 640px){.rwt-ranking-filters-grid{grid-template-columns:1fr!important}}


/* v6 fixes */
.rwt-ranking-modal-dialog{width:min(80vw,1400px)!important;max-width:min(80vw,1400px)!important;}
.rwt-ranking-filters-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;align-items:stretch!important}
.rwt-filter-box-name{grid-column:span 2!important}
.rwt-filter-box-name .rwt-input-combo::before{display:none!important}
.rwt-filter-box-name input{background-image:none!important;padding-right:14px!important}
@media (max-width:1180px){.rwt-ranking-modal-dialog{width:min(calc(100vw - 32px),1200px)!important;max-width:min(calc(100vw - 32px),1200px)!important}.rwt-ranking-filters-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.rwt-filter-box-name{grid-column:span 2!important}}
@media (max-width:700px){.rwt-filter-box-name{grid-column:span 1!important}}


.rwt-side-ads{
  position:relative;
  z-index:30;
}

.rwt-side-ad{
  position:fixed;
  top:120px;
  width:min(160px, calc(100vw - 24px));
  max-height:calc(100vh - 140px);
  overflow:auto;
  z-index:30;
}

.rwt-side-ad .rwt-ad-slot{
  margin:0;
  padding:10px;
  box-shadow:0 10px 30px rgba(12,40,84,.10);
}

.rwt-side-ad-left{
  left:max(12px, calc((100vw - 1280px) / 2 - 176px));
}

.rwt-side-ad-right{
  right:max(12px, calc((100vw - 1280px) / 2 - 176px));
}

@media (max-width: 1680px){
  .rwt-side-ad{
    width:140px;
  }

  .rwt-side-ad-left{
    left:12px;
  }

  .rwt-side-ad-right{
    right:12px;
  }
}

@media (max-width: 1366px){
  .rwt-side-ad{
    display:none;
  }
}


/* v14.1 remove ranking 1/2/3 columns everywhere except athlete profile medals */
.rwt-rank-head,.rwt-rank-row{grid-template-columns:160px 210px 200px 120px 120px 160px 140px;min-width:1110px}
.rwt-ranking-head-small,.rwt-ranking-row-small{grid-template-columns:140px 240px 200px 160px 110px 150px 140px;min-width:1140px}
.home .rwt-rank-table .rwt-rank-head,
.home .rwt-rank-table .rwt-rank-row,
.front-page .rwt-rank-table .rwt-rank-head,
.front-page .rwt-rank-table .rwt-rank-row,
body.home .rwt-rank-table .rwt-rank-head,
body.home .rwt-rank-table .rwt-rank-row,
.rwt-section .rwt-rank-head,
.rwt-section .rwt-rank-row{grid-template-columns:108px 184px 200px 110px 110px 150px 120px !important;min-width:982px !important}


/* v1.6 post templates */
.rwt-section-head-stack{
  align-items:flex-start;
}
.rwt-post-page,.rwt-post-archive-page{
  max-width:1280px;
}
.rwt-post-hero{
  padding:0;
  overflow:hidden;
}
.rwt-post-hero-inner{
  padding:26px 28px;
}
.rwt-post-eyebrow{
  display:inline-block;
  padding:6px 10px;
  margin-bottom:10px;
  border-radius:4px;
  background:#dcecff;
  color:var(--rwt-blue-dark);
  font-weight:800;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.rwt-post-title{
  margin:0;
  font-size:clamp(30px,3vw,46px);
  line-height:1.12;
  color:var(--rwt-blue-dark);
}
.rwt-post-meta{
  margin-top:12px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:center;
  color:var(--rwt-muted);
  font-size:14px;
}
.rwt-post-meta span{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 10px;
  border:1px solid var(--rwt-border);
  border-radius:4px;
  background:#f7fbff;
}
.rwt-post-content-wrap{
  padding:22px;
}
.rwt-post-content{
  max-width:980px;
  margin:0 auto;
}
.rwt-post-featured-image{
  margin:0 0 18px;
  border:1px solid var(--rwt-border);
  border-radius:4px;
  overflow:hidden;
  box-shadow:var(--rwt-shadow);
  background:#fff;
}
.rwt-post-featured-image img{
  display:block;
  width:100%;
  height:auto;
}
.rwt-post-content-card{
  line-height:1.75;
}
.rwt-post-content-card h2,
.rwt-post-content-card h3,
.rwt-post-content-card h4{
  color:var(--rwt-blue-dark);
  line-height:1.25;
}
.rwt-post-content-card p:first-child{margin-top:0}
.rwt-post-content-card img{max-width:100%;height:auto;border-radius:4px}
.rwt-post-content-card a{color:var(--rwt-blue);font-weight:700}
.rwt-post-content-card ul,
.rwt-post-content-card ol{padding-left:22px}
.rwt-post-content-card blockquote{
  margin:18px 0;
  padding:16px 18px;
  border-left:4px solid var(--rwt-blue);
  background:#f7fbff;
}
.rwt-post-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}
.rwt-post-card{
  display:flex;
  flex-direction:column;
  background:#fff;
  border:1px solid var(--rwt-border);
  border-radius:4px;
  overflow:hidden;
  box-shadow:var(--rwt-shadow);
}
.rwt-post-card-thumb{
  display:block;
  aspect-ratio:16/9;
  background:linear-gradient(180deg,#f7fbff,#eaf4ff);
}
.rwt-post-card-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.rwt-post-card-body{
  display:flex;
  flex-direction:column;
  gap:14px;
  padding:18px;
  height:100%;
}
.rwt-post-card-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  color:var(--rwt-muted);
  font-size:13px;
}
.rwt-post-card-title{
  margin:0;
  font-size:24px;
  line-height:1.25;
}
.rwt-post-card-title a{
  color:var(--rwt-blue-dark);
  text-decoration:none;
}
.rwt-post-card-excerpt{
  color:var(--rwt-text);
  line-height:1.6;
  flex:1 1 auto;
}
.rwt-post-pagination-wrap{
  margin-top:22px;
  display:flex;
  justify-content:center;
}
.rwt-post-pagination-wrap .page-numbers{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:40px;
  height:40px;
  margin:0 4px;
  padding:0 12px;
  border-radius:4px;
  border:1px solid var(--rwt-border);
  background:#fff;
  color:var(--rwt-blue-dark);
  text-decoration:none;
  font-weight:700;
}
.rwt-post-pagination-wrap .page-numbers.current{
  background:linear-gradient(180deg,#2d77c7,#155090);
  color:#fff;
  border-color:#155090;
}
.rwt-post-nav-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}
.rwt-post-nav-item{
  min-height:72px;
  padding:16px;
  border:1px solid var(--rwt-border);
  border-radius:4px;
  background:#fff;
}
.rwt-post-nav-item-next{text-align:right}
.rwt-archive-description{
  margin-top:8px;
  max-width:900px;
  line-height:1.6;
}
@media (max-width: 1024px){
  .rwt-post-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width: 767px){
  .rwt-post-grid{grid-template-columns:1fr;}
  .rwt-post-nav-grid{grid-template-columns:1fr;}
  .rwt-post-nav-item-next{text-align:left;}
  .rwt-post-hero-inner{padding:20px 18px;}
  .rwt-post-title{font-size:28px;}
  .rwt-post-content-wrap{padding:16px;}
}

/* homepage contact bar */
.rwt-home-contact{
  margin:24px 0 0;
  padding:0 0 8px;
}
.rwt-home-contact__inner{
  border:1px solid var(--rwt-border);
  border-radius:4px;
  background:linear-gradient(180deg,#f8fbff,#edf5ff);
  box-shadow:var(--rwt-shadow);
  padding:24px;
}
.rwt-title-bar--compact{
  display:inline-flex;
  width:auto;
  margin-bottom:12px;
  font-size:22px;
  padding:10px 16px;
}
.rwt-home-contact__intro p{
  margin:0 0 18px;
  color:var(--rwt-text);
  line-height:1.65;
  max-width:820px;
}
.rwt-home-contact__grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}
.rwt-contact-tile{
  display:flex;
  align-items:flex-start;
  gap:14px;
  min-width:0;
  padding:18px;
  border:1px solid var(--rwt-border);
  border-radius:4px;
  background:#fff;
  color:var(--rwt-text);
  text-decoration:none;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.rwt-contact-tile:hover{
  transform:translateY(-2px);
  border-color:#9fc0e6;
  box-shadow:0 12px 28px rgba(16,61,114,.12);
}
.rwt-contact-tile--static:hover{transform:none;box-shadow:none;border-color:var(--rwt-border)}
.rwt-contact-icon{
  width:48px;
  height:48px;
  flex:0 0 48px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:4px;
  background:linear-gradient(180deg,#2d77c7,#155090);
  color:#fff;
}
.rwt-contact-icon svg{
  width:24px;
  height:24px;
}
.rwt-contact-meta{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.rwt-contact-meta small{
  color:var(--rwt-muted);
  text-transform:uppercase;
  letter-spacing:.08em;
  font-weight:700;
}
.rwt-contact-meta strong{
  color:var(--rwt-blue-dark);
  font-size:18px;
  line-height:1.45;
  overflow-wrap:anywhere;
}
@media (max-width: 980px){
  .rwt-home-contact__grid{grid-template-columns:1fr;}
}
@media (max-width: 767px){
  .rwt-home-contact__inner{padding:18px;}
  .rwt-title-bar--compact{font-size:20px;}
  .rwt-contact-tile{padding:16px;}
  .rwt-contact-meta strong{font-size:17px;}
}

.rwt-editorial-section{margin:18px 0 22px}
.rwt-editorial-card{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(220px,.9fr);gap:20px;align-items:center;background:var(--rwt-card);border:1px solid var(--rwt-border);border-radius:22px;padding:22px;box-shadow:0 8px 26px rgba(16,61,114,.08)}
.rwt-editorial-card.no-image{grid-template-columns:minmax(0,1fr)}
.rwt-editorial-text{color:var(--rwt-text);line-height:1.75}
.rwt-editorial-text p{margin:0 0 14px}
.rwt-editorial-text p:last-child{margin-bottom:0}
.rwt-editorial-media img{display:block;width:100%;height:auto;border-radius:18px;border:1px solid var(--rwt-border);object-fit:cover}
@media (max-width: 860px){
  .rwt-editorial-card{grid-template-columns:minmax(0,1fr);padding:18px}
}


/* v1.7 cleaner blog/post presentation */
.rwt-post-page,.rwt-post-archive-page{
  max-width:1120px;
}
.rwt-post-page .rwt-section,
.rwt-post-archive-page .rwt-section{
  background:transparent;
}
.rwt-post-hero{
  max-width:860px;
  margin:0 auto 22px;
  border-radius:18px;
  border-width:1px;
  box-shadow:0 18px 45px rgba(16,61,114,.08);
}
.rwt-post-hero-inner{
  padding:34px 36px 28px;
}
.rwt-post-eyebrow{
  border-radius:10px;
  padding:7px 12px;
}
.rwt-post-meta{
  justify-content:flex-start;
}
.rwt-post-meta span{
  border-radius:10px;
  padding:8px 12px;
}
.rwt-post-content{
  max-width:860px;
}
.rwt-post-featured-image,
.rwt-post-content-card,
.rwt-post-nav-item,
.rwt-post-card{
  border-radius:18px;
  border-width:1px;
  box-shadow:0 18px 45px rgba(16,61,114,.08);
}
.rwt-post-content-card{
  padding:28px;
  font-size:17px;
}
.rwt-post-content-card p,
.rwt-post-content-card li{
  font-size:17px;
}
.rwt-post-content-card h2{
  font-size:32px;
  margin-top:8px;
}
.rwt-post-content-card h3{
  font-size:26px;
}
.rwt-post-content-card h4{
  font-size:22px;
}
.rwt-post-content-card > *:last-child{
  margin-bottom:0;
}
.rwt-post-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:24px;
}
.rwt-post-card{
  min-height:100%;
}
.rwt-post-card-thumb{
  aspect-ratio:16/10;
}
.rwt-post-card-body{
  padding:22px;
  gap:16px;
}
.rwt-post-card-meta span{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border:1px solid var(--rwt-border);
  border-radius:999px;
  background:#f7fbff;
}
.rwt-post-card-title{
  font-size:30px;
}
.rwt-post-card-excerpt{
  font-size:16px;
}
.rwt-post-card-title a:hover,
.rwt-post-card-title a:focus-visible{
  color:var(--rwt-blue);
}
.rwt-post-pagination-wrap{
  margin-top:30px;
}
@media (max-width: 1024px){
  .rwt-post-grid{grid-template-columns:1fr;}
}
@media (max-width: 767px){
  .rwt-post-hero{border-radius:16px;}
  .rwt-post-hero-inner{padding:24px 20px;}
  .rwt-post-title{font-size:clamp(30px,8vw,42px);}
  .rwt-post-content-card{padding:22px;font-size:16px;}
  .rwt-post-content-card p,
  .rwt-post-content-card li{font-size:16px;}
  .rwt-post-card-title{font-size:24px;}
}


/* v1.8 blog width, centering, and menu states */
.rwt-nav ul{align-items:center;}
.rwt-nav li{display:flex;align-items:center;}
.rwt-nav a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:8px 14px;
  border-radius:999px;
  border:1px solid transparent;
  transition:background-color .2s ease,color .2s ease,border-color .2s ease,box-shadow .2s ease;
}
.rwt-nav a:hover,
.rwt-nav a:focus-visible{
  background:#f3f8ff;
  border-color:var(--rwt-border);
  color:var(--rwt-blue);
  box-shadow:0 10px 24px rgba(16,61,114,.08);
  outline:none;
}
.rwt-nav .current-menu-item > a,
.rwt-nav .current_page_item > a,
.rwt-nav .current-menu-ancestor > a,
.rwt-nav .current-page-ancestor > a,
.rwt-nav .current_page_parent > a,
.rwt-nav .current-menu-parent > a{
  background:linear-gradient(180deg,#fafdff,#eaf4ff);
  border-color:#bfd5ee;
  color:var(--rwt-blue-dark);
  box-shadow:0 10px 24px rgba(16,61,114,.08);
}

.rwt-post-page,.rwt-post-archive-page{
  max-width:1280px;
}
.rwt-post-page .rwt-section,
.rwt-post-archive-page .rwt-section{
  max-width:1280px;
  margin-left:auto;
  margin-right:auto;
}
.rwt-section-head-centered,
.rwt-section-head-centered h1,
.rwt-section-head-centered h2,
.rwt-section-head-centered h3{
  text-align:center;
  justify-content:center;
}
.rwt-section-head-centered.rwt-section-head-stack > div{
  width:100%;
  text-align:center;
}
.rwt-post-hero,
.rwt-post-content{
  max-width:1100px;
}
.rwt-post-hero-inner,
.rwt-post-content-card,
.rwt-post-card-body{
  text-align:center;
}
.rwt-post-meta{
  justify-content:center;
}
.rwt-post-content-card-centered ul,
.rwt-post-content-card-centered ol{
  list-style-position:inside;
  padding-left:0;
}
.rwt-post-featured-image{
  max-width:1100px;
  margin-left:auto;
  margin-right:auto;
}
.rwt-post-featured-image img{
  width:100%;
}
.rwt-post-grid{
  grid-template-columns:repeat(auto-fit,minmax(360px,1fr));
  align-items:stretch;
}
.rwt-post-grid-single{
  grid-template-columns:minmax(0,1fr);
}
.rwt-post-grid-single .rwt-post-card{
  max-width:none;
}
.rwt-post-card{
  width:100%;
}
.rwt-post-card-thumb{
  width:100%;
}
.rwt-post-card-body{
  align-items:center;
}
.rwt-post-card-meta{
  justify-content:center;
}
.rwt-post-card-excerpt{
  max-width:760px;
  margin:0 auto;
}
.rwt-post-card .rwt-button{
  align-self:center;
}
@media (max-width: 1024px){
  .rwt-post-grid{grid-template-columns:1fr;}
  .rwt-post-hero,
  .rwt-post-content,
  .rwt-post-featured-image{max-width:100%;}
}
@media (max-width: 767px){
  .rwt-nav ul{gap:8px;flex-wrap:wrap;justify-content:flex-end;}
  .rwt-nav a{padding:7px 12px;min-height:38px;}
  .rwt-post-card-title{font-size:clamp(28px,6vw,36px);}
}


/* v1.9 fixed blog image sizing and faster paint */
.rwt-post-card-thumb,
.rwt-post-featured-image{
  overflow:hidden;
}
.rwt-post-card-thumb{
  display:block;
  aspect-ratio:16 / 10;
  max-height:360px;
}
.rwt-post-card-thumb img{
  width:100%;
  height:100%;
  min-height:100%;
  max-height:360px;
  object-fit:cover;
  object-position:center;
  display:block;
}
.rwt-post-featured-image{
  width:min(100%, 860px);
  margin:0 auto 26px;
  aspect-ratio:16 / 10;
  max-height:540px;
  border-radius:24px;
}
.rwt-post-featured-image img{
  width:100%;
  height:100%;
  max-height:540px;
  object-fit:cover;
  object-position:center;
  display:block;
}
.rwt-post-card{
  contain:layout paint;
}
@media (max-width: 767px){
  .rwt-post-card-thumb{
    max-height:260px;
  }
  .rwt-post-card-thumb img{
    max-height:260px;
  }
  .rwt-post-featured-image{
    max-height:320px;
    border-radius:18px;
  }
  .rwt-post-featured-image img{
    max-height:320px;
  }
}


/* v2.3.2 blog image proportion fix */
.rwt-post-grid{
  grid-template-columns:repeat(auto-fit,minmax(360px,1fr));
  gap:28px;
}
.rwt-post-card{
  display:flex;
  flex-direction:column;
}
.rwt-post-card-thumb{
  display:flex;
  align-items:center;
  justify-content:center;
  width:min(100%,350px);
  height:250px;
  max-width:350px;
  max-height:none;
  margin:0 auto;
  background:linear-gradient(180deg,#f8fbff,#edf5ff);
  border-radius:24px 24px 0 0;
}
.rwt-post-card-thumb img{
  width:100%;
  height:100%;
  min-height:0;
  max-height:none;
  object-fit:contain;
  object-position:center center;
  display:block;
  background:#f8fbff;
}
.rwt-post-featured-image{
  width:min(100%,760px);
  max-width:760px;
  margin:0 auto 26px;
  aspect-ratio:auto;
  max-height:none;
  background:linear-gradient(180deg,#f8fbff,#edf5ff);
  border-radius:24px;
  padding:0;
}
.rwt-post-featured-image img{
  width:100%;
  height:auto;
  max-height:none;
  object-fit:contain;
  object-position:center center;
  display:block;
}
.rwt-post-card-excerpt{
  max-width:680px;
}
@media (max-width: 767px){
  .rwt-post-card-thumb{
    width:100%;
    max-width:none;
    height:220px;
    border-radius:20px 20px 0 0;
  }
  .rwt-post-featured-image{
    width:100%;
    max-width:none;
    border-radius:18px;
  }
}


/* v2.4.0 blog cards + ajax load more */
.rwt-post-archive-page .rwt-section,
.rwt-post-page .rwt-section,
.rwt-post-page .rwt-post-hero-inner,
.rwt-post-page .rwt-title-bar{
  max-width: min(1280px, calc(100% - 32px));
}
.rwt-post-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:30px;
  align-items:stretch;
}
.rwt-post-card{
  width:100%;
  min-width:0;
  background:var(--rwt-card);
  border:1px solid var(--rwt-border);
  border-radius:0;
  box-shadow:0 8px 24px rgba(16,61,114,.08);
  overflow:hidden;
  contain:layout paint;
}
.rwt-post-card-thumb{
  display:block;
  width:100%;
  max-width:none;
  height:330px;
  margin:0;
  border-radius:0;
  background:#edf3fb;
  overflow:hidden;
}
.rwt-post-card-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  display:block;
  transform:translateZ(0);
}
.rwt-post-card-body{
  padding:22px 16px 24px;
  text-align:left;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:14px;
  height:auto;
  min-height:0;
}
.rwt-post-card-meta{
  width:100%;
  display:flex;
  justify-content:flex-start;
}
.rwt-post-card-meta span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:8px 14px;
  border:1px solid var(--rwt-border);
  border-radius:999px;
  color:#6d85a1;
  font-weight:700;
  font-size:14px;
  line-height:1;
}
.rwt-post-card-title{
  margin:0;
  font-size:clamp(20px,1.8vw,25px);
  line-height:1.08;
  width:100%;
}
.rwt-post-card-title a{
  color:var(--rwt-blue-dark);
  text-decoration:none;
}
.rwt-post-card-excerpt{
  width:100%;
  max-width:none;
  color:var(--rwt-text);
  font-size:15px;
  line-height:1.6;
  display:-webkit-box;
  -webkit-line-clamp:4;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height:96px;
}
.rwt-post-readmore{
  margin-top:auto;
  font-weight:800;
  color:var(--rwt-blue-dark);
  text-decoration:none;
}
.rwt-post-readmore:hover,
.rwt-post-readmore:focus-visible{
  text-decoration:underline;
}
.rwt-load-more-wrap{
  display:flex;
  justify-content:center;
  margin-top:34px;
}
.rwt-load-more{
  appearance:none;
  border:0;
  border-radius:12px;
  padding:14px 24px;
  min-width:190px;
  font-weight:800;
  font-size:16px;
  color:#fff;
  background:linear-gradient(180deg,#2e74c7,#1b58a5);
  box-shadow:0 10px 22px rgba(27,88,165,.24);
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.rwt-load-more:hover,
.rwt-load-more:focus-visible{
  transform:translateY(-1px);
  box-shadow:0 14px 28px rgba(27,88,165,.30);
}
.rwt-load-more.is-loading,
.rwt-load-more:disabled{
  opacity:.72;
  cursor:wait;
  transform:none;
}
.rwt-post-featured-image{
  width:min(100%, 980px);
  max-width:980px;
  margin:0 auto 26px;
  aspect-ratio:16 / 10;
  background:#edf3fb;
  border-radius:24px;
  overflow:hidden;
}
.rwt-post-featured-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  display:block;
}
.rwt-post-content-card{
  max-width:980px;
  margin-inline:auto;
}
@media (max-width: 1100px){
  .rwt-post-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media (max-width: 767px){
  .rwt-post-grid{
    grid-template-columns:minmax(0,1fr);
    gap:22px;
  }
  .rwt-post-card-thumb{
    height:330px;
  }
  .rwt-post-archive-page .rwt-section,
  .rwt-post-page .rwt-section,
  .rwt-post-page .rwt-post-hero-inner,
  .rwt-post-page .rwt-title-bar{
    max-width: calc(100% - 20px);
  }
  .rwt-post-featured-image{
    aspect-ratio:4 / 3;
    border-radius:18px;
  }
}


/* v3.0.1 blog archive heading + card body height fix */
.rwt-post-card-body{height:auto !important;min-height:0 !important;}


/* v2.4.2 single post editorial layout */
.rwt-post-page-editorial .rwt-single-editorial-header,
.rwt-post-page-editorial .rwt-single-editorial-content-wrap,
.rwt-post-page-editorial .rwt-post-nav-section{
  max-width:min(1200px, calc(100% - 32px));
  margin-inline:auto;
}
.rwt-post-article-editorial{
  max-width:none;
}
.rwt-single-editorial-header{
  background:var(--rwt-card);
  border:1px solid var(--rwt-border);
  border-radius:0;
  box-shadow:none;
  padding:40px 40px 24px;
}
.rwt-single-editorial-intro{
  display:grid;
  grid-template-columns:minmax(0,1fr) 320px;
  gap:48px;
  align-items:center;
}
.rwt-single-editorial-intro.no-thumb{
  grid-template-columns:minmax(0,1fr);
}
.rwt-single-editorial-copy{
  text-align:center;
}
.rwt-single-editorial-title{
  margin:18px 0 20px;
  font-size:clamp(42px,4.2vw,58px);
  line-height:1.04;
  color:var(--rwt-blue-dark);
  text-wrap:balance;
}
.rwt-single-editorial-meta{
  justify-content:center;
}
.rwt-single-editorial-media{
  margin:0;
  width:100%;
  max-width:320px;
  justify-self:end;
  background:#f4f4f4;
}
.rwt-single-editorial-media img{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:4 / 5;
  object-fit:cover;
  object-position:center;
}
.rwt-single-editorial-content-wrap{
  background:var(--rwt-card);
  border:1px solid var(--rwt-border);
  border-top:0;
  padding:0 40px 36px;
}
.rwt-single-editorial-divider{
  border-top:2px solid rgba(84,48,28,.45);
  margin:0 0 34px;
}
.rwt-single-editorial-content-card{
  max-width:none;
  margin:0;
  padding:0;
  background:transparent;
  border:0;
  box-shadow:none;
  text-align:left;
  color:var(--rwt-text);
}
.rwt-single-editorial-content-card p,
.rwt-single-editorial-content-card li{
  font-size:clamp(19px,1.45vw,21px);
  line-height:1.9;
}
.rwt-single-editorial-content-card h2{
  font-size:clamp(34px,3vw,42px);
  margin:1.1em 0 .45em;
  text-align:left;
}
.rwt-single-editorial-content-card h3{
  font-size:clamp(28px,2.3vw,34px);
  text-align:left;
}
.rwt-single-editorial-content-card img{
  max-width:100%;
  height:auto;
  border-radius:0;
}
@media (max-width: 900px){
  .rwt-single-editorial-header,
  .rwt-single-editorial-content-wrap{
    padding-left:22px;
    padding-right:22px;
  }
  .rwt-single-editorial-intro{
    grid-template-columns:minmax(0,1fr);
    gap:26px;
  }
  .rwt-single-editorial-media{
    justify-self:center;
    max-width:min(100%, 420px);
  }
}
@media (max-width: 767px){
  .rwt-post-page-editorial .rwt-single-editorial-header,
  .rwt-post-page-editorial .rwt-single-editorial-content-wrap,
  .rwt-post-page-editorial .rwt-post-nav-section{
    max-width:calc(100% - 20px);
  }
  .rwt-single-editorial-header{
    padding-top:28px;
    padding-bottom:18px;
  }
  .rwt-single-editorial-content-wrap{
    padding-bottom:24px;
  }
  .rwt-single-editorial-title{
    font-size:clamp(32px,9vw,44px);
  }
  .rwt-single-editorial-content-card p,
  .rwt-single-editorial-content-card li{
    font-size:17px;
    line-height:1.8;
  }
}


/* FIX: white background for single post content */
.rwt-single-editorial-content-card{background:#fff !important; padding:20px; border-radius:12px;}


/* v2.4.1 mobile hamburger + editorial embeds */
.rwt-menu-toggle{display:none}
.rwt-editorial-text iframe,
.rwt-single-editorial-text iframe{
  display:block;
  width:min(100%, 960px);
  max-width:100%;
  height:clamp(220px, 56vw, 540px);
  margin:18px auto;
  border:0;
  border-radius:18px;
  box-shadow:0 18px 42px rgba(16,61,114,.14);
}
.rwt-editorial-text > *:first-child,
.rwt-single-editorial-text > *:first-child{margin-top:0}
.rwt-editorial-text > *:last-child,
.rwt-single-editorial-text > *:last-child{margin-bottom:0}

@media (max-width: 767px){
  .rwt-header-inner{
    align-items:center !important;
  }
  .rwt-menu-toggle{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    margin-left:auto;
    min-height:46px;
    padding:10px 14px;
    border:1px solid #bfd5ee;
    border-radius:14px;
    background:linear-gradient(180deg,#ffffff,#eef6ff);
    color:var(--rwt-blue-dark);
    font:inherit;
    font-weight:800;
    cursor:pointer;
    box-shadow:0 10px 24px rgba(16,61,114,.08);
  }
  .rwt-menu-toggle-box{
    display:inline-grid;
    gap:4px;
  }
  .rwt-menu-toggle-box span{
    display:block;
    width:20px;
    height:2px;
    border-radius:999px;
    background:currentColor;
    transition:transform .2s ease, opacity .2s ease;
  }
  .rwt-menu-toggle[aria-expanded="true"] .rwt-menu-toggle-box span:nth-child(1){transform:translateY(6px) rotate(45deg)}
  .rwt-menu-toggle[aria-expanded="true"] .rwt-menu-toggle-box span:nth-child(2){opacity:0}
  .rwt-menu-toggle[aria-expanded="true"] .rwt-menu-toggle-box span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}
  .rwt-nav{
    display:none !important;
    width:100%;
    order:3;
    padding-top:6px;
  }
  .rwt-nav.is-open{
    display:block !important;
  }
  .rwt-nav ul{
    display:flex;
    flex-direction:column;
    align-items:stretch !important;
    gap:10px !important;
    width:100%;
    margin:0;
    padding:14px;
    background:#fff;
    border:1px solid var(--rwt-border);
    border-radius:18px;
    box-shadow:0 18px 36px rgba(16,61,114,.12);
  }
  .rwt-nav li{
    display:block;
    width:100%;
  }
  .rwt-nav a{
    display:flex;
    justify-content:flex-start;
    width:100%;
    min-height:46px;
    padding:11px 14px !important;
    border-radius:14px;
    box-sizing:border-box;
  }
}

/* v2.4.2 mobile header single-line fix */
@media (max-width: 767px){
  .rwt-site-header .rwt-header-inner{
    display:flex !important;
    flex-wrap:wrap !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:10px !important;
  }

  .rwt-site-header .rwt-brand{
    width:auto !important;
    flex:1 1 auto !important;
    min-width:0 !important;
    display:flex !important;
    align-items:center !important;
  }

  .rwt-site-header .rwt-brand-link,
  .rwt-site-header .custom-logo-link{
    display:flex !important;
    align-items:center !important;
    max-width:100% !important;
    min-width:0 !important;
  }

  .rwt-site-header .rwt-default-logo,
  .rwt-site-header .custom-logo{
    display:block !important;
    width:auto !important;
    max-width:min(100%, 190px) !important;
    max-height:58px !important;
    height:auto !important;
  }

  .rwt-site-header .rwt-menu-toggle{
    display:inline-flex !important;
    flex:0 0 auto !important;
    align-items:center !important;
    justify-content:center !important;
    align-self:center !important;
    margin:0 !important;
    white-space:nowrap !important;
    min-height:44px !important;
    padding:8px 12px !important;
  }

  .rwt-site-header .rwt-menu-toggle-label{
    display:inline-block !important;
    line-height:1 !important;
  }

  .rwt-site-header .rwt-nav{
    flex:0 0 100% !important;
    width:100% !important;
    order:3 !important;
  }
}

@media (max-width: 480px){
  .rwt-site-header .rwt-default-logo,
  .rwt-site-header .custom-logo{
    max-width:150px !important;
    max-height:50px !important;
  }

  .rwt-site-header .rwt-menu-toggle{
    gap:8px !important;
    padding:8px 10px !important;
    border-radius:12px !important;
  }

  .rwt-site-header .rwt-menu-toggle-label{
    font-size:15px !important;
  }

  .rwt-site-header .rwt-menu-toggle-box span{
    width:18px !important;
  }
}
