/* NordicFile — unified stylesheet */

*{ box-sizing: border-box; }

:root{
  --max: 920px;
  --pad: 28px;
  --text: #111;
  --muted: #555;
  --line: #e5e5e5;
  --bg: #eaf4ff;
}

/* Base */
body{
  margin:0;
  font-family: Tahoma, Arial, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

a{ color: var(--text); }
a:hover{ opacity: 0.85; }

ul{ padding-left: 18px; }

hr{
  border:0;
  border-top:1px solid var(--line);
  margin:22px 0;
}

/* Accessibility */
.skip-link{
  position:absolute;
  left:-999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}
.skip-link:focus{
  left:16px;
  top:16px;
  width:auto;
  height:auto;
  padding:8px 10px;
  background:#fff;
  border:1px solid #000;
  z-index:9999;
}

/* Layout panel */
main{
  max-width: var(--max);
  margin: 40px auto;
  padding: var(--pad);
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
}

/* Header + footer align with main */
body > header,
body > footer{
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--pad);
  background: transparent;
  border: 0;
}
.logo{
  max-height: 66px;
  height: auto;
}

.brand{
  display: inline-flex;
  align-items: center;
}

/* Main nav layout (header.html) */
.main-nav{
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.nav-links{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Nav link styling */
nav a{
  text-decoration: none;
  color: var(--text);
}
nav a:hover{
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Cards */
.card{
  border:1px solid var(--line);
  background:#fff;
  border-radius:14px;
  padding:16px;
  margin:14px 0;
}

/* Buttons */
.btn{
  display:inline-block;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid #999;
  text-decoration:none;
  font-weight:600;
  color:#000;
  background: transparent;
}
.btn:hover{ opacity:0.9; }

.btn.primary{
  border-color:#000;
  background:#000;
  color:#fff;
  font-weight:700;
}
.btn.ghost{
  border-color:#999;
  font-weight:600;
}

/* Text helpers */
.muted{
  color: var(--muted);
  font-size: 0.98em;
}

/* Homepage helpers */
.wrap{ max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.section{ margin: 22px 0; }
.btnrow{ display:flex; flex-wrap:wrap; gap:10px; align-items:center; }

.grid3{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap:14px;
}

.featured{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap:14px;
}

.meta{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.soft{ border:1px solid var(--line); border-radius:14px; padding:12px; background:#fff; }
.link{ text-decoration: underline; text-underline-offset: 3px; }
.footlinks{ display:flex; flex-wrap:wrap; gap:10px; align-items:center; }

/* Small spacing help */
main p .btn{ margin-right:10px; margin-bottom:10px; }

/* Footer bar (if you use it) */
.footer-bar{
  max-width: var(--max);
  margin: 40px auto 20px;
  padding: 0 var(--pad);
}
.footer-inner{
  position: relative; /* IMPORTANT if you keep centered section */
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:10px;
}
.footer-left,
.footer-center{
  font-size:0.95em;
}
.footer-center{
  /* Simple: no absolute centering to avoid overlap */
}
.footer-center a{
  text-decoration:none;
}
.footer-center a:hover{
  text-decoration: underline;
}

/* Mobile */
@media (max-width: 768px){
  body > header,
  body > footer{ padding: 18px; }

  main{
    margin: 24px auto;
    padding: 18px;
  }
}