/* Trailhead Day Hikes — demonstration site stylesheet
 * Carried over from site-template/style.css and adapted.
 * No external dependencies, no web fonts, mobile-first.
 */

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: #1f2328;
  background: #ffffff;
}

img, svg { max-width: 100%; height: auto; display: block; }

hr { border: 0; border-top: 1px solid #e6e8eb; margin: 2rem 0; }

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Demo notice — visible on every page */
.demo-notice {
  background: #fff8e1;
  border-left: 4px solid #d4a017;
  padding: 12px 16px;
  margin: 16px 0;
  font-size: 0.92rem;
  border-radius: 0 4px 4px 0;
}

.demo-notice code { font-size: 0.85em; }

/* Header */
site-header { display: block; }

.site-header {
  border-bottom: 1px solid #e6e8eb;
  padding: 24px 0;
  background: #fafbfc;
}

.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.site-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1f2328;
  text-decoration: none;
  display: inline-flex;
  flex-direction: column;
  line-height: 1.1;
}

.site-tagline {
  font-size: 0.82rem;
  font-weight: 400;
  color: #57606a;
  margin-top: 4px;
}

.site-nav a {
  margin-left: 16px;
  color: #0a5cad;
  text-decoration: none;
  font-size: 0.95rem;
}
.site-nav a:first-child { margin-left: 0; }
.site-nav a[aria-current="page"] {
  color: #1f2328;
  font-weight: 600;
  border-bottom: 2px solid #0a5cad;
}

/* Main + typography */
main { padding: 32px 0 48px; }

h1, h2, h3, h4 { line-height: 1.25; color: #1f2328; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: 2rem; font-weight: 700; margin-top: 0.2em; }
h2 { font-size: 1.45rem; font-weight: 700; margin-top: 1.6em; }
h3 { font-size: 1.15rem; font-weight: 600; margin-top: 1.4em; }
p  { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
li { margin-bottom: 0.35em; }

a { color: #0a5cad; }
a:hover { color: #084077; }

blockquote {
  border-left: 4px solid #d0d7de;
  padding: 4px 14px;
  color: #57606a;
  margin: 1em 0;
  background: #f6f8fa;
  border-radius: 0 4px 4px 0;
}

code, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}
code { background: #f6f8fa; padding: 0.1em 0.35em; border-radius: 4px; }
pre {
  background: #f6f8fa;
  padding: 12px 16px;
  border-radius: 4px;
  overflow-x: auto;
}

/* Buttons */
.btn {
  display: inline-block;
  background: #0a5cad;
  color: #ffffff !important;
  padding: 10px 18px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.btn:hover { background: #084077; }

/* Cards on home */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin: 24px 0;
}
@media (min-width: 640px) {
  .cards { grid-template-columns: 1fr 1fr; }
}
.card {
  border: 1px solid #e6e8eb;
  border-radius: 6px;
  padding: 18px;
  background: #fafbfc;
}
.card h2 { font-size: 1.1rem; margin-top: 0; }
.card a { text-decoration: none; }
.card a:hover h2 { color: #0a5cad; }

/* Article */
.article-header { margin-bottom: 1.5em; }
.article .meta { color: #57606a; font-size: 0.9rem; }
.article-footer { margin-top: 2em; color: #57606a; font-size: 0.88rem; }

.lede { font-size: 1.1rem; color: #1f2328; }

.breadcrumbs { color: #57606a; font-size: 0.88rem; margin: 8px 0 20px; }
.breadcrumbs a { color: #57606a; }

.hero { padding: 12px 0 8px; }
.hero h1 { margin-top: 0; }

.who-for ul { padding-left: 1.4em; }

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  font-size: 0.95rem;
}
th, td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid #e6e8eb;
  vertical-align: top;
}
th { background: #f6f8fa; font-weight: 600; }

/* Disclosure blocks */
.disclosure-inline,
.disclosure-block {
  background: #f6f8fa;
  border: 1px solid #d0d7de;
  border-left: 4px solid #0a5cad;
  padding: 12px 16px;
  border-radius: 0 4px 4px 0;
  margin: 1.5em 0;
  font-size: 0.95rem;
}

/* Recommendation cards */
.recommendation-card {
  border: 1px solid #d0d7de;
  border-left: 4px solid #0a5cad;
  border-radius: 0 6px 6px 0;
  padding: 14px 18px;
  margin: 14px 0;
  background: #ffffff;
}
.recommendation-card h3 { margin-top: 0; }

/* Footer */
site-footer { display: block; }

.site-footer {
  border-top: 1px solid #e6e8eb;
  background: #fafbfc;
  padding: 24px 0;
  color: #57606a;
  font-size: 0.88rem;
}
.site-footer a { color: #57606a; }
.site-footer p { margin: 6px 0; }
.sample-date { font-style: italic; }
