/* ==========================================================
   SEMBEE TECHNICAL - GLOBAL STYLESHEET
   ==========================================================
   This file should be identical on every Classic ASP
   technical site.

   Site-specific colours and any genuine site-only overrides
   belong in /assets/css/site.css.
   ========================================================== */

:root{
  --paper:#f5f5f2;
  --surface:#ffffff;
  --ink:#202321;
  --muted:#686d69;
  --line:#d7dad6;
  --shell-width:1180px;
  --shell-padding:34px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  color:var(--ink);
  background:var(--paper);
  font-family:"Segoe UI",Arial,sans-serif;
  line-height:1.62;
}
a{color:var(--site-link)}
a:hover{color:var(--site-link-hover);text-decoration:none}
img{max-width:100%}

.shell,
.site-footer-inner{
  width:100%;
  max-width:var(--shell-width);
  margin:0 auto;
  padding-left:var(--shell-padding);
  padding-right:var(--shell-padding);
}

.skip-link{
  position:absolute;
  left:-9999px;
  top:0;
  padding:10px 14px;
  background:#fff;
  color:#111;
  z-index:100;
}
.skip-link:focus{left:10px;top:10px}

/* Global Sembee identity */
.site-header{
  background:var(--surface);
  border-bottom:1px solid var(--line);
}
.masthead{
  min-height:82px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
}
.brand{
  display:flex;
  align-items:center;
  gap:14px;
  text-decoration:none;
  color:var(--ink);
}
.brand img{
  width:50px;
  height:50px;
  display:block;
  object-fit:contain;
}
.brand-copy{
  display:flex;
  flex-direction:column;
  line-height:1.12;
}
.brand-copy strong{font-size:1rem}
.brand-copy span{
  margin-top:5px;
  color:var(--muted);
  font-size:.74rem;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.global-nav{
  display:flex;
  align-items:center;
  gap:26px;
  font-size:.9rem;
}
.global-nav a{
  color:#4d524e;
  text-decoration:none;
}
.global-nav a:hover,
.global-nav a:focus{
  color:var(--ink);
  text-decoration:underline;
}
.global-nav a[aria-current="page"]{
  color:var(--ink);
  font-weight:600;
  text-decoration:none;
}

/* Publication identity and navigation */
.publication{border-bottom:0}
.publication-identity{background:var(--site-accent)}
.publication-identity .shell{
  min-height:58px;
  display:flex;
  align-items:center;
}
.publication-title,
.publication-title:hover,
.publication-title:focus{
  color:var(--site-accent-text);
  text-decoration:none;
}
.publication-title strong{
  font-size:1.34rem;
  letter-spacing:-.02em;
}
.publication-navigation{
  background:#fff;
  border-bottom:1px solid var(--line);
}
.site-nav{
  min-height:52px;
  display:flex;
  align-items:center;
  gap:22px;
  flex-wrap:wrap;
  font-size:.92rem;
}
.site-nav a{
  color:#4d524e;
  text-decoration:none;
  padding:15px 0 10px;
  border-bottom:3px solid transparent;
}
.site-nav a:hover{
  color:var(--ink);
  border-bottom-color:var(--site-accent);
}
.site-nav a[aria-current="page"]{
  color:var(--ink);
  font-weight:650;
  border-bottom-color:var(--site-accent);
}

/* Article */
.page-main{padding:0 0 72px}
.article-shell{padding-top:62px}
.page-introduction{padding-top:0;padding-bottom:38px}
.section-kicker{
  margin:0 0 18px;
  color:var(--muted);
  font-size:.72rem;
  font-weight:750;
  letter-spacing:.18em;
  text-transform:uppercase;
}
.page-introduction h1{
  margin:0 0 16px;
  font-size:clamp(2rem,4vw,3rem);
  line-height:1.12;
  letter-spacing:-.035em;
}
.page-meta{
  margin:0;
  color:var(--muted);
  font-size:.9rem;
}

/*
   The heading and article deliberately share .article-shell.
   Do not add separate horizontal padding to either section.
*/
.article-content{
  border-top:1px solid var(--line);
  padding-top:30px;
}
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4{line-height:1.3}
.article-content h2{
  margin:30px 0 12px;
  font-size:1.35rem;
}
.article-content h3{
  margin:26px 0 10px;
  font-size:1.15rem;
}
.article-content h2:first-child,
.article-content h3:first-child{margin-top:0}
.article-content p{margin:0 0 18px}
.article-content ol,
.article-content ul{
  margin:0 0 20px;
  padding-left:28px;
}
.article-content li{margin:5px 0}
.article-content hr{
  border:0;
  border-top:1px solid var(--line);
  margin:34px 0;
}
.article-content b,
.article-content strong{font-weight:650}

/* Compatibility with older FrontPage-era content */
.article-content font{font:inherit}
.article-content table{
  max-width:100%;
  border-collapse:collapse;
}
.article-content img{height:auto}
.article-content pre{
  max-width:100%;
  overflow-x:auto;
}
.article-content code,
.article-content pre{
  font-family:Consolas,"Courier New",monospace;
}

.page-links{
  margin:28px 0 0;
  font-size:.9rem;
}
.page-links span{
  padding:0 7px;
  color:var(--muted);
}



/* Shared cross-site discovery panel */
.resources-panel{
  padding:42px 0 50px;
  background:#eceeeb;
  border-top:1px solid var(--line);
}
.resources-panel .section-kicker{margin-bottom:18px}
.resource-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:22px;
}
.resource-card{
  min-height:150px;
  display:flex;
  flex-direction:column;
  gap:7px;
  padding:24px 26px;
  background:#fff;
  border-top:4px solid var(--site-accent);
  color:var(--ink);
  text-decoration:none;
}
.resource-card:hover,
.resource-card:focus{
  color:var(--ink);
  text-decoration:none;
  transform:translateY(-1px);
}
.resource-card strong{
  font-size:1.05rem;
  line-height:1.3;
}
.resource-card span{
  color:#4f5551;
  font-size:.9rem;
  line-height:1.55;
}
.resource-exchange{border-top-color:#79558d}
.resource-office{border-top-color:#52758d}
.resource-dos{border-top-color:#a66c2d}
.resource-w32tm{border-top-color:#727875}
.resource-browse{
  margin:10px 0 0;
  font-size:.9rem;
}

/* Footer */
.site-footer{
  margin-top:24px;
  background:#20272e;
  color:#dbe0e5;
  padding:48px 0 34px;
}
.resources-panel + .site-footer{margin-top:0}
.site-footer-grid{
  display:grid;
  grid-template-columns:1.35fr 1fr 1fr;
  gap:48px;
}
.footer-brand-block img{
  width:118px;
  background:#fff;
  padding:7px 9px;
  display:block;
}
.site-footer h2{
  color:#fff;
  font-size:15px;
  text-transform:uppercase;
  letter-spacing:.08em;
  margin:0 0 15px;
}
.site-footer p{
  color:#b9c1c8;
  font-size:14px;
  margin:12px 0 0;
}
.site-footer ul{
  list-style:none;
  margin:0;
  padding:0;
}
.site-footer li{margin:8px 0}
.site-footer a{
  color:#fff;
  text-decoration:none;
}
.site-footer a:hover{text-decoration:underline}
.site-footer .footer-legal{
  border-top:1px solid #3a434b;
  margin-top:34px;
  padding-top:22px;
  color:#aeb6bd;
  font-size:13px;
}

@media(max-width:980px){
  .site-footer-grid{grid-template-columns:1fr 1fr}
  .footer-brand-block{grid-column:1/-1}
}

@media(max-width:680px){
  :root{--shell-padding:20px}

  .masthead{min-height:72px}
  .brand img{width:44px;height:44px}
  .brand-copy span{display:none}
  .global-nav{gap:16px}
  .global-nav a:nth-child(2){display:none}

  .publication-identity .shell{min-height:52px}

  .site-nav{
    min-height:46px;
    gap:17px;
    flex-wrap:nowrap;
    overflow-x:auto;
  }
  .site-nav a{
    padding:11px 0 8px;
    white-space:nowrap;
  }

  .article-shell{padding-top:42px}
  .page-introduction{padding-bottom:30px}
  .article-content{padding-top:24px}

  .resource-grid{grid-template-columns:1fr}

  .site-footer-grid{grid-template-columns:1fr}
  .footer-brand-block{grid-column:auto}
}
