/* Thinking Datacenters shared site chrome: the R32 website header and footer.
   The same file is used unchanged by STRATUM Support (the forum) and
   STRATUM Downloads. Rules were extracted from the R32 site stylesheet
   (site.css); links in each app's index.html are absolute website URLs.
   To follow a future website redesign, re-extract from that release and copy
   the file into both apps. Do not add global type/form selectors here: each
   app keeps its own UI styles in style.css. */
:root { --accent: #EC3A3A; }
.site-header, .site-footer { line-height:1.34; letter-spacing:-.018em; font-family:Aptos,"Helvetica Neue",Arial,sans-serif; }
.site-header a, .site-footer a { text-decoration:none; color:inherit; }
.site-header a:hover, .site-footer a:hover { color:#fff; }
.site-header img, .site-footer img { display:block; max-width:100%; height:auto; }
.site-header button { font-family:inherit; }

/* ---- R32 header / footer ---- */
.site-header{height:70px;background:#050505;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(20px,4vw,70px);position:sticky;top:0;z-index:20;border-bottom:1px solid #292929}
.brand,.footer-brand{display:flex;align-items:center;gap:12px;font-weight:800;letter-spacing:.08em;font-size:14px;line-height:.95}
.brand img,.footer-brand img{width:42px;height:42px;object-fit:contain}
.site-header nav,.site-footer nav{display:flex;gap:clamp(18px,2.8vw,46px);font-size:14px;letter-spacing:.01em}
.site-header nav a,.site-footer nav a{opacity:.82}
.site-header nav a:hover,.site-footer nav a:hover{opacity:1}
.site-footer{background:#050505;color:#fff;min-height:110px;display:grid;grid-template-columns:1fr 1fr 1fr;gap:30px;align-items:center;padding:26px clamp(20px,4vw,70px)}
.site-footer>p{font-size:11px;color:#bfbfbf;text-align:center;margin:0;letter-spacing:.06em}
.site-footer nav{justify-content:flex-end;font-size:12px;gap:22px}
@media (max-width:800px){
.site-header{height:auto;padding:14px 18px;align-items:flex-start}
.site-header nav{display:none}
.brand img{width:34px;height:34px}
.site-footer{grid-template-columns:1fr;text-align:center}
.footer-brand{justify-content:center}
.site-footer nav{justify-content:center;flex-wrap:wrap}
.site-footer>p{order:3}
}
.site-header{height:auto;min-height:70px;gap:16px}
.header-main{width:100%;display:flex;align-items:center;gap:22px}
.site-header nav{margin-left:auto;gap:clamp(12px,1.4vw,25px);font-size:12px;white-space:nowrap}
.site-header nav a.active{color:#fff;border-bottom:1px solid #fff}
.referral-launch{margin-left:10px;background:transparent;color:#e4b46d;border:0;border-bottom:1px solid #795b31;padding:10px 0 9px;font:800 12px/1 Arial,sans-serif;letter-spacing:.06em;white-space:nowrap;cursor:pointer}
.nav-toggle{display:none;background:#111;color:#fff;border:1px solid #333;padding:7px 10px;font-size:18px}
.site-footer{min-height:0;display:block;padding:0}
.footer-grid{max-width:var(--page);margin:0 auto;padding:36px clamp(24px,5vw,80px);display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:40px}
.footer-grid>div:not(.footer-brand){display:flex;flex-direction:column;gap:9px}
.footer-grid h4{font-size:11px;letter-spacing:.09em;color:#e4b46d;margin:0 0 5px}
.footer-grid a{font-size:13px;color:#ddd}
.footer-brand{align-items:flex-start}
.footer-brand img{width:58px;height:58px}
.footer-brand strong{font-size:15px;letter-spacing:.08em}
.footer-brand p{font-size:12px;color:#aaa;margin:10px 0 0}
.footer-bottom{border-top:1px solid #252525;max-width:var(--page);margin:0 auto;padding:15px clamp(24px,5vw,80px);display:flex;justify-content:space-between;font-size:10px;color:#888;letter-spacing:.04em}
@media(max-width:850px){
.footer-grid{grid-template-columns:1fr}
.footer-bottom{flex-direction:column;gap:5px}
}
@media(max-width:520px){
.site-header{padding:12px 14px}
.referral-launch{font-size:10px}
}
@media(max-width:1120px){
.site-header nav{display:none}
.nav-toggle{display:block;margin-left:auto}
.site-header.open nav{display:flex;position:absolute;left:0;right:0;top:100%;background:#050505;padding:18px 24px;flex-wrap:wrap;border-top:1px solid #222;z-index:24}
}
@media(max-width:520px){
.header-main{flex-wrap:wrap;gap:10px}
.header-main .brand{margin-right:auto}
.header-main .nav-toggle{order:2;margin-left:auto}
.header-main .referral-launch{order:3;flex:0 0 100%;margin:0;text-align:left;padding-top:7px;padding-bottom:4px;width:max-content;border-bottom:0}
.site-header.open nav{padding:16px;gap:17px}
}
.footer-brand-with-socials{display:grid;grid-template-columns:58px 1fr;column-gap:14px;row-gap:24px}
.footer-brand-with-socials>img{grid-column:1;grid-row:1}
.footer-brand-with-socials>div:not(.footer-socials){grid-column:2;grid-row:1}
.footer-socials{grid-column:1 / -1;display:flex;flex-wrap:wrap;gap:9px 13px;align-items:center}
.footer-grid .footer-brand-with-socials .footer-socials a{font-size:11px;font-weight:750;color:#e0e0e0;letter-spacing:.035em;padding-bottom:5px;border-bottom:1px solid #555}
.footer-grid .footer-brand-with-socials .footer-socials a:hover{color:#fff;border-color:var(--accent)}
.footer-socials a span{color:var(--accent);margin-left:2px}
@media(max-width:850px){
.footer-brand-with-socials{justify-content:center;text-align:left}
.footer-socials{justify-content:center}
}
@media(max-width:650px){
.footer-socials{gap:12px}
}
.footer-brand-with-socials{row-gap:26px}
.footer-socials{gap:21px;align-items:center}
.footer-grid .footer-brand-with-socials .footer-socials a{display:inline-flex;align-items:center;justify-content:center;min-width:25px;
  min-height:29px;padding:3px 0;border:0;color:#ddd;transition:color .16s ease;}
.footer-socials a svg{display:block;width:24px;height:24px;fill:currentColor;flex:none}
.footer-grid .footer-brand-with-socials .footer-socials a:hover,.footer-grid .footer-brand-with-socials .footer-socials a:focus-visible{color:var(--accent);border:0}
.footer-socials a[aria-label$="Discord community"] svg{width:27px}
@media(max-width:650px){
.footer-socials{gap:23px}
}
.footer-grid{grid-template-columns:minmax(230px,1.4fr) repeat(3,minmax(0,1fr));
  column-gap:clamp(22px,3vw,48px);}
.footer-grid .footer-company{min-width:0}
.footer-grid .footer-company .footer-use-cases{margin-top:14px;
  padding-top:15px;
  border-top:1px solid #2b2b2b;
  display:flex;
  flex-direction:column;
  gap:9px;
  align-items:flex-start;}
.footer-grid .footer-company .footer-use-cases h4{margin:0 0 5px}
@media(max-width:900px){
.footer-grid{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:30px}
.footer-grid .footer-brand{grid-column:1/-1}
}
@media(max-width:360px){
.footer-grid{grid-template-columns:1fr}
.footer-grid .footer-brand{grid-column:1}
}
.site-header .header-main{min-width:0;gap:clamp(10px,1.2vw,19px)}
.site-header .brand{flex-shrink:0}
.site-header #primary-navigation{display:flex;align-items:center;justify-content:flex-end;gap:clamp(12px,1.35vw,22px);font-size:14px;line-height:1.35;white-space:nowrap;margin-left:auto}
.site-header #primary-navigation>a{display:inline-flex;align-items:center;min-height:40px}
.site-header #primary-navigation>a:focus-visible,.site-header .platform-menu-toggle:focus-visible,.site-header .platform-menu a:focus-visible{outline:2px solid #e4b46d;outline-offset:3px}
.site-header .referral-launch{flex-shrink:0;margin-left:0;font-size:13.4px}
.site-header .platform-nav{position:relative;display:flex;align-items:center}
.site-header .platform-menu-toggle{display:inline-flex;align-items:center;justify-content:space-between;gap:9px;min-height:40px;border:0;padding:0;background:transparent;color:#e9e9e9;cursor:pointer;font:inherit;letter-spacing:inherit;white-space:nowrap}
.site-header .platform-menu-toggle:hover,.site-header .platform-nav.is-open .platform-menu-toggle{color:#fff}
.site-header .platform-menu-chevron{display:inline-block;width:7px;height:7px;flex:0 0 7px;border-right:1.8px solid currentColor;border-bottom:1.8px solid currentColor;transform:translateY(-2px) rotate(45deg);transition:transform .15s ease}
.site-header .platform-nav.is-open .platform-menu-chevron{transform:translateY(2px) rotate(225deg)}
.site-header .platform-menu{display:none;position:absolute;top:calc(100% + 15px);left:-18px;z-index:40;width:500px;max-width:calc(100vw - 32px);padding:22px 23px;background:#0d0d0e;border:1px solid #393939;border-radius:3px;box-shadow:0 18px 40px rgba(0,0,0,.32);white-space:normal;grid-template-columns:repeat(2,minmax(0,1fr));gap:23px}
.site-header .platform-nav.is-open .platform-menu{display:grid}
.site-header .platform-menu-group{display:flex;flex-direction:column;align-items:stretch;gap:2px;min-width:0}
.site-header .platform-menu-heading{color:#e4b46d;font-weight:800;font-size:13.5px;letter-spacing:.07em;line-height:1.4;margin-bottom:9px}
.site-header .platform-menu a{display:block;opacity:1;color:#e8e8e8;padding:8px 6px;margin:0 -6px;border:0;font-size:14px;line-height:1.35;white-space:normal;border-radius:2px}
.site-header .platform-menu a:hover,.site-header .platform-menu a:focus-visible{background:#202024;color:#fff}
@media(min-width:1121px) and (max-width:1380px){
.site-header #primary-navigation{display:flex}
.site-header .nav-toggle{display:none}
}
@media(max-width:1120px){
.site-header #primary-navigation{display:none}
.site-header .nav-toggle{display:block;margin-left:auto}
.site-header.open #primary-navigation{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:5px;top:100%;padding:15px clamp(18px,4vw,42px) 24px;max-height:calc(100dvh - 70px);overflow-y:auto;overflow-x:hidden;white-space:normal}
.site-header.open #primary-navigation>a,.site-header.open .platform-menu-toggle{padding:10px 4px;min-height:44px;font-size:15px;line-height:1.35}
.site-header .platform-nav{display:block;width:100%}
.site-header .platform-menu-toggle{width:100%;text-align:left}
.site-header .platform-menu{position:static;width:100%;max-width:none;grid-template-columns:repeat(2,minmax(0,1fr));margin:1px 0 8px;padding:14px 17px;border-color:#292929;box-shadow:none}
.site-header .platform-menu-heading{font-size:13.5px}
.site-header .platform-menu a{font-size:14px}
}
@media(max-width:520px){
.site-header .platform-menu{grid-template-columns:1fr;gap:16px}
.site-header .referral-launch{font-size:13.4px}
}
@media(prefers-reduced-motion:reduce){
.site-header .platform-menu-chevron{transition:none}
}
.site-header #primary-navigation > .whitepaper-nav-link{position:relative;display:inline-flex;align-items:center;justify-content:center;
  flex:0 0 30px;min-height:40px;width:30px;color:#fff;opacity:1;
  line-height:1;transition:opacity .15s ease;}
.site-header .whitepaper-nav-link svg{display:block;width:22px;height:23px;flex:none;fill:currentColor;color:#fff}
.site-header .whitepaper-nav-link:hover{color:#fff;opacity:.85}
.site-header .whitepaper-nav-link:focus-visible{outline:2px solid #e4b46d;outline-offset:3px}
.site-header .whitepaper-nav-label{display:none}
.site-header .whitepaper-nav-link::after{content:attr(data-tooltip);pointer-events:none;position:absolute;
  top:calc(100% + 6px);left:50%;transform:translate(-50%,-4px);
  z-index:90;opacity:0;visibility:hidden;white-space:nowrap;
  padding:7px 10px;background:#1c1c1c;border:1px solid #555;
  color:#fff;font:700 12px/1.25 Arial,sans-serif;letter-spacing:.01em;
  box-shadow:0 8px 24px rgba(0,0,0,.35);transition:opacity .12s ease,transform .12s ease,visibility .12s;}
.site-header .whitepaper-nav-link:hover::after,.site-header .whitepaper-nav-link:focus-visible::after{opacity:1;visibility:visible;transform:translate(-50%,0);}
@media(max-width:1120px){
.site-header.open #primary-navigation > .whitepaper-nav-link{justify-content:flex-start;gap:12px;flex:0 0 auto;width:100%;min-height:44px;
    padding:10px 4px;font-size:15px;line-height:1.35;color:#fff;}
.site-header.open .whitepaper-nav-label{display:inline;color:#f5f5f5;font-weight:600}
.site-header .whitepaper-nav-link::after{display:none}
}
@media(prefers-reduced-motion:reduce){
.site-header .whitepaper-nav-link,.site-header .whitepaper-nav-link::after{transition:none}
}
.site-header #primary-navigation>a:focus-visible,.site-header .hardware-menu-toggle:focus-visible,.site-header .hardware-menu a:focus-visible{outline:2px solid #e4b46d;outline-offset:3px}
.site-header .hardware-nav{position:relative;display:flex;align-items:center}
.site-header .hardware-menu-toggle{display:inline-flex;align-items:center;justify-content:space-between;gap:9px;min-height:40px;border:0;padding:0;background:transparent;color:#e9e9e9;cursor:pointer;font:inherit;letter-spacing:inherit;white-space:nowrap}
.site-header .hardware-menu-toggle:hover,.site-header .hardware-nav.is-open .hardware-menu-toggle{color:#fff}
.site-header .hardware-menu-chevron{display:inline-block;width:7px;height:7px;flex:0 0 7px;border-right:1.8px solid currentColor;border-bottom:1.8px solid currentColor;transform:translateY(-2px) rotate(45deg);transition:transform .15s ease}
.site-header .hardware-nav.is-open .hardware-menu-chevron{transform:translateY(2px) rotate(225deg)}
.site-header .hardware-menu{display:none;position:absolute;top:calc(100% + 15px);left:-18px;z-index:40;width:500px;max-width:calc(100vw - 32px);padding:22px 23px;background:#0d0d0e;border:1px solid #393939;border-radius:3px;box-shadow:0 18px 40px rgba(0,0,0,.32);white-space:normal;grid-template-columns:repeat(2,minmax(0,1fr));gap:23px}
.site-header .hardware-nav.is-open .hardware-menu{display:grid}
.site-header .hardware-menu-group{display:flex;flex-direction:column;align-items:stretch;gap:2px;min-width:0}
.site-header .hardware-menu-heading{color:#e4b46d;font-weight:800;font-size:13.5px;letter-spacing:.07em;line-height:1.4;margin-bottom:9px}
.site-header .hardware-menu a{display:block;opacity:1;color:#e8e8e8;padding:8px 6px;margin:0 -6px;border:0;font-size:14px;line-height:1.35;white-space:normal;border-radius:2px}
.site-header .hardware-menu a:hover,.site-header .hardware-menu a:focus-visible{background:#202024;color:#fff}
@media(max-width:1120px){
.site-header.open #primary-navigation>.hardware-nav,.site-header .hardware-nav{display:block;width:100%}
.site-header.open .hardware-menu-toggle{padding:10px 4px;min-height:44px;font-size:15px;line-height:1.35;width:100%;text-align:left}
.site-header .hardware-menu{position:static;width:100%;max-width:none;grid-template-columns:repeat(2,minmax(0,1fr));margin:1px 0 8px;padding:14px 17px;border-color:#292929;box-shadow:none}
.site-header .hardware-menu-heading{font-size:13.5px}
.site-header .hardware-menu a{font-size:14px}
}
@media(max-width:520px){
.site-header .hardware-menu{grid-template-columns:1fr;gap:16px}
}


/* ---- Referral overlay (same markup as the website), scoped to its id ---- */
#referral-modal { position:fixed; inset:0; background:rgba(0,0,0,.42); display:none;
 place-items:center; padding:20px; z-index:100; }
#referral-modal.open { display:grid; }
#referral-modal .modal-card { background:#fff; border:1px solid #111; width:100%; max-width:760px;
 padding:36px; position:relative; box-shadow:0 28px 70px rgba(0,0,0,.25); }
#referral-modal .modal-card h2 {font-size:42px;line-height:1.03;letter-spacing:-.048em;margin:8px 0 16px;}
#referral-modal .modal-card p {font-size:17px;line-height:1.5;max-width:none;}
#referral-modal .eyebrow {font-size:13px;font-weight:800;letter-spacing:.045em;color:#EC3A3A;}
#referral-modal .button.dark {display:inline-flex;align-items:center;justify-content:center;
 padding:12px 16px;border:1px solid #111;background:#111;color:white;font-weight:800;font-size:14px;}
#referral-modal .text-link {font-size:14px;font-weight:700;color:#EC3A3A;}
#referral-modal .modal-close {position:absolute;right:15px;top:12px;border:0;background:none;font-size:28px;cursor:pointer;color:#111}
#referral-modal .modal-steps {display:grid;grid-template-columns:repeat(3,1fr);margin:28px 0;border-top:1px solid #ccc;border-bottom:1px solid #ccc}
#referral-modal .modal-steps div {padding:18px;border-right:1px solid #ccc;display:flex;flex-direction:column;gap:5px}
#referral-modal .modal-steps div:last-child {border-right:0}
#referral-modal .modal-steps b {color:var(--accent)}
#referral-modal .modal-steps span {font-size:13px;color:#555}
#referral-modal .modal-actions {display:flex;align-items:center;justify-content:flex-start;gap:20px;flex-wrap:wrap;margin-top:0}
@media (max-width:850px){
 #referral-modal .modal-steps {grid-template-columns:1fr}
 #referral-modal .modal-steps div {border-right:0;border-bottom:1px solid #ccc}
 #referral-modal .modal-steps div:last-child {border-bottom:0}
}
@media(max-width:520px){
 #referral-modal .modal-card {padding:24px;}
 #referral-modal .modal-card h2 {font-size:30px;}
}

/* A nav item marked .active is the current page (Downloads marks "Download"). */
.site-header #primary-navigation > a.active { color:#fff; opacity:1; border-bottom:1px solid var(--accent); }
.site-footer .footer-brand strong { font-weight:900; }
@media(max-width:800px){ .site-header, .site-footer { font-size:15px; } }
