/* Jack Fishman — shared styles. Mobile-first, accessible. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #1e293b;
  background: #f1f5f9;
  -webkit-font-smoothing: antialiased;
}

/* Focus for accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #0369a1;
  outline-offset: 2px;
}

/* Layout */
.page {
  min-height: 100vh;
  padding: 1.25rem 1rem 2rem;
}
@media (min-width: 640px) {
  .page {
    padding: 2rem 1.5rem 3rem;
  }
}

.container {
  max-width: 44rem;
  margin: 0 auto;
  background: #fff;
  padding: 1.5rem 1.25rem 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
@media (min-width: 640px) {
  .container {
    padding: 2rem 2.25rem 2.5rem;
  }
}

/* Header */
.header {
  text-align: center;
  padding-bottom: 1.5rem;
  margin-bottom: 1.25rem;
  border-bottom: 2px solid #e8eaed;
}
.header h1 {
  margin: 0 0 0.25em;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1a202c;
}
@media (min-width: 640px) {
  .header h1 {
    font-size: 1.875rem;
  }
}
.tagline {
  margin: 0 0 0.5em;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #475569;
}
.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: center;
  font-size: 0.875rem;
  color: #64748b;
}
.header .btn {
  margin-top: 1rem;
}
.contact a {
  color: #0369a1;
  text-decoration: none;
}
.contact a:hover {
  text-decoration: underline;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  color: #fff;
  background: #0369a1;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn:hover {
  background: #0284c7;
}
.btn-secondary {
  color: #0369a1;
  background: #e0f2fe;
}
.btn-secondary:hover {
  background: #bae6fd;
}

/* Cards */
.card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.card:last-child {
  margin-bottom: 0;
}
.card h2 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: #334155;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 0.5rem;
}
@media (min-width: 640px) {
  .card h2 {
    font-size: 1.0625rem;
  }
}

/* Definition list for credential rows */
.dl-grid {
  display: grid;
  gap: 0.5rem 1rem;
  margin: 0;
}
@media (min-width: 480px) {
  .dl-grid {
    grid-template-columns: auto 1fr;
  }
}
.dl-grid dt {
  margin: 0;
  font-weight: 600;
  color: #475569;
  font-size: 0.875rem;
}
.dl-grid dd {
  margin: 0;
  font-size: 0.9375rem;
  color: #1e293b;
}
@media (min-width: 480px) {
  .dl-grid dd {
    text-align: right;
  }
}

/* Summary text */
.summary {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #334155;
  margin: 0 0 1.5rem;
}

/* Skills */
.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin: 0;
  list-style: none;
  padding: 0;
}
.skills li {
  font-size: 0.8125rem;
  padding: 0.4rem 0.75rem;
  background: #f1f5f9;
  border-radius: 6px;
  color: #475569;
}

/* Verify tiles */
.verify-tiles {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}
@media (min-width: 480px) {
  .verify-tiles {
    grid-template-columns: 1fr 1fr;
  }
}
.verify-tile {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.25rem;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.verify-tile:hover {
  border-color: #94a3b8;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.verify-tile img {
  width: 100%;
  max-width: 120px;
  height: 72px;
  object-fit: contain;
  margin: 0 auto 0.75rem;
  display: block;
}
.verify-tile .tile-label {
  font-weight: 600;
  font-size: 0.9375rem;
  color: #1e293b;
  margin-bottom: 0.25rem;
}
.verify-tile .tile-helper {
  font-size: 0.8125rem;
  color: #64748b;
}

/* Verify tip (micro instruction) */
.verify-tip {
  font-size: 0.875rem;
  color: #475569;
  margin: 0 0 1rem;
  line-height: 1.5;
}

/* Copy icon button */
.btn-copy-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.35rem;
  padding: 0.2rem;
  color: #64748b;
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  vertical-align: middle;
}
.btn-copy-icon:hover {
  color: #0369a1;
  background: #f1f5f9;
}
.btn-copy-icon:focus-visible {
  outline: 2px solid #0369a1;
  outline-offset: 2px;
}
.btn-copy-icon.copied {
  color: #15803d;
}
.btn-copy-icon svg {
  display: block;
}

/* Credentials page actions */
.cred-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}
.btn-print {
  margin-left: auto;
}

/* Credentials footer (combined: last updated, disclaimer, privacy) */
.credentials-footer {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 1.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e2e8f0;
  text-align: center;
  line-height: 1.5;
}


/* Nav / back link */
.back-link {
  display: inline-block;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  color: #0369a1;
  text-decoration: none;
}
.back-link:hover {
  text-decoration: underline;
}

/* Section */
.section {
  margin-top: 1.75rem;
}
.section:first-of-type {
  margin-top: 0;
}

/* Education & Experience */
.section h2 {
  margin: 0 0 0.75rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #334155;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 0.5rem;
  letter-spacing: 0.01em;
}
.edu-item,
.exp-item {
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}
.edu-item:last-child,
.exp-item:last-child {
  margin-bottom: 0;
}
.edu-title,
.exp-title {
  font-weight: 600;
  color: #1e293b;
}
.edu-meta,
.exp-meta {
  font-size: 0.8125rem;
  color: #64748b;
  margin-top: 0.2rem;
}

/* Print-only resume block (credentials page): hidden on screen, shown in print/PDF */
.print-resume-block {
  display: none;
}
.print-resume-divider {
  display: none;
}

/* Print (credentials): full resume + credentials in one PDF */
@media print {
  html {
    font-size: 120%;
  }
  body {
    background: #fff;
  }
  .page {
    padding: 0;
    max-width: none;
  }
  .container {
    max-width: none;
  }
  .print-resume-block {
    display: block !important;
    margin-bottom: 1rem;
  }
  .print-resume-block .header {
    border-bottom: 2px solid #e2e8f0;
  }
  .print-resume-block .contact a {
    color: #0369a1;
  }
  .print-resume-divider,
  .cred-page-header {
    display: none !important;
  }
  .cred-actions,
  .back-link,
  .btn,
  .btn-copy-icon {
    display: none !important;
  }
  .card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #cbd5e1;
  }
  .verify-tiles {
    break-inside: avoid;
    gap: 0.5rem;
  }
  .verify-tile {
    padding: 0.5rem;
    border: 1px solid #cbd5e1;
  }
  .verify-tile img {
    max-width: 64px;
    height: 40px;
  }
  .tile-label,
  .tile-helper {
    font-size: 0.75rem;
  }
  .verify-online-heading,
  .verify-tip {
    display: none !important;
  }
  .print-hide-text {
    display: none !important;
  }
  .credentials-footer {
    margin-top: 1rem;
    font-size: 0.7rem;
  }
}
