/* -------------------------
   Base (clean Microsoft look)
-------------------------- */
:root{
  --ms-navy: #001f5b;
  --cyan: #00bcd4;      /* Level 1 button color like your pic */
  --border: #e6e6e6;
  --text: #111;
  --muted: #666;
  --gutter: #2f2f2f;    /* viewer side bars */
}

* { box-sizing: border-box; }

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background-color: #fff;
  color: var(--text);
  margin: 0;
}

/* -------------------------
   Sticky Header
-------------------------- */
.header {
  position: sticky;
  top: 0;
  background-color: #fff;
  text-align: center;
  padding: 10px 0 12px;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
}

/* Logo */
.logo {
  width: 118px;
  display: block;
  margin: 4px auto 6px;
}

/* Title & subtitle */
.title {
  font-weight: 700;
  font-size: 22px;
  margin: 0 0 2px;
}

.subtitle {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 8px;
}

/* Source line */
.source {
  font-size: 12px;
  color: #444;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.harver-logo {
  width: 46px;
  height: auto;
  vertical-align: middle;
}

/* -------------------------
   Buttons under Source
-------------------------- */
.button-group {
  display: inline-flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 2px;
}

/* Remove underline in ALL states (scoped) */
.button-group a,
.button-group a:link,
.button-group a:visited,
.button-group a:hover,
.button-group a:active {
  text-decoration: none !important;
}

/* Button visuals: compact, flat pill */
.btn {
  font-weight: 700;
  font-size: 12px;
  padding: 8px 14px;
  border-radius: 6px;
  display: inline-block;
  border: 1px solid rgba(0,0,0,0.20);
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.18);
  cursor: pointer;
  line-height: 1;
}

.level1 {
  background-color: var(--cyan);
  color: #000;
}

.level2 {
  background-color: var(--ms-navy);
  color: #fff;
}

.btn:hover { filter: brightness(1.05); }

.btn:focus-visible {
  outline: 3px solid #ffb900;
  outline-offset: 2px;
}

/* -------------------------
   Viewer area (light gutters)
   Hidden by default to match the second image
-------------------------- */
.viewer-shell {
  display: grid;
  grid-template-columns: minmax(12px, 1fr) minmax(680px, 1000px) minmax(12px, 1fr);
  background:
    linear-gradient(var(--gutter), var(--gutter)) left / 1fr 100% no-repeat,
    linear-gradient(var(--gutter), var(--gutter)) right / 1fr 100% no-repeat,
    #fff;
}

.viewer {
  grid-column: 2;
}

.pdf-container {
  background: #fff;
  width: 100%;
  height: calc(100vh - 140px);  /* space for sticky header */
}

.pdf-container embed {
  width: 100%;
  height: 100%;
  border: none;
  background-color: #fff;
}

.hidden { display: none; }

/* -------------------------
   Responsive tweaks
-------------------------- */
@media (max-width: 900px) {
  .logo { width: 108px; }
  .title { font-size: 20px; }
  .viewer-shell {
    grid-template-columns: 8px 1fr 8px; /* slimmer gutters */
  }
  .pdf-container { height: calc(100vh - 150px); }
}

@media (max-width: 480px) {
  .logo { width: 96px; }
  .title { font-size: 18px; }
  .harver-logo { width: 40px; }
  .btn { font-size: 12px; padding: 8px 12px; border-radius: 6px; }
}
