/* ── Model Railroad Record Keeper — site standard (2026-11-24) ──
   Loaded LAST on every Record Keeper page, after the shared style.css
   and the page's own <style>, so these rules win. The PHR site never
   loads this file.

   One banner, three heading sizes, one heading green, one body size.
   Change a size here and every page follows. Don't set heading sizes
   in a page's own <style> or in style="" — that is how the pages drifted.

     Banner ............... light green, same as the Home header
     Banner title ......... 2.2rem  dark green #1A3C2A, bold
     Banner subtitle ...... 1.1rem  green #2E8B57, semibold, one line
     Section heading (h2) . 1.5rem  green-dark, bold
     Sub-heading (h3) ..... 1.2rem  green-dark, bold
     Card title ........... 1.3rem  green-dark, bold  (blog cards, video rows)
     Body text ............ 1.05rem near-black
*/

:root { --mrr-head: var(--phr-green-dark); }

/* ── Top bar — logo, site name, menu (2026-11-25) ──
   ~20% bigger than the shared style.css (PHR site keeps its own sizes).
   Bar height and the phone dropdown's top move together. */
.site-nav .nav-inner { height: 96px; }
.site-nav .nav-logo { font-size: 1.75rem; white-space: nowrap; }
.site-nav .nav-links a { font-size: 1.15rem; white-space: nowrap; }
@media (max-width: 1180px) { .site-nav .nav-links { gap: 20px; } }
@media (max-width: 768px) { .site-nav .nav-links.open { top: 96px; } }
/* The loco app icon is the logo (moved up from the banner 2026-11-25),
   pinned to the far left of the bar at its banner size. The old MRR
   square is hidden. Side padding keeps the name clear of the icon. */
.site-nav .nav-logo svg { display: none; }
.site-nav { padding: 0 120px; }
.site-nav::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 76px;
  height: 76px;
  border-radius: 17px;
  background: url("images/icon.png") center / cover no-repeat;
  box-shadow: 0 4px 12px rgba(0,0,0,.14);
}
@media (max-width: 700px) {
  .site-nav { padding: 0 0 0 68px; }
  .site-nav .nav-inner { height: 64px; }
  .site-nav .nav-links.open { top: 64px; }
  .site-nav::before { left: 12px; width: 48px; height: 48px; border-radius: 11px; }
  .site-nav .nav-logo { font-size: 1.15rem; }
}

/* ── The banner — every page except Home ── */
.mrr-banner {
  background: linear-gradient(160deg, #EAF6EC, #D2EAD7);
  color: #1A3C2A;
  text-align: center;
  padding: 12px 24px 12px;
}
.mrr-banner h1 {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2;
  color: #1A3C2A;
  margin: 0 auto;
  max-width: 1000px;
  text-wrap: balance;
}
.mrr-banner p {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2E8B57;
  margin: 6px auto 0;
  max-width: 900px;
  opacity: 1;
}
/* "On the App Store" pill, top-right corner of a banner (Features).
   Pinned to the corner so the banner keeps its height. On narrow screens
   it drops under the subtitle instead. */
.mrr-banner .mrr-buy {
  position: absolute;
  top: 10px;
  right: 24px;
  background: var(--phr-green);
  color: #fff !important;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.mrr-banner .mrr-buy:hover { background: var(--phr-green-dark); }
@media (max-width: 700px) {
  .mrr-banner .mrr-buy { position: static; display: inline-block; margin-top: 12px; }
}
/* Side padding keeps the centered title clear of the App Store pill.
   The app icon moved up to the top bar 2026-11-25. */
.mrr-banner { position: relative; padding-left: 120px; padding-right: 120px; }
@media (max-width: 700px) {
  .mrr-banner { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 600px) {
  .mrr-banner h1 { font-size: 1.75rem; }
}

/* ── Section headings ── */
.content-section h2,
.blog-post-body h2,
.fx-group summary {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--mrr-head);
}
.content-section h2 { margin-top: 28px; margin-bottom: 10px; }
.content-section h2:first-child { margin-top: 0; }
.blog-post-body h2 { margin: 28px 0 10px; }

/* ── Sub-headings ── */
.content-section h3,
.blog-post-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--mrr-head);
  margin: 18px 0 6px;
}

/* ── Card titles ── */
.blog-card h2,
.video-row-title,
.feature-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--mrr-head);
}
.feature-card h3 { margin: 0; }

/* ── Body text ── */
.content-section p,
.content-section li,
.blog-post-body,
.blog-card p,
.video-blurb,
.video-row-blurb,
.video-screens,
.fx-legend,
.fx-t {
  font-size: 1.05rem;
  color: #111;
}
.content-section p { line-height: 1.6; }

/* Video and blog post pages: the banner carries the title now. */
.video-page { padding-top: 24px; }
.blog-post { padding-top: 28px; }
.blog-post-header { margin-bottom: 0; }

/* Features: counts beside group names in the same green. */
.fx-group summary .fx-n { color: var(--mrr-head); }

