/* Page styles for https://earthgrid.com/deg (loaded by grid.php). */
/* ---------------------------------------------------------------------------
   Bob Heyman page. Same system as why.php and viktor.php, prefixed .bh-
--------------------------------------------------------------------------- */
.bh-wrap { max-width: 940px; margin: 0 auto; padding: 10px 10px 30px; color: #f2f2f2; text-align: left; }
.bh-wrap p { color: #e8e8e8; font-size: 17px; line-height: 1.7; }
.bh-wrap a { color: #ffc27a; }
.bh-wrap strong { color: #fff; }

/* Hero */
.bh-hero { position: relative; text-align: center; padding: 26px 0 30px; overflow: hidden; }
.bh-tri-field { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .22; pointer-events: none; }
.bh-hero > *:not(svg) { position: relative; }
.bh-kicker { display: inline-block; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: #ffb35c; font-weight: bold; margin-bottom: 10px; }
.bh-hero h1 { color: #fff; font-size: 58px; line-height: 1.05; margin: 0 0 14px; letter-spacing: 6px; text-transform: uppercase; font-weight: bold; }
.bh-hero p { font-size: 21px; line-height: 1.45; color: #ddedfb; margin: 0 auto; max-width: 680px; }
.bh-sig { display: block; margin-top: 14px; font-size: 15px; color: #c9d4dd; font-style: italic; }
.bh-portrait {
  display: block; width: 168px; height: 168px; margin: 0 auto 16px; border-radius: 50%;
  object-fit: cover; border: 3px solid #f0932b; box-shadow: 0 8px 24px rgba(0,0,0,.6);
}

/* Jump cards */
.bh-pick { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 6px 0 10px; }
.bh-card {
  flex: 0 1 calc(25% - 11px); min-width: 150px; box-sizing: border-box; display: block;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px; padding: 18px 16px 16px; text-decoration: none; transition: all .15s ease;
}
.bh-card:hover, .bh-card:focus { background: rgba(240,147,43,0.16); border-color: #f0932b; transform: translateY(-3px); text-decoration: none; }
.bh-num {
  display: inline-block; width: 0; height: 0; margin-bottom: 12px; position: relative;
  border-left: 15px solid transparent; border-right: 15px solid transparent; border-bottom: 26px solid #f0932b;
}
.bh-num span { position: absolute; left: -5px; top: 9px; font-size: 12px; font-weight: bold; color: #111; width: 10px; text-align: center; }
.bh-card-title { display: block; font-size: 18px; font-weight: bold; line-height: 1.25; color: #fff; margin-bottom: 6px; }
.bh-card-note  { display: block; font-size: 13px; line-height: 1.5; color: #c9d4dd; }

/* Sections */
.bh-sec { padding: 34px 0 10px; border-top: 1px solid rgba(255,255,255,0.14); margin-top: 30px; scroll-margin-top: 20px; }
.bh-eyebrow { display: block; font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; color: #ffb35c; font-weight: bold; margin-bottom: 8px; }
.bh-sec h2 { color: #fff; font-size: 32px; line-height: 1.2; margin: 0 0 18px; font-weight: bold; }
.bh-sec h3 { color: #fff; font-size: 22px; margin: 22px 0 8px; }

/* The 3 a.m. call, told like the prophecy box on why.php */
.bh-call {
  margin: 26px 0; padding: 26px 28px; border-radius: 10px; text-align: center;
  background: linear-gradient(135deg, rgba(212,175,55,0.22), rgba(240,147,43,0.10));
  border: 1px solid rgba(212,175,55,0.55);
}
.bh-call q { display: block; quotes: "\201C" "\201D"; font-size: 24px; line-height: 1.45; color: #fff; font-style: italic; }
.bh-call .bh-who { display: block; margin-top: 10px; font-size: 13px; color: #c9d4dd; letter-spacing: 1px; text-transform: uppercase; }

/* Accordions */
.bh-acc { margin: 12px 0; border: 1px solid rgba(255,255,255,0.16); border-radius: 8px; background: rgba(255,255,255,0.05); }
.bh-acc > summary {
  list-style: none; cursor: pointer; padding: 15px 48px 15px 18px; position: relative;
  font-size: 18px; font-weight: bold; color: #fff;
}
.bh-acc > summary::-webkit-details-marker { display: none; }
.bh-acc > summary::after {
  content: ""; position: absolute; right: 18px; top: 50%; margin-top: -5px;
  border-left: 7px solid transparent; border-right: 7px solid transparent; border-top: 10px solid #f0932b;
  transition: transform .2s ease;
}
.bh-acc[open] > summary::after { transform: rotate(180deg); }
.bh-acc > summary:hover { background: rgba(240,147,43,0.10); }
.bh-acc > summary small { display: block; font-weight: normal; font-size: 13px; color: #c9d4dd; margin-top: 3px; }
.bh-acc-body { padding: 2px 18px 16px; }
.bh-acc-body p { font-size: 16px; margin: 0 0 8px; }
.bh-year { display: inline-block; min-width: 54px; padding: 2px 8px; margin-right: 8px; border-radius: 4px; background: #f0932b; color: #111; font-size: 14px; text-align: center; }

/* The five names */
.bh-five { list-style: none; padding: 0; margin: 20px 0 8px; display: flex; flex-wrap: wrap; gap: 10px; }
.bh-five li { flex: 1 1 170px; padding: 14px 16px; border-radius: 8px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); font-size: 15px; line-height: 1.5; color: #fff; }
.bh-five li b { display: block; font-size: 17px; margin-bottom: 4px; }
.bh-five li.ours { border-color: rgba(240,147,43,.6); background: rgba(240,147,43,.12); }

/* Numbered path */
.bh-steps { list-style: none; padding: 0; margin: 18px 0 8px; counter-reset: bhstep; }
.bh-steps li { position: relative; padding: 12px 14px 12px 52px; margin: 8px 0; border-radius: 8px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); font-size: 16px; line-height: 1.5; color: #e8e8e8; }
.bh-steps li:before {
  counter-increment: bhstep; content: counter(bhstep);
  position: absolute; left: 14px; top: 50%; margin-top: -13px; width: 26px; height: 26px; border-radius: 50%;
  background: #f0932b; color: #111; font-weight: bold; font-size: 14px; text-align: center; line-height: 26px;
}

/* Columns and callouts */
.bh-cols { display: flex; flex-wrap: wrap; gap: 14px; margin: 22px 0; }
.bh-col { flex: 1 1 250px; border-radius: 10px; padding: 18px 20px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); }
.bh-col h3 { margin: 0 0 6px; font-size: 20px; color: #fff; }
.bh-col p { font-size: 15px; margin: 0; }
.bh-col-tag { display: block; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: bold; color: #ffb35c; margin-bottom: 6px; }
.bh-col.eg { border-color: rgba(240,147,43,.6); background: rgba(240,147,43,.10); }

.bh-callout { background: rgba(255,255,255,0.07); border-left: 3px solid #f0932b; border-radius: 0 8px 8px 0; padding: 20px 24px; margin: 26px 0 0; }
.bh-callout p { margin: 0; font-size: 16px; }
.bh-callout p + p { margin-top: 6px; }
.bh-quote {
  text-align: center; font-size: 24px; line-height: 1.4; font-weight: bold; color: #fff;
  padding: 24px 10px; margin: 26px 0 0;
  border-top: 1px solid rgba(240,147,43,0.6); border-bottom: 1px solid rgba(240,147,43,0.6);
}
.bh-bigquote { text-align: center; margin: 26px 0; padding: 22px 16px; border-radius: 10px; background: rgba(240,147,43,.12); border: 1px solid rgba(240,147,43,.5); }
.bh-bigquote q { display: block; quotes: "\201C" "\201D"; font-size: 22px; line-height: 1.4; color: #fff; font-weight: bold; margin: 0 auto; }
.bh-bigquote span { display: block; margin-top: 10px; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: #ffb35c; }

/* The book */
.bh-book { display: flex; flex-wrap: wrap; gap: 26px; align-items: center; margin: 10px 0 20px; }
.bh-cover {
  flex: 0 0 170px; height: 240px; position: relative; overflow: hidden; box-sizing: border-box;
  border-radius: 4px 10px 10px 4px; padding: 18px 16px;
  background: linear-gradient(160deg, #1b1b1b, #3a2410); border: 1px solid rgba(240,147,43,.6);
  box-shadow: -6px 0 0 #c85f00 inset, 0 10px 24px rgba(0,0,0,.6);
  display: flex; flex-direction: column; justify-content: flex-end; color: #fff;
}
.bh-cover-kicker { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: #ffb35c; }
.bh-cover-title { font-size: 26px; font-weight: bold; line-height: 1.1; margin: 4px 0 8px; }
.bh-cover-sub { font-size: 11px; color: #c9d4dd; line-height: 1.4; }
.bh-book-text { flex: 1 1 260px; }

/* Buttons */
.bh-btn {
  display: inline-block; background: #5cb85c; color: #fff !important;
  font-size: 17px; font-weight: bold; padding: 14px 28px; border-radius: 5px;
  text-decoration: none; margin: 18px 8px 0 0; transition: background .15s ease;
}
.bh-btn:hover, .bh-btn:focus { background: #4a9d4a; color: #fff !important; text-decoration: none; }
.bh-btn-orange { background: #f0932b; color: #111 !important; }
.bh-btn-orange:hover, .bh-btn-orange:focus { background: #d97d16; color: #111 !important; }
.bh-btn-dark { background: #222; border: 1px solid rgba(255,255,255,0.3); }
.bh-btn-dark:hover, .bh-btn-dark:focus { background: #000; }
.bh-fine { display: block; font-size: 14px; color: #b9c4cd; margin-top: 12px; }
.bh-center-btns { text-align: center; max-width: none; }

.bh-end { text-align: center; padding: 34px 0 10px; border-top: 1px solid rgba(255,255,255,0.14); margin-top: 34px; }
.bh-end h3 { color: #fff; font-size: 28px; margin: 0 0 12px; font-weight: bold; }

/* ===========================================================================
   STYLE RULE: apple-first  (9 to 12 words per line, see STYLE-GUIDE.md)
=========================================================================== */
.apple-first p,
.apple-first li,
.apple-first q,
.apple-first .bh-card-note,
.apple-first .bh-fine { max-width: 25em; text-wrap: pretty; }
.apple-first .bh-bigquote q, .apple-first .bh-call q { max-width: 22em; }
.apple-first h2, .apple-first h3 { max-width: 20em; text-wrap: balance; }
.apple-first .bh-hero p,
.apple-first .bh-end p,
.apple-first .bh-quote,
.apple-first .bh-call q,
.apple-first .bh-bigquote q { margin-left: auto; margin-right: auto; }
.apple-first .bh-hero p { max-width: 24em; }
.apple-first .bh-hero p + p { margin-top: 6px; }
.apple-first .bh-five li, .apple-first .bh-col p { max-width: none; }

@media (max-width: 700px) {
  .bh-card { flex: 1 1 100%; }
  .bh-hero h1 { font-size: 34px; letter-spacing: 2px; }
  .bh-hero p  { font-size: 18px; }
  .bh-sec h2  { font-size: 25px; }
  .bh-wrap p  { font-size: 16px; }
  .bh-quote, .bh-bigquote q, .bh-call q { font-size: 19px; }
}
