/* VALENDOR 1.8.6: responsive shared shell for iOS Safari and Android Chrome.
   This stylesheet is intentionally loaded LAST. It changes no desktop rules.
   No JavaScript dependencies outside valendor-mobile-186.js. */
.v186-menu-toggle { display:none; }
@media (max-width: 900px) {
  html { max-width:100%; overflow-x:clip; }
  body { max-width:100%; min-width:0!important; overflow-x:clip; }
  body *,body *::before,body *::after { box-sizing:border-box; }
  img,video,svg,canvas { max-width:100%; }
  img,video { height:auto; }
  /* Every common page inherits a real flexible container, not the old desktop min-width. */
  .wrap, .page-shell, .world-inner, .network-header-main,
  .network-navigation-inner, .footer-grid {
    box-sizing:border-box!important;
    width:calc(100% - 32px)!important;
    max-width:100%!important;
    min-width:0!important;
    margin-inline:auto!important;
  }
  .page-shell,main,section,article,aside,form,.form-card,
  .portal-status,.portal-section,.forum-group,.forum-post,.post-message,
  .page-columns,.primary-column,.sidebar,.editor-layout,.portal-columns,
  .forum-table,.topic-table,.board-table,.thread-heading,
  .page-footer,.world-banner,.portal-showcase,.portal-hero,
  .community-151-card,.community-151-account,.login-layout,.contact-grid,
  .form-card,.stack-form { min-width:0!important; max-width:100%; }
  p,h1,h2,h3,h4,li,small,span,strong,a { overflow-wrap:break-word; }
  code,pre { max-width:100%; overflow-x:auto; }
  /* Shared mobile masthead: brand, menu, then a row of user controls. */
  .network-header { width:100%!important; min-width:0!important; position:relative; z-index:50; }
  .network-header-main {
    display:grid!important; grid-template-columns:minmax(0,1fr) auto!important;
    gap:8px 12px!important; align-items:center!important;
    padding-block:10px 8px!important; height:auto!important; min-height:0!important;
  }
  .network-status { display:none!important; }
  .network-identity { display:flex!important; min-width:0!important; max-width:100%!important; width:auto!important;
    position:static!important; transform:none!important; margin:0!important;
    align-items:center!important; gap:10px!important; justify-self:start!important; }
  .network-identity img { width:42px!important; height:42px!important; flex:none!important; object-fit:contain; }
  .network-identity>span { min-width:0!important; font-size:clamp(18px,5.4vw,26px)!important; letter-spacing:.025em!important;
    white-space:nowrap; line-height:1.1!important; }
  .network-identity small { display:block!important; font-size:clamp(7px,1.8vw,10px)!important;
    line-height:1.35!important; letter-spacing:.06em!important; white-space:normal!important; }
  html.v186-js .v186-menu-toggle { display:flex!important; align-items:center; justify-content:center; gap:8px;
    justify-self:end; min-height:44px; min-width:44px; border-radius:8px;
    padding:8px 11px; background:#263446; border:1px solid #4c5e74;
    color:#f6f8fb; font:inherit; font-size:13px; font-weight:700; line-height:1.2; cursor:pointer; }
  .v186-menu-toggle:focus-visible { outline:2px solid #ef929b; outline-offset:3px; }
  .v186-menu-bars { display:grid; gap:4px; width:18px; }
  .v186-menu-bars i { display:block; height:2px; width:18px; border-radius:2px; background:currentColor; }
  .v186-menu-toggle[aria-expanded="true"] { background:#8B1A1A; border-color:#c05b6a; }
  .network-auth { grid-column:1/-1!important; grid-row:2!important; display:flex!important;
    align-items:center!important; justify-content:flex-start!important; flex-wrap:wrap!important;
    width:100%!important; min-width:0!important; max-width:100%!important; gap:6px!important;
    margin:0!important; padding:0!important; position:static!important; transform:none!important; }
  .network-auth>* { position:relative; flex:none; max-width:100%; margin:0!important; }
  .network-auth .season-toggle, .network-auth .theme-toggle,
  .network-auth .network-notification-link, .network-auth .network-account {
    min-height:36px!important; height:auto!important; font-size:12px!important; line-height:1.25!important;
    padding:7px 9px!important; white-space:nowrap; }
  .network-auth .network-account { max-width:calc(100% - 14px)!important; }
  .network-auth .network-account span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:145px; }
  .network-auth .network-notification-link { display:inline-flex!important; align-items:center; justify-content:center; min-width:36px!important; }
  .network-navigation { display:block!important; width:100%!important; min-width:0!important;
    position:static!important; height:auto!important; overflow:visible!important; }
  html.v186-js .network-navigation { display:none!important; }
  html.v186-js .network-header.v186-menu-open .network-navigation { display:block!important; }
  .network-navigation-inner { display:flex!important; flex-direction:column!important; align-items:stretch!important;
    gap:8px!important; padding-top:8px!important; padding-bottom:14px!important;
    height:auto!important; min-height:0!important; }
  .network-navigation-links { display:flex!important; flex-direction:column!important; align-items:stretch!important;
    min-width:0!important; max-width:100%!important; width:100%!important;
    gap:3px!important; flex:unset!important; margin:0!important; }
  .network-navlink, .network-more, .network-more>summary { width:100%!important; min-width:0!important;
    min-height:44px!important; height:auto!important; justify-content:flex-start!important;
    display:flex!important; align-items:center!important; gap:9px!important;
    padding:11px 13px!important; white-space:normal!important; text-align:left!important; }
  .network-more { display:block!important; padding:0!important; }
  .network-more>summary { cursor:pointer; }
  .network-more>summary::marker { content:''; }
  .network-dropdown { position:static!important; inset:auto!important; transform:none!important;
    display:flex!important; flex-direction:column!important; gap:2px!important;
    width:100%!important; max-width:100%!important; min-width:0!important; overflow-wrap:anywhere;
    box-shadow:none!important; margin:0!important; padding:6px 6px 10px!important; }
  .network-more:not([open]) .network-dropdown { display:none!important; }
  .network-dropdown>a,.network-dropdown>button { display:block!important; min-height:42px!important;
    width:100%!important; text-align:left!important; padding:10px 12px!important; white-space:normal!important; }
  .network-navigation-inner>.network-new-topic { display:flex!important; width:100%!important;
    min-width:0!important; min-height:44px!important; padding:10px 14px!important;
    align-items:center!important; justify-content:center!important; margin:0!important; text-align:center!important; }
  body.light .v186-menu-toggle { background:#f4f7fa; color:#203246; border-color:#bfccda; }
  body.light .v186-menu-toggle[aria-expanded="true"] { background:#8B1A1A; color:#fff; border-color:#8B1A1A; }
  /* Multicolumn desktop layouts must reflow instead of widening the viewport. */
  .page-columns, .editor-layout, .login-layout, .portal-columns,
  .community-151-grid, .contact-grid, .feature-grid,
  .member-layout,.profile-layout,.profile-columns,.privacy-grid,
  .profile-grid,.portal-grid,.team-layout,.settings-layout,
  .moderation-layout,.forum-layout {
    display:grid!important; grid-template-columns:minmax(0,1fr)!important; width:100%!important;
    gap:16px!important; }
  .page-columns>*, .editor-layout>*, .login-layout>*, .portal-columns>*,
  .contact-grid>*, .feature-grid>*, .community-151-grid>* { min-width:0!important; width:auto!important; max-width:100%!important; }
  .portal-hero,.portal-showcase,.world-banner,.page-footer { width:100%!important; max-width:100%!important; min-width:0!important; }
  .portal-hero-inner { width:calc(100% - 32px)!important; max-width:100%!important; min-width:0!important;
    min-height:0!important; padding-block:70px!important; display:flex!important; justify-content:center!important; }
  .showcase-content { width:100%!important; max-width:760px!important; min-width:0!important; }
  .showcase-content h1,.portal-hero h1 { font-size:clamp(29px,7.1vw,54px)!important; line-height:1.12!important;
    overflow-wrap:normal!important; text-wrap:balance; }
  .showcase-content p,.portal-hero p { font-size:clamp(15px,3.8vw,19px)!important;
    line-height:1.6!important; }
  .hero-ip-row { display:flex!important; flex-direction:column!important; align-items:center!important;
    gap:12px!important; width:100%!important; max-width:100%!important; }
  .hero-ip-row>* { width:min(100%,380px)!important; max-width:100%!important; min-height:44px!important;
    display:flex!important; align-items:center!important; justify-content:center!important;
    white-space:normal!important; text-align:center!important; overflow-wrap:anywhere; }
  .portal-statusband { width:100%!important; max-width:100%!important; min-width:0!important;
    display:grid!important; grid-template-columns:repeat(3,minmax(0,1fr))!important; }
  .portal-status { min-width:0!important; width:100%!important; padding:18px!important; }
  .portal-status strong,.portal-status small { overflow-wrap:anywhere; }
  .portal-section-header { display:flex!important; flex-wrap:wrap!important; align-items:flex-start!important; gap:10px!important; }
  .portal-section-header h2,.page-topline h1 { font-size:clamp(24px,5.8vw,38px)!important; line-height:1.18!important; }
  .feature-card,.portal-panel,.portal-join-panel,.help-card,.side-card,.form-card { min-width:0!important; max-width:100%!important; }
  .portal-ip,.portal-actions,.form-buttons,.composer-bottom,.thread-heading,.page-topline { max-width:100%!important;
    flex-wrap:wrap!important; gap:10px!important; }
  .portal-ip code { min-width:0; white-space:normal; overflow-wrap:anywhere; }
  .world-inner { padding-block:25px!important; }
  .world-title { font-size:clamp(26px,5.7vw,38px)!important; line-height:1.2!important; }
  .world-desc { max-width:100%; }
  /* Responsive forum columns, post headers and new topic composer. */
  .forum-post { display:flex!important; flex-direction:column!important; width:100%!important; }
  .post-person { width:100%!important; min-width:0!important; max-width:100%!important; }
  .post-message,.message-body,.v170-formatted-post { width:100%!important; max-width:100%!important;
    min-width:0!important; overflow-wrap:anywhere!important; }
  .topic-table,.board-table,.posts-thread { width:100%!important; max-width:100%!important; min-width:0!important; }
  .board-forum,.board-forum-text,.topic-text,.topic-main { min-width:0!important; max-width:100%!important; }
  .topic-row,.board-row { width:100%!important; max-width:100%!important; min-width:0!important; }
  .topic-columns,.board-col-head { display:none!important; }
  .topic-row { display:flex!important; flex-wrap:wrap!important; align-items:center!important; gap:9px!important; padding:12px!important; }
  .topic-row>*,.board-row>* { min-width:0!important; }
  .topic-row .topic-last { display:none!important; }
  .board-row { display:flex!important; align-items:center!important; gap:10px!important; padding:12px!important; }
  .board-row .board-count,.board-row .board-latest { display:none!important; }
  .editor-layout .form-card,.editor-layout .help-card { width:100%!important; min-width:0!important; }
  .stack-form,.stack-form label { width:100%!important; min-width:0!important; }
  .stack-form input,.stack-form textarea,.stack-form select,
  .member-search-controls input,.member-search-form input { box-sizing:border-box!important; max-width:100%!important; min-width:0!important; }
  .member-search-controls { flex-wrap:wrap!important; max-width:100%!important; }
  .member-directory-row { width:100%!important; max-width:100%!important; min-width:0!important;
    display:flex!important; gap:9px!important; flex-wrap:wrap!important; }
  .member-directory-row span { min-width:0; overflow-wrap:anywhere; }
  .page-footer { padding-block:24px max(24px,env(safe-area-inset-bottom))!important; }
  .footer-grid { display:flex!important; flex-direction:column!important; gap:14px!important;
    align-items:stretch!important; }
  .footer-grid>* { width:100%!important; min-width:0!important; max-width:100%!important; }
  .footer-links { width:100%!important; min-width:0!important; display:flex!important;
    flex-wrap:wrap!important; gap:8px 14px!important; align-items:center!important; }
  .footer-links>* { width:auto!important; min-width:0!important; margin:0!important;
    white-space:normal!important; overflow-wrap:anywhere!important; }
  .footer-grid .minecraft-disclaimer { max-width:100%!important; }
  /* Keep long tables scrollable INSIDE their panel; never widen the site. */
  .history-panel,.moderation-area,.sanction-history,.profile-content { max-width:100%; min-width:0!important; }
  .history-panel table,.moderation-area table { display:block; overflow-x:auto; max-width:100%; }
  .form-card input,.form-card textarea,.form-card select,.v170-rich-editor,
  .forum-editor,[contenteditable="true"] { max-width:100%!important; min-width:0!important; }
}
@media (max-width: 640px) {
  .wrap,.page-shell,.world-inner,.network-header-main,.network-navigation-inner,.footer-grid,
  .portal-hero-inner { width:calc(100% - 28px)!important; }
  .portal-statusband { grid-template-columns:minmax(0,1fr)!important; }
  .portal-status { padding:15px 17px!important; }
  .feature-grid,.contact-grid,.community-151-grid { grid-template-columns:minmax(0,1fr)!important; }
  .portal-hero-inner { padding-block:64px!important; }
  .world-inner { padding-block:24px!important; }
  .world-title { font-size:clamp(24px,7vw,32px)!important; }
  .page-shell { padding-top:20px!important; padding-bottom:28px!important; }
  .portal-section { margin-block:30px!important; }
  .page-topline,.breadcrumbs { overflow-wrap:anywhere; }
  .form-buttons .btn,.composer-bottom .btn { max-width:100%!important; white-space:normal!important; }
  .stack-form input,.stack-form textarea,.stack-form select, .member-search-controls input,
  .member-search-form input { font-size:16px!important; } /* avoid iOS automatic zoom */
  .footer-links { gap:10px 16px!important; }
}
@media (max-width: 375px) {
  .network-identity img { width:37px!important; height:37px!important; }
  .network-identity { gap:7px!important; }
  .network-identity>span { font-size:18px!important; }
  .v186-menu-toggle { padding:8px!important; gap:5px; font-size:12px; }
  .network-auth .season-toggle,.network-auth .theme-toggle,.network-auth .network-account { font-size:11px!important; }
  .showcase-content h1,.portal-hero h1 { font-size:29px!important; }
  .portal-ip { flex-direction:column!important; align-items:stretch!important; }
}
@media (prefers-reduced-motion:reduce) {
  .v186-menu-toggle,.network-navigation { transition:none!important; }
}
@media (max-width:640px) {
  .privacy-dialog,.privacy-modal,.privacy-panel,.modal,.dialog,[role="dialog"] {
    max-width:calc(100vw - 28px)!important;
  }
  .alert,.external-warning,.external-actions,.info-strip,.profile-content,
  .community-notice,.notice-content,.thread-replies-control { min-width:0!important; max-width:100%!important; overflow-wrap:anywhere; }
  .external-actions,.portal-actions { display:flex!important; flex-wrap:wrap!important; gap:10px!important; }
  .form-buttons>button,.form-buttons>a { min-height:44px; }
  button,a,summary { touch-action:manipulation; }
}
