/* ==========================================================================
   5 · Mājaslapas un to uzturēšana
   ========================================================================== */
/* the recurring prop: a browser window (dots + address pill, then the page) */
.s5-br { position: absolute; left: 0; top: 40px; width: 760px; height: 540px; border-radius: 16px; border: 1px solid rgba(254,246,225,.14); background: rgba(26,28,20,1); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); }
.s5-bar { position: relative; height: 40px; display: flex; align-items: center; gap: 7px; padding: 0 14px; border-bottom: 1px solid var(--c-line); }
.s5-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(232,235,219,.22); flex: 0 0 auto; }
.s5-bar b { margin-left: 12px; flex: 0 1 46%; height: 20px; border-radius: 999px; background: rgba(254,246,225,.07); border: 1px solid var(--c-line); }
.s5-pg { position: absolute; left: 0; right: 0; top: 40px; bottom: 0; overflow: hidden; }
.s5-pg .dot { display: block; width: 18px; height: 18px; border-radius: 50%; background: var(--c-amber); flex: 0 0 auto; }
.s5-tag { display: block; margin-bottom: 16px; font-size: 16px; color: var(--c-amber); }
.ts--tall .s5-tag { font-size: 18px; margin-bottom: 12px; }
.ts-copy h4.s5-long { font-size: 42px; }
.ts--tall .ts-copy h4.s5-long { font-size: 48px; }
.s5-pre { font: 400 30px/1.35 var(--font-display, sans-serif) !important; color: var(--c-ink2); margin-bottom: 14px !important; }
.ts--tall .s5-pre { font-size: 36px !important; }

