
/* ----------------------------------------------------------------- OPF branding
   Banner and footer lifted from the cairn-standards stack so this archive sits
   alongside OPF's other properties. Assets are bundled under _assets/opf. */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

.opf-bar { background: #43318f url("../_assets/opf/opf-banner-bg.jpg") center / cover no-repeat; }
.opf-bar .wrap { padding-top: 0; padding-bottom: 0; }
.opf-bar-inner { display: flex; align-items: center; gap: 14px; min-height: 84px;
                 color: #fff; text-decoration: none; }
.opf-bar-logo { height: 60px; width: auto; display: block; }
.opf-bar-text { font-weight: 700; font-size: 1.05rem; letter-spacing: 0.01em;
                text-shadow: 0 1px 2px rgba(0,0,0,0.28); }

.opf-footer { background: #343a40; color: #f8f9fa; font-size: 0.9rem; margin-top: 3rem; }
.opf-footer a { color: #ced4da; }
.opf-footer a:hover { color: #fff; }
.opf-footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 28px;
                   padding-top: 44px; padding-bottom: 22px; align-items: start; }
.opf-foot-col p { margin: 0 0 10px; }
.opf-foot-licence { text-align: center; align-self: center; color: #adb5bd; }
.opf-foot-brand { text-align: right; }
.opf-foot-logo { height: 56px; width: auto; margin-bottom: 12px; }
.opf-foot-links { list-style: none; padding: 0; margin: 12px 0 0; display: flex;
                  flex-wrap: wrap; gap: 18px; }
.opf-foot-contact .opf-foot-links { justify-content: flex-start; }
.opf-foot-brand .opf-foot-links { justify-content: flex-end; }
.opf-foot-links a { text-decoration: underline; }
.opf-social { list-style: none; padding: 0; margin: 4px 0 0; display: flex; gap: 16px;
              justify-content: flex-end; }
.opf-social a { display: inline-flex; color: #f8f9fa; }
.opf-social a:hover { color: #d5107c; }
.opf-icon { width: 20px; height: 20px; fill: currentColor; display: block; }
.opf-colophon { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
                padding-top: 16px; padding-bottom: 26px;
                border-top: 1px solid rgba(255,255,255,0.12);
                color: #adb5bd; font-size: 0.82rem; }
.opf-colophon a { color: #ced4da; }

/* ------------------------------------------------------------- archive menu bar */
.wiki-bar { background: #fff; border-bottom: 1px solid #e3e5e8;
            position: sticky; top: 0; z-index: 10; }
.wiki-bar-inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
                  padding-top: 12px; padding-bottom: 10px; }
.wiki-brand { display: inline-flex; align-items: baseline; gap: 10px;
              text-decoration: none; color: inherit; }
.wiki-brand-name { font-weight: 800; font-size: 1.1rem; letter-spacing: 0.02em; }
.wiki-badge { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em;
              text-transform: uppercase; padding: 3px 8px; border-radius: 999px;
              background: #43318f; color: #fff; }
.wiki-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.wiki-nav a { color: #43318f; text-decoration: none; font-weight: 600; font-size: 0.92rem; }
.wiki-nav a:hover { text-decoration: underline; }
.wiki-actions { margin-left: auto; display: flex; gap: 12px; flex-wrap: wrap; }
.wiki-action { font-size: 0.85rem; text-decoration: none; border: 1px solid #d5107c;
               color: #d5107c; border-radius: 999px; padding: 4px 12px; white-space: nowrap; }
.wiki-action:hover { background: #d5107c; color: #fff; }
.wiki-stats { padding-bottom: 10px; color: #6b7280; font-size: 0.8rem; }

.wayback-shell { max-width: 1200px; padding: 2rem 32px; }

@media (max-width: 720px) {
  .opf-footer-grid { grid-template-columns: 1fr; gap: 22px; text-align: center; }
  .opf-foot-brand, .opf-foot-licence { text-align: center; }
  .opf-foot-contact .opf-foot-links,
  .opf-foot-brand .opf-foot-links,
  .opf-social { justify-content: center; }
  .opf-colophon { justify-content: center; text-align: center; }
  .wiki-actions { margin-left: 0; }
  .wrap, .wayback-shell { padding-left: 16px; padding-right: 16px; }
}

@media (prefers-color-scheme: dark) {
  .wiki-bar { background: #14161a; border-bottom-color: #2a2f36; }
  .wiki-nav a { color: #b9a7ff; }
  .wiki-badge { background: #5b45b8; }
  .wiki-action { border-color: #ff5fae; color: #ff5fae; }
  .wiki-action:hover { background: #ff5fae; color: #14161a; }
}

:root { color-scheme: light dark; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
       line-height: 1.6; background: #fff; color: #1a1a1a; }
.wayback-shell { max-width: 62rem; margin: 0 auto; padding: 1.5rem; }
.wayback-notice { background: #fff8e1; border: 1px solid #e6c34a; border-radius: 6px;
                  padding: 0.75rem 1rem; margin-bottom: 1.5rem; font-size: 0.9rem; }
.wayback-notice code { background: rgba(0,0,0,0.06); padding: 0.1rem 0.3rem; border-radius: 3px; }
.wayback-dead { color: #a33; text-decoration: line-through dotted; cursor: not-allowed; }
h1, h2, h3 { line-height: 1.25; }
table { border-collapse: collapse; max-width: 100%; }
table td, table th { border: 1px solid #ccc; padding: 0.35rem 0.6rem; }
pre, code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
pre { background: #f5f5f5; padding: 0.75rem; overflow-x: auto; border-radius: 4px; }
img { max-width: 100%; height: auto; }
.wayback-tags { display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; list-style: none;
                padding: 0; margin: 0.5rem 0 1.5rem; }
.wayback-tags li { margin: 0; }
.wayback-breadcrumbs { font-size: 0.82rem; color: #6b7280; margin-bottom: 0.75rem;
                       display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem; }
.wayback-breadcrumbs a { color: #43318f; text-decoration: none; }
.wayback-breadcrumbs a:hover { text-decoration: underline; }
.wayback-bc-sep { color: #9ca3af; }
.wayback-page-meta { font-size: 0.8rem; color: #6b7280; margin: -0.25rem 0 1rem;
                     border-top: 1px solid #e3e5e8; padding-top: 0.5rem; }
.wayback-page-meta em { font-style: normal; color: #374151; font-weight: 500; }
.wayback-page-labels { list-style: none; padding: 0; margin: 0 0 1rem;
                       display: flex; flex-wrap: wrap; gap: 0.35rem; }
.wayback-page-labels li { margin: 0; }
.label-chip { display: inline-block; background: rgba(67,49,143,0.1); color: #43318f;
              border-radius: 999px; padding: 0.15rem 0.55rem; font-size: 0.78rem;
              text-decoration: none; white-space: nowrap; }
.label-chip:hover { background: rgba(67,49,143,0.2); }
.search-filters { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem;
                  padding: 1rem; background: #f8f9fa; border-radius: 6px;
                  align-items: center; }
.search-filters input[type=search] { flex: 1 1 200px; min-width: 0;
    padding: 0.4rem 0.6rem; border: 1px solid #ccc; border-radius: 4px; font-size: 0.9rem; }
.search-filters select { padding: 0.4rem 0.6rem; border: 1px solid #ccc;
    border-radius: 4px; font-size: 0.9rem; }
#results-count { font-size: 0.85rem; color: #6b7280; margin: 0 0 0.5rem; }
#results-table { width: 100%; }
#results-table th { text-align: left; cursor: pointer; user-select: none;
                    white-space: nowrap; padding-right: 1rem; }
#results-table th:hover { background: rgba(0,0,0,0.04); }
#results-table th::after { content: " "; }
#results-table th.sort-asc::after { content: " ▲"; }
#results-table th.sort-desc::after { content: " ▼"; }
.search-pagination { display: flex; gap: 0.4rem; margin-top: 1rem;
                     flex-wrap: wrap; align-items: center; }
.search-pagination button { padding: 0.3rem 0.7rem; border: 1px solid #ccc;
    border-radius: 4px; cursor: pointer; background: #fff; font-size: 0.85rem; }
.search-pagination button.active { background: #43318f; color: #fff; border-color: #43318f; }
.search-pagination button:hover:not(.active) { background: #f0f0f0; }
.search-pagination .pg-ellipsis { padding: 0.3rem 0.2rem; color: #9ca3af; }
@media (prefers-color-scheme: dark) {
  body { background: #14161a; color: #e6e6e6; }
  /* Neutralise Confluence inline colour styles that would otherwise make text
     invisible: dark body bg + inherited-from-light inline color = unreadable. */
  .wayback-shell [style] { color: inherit !important; background-color: transparent !important; }
  .wayback-notice { background: #2b2410; border-color: #6b5a1f; }
  pre { background: #1e2127; }
  table td, table th { border-color: #3a3f47; }
  .wayback-breadcrumbs { color: #9ca3af; }
  .wayback-breadcrumbs a { color: #b9a7ff; }
  .wayback-bc-sep { color: #6b7280; }
  .wayback-page-meta { color: #9ca3af; border-top-color: #2a2f36; }
  .wayback-page-meta em { color: #d1d5db; }
  .label-chip { background: rgba(67,49,143,0.35); color: #b9a7ff; }
  .label-chip:hover { background: rgba(67,49,143,0.55); }
  .search-filters { background: #1e2127; }
  .search-filters input[type=search], .search-filters select {
      background: #14161a; color: #e6e6e6; border-color: #3a3f47; }
  #results-count { color: #9ca3af; }
  .search-pagination button { background: #1e2127; color: #e6e6e6; border-color: #3a3f47; }
  .search-pagination button.active { background: #5b45b8; border-color: #5b45b8; color: #fff; }
  .search-pagination button:hover:not(.active) { background: #2a2f36; }
}
