/* Help slides: the small "i" buttons around Samljóð and the lightbox they open.
   The slides are written for a fixed 1920×1080 canvas (the same markup as the streaming
   manual); on a wide screen they are shown scaled, on a narrow one the same markup is
   laid out as a normal page. */

.sjh-i { -webkit-appearance: none !important; appearance: none !important; box-sizing: border-box !important; display: inline-grid !important; place-items: center; flex: 0 0 auto; width: 22px !important; height: 22px !important; min-width: 22px !important; min-height: 22px !important; margin: 0 0 0 .5em !important; padding: 0 !important; border: 1.5px solid currentColor !important; border-radius: 50% !important; background: transparent !important; color: inherit !important; box-shadow: none !important; opacity: .6; font: italic 700 13px/1 Georgia, 'Times New Roman', serif !important; letter-spacing: 0 !important; text-transform: none !important; vertical-align: middle; cursor: pointer; position: relative; top: -1px; }
.sjh-i:hover, .sjh-i:focus-visible { opacity: 1; }
.sjh-i:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
/* A bigger target for a finger, without a bigger mark. */
.sjh-i::after { content: ''; position: absolute; inset: -10px; }
.sjh-i-bar { width: 26px !important; height: 26px !important; min-width: 26px !important; margin: 0 4px !important; color: #fff !important; opacity: .85; top: 0; }
.sjh-i-block { margin: 0 0 0 6px !important; }

.sjh-box { position: fixed; z-index: 2147483000; inset: 0; display: flex; flex-direction: column; background: rgba(18, 14, 10, .93); color: #FBF6EE; font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; -webkit-text-size-adjust: 100%; }
.sjh-box[hidden] { display: none; }
.sjh-box * { box-sizing: border-box; }
/* Title left, page number in the middle of the bar, close button right. */
.sjh-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 10px 14px; padding-top: max(10px, env(safe-area-inset-top)); }
.sjh-bar > :last-child { justify-self: end; }
.sjh-bar strong { flex: 1; min-width: 0; overflow: hidden; font-size: 16px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.sjh-bar span { color: #D8CBB8; font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sjh-box .sjh-btn { -webkit-appearance: none !important; appearance: none !important; width: auto; min-height: 0 !important; margin: 0 !important; border: 1px solid rgba(251, 246, 238, .45) !important; border-radius: 999px !important; padding: 9px 16px !important; background: transparent !important; color: #FBF6EE !important; box-shadow: none !important; font: 700 15px/1.1 system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif !important; text-transform: none !important; letter-spacing: 0 !important; cursor: pointer; white-space: nowrap; }
.sjh-box .sjh-btn:hover, .sjh-box .sjh-btn:focus-visible { background: rgba(251, 246, 238, .14) !important; }
.sjh-box .sjh-btn:focus-visible { outline: 2px solid #FCD34D; outline-offset: 2px; }
.sjh-box .sjh-btn:disabled { opacity: .35; cursor: default; }
.sjh-box .sjh-btn[hidden] { display: none !important; }
.sjh-box .sjh-btn.is-main { border-color: #FCD34D !important; background: #FCD34D !important; color: #1F1B16 !important; }
/* The cross is drawn, not typed: a "×" sits wherever its font puts it, never quite in the middle. */
.sjh-box .sjh-btn.sjh-close { position: relative; flex: none; width: 40px !important; height: 40px !important; padding: 0 !important; font-size: 0 !important; line-height: 0 !important; }
.sjh-box .sjh-btn.sjh-close::before, .sjh-box .sjh-btn.sjh-close::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 2.5px; margin: -1.25px 0 0 -9px; border-radius: 2px; background: currentColor; transform: rotate(45deg); }
.sjh-box .sjh-btn.sjh-close::after { transform: rotate(-45deg); }
.sjh-stage { position: relative; flex: 1; min-height: 0; margin: 0 14px; }
.sjh-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; padding-bottom: max(10px, env(safe-area-inset-bottom)); }
.sjh-foot .sjh-dots { display: flex; flex: 1; min-width: 0; flex-wrap: wrap; justify-content: center; gap: 6px; }
.sjh-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(251, 246, 238, .32); }
.sjh-dots i.is-on { background: #FCD34D; }

/* The slide itself. */
.sjh-stage section, .sjh-stage section * { box-sizing: border-box; }
.sjh-stage section { --ink: #1F1B16; font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; position: relative; display: flex; flex-direction: column; background: #FBF6EE; color: #1F1B16; text-align: left; }
.sjh-stage section :is(p, h1, h2, h3) { margin: 0; padding: 0; color: inherit; font-family: inherit; text-transform: none; }
.sjh-stage .eyebrow { font-weight: 700; text-transform: uppercase; color: #B45309; }
.sjh-stage :is(h1, h2, h3) { font-weight: 700; }
.sjh-stage .lead, .sjh-stage .cap, .sjh-stage .under, .sjh-stage .card .body { color: #5B5145; }
.sjh-stage .text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sjh-stage .row { display: flex; flex-direction: row; align-items: flex-start; }
.sjh-stage .num { flex: 0 0 auto; border-radius: 50%; background: #B45309; color: #FBF6EE; font-weight: 700; text-align: center; }
.sjh-stage .txt { flex: 1; min-width: 0; }
.sjh-stage .note { color: #5B5145; background: #F1E4D0; }
.sjh-stage img { display: block; flex: 0 0 auto; max-width: none; }
.sjh-stage .shot { border: 2px solid #E2D3BC; box-shadow: 0 18px 44px rgba(60, 40, 10, .18); object-fit: contain; background: #fff; }
.sjh-stage .phone { border: 6px solid #1F1B16; box-shadow: 0 18px 44px rgba(60, 40, 10, .25); object-fit: cover; background: #0E0F12; }
.sjh-stage .wide, .sjh-stage .half { display: flex; flex-direction: column; }
.sjh-stage .half { flex: 1; min-width: 0; }
.sjh-stage .row.half { flex-direction: row; }
.sjh-stage .card { flex: 1; display: flex; flex-direction: column; background: #fff; border: 2px solid #E2D3BC; }
.sjh-stage .card .tag { font-weight: 700; text-transform: uppercase; color: #B45309; }
.sjh-stage .arrow { align-self: center; color: #B45309; font-weight: 700; }
.sjh-stage table { width: 100%; border-collapse: collapse; color: inherit; }
.sjh-stage :is(th, td) { border-bottom: 1px solid #E2D3BC; text-align: left; vertical-align: top; }
.sjh-stage .foot, .sjh-stage .pn { display: none; }
.sjh-stage .dark { background: #1F1B16; color: #FBF6EE; }
.sjh-stage .dark .eyebrow { color: #FCD34D; }
.sjh-stage .dark .lead, .sjh-stage .dark .cap { color: #D8CBB8; }
.sjh-stage .dark .num { background: #FCD34D; color: #1F1B16; }
.sjh-stage .dark .shot { border-color: #4A4035; }
.sjh-stage .dark .note { background: #33291F; color: #D8CBB8; }

/* Wide screens: the fixed canvas, scaled to fit. */
.sjh-canvas .sjh-frame { position: absolute; overflow: hidden; border-radius: 12px; box-shadow: 0 24px 70px rgba(0, 0, 0, .5); }
.sjh-canvas section { position: absolute; top: 0; left: 0; width: 1920px; height: 1080px; padding: 128px; overflow: hidden; transform-origin: 0 0; }
.sjh-canvas .eyebrow { font-size: 24px; letter-spacing: 3px; margin-bottom: 14px; }
.sjh-canvas h1 { font-size: 112px; line-height: 1.04; letter-spacing: -2px; }
.sjh-canvas h2 { font-size: 64px; line-height: 1.1; letter-spacing: -1px; }
.sjh-canvas h3 { font-size: 34px; line-height: 1.2; }
.sjh-canvas .lead { font-size: 34px; line-height: 1.35; margin-top: 18px; }
.sjh-canvas .cols { display: flex; flex-direction: row; gap: 72px; margin-top: 44px; align-items: flex-start; }
.sjh-canvas .text { gap: 22px; }
.sjh-canvas .row { gap: 22px; }
.sjh-canvas .num { width: 52px; height: 52px; font-size: 26px; line-height: 52px; }
.sjh-canvas .txt { font-size: 30px; line-height: 1.32; padding-top: 6px; }
.sjh-canvas .note { font-size: 26px; line-height: 1.35; padding: 18px 22px; border-radius: 14px; }
.sjh-canvas .shot { border-radius: 16px; }
.sjh-canvas .phone { border-radius: 28px; }
.sjh-canvas .cap { font-size: 24px; line-height: 1.3; margin-top: 14px; }
.sjh-canvas .wide { margin-top: 36px; }
.sjh-canvas .pair { display: flex; flex-direction: row; gap: 48px; margin-top: 40px; }
.sjh-canvas .pair + .note { margin-top: 30px; }
.sjh-canvas .cards { display: flex; flex-direction: row; gap: 28px; margin-top: 48px; align-items: stretch; }
.sjh-canvas .card { gap: 14px; padding: 34px 32px; border-radius: 20px; }
.sjh-canvas .card .tag { font-size: 24px; letter-spacing: 2px; }
.sjh-canvas .card .body { font-size: 28px; line-height: 1.35; }
.sjh-canvas .arrow { font-size: 54px; }
.sjh-canvas .under { font-size: 30px; line-height: 1.35; margin-top: 40px; }
.sjh-canvas table { font-size: 30px; margin-top: 40px; }
.sjh-canvas :is(th, td) { padding: 12px 16px 12px 0; }

/* Narrow screens: the same slide as an ordinary page that scrolls. */
.sjh-flow .sjh-frame { position: absolute; inset: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; background: #FBF6EE; }
.sjh-flow .sjh-frame.is-dark { background: #1F1B16; }
.sjh-flow section { min-height: 100%; max-width: 760px; margin: 0 auto; padding: 22px 18px 26px; transform: none !important; }
.sjh-flow .eyebrow { font-size: 12px; letter-spacing: 1.5px; margin-bottom: 6px; }
.sjh-flow h1 { font-size: 34px; line-height: 1.08; }
.sjh-flow h2 { font-size: 24px; line-height: 1.15; }
.sjh-flow h3 { font-size: 17px; line-height: 1.25; }
.sjh-flow .lead { font-size: 16px; line-height: 1.4; margin-top: 8px; }
.sjh-flow :is(.cols, .pair, .cards) { display: flex; flex-direction: column; gap: 16px; margin-top: 16px !important; }
.sjh-flow .text { gap: 12px !important; flex: none; }
.sjh-flow .row { gap: 10px; }
.sjh-flow .num { width: 26px; height: 26px; font-size: 14px; line-height: 26px; }
.sjh-flow .txt { font-size: 16px; line-height: 1.4; padding-top: 2px; }
.sjh-flow .note { font-size: 14.5px; line-height: 1.4; padding: 10px 12px; border-radius: 10px; }
.sjh-flow .pair + .note { margin-top: 14px; }
.sjh-flow img { width: 100% !important; height: auto !important; align-self: stretch !important; }
.sjh-flow .shot { border-width: 1px; border-radius: 10px; box-shadow: 0 6px 18px rgba(60, 40, 10, .16); }
.sjh-flow .phone { width: min(62%, 250px) !important; align-self: center !important; border-width: 4px; border-radius: 18px; }
.sjh-flow .cap { font-size: 14.5px; line-height: 1.4; margin-top: 6px; }
.sjh-flow h3[style] { margin-top: 12px !important; }
.sjh-flow .wide { margin-top: 14px !important; }
.sjh-flow .half { flex: none; gap: 0 !important; }
.sjh-flow .half[style] { gap: 12px !important; }
.sjh-flow .card { gap: 6px; padding: 14px; border-width: 1px; border-radius: 12px; }
.sjh-flow .card .tag { font-size: 12px; letter-spacing: 1px; }
.sjh-flow .card .body { font-size: 15px; line-height: 1.4; }
.sjh-flow .arrow { display: none; }
.sjh-flow .under { font-size: 15.5px; line-height: 1.4; margin-top: 14px; }
.sjh-flow table { font-size: 14.5px; margin-top: 14px; }
.sjh-flow :is(th, td) { padding: 7px 10px 7px 0; }

/* A screenshot enlarged: tap it to look closer, tap again to go back. */
.sjh-stage img { cursor: zoom-in; }
.sjh-zoom { position: absolute; z-index: 5; inset: 0; overflow: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; background: #14110d; cursor: zoom-out; }
.sjh-stage .sjh-zoom img { display: block; max-width: none; height: auto !important; margin: 0 auto; cursor: zoom-out; }

/* The list of all topics. */
.sjh-menu { position: absolute; inset: 0; overflow-y: auto; border-radius: 12px; padding: 22px 18px; background: #FBF6EE; color: #1F1B16; }
.sjh-menu > div { max-width: 760px; margin: 0 auto; }
.sjh-menu h2 { margin: 0 0 4px; font-size: 24px; }
.sjh-menu h3 { margin: 20px 0 8px; color: #B45309; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.sjh-menu ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.sjh-box .sjh-menu button { -webkit-appearance: none !important; appearance: none !important; display: flex !important; width: 100% !important; margin: 0 !important; align-items: baseline; justify-content: space-between; gap: 10px; border: 1px solid #E2D3BC !important; border-radius: 12px !important; padding: 13px 14px !important; background: #fff !important; color: #1F1B16 !important; box-shadow: none !important; font: 700 16px/1.2 system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif !important; text-align: left; text-transform: none !important; cursor: pointer; }
.sjh-box .sjh-menu button:hover, .sjh-box .sjh-menu button:focus-visible { border-color: #B45309 !important; }
.sjh-box .sjh-menu button span { color: #8A7A66; font-size: 13px; font-weight: 400; white-space: nowrap; }

@media (max-width: 560px) {
    .sjh-stage { margin: 0 8px; }
    .sjh-bar, .sjh-foot { padding-left: 8px; padding-right: 8px; }
    .sjh-dots { display: none !important; }
    .sjh-foot { justify-content: space-between; }
    .sjh-box .sjh-btn { padding: 11px 14px !important; }
}
