/* =========================================================
   BoG2026 Professional Conduct and Resources v4.3.0
   ========================================================= */

.standards-page{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  padding:28px;
  border:1px solid #dbe7ec;
  border-radius:26px;
  background:
    repeating-linear-gradient(135deg,rgba(6,58,102,.028) 0,rgba(6,58,102,.028) 1px,transparent 1px,transparent 15px),
    #f7fafc;
  box-shadow:0 18px 42px rgba(6,58,102,.055);
}

.standards-intro,
.document-overview,
.complaint-intro,
.complaint-downloads{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
  padding:22px;
  border:1px solid #d8e5eb;
  border-radius:19px;
  background:#fff;
  box-shadow:0 9px 22px rgba(6,58,102,.045);
}

.standards-intro h2,
.document-overview h2,
.complaint-intro h2,
.complaint-downloads h2{
  margin:5px 0 7px;
  color:var(--navy);
}

.standards-intro p,
.document-overview p,
.complaint-intro p,
.complaint-downloads p{
  max-width:820px;
  margin:0;
  color:var(--muted);
  line-height:1.55;
}

.standards-intro .btn,
.document-actions .btn,
.complaint-downloads .btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}

.standards-card-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin-top:17px;
}

.standards-card{
  display:grid;
  grid-template-columns:48px minmax(0,1fr) 22px;
  align-items:center;
  gap:14px;
  min-height:160px;
  padding:18px;
  border:1px solid #d8e5eb;
  border-radius:17px;
  background:#fff;
  color:inherit;
  text-decoration:none;
  box-shadow:0 9px 22px rgba(6,58,102,.045);
  transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease;
}

.standards-card:hover{
  transform:translateY(-2px);
  border-color:#a5c8d5;
  box-shadow:0 13px 28px rgba(6,58,102,.075);
}

.standards-card-icon,
.document-overview-icon,
.complaint-intro-icon,
.resource-standard-icon{
  display:grid;
  place-items:center;
  width:46px;
  height:46px;
  border:1px solid #d5e6ed;
  border-radius:14px;
  background:#edf6fa;
  color:var(--navy);
  font-size:1.08rem;
}

.standards-card.complaint-card .standards-card-icon,
.resource-standard-card.complaint .resource-standard-icon,
.complaint-intro-icon{
  border-color:#edd5b9;
  background:#fff5e9;
  color:#a6500c;
}

.standards-card-body small{
  display:block;
  color:var(--orange);
  font-size:.9rem;
  font-weight:850;
  letter-spacing:.05em;
  text-transform:uppercase;
}

.standards-card-body strong{
  display:block;
  margin-top:6px;
  color:var(--navy);
  font-size:.92rem;
  line-height:1.35;
}

.standards-card-body > span{
  display:block;
  margin-top:6px;
  color:#617586;
  font-size:.9rem;
  line-height:1.45;
}

.standards-card-arrow{
  color:var(--orange);
}

.standards-note{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin-top:16px;
  padding:14px 16px;
  border-left:4px solid var(--teal);
  border-radius:0 13px 13px 0;
  background:#eef8fa;
  color:#526879;
}

.standards-note i{
  margin-top:2px;
  color:var(--teal);
}

.standards-note p{
  margin:0;
  font-size:.9rem;
  line-height:1.5;
}

.document-overview{
  display:grid;
  grid-template-columns:56px minmax(0,1fr) auto;
  align-items:start;
}

.document-overview-icon,
.complaint-intro-icon{
  width:54px;
  height:54px;
  border-radius:16px;
  font-size:1.25rem;
}

.document-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px 16px;
  margin-top:13px;
  color:#607385;
  font-size:.9rem;
  font-weight:700;
}

.document-actions{
  display:flex;
  flex-direction:column;
  gap:8px;
  min-width:210px;
}

.code-section-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:13px;
  margin-top:17px;
}

.code-section-grid article{
  padding:18px;
  border:1px solid #d8e5eb;
  border-radius:16px;
  background:#fff;
}

.code-section-grid article > i{
  color:var(--teal);
  font-size:1.05rem;
}

.code-section-grid h3{
  margin:11px 0 6px;
  color:var(--navy);
  font-size:.91rem;
}

