/* gmhsc.cloud: the GMHSC apps home and the app Terms, Privacy and
   Safeguarding pages. Same look as the GMHSC shop (shop/assets/shop.css):
   navy #172D57 with the orange accent #E8712C (decorative only: too light
   for text on white). Light by default; dark follows the device setting.
   Pages are built from home-src/*.md by tools/build-home.py. */

:root {
  --navy: #172D57;
  --orange: #E8712C;
  --bg: #f4f6fa;
  --card: #ffffff;
  --ink: #1c2230;
  --muted: #4f5868;
  --line: #dfe3ea;
  --heading: #172D57;
  --btn: #172D57;
  --btn-ink: #ffffff;
  --btn-hover: #22407a;
  --link: #1d4ed8;
  --info-bg: #eaf0fb; --info-ink: #172D57; --info-line: #b9c8e6;
  --warn-bg: #fff4e5; --warn-ink: #7a3e00; --warn-line: #f3c58a;
  --coach: #3d6b14;
  --tutor: #2563eb;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1d3a;
    --card: #172D57;
    --ink: #f1f5f9;
    --muted: #c3cedd;
    --line: rgba(255, 255, 255, .16);
    --heading: #ffffff;
    --btn: #F28C4A;
    --btn-ink: #0f1d3a;
    --btn-hover: #f6a571;
    --link: #93c5fd;
    --info-bg: #1f3864; --info-ink: #e2e8f0; --info-line: #3b5a91;
    --warn-bg: #3d2606; --warn-ink: #fed7aa; --warn-line: #8a5a1c;
    --coach: #9CCC65;
    --tutor: #93c5fd;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-wrap: anywhere;
}
main { flex: 1; padding-bottom: 12px; }
a { color: var(--link); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--card); color: var(--ink); padding: 8px 12px; border-radius: 8px; z-index: 10; }

/* Header */
.top { background: var(--navy); border-bottom: 4px solid var(--orange); color: #fff; }
.top__inner { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; min-height: 60px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.mark { color: #fff; text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: .02em; }
.mark span { color: var(--orange); }
.nav { display: flex; gap: 4px 16px; flex-wrap: wrap; }
.nav a { color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--orange); }

/* Headings and text */
h1 { margin: 28px 0 8px; font-size: 28px; line-height: 1.2; color: var(--heading); }
@media (min-width: 700px) { h1 { font-size: 34px; } }
h2 { margin: 30px 0 10px; font-size: 21px; line-height: 1.3; color: var(--heading); }
h2::after { content: ""; display: block; width: 44px; height: 4px; border-radius: 2px; background: var(--orange); margin-top: 6px; }
h3 { margin: 20px 0 6px; font-size: 18px; color: var(--heading); }
p, ul, ol { margin: 0 0 12px; }
ul, ol { padding-left: 1.3rem; }
li { margin: 4px 0; }
.updated { color: var(--muted); margin-top: 0; }

/* Callouts */
.callout { margin: 16px 0; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--info-line); background: var(--info-bg); color: var(--info-ink); }
.callout p:last-child { margin-bottom: 0; }
.callout--urgent { border-color: var(--warn-line); background: var(--warn-bg); color: var(--warn-ink); }
.callout a { color: inherit; }

/* Copy slot: text still to come from handback/gmhsc-cloud-copy.md.
   tools/build-home.py refuses a release build while any remain. */
.slot { margin: 16px 0; padding: 14px; border: 2px dashed var(--orange); border-radius: 10px; color: var(--muted); font-style: italic; }

/* Tables */
.table { width: 100%; overflow-x: auto; margin: 0 0 16px; }
table { border-collapse: collapse; width: 100%; min-width: 320px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
th, td { text-align: left; vertical-align: top; padding: 8px 12px; border-bottom: 1px solid var(--line); }
th { color: var(--heading); font-size: 15px; }
tr:last-child td { border-bottom: 0; }

/* App cards (home) */
.apps { display: grid; gap: 14px; grid-template-columns: 1fr; margin: 18px 0; }
@media (min-width: 640px) { .apps { grid-template-columns: 1fr 1fr; } }
.app { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--app); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.app--coach { --app: var(--coach); }
.app--tutor { --app: var(--tutor); }
.app__head { display: flex; align-items: center; gap: 12px; }
.app__head img { width: 52px; height: 52px; border-radius: 12px; flex: none; }
.app__head h2 { margin: 0; }
.app__head h2::after { display: none; }
.app p { margin: 0; color: var(--muted); }
.app__links { display: flex; gap: 10px 16px; flex-wrap: wrap; align-items: center; margin-top: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 20px; border-radius: 999px;
  border: 2px solid var(--btn); background: var(--btn); color: var(--btn-ink);
  font: inherit; font-weight: 700; text-decoration: none;
}
.btn:hover { background: var(--btn-hover); border-color: var(--btn-hover); }

/* Footer */
.foot { margin-top: 32px; padding: 20px 0 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot p { margin: 4px 0; }
.foot a { color: inherit; }

/* Approved page copy (15 Nov 2026): the tagline under the h1, the
   "Try it free" row, and the app cards on the home page. */
.tagline { margin: 0 0 12px; font-size: 20px; line-height: 1.35; font-weight: 700; color: var(--heading); max-width: 680px; }
@media (min-width: 700px) { .tagline { font-size: 22px; } }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 18px 0 8px; }
.cta__note { color: var(--muted); font-size: 15px; }
.app p { color: var(--ink); }
.app__head { align-items: flex-start; }
.app__head p { margin: 0; }
