/* =============================================================================
   Sponsored Articles (Gyros Protein Technologies migration)
   -----------------------------------------------------------------------------
   All rules are scoped under .gyros-page so nothing here bleeds into the global
   site styles (e.g. the site's own .main-page-header / .media-header-four).

   Token reconciliation: the Claude Design prototypes referenced a design-system
   vocabulary (--fg2, --fg3, --bg-page, --border-default, --border-subtle,
   --bg-sponsor, --font-sans, --shadow-sm, --shadow-card-hover) that this site
   does not define. We map those names to the site's real tokens (declared in
   aps_site.css :root) right here, scoped to the article wrapper, so the
   prototype CSS can be used essentially verbatim.
   ========================================================================== */

.gyros-page {
  /* --- map prototype design-system names -> APS site tokens --- */
  --fg2: var(--aps-text);                       /* body text  #5A5A5A */
  --fg3: #666;                                  /* muted / captions   */
  --bg-page: var(--aps-white);                  /* page background    */
  --border-default: var(--aps-border-gray);     /* default border #ddd */
  --border-subtle: #e9ecef;                     /* subtle border      */
  --bg-sponsor: #f8f9fa;                        /* sidebar surface    */
  --font-sans: var(--font-family);              /* azo-sans-web       */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .08);
  --shadow-card-hover: 0 4px 12px rgba(0, 0, 0, .15);

  /* Match the site-wide .container width so these pages line up with the
     primer and every other content page (was 1240px — visibly narrower). */
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 39px var(--space-md) 64px;
  font-family: var(--font-sans);
  color: var(--fg2);
  background: var(--bg-page);
}

/* --- Article body --- */
.gyros-page .article-body { font-size: 1.05em; line-height: 1.55; color: var(--fg2); }
.gyros-page .article-body p { margin: 0 0 1.05em; }
.gyros-page .article-body ul,
.gyros-page .article-body ol { line-height: 1.55; }
.gyros-page .article-body li { margin-bottom: 0.6em; }
.gyros-page .article-body sup { font-size: 0.7em; }

/* --- Signature APS heading motifs (scoped copies of the prototype) --- */
.gyros-page .main-page-header {
  font-weight: 300; font-size: 2.5rem; line-height: 1.08;
  letter-spacing: 0.01em; padding-left: 14px;
  border-left: 8px solid var(--aps-link); margin: 0 0 8px;
  color: #1a1a1a;
}
.gyros-page .page-eyebrow {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--aps-blue); margin: 0 0 14px;
  padding-left: 16px;
}
.gyros-page .media-header-four {
  font-weight: 600; font-size: 1.3rem; line-height: 1.25;
  letter-spacing: 0.02em; padding-left: 10px;
  border-left: 4px solid var(--aps-blue); color: #1a1a1a;
  margin: 36px 0 12px;
}
.gyros-page .media-header-four:first-child { margin-top: 0; }

