/* ANRAN DHT product-led technical resources — 2026-09-01 */

.hv-products,
.resource-page,
.blog-page{
  width:min(1180px,calc(100% - 40px));
  margin:0 auto;
}

.hv-products{
  padding:34px 0 12px;
}

.resource-head{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(260px,.46fr);
  gap:32px;
  align-items:end;
  margin-bottom:22px;
}

.resource-kicker{
  margin:0 0 9px;
  color:var(--accent);
  font-size:.78rem;
  font-weight:800;
  letter-spacing:.12em;
}

.resource-head h2,
.resource-page h1,
.blog-page h1{
  margin:0;
  color:var(--t);
  font-size:clamp(2rem,3.2vw,3rem);
  line-height:1.06;
  letter-spacing:-.035em;
}

.resource-head>p{
  margin:0;
  color:var(--t3);
  line-height:1.72;
}

.hv-product-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

.hv-product-card{
  display:flex;
  min-height:240px;
  padding:24px;
  flex-direction:column;
  background:#f7faf8;
  border:1px solid var(--bd);
  border-top:4px solid var(--accent);
  border-radius:8px;
  box-shadow:0 5px 16px rgba(15,79,64,.055);
}

.hv-product-card--primary{
  background:#edf6f2;
  border-top-color:var(--signal);
}

.hv-product-code{
  color:var(--accent);
  font-family:Consolas,'SFMono-Regular',monospace;
  font-size:.78rem;
  font-weight:800;
  letter-spacing:.08em;
}

.hv-product-card h3{
  margin:18px 0 9px;
  color:var(--t);
  font-size:1.24rem;
  line-height:1.25;
}

.hv-product-card p{
  margin:0 0 22px;
  color:var(--t3);
  font-size:.91rem;
  line-height:1.65;
}

.hv-product-actions{
  display:flex;
  gap:9px;
  margin-top:auto;
  flex-wrap:wrap;
}

.resource-button,
.resource-link{
  display:inline-flex;
  min-height:42px;
  padding:9px 14px;
  align-items:center;
  justify-content:center;
  border-radius:5px;
  font-size:.84rem;
  font-weight:760;
  line-height:1.25;
  text-decoration:none;
  cursor:pointer;
  transition:background-color .2s,border-color .2s,color .2s,transform .2s;
}

.resource-button{
  border:1px solid var(--accent);
  background:var(--accent);
  color:#fff;
}

.resource-link{
  border:1px solid var(--bd2);
  background:transparent;
  color:var(--accent);
}