/* the Tēls home page in miniature (page area 760x420) */
.s5-tp { position: absolute; inset: 0; }
.s5-tp > * { position: absolute; }
.s5-tp-bg { inset: 0; background: radial-gradient(80% 90% at 70% 40%, #2c3124 0%, #21241B 60%, #1a1c14 100%); }
.s5-tp-halo { left: 420px; top: 40px; width: 340px; height: 320px; background: radial-gradient(closest-side, rgba(255,230,171,.2), rgba(255,230,171,0)); }
.s5-tp-mk { left: 26px; top: 18px; width: 32px; height: 29px; }
.s5-tp-nav { left: 250px; top: 29px; display: flex; gap: 20px; }
.s5-tp-nav i { width: 48px; height: 7px; border-radius: 4px; background: rgba(254,246,225,.4); }
.s5-tp-cta { right: 26px; top: 17px; width: 96px; height: 30px; border-radius: 999px; background: var(--c-cream); }
.s5-tp-h { left: 44px; top: 122px; }
.s5-tp-h .ts-ln { background: var(--c-cream); border-radius: 8px; margin-bottom: 14px; }
.s5-tp-s { left: 44px; top: 222px; }
.s5-tp-s .ts-ln { background: rgba(232,235,219,.38); margin-bottom: 12px; }
.s5-tp-btn { left: 44px; top: 292px; width: 150px; height: 42px; border-radius: 999px; background: var(--c-cream); }
.s5-tp-logo { left: 466px; top: 88px; width: 240px; height: 221px; }
.s5-b1 .s5-tp-bg, .s5-b2 .s5-tp-bg { border-radius: 0 0 15px 15px; }

/* 1 · monitor */
.s5-mon { position: relative; width: 600px; height: 414px; margin-top: 44px; flex: 0 0 auto; }
.s5-mon-halo { position: absolute; left: -160px; top: -110px; right: -160px; bottom: -60px; background: radial-gradient(closest-side, rgba(255,230,171,.16), rgba(255,230,171,0)); opacity: 0; }
.s5-scr { position: absolute; left: 0; top: 0; width: 600px; height: 372px; padding: 14px; border-radius: 16px; background: #0e100a; border: 2px solid rgba(254,246,225,.14); }
.s5-scr-in { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 6px; background: #0b0c08; }
.s5-b1 { top: 0; height: 455px; transform-origin: 0 0; scale: .7474; border-radius: 0; border: 0; opacity: 0; }
.s5-neck { position: absolute; left: 276px; top: 372px; width: 48px; height: 34px; background: #21241B; }
.s5-foot { position: absolute; left: 170px; top: 404px; width: 260px; height: 8px; border-radius: 4px; background: rgba(254,246,225,.16); }

/* 2 · the page comes apart */
.s5-cam { position: absolute; inset: 0; }
.s5-b2 { top: 90px; height: 460px; overflow: visible; }
.s5-space { position: absolute; inset: -40px; opacity: 0; background-image: linear-gradient(rgba(254,246,225,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(254,246,225,.05) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(closest-side, #000 40%, transparent); mask-image: radial-gradient(closest-side, #000 40%, transparent); }
.s5-b2 .s5-pg { overflow: visible; }

/* 3 · four blocks */
.s5-b3-nav { position: absolute; left: 26px; top: 20px; display: flex; align-items: center; gap: 18px; }
.s5-b3-nav .ts-ln { background: rgba(254,246,225,.32); }
.s5-blk { position: absolute; width: 345px; height: 200px; padding: 18px 20px; border-radius: 12px; border: 1px solid rgba(254,246,225,.14); background: rgba(254,246,225,.04); }
.s5-blk > b { display: block; margin-bottom: 18px; font: 500 15px/1 var(--font-body, sans-serif); letter-spacing: .12em; text-transform: uppercase; color: var(--c-amber); }
.s5-blk > .ts-ln { height: 10px; margin-bottom: 14px; background: rgba(232,235,219,.26); }
.s5-blk0 { left: 26px; top: 64px; } .s5-blk1 { left: 389px; top: 64px; }
.s5-blk2 { left: 26px; top: 282px; } .s5-blk3 { left: 389px; top: 282px; }
.s5-svc { display: flex; gap: 16px; }
.s5-svc span { flex: 1; }
.s5-svc span i { display: block; height: 70px; margin-bottom: 14px; border-radius: 10px; border: 1.5px solid rgba(217,178,122,.5); background: rgba(217,178,122,.1); }
.s5-svc .ts-ln { height: 8px; }
.s5-pf { display: flex; gap: 12px; }
.s5-pf i { position: relative; flex: 1; height: 120px; }
.s5-send { position: absolute; left: 20px; bottom: 22px; width: 140px; height: 38px; border-radius: 999px; background: #7A1F12; }
.s5-blk3 .ts-cursor { left: 96px; bottom: 16px; opacity: 0; }

/* 4 · split: simple + rich */
.s5-sim, .s5-rich { width: 760px; }
.s5-rich { opacity: 0; }
.s5-sim .s5-pg > *, .s5-rich .s5-pg > * { position: absolute; }
.s5-sp-bg { inset: 0; background: var(--c-cream); }
.s5-sp-nav, .s5-rc-nav { left: 22px; top: 20px; display: flex; align-items: center; gap: 14px; }
.s5-sp-nav .dot { background: #2A2416; }
.s5-sp-nav .ts-ln, .s5-sp-h .ts-ln, .s5-sp-p .ts-ln { background: #2A2416; }
.s5-sp-nav .ts-ln { opacity: .35; }
.s5-sp-h { left: 22px; top: 70px; } .s5-sp-h .ts-ln { margin-bottom: 12px; border-radius: 6px; }
.s5-sp-img { left: 22px; right: 22px; top: 150px; height: 170px; border-radius: 10px; background: rgba(128,136,112,.28); }
.s5-sp-p { left: 22px; right: 22px; top: 344px; } .s5-sp-p .ts-ln { opacity: .3; margin-bottom: 12px; }
.s5-sp-btn { left: 22px; top: 420px; width: 120px; height: 34px; border-radius: 999px; background: #7A1F12; }
.s5-rc-bg { inset: 0; background: radial-gradient(90% 70% at 70% 20%, #2c3124 0%, #14160F 70%); }
.s5-rc-nav .ts-ln { background: rgba(254,246,225,.35); }
.s5-rc-hero { left: 22px; right: 22px; top: 62px; height: 196px; }
.s5-rc-h { position: absolute; left: 20px; bottom: 22px; }
.s5-rc-h .ts-ln { background: var(--c-cream); margin-top: 10px; border-radius: 6px; }
.s5-orb { position: absolute; border-radius: 50%; opacity: 0; }
.s5-orb.a { left: 190px; top: 26px; width: 74px; height: 74px; background: radial-gradient(circle at 35% 30%, #FFE6AB, rgba(255,230,171,.15) 70%); }
.s5-orb.b { left: 260px; top: 104px; width: 40px; height: 40px; border: 2px solid rgba(254,246,225,.8); }
.s5-orb.c { left: 136px; top: 40px; width: 18px; height: 18px; background: var(--c-cream); }
.s5-rc-card { top: 280px; width: 100px; height: 120px; }
.s5-rc-tick { left: 22px; right: 22px; top: 430px; height: 6px; border-radius: 3px; background: rgba(254,246,225,.12); overflow: hidden; }
.s5-rc-tick i { position: absolute; left: 0; top: 0; width: 76px; height: 100%; border-radius: 3px; background: var(--c-amber); }

/* modern site (01 + 04), page area 760x500 */
.s5-m { position: absolute; inset: 0; }
.s5-m > * { position: absolute; }
.s5-m-nav { left: 26px; right: 26px; top: 18px; display: flex; align-items: center; gap: 18px; }
.s5-m-nav .ts-ln { background: rgba(254,246,225,.32); }
.s5-m-nav span { margin-left: auto; width: 96px; height: 28px; border-radius: 999px; background: var(--c-cream); }
.s5-m-hero { left: 26px; top: 66px; width: 340px; height: 216px; }
.s5-m-h { left: 394px; top: 92px; } .s5-m-h .ts-ln { background: var(--c-cream); border-radius: 6px; margin-bottom: 12px; }
.s5-m-s { left: 394px; top: 176px; } .s5-m-s .ts-ln { margin-bottom: 12px; }
.s5-m-btn { left: 394px; top: 238px; width: 130px; height: 38px; border-radius: 999px; background: #7A1F12; }
.s5-m-card { top: 304px; width: 220px; height: 150px; padding: 12px; border-radius: 12px; border: 1px solid var(--c-line); background: rgba(254,246,225,.04); }
.s5-m-card .ts-tile { position: relative; display: block; height: 80px; margin-bottom: 12px; border-radius: 8px; }
.s5-m-card .ts-ln { height: 9px; margin-bottom: 9px; }
.s5-m-foot { left: 26px; right: 26px; top: 472px; display: flex; gap: 20px; } .s5-m-foot .ts-ln { opacity: .6; }
.s5-guides { position: absolute; inset: 0 26px; display: flex; justify-content: space-between; opacity: 0; }
.s5-guides i { width: 0; border-left: 1px dashed rgba(217,178,122,.22); }

/* 02 interactive cards */
.s5-i-h { position: absolute; left: 26px; top: 50px; }
.s5-i-h .ts-ln:first-child { background: var(--c-cream); }
.s5-cw { position: absolute; top: 176px; width: 220px; height: 290px; }
.s5-cd { position: absolute; inset: 0; padding: 14px; border-radius: 14px; border: 1px solid rgba(254,246,225,.14); background: #22251c; }
.s5-cd .ts-tile { position: relative; display: block; height: 150px; margin-bottom: 16px; }
.s5-cd .ts-ln { margin-bottom: 11px; height: 9px; }
.s5-cd span { position: absolute; left: 14px; bottom: 16px; width: 90px; height: 28px; border-radius: 999px; border: 1.5px solid rgba(254,246,225,.4); }
.s5-i-cur { left: 0; top: 0; opacity: 0; width: 24px; height: 24px; }

/* 03 company site, scrolled */
.s5-bc { top: 30px; height: 560px; }
.s5-sc { position: absolute; left: 0; top: 0; width: 100%; height: 1100px; }
.s5-sc > div { position: absolute; left: 0; right: 0; }
.s5-c-hero { top: 0; height: 290px; background: radial-gradient(80% 90% at 75% 30%, #2c3124, #1a1c14); }
.s5-c-hl { position: absolute; left: 30px; top: 56px; }
.s5-c-hl .ts-ln { margin-bottom: 12px; }
.s5-c-hl .ts-ln:nth-child(-n+2) { background: var(--c-cream); border-radius: 6px; }
.s5-c-btn { display: block; width: 130px; height: 36px; margin-top: 22px; border-radius: 999px; background: #7A1F12; }
.s5-c-hero .ts-tile { left: 420px; top: 40px; width: 300px; height: 210px; }
.s5-c-svc { top: 316px; height: 190px; display: flex; gap: 20px; padding: 0 30px; }
.s5-c-svc > div { flex: 1; padding: 20px; border-radius: 12px; border: 1px solid var(--c-line); }
.s5-c-svc i { display: block; width: 50px; height: 50px; margin-bottom: 20px; border-radius: 12px; border: 1.5px solid rgba(217,178,122,.6); }
.s5-c-svc .ts-ln { height: 9px; margin-bottom: 11px; }
.s5-c-num { top: 530px; height: 120px; display: flex; justify-content: space-around; align-items: center; background: rgba(254,246,225,.05); border-block: 1px solid var(--c-line); }
.s5-c-num .ts-ln:first-child { background: var(--c-amber); border-radius: 8px; margin-bottom: 12px; }
.s5-c-about { top: 676px; height: 220px; display: flex; gap: 30px; padding: 0 30px; align-items: center; }
.s5-c-about .ts-tile { position: relative; flex: 0 0 300px; height: 200px; }
.s5-c-about > div { flex: 1; } .s5-c-about .ts-ln:first-child { background: var(--c-cream); } .s5-c-about .ts-ln { margin-bottom: 11px; }
.s5-c-foot { top: 920px; height: 180px; padding: 40px 30px; display: flex; justify-content: space-between; align-items: flex-start; background: #0f110b; }
.s5-c-foot .ts-ln { margin-bottom: 10px; } .s5-c-foot .ts-ln:first-child { background: rgba(254,246,225,.6); }
.s5-c-foot .s5-c-btn { margin-top: 6px; }
.s5-thumb { position: absolute; right: 5px; top: 0; width: 5px; height: 246px; border-radius: 3px; background: rgba(254,246,225,.25); }

/* 04 old site -> new */
.s5-old { border-radius: 4px; background: #2a2c25; }
.s5-old .s5-bar { height: 40px; background: #34372e; }
.s5-old .s5-bar b, .s5-old .s5-bar i { border-radius: 2px; }
.s5-new { clip-path: inset(0px 100% 0px 0px); }
.s5-o { position: absolute; inset: 14px; border: 1px solid rgba(232,235,219,.28); background: #30332a; }
.s5-o .ts-ln { height: 5px; border-radius: 0; background: rgba(232,235,219,.32); margin-bottom: 7px; }
.s5-o > * { position: absolute; }
.s5-o-head { left: 0; right: 0; top: 0; height: 66px; padding: 16px; border-bottom: 1px solid rgba(232,235,219,.28); background: #3a3d33; }
.s5-o-head .ts-ln:first-child { height: 9px; background: rgba(232,235,219,.5); margin-bottom: 10px; }
.s5-o-menu { left: 0; right: 0; top: 66px; height: 28px; display: flex; border-bottom: 1px solid rgba(232,235,219,.28); }
.s5-o-menu i { flex: 1; border-right: 1px solid rgba(232,235,219,.28); background: rgba(128,136,112,.18); }
.s5-o-side { left: 0; top: 94px; bottom: 30px; width: 150px; padding: 14px 12px; border-right: 1px solid rgba(232,235,219,.28); }
.s5-o-side .ts-ln { margin-bottom: 14px; background: rgba(160,170,200,.0); background: rgba(232,235,219,.38); }
.s5-o-tab { left: 162px; top: 106px; right: 12px; width: calc(100% - 174px); border-collapse: separate; border-spacing: 6px; border: 1px solid rgba(232,235,219,.28); }
.s5-o-tab td { height: 150px; padding: 8px; vertical-align: top; border: 1px solid rgba(232,235,219,.28); }
.s5-o-tab td i { display: block; height: 80px; margin-bottom: 10px; background: #4a4e40; border: 1px solid rgba(232,235,219,.2); }
.s5-o-foot { left: 0; right: 0; bottom: 0; height: 30px; padding: 12px; border-top: 1px solid rgba(232,235,219,.28); }
.s5-wipe { position: absolute; left: -1px; top: 34px; width: 3px; height: 552px; border-radius: 2px; background: var(--c-amber); box-shadow: 0 0 18px 2px rgba(255,230,171,.45); opacity: 0; }

/* 05 maintenance */
.s5-be { top: 60px; width: 720px; }
.s5-row { position: absolute; left: 26px; width: 420px; height: 96px; display: flex; align-items: center; gap: 20px; border-bottom: 1px solid var(--c-line); }
.s5-row:nth-of-type(2) { top: 70px; } .s5-row:nth-of-type(3) { top: 180px; } .s5-row:nth-of-type(4) { top: 290px; }
.s5-row > div { flex: 1; }
.s5-row .ts-ln:first-child { background: rgba(232,235,219,.42); }
.s5-row em { width: 54px; height: 22px; border-radius: 999px; background: rgba(128,136,112,.35); }
.s5-box { position: relative; width: 30px; height: 30px; border-radius: 8px; border: 1.5px solid rgba(232,235,219,.4); flex: 0 0 auto; }
.s5-box svg { position: absolute; inset: -1.5px; width: 30px; height: 30px; }
.s5-box path { stroke: var(--c-lamp); stroke-width: 3; }
.s5-upd { position: absolute; left: 476px; top: 76px; width: 218px; height: 200px; }
.s5-upd i { position: absolute; inset: 0; border-radius: 10px; }
.s5-upd .old { background: rgba(128,136,112,.25); border: 1px dashed rgba(232,235,219,.3); }
.s5-upd .new { opacity: 0; }
.s5-upd-l { position: absolute; left: 476px; top: 300px; width: 218px; } .s5-upd-l .ts-ln { margin-bottom: 12px; }
.s5-ref { position: absolute; left: 616px; top: 0; width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; background: #21241B; border: 1.5px solid rgba(217,178,122,.6); box-shadow: 0 20px 40px -18px rgba(0,0,0,.8), 0 0 40px rgba(255,230,171,.12); opacity: 0; }
.s5-ref svg { width: 64px; height: 64px; fill: none; stroke: var(--c-lamp); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* 6a · 2007 — the one deliberate break from the palette */
.s5-mini { position: absolute; top: 32%; width: 24%; height: 32%; opacity: 0; }
.s5-mini.a { left: 14%; } .s5-mini.b { right: 14%; }
.s5-mini .s5-br { inset: 0; top: 0; width: auto; height: auto; }
.s5-mini .s5-pg > span { position: absolute; inset: 0; }
.s5-gar { position: absolute; left: 13%; top: 10%; width: 74%; height: 76%; opacity: 0; display: flex; flex-direction: column; gap: 14px; padding: 18px; border: 6px ridge #c0c0c0; background: #00FFFF repeating-linear-gradient(45deg, #00FFFF 0 22px, #66FFFF 22px 44px); font-family: "Comic Sans MS", "Comic Sans", cursive; overflow: hidden; }
.s5-g-top { flex: 0 0 auto; height: 110px; overflow: hidden; display: flex; align-items: center; justify-content: center; border: 4px outset #FFFF00; background: #FFFF00; }
.s5-g-mq { white-space: nowrap; font: 700 72px/1 "Comic Sans MS", "Comic Sans", cursive; color: #FF00FF; text-shadow: 3px 3px 0 #0000EE; }
.s5-g-hr { flex: 0 0 auto; height: 10px; background: linear-gradient(90deg, #FF0000, #FFFF00, #00FF00, #00FFFF, #0000FF, #FF00FF); }
.s5-g-row { flex: 1; display: flex; gap: 14px; min-height: 0; }
.s5-g-side { flex: 0 0 28%; padding: 16px; background: #7CFC00; border: 3px inset #c0c0c0; display: flex; flex-direction: column; gap: 14px; }
.s5-g-side a { font: 400 30px/1.1 "Times New Roman", Times, serif; color: #0000EE; text-decoration: underline; }
.s5-g-mid { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 14px; background: #FF00FF; border: 3px inset #c0c0c0; }
.s5-g-uc { flex: 1; background: repeating-linear-gradient(-45deg, #FFFF00 0 18px, #000 18px 36px); border: 2px solid #000; }
.s5-g-cnt { flex: 0 0 auto; align-self: flex-end; display: flex; gap: 3px; padding: 6px; background: #000; border: 3px outset #c0c0c0; }
.s5-g-cnt b { width: 30px; height: 46px; display: grid; place-items: center; background: #222; color: #7CFC00; font: 700 32px/1 "Courier New", monospace; }
.s5-g-star { position: absolute; font: 700 64px/1 "Times New Roman", serif; color: #FFFF00; text-shadow: 2px 2px 0 #FF0000; }
.s5-g-star.a { right: 3%; top: 26%; } .s5-g-star.b { left: 2%; bottom: 3%; color: #FF00FF; text-shadow: 2px 2px 0 #FFFF00; } .s5-g-star.c { right: 30%; bottom: 4%; color: #FF0000; }
.ts--tall .s5-gar { left: 6%; width: 88%; top: 14%; height: 70%; }
.ts--tall .s5-g-row { flex-direction: column; }
.ts--tall .s5-g-side { flex: 0 0 auto; flex-direction: row; flex-wrap: wrap; }
.ts--tall .s5-g-mq { font-size: 64px; }
.ts--tall .s5-mini { width: 36%; height: 26%; top: 37%; } .ts--tall .s5-mini.a { left: 8%; } .ts--tall .s5-mini.b { right: 8%; }