/* --- Tabs styled to APS --- */
.gyros-page .aps-tabs { border-bottom: 2px solid var(--aps-blue); gap: 2px; margin-bottom: 29px; flex-wrap: wrap; }
.gyros-page .aps-tabs .nav-link {
  color: var(--fg3); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.05em;
  text-transform: uppercase; border: none; border-bottom: 3px solid transparent;
  border-radius: 4px 4px 0 0; padding: 12px 20px; background: none; white-space: nowrap; transition: all 0.2s ease;
}
.gyros-page .aps-tabs .nav-link:hover { color: var(--aps-blue); }
.gyros-page .aps-tabs .nav-link.active { color: #fff; background: var(--aps-blue); border-bottom-color: var(--aps-blue); }

/* --- Figures --- */
.gyros-page figure { margin: 24px 0; }
.gyros-page figure img { border-radius: 6px; max-width: 100%; height: auto; }
.gyros-page .fig-caption { font-size: 0.85rem; color: var(--fg3); font-style: italic; line-height: 1.4; margin-top: 10px; }
.gyros-page .fig-caption strong { font-style: normal; color: var(--fg2); }

/* --- Pillars (System / Software / Service) --- */
.gyros-page .pillar { display: flex; gap: 22px; align-items: flex-start; padding: 16px 0; border-top: 1px solid var(--border-subtle); }
.gyros-page .pillar:first-of-type { border-top: none; }
.gyros-page .pillar img { width: 56px; height: auto; flex: 0 0 56px; }
.gyros-page .pillar .pillar-label { font-weight: 700; letter-spacing: 0.04em; color: var(--aps-blue); display: block; margin-bottom: 4px; }
.gyros-page .pillar p { margin: 0; }

/* --- Sidebar --- */
.gyros-page .article-sidebar { position: sticky; top: 20px; }
.gyros-page .sidebar-card { background: var(--bg-sponsor); border: 1px solid var(--border-subtle); border-radius: 8px; padding: 24px; }
.gyros-page .sidebar-card img { border-radius: 6px; }
.gyros-page .sidebar-card .media-header-four { margin-top: 28px; }
.gyros-page .sidebar-card .media-header-four:first-child { margin-top: 0; }
.gyros-page .sidebar-card ul { padding-left: 1.1em; }
.gyros-page .sidebar-note { font-size: 0.85rem; color: var(--fg3); margin-top: 18px; }
.gyros-page .kit-line { margin: 0 0 6px; }
.gyros-page .sidebar-logo { display: block; margin: 0 0 8px; }
.gyros-page .sidebar-logo img { max-width: 220px; }

/* --- Download / webinar thumbnails --- */
.gyros-page .download-row { align-items: center; }
.gyros-page .download-thumb { display: block; transition: all 0.2s ease; }
.gyros-page .download-thumb img { border-radius: 6px; box-shadow: var(--shadow-sm); }
.gyros-page .download-thumb:hover img { box-shadow: var(--shadow-card-hover); }
.gyros-page .download-cap { font-size: 0.82rem; color: var(--aps-blue); font-weight: 600; text-align: center; margin-top: 8px; }
.gyros-page .webinar-thumb { display: block; transition: all 0.2s ease; }
.gyros-page .webinar-thumb img { border-radius: 6px; box-shadow: var(--shadow-sm); width: 100%; }
.gyros-page .webinar-thumb:hover img { box-shadow: var(--shadow-card-hover); }

/* --- Links --- */
.gyros-page .external-link { color: var(--aps-link); font-weight: 500; }
.gyros-page .external-link:hover { color: var(--aps-link-hover); }
.gyros-page hr.blue { border: none; border-top: 1px solid rgba(58, 83, 164, 0.85); margin: 32px 0; opacity: 1; }

/* --- Local partner nav rail (left column) --- */
.gyros-page .gyros-local-nav { position: sticky; top: 20px; }
.gyros-page .gyros-nav-heading {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fg3); margin: 0 0 10px; padding-left: 2px;
}
.gyros-page .gyros-nav-list { display: flex; flex-direction: column; gap: 0.5rem; }
.gyros-page .gyros-nav-btn {
  display: block; padding: 0.7rem 0.8rem; background: #fff;
  border: 2px solid #dee2e6; border-radius: 6px; text-decoration: none;
  color: var(--aps-blue); font-size: 0.85rem; font-weight: 600; line-height: 1.25;
  transition: all 0.2s ease;
}
.gyros-page .gyros-nav-btn:hover { background: #e9ecef; border-color: var(--aps-blue); color: var(--aps-blue); }
.gyros-page .gyros-nav-btn.active { background: var(--aps-blue); border-color: var(--aps-blue); color: #fff; }

/* --- Responsive --- */
@media (max-width: 991.98px) {
  .gyros-page .article-sidebar { position: static; top: auto; }
  .gyros-page .gyros-local-nav { position: static; top: auto; margin-bottom: 8px; }
  .gyros-page .gyros-nav-list { flex-direction: row; flex-wrap: wrap; }
  .gyros-page .gyros-nav-btn { flex: 1 1 auto; text-align: center; }
}
