/* "Get the app" cards (Isaiah 2026-10-30: install to the home screen, no app store). js/install.mjs builds the
   illustrated steps; js/phone.mjs's welcome and in-app cards wear the same look through .ins. Builds on .home-tip
   (css/phone.css) and only restyles .ins / .ins-*: grown-up words and buttons in teacher green, no purple. */
.home-tip.ins { background: rgba(6, 34, 20, .64); }
.ins .home-tip-card { color: #1E3A2C; }
.ins .home-tip-head h2 { color: #1E3A2C; }
.ins .home-tip-head p { color: #2B6B33; }
.ins .home-tip-steps small { color: #3E8044; }
.ins .home-tip-icon { color: #12804A; }

.ins-guide .home-tip-card { width: min(100%, 720px); }
.ins-steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ins-steps li { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; padding: 10px; border-radius: 14px; background: #EEF8F0; }
.ins-art { display: grid; place-items: center; height: 92px; }
.ins-pic { display: block; height: 100%; width: auto; }
.ins-pic-tab { height: 72%; }
.ins-words { display: flex; gap: 8px; align-items: flex-start; align-self: stretch; min-width: 0; font-size: 14px; line-height: 1.45; font-weight: 700; color: #1E3A2C; overflow-wrap: anywhere; }
.ins-words small { display: block; margin-top: 3px; font-weight: 500; color: #3E8044; }
.ins-n { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #22B46A; color: #FFFFFF; font-size: 13px; }
.ins-key { display: inline-grid; place-items: center; min-width: 26px; height: 24px; padding: 0 5px; box-sizing: border-box; border-radius: 8px;
  background: #FFFFFF; border: 2px solid #22B46A; color: #1E3A2C; font-style: normal; font-weight: 800; line-height: 1; vertical-align: middle; }
.ins-key svg { display: block; width: 16px; height: 16px; }
.ins-ico { display: inline-block; width: 15px; height: 15px; margin-right: 3px; vertical-align: -2px; color: #12804A; }
.ins-ico svg { display: block; width: 100%; height: 100%; }
.ins-pill { display: inline-block; padding: 0 7px; border-radius: 8px; background: #FFFFFF; border: 1.5px solid #B9DCC5; color: #1E3A2C; font-weight: 800; white-space: nowrap; }
/* computers: no phone pictures, the steps sit side by side as plain cards */
.ins-desk li { align-items: stretch; }
/* the gold ring on the button to tap pulses gently */
.ins-ring { transform-box: fill-box; transform-origin: center; animation: insPulse 1.4s ease-in-out infinite; }
@keyframes insPulse { 50% { transform: scale(1.22); opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .ins-ring { animation: none; } }

/* the one-tap install, when the browser allows it */
.ins-now { margin-top: 14px; text-align: center; }
.ins-now .home-tip-ok { margin-top: 0; min-width: min(100%, 300px); }
.ins-or { margin: 6px 0 0; font-size: 13px; color: #3E8044; }
/* "Got it" steps back to a quiet button while "Install now" is the big green one, and the menu steps (now only a
   fallback) lose their pictures so the card still fits a sideways phone */
.ins-guide.has-now .ins-ok { background: #E6F5EA; color: #1E3A2C; box-shadow: 0 3px 0 #B9DCC5; }
.ins-guide.has-now .ins-art { display: none; }
.ins-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 14px; color: #2B6B33; }
.ins-tip { font-size: 13px; color: #3E8044; }
.ins-qr { display: flex; align-items: center; gap: 14px; margin: 12px 0 0; padding: 10px 12px; border-radius: 14px; background: #EEF8F0; }
.ins-qr img { flex: none; width: 112px; height: 112px; border-radius: 8px; background: #FFFFFF; }
.ins-qr p { margin: 0; font-size: 14px; line-height: 1.45; font-weight: 700; color: #1E3A2C; }
.ins-qr b { display: block; margin-bottom: 2px; }
/* in-app browsers: the app's own "Open in browser" menu steps, when its browser has no working open link */
.inapp-manual { margin: 12px 0 0; padding: 10px 12px; border-radius: 14px; background: #EEF8F0; font-size: 14px; line-height: 1.5; font-weight: 700; color: #1E3A2C; }
.inapp-manual small { display: block; margin-top: 2px; font-weight: 500; color: #3E8044; }
.ins-copy { min-height: 40px; padding: 6px 14px; border: 0; border-radius: 12px; background: #E6F5EA; color: #1E3A2C; font: 700 14px/1.2 var(--font-ui, system-ui); cursor: pointer; overflow-wrap: anywhere; }

/* the Adult Guide menu's "Get the app (free)" (js/home.mjs): grown-up green, ringed like Play full screen */
.gg-item.gg-app { background: #E9F6E6; color: #2B6B33; }
.gg-item.gg-app > span { width: 64px; height: 64px; color: #22B46A; box-shadow: 0 0 0 4px #22B46A; }
/* a hidden menu item stays hidden: .gg-item's display:flex (css/map.css) beat the hidden attribute, so "Get the app" showed
   on computers and inside the installed app, and "Play full screen" while already full screen (2026-10-30 browser variants) */
.gg-item[hidden] { display: none; }

/* upright phones: one step per row, the picture beside the words */
@media (orientation: portrait) {
  .ins-steps { grid-template-columns: 1fr; gap: 8px; }
  .ins-steps li { flex-direction: row; align-items: center; }
  .ins-art { flex: none; height: 76px; }
}
/* sideways phones: smaller pictures so the whole card fits without scrolling */
@media (orientation: landscape) and (max-height: 440px) {
  .ins-art { height: 56px; }
  .ins-steps { margin-top: 8px; gap: 8px; }
  .ins-steps li { padding: 8px; gap: 6px; }
  .ins-words { font-size: 13px; line-height: 1.38; }
  .ins-now { margin-top: 10px; }
  .ins-tip { margin-top: 6px; }
  .ins-guide .ins-ok { margin-top: 8px; }
}
@media (orientation: landscape) and (max-height: 360px) {
  .ins-art { height: 48px; }
  .ins-words small { margin-top: 1px; }
}
/* a card that would still scroll (the smallest sideways phones, e.g. iPhone SE in Safari: 323 px tall) keeps the words and
   button glyphs only, so Got it stays on screen (js/install.mjs fitGuide) */
.ins-guide.ins-tight .ins-art { display: none; }
