
:root{--navy:#173f5f;--ocean:#0798b8;--cyan:#31b8df;--orange:#ec8933;--purple:#866dab;--ink:#263746;--line:#d8e7ec}*{box-sizing:border-box}body{margin:0;font-family:Arial,Helvetica,sans-serif;color:var(--ink);background:linear-gradient(180deg,#eef7f9 0,#f8fbfc 330px,#f4f8f9 100%);line-height:1.6}.wrap{max-width:1100px;margin:auto;padding:0 20px}.site-header{background:#fff;padding:22px 0 0;box-shadow:0 2px 14px #173f5f12}.brand-row{display:flex;align-items:center;gap:34px}.ioos-logo{width:min(390px,42%);height:auto}.site-header h1{margin:.1rem 0;color:var(--navy);font-size:2.05rem}.eyebrow{margin:0;color:var(--ocean);font-size:.79rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.intro{margin:.25rem 0;color:#5d7380}.topnav{display:flex;gap:22px;padding-top:14px;padding-bottom:10px}.topnav a{font-weight:700;color:var(--navy);text-decoration:none}.accent-line{height:6px;background:linear-gradient(90deg,var(--orange) 0 18%,var(--purple) 18% 36%,var(--ocean) 36% 72%,var(--cyan) 72%)}.section-heading{display:flex;align-items:end;justify-content:space-between}.section-title{flex:1;margin:42px 0 20px;padding-bottom:8px;border-bottom:3px solid var(--ocean);color:var(--navy)}.count{padding:0 0 28px 18px;color:#677e89;font-weight:700}.cards{display:grid;gap:26px}.doi-card{background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 8px 28px #173f5f12;overflow:hidden}.card-kind{padding:10px 24px;background:#e9f6f8;color:#387184;font-size:.8rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;border-top:4px solid var(--orange)}.card-body{padding:25px}.card-body h3{font-size:1.45rem;color:var(--navy);margin:0 0 12px}.desc{color:#465d6b}.metadata{display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--line);border-radius:9px;overflow:hidden;margin:24px 0}.metadata>div{padding:13px 16px;border-bottom:1px solid #e4edef;overflow-wrap:anywhere}.metadata>div:nth-child(odd){border-right:1px solid #e4edef}.metadata span{display:block;color:#708591;font-size:.75rem;font-weight:800;letter-spacing:.05em;text-transform:uppercase}.metadata a,.citation a{color:#087f9b}.metadata .doi{background:#eef9fb;font-weight:700}.actions{display:flex;gap:10px;flex-wrap:wrap;margin:22px 0}.btn{padding:9px 16px;border:1px solid #cfe0e5;border-radius:7px;color:var(--navy);background:#f3f7f8;text-decoration:none;font-weight:700}.btn.primary{background:var(--ocean);color:#fff;border-color:var(--ocean)}.citation{border-left:4px solid var(--orange);background:#f8fafb;padding:15px 18px}.citation p{margin:5px 0}.page-switch{display:flex;justify-content:flex-end;margin:30px 0 -20px}.page-switch a{font-weight:700;color:#087f9b}.welcome{max-width:860px;margin:48px 0 30px;background:#fff;padding:30px;border:1px solid var(--line);border-radius:14px;box-shadow:0 8px 28px #173f5f10}.welcome h2{color:var(--navy);margin:.2rem 0}.portal-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-bottom:56px}.portal-card{display:block;background:#fff;border:1px solid var(--line);border-top:5px solid var(--ocean);border-radius:14px;padding:28px;text-decoration:none;color:var(--ink);box-shadow:0 8px 28px #173f5f10}.portal-card.report{border-top-color:var(--orange)}.portal-card h3{font-size:1.45rem;color:var(--navy);margin:.2rem 0}.portal-label{font-size:.75rem;font-weight:800;letter-spacing:.08em;color:var(--ocean)}.portal-card b{color:#087f9b}footer{margin-top:55px;background:#fff;color:#526a78;padding:30px 0;font-size:.88rem;border-top:6px solid var(--ocean)}footer a{color:#087f9b}footer strong{color:var(--navy)}.partners{display:grid;grid-template-columns:minmax(200px,32%) 1fr;align-items:center;gap:48px;padding:8px 0 26px;margin-bottom:20px;border-bottom:1px solid var(--line)}.itineris-logo,.institutional-logos{width:100%;height:auto;object-fit:contain}.institutional-logos{max-height:135px}.contact{border-top:1px solid var(--line);padding-top:14px}@media(max-width:700px){.brand-row{flex-direction:column;align-items:flex-start;gap:12px}.ioos-logo{width:min(360px,85%)}.site-header h1{font-size:1.65rem}.metadata{grid-template-columns:1fr}.metadata>div:nth-child(odd){border-right:0}.actions{flex-direction:column}.btn{text-align:center}.card-body{padding:19px}.partners,.portal-grid{grid-template-columns:1fr}.topnav{flex-wrap:wrap}.section-heading{display:block}.count{display:block;padding:0 0 8px}}


/* IT-IOOS aligned header v2 */
.site-header{padding:0;background:#fff;box-shadow:0 4px 16px rgba(23,63,95,.07)}
.site-header .brand-row{
  max-width:1160px;
  min-height:158px;
  display:grid;
  grid-template-columns:420px minmax(0,1fr);
  align-items:center;
  column-gap:42px;
  padding-top:18px;
  padding-bottom:18px;
}
.site-header .brand-link,
.site-header .brand-row>a{
  width:100%;
  height:100%;
  min-height:120px;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  line-height:0;
}
.site-header .ioos-logo{
  display:block;
  width:410px;
  max-width:100%;
  height:auto;
  max-height:118px;
  object-fit:contain;
}
.site-header .brand-row>div{
  min-width:0;
  align-self:center;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:0;
}
.site-header .eyebrow{margin:0 0 9px;color:#0098bb;font-size:.72rem;line-height:1;font-weight:800;letter-spacing:.08em;text-transform:uppercase;white-space:nowrap}
.site-header h1{margin:0 0 12px;color:#173f5f;font-size:1.95rem;line-height:1.08;font-weight:750;white-space:nowrap}
.site-header .intro{margin:0;color:#536b7a;font-size:.88rem;line-height:1.2;white-space:nowrap}
.site-header .accent-line{height:6px;margin:0;background:linear-gradient(90deg,#ec8933 0 15%,#866dab 15% 33.5%,#0798b8 33.5% 70%,#31b8df 70% 100%)}
@media(max-width:900px){
 .site-header .brand-row{grid-template-columns:300px minmax(0,1fr);column-gap:26px;min-height:126px;padding-top:14px;padding-bottom:14px}
 .site-header .brand-link,.site-header .brand-row>a{min-height:92px}
 .site-header .ioos-logo{width:295px;max-height:90px}
 .site-header h1{font-size:1.48rem}
 .site-header .intro{font-size:.78rem;overflow:hidden;text-overflow:ellipsis}
}
@media(max-width:680px){
 .site-header .brand-row{grid-template-columns:160px minmax(0,1fr);column-gap:16px;min-height:94px;padding-top:10px;padding-bottom:10px}
 .site-header .brand-link,.site-header .brand-row>a{min-height:66px}
 .site-header .ioos-logo{width:158px;max-height:64px}
 .site-header .eyebrow{font-size:.55rem;margin-bottom:5px;overflow:hidden;text-overflow:ellipsis}
 .site-header h1{font-size:1rem;margin-bottom:6px;overflow:hidden;text-overflow:ellipsis}
 .site-header .intro{font-size:.65rem;overflow:hidden;text-overflow:ellipsis}
 .site-header .accent-line{height:4px}
}
@media(max-width:420px){
 .site-header .brand-row{grid-template-columns:115px minmax(0,1fr);column-gap:10px}
 .site-header .ioos-logo{width:112px}
 .site-header .eyebrow{display:none}
 .site-header h1{font-size:.88rem}
 .site-header .intro{font-size:.59rem}
}

/* ========================================================================== 
   DOI INDIVIDUAL RESOURCE PAGES
   Extension for /report/*.html and /dataset/*.html
   The original project styles above are preserved unchanged.
   ========================================================================== */

.detail-page {
  padding: 30px 0 52px;
}

.detail-page .breadcrumbs {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.detail-page .breadcrumbs a {
  color: var(--ocean);
  text-decoration: none;
}

.detail-page .breadcrumbs a:hover,
.detail-page .breadcrumbs a:focus-visible {
  text-decoration: underline;
}

.detail-page .resource-hero {
  padding: clamp(24px, 5vw, 44px);
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(23, 63, 95, 0.98), rgba(7, 152, 184, 0.94));
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(23, 63, 95, 0.16);
}

.detail-page .resource-hero[data-resource-type="report"] {
  border-top: 6px solid var(--orange);
}

.detail-page .resource-hero[data-resource-type="dataset"] {
  border-top: 6px solid var(--purple);
}

.detail-page .resource-hero .eyebrow,
.detail-page .resource-hero h1,
.detail-page .resource-hero a {
  color: #fff;
}

.detail-page .resource-hero h1 {
  max-width: 980px;
  margin: 0.2rem 0 0.75rem;
  font-size: clamp(1.7rem, 4vw, 2.65rem);
  line-height: 1.15;
}

.detail-page .resource-hero .resource-doi {
  margin: 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.detail-page .resource-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 24px;
  margin-top: 24px;
}

.detail-page .resource-column {
  min-width: 0;
}

.detail-page .resource-panel {
  margin-bottom: 24px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 7px 20px rgba(23, 63, 95, 0.08);
}

.detail-page .resource-panel:last-child {
  margin-bottom: 0;
}

.detail-page .resource-panel h2 {
  margin-top: 0;
  color: var(--navy);
  font-size: 1.25rem;
}

.detail-page .resource-facts {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  gap: 10px 16px;
  margin: 0;
}

.detail-page .resource-facts dt {
  color: var(--navy);
  font-weight: 800;
}

.detail-page .resource-facts dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.detail-page .author-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-page .author-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.detail-page .author-list li:first-child {
  padding-top: 0;
}

.detail-page .author-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.detail-page .map-figure {
  margin: 0;
}

.detail-page .map-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.detail-page .map-figure figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

.detail-page .coordinates {
  margin: 14px 0 0;
  padding: 11px;
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9rem;
  background: var(--soft);
  border-radius: 8px;
}

.detail-page .citation-box {
  padding: 16px;
  overflow-wrap: anywhere;
  background: rgba(49, 184, 223, 0.10);
  border-left: 5px solid var(--cyan);
  border-radius: 8px;
}

.detail-page .resource-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.detail-page .resource-actions .btn-primary {
  color: #fff;
  background: var(--ocean);
  border-color: var(--ocean);
}

.detail-page .resource-actions .btn-primary:hover,
.detail-page .resource-actions .btn-primary:focus-visible {
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
}

.detail-page .resource-note {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.detail-page a:focus-visible,
.detail-page .btn:focus-visible {
  outline: 3px solid rgba(49, 184, 223, 0.45);
  outline-offset: 3px;
}

@media (max-width: 800px) {
  .detail-page .resource-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .detail-page {
    padding-top: 20px;
  }

  .detail-page .resource-panel {
    padding: 19px;
  }

  .detail-page .resource-facts {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .detail-page .resource-facts dd {
    margin-bottom: 10px;
  }

  .detail-page .resource-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .detail-page .resource-actions .btn {
    width: 100%;
    text-align: center;
  }
}


/* DOI card refinements 2026-11 */
.detail-page .resource-hero .resource-doi a,
.detail-page .resource-hero .resource-doi a:visited {
  color: #ffe08a;
  text-decoration-color: rgba(255,224,138,.7);
  text-underline-offset: .18em;
}
.detail-page .resource-hero .resource-doi a:hover,
.detail-page .resource-hero .resource-doi a:focus-visible { color:#fff3bf; }
.detail-page .metadata-groups { display:grid; gap:16px; }
.detail-page .metadata-group { padding:16px; background:var(--soft); border:1px solid var(--line); border-radius:10px; }
.detail-page .metadata-group h3 { margin:0 0 12px; color:var(--navy); font-size:1rem; }
.detail-page .author-card { display:grid; grid-template-columns:minmax(150px,.45fr) 1fr; gap:16px; padding:16px 0; border-bottom:1px solid var(--line); }
.detail-page .author-card:last-child { border-bottom:0; }
.detail-page .author-name { color:var(--navy); font-weight:800; }
.detail-page .author-role { color:var(--muted); font-size:.88rem; }
.detail-page .affiliation-name { font-weight:700; }
.detail-page .identifier-list { margin:.35rem 0 0; padding-left:1rem; font-size:.88rem; color:var(--muted); }
.detail-page .bbox-grid { display:grid; grid-template-columns:1fr 1fr; gap:7px; margin-top:12px; }
.detail-page .bbox-grid span { padding:8px; background:var(--soft); border-radius:7px; font-family:ui-monospace,monospace; font-size:.82rem; }
.detail-page .map-legend { display:flex; flex-wrap:wrap; gap:12px; margin-top:10px; color:var(--muted); font-size:.82rem; }
.detail-page .legend-box { display:inline-block; width:16px; height:10px; margin-right:5px; border:2px solid #ff3b30; vertical-align:middle; }
@media(max-width:560px){.detail-page .author-card{grid-template-columns:1fr}.detail-page .bbox-grid{grid-template-columns:1fr}}


/* Layout refinement: map below citation and PDF page-one preview */
.detail-page .resource-map-section { margin-top:24px; }
.detail-page .report-preview-link { display:block; position:relative; color:inherit; text-decoration:none; }
.detail-page .report-preview-link img { display:block; width:100%; height:auto; border:1px solid var(--line); border-radius:10px; box-shadow:0 8px 22px rgba(23,63,95,.14); transition:transform .18s ease,box-shadow .18s ease; }
.detail-page .report-preview-link:hover img,.detail-page .report-preview-link:focus-visible img { transform:translateY(-2px); box-shadow:0 12px 28px rgba(23,63,95,.22); }
.detail-page .preview-action { display:block; margin-top:10px; color:var(--ocean); font-weight:800; text-align:center; }
.detail-page .report-preview-note { margin:.7rem 0 0; color:var(--muted); font-size:.82rem; }

/* Fixed report preview frame: stable for PNG files of any dimensions */
.detail-page .report-preview-panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  height: 540px;
  min-height: 540px;
  max-height: 540px;
  overflow: hidden;
}
.detail-page .report-preview-panel > h2 {
  flex: 0 0 auto;
  margin: 0 0 14px;
}
.detail-page .report-preview-link {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 460px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #eef3f5;
  color: inherit;
  text-decoration: none;
}
.detail-page .report-preview-link .report-preview-image,
.detail-page .report-preview-panel .preview {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  box-shadow: none;
  transform: none;
}
.detail-page .report-preview-link:hover .report-preview-image,
.detail-page .report-preview-link:focus-visible .report-preview-image {
  transform: none;
  box-shadow: none;
}
.detail-page .report-preview-link:focus-visible {
  outline: 3px solid rgba(49,184,223,.45);
  outline-offset: 3px;
}
@media (max-width: 800px) {
  .detail-page .report-preview-panel {
    height: 500px;
    min-height: 500px;
    max-height: 500px;
  }
  .detail-page .report-preview-link {
    height: 420px;
  }
}
@media (max-width: 560px) {
  .detail-page .report-preview-panel {
    height: 440px;
    min-height: 440px;
    max-height: 440px;
  }
  .detail-page .report-preview-link {
    height: 360px;
    padding: 8px;
  }
}