.resource-button:hover{background:var(--accent-l);border-color:var(--accent-l);color:#fff}
.resource-link:hover{background:#e1eee9;border-color:var(--accent);color:var(--accent)}
.resource-button:active,.resource-link:active{transform:translateY(1px)}

.hv-product-note{
  margin:12px 0 0;
  padding:13px 15px;
  border-left:3px solid var(--accent);
  background:#e8f2ee;
  color:var(--t3);
  font-size:.82rem;
  line-height:1.65;
}

/* Material standards library */
.resource-page{
  padding:112px 0 86px;
}

.resource-page-header{
  max-width:880px;
  margin-bottom:34px;
}

.resource-page-header p{
  max-width:68ch;
  margin:17px 0 0;
  color:var(--t3);
  font-size:1.02rem;
  line-height:1.72;
}

.standards-toolbar{
  display:grid;
  grid-template-columns:minmax(260px,1fr) repeat(2,minmax(150px,.3fr));
  gap:10px;
  padding:16px;
  background:#cfe3db;
  border:1px solid var(--bd);
  border-radius:8px 8px 0 0;
}

.standards-toolbar :is(input,select){
  width:100%;
  min-height:46px;
  padding:10px 12px;
  border:1px solid var(--bd2);
  border-radius:5px;
  background:#f7faf8;
  color:var(--t);
  font:inherit;
}

.standards-summary{
  display:flex;
  gap:18px;
  padding:12px 16px;
  align-items:center;
  justify-content:space-between;
  background:#edf5f1;
  border:1px solid var(--bd);
  border-top:0;
  color:var(--t3);
  font-size:.85rem;
}

.standards-table-wrap{
  overflow-x:auto;
  border:1px solid var(--bd);
  border-top:0;
  background:#f7faf8;
}

.standards-table{
  width:100%;
  min-width:850px;
  border-collapse:collapse;
}

.standards-table th{
  padding:14px 15px;
  text-align:left;
  background:#e3efe9;
  border-bottom:1px solid var(--bd);
  color:var(--t3);
  font-size:.74rem;
  font-weight:800;
  letter-spacing:.04em;
}

.standards-table td{
  padding:15px;
  border-bottom:1px solid #d5e4de;
  color:var(--t2);
  font-size:.86rem;
  line-height:1.48;
  vertical-align:middle;
}

.standards-table tr:last-child td{border-bottom:0}
.standards-table tr:hover td{background:#f0f7f4}
.standard-number{font-family:Consolas,'SFMono-Regular',monospace;font-weight:760;color:var(--t)}
.standard-org{font-weight:800;color:var(--accent)}

.standard-ask{
  min-height:36px;
  padding:7px 10px;
  border:1px solid var(--accent);
  border-radius:4px;
  background:transparent;
  color:var(--accent);
  font:inherit;
  font-size:.78rem;
  font-weight:760;
  cursor:pointer;
}

.standard-ask:hover{background:var(--accent);color:#fff}

.standard-actions{
  min-width:210px;
}

.standard-downloads{
  display:grid;
  gap:6px;
  margin-bottom:8px;
}

.standard-download{
  display:inline-flex;
  width:max-content;
  max-width:100%;
  min-height:36px;
  padding:7px 10px;
  align-items:center;
  border:1px solid #345e80;
  border-radius:4px;
  background:#edf3f7;
  color:#345e80;
  font-size:.76rem;
  font-weight:780;
  line-height:1.35;
  text-decoration:none;
}

.standard-download:hover{background:#345e80;color:#fff}
.standard-unavailable{display:block;color:var(--t3);font-size:.76rem;line-height:1.45}

.standards-pagination{
  display:flex;
  gap:7px;
  padding:16px;
  align-items:center;
  justify-content:center;
  border:1px solid var(--bd);
  border-top:0;
  background:#edf5f1;
  border-radius:0 0 8px 8px;
}

.standards-pagination button{
  min-width:38px;
  min-height:38px;
  border:1px solid var(--bd2);
  border-radius:4px;
  background:#f7faf8;
  color:var(--t2);
  cursor:pointer;
}

.standards-pagination button[aria-current="page"]{background:var(--accent);border-color:var(--accent);color:#fff}
.standards-empty{padding:44px!important;text-align:center;color:var(--t3)!important}

.resource-conversion{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:28px;
  margin-top:22px;
  padding:26px;
  align-items:center;
  background:var(--dht-dark-2);
  border-radius:8px;
}

.resource-conversion h2{margin:0 0 8px;color:#fff;font-size:1.45rem}
.resource-conversion p{max-width:68ch;margin:0;color:rgba(255,255,255,.72);line-height:1.65}
.resource-conversion .resource-button{background:var(--signal);border-color:var(--signal);color:#08251b;white-space:nowrap}

/* Resource entry points shared by the homepage and tools hub */
.resource-hub{
  width:min(1100px,calc(100% - 48px));
  margin:0 auto 64px;
  padding:28px;
  background:#d4e7df;
  border:1px solid var(--bd);
  border-radius:8px;
}

.resource-hub-head{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(260px,.52fr);
  gap:28px;
  align-items:end;
  margin-bottom:18px;
}

.resource-hub-head h2{margin:0;color:var(--t);font-size:clamp(1.55rem,2.5vw,2.15rem);line-height:1.12}
.resource-hub-head p{margin:0;color:var(--t3);line-height:1.65}

.resource-hub-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

.resource-hub-card{
  display:flex;
  min-height:190px;
  padding:21px;
  flex-direction:column;
  background:#f7faf8;
  border:1px solid var(--bd);
  border-top:3px solid var(--accent);
  border-radius:6px;
  color:inherit;
  text-decoration:none;
  transition:transform .2s,border-color .2s,box-shadow .2s;
}

.resource-hub-card:hover{transform:translateY(-2px);border-color:var(--accent);box-shadow:0 10px 22px rgba(15,79,64,.09)}
.resource-hub-card span{color:var(--accent);font-family:Consolas,'SFMono-Regular',monospace;font-size:.72rem;font-weight:800;letter-spacing:.07em}
.resource-hub-card h3{margin:18px 0 8px;color:var(--t);font-size:1.12rem;line-height:1.25}
.resource-hub-card p{margin:0 0 18px;color:var(--t3);font-size:.86rem;line-height:1.62}
.resource-hub-card strong{margin-top:auto;color:var(--accent);font-size:.82rem}

.dht-home-resource-strip{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:26px;
  margin-top:20px;
  padding:24px 26px;
  align-items:center;
  background:#d4e7df;
  border:1px solid var(--bd);
  border-left:4px solid var(--accent);
  border-radius:7px;
}

.dht-home-resource-pair{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin-top:20px;
}

.dht-home-resource-pair .dht-home-resource-strip{
  grid-template-columns:1fr;
  margin-top:0;
  align-content:start;
}

.dht-home-resource-pair .resource-button{justify-self:start}

.dht-home-resource-strip h3{margin:0 0 7px;color:var(--t);font-size:1.24rem}
.dht-home-resource-strip p{margin:0;color:var(--t3);line-height:1.65}

/* Technical blog */
.blog-page{
  padding:112px 0 86px;
}

.blog-intro{
  max-width:72ch;
  margin:16px 0 34px;
  color:var(--t3);
  font-size:1.02rem;
  line-height:1.72;
}

.blog-grid{
  display:grid;
  grid-template-columns:repeat(12,minmax(0,1fr));
  gap:12px;
}

.blog-card{
  grid-column:span 6;
  display:flex;
  min-height:260px;
  padding:26px;
  flex-direction:column;
  background:#f7faf8;
  border:1px solid var(--bd);
  border-top:3px solid var(--accent);
  border-radius:8px;
  color:inherit;
  text-decoration:none;
  transition:transform .2s,border-color .2s,box-shadow .2s;
}

.blog-card:nth-child(odd){grid-column:span 7}
.blog-card:nth-child(even){grid-column:span 5}
.blog-card:hover{transform:translateY(-3px);border-color:var(--accent);box-shadow:0 12px 28px rgba(15,79,64,.1)}
.blog-card-meta{color:var(--accent);font-size:.76rem;font-weight:800;letter-spacing:.06em}
.blog-card h2{margin:22px 0 11px;color:var(--t);font-size:1.4rem;line-height:1.25}
.blog-card p{margin:0 0 22px;color:var(--t3);font-size:.9rem;line-height:1.68}
.blog-card span:last-child{margin-top:auto;color:var(--accent);font-size:.84rem;font-weight:760}

.article-page{
  width:min(860px,calc(100% - 40px));
  margin:0 auto;
  padding:118px 0 86px;
}

.article-page .article-meta{display:flex;gap:9px;margin:18px 0 30px;flex-wrap:wrap}
.article-page .article-meta span{padding:5px 8px;background:#d8e9e2;color:var(--t3);border-radius:4px;font-size:.76rem}
.article-page h1{margin:0;color:var(--t);font-size:clamp(2.35rem,5vw,4.2rem);line-height:1.03;letter-spacing:-.045em}
.article-page .article-lead{margin:20px 0 34px;color:var(--t3);font-size:1.1rem;line-height:1.76}
.article-page h2{margin:42px 0 15px;color:var(--t);font-size:1.65rem;line-height:1.2}
.article-page h3{margin:30px 0 12px;color:var(--t);font-size:1.18rem}
.article-page p,.article-page li{color:var(--t2);font-size:1rem;line-height:1.84}
.article-page p{margin:0 0 18px}
.article-page ul,.article-page ol{margin:0 0 22px;padding-left:24px}
.article-page li{margin-bottom:8px}
.article-page table{display:block;width:100%;margin:24px 0;overflow-x:auto;border-collapse:collapse}
.article-page th,.article-page td{min-width:130px;padding:12px;border:1px solid var(--bd);text-align:left;font-size:.86rem}
.article-page th{background:#dcebe5;color:var(--t)}
.article-page .key-box,.article-page .warn-box{margin:24px 0;padding:18px 20px;border-left:4px solid var(--accent);background:#e7f2ed;border-radius:0 6px 6px 0}
.article-page .key-box p:last-child,.article-page .warn-box p:last-child{margin-bottom:0}
.article-page a{color:#345e80;text-underline-offset:3px}
.article-page strong{color:var(--t)}
.article-evidence-note{margin:0 0 34px;padding:20px 22px;border:1px solid var(--bd);border-left:5px solid #345e80;border-radius:0 7px 7px 0;background:#edf3f7}
.article-evidence-note strong{display:block;margin-bottom:7px;color:#23435d;font-size:.92rem}
.article-evidence-note p{margin:0!important;color:var(--t3)!important;font-size:.88rem!important;line-height:1.7!important}
.article-actions{display:flex;gap:10px;margin-top:38px;flex-wrap:wrap}

@media(max-width:860px){
  .resource-head{grid-template-columns:1fr;gap:12px}
  .hv-product-grid{grid-template-columns:1fr}
  .hv-product-card{min-height:0}
  .standards-toolbar{grid-template-columns:1fr}
  .resource-conversion{grid-template-columns:1fr}
  .resource-hub-head,.dht-home-resource-strip{grid-template-columns:1fr}
  .dht-home-resource-pair{grid-template-columns:1fr}
  .resource-hub-grid{grid-template-columns:1fr}
  .blog-card,.blog-card:nth-child(odd),.blog-card:nth-child(even){grid-column:span 12}
}

@media(max-width:560px){
  .hv-products,.resource-page,.blog-page,.article-page{width:min(100% - 24px,1180px)}
  .resource-page,.blog-page,.article-page{padding-top:94px}
  .resource-head h2,.resource-page h1,.blog-page h1{font-size:2rem}
  .hv-product-card{padding:20px}
  .standards-summary{align-items:flex-start;flex-direction:column;gap:5px}
  .resource-conversion{padding:22px}
  .resource-hub{width:min(100% - 24px,1100px);padding:18px;margin-bottom:48px}
  .dht-home-resource-strip{padding:20px}
}
