
/* ---- the public website (owner, 3 Nov 2026; design "The public website" on the portal canvas) ---- */
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 14px; border-radius: var(--radius); background: var(--panel); }
.skip-link:focus { left: 8px; }
.site { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); font-size: 16px; line-height: 1.5; }
.site-main { flex: 1; outline: none; }
.site-wrap { max-width: 1160px; margin: 0 auto; padding: 0 32px; box-sizing: border-box; width: 100%; }
.site-head { background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.site-bar { max-width: 1160px; margin: 0 auto; padding: 0 32px; box-sizing: border-box; min-height: 68px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.site-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); font-weight: 600; font-size: 17px; margin-right: 12px; }
.site-nav { flex: 1 1 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.site-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px; color: var(--fg); text-decoration: none; font-weight: 500; }
.site-link:hover { background: var(--hover); color: var(--fg); }
.site-link.current { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.site-nav-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.site-menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 8px; background: none; color: var(--fg); cursor: pointer; place-items: center; }
.site-section { padding: 56px 0; }
.site-section-alt { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.site-section-last { padding-top: 0; padding-bottom: 72px; }
.site-h1 { margin: 0; font-size: 40px; line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; }
.site-h2 { margin: 0; font-size: 30px; line-height: 1.2; font-weight: 600; max-width: 760px; }
.site-lead { margin: 0; font-size: 18px; color: var(--fg-2); max-width: 680px; }
.stack-lg { display: flex; flex-direction: column; gap: 28px; }
.pad-lg { padding: 28px; }
.self-start { align-self: flex-start; }
.button.ghost { border: 0; background: none; color: var(--accent); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.two-up { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.two-up > * { flex: 1 1 360px; min-width: 0; }
.site-foot { background: var(--panel); border-top: 1px solid var(--line); }
.site-foot-inner { padding-top: 28px; padding-bottom: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.site-foot-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.site-foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; }
.small-mark { width: 22px; height: 22px; border-radius: 6px; font-size: 10px; }
.tiny-mark { width: 18px; height: 18px; border-radius: 5px; font-size: 9px; background: #5AA9E6; color: #2E3440; }
/* home */
.home-hero { padding: 64px 0 72px; background: var(--panel); border-bottom: 1px solid var(--line); }
.home-hero-inner { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.home-hero-text { flex: 1 1 440px; display: flex; flex-direction: column; gap: 20px; }
.home-kicker { margin: 0; font-size: 14px; font-weight: 600; color: var(--accent); }
.home-title { margin: 0; font-size: 48px; line-height: 1.12; font-weight: 600; letter-spacing: -0.01em; }
.home-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; max-width: 520px; }
.home-steps li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; border: 1px solid transparent; }
.home-steps li.is-on { background: var(--panel); border-color: #C9DCEE; }
.home-steps li > span:last-child { display: flex; flex-direction: column; }
.home-steps li > span:last-child > span { color: var(--muted); font-size: 15px; }
.home-step-num { flex: none; width: 28px; height: 28px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 600; font-size: 14px; }
.home-steps li.is-on .home-step-num { background: var(--accent); color: #FFFFFF; }
.home-pane { flex: 1 1 420px; max-width: 520px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 48px rgba(27, 31, 36, .12); overflow: hidden; font-size: 13px; }
.home-pane-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #2E3440; color: #EEF1F5; }
.home-pane-head > span:last-child { color: #B8BFCA; }
.home-pane-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.home-pane-title { display: flex; flex-direction: column; gap: 2px; }
.home-pane-title strong { font-size: 14px; }
.home-pane-title span { color: var(--muted); }
.home-pane-search { display: flex; gap: 8px; align-items: center; }
.home-pane-search > span:first-child { flex: 1; min-height: 34px; padding: 0 10px; border: 1px solid var(--accent); border-radius: 6px; display: flex; align-items: center; }
.home-seg { display: flex; border: 1px solid var(--field); border-radius: 6px; overflow: hidden; }
.home-seg > * { padding: 6px 9px; }
.home-seg > * + * { border-left: 1px solid var(--field); }
.home-seg b { background: var(--accent); color: #FFFFFF; font-weight: 600; }
.home-pane ul { list-style: none; margin: 0; padding: 0; border: 1px solid #ECECEC; border-radius: 6px; }
.home-pane li { display: flex; gap: 10px; padding: 7px 10px; border-top: 1px solid #ECECEC; }
.home-pane li:first-child { border-top: 0; }
.home-pane li.on { background: #EAF2FA; }
.home-pane li .mono { color: var(--accent); min-width: 56px; }
.home-pane-note { padding: 8px 10px; border-radius: 6px; background: #F7F7F7; color: var(--fg-2); }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.feature h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; }
.feature p { color: var(--fg-2); font-size: 15px; }
.kind-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.kind-grid li { display: flex; flex-direction: column; gap: 6px; }
.kind-grid li span { color: var(--fg-2); font-size: 15px; }
.feature-grid .feature, .kind-grid li { transition: transform .18s cubic-bezier(.34, 1.56, .64, 1), box-shadow .18s ease, border-color .18s ease; }
.feature-grid .feature:hover, .kind-grid li:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 12px 28px rgba(27, 31, 36, .12); border-color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .feature-grid .feature, .kind-grid li { transition: none; } .feature-grid .feature:hover, .kind-grid li:hover { transform: none; } }
.cta-band { padding: 36px 40px; border-radius: 16px; background: var(--accent); color: #FFFFFF; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.cta-band h2 { font-size: 26px; }
.cta-band p { color: #DCE8F4; }
.button.cta-light { background: #FFFFFF; color: var(--accent); border: 0; font-weight: 600; }
.button.cta-outline { background: transparent; color: #FFFFFF; border: 1px solid #8FB4D8; }
/* pricing */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.price-main { border: 2px solid var(--accent); }
.price { margin: 0; }
.price strong { font-size: 36px; font-weight: 600; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ticks li { padding-left: 26px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 12px; height: 7px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
/* embeds (Blog, Downloads, Support: pages from Family Browser NextGen's site) */
.site-embed iframe { width: 100%; min-height: 900px; border: 0; border-radius: 12px; background: var(--panel); }
.site-embed-empty { min-height: 240px; display: grid; place-items: center; text-align: center; }
.contact-form textarea.text { min-height: 140px; padding: 10px 12px; resize: vertical; font: inherit; }
@media (max-width: 820px) {
  .site-menu-btn { display: grid; }
  .site-nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; padding-bottom: 12px; }
  .site-nav.is-open { display: flex; }
  .site-nav-end { margin-left: 0; padding-top: 8px; }
  .home-title { font-size: 36px; }
  .site-h1 { font-size: 32px; }
}

/* ---- the signed-in portal's top bar (as Family Browser NextGen's) ---- */
.page-col { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; }
.topbar { min-height: 60px; box-sizing: border-box; padding: 10px 48px; background: var(--panel); border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.topbar-site { display: inline-flex; align-items: center; gap: 8px; }
.topbar-user { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 8px; }
.topbar-user .avatar { width: 32px; height: 32px; font-size: 13px; }
.topbar-user-text { display: flex; flex-direction: column; line-height: 1.25; }
.topbar-user-text strong { font-size: 14px; }
.topbar-user-text span { font-size: 12px; color: var(--muted); }
@media (max-width: 760px) { .topbar { padding: 8px 16px; } }

.page-col > .page { flex: 1 0 auto; }
.bare a.brand { text-decoration: none; color: inherit; }

/* Blazor moves the focus to the page heading on each page (FocusOnNavigate, for screen readers): no outline for it. */
h1:focus, h1:focus-visible { outline: none; }
.site-embed-section { padding: 24px 0 56px; }

/* ---- the privacy policy (/privacy; as Family Browser NextGen's) ---- */
.privacy-page { max-width: 900px; }
.privacy { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 32px clamp(18px, 4vw, 44px); line-height: 1.6; }
.privacy h1 { font-size: clamp(28px, 4vw, 36px); line-height: 1.15; margin: 0 0 6px; letter-spacing: -0.01em; }
.privacy-meta { color: var(--muted); margin: 0 0 24px; font-size: 14px; }
.privacy h2 { font-size: 20px; margin: 36px 0 8px; padding-top: 20px; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.privacy h3 { font-size: 16px; margin: 20px 0 4px; }
.privacy p, .privacy li { color: var(--fg-2); }
.privacy p { margin: 8px 0; }
.privacy ul { padding-left: 22px; }
.privacy li { margin: 4px 0; }
.privacy-summary { background: var(--accent-soft); border-radius: 10px; padding: 14px 18px; margin: 0 0 8px; }
.privacy-summary p { margin: 6px 0; color: var(--fg); }
.privacy-toc { margin: 18px 0 0; font-size: 15px; }
.privacy-toc ol { margin: 6px 0 0; padding-left: 22px; columns: 2; column-gap: 32px; }
@media (max-width: 600px) { .privacy-toc ol { columns: 1; } }
.privacy-table { overflow-x: auto; }
.privacy table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0; }
.privacy th, .privacy td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.privacy th { color: var(--muted); font-weight: 600; font-size: 14px; }

/* ---- Blog (owner, 3 Nov 2026): Family Browser NextGen's blog styles, copied, on EasyKeynoter's tokens ---- */
@keyframes ek-pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.is-skeleton { min-height: 160px; background: var(--panel-alt); border: 1px solid var(--line-soft); border-radius: 12px; animation: ek-pulse 1.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .is-skeleton { animation: none; } }
.blog-top { margin-top: 24px; }
.blog-crumbs + .blog-layout, .blog-crumbs + .muted { margin-top: 16px; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.post-card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
             overflow: hidden; color: var(--fg); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.post-card:hover { border-color: #B9CFE4; box-shadow: 0 6px 18px rgba(27, 31, 36, 0.10); }
.post-card.is-skeleton { min-height: 280px; }
.post-image { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--panel-alt); }
.post-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; }
.post-title { font-weight: 600; font-size: 17px; line-height: 1.3; }
.post-summary { color: var(--fg-2); font-size: 14px; line-height: 1.5; }
.post-meta { margin: 0; }
.post-page { max-width: 780px; }
.post { display: flex; flex-direction: column; gap: 18px; }
.post-hero { width: 100%; max-height: 420px; object-fit: cover; border-radius: 12px; }

.prose { line-height: 1.65; overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius); }
.prose pre { overflow-x: auto; background: var(--panel-alt); padding: 12px; border-radius: var(--radius); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; }
.prose code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .92em; }
.prose blockquote { margin: 16px 0; padding: 4px 16px; border-left: 3px solid #B9CFE4; color: var(--fg-2); }
.prose table { border-collapse: collapse; display: block; overflow-x: auto; max-width: 100%; }
.prose th, .prose td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; }
.prose h1, .prose h2, .prose h3 { line-height: 1.25; margin: 28px 0 10px; }
/* Pictures in blog posts and build notes (backlog 110): size, position and text wrap, set in the editor's Picture bar.
   Only these classes survive HtmlAllowList. Sizes are a share of the text column, so they work on any screen. */
.prose::after { content: ""; display: table; clear: both; }
.prose img.img-s { width: 25%; }
.prose img.img-m { width: 50%; }
.prose img.img-l { width: 75%; }
.prose img.img-full { width: 100%; }
.prose img.img-left, .prose img.img-center, .prose img.img-right { display: block; margin: 14px 0; }
.prose img.img-center { margin-left: auto; margin-right: auto; }
.prose img.img-right { margin-left: auto; }
.prose img.img-left.img-wrap { float: left; margin: 4px 20px 12px 0; }
.prose img.img-right.img-wrap { float: right; margin: 4px 0 12px 20px; }
/* On a phone a wrapped picture leaves too little room for the text beside it: it sits above the text instead. */
@media (max-width: 560px) {
    .prose img.img-wrap { float: none; margin: 14px auto; }
    .prose img.img-s, .prose img.img-m { width: 100%; max-width: 360px; }
}

.blog-layout { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; margin-top: 24px; }
.blog-side { flex: 1 1 260px; max-width: 100%; display: flex; flex-direction: column; gap: 16px; }
.blog-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.blog-box { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 0; }
.blog-box-tree { padding: 12px 8px; }
.blog-box-h { display: block; margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--fg-2); }
.blog-box-tree > .blog-box-h { margin: 0 8px 6px; }
.blog-box-note { margin: -4px 0 10px; font-size: 12px; color: var(--muted); }
.blog-search { position: relative; display: flex; align-items: center; }
.blog-search .text { width: 100%; padding-left: 36px; }
.blog-search-icon { position: absolute; left: 12px; color: var(--muted); pointer-events: none; }
.blog-tree, .blog-tree-sub { list-style: none; margin: 0; padding: 0; }
.blog-tree-sub { margin: 0 0 4px 41px; padding-left: 8px; border-left: 1px solid var(--line); }
.blog-tree-months { margin-left: 21px; }
.blog-tree-row { display: flex; align-items: center; }
.blog-tree-toggle { flex: none; width: 28px; height: 38px; display: grid; place-items: center; border: 0; background: transparent; border-radius: 6px; color: var(--muted); cursor: pointer; }
button.blog-tree-toggle:hover { background: var(--panel-alt); }
.blog-chev { flex: none; transition: transform .15s; }
.blog-chev.is-open { transform: rotate(90deg); }
.blog-tree-link, .blog-tree-year { flex: 1 1 auto; display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 6px 10px 6px 6px; border-radius: var(--radius); color: var(--fg); text-decoration: none; font-size: 14px; }
.blog-box-tree > .blog-tree-link { padding-left: 34px; }
.blog-tree-sub .blog-tree-link { padding-left: 10px; min-height: 36px; }
.blog-tree-year { width: 100%; border: 0; background: transparent; font: inherit; font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; color: var(--fg); }
.blog-tree-year .blog-chev { color: var(--muted); }
.blog-tree-link:hover, .blog-tree-year:hover { background: var(--panel-alt); text-decoration: none; }
.blog-tree-link.is-on { background: var(--accent-soft); color: var(--accent-dark); font-weight: 600; }
.blog-tree-name { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.blog-count { font-size: 12px; font-weight: 400; color: var(--muted); }
.blog-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.blog-tag { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 11px; box-sizing: border-box; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--fg-2); font-size: 13px; text-decoration: none; }
.blog-tag:hover { border-color: #B9CFE4; text-decoration: none; }
.blog-tag.is-on { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.blog-tag.is-on .blog-count { color: inherit; opacity: .85; }
.blog-related { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.blog-related li { display: flex; flex-direction: column; gap: 2px; }
.blog-related a { font-weight: 500; line-height: 1.35; }
.blog-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 16px; }
.blog-head-text { flex: 1 1 auto; min-width: 0; }
.blog-head-text p { margin: 0; }
.blog-head-text h2 { margin: 2px 0 0; font-size: 22px; letter-spacing: -0.01em; }
.blog-sort { flex: 0 0 170px; }
.blog-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; background: var(--accent-soft); border: 1px solid #B9CFE4; border-radius: 10px; }
.blog-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 4px 2px 10px; background: var(--panel); border: 1px solid #B9CFE4; border-radius: 999px; font-size: 13px; }
.blog-chip strong { font-weight: 600; }
.blog-chip-x { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: var(--fg-2); }
.blog-chip-x:hover { background: var(--panel-alt); }
.blog-chip-clear { font-size: 13px; font-weight: 600; padding: 6px 4px; }
.blog-crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); }
.post-card-main { display: flex; flex-direction: column; flex: 1 1 auto; color: inherit; text-decoration: none; }
.post-card-main:hover { text-decoration: none; }
.post-card-main:hover .post-title { color: var(--accent); }
.post-cat { align-self: flex-start; font-size: 12px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--accent); }
.post-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.post-card > .post-tags { padding: 0 18px 16px; }
.post-tag { display: inline-flex; align-items: center; min-height: 26px; padding: 2px 9px; box-sizing: border-box; border: 1px solid var(--line); border-radius: 999px; background: var(--panel-alt); color: var(--fg-2); font-size: 12px; text-decoration: none; }
a.post-tag:hover { border-color: #B9CFE4; text-decoration: none; }
.post-header { display: flex; flex-direction: column; gap: 10px; }
.post-meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 14px; }
.blog-main.post { max-width: 780px; }
.post-nav { display: flex; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 8px; }
.post-nav a { flex: 1 1 240px; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--fg); font-weight: 500; text-decoration: none; }
.post-nav a:hover { border-color: #B9CFE4; }
.post-nav .post-nav-newer { text-align: right; }

/* The Beacon help centre (Support): straight under the site header, no gap above. */
.help-section { padding: 0 0 72px; }

/* The Home page inside kiwicodes.com's frame (/home/embed, backlog 58): no site menu or footer, the full width of the frame. */
.ek-embed { display: block; outline: none; background: var(--bg); font-size: 16px; line-height: 1.5; }
.ek-embed-root { width: 100%; }
/* Owner, 6 Nov 2026: close under kiwicodes.com's logo, and the frame ends at the "Try it" band. */
.ek-embed .home-hero { padding-top: 16px; }
.ek-embed .site-section-last { padding-bottom: 0; }
