* { box-sizing: border-box; }

:root {
  --yar-blue: #0080ff;
  --yar-blue-dark: #0066cc;
  --bg: #f4f6f8;
  --surface: #ffffff;
  --text: #111827;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
  --radius: 16px;
}

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--yar-blue); }

.site-header {
  background: linear-gradient(135deg, var(--yar-blue) 0%, #0066dd 100%);
  color: #fff;
  padding: 1.5rem 1.25rem 2rem;
}

.site-header-inner,
.page-shell {
  max-width: 960px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand p {
  margin: 0.15rem 0 0;
  opacity: 0.9;
  font-size: 0.95rem;
}

.page-shell {
  padding: 0 1.25rem 2.5rem;
  margin-top: -1.25rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-body {
  padding: 1.5rem;
}

.doc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.25rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.doc-title {
  margin: 0;
  font-size: 1.65rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.doc-lede {
  margin: 0.5rem 0 0;
  color: var(--text-muted);
  max-width: 36rem;
}

.last-updated {
  margin: 0;
  text-align: right;
  flex-shrink: 0;
}

.last-updated time {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.75rem 1.1rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--yar-blue);
  color: #fff;
}

.btn-primary:hover {
  background: var(--yar-blue-dark);
}

.btn-secondary {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: #f9fafb;
}

.viewer {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #f9fafb;
}

.viewer iframe,
.viewer object {
  display: block;
  width: 100%;
  height: min(78vh, 920px);
  min-height: 520px;
  border: 0;
  background: #fff;
}

.footer-contact {
  margin: 1.25rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text-muted);
}

.footer-contact a {
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 720px) {
  .doc-header {
    flex-direction: column;
  }

  .last-updated {
    text-align: left;
    min-width: 0;
  }

  .viewer iframe,
  .viewer object {
    min-height: 60vh;
  }
}
