:root{
  --gold:#e6c36a;
  --gold-soft:#f5deb0;
  --gold-strong:#f2c66d;
  --dark-bg:#0b1320;
  --panel-bg:rgba(21,34,56,0.92);
  --panel-line:#2a3a50;
  --text-light:#e0e0e0;
  --text-muted:#a9b1bc;
  --shadow:0 18px 40px rgba(0,0,0,0.45);
}

*{ box-sizing:border-box; }

body{
  margin:0;
  min-height:100vh;
  font-family:'Inter',sans-serif;
  color:var(--text-light);
  background-color:var(--dark-bg);
  background-image:url('../textura.png');
  background-size:1024px 1024px;
  background-repeat:repeat;
}

header{
  position:sticky;
  top:0;
  z-index:100;
  height:70px;
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  padding:0 40px;
  background:linear-gradient(rgba(10,20,35,0.95), rgba(5,10,20,0.98)), url('../textura.png');
  border-bottom:2px solid var(--gold);
  box-shadow:0 5px 20px rgba(0,0,0,0.5);
}

.logo img{ height:50px; }

header[data-shared-header="true"] nav{
  justify-self:center;
  display:flex;
  flex-wrap:wrap;
}

header[data-shared-header="true"] nav > a{
  padding:10px 16px;
  font-size:13px;
  font-weight:700;
  color:#bbb;
  text-decoration:none;
  text-transform:uppercase;
}

header[data-shared-header="true"] nav > a:hover,
header[data-shared-header="true"] nav > a.is-active{ color:var(--gold); }

.search-box{ display:flex; align-items:center; }

.search-box input{
  padding:8px 12px;
  border:1px solid #334;
  border-radius:4px 0 0 4px;
  background:rgba(255,255,255,0.1);
  color:#fff;
  outline:none;
}

.search-box button{
  border:1px solid #334;
  border-left:0;
  border-radius:0 4px 4px 0;
  background:#334;
  color:var(--gold);
  padding:8px 12px;
}

.page-shell{
  width:min(1180px, calc(100% - 32px));
  margin:0 auto;
  padding:34px 0 60px;
}

.breadcrumbs{
  display:flex;
  gap:10px;
  margin-bottom:20px;
  color:var(--text-muted);
  font-size:13px;
}

.breadcrumbs a{ color:var(--gold-soft); text-decoration:none; }

.section-hero{
  margin-bottom:18px;
  padding:28px 32px;
  border:1px solid rgba(230,195,106,0.22);
  border-radius:8px;
  background:linear-gradient(135deg, rgba(17,25,37,0.98), rgba(14,18,27,0.9));
  box-shadow:var(--shadow);
}

.eyebrow{
  margin:0 0 8px;
  color:#fff7c5;
  text-transform:uppercase;
  letter-spacing:0.16em;
  font-size:0.78rem;
  font-weight:800;
}

.section-hero h1,
.status-panel h2,
.resource-head h2,
.resource-section h3{
  font-family:'Cinzel',serif;
}

.section-hero h1{
  margin:0;
  font-size:clamp(2.2rem, 4vw, 4rem);
  line-height:1.05;
}

.hero-copy{
  width:min(780px, 100%);
  color:var(--text-muted);
  line-height:1.65;
}

.source-strip{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:18px;
}

.source-strip span{
  padding:8px 12px;
  border:1px solid rgba(230,195,106,0.2);
  border-radius:6px;
  background:rgba(8,14,24,0.68);
  color:#f1dfb4;
  font-size:13px;
  font-weight:800;
}

.resource-toolbar{
  display:grid;
  grid-template-columns:minmax(240px, 1fr) minmax(160px, 190px) minmax(150px, 180px) minmax(150px, 180px);
  gap:14px;
  margin-bottom:16px;
  padding:14px;
  border:1px solid rgba(227,194,116,0.18);
  border-radius:8px;
  background:var(--panel-bg);
}

.search-control,
.select-control{ display:grid; gap:7px; }

.search-control span,
.select-control span{
  color:var(--gold-soft);
  font-size:12px;
  font-weight:800;
  letter-spacing:0.08em;
  text-transform:uppercase;
}

.search-control input,
.select-control select{
  width:100%;
  min-height:42px;
  border:1px solid rgba(230,195,106,0.24);
  border-radius:6px;
  background:#101d2f;
  color:#fff;
  font:inherit;
  outline:none;
  padding:0 12px;
}

.status-panel{
  margin-bottom:16px;
  padding:18px;
  border:1px solid rgba(230,195,106,0.2);
  border-radius:8px;
  background:rgba(10,18,31,0.9);
}

.status-panel[hidden]{ display:none; }

.resource-list{
  display:grid;
  gap:14px;
}

.resource-card{
  border:1px solid rgba(227,194,116,0.22);
  border-radius:8px;
  background:rgba(17,28,45,0.96);
  overflow:hidden;
}

.resource-card-featured{
  background:linear-gradient(180deg, rgba(7,14,24,0.98), rgba(10,24,40,0.98));
  border-color:rgba(230,195,106,0.32);
  box-shadow:0 10px 30px rgba(0,0,0,0.32), inset 0 1px 0 rgba(255,255,255,0.03);
}

.resource-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  background:rgba(8,12,20,0.78);
}

.resource-head h2{
  margin:0;
  color:#fff4cd;
  font-size:1.12rem;
}

