/* Completed credentials follow the portfolio palette in both themes. */
.certificate-grid { display: block; }
.certificate-provider + .certificate-provider { margin-top: 36px; }
.certificate-provider[hidden], .certificate-category[hidden], .certificate-source[hidden] { display: none !important; }
.certificate-provider-head, .certificate-provider-title { display: flex; align-items: center; gap: 12px; }
.certificate-provider-head { justify-content: space-between; padding: 0 0 18px; border-bottom: 1px solid var(--line); }
.certificate-provider-title { min-width: 0; }
.certificate-provider-title h3 { font-size: clamp(19px, 2vw, 24px); letter-spacing: -.6px; line-height: 1.3; }
.certificate-provider-mark { display: grid; flex: none; place-items: center; width: 36px; height: 36px; border-radius: 9px; color: #fff; background: #0a66c2; font: 750 24px/1 var(--font-site); letter-spacing: -1px; }
.certificate-provider-count { flex: none; color: var(--muted); font-size: 11px; }
.certificate-category { margin-top: 22px; }
.certificate-category-title { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--accent); font-size: 11px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.certificate-category-symbol { display: block; width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; }
.certificate-category-list { display: grid; gap: 16px; }
.certificate-course-card { display: grid; grid-template-columns: minmax(220px, .82fr) minmax(0, 1.65fr); min-height: 0; padding: 0; border-radius: 20px; }
.certificate-course-card::before { display: none; }
.certificate-course-card--text { grid-template-columns: 1fr; }
.certificate-document { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-width: 0; padding: 25px; border: 0; border-right: 1px solid var(--line); background: var(--soft); color: var(--muted); cursor: zoom-in; }
.certificate-document img { display: block; width: 100%; height: auto; max-width: 330px; object-fit: contain; border: 1px solid #16345b14; border-radius: 4px; box-shadow: 0 16px 30px -20px #071b6359; transition: transform .3s ease, box-shadow .3s ease; }
.certificate-document:is(:hover, :focus-visible) img { transform: translateY(-3px); box-shadow: 0 19px 32px -18px #071b6366; }
.certificate-document-caption { font-size: 10px; font-weight: 600; }
.certificate-document:focus-visible { outline: 2px solid var(--accent); outline-offset: -5px; }
.certificate-course-body { display: flex; flex-direction: column; min-width: 0; padding: 27px 30px; }
.certificate-course-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 17px; }
.certificate-topic { color: var(--accent); font-size: 10px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.certificate-completed { color: var(--green); font-size: 10px; font-weight: 600; }
.certificate-course-title { max-width: 39ch; margin: 0; color: var(--navy); font-size: clamp(20px, 2vw, 26px); font-weight: 720; line-height: 1.25; letter-spacing: -.65px; overflow-wrap: break-word; }
.certificate-course-card .certificate-course-description { margin-top: 10px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.certificate-course-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 17px; color: var(--muted); font-size: 10px; }
.certificate-meta-item { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.certificate-meta-item time { font-weight: 600; color: var(--navy); }
.certificate-duration { white-space: nowrap; }
.certificate-duration > span:first-child { color: var(--accent); font-size: 14px; }
.certificate-course-skills { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 15px; }
.certificate-course-skills > span { padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--soft); color: var(--navy); font-size: 9px; font-weight: 550; }
.certificate-course-card .certificate-actions { padding-top: 20px; gap: 8px; }
.certificate-course-card .certificate-action { min-height: 42px; padding: 9px 12px; font: 650 10px/1.4 var(--font-site); cursor: pointer; }
.certificate-course-card .certificate-action-link { background: transparent; }
.certificate-upcoming.has-issued-certificates { grid-template-columns: 1fr; margin-top: 22px; }
@media (max-width: 700px) {
  .certificate-course-card { grid-template-columns: 1fr; }
  .certificate-document { padding: 23px 28px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .certificate-document img { max-width: min(340px, 100%); max-height: 240px; width: auto; }
  .certificate-course-body { padding: 22px; }
  .certificate-provider-head { gap: 10px; }
  .certificate-provider-count { font-size: 9px; }
  .certificate-provider-mark { width: 32px; height: 32px; font-size: 22px; }
  .certificate-course-card .certificate-actions { gap: 7px; }
  .certificate-course-card .certificate-action { flex-grow: 1; }
}
@media (prefers-reduced-motion: reduce) { .certificate-document img { transition: none; } .certificate-document:is(:hover, :focus-visible) img { transform: none; } }
@media print { .certificate-course-card .certificate-actions, .certificate-document-caption { display: none; } .certificate-document { background: #fff; } }


/* Portrait employment documents retain the established card proportions. */
.certificate-provider-mark--logo { width: 48px; height: 48px; padding: 3px; border: 1px solid var(--line); background: #fff; letter-spacing: 0; }
.certificate-provider-mark--logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.certificate-work-document .certificate-document img { width: auto; max-width: 100%; max-height: 310px; }
.certificate-work-document .certificate-completed { color: var(--accent); }
.certificate-service-period > span:last-child { color: var(--navy); font-weight: 550; }
@media (max-width: 700px) {
  .certificate-provider-mark--logo { width: 42px; height: 42px; }
  .certificate-work-document .certificate-document img { max-height: 260px; }
}

/* Title-first disclosure: the original document panel opens on deliberate action. */
.certificate-entry { display: block; min-height: 0; padding: 0; border-radius: 16px; transition: border-color .25s ease, box-shadow .25s ease; }
.certificate-entry::before { display: none; }
.certificate-entry:hover { transform: none; }
.certificate-entry-summary { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 74px; padding: 21px 27px; list-style: none; color: var(--accent); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color .25s ease; }
.certificate-entry-summary::-webkit-details-marker { display: none; }
.certificate-entry-summary::marker { content: ''; }
.certificate-entry-summary::before { content: ''; position: absolute; inset: 21px auto 21px 0; width: 2px; border-radius: 2px; background: var(--accent); opacity: .45; transition: opacity .25s ease; }
.certificate-entry-summary::after { content: ''; box-sizing: border-box; flex: 0 0 9px; width: 9px; height: 9px; margin-right: 5px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .25s ease; }
.certificate-entry-summary .certificate-course-title { flex: 1; min-width: 0; max-width: none; margin: 0; font-size: clamp(17px, 1.65vw, 22px); line-height: 1.45; letter-spacing: -.45px; }
.certificate-entry-summary:is(:hover, :focus-visible) { background-color: color-mix(in srgb, var(--accent) 6%, transparent); }
.certificate-entry-summary:is(:hover, :focus-visible)::before, .certificate-entry[open] > .certificate-entry-summary::before { opacity: 1; }
.certificate-entry-summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -5px; border-radius: 15px; }
.certificate-entry[open] { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.certificate-entry[open] > .certificate-entry-summary { border-bottom: 1px solid var(--line); }
.certificate-entry[open] > .certificate-entry-summary::after { transform: translateY(2px) rotate(225deg); }
.certificate-entry:not([open]) > .certificate-entry-content { display: none; }
.certificate-entry[open] > .certificate-entry-content { animation: none; }
.certificate-entry .certificate-course-panel { border: 0; border-radius: 0; box-shadow: none; background: transparent; }

@media (max-width: 700px) {
  .certificate-entry { min-height: 0; padding: 0; }
  .certificate-entry-summary { min-height: 66px; padding: 18px 20px; gap: 15px; }
  .certificate-entry-summary .certificate-course-title { font-size: 17px; }
  .certificate-entry-summary::before { inset-block: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .certificate-entry, .certificate-entry-summary, .certificate-entry-summary::before, .certificate-entry-summary::after { transition: none; }
  .certificate-entry[open] > .certificate-entry-content { animation: none; }
}

/* One provider layout for issued documents and sources awaiting certificates. */
.certificate-provider-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px; }
.certificate-provider-title h3 { min-width: 0; max-width: none; margin: 0; overflow-wrap: anywhere; }
.certificate-provider-mark { width: 48px; height: 48px; }
.certificate-provider-mark--linkedin { color: #fff; background: #0a66c2; font-size: 29px; }
.certificate-provider-mark--academy { color: var(--accent); background: var(--soft); border: 1px solid var(--line); }
.certificate-provider-mark--academy svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.certificate-provider-count { max-width: 140px; text-align: end; }
.certificate-provider-status { padding: 6px 9px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: var(--soft); font-size: 9px; font-weight: 600; line-height: 1.5; }
.certificate-upcoming.has-issued-certificates { gap: 38px; margin-top: 38px; }
#certificates .certificate-source.certificate-provider { display: block; min-height: 0; padding: 0; overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; transform: none; }
#certificates .certificate-source.certificate-provider::before { display: none; }
#certificates .certificate-source.certificate-provider:hover { border: 0; box-shadow: none; transform: none; }
.certificate-provider-empty { display: flex; align-items: center; gap: 14px; min-height: 68px; margin-top: 18px; padding: 19px 24px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(145deg, var(--surface), var(--surface-alt)); transition: border-color .3s ease, background-color .3s ease; }
.certificate-provider-empty .certificate-category-symbol { color: var(--accent); opacity: .65; }
.certificate-provider-empty p { max-width: none; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.certificate-provider--pending:hover .certificate-provider-empty { border-color: color-mix(in srgb, var(--accent) 36%, var(--line)); }
.certificate-provider--pending .certificate-provider-mark { transition: box-shadow .3s ease; }
.certificate-provider--pending:hover .certificate-provider-mark { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 6%, transparent); }
#certificates.certificate-motion-ready > .section-details { animation: none; }
.certificate-entry[data-certificate-motion] > .certificate-entry-content { overflow: hidden; will-change: height, opacity; }
.certificate-entry[data-certificate-motion="closing"] > .certificate-entry-summary::after { transform: translateY(-2px) rotate(45deg); }
.certificate-entry-summary.is-certificate-pointed { background-image: radial-gradient(190px circle at var(--certificate-pointer-x) var(--certificate-pointer-y), color-mix(in srgb, var(--accent) 9%, transparent), transparent 76%); }
.is-certificate-list-revealing .certificate-provider { will-change: transform, opacity; }
@media (max-width: 700px) {
  .certificate-provider-mark { width: 42px; height: 42px; }
  .certificate-provider-mark--linkedin { font-size: 25px; }
  .certificate-provider-head { gap: 12px; }
  .certificate-provider-status { max-width: 100px; padding: 5px 7px; font-size: 8px; }
  .certificate-provider-empty { padding: 17px 18px; gap: 12px; }
  .certificate-upcoming.has-issued-certificates { gap: 28px; margin-top: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .certificate-provider-empty, .certificate-provider--pending .certificate-provider-mark { transition: none; }
  .certificate-entry[data-certificate-motion] > .certificate-entry-content { will-change: auto; }
}

/* Thematic nesting keeps documents visually inside their issuer and topic. */
.certificate-category { margin-inline-start: 18px; padding-inline-start: 20px; border-inline-start: 1px solid var(--line); }
.certificate-category-title { margin-inline-start: -28px; padding: 3px 0; background: var(--bg); width: fit-content; }
.certificate-category-title .certificate-category-symbol { background: var(--bg); }
.certificate-order-toolbar { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.certificate-order-toggle { min-height: 38px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--navy); font: 600 10px/1.4 var(--font-site); cursor: pointer; }
.certificate-order-toggle:is(:hover,:focus-visible) { border-color: var(--accent); }
.certificate-order-toggle:focus-visible,.certificate-order-step:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.certificate-order-hint { color: var(--muted); font-size: 10px; }
.certificate-provider-end { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.certificate-order-tools { display: inline-flex; align-items: flex-start; flex: none; gap: 5px; }
.certificate-order-tools[hidden],.certificate-order-hint[hidden] { display: none !important; }
.certificate-order-step { width: 40px; min-height: 44px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--accent); font: 500 19px/1 var(--font-site); cursor: pointer; transition: background-color .2s ease,border-color .2s ease; }
.certificate-order-step:hover:not(:disabled) { border-color: var(--accent); background: var(--soft); }
.certificate-order-step:disabled { opacity: .3; cursor: default; }
.certificate-sort-row { min-width: 0; }
.is-certificate-ordering .certificate-sort-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start; gap: 10px; }
.is-certificate-ordering .certificate-sort-row > .certificate-order-tools { padding-top: 15px; }
.certificate-order-announcement { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* The optional electrical finish stays on the real rounded panel. */
[data-electric="on"] .certificate-source.certificate-provider > .electric-surface-aura { display: none !important; }
[data-electric="on"] .certificate-provider-empty { position: relative; isolation: isolate; overflow: hidden; }
[data-electric="on"] .certificate-provider-empty > .electric-surface-aura { border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(var(--electric-material),.1); }
.certificate-provider-empty > .electric-surface-aura rect { display: none; }
.certificate-provider-empty > .electric-surface-aura::after { content: ''; position: absolute; inset: 0; padding: 1px; border-radius: inherit; opacity: 0; background: linear-gradient(110deg,transparent 30%,rgba(var(--electric-specular),.75) 50%,transparent 70%); background-size: 240% 100%; -webkit-mask: linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0); mask-composite: exclude; }
[data-electric="on"] .certificate-provider-empty.electric-surface-charged > .electric-surface-aura::after { animation: certificate-rounded-glint .95s ease-out var(--electric-surface-delay,0ms) both; }
@keyframes certificate-rounded-glint { 0% { opacity: 0; background-position: 130% 0; } 20% { opacity: .8; } 75% { opacity: .45; } 100% { opacity: 0; background-position: -130% 0; } }
@media (max-width: 700px) {
  .certificate-category { margin-inline-start: 9px; padding-inline-start: 12px; }
  .certificate-category-title { margin-inline-start: -20px; }
  .is-certificate-ordering .certificate-provider-head { grid-template-columns: 1fr; }
  .is-certificate-ordering .certificate-provider-end { justify-content: space-between; padding-inline-start: 54px; }
  .is-certificate-ordering .certificate-sort-row > .certificate-order-tools { flex-direction: column; padding-top: 7px; }
  .certificate-order-step { width: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .certificate-order-step { transition: none; }
  .certificate-provider-empty > .electric-surface-aura::after { animation: none !important; }
}
