/* ===========================================================
   IQS International — Inner page styles
   (loaded in addition to styles.css)
   =========================================================== */

/* Active nav state */
.menu > li > a.active { color: var(--navy-700); background: var(--navy-tint); }

/* ---------- Page hero banner ---------- */
.page-hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  padding: 72px 0 64px;
  background:
    linear-gradient(95deg, rgba(0,16,34,.94) 0%, rgba(0,26,51,.88) 55%, rgba(0,26,51,.7) 100%),
    var(--navy-800);
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: radial-gradient(1100px 600px at 85% 0%, #000, transparent 70%);
          mask-image: radial-gradient(1100px 600px at 85% 0%, #000, transparent 70%);
}
.page-hero .wrap { position: relative; z-index: 2; }
.breadcrumb {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--display); font-weight: 500; font-size: 14px;
  color: #a9bace;
}
.breadcrumb a { color: #a9bace; transition: color .15s; }
.breadcrumb a:hover { color: var(--gold-400); }
.breadcrumb .sep { opacity: .45; }
.breadcrumb .cur { color: var(--gold-400); }
.page-hero h1 { color: #fff; font-size: clamp(32px, 4.6vw, 52px); margin-top: 18px; }
.page-hero p { color: #c4d2e2; font-size: 18px; margin-top: 16px; max-width: 680px; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(680px 380px at 85% 120%, rgba(205,162,63,.2), transparent 60%),
    linear-gradient(120deg, var(--navy-700), var(--navy-900));
  color: #fff; padding: 76px 0; text-align: center;
}
.cta-band h2 { color: #fff; font-size: clamp(28px, 3.6vw, 42px); }
.cta-band p { color: #c4d2e2; margin: 16px auto 0; font-size: 18px; max-width: 620px; }
.cta-band .btns { margin-top: 32px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Service detail rows ---------- */
.svc-detail { display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: center; }
.svc-detail + .svc-detail { margin-top: 84px; }
.svc-detail .sd-media { position: relative; }
.svc-detail .sd-media .ph { aspect-ratio: 4/3.3; }
.svc-detail.rev .sd-media { order: 2; }
.svc-detail .sd-badge {
  position: absolute; bottom: -20px; left: -20px;
  background: var(--navy-700); color: #fff;
  font-family: var(--display); font-weight: 700; font-size: 14px;
  padding: 14px 20px; border-radius: 12px; box-shadow: var(--shadow-lg);
}
.svc-detail .sd-badge span { color: var(--gold-400); }
.svc-detail h2 { font-size: clamp(25px, 3vw, 34px); margin-top: 14px; }
.svc-detail .sd-desc { color: var(--ink-soft); font-size: 17px; margin-top: 16px; }
.std-list { margin-top: 24px; display: grid; gap: 12px; }
.std-list li {
  display: flex; gap: 16px; align-items: baseline;
  padding: 15px 18px;
  background: var(--mist); border: 1px solid var(--line);
  border-radius: 11px; transition: border-color .18s, background .18s;
}
.std-list li:hover { border-color: var(--gold-400); background: #fff; }
.std-list .code { font-family: var(--display); font-weight: 700; color: var(--navy-700); flex: none; min-width: 104px; font-size: 15px; }
.std-list .txt { color: var(--ink-soft); font-size: 14.5px; line-height: 1.5; }

/* clickable standard rows → individual pages */
.std-list li:has(> .std-link) { padding: 0; }
.std-link { display: flex; gap: 16px; align-items: baseline; width: 100%; padding: 15px 18px; }
.std-link .std-arrow { margin-left: auto; align-self: center; width: 18px; height: 18px; color: var(--ink-faint); flex: none; transition: transform .18s, color .18s; }
.std-list li:hover .std-arrow { color: var(--gold-600); transform: translateX(3px); }
.chip-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.chip-row span {
  font-family: var(--display); font-weight: 600; font-size: 13.5px;
  color: var(--navy-700); background: var(--navy-tint);
  border: 1px solid #dde7f2; padding: 8px 14px; border-radius: 8px;
}

/* ---------- Mission / Vision / Values ---------- */
.mv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mv-card {
  background: #fff; border: 1px solid var(--line);
  border-top: 3px solid var(--gold-500);
  border-radius: 14px; padding: 34px 30px;
  transition: transform .2s, box-shadow .2s;
}
.mv-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.mv-card .mv-icon {
  width: 54px; height: 54px; border-radius: 13px;
  background: var(--navy-tint); display: grid; place-items: center; margin-bottom: 20px;
}
.mv-card .mv-icon svg { width: 26px; height: 26px; color: var(--navy-700); }
.mv-card h3 { font-size: 22px; margin-bottom: 12px; }
.mv-card p { color: var(--ink-soft); font-size: 15.5px; }

/* ---------- Value list (about) ---------- */
.value-list { display: grid; gap: 16px; margin-top: 8px; }
.value-list li { display: flex; gap: 14px; align-items: flex-start; }
.value-list .vi {
  flex: none; width: 28px; height: 28px; border-radius: 8px;
  background: var(--gold-100); color: var(--gold-600);
  display: grid; place-items: center; margin-top: 2px;
}
.value-list .vi svg { width: 16px; height: 16px; }
.value-list b { font-family: var(--display); color: var(--navy-700); }
.value-list p { color: var(--ink-soft); font-size: 15.5px; }

/* ---------- Why certify cards ---------- */
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.benefit-card {
  background: #fff; border: 1px solid var(--line); border-radius: 13px;
  padding: 28px 26px; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.benefit-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.benefit-card .bc-code {
  font-family: var(--display); font-weight: 800; font-size: 15px;
  color: var(--gold-600); letter-spacing: .04em; margin-bottom: 10px;
}
.benefit-card h4 { font-size: 19px; margin-bottom: 10px; }
.benefit-card p { color: var(--ink-soft); font-size: 14.5px; }

/* ---------- Map placeholder ---------- */
.map-ph { aspect-ratio: 16 / 6.5; width: 100%; }
.map-ph .ph-label { font-size: 13px; }
.map-embed {
  width: 100%;
  aspect-ratio: 16 / 6.5;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: block;
  box-shadow: var(--shadow-sm);
}

/* ---------- Clients page extras ---------- */
.sector-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 8px; }
.sector-row span {
  font-family: var(--display); font-weight: 600; font-size: 14px;
  color: var(--navy-700); background: #fff; border: 1px solid var(--line);
  padding: 10px 18px; border-radius: 50px;
}

@media (max-width: 900px) {
  .svc-detail { grid-template-columns: 1fr; gap: 36px; }
  .svc-detail.rev .sd-media { order: 0; }
  .svc-detail .sd-badge { left: 0; }
  .mv-grid, .benefit-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .page-hero { padding: 48px 0 44px; }
}

/* ===========================================================
   VERIFY CERTIFICATE PAGE
   =========================================================== */
.verify-wrap { max-width: 760px; margin: 0 auto; }
.verify-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  padding: 40px;
  text-align: center;
}
.verify-card .v-icon {
  width: 64px; height: 64px; border-radius: 16px;
  background: var(--navy-tint); display: grid; place-items: center;
  margin: 0 auto 22px;
}
.verify-card .v-icon svg { width: 32px; height: 32px; color: var(--navy-700); }
.verify-card h2 { font-size: clamp(24px, 3vw, 32px); }
.verify-card > p { color: var(--ink-soft); font-size: 16px; margin-top: 12px; max-width: 520px; margin-left: auto; margin-right: auto; }
.verify-form {
  display: flex; gap: 12px; margin-top: 28px;
  max-width: 560px; margin-left: auto; margin-right: auto;
}
.cert-input {
  flex: 1; font-family: var(--display); font-weight: 600;
  font-size: 16px; letter-spacing: .03em;
  padding: 15px 18px; border: 1.5px solid var(--line);
  border-radius: 10px; background: var(--mist); color: var(--ink);
  text-transform: uppercase;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.cert-input::placeholder { color: var(--ink-faint); letter-spacing: .02em; text-transform: none; font-weight: 500; }
.cert-input:focus { outline: none; border-color: var(--navy-500); background: #fff; box-shadow: 0 0 0 4px rgba(27,88,151,.1); }
.verify-form .btn { flex: none; }
.verify-msg {
  display: none; margin: 22px auto 0; max-width: 560px;
  padding: 14px 18px; border-radius: 10px; font-size: 14.5px; font-weight: 500;
  text-align: left;
}
.verify-msg.show { display: block; }
.verify-msg.error { background: #fdecec; border: 1px solid #f3c0c0; color: #a23b3b; }
.verify-samples { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line-soft); }
.verify-samples .vs-label { font-size: 13px; color: var(--ink-faint); font-family: var(--display); font-weight: 600; letter-spacing: .04em; margin-bottom: 14px; }
.sample-row { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; }
.sample-chip {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px;
  color: var(--navy-700); background: var(--navy-tint);
  border: 1px solid #dde7f2; padding: 8px 13px; border-radius: 7px;
  cursor: pointer; transition: background .15s, border-color .15s, transform .15s;
}
.sample-chip:hover { background: #fff; border-color: var(--gold-400); transform: translateY(-2px); }

/* Result card */
.verify-result {
  display: none; margin: 28px auto 0; max-width: 760px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 18px; box-shadow: var(--shadow-md);
  padding: 34px; opacity: 0; transform: translateY(12px);
  transition: opacity .4s ease, transform .4s ease;
}
.verify-result.show { display: block; opacity: 1; transform: none; }
.result-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.result-eyebrow { font-family: var(--display); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-faint); }
.result-org h3 { font-size: 24px; margin-top: 5px; }
.status-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); font-weight: 700; font-size: 14px;
  padding: 9px 16px; border-radius: 50px; flex: none;
}
.status-badge svg { width: 17px; height: 17px; }
.status-badge.active { background: #e6f4ec; color: #1f8a5b; }
.status-badge.expired { background: #fdecec; color: #c0492f; }
.status-badge.suspended { background: #fdf3e1; color: #b8862b; }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; margin-top: 8px; }
.rc { padding: 16px 0; border-bottom: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 4px; }
.rc-label { font-family: var(--display); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-faint); }
.rc-val { font-size: 15.5px; color: var(--ink); font-weight: 500; }
.rc:nth-child(3), .rc:nth-child(4) { grid-column: 1 / -1; }
.result-note { margin-top: 18px; padding: 13px 16px; border-radius: 10px; font-size: 14px; font-weight: 500; }
.result-note.expired { background: #fdecec; color: #a23b3b; }
.result-note.suspended { background: #fdf3e1; color: #8a6314; }
.result-actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }

/* Certificate overlay */
.cert-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,12,28,.62); backdrop-filter: blur(4px);
  display: none; align-items: flex-start; justify-content: center;
  padding: 32px 20px; overflow: auto;
}
.cert-overlay.show { display: flex; }
.cert-stage { width: 960px; max-width: 100%; }
.cert-toolbar { display: flex; justify-content: flex-end; gap: 10px; margin-bottom: 14px; }
.cert-toolbar .btn { box-shadow: var(--shadow-md); }
.cert-toolbar .btn-white { background: #fff; color: var(--navy-700); }
.cert-toolbar .btn-white:hover { background: var(--mist); transform: translateY(-2px); }

/* Certificate document */
.cert-doc {
  width: 960px; max-width: 100%;
  background: #fff; position: relative; overflow: hidden;
}
.cert-frame {
  position: relative; margin: 18px;
  border: 2px solid var(--navy-700);
  outline: 1px solid var(--gold-500); outline-offset: 5px;
  padding: 40px 56px 34px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.cert-frame::before {
  content: ""; position: absolute; inset: 8px;
  border: 1px solid var(--line); pointer-events: none;
}
.cert-watermark {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%) rotate(-24deg);
  font-family: var(--display); font-weight: 800; font-size: 150px;
  letter-spacing: .06em; opacity: .05; pointer-events: none; white-space: nowrap;
}
.cert-watermark.active { color: #1f8a5b; }
.cert-watermark.expired { color: #c0492f; }
.cert-watermark.suspended { color: #b8862b; }
.cert-top { display: flex; align-items: center; justify-content: space-between; width: 100%; position: relative; z-index: 2; }
.cert-logo { height: 46px; width: auto; }
.cert-accr { font-family: var(--display); font-weight: 600; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); text-align: right; }
.cert-title { font-size: 34px; color: var(--navy-700); margin-top: 22px; letter-spacing: .01em; position: relative; z-index: 2; }
.cert-title::after { content: ""; display: block; width: 70px; height: 3px; background: var(--gold-500); margin: 14px auto 0; }
.cert-lead { font-size: 14px; color: var(--ink-soft); margin-top: 22px; position: relative; z-index: 2; }
.cert-company { font-family: var(--display); font-weight: 800; font-size: 30px; color: var(--ink); margin-top: 8px; position: relative; z-index: 2; }
.cert-text { font-size: 14px; color: var(--ink-soft); margin-top: 14px; position: relative; z-index: 2; }
.cert-standard { font-family: var(--display); font-weight: 700; font-size: 24px; color: var(--navy-700); margin-top: 8px; position: relative; z-index: 2; }
.cert-stdname { font-size: 14.5px; color: var(--gold-600); font-weight: 600; margin-top: 4px; position: relative; z-index: 2; }
.cert-scope-label { font-family: var(--display); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-faint); margin-top: 18px; position: relative; z-index: 2; }
.cert-scope { font-size: 13.5px; color: var(--ink-soft); margin-top: 5px; max-width: 620px; position: relative; z-index: 2; }
.cert-meta { display: flex; gap: 36px; margin-top: 20px; position: relative; z-index: 2; }
.cert-meta > div { display: flex; flex-direction: column; gap: 3px; }
.cert-meta span { font-family: var(--display); font-weight: 600; font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint); }
.cert-meta b { font-size: 13.5px; color: var(--ink); font-family: var(--display); }
.cert-sign { display: flex; align-items: flex-end; justify-content: space-between; width: 100%; margin-top: auto; padding-top: 18px; position: relative; z-index: 2; }
.sign { display: flex; flex-direction: column; align-items: center; font-family: var(--display); font-weight: 600; font-size: 12.5px; color: var(--ink); width: 200px; }
.sign-line { width: 100%; height: 1px; background: var(--ink-soft); margin-bottom: 8px; }
.seal { width: 92px; height: 92px; position: relative; flex: none; }
.seal .seal-ring { position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--gold-500); background: radial-gradient(circle at 50% 40%, var(--gold-100), #fff); display: grid; place-items: center; box-shadow: 0 2px 8px rgba(184,134,43,.25); }
.seal .seal-inner { width: 64px; height: 64px; border-radius: 50%; border: 1.5px dashed var(--gold-600); display: grid; place-items: center; text-align: center; }
.seal .seal-inner b { font-family: var(--display); font-weight: 800; font-size: 16px; color: var(--navy-700); line-height: 1; }
.seal .seal-inner span { display: block; font-size: 7px; letter-spacing: .14em; color: var(--gold-600); font-weight: 700; margin-top: 3px; }
.cert-foot { font-size: 10.5px; color: var(--ink-faint); margin-top: 16px; position: relative; z-index: 2; }

@media (max-width: 600px) {
  .verify-card { padding: 28px 20px; }
  .verify-form { flex-direction: column; }
  .verify-form .btn { width: 100%; justify-content: center; }
  .result-grid { grid-template-columns: 1fr; }
  .rc:nth-child(3), .rc:nth-child(4) { grid-column: auto; }
  .cert-frame { padding: 22px 18px 18px; }
  .cert-title { font-size: 22px; }
  .cert-company { font-size: 20px; }
  .cert-standard { font-size: 17px; }
  .cert-watermark { font-size: 84px; }
  .cert-meta { gap: 16px; flex-wrap: wrap; }
  .sign { width: 110px; }
}

/* ===========================================================
   NEWS & EVENTS PAGE
   =========================================================== */
.news-featured {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; box-shadow: var(--shadow-sm); margin-bottom: 52px;
}
.news-featured .nf-media { position: relative; min-height: 340px; }
.news-featured .nf-media .figimg { position: absolute; inset: 0; height: 100%; border: none; border-radius: 0; }
.news-featured .nf-body { padding: 44px 46px; display: flex; flex-direction: column; justify-content: center; }
.news-tag {
  display: inline-flex; align-items: center; gap: 7px; align-self: flex-start;
  font-family: var(--display); font-weight: 600; font-size: 12px;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--gold-600); background: var(--gold-100);
  padding: 6px 13px; border-radius: 50px; margin-bottom: 16px;
}
.news-date { font-size: 13.5px; color: var(--ink-faint); font-family: var(--display); font-weight: 500; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.news-date svg { width: 15px; height: 15px; }
.news-featured h2 { font-size: clamp(24px, 3vw, 34px); }
.news-featured p { color: var(--ink-soft); font-size: 16px; margin-top: 16px; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.news-card .nc-media { height: 200px; position: relative; overflow: hidden; }
.news-card .nc-media .figimg { height: 100%; border: none; border-radius: 0; transition: transform .4s; }
.news-card:hover .nc-media .figimg { transform: scale(1.05); }
.news-card .nc-tag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-family: var(--display); font-weight: 600; font-size: 11px;
  text-transform: uppercase; letter-spacing: .06em; color: #fff;
  background: rgba(0,26,51,.82); padding: 6px 11px; border-radius: 6px;
}
.news-card .nc-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.news-card h3 { font-size: 19px; margin: 6px 0 10px; }
.news-card p { color: var(--ink-soft); font-size: 14.5px; flex: 1; }
.read-more {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 18px;
  font-family: var(--display); font-weight: 600; font-size: 14px; color: var(--navy-700);
}
.read-more svg { width: 15px; height: 15px; transition: transform .2s; }
.news-card:hover .read-more svg { transform: translateX(4px); color: var(--gold-600); }

.events-list { display: grid; gap: 16px; }
.event-item {
  display: flex; gap: 24px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 13px;
  padding: 22px 26px; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.event-item:hover { border-color: var(--gold-400); box-shadow: var(--shadow-sm); transform: translateX(4px); }
.event-date {
  flex: none; width: 78px; height: 78px; border-radius: 12px;
  background: var(--navy-700); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.event-date .ed-day { font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1; }
.event-date .ed-mon { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-top: 4px; color: var(--gold-400); }
.event-info h4 { font-size: 18px; margin-bottom: 6px; }
.event-info .ei-meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--ink-faint); font-size: 13.5px; }
.event-info .ei-meta span { display: inline-flex; align-items: center; gap: 6px; }
.event-info .ei-meta svg { width: 14px; height: 14px; color: var(--gold-600); }

/* ===========================================================
   FORMS PAGE
   =========================================================== */
.form-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.form-tab-btn {
  font-family: var(--display); font-weight: 600; font-size: 15px;
  padding: 13px 22px; border-radius: 10px; cursor: pointer;
  background: #fff; border: 1.5px solid var(--line); color: var(--ink-soft);
  transition: background .18s, border-color .18s, color .18s, transform .18s;
}
.form-tab-btn:hover { border-color: var(--navy-500); color: var(--navy-700); }
.form-tab-btn.active { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.form-panel { display: none; }
.form-panel.active { display: block; animation: fadeUp .4s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.form-shell { max-width: 760px; margin: 0 auto; }
.form-shell .contact-form { box-shadow: var(--shadow-md); }
.form-intro { text-align: center; max-width: 620px; margin: 0 auto 26px; }
.form-intro h2 { font-size: clamp(24px, 3vw, 32px); }
.form-intro p { color: var(--ink-soft); font-size: 16px; margin-top: 12px; }
.field-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.fieldset-label {
  font-family: var(--display); font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: .07em; color: var(--navy-700);
  margin: 26px 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-pill { position: relative; }
.radio-pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radio-pill span {
  display: block; font-family: var(--display); font-weight: 600; font-size: 14px;
  padding: 11px 18px; border-radius: 9px; border: 1.5px solid var(--line);
  background: var(--mist); color: var(--ink-soft); cursor: pointer; transition: all .16s;
}
.radio-pill input:checked + span { background: var(--navy-tint); border-color: var(--navy-500); color: var(--navy-700); }

/* Star rating */
.star-rating { display: flex; gap: 4px; }
.star-rating button {
  background: none; border: none; padding: 2px; cursor: pointer; line-height: 0;
}
.star-rating svg { width: 28px; height: 28px; color: var(--line); transition: color .12s, transform .12s; }
.star-rating button:hover svg { transform: scale(1.15); }
.star-rating button.on svg { color: var(--gold-500); }
.rating-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.rating-row .rr-label { font-size: 14.5px; color: var(--ink); font-weight: 500; }

/* ===========================================================
   CERTIFICATE REGISTRY (verify page)
   =========================================================== */
.registry { background: var(--mist); }
.registry-bar { max-width: 640px; margin: 0 auto 36px; position: relative; }
.registry-bar svg.search-ic { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--ink-faint); pointer-events: none; }
.registry-bar input {
  width: 100%; font-family: var(--sans); font-size: 16px;
  padding: 16px 18px 16px 50px; border: 1.5px solid var(--line);
  border-radius: 12px; background: #fff; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.registry-bar input:focus { outline: none; border-color: var(--navy-500); box-shadow: 0 0 0 4px rgba(27,88,151,.1); }
.registry-count { text-align: center; color: var(--ink-faint); font-size: 14px; margin-bottom: 22px; }
.registry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.reg-card {
  background: #fff; border: 1px solid var(--line); border-radius: 13px;
  padding: 22px 22px 20px; display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.reg-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold-400); }
.reg-card .reg-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.reg-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: var(--navy-700); color: #fff;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 15px;
}
.reg-card .reg-name { font-family: var(--display); font-weight: 700; font-size: 17px; color: var(--navy-700); margin-top: 14px; }
.reg-card .reg-std { font-size: 14px; color: var(--ink-soft); margin-top: 3px; }
.reg-card .reg-no { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px; color: var(--ink-faint); margin-top: 12px; }
.reg-card .reg-view {
  margin-top: 16px; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--display); font-weight: 600; font-size: 13.5px; color: var(--navy-700);
  background: none; border: none; padding: 0; cursor: pointer;
}
.reg-card .reg-view svg { width: 15px; height: 15px; transition: transform .2s; }
.reg-card .reg-view:hover svg { transform: translateX(3px); color: var(--gold-600); }
.registry-empty { text-align: center; color: var(--ink-faint); font-size: 15px; padding: 40px 0; grid-column: 1 / -1; }

@media (max-width: 900px) {
  .news-featured { grid-template-columns: 1fr; }
  .news-featured .nf-media { min-height: 240px; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .registry-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .news-grid, .registry-grid { grid-template-columns: 1fr; }
  .field-3 { grid-template-columns: 1fr; }
  .news-featured .nf-body { padding: 28px 24px; }
  .event-item { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* ===========================================================
   INDIVIDUAL STANDARD PAGES
   =========================================================== */
.std-hero .wrap { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.std-hero .sh-text { flex: 1; min-width: 280px; }
.std-code-badge {
  flex: none;
  width: 150px; min-height: 150px;
  border-radius: 20px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.18);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; padding: 20px 14px; text-align: center;
}
.std-code-badge .scb-iso { font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: .16em; color: var(--gold-400); text-transform: uppercase; }
.std-code-badge .scb-no { font-family: var(--display); font-weight: 800; font-size: 30px; color: #fff; line-height: 1; }
.std-code-badge .scb-tag { font-size: 11.5px; color: #b6c6d8; margin-top: 4px; }

/* quick facts */
.quick-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: -52px; position: relative; z-index: 5; }
.qf-card {
  background: #fff; border: 1px solid var(--line); border-radius: 13px;
  padding: 22px 20px; box-shadow: var(--shadow-sm);
}
.qf-card .qf-ic { width: 40px; height: 40px; border-radius: 10px; background: var(--navy-tint); display: grid; place-items: center; margin-bottom: 14px; }
.qf-card .qf-ic svg { width: 20px; height: 20px; color: var(--navy-700); }
.qf-card .qf-label { font-family: var(--display); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint); }
.qf-card .qf-val { font-size: 15.5px; color: var(--ink); font-weight: 500; margin-top: 4px; font-family: var(--display); }

/* requirements list */
.req-list { display: grid; gap: 14px; margin-top: 8px; }
.req-list li { display: flex; gap: 15px; align-items: flex-start; background: var(--mist); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.req-list .req-n {
  flex: none; width: 30px; height: 30px; border-radius: 8px;
  background: var(--navy-700); color: var(--gold-400);
  display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 14px;
}
.req-list .req-t { font-size: 15px; color: var(--ink-soft); line-height: 1.55; }
.req-list .req-t b { color: var(--navy-700); font-family: var(--display); display: block; margin-bottom: 2px; font-size: 15.5px; }

/* who-needs chips */
.who-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.who-card { display: flex; align-items: center; gap: 13px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; transition: border-color .18s, box-shadow .18s; }
.who-card:hover { border-color: var(--gold-400); box-shadow: var(--shadow-sm); }
.who-card .wc-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold-500); flex: none; }
.who-card span:last-child { font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--navy-700); }

/* related standards */
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.related-card { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 22px 20px; transition: transform .2s, box-shadow .2s, border-color .2s; display: block; }
.related-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.related-card .rel-code { font-family: var(--display); font-weight: 800; font-size: 18px; color: var(--navy-700); }
.related-card .rel-name { font-size: 13.5px; color: var(--ink-soft); margin-top: 6px; }
.related-card .rel-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-family: var(--display); font-weight: 600; font-size: 13px; color: var(--gold-600); }
.related-card .rel-go svg { width: 14px; height: 14px; transition: transform .2s; }
.related-card:hover .rel-go svg { transform: translateX(3px); }

@media (max-width: 900px) {
  .quick-facts { grid-template-columns: repeat(2, 1fr); margin-top: 28px; }
  .who-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .quick-facts, .who-grid, .related-grid { grid-template-columns: 1fr; }
  .std-code-badge { width: 100%; }
}

/* ===========================================================
   PRINT — only the certificate
   =========================================================== */
@media print {
  body * { visibility: hidden !important; }
  #certOverlay, #certOverlay * { visibility: visible !important; }
  #certOverlay { position: static; display: block !important; background: #fff; padding: 0; backdrop-filter: none; overflow: visible; }
  .cert-toolbar { display: none !important; }
  .cert-stage { width: 100%; }
  .cert-doc { width: 100%; box-shadow: none; }
  @page { size: A4 landscape; margin: 10mm; }
}
