/* P0 interaction and legacy-filter remediation. */
.v5-project-card[hidden] {
    display: none !important;
}

.v5-case-results {
    margin: 14px 0 0;
    color: #486276;
    font-weight: 700;
}

a.v5-project-card {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

a.v5-project-card:focus-visible,
a.wpkg-news-card:focus-visible,
.content-card.is-linked:focus-visible,
.download-card:focus-visible {
    outline: 3px solid #f28c28;
    outline-offset: 4px;
}

.content-card:not(.is-linked) {
    cursor: default;
}

.content-card:not(.is-linked):hover {
    transform: none;
    border-top-color: #d9e8f1;
    box-shadow: none;
}

.content-card.is-linked:hover {
    transform: translateY(-4px);
    border-top-color: var(--blue);
    box-shadow: 0 20px 50px rgba(6, 30, 51, 0.09);
}

@media (prefers-reduced-motion: reduce) {
    .content-card,
    .v5-project-card,
    .wpkg-news-card {
        transition: none !important;
    }
}

/* P1 public-brand chrome. The text mark avoids publishing the legacy logo. */
.brand-mark.brand-mark-text{display:inline-grid;place-items:center;width:46px;height:46px;border-radius:12px;background:#0f3b63;color:#fff;font-size:15px;font-weight:900;letter-spacing:.08em;line-height:1}

/* Download cards expose the complete document record. */
.document-meta{display:grid;gap:.4rem;margin:1rem 0 0;padding-top:.9rem;border-top:1px solid rgba(15,59,99,.14);font-size:.78rem}
.document-meta div{display:grid;grid-template-columns:5.8rem 1fr;gap:.65rem}
.document-meta dt{font-weight:800;color:#526477;text-transform:uppercase;letter-spacing:.05em}
.document-meta dd{margin:0;color:#16283a;overflow-wrap:anywhere}

/* Standard facts, timeline and navigation for the 19 selected cases. */
.project-fact-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:1px;margin:0;background:#dce5ed;border:1px solid #dce5ed;border-radius:16px;overflow:hidden}
.project-fact-grid div{background:#fff;padding:1.1rem}
.project-fact-grid dt{font-size:.72rem;font-weight:850;letter-spacing:.06em;text-transform:uppercase;color:#617386}
.project-fact-grid dd{margin:.45rem 0 0;font-weight:800;color:#102f4c}
.project-scope-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin-top:1rem}
.project-scope-card{padding:1.4rem;border:1px solid #d9e3ec;border-radius:16px;background:#fff}
.project-scope-card.is-unconfirmed{border-color:#efc883;background:#fffaf0}
.project-scope-card h3{margin-top:0}.project-scope-card li+li{margin-top:.45rem}
.project-timeline ol{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:1rem;list-style:none;padding:0;margin:0}
.project-timeline li{display:grid;gap:.45rem;padding:1.25rem;background:#fff;border:1px solid #d9e3ec;border-radius:15px}
.project-timeline time{font-size:.78rem;color:#5f7183;text-transform:uppercase;letter-spacing:.05em;font-weight:800}
.project-related-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.8rem}
.project-related-grid>a{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:94px;padding:1.1rem 1.2rem;border:1px solid #d8e2eb;border-radius:14px;background:#fff;color:#113b60;text-decoration:none;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
.project-related-grid>a:hover,.project-related-grid>a:focus-visible{border-color:#f18b2b;box-shadow:0 12px 26px rgba(15,59,99,.12);transform:translateY(-2px);outline:3px solid rgba(241,139,43,.28);outline-offset:2px}
.project-record-nav{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:1rem;margin-top:1.25rem}
.project-record-nav a{font-weight:800}.project-record-nav a:last-child{text-align:right}
.project-inquiry-callout{display:flex;align-items:center;justify-content:space-between;gap:2rem;margin-top:1.5rem;padding:1.5rem;border-radius:16px;background:#0f3b63;color:#fff}
.project-inquiry-callout h2{margin:.25rem 0}.project-inquiry-callout p{margin:0;color:#dbe9f4}

/* News category filters, cards and pagination. */
.news-filters{display:flex;flex-wrap:wrap;gap:.55rem;margin:1.2rem 0 1.6rem}
.news-filters a{padding:.7rem 1rem;border:1px solid #cfdbe6;border-radius:999px;background:#fff;color:#173b5b;text-decoration:none;font-weight:800}
.news-filters a:hover,.news-filters a:focus-visible,.news-filters a.active{border-color:#f18b2b;background:#f18b2b;color:#fff;outline:3px solid rgba(241,139,43,.25);outline-offset:2px}
.news-grid>a.news-card{display:block;height:100%;color:inherit;text-decoration:none;border-radius:16px}
.news-grid>a.news-card article{height:100%;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
.news-grid>a.news-card:hover article,.news-grid>a.news-card:focus-visible article{transform:translateY(-3px);box-shadow:0 16px 32px rgba(15,59,99,.14);border-color:#f18b2b}
.news-grid>a.news-card:focus-visible{outline:3px solid rgba(241,139,43,.45);outline-offset:3px}
.news-pagination{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:1rem;margin-top:1.5rem;padding-top:1.25rem;border-top:1px solid #d8e2eb}
.news-pagination a{font-weight:800}.news-pagination a:last-child{text-align:right}.news-empty{padding:1rem;border-radius:12px;background:#fff}

/* Article metadata, table of contents and return path. */
.article-meta-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem;margin:1.2rem 0 0}
.article-meta-grid div{padding:.8rem;border-radius:10px;background:#f2f6f9}.article-meta-grid dt{font-size:.7rem;text-transform:uppercase;letter-spacing:.06em;color:#607184;font-weight:850}.article-meta-grid dd{margin:.3rem 0 0;font-weight:750}
.article-toc{margin:0 0 2rem;padding:1.25rem 1.4rem;border:1px solid #d7e1ea;border-radius:14px;background:#fff}
.article-toc h2{margin-top:0}.article-toc ol{margin-bottom:0}.article-toc .toc-level-3{margin-left:1rem}
.article-toc a:focus-visible,.article-return:focus-visible{outline:3px solid rgba(241,139,43,.4);outline-offset:3px}
.article-return{display:inline-block;margin-top:1rem;font-weight:800}
.p1-article-page .breadcrumb{margin-bottom:1.2rem}

/* Contact and source preservation. */
.contact-verification-note,.form-source{margin:1rem 0;padding:1rem;border-radius:12px;border:1px solid #e9c47e;background:#fff8e9;color:#563f16}
.contact-verification-note p{margin:.35rem 0 0}.form-source{display:flex;justify-content:space-between;gap:1rem}.form-source span{overflow-wrap:anywhere}

@media (max-width:900px){
  .project-fact-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .project-scope-grid{grid-template-columns:1fr}
  .project-related-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:640px){
  .project-fact-grid,.project-related-grid,.article-meta-grid{grid-template-columns:1fr}
  .project-record-nav{grid-template-columns:1fr;text-align:left}.project-record-nav a:last-child{text-align:left}
  .project-inquiry-callout{align-items:flex-start;flex-direction:column}
  .news-pagination{grid-template-columns:1fr}.news-pagination a:last-child{text-align:left}
  .form-source{flex-direction:column}
}