.code-section-grid p{
  margin:0;
  color:#607385;
  font-size:.9rem;
  line-height:1.48;
}

.complaint-intro{
  justify-content:flex-start;
}

.complaint-step-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:13px;
  margin-top:17px;
}

.complaint-step-grid article{
  padding:17px;
  border:1px solid #d8e5eb;
  border-radius:16px;
  background:#fff;
}

.complaint-step-grid article > span{
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  border-radius:10px;
  background:#edf6fa;
  color:var(--navy);
  font-size:.9rem;
  font-weight:900;
}

.complaint-step-grid h3{
  margin:11px 0 6px;
  color:var(--navy);
  font-size:.9rem;
}

.complaint-step-grid p{
  margin:0;
  color:#607385;
  font-size:.9rem;
  line-height:1.48;
}

.complaint-downloads{
  margin-top:17px;
}

.complaint-information-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:13px;
  margin-top:17px;
}

.complaint-information-grid article{
  display:flex;
  align-items:flex-start;
  gap:13px;
  padding:18px;
  border:1px solid #d8e5eb;
  border-radius:16px;
  background:#fff;
}

.complaint-information-grid article > i{
  display:grid;
  place-items:center;
  flex:0 0 auto;
  width:40px;
  height:40px;
  border-radius:12px;
  background:#edf6fa;
  color:var(--navy);
}

.complaint-information-grid h3{
  margin:0 0 6px;
  color:var(--navy);
}

.complaint-information-grid p{
  margin:0 0 8px;
  color:#607385;
  font-size:.9rem;
  line-height:1.5;
}

.complaint-information-grid a{
  color:var(--teal);
  font-weight:750;
  text-decoration:none;
}

/* Resource Centre */
.resource-file-icon{
  display:grid;
  place-items:center;
  flex:0 0 auto;
  width:44px;
  height:44px;
  border:1px solid #d5e6ed;
  border-radius:13px;
  background:#edf6fa;
  color:#0b6280;
  font-size:1.06rem;
}

.resource-standards-section{
  margin-top:30px;
}

.resource-standards-section .section-head > p{
  max-width:520px;
  margin:0;
  color:var(--muted);
  font-size:.9rem;
  line-height:1.45;
}

.resource-standard-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:13px;
}

.resource-standard-card{
  display:grid;
  grid-template-columns:48px minmax(0,1fr) 20px;
  align-items:center;
  gap:13px;
  min-height:118px;
  padding:16px;
  border:1px solid #d8e5eb;
  border-radius:16px;
  background:#fff;
  color:inherit;
  text-decoration:none;
  box-shadow:0 8px 20px rgba(6,58,102,.04);
}

.resource-standard-card:hover{
  border-color:#9fc3d1;
  box-shadow:0 12px 25px rgba(6,58,102,.07);
}

.resource-standard-card strong{
  display:block;
  color:var(--navy);
  font-size:.9rem;
  line-height:1.35;
}

.resource-standard-card small{
  display:block;
  margin-top:5px;
  color:#687b8b;
  font-size:.9rem;
  line-height:1.42;
}

.resource-standard-card > i{
  color:var(--orange);
}

@media(max-width:960px){
  .standards-card-grid,
  .resource-standard-grid,
  .code-section-grid,
  .complaint-step-grid{
    grid-template-columns:1fr 1fr;
  }

  .document-overview{
    grid-template-columns:54px minmax(0,1fr);
  }

  .document-actions{
    grid-column:1/-1;
    flex-direction:row;
  }
}

@media(max-width:700px){
  .standards-page{
    padding:16px;
    border-radius:20px;
  }

  .standards-intro,
  .complaint-downloads{
    align-items:flex-start;
    flex-direction:column;
  }

  .standards-card-grid,
  .resource-standard-grid,
  .code-section-grid,
  .complaint-step-grid,
  .complaint-information-grid{
    grid-template-columns:1fr;
  }

  .document-overview{
    grid-template-columns:1fr;
  }

  .document-actions{
    flex-direction:column;
    min-width:0;
  }

  .document-actions .btn,
  .complaint-downloads .btn{
    width:100%;
  }
}
