/* Policy & Certification: a dark hall with the list of certificates, framed certificates
   under spotlights, the policies as signed documents, and award medals */
.page--policy-certification { --gold: #d9b56a; --gold-2: #a8823c; --wall: #15181f; }
.pc-hero { position: relative; padding: 130px 0 clamp(50px, 7vw, 90px); color: #fff; overflow: hidden;
  background: radial-gradient(60% 50% at 80% 10%, rgba(217, 181, 106, .16), transparent 70%), linear-gradient(180deg, #0e1118, var(--wall)); }
.pc-hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 30px; align-items: center; margin-bottom: clamp(40px, 6vw, 70px); }
.pc-hero__copy { display: grid; gap: 20px; }
.pc-hero__copy .crumbs { color: rgba(255, 255, 255, .6); }
.pc-gold { background: linear-gradient(100deg, #f3dca4, var(--gold) 45%, var(--gold-2) 70%, #f3dca4); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: pc-sheen 6s ease-in-out infinite; }
@keyframes pc-sheen { 50% { background-position: 100% 0; } }
.pc-hero__lede { max-width: 50ch; font-size: clamp(16px, 1.4vw, 19px); color: rgba(255, 255, 255, .78); }

.seal2 { position: relative; width: min(100%, 320px); aspect-ratio: 1; justify-self: center; }
.seal2 svg { width: 100%; height: 100%; }
.seal2__ring { transform-origin: 150px 150px; animation: pc-spin 30s linear infinite; }
.seal2__ring text { font: 600 13.5px var(--font); letter-spacing: .3em; fill: var(--gold); }
@keyframes pc-spin { to { transform: rotate(360deg); } }
.seal2__disc { fill: url(#none); fill: #1d2230; stroke: var(--gold); stroke-width: 2; }
.seal2__dash { fill: none; stroke: rgba(217, 181, 106, .5); stroke-dasharray: 2 5; }
.seal2__core { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 2px; }
.seal2__core small { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.seal2__core > b { font-size: clamp(46px, 5vw, 64px); font-weight: 600; letter-spacing: -.03em; line-height: 1; color: var(--gold); }
.seal2__core span { font-size: 13px; color: rgba(255, 255, 255, .75); }
.seal2__core span b { color: #fff; font-weight: 600; }

/* the list of certificates */
.board { border: 1px solid rgba(255, 255, 255, .12); border-radius: 20px; overflow: hidden; background: rgba(255, 255, 255, .03); }
.board__row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; align-items: center; padding: 18px 24px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 14.5px; color: rgba(255, 255, 255, .78); }
.board__row:first-child { border-top: 0; }
.board__row--head { padding-top: 14px; padding-bottom: 14px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .03); }
.board__row b { display: block; color: #fff; font-weight: 500; font-size: 15.5px; }
.board__row small { font-size: 12.5px; color: rgba(255, 255, 255, .5); }

/* the hall: frames on a dark wall, lit from above */
.hall { padding: clamp(80px, 10vw, 140px) 0; color: #fff; background: radial-gradient(120% 60% at 50% 0%, #1f2430, var(--wall) 60%); }
.hall .eyebrow { color: rgba(255, 255, 255, .55); }
.hall__head { display: grid; gap: 14px; margin-bottom: clamp(50px, 7vw, 90px); }
.hall__head p { color: rgba(255, 255, 255, .6); }
.wall { display: grid; grid-template-columns: 1.05fr 1.5fr .85fr .85fr; gap: clamp(20px, 3vw, 44px); align-items: end; }
.frame { position: relative; margin: 0; display: grid; justify-items: center; gap: 22px; }
.frame__light { position: absolute; left: 50%; top: -90px; width: 150%; height: calc(100% + 60px); transform: translateX(-50%); background: radial-gradient(50% 60% at 50% 0%, rgba(255, 236, 196, .22), transparent 70%); clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%); opacity: .55; transition: opacity .5s; pointer-events: none; }
.frame:hover .frame__light, .frame:focus-within .frame__light { opacity: 1; }
.frame__pic { position: relative; display: block; width: 100%; padding: clamp(10px, 1.2vw, 16px); border: 0; cursor: zoom-in; background: #f4efe6; box-shadow: 0 0 0 clamp(6px, .7vw, 10px) #2a2116, 0 0 0 calc(clamp(6px, .7vw, 10px) + 2px) var(--gold-2), 0 40px 60px -20px rgba(0, 0, 0, .8); transition: transform .5s var(--ease), box-shadow .5s; }
.frame__pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(125deg, rgba(255, 255, 255, .28) 0%, transparent 35%, transparent 70%, rgba(255, 255, 255, .08)); pointer-events: none; }
.frame:hover .frame__pic { transform: translateY(-8px); }
.frame__pic img { width: 100%; height: auto; }
.frame--round .frame__pic { border-radius: 50%; padding: clamp(14px, 1.6vw, 22px); background: #fff; }
.frame--round .frame__pic img { border-radius: 50%; }
.plaque { display: grid; gap: 2px; text-align: center; padding: 10px 16px; border-radius: 4px; background: linear-gradient(180deg, #e9cf91, #b98f45); color: #2a2116; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 6px 14px -6px rgba(0, 0, 0, .6); }
.plaque b { font-weight: 600; font-size: 13.5px; }
.plaque span { font-size: 11.5px; opacity: .8; }
.scope { margin: clamp(60px, 8vw, 100px) 0 0; display: grid; grid-template-columns: 2fr 1fr 1fr 2fr; border-top: 1px solid rgba(255, 255, 255, .12); }
.scope div { padding: 22px 20px 0 0; display: grid; gap: 6px; }
.scope dt { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.scope dd { margin: 0; color: rgba(255, 255, 255, .78); font-size: 14.5px; }

/* the policies: one at a time, each commitment a single line that opens */
.pols { --acc: #1d3fae; --acc-2: #15893f; }
.pols__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; margin-bottom: 34px; }
.pols__head > div { display: grid; gap: 16px; }
.pv__tabs { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 6px; border-radius: 20px; background: var(--bg-soft); border: 1px solid var(--line); }
.pv__tab { position: relative; z-index: 1; display: grid; gap: 2px; text-align: left; padding: 12px 20px; border: 0; border-radius: 14px; background: none; cursor: pointer; color: var(--muted); transition: color .3s; }
.pv__tab b { font-weight: 500; font-size: 15px; }
.pv__tab small { font-size: 12px; opacity: .8; }
.pv__tab[aria-selected="true"] { color: var(--ink); }
.pv__ink { position: absolute; z-index: 0; top: 6px; bottom: 6px; left: 6px; width: calc(50% - 6px); border-radius: 14px; background: #fff; box-shadow: 0 10px 24px -14px rgba(13, 20, 36, .4); transition: transform .45s var(--ease); }
.pv__ink::after { content: ""; position: absolute; left: 20px; right: 20px; bottom: 0; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--acc), var(--acc-2)); transition: background .45s; }
.pols.is-hs { --acc: #e0732f; --acc-2: #f5a524; }
.pols.is-hs .pv__ink { transform: translateX(100%); }

.pv__panel { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 60px); padding: clamp(22px, 3.4vw, 44px); border-radius: 28px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); animation: pv-in .5s var(--ease); }
.pv__panel[hidden] { display: none; }
@keyframes pv-in { from { opacity: 0; transform: translateY(12px); } }
.pv__doc { display: grid; gap: 24px; align-content: start; }
/* the signed original, as a sheet lying on a small stack */
.pv__paper { position: relative; justify-self: start; width: min(100%, 230px); padding: 0; border: 0; background: none; cursor: zoom-in; }
.pv__paper img { position: relative; z-index: 2; width: 100%; height: auto; border-radius: 4px; box-shadow: 0 0 0 1px var(--line), 0 24px 40px -20px rgba(13, 20, 36, .45); transform: rotate(-2.5deg); transition: transform .5s var(--ease); }
.pv__paper::before, .pv__paper::after { content: ""; position: absolute; inset: 0; border-radius: 4px; background: #fbf8f1; box-shadow: 0 0 0 1px var(--line); }
.pv__paper::before { transform: rotate(3deg) translate(6px, 4px); }
.pv__paper::after { transform: rotate(1deg) translate(2px, 2px); z-index: 1; }
.pv__paper:hover img { transform: rotate(0deg) translateY(-4px); }
.pv__paper span { position: absolute; z-index: 3; left: 50%; bottom: 14px; transform: translateX(-50%); white-space: nowrap; padding: 7px 12px; border-radius: 999px; background: rgba(13, 20, 36, .82); color: #fff; font-size: 12.5px; opacity: 0; transition: opacity .3s; }
.pv__paper:hover span, .pv__paper:focus-visible span { opacity: 1; }
.pv__meta { margin: 0; display: grid; }
.pv__meta div { display: grid; gap: 2px; padding: 12px 0; border-top: 1px solid var(--line); }
.pv__meta dt { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.pv__meta dd { margin: 0; font-size: 15px; font-weight: 500; }

.pv__body { display: grid; gap: 18px; align-content: start; }
.pv__lead { font-size: clamp(19px, 1.8vw, 24px); line-height: 1.4; letter-spacing: -.01em; }
.pv__list { display: grid; border-top: 1px solid var(--line); }
.pv__item { border-bottom: 1px solid var(--line); interpolate-size: allow-keywords; }
.pv__item summary { display: grid; grid-template-columns: 44px 1fr 18px; align-items: center; gap: 14px; padding: 16px 4px; cursor: pointer; list-style: none; transition: color .25s; }
.pv__item summary::-webkit-details-marker { display: none; }
.pv__item summary:hover b { color: var(--acc); }
.pv__n { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font-size: 13px; font-weight: 600; color: var(--acc); background: color-mix(in srgb, var(--acc) 10%, #fff); transition: background .3s, color .3s; }
.pv__item[open] .pv__n { background: linear-gradient(135deg, var(--acc), var(--acc-2)); color: #fff; }
.pv__item b { font-weight: 500; font-size: 16.5px; transition: color .25s; }
.pv__item summary svg { width: 14px; height: 14px; color: var(--muted); transition: transform .35s var(--ease); }
.pv__item[open] summary svg { transform: rotate(180deg); }
.pv__item p { padding: 0 4px 18px 62px; color: var(--ink-2); font-size: 15.5px; max-width: 64ch; }
.pv__item::details-content { height: 0; overflow: hidden; transition: height .4s var(--ease), content-visibility .4s allow-discrete; }
.pv__item[open]::details-content { height: auto; }
.pv__all { justify-self: start; border: 0; background: none; padding: 4px 0; font-size: 14px; font-weight: 500; color: var(--acc); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }

/* award medals */
.medals { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.medal { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 0 20px 34px; border-radius: 24px; background: #fff; border: 1px solid var(--line); --m1: #f3dca4; --m2: #b98f45; }
.medal--2 { --m1: #eef1f6; --m2: #a6afbd; }
.medal--3 { --m1: #f1c9a2; --m2: #a8673a; }
.medal__ribbon { width: 64px; height: 70px; background: linear-gradient(90deg, #26409a 0 33%, #fff 33% 40%, #15893f 40% 60%, #fff 60% 67%, #26409a 67%); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%); }
.medal__disc { width: 118px; height: 118px; margin-top: -28px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #fff8, transparent 40%), radial-gradient(circle, var(--m1), var(--m2)); box-shadow: inset 0 0 0 6px rgba(255, 255, 255, .35), inset 0 0 0 7px rgba(0, 0, 0, .1), 0 18px 30px -14px rgba(0, 0, 0, .45); transition: transform .8s var(--ease); }
.medal:hover .medal__disc { transform: rotateY(360deg); }
.medal__disc b { font-size: 17px; font-weight: 600; color: rgba(40, 28, 10, .85); }
.medal h3 { font-size: 19px; margin-top: 10px; }
.medal p { font-size: 14px; color: var(--muted); max-width: 30ch; }

.verify__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(30px, 6vw, 90px); align-items: end; }
.verify__grid > div:first-child { display: grid; gap: 16px; }
.verify__links { display: grid; gap: 12px; }
.verify__links a { display: grid; gap: 4px; padding: 22px 26px; border-radius: 20px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .3s, transform .3s var(--ease), box-shadow .3s; }
.verify__links a:hover { border-color: var(--ink); transform: translateX(6px); box-shadow: var(--shadow); }
.verify__links b { font-weight: 500; font-size: 19px; }
.verify__links span { font-size: 14px; color: var(--muted); }

@media (max-width: 1000px) {
  .pc-hero__grid, .verify__grid, .pv__panel { grid-template-columns: 1fr; }
  .pv__doc { grid-template-columns: 120px 1fr; align-items: start; }
  .pv__paper { width: 120px; }
  .seal2 { width: min(70%, 260px); }
  .board__row { grid-template-columns: 1fr; gap: 4px; }
  .board__row--head { display: none; }
  .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 60px; }
  .scope { grid-template-columns: 1fr 1fr; }
  .medals { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wall { grid-template-columns: 1fr; padding: 0 8%; }
  .frame--round { padding: 0 12%; }
  .scope { grid-template-columns: 1fr; }
  .pv__tabs { width: 100%; }
  .pv__tab { padding: 10px 12px; }
  .pv__item p { padding-left: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .pc-gold, .seal2__ring { animation: none; }
  .medal__disc, .pv__ink, .pv__item summary svg { transition: none; }
  .pv__panel { animation: none; }
}