/* ── Footer ── */
.site-footer .footer-bottom { font-size: 0.95rem; color: #e8e8e8; }
.footer-links a { font-size: 1rem; color: #e8e8e8; }
.footer-links a:hover { color: #fff; }
.footer-brand p { color: #e8e8e8; }

/* How-To Videos: Watched checkmark beside each row + count by the sort
   (Fred, 2026-11-24). Black text, no grey. */
.video-item { display: flex; align-items: stretch; gap: 10px; }
.video-item .video-row { flex: 1; min-width: 0; }
.video-watched {
  flex: none; width: 92px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: #fff; color: #111; font-size: 1rem; font-weight: 700;
  border: 2px solid var(--phr-border); border-radius: 12px; cursor: pointer;
}
.video-watched:hover { border-color: var(--phr-green); }
.video-watched-box {
  width: 34px; height: 34px; border: 2px solid #111; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; line-height: 1; color: #fff;
}
.video-watched.on { border-color: var(--phr-green); }
.video-watched.on .video-watched-box { background: var(--phr-green); border-color: var(--phr-green); }
.video-count { margin-left: auto; font-size: 1.05rem; font-weight: 700; color: #111; }

/* Running time beside each video title (Fred, 2026-11-24). */
.video-row-time { font-weight: 700; color: var(--mrr-head); white-space: nowrap; }

/* Home intro paragraph spans the same width as the slideshow card below
   it (Fred, 2026-11-24): the card is 1120 wide with 20px side padding. */
.content-section.mrr-intro-wide { max-width: 1120px; padding: 20px 20px 12px; }

/* How-To Videos list: video-camera icon instead of the play circle, wider
   list and tighter rows so more videos fit on screen (Fred, 2026-11-25).
   The list page only — single video pages keep their 900px width. */
.video-page:has(.video-list) { max-width: 1200px; padding-top: 16px; }
.video-list { gap: 8px; }
.video-row { padding: 10px 16px; gap: 14px; align-items: center; }
.video-row-play {
  width: 32px; height: 23px;
  border-radius: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 34'%3E%3Crect x='1' y='4' width='32' height='26' rx='5' fill='%232E8B57'/%3E%3Cpath d='M35 13 L47 6 V28 L35 21 Z' fill='%232E8B57'/%3E%3C/svg%3E") center / contain no-repeat;
  font-size: 0; color: transparent;
}
.video-item { gap: 8px; }
.video-watched { width: 84px; gap: 4px; border-radius: 10px; }
.video-watched-box { width: 30px; height: 30px; }
.video-sort { margin-bottom: 10px; }

/* Footer page list: 3 columns, no "App" heading (Fred, 2026-11-25).
   Picked out by its Features link so the Contact column is untouched. */
.footer-links:has(a[href$="features.html"]) h4 { display: none; }
.footer-links:has(a[href$="features.html"]) ul {
  display: grid;
  grid-template-rows: repeat(3, auto);
  grid-auto-flow: column;
  column-gap: 48px;
}
@media (max-width: 768px) {
  .footer-links:has(a[href$="features.html"]) ul { display: block; }
}

/* Top bar on two lines (Fred, 2026-11-25): site name on the left, menu on
   the line below it, spread evenly across 75% of the screen width. The
   loco icon stays at the far left, centered on both lines. Phones keep
   the one-line bar with the ☰ button. */
@media (min-width: 769px) {
  .site-nav .nav-inner {
    max-width: none;
    margin: 0;
    padding: 10px 0;
    height: auto;
    min-height: 96px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
  }
  .site-nav .nav-links {
    width: min(75vw, 100%);
    justify-content: space-between;
    gap: 0;
  }
}

/* "Send us a message" popup — every page, opened by Contact (mrr-contact.js,
   2026-11-25). Large dark text, no grey. */
.mrr-contact { max-width: 760px; }
.mrr-cf-open, .mrr-cf-send {
  display: inline-block; background: var(--phr-green); color: #fff !important;
  border: 0; border-radius: 999px; font: inherit; font-size: 1.1rem; font-weight: 700;
  padding: 10px 28px; cursor: pointer; text-decoration: none;
}
.mrr-cf-open:hover, .mrr-cf-send:hover { background: var(--phr-green-dark); }
.mrr-cf-send { align-self: flex-start; margin-top: 14px; }
.mrr-cf-send:disabled { opacity: .6; cursor: default; }
.mrr-cf-ov {
  position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.mrr-cf-ov[hidden] { display: none; }
body.mrr-cf-lock { overflow: hidden; }
.mrr-cf {
  position: relative; background: #fff; color: #111; border-radius: 14px;
  width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto;
  padding: 24px 26px 18px; box-shadow: 0 12px 40px rgba(0,0,0,.3);
}
.mrr-cf h2 { font-size: 1.5rem; font-weight: 700; color: var(--mrr-head); margin: 0 0 6px; }
.mrr-cf p { font-size: 1.05rem; color: #111; }
.mrr-cf-x {
  position: absolute; top: 10px; right: 12px; background: none; border: 0;
  font-size: 2rem; line-height: 1; color: #111; cursor: pointer;
}
.mrr-cf form { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.mrr-cf label { font-size: 1.05rem; font-weight: 700; color: #111; margin-top: 8px; }
.mrr-cf input, .mrr-cf textarea {
  font: inherit; font-size: 1.05rem; color: #111; background: #fff;
  border: 2px solid var(--phr-border); border-radius: 8px; padding: 10px 12px;
}
.mrr-cf input:focus, .mrr-cf textarea:focus { outline: none; border-color: var(--phr-green); }
.mrr-cf-status { font-weight: 700; min-height: 1.5em; margin: 6px 0 0; }
.mrr-trap { position: absolute; left: -9999px; }
.footer-links h4 a { color: white; }
.footer-links h4 a:hover { color: var(--phr-green-accent); }
