/* Site styles added in the 2026-11 rework: embedded online app card, screenshots, facts block, home, app banner, brand. */
/* Embedded online app (src/calc/embed.mjs) */
.calc-card.native{display:block}
.calc-card.native .calc-frame{height:660px}
.article .embed.app{border:0;overflow:visible;background:none;margin:18px 0}
.article .embed.app .calc-frame{height:640px}
.calc-fallback{border:0}
.calc-shell .calc-fallback,.article .embed.app .calc-fallback{border:0;padding:10px 4px 0;text-align:center}
@media(max-width:859px){ .calc-card.native .calc-frame,.article .embed.app .calc-frame{height:620px} }
@media print{ .calc-card,.calc-fallback{display:none!important} }
/* screenshots of the app */
.shots{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:16px;margin:22px 0;padding:0}
.shots figure{margin:0;text-align:center}
.shots img{width:100%;height:auto;border-radius:22px;border:1px solid var(--line);box-shadow:0 18px 40px -28px rgba(0,0,0,.45);background:#fff}
.shots figcaption{font-size:13px;color:var(--muted);margin-top:8px;line-height:1.4}
.shot-wide img{border-radius:14px}
.glance{border:1px solid var(--line);border-radius:14px;background:var(--paper-2);padding:14px 18px;margin:18px 0}
.glance ul{margin:6px 0 0;padding-inline-start:20px}
.glance p{margin:0;font-weight:800}
.updated{font-size:13px;color:var(--muted);margin:-4px 0 14px}
.article table{border-collapse:collapse;width:100%;margin:14px 0;font-size:15px}
.article th,.article td{border:1px solid var(--line);padding:7px 9px;text-align:start;vertical-align:top}
.article th{background:var(--paper-2)}
/* home page (en) */
.hero h1 .h1-2{display:inline}
@media(min-width:980px){ .hero h1 .h1-2{display:block} }
.how-list{max-width:760px;padding-inline-start:22px;display:grid;gap:10px;margin:20px 0}
.how-list code,.article code{font-family:var(--mono);background:var(--paper-2);border:1px solid var(--line);border-radius:6px;padding:0 5px}
.table-wrap{overflow-x:auto;max-width:760px}
.home-how table{border-collapse:collapse;width:100%;font-size:15px}
.home-how th,.home-how td{border:1px solid var(--line);padding:7px 9px;text-align:start}
.home-how th{background:var(--paper-2)}
.home-how h3{margin-top:26px}
/* home hero: the live calculator card on the right (like the old embedded app) */
.calc-card.native{display:block}
.calc-shell .calc-fallback{border:0;padding:10px 4px 0}
.home-updated{text-align:center;margin:14px auto 0}
@media(max-width:859px){ .calc-shell{margin-top:6px} }
/* phone app banner: on top, above the header (was a fixed bar at the bottom) */
.install-bar{position:relative;left:auto;right:auto;bottom:auto;border-radius:0;box-shadow:none;padding:8px 12px;z-index:41}
.install-bar .go{padding:8px 12px;white-space:nowrap}
@media(max-width:859px){ .hero .trust{display:none} }
/* brand: the owner's logo (D:\BootCamp\TimeCardCalculator\Logos) */
.brand .brand-logo{display:block;height:40px;width:auto}
@media(max-width:420px){ .brand .brand-logo{height:34px} }
.install-bar img.ic{width:38px;height:38px;border-radius:9px;background:none;flex:none}
a.ti{text-decoration:none;cursor:pointer;transition:border-color .15s,color .15s}
a.ti:hover{border-color:var(--accent);color:var(--accent)}
a.ti:hover svg{color:var(--accent)}
.brand .brand-icon{display:block;width:36px;height:36px;border-radius:9px}
/* language menu as on secureauthor.com: code badge + native and English name */
.langmenu>summary.lang{gap:6px;font-weight:800;color:var(--ink);padding:6px 10px;border-radius:999px}
.langmenu>summary.lang .lang-code{letter-spacing:.03em}
.langmenu[open]>summary.lang{border-color:var(--accent)}
.langmenu[open] .lang-caret{transform:rotate(180deg)}
.langlist{min-width:300px}
.langlist a{display:grid;grid-template-columns:52px 1fr 18px;align-items:center;gap:10px;padding:7px 8px}
.langlist a[hidden]{display:none}
.lang-badge{justify-self:start;font:800 12px/1 var(--mono);padding:6px 7px;border-radius:7px;background:var(--paper-2);color:var(--accent);border:1px solid var(--line)}
.langlist a[aria-current="page"] .lang-badge{background:var(--accent);color:#fff;border-color:var(--accent)}
.lang-names{display:grid;line-height:1.2}
.lang-names strong{font-weight:700;font-size:14px}
.lang-names small{color:var(--muted);font-size:12px;margin-top:2px}
.lang-check{color:var(--accent)}
/* wide screenshots (Chrome extension 1280×800) */
.shots.wide{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}
.shots.wide img{border-radius:12px}
/* Phones (owner 2026-11-18): the calculator card edge to edge, the frame almost a full screen high,
   and an "Open full screen" button in the card header instead of the line below the card. */
.calc-head .calc-open{display:none}
@media(max-width:640px){
  html{overflow-x:clip}
  .calc-card.native{width:100vw;margin-inline:calc(50% - 50vw);border-radius:0;border-left:0;border-right:0;box-shadow:none}
  .calc-card.native .calc-frame,.article .embed.app .calc-frame{height:calc(100svh - 112px);min-height:520px;max-height:860px}
  .calc-head{padding:8px 12px}
  .calc-head .t{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .calc-head .live{display:none}
  .calc-head .calc-open{display:inline-block;margin-inline-start:auto;flex:none;background:var(--accent);color:#fff;font-weight:700;font-size:13px;border-radius:9px;padding:7px 11px;text-decoration:none;white-space:nowrap}
  .calc-card.native + .calc-fallback,.article .embed.app .calc-fallback{display:none}
}