.resource-featured-head{
  align-items:flex-start;
  background:linear-gradient(90deg, rgba(6,12,21,0.96), rgba(10,25,42,0.92));
  border-bottom:1px solid rgba(230,195,106,0.18);
}

.resource-featured-head h2{
  display:flex;
  align-items:center;
  gap:9px;
  text-transform:uppercase;
}

.resource-featured-head h2 > i:first-child{
  width:24px;
  height:24px;
  display:grid;
  place-items:center;
  border-radius:50%;
  border:1px solid rgba(230,195,106,0.4);
  background:rgba(230,195,106,0.12);
  color:#e6c36a;
  font-size:12px;
  flex:0 0 auto;
}

.resource-featured-head .title-star{
  color:#e6c36a;
  font-size:14px;
}

.resource-badges{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.resource-pill{
  padding:5px 9px;
  border-radius:4px;
  background:rgba(230,195,106,0.18);
  color:var(--gold-soft);
  font-size:12px;
  font-weight:800;
  white-space:nowrap;
}

.resource-main{
  display:grid;
  grid-template-columns:96px 1fr;
  min-height:96px;
}

.resource-icon{
  display:grid;
  place-items:center;
  padding:8px;
  background:#102137;
  border-right:1px solid var(--panel-line);
}

.resource-icon img{
  width:auto;
  height:auto;
  max-width:76px;
  max-height:92px;
  object-fit:contain;
}

.resource-featured-layout{
  display:grid;
  grid-template-columns:minmax(142px, 220px) minmax(280px, 1fr) minmax(190px, 260px);
  align-items:start;
  gap:8px;
  padding:8px;
}

.resource-featured-left,
.resource-featured-center,
.resource-featured-side{
  display:grid;
  gap:8px;
  align-content:start;
}

.resource-used-panel{
  grid-column:1 / -1;
}

.resource-featured-icon{
  min-height:190px;
  border:1px solid rgba(65,144,198,0.18);
  border-radius:7px;
  border-right:1px solid rgba(65,144,198,0.18);
  background:
    radial-gradient(circle at 50% 52%, rgba(230,195,106,0.12), transparent 48%),
    rgba(7,18,31,0.72);
}

.resource-featured-icon img{
  max-width:80px;
  max-height:80px;
  filter:drop-shadow(0 14px 18px rgba(0,0,0,0.45));
  image-rendering:crisp-edges;
}

.resource-content{
  padding:10px 14px 14px;
  display:grid;
  gap:9px;
}

.resource-section{
  border:1px solid var(--panel-line);
  border-radius:7px;
  overflow:hidden;
  background:rgba(14,33,53,0.74);
}

.resource-section h3{
  margin:0;
  padding:9px 11px;
  background:rgba(8,20,34,0.44);
  color:#fff2c8;
  font-size:0.98rem;
  border-bottom:1px solid rgba(65,144,198,0.18);
}

.resource-section p{
  margin:0;
  padding:9px 10px;
  line-height:1.6;
  color:#d6dde8;
  font-size:13px;
}

.resource-used-panel p{
  color:#f3dba9;
  font-weight:700;
}

.resource-description-panel{
  min-height:118px;
}

.resource-description-panel p{
  padding:12px 14px;
  color:#bfd5ee;
  line-height:1.7;
}

.resource-section a{
  color:#f5deb0;
  text-decoration:none;
  font-weight:700;
}

.resource-section a:hover{
  color:#fff4cd;
  text-decoration:underline;
}

.resource-description{
  margin:0;
  padding:9px 12px;
  color:#9fadc1;
  font-size:12px;
  border-top:1px solid var(--panel-line);
}

.muted-inline{
  color:#95a3b8;
}

.pagination-bar{
  margin-top:14px;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;
}

.pagination-bar button{
  min-height:34px;
  padding:0 12px;
  border:1px solid rgba(230,195,106,0.28);
  border-radius:6px;
  background:#11243d;
  color:#f5deb0;
  font:inherit;
  font-size:13px;
  font-weight:800;
  cursor:pointer;
}

.pagination-bar button:disabled{
  opacity:0.45;
  cursor:not-allowed;
}

.pagination-bar .page-number.is-current{
  background:rgba(230,195,106,0.28);
  color:#fff8de;
  opacity:1;
}

.pagination-bar span{
  color:#f5deb0;
  font-size:13px;
  font-weight:700;
}

.pagination-bar .page-ellipsis{
  padding:0 2px;
  opacity:0.8;
}

footer{
  padding:30px 20px;
  text-align:center;
  color:#8d96a3;
}

footer a{ color:var(--gold); text-decoration:none; }

@media (max-width:800px){
  header{
    position:relative;
    height:auto;
    grid-template-columns:1fr;
    gap:12px;
    padding:16px;
  }

  .search-box{ display:none; }

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

  .resource-main{
    grid-template-columns:78px 1fr;
  }

  .resource-featured-head{
    display:grid;
  }

  .resource-featured-head h2{
    font-size:1rem;
  }

  .resource-featured-layout{
    grid-template-columns:1fr;
  }

  .resource-used-panel{
    grid-column:auto;
  }

  .resource-featured-icon{
    min-height:128px;
    padding:12px;
  }

  .resource-featured-icon img{
    max-width:72px;
    max-height:72px;
  }

}
