/* =========================================
   1. AGGRESSIVE SCOPED RESET FOR .lss-wrapper
   ========================================= */
.lss-wrapper,
.lss-wrapper *,
.lss-wrapper *::before,
.lss-wrapper *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: baseline;
  background: transparent;
  
  /* Aggressive Font/Typography Reset to block external styles */
  font-family: inherit;
  font-size: 100%; 
  font-weight: normal;
  font-style: normal;
  line-height: inherit;
  color: inherit;
  text-transform: none;
  letter-spacing: normal;
  text-decoration: none;
  list-style: none;
}

/* Restore basic display properties for media and tables */
.lss-wrapper img {
  display: block;
  max-width: 100%;
  height: auto;
}

.lss-wrapper table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Restore basic typography weight (since reset stripped it) */
.lss-wrapper h1, 
.lss-wrapper h2, 
.lss-wrapper h3, 
.lss-wrapper th,
.lss-wrapper strong,
.lss-wrapper b {
  font-weight: bold;
}

/* =========================================
   2. YOUR COMPONENT STYLES
   ========================================= */
:root { 
  --hamar-red:#ef483e; 
}

.lss-wrapper {
  /* All children will now strictly inherit these base values */
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5; /* Added a base line height for inheritance */
  margin: 0;
  padding: 40px 0;
  background: #f7f7f7;
  color: #111;
  font-size: 16px;
}

.lss-wrapper .card {
  max-width: 1000px;
  margin: 0px auto;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
  border-radius: 8px;
  overflow: hidden;
}

.lss-wrapper .logo-bar {
  background: #000;
  text-align: center;
  padding: 24px 0;
}

.lss-wrapper .logo-bar img { 
  max-width: 260px; 
  margin: 0 auto;
}

.lss-wrapper h1 {
  color: var(--hamar-red);
  text-align: center;
  margin: 32px 0 16px;
  font-size: 32px; /* Changed from 2rem to ensure strict sizing */
  padding: 0 18px;
}

.lss-wrapper p.lsslead {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 24px;
  line-height: 1.45;
  padding: 0 18px;
}

/* Make email links Hamar orange */
.lss-wrapper p.lsslead a, 
.lss-wrapper .foot a {
  color: var(--hamar-red);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.lss-wrapper p.lsslead a:hover, 
.lss-wrapper .foot a:hover {
  color: #c93a33;
}

/* Start Here cards */
.lss-wrapper .start-here {
  width: 90%;
  margin: 0 auto 30px;
  padding: 0;
}

.lss-wrapper .start-here h2 {
  margin: 0 0 12px;
  font-size: 1.1em; /* Converted rem to em for scoped sizing */
  color: #000;
}

.lss-wrapper .tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.lss-wrapper .tile {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  padding: 14px;
  text-decoration: none;
  color: inherit;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,.03);
  transition: transform .08s ease, box-shadow .08s ease, border-color .08s ease;
}

.lss-wrapper .tile:hover {
  transform: translateY(-1px);
  border-color: #d8d8d8;
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
}

.lss-wrapper .tile .icon {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  flex: 0 0 auto;
  object-fit: cover;
  border: 1px solid #ececec;
  background: #fafafa;
}

.lss-wrapper .tile h3 {
  margin: 0 0 6px;
  font-size: 1em; /* Converted rem to em */
  color: #000;
}

.lss-wrapper .tile p {
  margin: 0;
  font-size: 0.9em; /* Converted rem to em */
  line-height: 1.35;
  color: #333;
}

.lss-wrapper .tile .go {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.85em; /* Converted rem to em */
  color: var(--hamar-red);
  font-weight: 700;
}

/* Category sections */
.lss-wrapper section.category {
  width: 90%;
  margin: 0 auto 34px;
  padding-top: 10px;
}

.lss-wrapper .category-head {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 12px 0 12px;
  padding: 14px;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
}

.lss-wrapper .category-head .cat-icon {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  border: 1px solid #ececec;
  background: #fafafa;
  object-fit: cover;
  flex: 0 0 auto;
}

.lss-wrapper .category-head h2 {
  margin: 0 0 6px;
  font-size: 1.25em; /* Converted rem to em */
  color: #000;
}

.lss-wrapper .category-head p {
  margin: 0;
  color: #333;
  line-height: 1.35;
  font-size: 0.95em; /* Converted rem to em */
}

.lss-wrapper table.cat-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: 0.9em; /* Converted rem to em */
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  overflow: hidden;
  table-layout: fixed;
}

/* Column widths: 20% / 30% / remainder */
.lss-wrapper .cat-table th:nth-child(1), .lss-wrapper .cat-table td:nth-child(1) { width: 20%; }
.lss-wrapper .cat-table th:nth-child(2), .lss-wrapper .cat-table td:nth-child(2) { width: 30%; }
.lss-wrapper .cat-table th:nth-child(3), .lss-wrapper .cat-table td:nth-child(3) { width: 50%; }

.lss-wrapper .cat-table th, 
.lss-wrapper .cat-table td {
  padding: 12px 10px;
  border: 1px solid #ddd;
  vertical-align: top;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.lss-wrapper .cat-table th {
  background: var(--hamar-red);
  color: #fff;
  text-align: left;
  border-color: rgba(255,255,255,.25);
}

.lss-wrapper .cat-table tr:nth-child(even) { 
  background: #fafafa; 
}

.lss-wrapper .cat-table a {
  color: #000;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.lss-wrapper .cat-table a:hover { 
  color: var(--hamar-red); 
}

.lss-wrapper .subcat {
  margin-top: 3px;
  font-size: 0.85em; /* Converted rem to em */
  color: #666;
}

.lss-wrapper .back-top {
  margin-top: 10px;
  text-align: right;
  font-size: 0.9em; /* Converted rem to em */
}

.lss-wrapper .back-top a { 
  color: var(--hamar-red); 
  font-weight: 700; 
}

.lss-wrapper .back-top a:hover { 
  text-decoration: underline; 
}

.lss-wrapper .foot {
  background: #f1f1f1;
  padding: 20px 40px 40px;
  font-size: 0.9em; /* Converted rem to em */
}

.lss-wrapper .foot h3 {
  margin-top: 0;
  color: #000;
  font-size: 1.1em; /* Converted rem to em */
}

.lss-wrapper .foot p { 
  margin: 6px 0; 
}

@media (max-width: 780px) {
  .lss-wrapper .tiles { grid-template-columns: 1fr; }
  .lss-wrapper .category-head { align-items: flex-start; }
}

@media print {
  .lss-wrapper .card { box-shadow: none; }
  .lss-wrapper .tile { box-shadow: none; }
}