/* Large, illustrated marketing panels follow the i2PDF homepage composition. */
.type-home-features {
    padding-block: 72px 24px;
    scroll-margin-top: 96px;
}
.type-home-features-heading {
    margin-bottom: 44px;
    text-align: center;
}
.type-home-features-eyebrow,
.type-home-feature-eyebrow {
    display: block;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: .11em;
    text-transform: uppercase;
}
.type-home-features-eyebrow {
    margin-bottom: 16px;
    color: var(--muted);
}
.type-home-features-heading h2 {
    margin: 0;
    color: var(--ink);
    font-size: calc(clamp(32px, 3.5vw, 46px) * var(--site-heading-scale));
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.045em;
    text-wrap: balance;
}
.type-home-features-list {
    display: grid;
    gap: 24px;
}
.type-home-feature {
    --type-feature-panel: #f4f7f9;
    --type-feature-accent: var(--accent-readable, var(--accent-hover));
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    min-height: 438px;
    padding: 38px 64px;
    border-radius: 28px;
    background: var(--type-feature-panel);
}
.type-home-feature-devices {
    --type-feature-panel: #edf7fb;
}
.type-home-feature-devices .type-home-feature-copy {
    grid-column: 2;
    grid-row: 1;
}
.type-home-feature-devices .type-home-feature-visual {
    grid-column: 1;
    grid-row: 1;
}
.type-home-feature-take-anywhere {
    --type-feature-panel: #f2f6f8;
}
.type-home-feature-copy {
    min-width: 0;
    max-width: 440px;
}
.type-home-feature-eyebrow {
    margin-bottom: 18px;
    color: var(--type-feature-accent);
}
.type-home-feature h3 {
    margin: 0;
    color: var(--ink);
    font-size: calc(clamp(32px, 3.1vw, 43px) * var(--site-heading-scale));
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.04em;
    text-wrap: balance;
}
.type-home-feature h3 span {
    display: block;
    color: var(--type-feature-accent);
}
.type-home-feature-copy p {
    max-width: 43ch;
    margin: 22px 0 20px;
    color: #596476;
    font-size: 16px;
    line-height: 1.75;
    text-wrap: pretty;
}
.type-home-feature-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 25px;
}
.type-home-feature-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    color: var(--type-feature-accent);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}
.type-home-feature-links .icon {
    flex: none;
    width: 17px;
    height: 17px;
}
.type-home-feature-links a:hover {
    text-decoration: underline;
    text-underline-offset: 5px;
}
.type-home-feature-links a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 5px;
    border-radius: 4px;
}
.type-home-feature-visual {
    display: grid;
    place-items: center;
    min-width: 0;
    direction: ltr;
}
.type-home-feature-visual img {
    display: block;
    width: min(100%, 400px);
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
}
:root[data-appearance="dark"] .type-home-feature {
    --type-feature-panel: #192330;
}
:root[data-appearance="dark"] .type-home-feature-devices {
    --type-feature-panel: #19303e;
}
:root[data-appearance="dark"] .type-home-feature-take-anywhere {
    --type-feature-panel: #1b2935;
}
:root[data-appearance="dark"] .type-home-feature-copy p {
    color: #bdc8d8;
}
@media (max-width: 1000px) {
    .type-home-feature {
        gap: 28px;
        padding: 38px;
    }
}
@media (max-width: 680px) {
    .type-home-features {
        padding-block: 44px 12px;
    }
    .type-home-features-heading {
        margin-bottom: 28px;
    }
    .type-home-feature {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
        min-height: 0;
        padding: 30px 26px;
        border-radius: 22px;
    }
    .type-home-feature-devices .type-home-feature-copy,
    .type-home-feature-devices .type-home-feature-visual {
        grid-column: auto;
        grid-row: auto;
    }
    .type-home-feature-copy {
        max-width: none;
    }
    .type-home-feature-visual img {
        width: min(100%, 260px);
    }
}

/* Native FAQ disclosures follow the i2PDF two-column question section. */
.home-content .type-home-faq { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.6fr); align-items:start; gap:70px; margin-top:60px; padding-block:50px 60px; border-top:1px solid var(--line); scroll-margin-top:96px; }
.type-home-faq>div { min-width:0; }
.home-content[lang="en"] .type-home-faq { direction:ltr; font-family:"Google Sans Flex",sans-serif; }
.home-content .type-faq-intro h2 { margin:12px 0 14px; color:var(--ink); font-size:30px; font-weight:700; line-height:1.35; letter-spacing:-.6px; text-align:start; text-wrap:balance; }
.home-content .type-faq-intro>p { max-width:300px; margin:0; color:var(--muted); font-size:14px; line-height:1.8; }
.type-faq-intro>a,.type-faq-related { display:inline-flex; align-items:center; gap:9px; min-height:44px; color:var(--accent-readable,var(--accent-hover)); font-size:13px; font-weight:600; }
.type-faq-intro>a { margin-top:12px; }
.type-faq-intro>a .icon,.type-faq-related .icon { width:16px; height:16px; }
.type-faq-intro>a:hover,.type-faq-related:hover { text-decoration:underline; text-underline-offset:4px; }
.type-faq-list details { margin:0; padding:18px 0; border-bottom:1px solid var(--line); }
.type-faq-list details:first-child { padding-top:0; }
.type-faq-list summary { display:flex; justify-content:space-between; align-items:center; gap:18px; min-height:28px; padding:2px 0; list-style:none; color:var(--ink); cursor:pointer; }
.type-faq-list summary::-webkit-details-marker { display:none; }
.type-faq-list summary::marker { content:''; }
.home-content .type-faq-list summary h3 { margin:0; color:inherit; font-size:15px; font-weight:600; line-height:1.6; letter-spacing:0; }
.type-faq-list summary>.icon { flex:none; width:15px; height:15px; color:var(--muted); transition:transform .18s ease; }
.type-faq-list details[open]>summary>.icon { transform:rotate(180deg); color:var(--accent-readable,var(--accent-hover)); }
.home-content .type-faq-list details>p { margin:12px 25px 0 0; color:var(--muted); font-size:14px; line-height:1.8; }
.type-faq-related { margin-top:5px; }
.type-faq-list summary:focus-visible,.type-faq-intro>a:focus-visible,.type-faq-related:focus-visible { outline:2px solid var(--accent); outline-offset:5px; border-radius:3px; }
@media(max-width:1020px) { .home-content .type-home-faq { gap:35px; } }
@media(max-width:760px) {
    .home-content .type-home-faq { grid-template-columns:minmax(0,1fr); gap:26px; margin-top:40px; padding-block:32px 40px; }
    .home-content .type-faq-intro h2 { font-size:26px; margin-block:10px 12px; }
    .home-content .type-faq-intro>p { max-width:440px; }
    .type-faq-intro>a { margin-top:6px; }
    .type-faq-list details { padding-block:17px; }
    .type-faq-list summary { min-height:32px; }
    .home-content .type-faq-list details>p { margin-right:20px; }
}
@media(prefers-reduced-motion:reduce) { .type-faq-list summary>.icon { transition:none; } }

/* Homepage composition follows i2PDF, using i2Type's cyan and keyboard artwork. */
.type-home-page { background:#fdfdfd; }
.type-home-page .site-header { background:#fdfdfd; }
.type-hero-band { background:var(--accent-soft); overflow:hidden; overflow:clip; }
.type-home-hero { display:grid; grid-template-columns:1.04fr 1fr; align-items:center; gap:24px; min-height:450px; padding-block:38px 42px; }
.type-hero-copy { min-width:0; text-align:center; }
.type-hero-copy h1 { font-size:clamp(42px,4.6vw,62px); font-weight:800; line-height:1.12; letter-spacing:-2px; margin:0 0 22px; }
.type-hero-copy h1 strong { display:block; font-weight:800; }
.type-hero-copy h1>span { display:block; color:var(--accent-readable,var(--accent-hover)); margin-top:5px; }
.type-hero-copy>p { max-width:470px; font-size:15px; color:var(--muted); line-height:1.8; margin:0 auto; text-wrap:pretty; }
.type-home-assurance { display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:8px 12px; margin-top:18px; font-size:12px; color:var(--muted); }
.type-home-assurance>span+span::before { content:''; display:inline-block; width:3px; height:3px; border-radius:50%; vertical-align:middle; margin-inline-end:12px; background:currentColor; }
.type-home-cta { display:flex; width:fit-content; min-height:62px; justify-content:center; gap:20px; margin:25px auto 0; padding:12px 22px; border-radius:18px; font-size:16px; font-weight:650; box-shadow:0 8px 20px rgb(var(--accent-rgb) / .13); }
.type-home-cta>.icon { width:34px; height:34px; padding:8px; border-radius:50%; background:#ffffff24; }
.type-hero-browse { display:inline-flex; align-items:center; gap:7px; min-height:44px; margin-top:7px; color:var(--accent-readable,var(--accent-hover)); font-size:13px; font-weight:550; }
.type-hero-browse .icon { width:14px; height:14px; }
.type-hero-browse:hover { text-decoration:underline; text-underline-offset:4px; }
/* Generated transparent WebP: reserve the artwork area for stable first paint. */
.type-hero-art { width:100%; max-width:500px; aspect-ratio:5 / 4; justify-self:center; }
.type-hero-art img { display:block; width:100%; height:100%; object-fit:contain; }
.type-section-heading { text-align:center; margin-bottom:30px; }
.type-section-heading h2 { margin:0 0 10px; font-size:30px; line-height:1.35; letter-spacing:-.6px; font-weight:700; }
.type-section-heading p { margin:0; color:var(--muted); font-size:14px; }
.type-home-how { padding-block:58px 65px; }
.type-home-steps { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:30px; list-style:none; margin:0; padding:0; }
.type-home-steps li { display:flex; gap:15px; align-items:flex-start; }
.type-home-steps li>span { flex:none; font-size:28px; line-height:1.2; font-weight:600; letter-spacing:-1px; color:var(--accent-readable,var(--accent-hover)); }
.type-home-steps h3 { font-size:16px; font-weight:650; line-height:1.5; margin:0 0 8px; }
.type-home-steps p { color:var(--muted); font-size:13px; line-height:1.8; margin:0; }
.type-home-promise { display:grid; grid-template-columns:minmax(0,1fr) minmax(170px,27%); align-items:center; gap:35px; padding:38px 44px; border:1px solid var(--line); border-radius:24px; background:var(--surface); }
.type-home-promise h2 { font-size:30px; font-weight:700; line-height:1.35; letter-spacing:-.6px; margin:10px 0 16px; }
.type-home-promise p { max-width:650px; color:var(--muted); font-size:14px; line-height:1.8; margin:0 0 12px; }
.type-home-promise a { display:inline-flex; align-items:center; gap:10px; min-height:44px; color:var(--accent-readable,var(--accent-hover)); font-size:13px; font-weight:600; }
.type-home-promise a .icon { width:18px; height:18px; }
.type-promise-art { --type-privacy-stroke:color-mix(in srgb,var(--accent) 32%,var(--line)); display:grid; place-items:center; min-width:0; color:var(--accent); }
.type-promise-art svg { width:100%; max-width:310px; height:auto; display:block; overflow:visible; }
:root[data-appearance="dark"] .type-home-page,:root[data-appearance="dark"] .type-home-page .site-header { background:var(--page-bg); }
@media(max-width:1020px) { .type-home-hero { gap:18px; } .type-hero-copy h1 { font-size:45px; } }
@media(max-width:760px) {
    .type-home-hero { grid-template-columns:minmax(0,1fr); padding-block:32px 36px; gap:12px; }
    .type-hero-copy h1 { font-size:clamp(39px,10vw,52px); margin-bottom:17px; }
    .type-hero-copy>p { font-size:14px; }
    .type-home-assurance { font-size:11px; gap:7px 9px; } .type-home-assurance>span+span::before { margin-inline-end:9px; }
    .type-home-cta { font-size:15px; margin-top:20px; min-height:58px; padding:11px 18px; gap:14px; }
    .type-hero-art { width:min(85%,360px); }
    .type-home-how { padding-block:40px 44px; } .type-section-heading h2 { font-size:25px; }
    .type-home-steps { grid-template-columns:minmax(0,1fr); gap:25px; }
    .type-home-promise { grid-template-columns:minmax(0,1fr); gap:24px; padding:26px 24px; }
    .type-home-promise h2 { font-size:26px; } .type-promise-art { grid-row:1; }
    .type-promise-art svg { max-width:220px; }
}

/* The i2Suite header follows the i2PDF navigation order on every page. */
.site-header .header-actions>.site-guides-link { display:inline-flex; }
.site-header .header-actions { margin-inline-start:auto; }
.type-collection-band { background:var(--accent-soft); }
.type-collection-hero { display:grid; grid-template-columns:minmax(0,1fr) minmax(180px,32%); align-items:center; gap:36px; padding-block:34px; min-height:340px; }
.type-collection-hero h1 { margin:12px 0 16px; font-size:clamp(34px,4vw,48px); font-weight:750; line-height:1.2; letter-spacing:-1px; }
.type-collection-hero p { max-width:620px; margin:0; color:var(--muted); font-size:15px; line-height:1.8; }
.type-collection-art { width:min(100%,280px); justify-self:center; }
.type-collection-art img { display:block; width:100%; height:auto; }
.type-directory-tabs .type-collection-link { min-height:50px; display:inline-flex; align-items:center; justify-content:center; gap:8px; border-radius:12px; padding:10px 18px; font-size:15px; font-weight:600; }
.type-directory-tabs .type-collection-link:hover { background:var(--canvas); }
.type-directory-tabs .type-collection-link>span { padding:1px 5px; border-radius:5px; background:var(--accent); color:white; font-size:10px; }
.type-directory-tabs .type-collection-link:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
@media(max-width:1000px) { .site-header .header-inner { padding-inline:24px; gap:16px; } }
@media(max-width:800px) {
    .site-header .header-inner { padding-inline:16px; gap:12px; }
    .site-header .header-actions { gap:6px; }
    .site-header .header-menu-trigger { width:36px; height:36px; min-height:36px; justify-content:center; padding:0; border:1px solid var(--line); border-radius:50%; }
    .site-header .header-menu-trigger>span,.site-header .header-menu-trigger>bdi,.site-header .header-menu-trigger>.small-icon { display:none; }
    .site-header .appearance-picker { margin-inline-start:0; }
    .site-header .appearance-picker>summary { width:36px; height:36px; }
    .site-header .language-trigger { width:36px; height:36px; padding:0; justify-content:center; flex:none; }
    .site-header .language-trigger>span,.site-header .language-trigger>.small-icon { display:none; }
}
@media(max-width:680px) {
    .type-collection-hero { grid-template-columns:minmax(0,1fr); gap:16px; padding-block:28px 24px; text-align:center; }
    .type-collection-hero h1 { font-size:34px; }
    .type-collection-hero p { font-size:14px; }
    .type-collection-art { width:220px; }
    .type-directory-tabs .type-collection-link { font-size:13px; padding:10px 12px; }
    .site-header .header-inner { padding-inline:12px; gap:8px; }
    .site-header .header-actions { gap:4px; }
    .site-header .brand-logo { height:30px; }
}
@media(max-width:360px) { .site-header .brand-logo { height:25px; } .site-header .header-inner { gap:6px; } }

/* Match the directory's compact title cards inside the keyboard picker. */
#site-keyboards-menu { font-family:var(--font-body); font-size:15px; line-height:1.5; text-align:start; max-height:calc(100vh - 120px); max-height:calc(100dvh - 120px); }
#site-keyboards-menu :is(h2,h3,input,button) { font-family:var(--font-body); letter-spacing:normal; }
#site-keyboards-menu .site-tools-heading { flex-shrink:0; }
#site-keyboards-menu .site-tools-heading h2 { font-size:24px; line-height:1.5; }
#site-keyboards-menu .site-tools-search input { font-size:16px; line-height:1.5; }
#site-keyboards-menu .site-tools-overview { display:block; }
#site-keyboards-menu h3 { margin-bottom:14px; font-size:12px; line-height:1.5; }
#site-keyboards-menu .site-tools-results { grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
#site-keyboards-menu .site-tools-results>a { display:grid; grid-template-columns:minmax(0,1fr) 28px; align-items:center; min-width:0; min-height:82px; gap:16px; padding:16px 18px; border:1px solid color-mix(in srgb,var(--accent) 22%,var(--line)); border-radius:13px; background:var(--surface); transition:border-color .18s,background .18s; }
#site-keyboards-menu .site-keyboard-copy { display:grid; gap:4px; min-width:0; }
#site-keyboards-menu .site-keyboard-name { color:var(--ink); font-size:16px; font-weight:600; line-height:1.5; overflow-wrap:anywhere; }
#site-keyboards-menu .site-keyboard-language { display:flex; align-items:center; gap:8px; min-width:0; }
#site-keyboards-menu .keyboard-language-flag { flex:0 0 16px; width:16px; height:11px; min-width:16px; max-width:16px; min-height:11px; max-height:11px; }
#site-keyboards-menu .site-keyboard-native { min-width:0; color:var(--muted); font-family:Arial,sans-serif; font-size:13px; line-height:1.5; font-weight:400; overflow-wrap:anywhere; }
#site-keyboards-menu .site-keyboard-action { display:grid; place-items:center; width:28px; height:28px; border:1px solid color-mix(in srgb,var(--accent) 24%,var(--line)); border-radius:50%; color:var(--accent-readable,var(--accent-hover)); background:var(--surface); }
#site-keyboards-menu .site-keyboard-action .icon { width:14px; height:14px; color:inherit; }
#site-keyboards-menu .site-tools-results>a:hover { background:color-mix(in srgb,var(--accent) 3%,var(--surface)); border-color:color-mix(in srgb,var(--accent) 55%,var(--line)); }
#site-keyboards-menu .site-tools-results>a:hover .site-keyboard-action { background:var(--accent); border-color:var(--accent); color:white; }
#site-keyboards-menu .site-tools-results>a[aria-current="page"] { background:var(--accent-soft); border-color:var(--accent); }
#site-keyboards-menu .site-tools-results>a:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
#site-keyboards-menu .site-tools-status { font-size:13px; line-height:1.6; }
#site-keyboards-menu [hidden] { display:none!important; }
@media(max-width:680px),(max-height:600px) { #site-keyboards-menu { inset-block-start:12px; max-height:calc(100vh - 24px); max-height:calc(100dvh - 24px); } }
@media(max-width:680px) {
    #site-keyboards-menu .site-tools-heading h2 { font-size:21px; }
    #site-keyboards-menu .site-tools-results { grid-template-columns:minmax(0,1fr); gap:10px; }
    #site-keyboards-menu .site-tools-results>a { min-height:78px; padding:14px 16px; gap:12px; }
    #site-keyboards-menu .site-tools-footer>a { font-size:13px; }
}
@media(prefers-reduced-motion:reduce) { #site-keyboards-menu .site-tools-results>a { transition:none; } }

/* Keyboard shortcuts use the same footer treatment as i2Bopomo. */
.footer-keyboard-links { width:100%; justify-content:center; gap:10px; margin-bottom:6px; padding-block:20px; border-block:1px solid var(--line); font-family:var(--font-body); font-size:11px; }
.footer-keyboard-links a { display:inline-flex; align-items:center; justify-content:center; min-height:38px; padding:8px 15px; border:1px solid var(--line); border-radius:9px; background:var(--surface); color:var(--ink); font-weight:500; line-height:1.4; text-decoration:none; }
.footer-keyboard-links a:hover { background:var(--canvas); color:var(--accent-readable,var(--accent)); text-decoration:none; }
.footer-keyboard-links a[aria-current] { background:var(--accent-soft); color:var(--accent-readable,var(--accent)); font-weight:600; text-decoration:none; }
.footer-keyboard-links a:focus-visible { outline-offset:-2px; }
.footer-keyboard-links .footer-more-keyboards { gap:6px; color:var(--accent-readable,var(--accent)); background:var(--accent-soft); border-color:color-mix(in srgb,var(--accent) 24%,var(--line)); }
.footer-keyboard-links .footer-more-keyboards:hover { background:color-mix(in srgb,var(--accent-readable,var(--accent)) 16%,var(--surface)); }
.footer-more-keyboards .icon { width:14px; height:14px; }
:root[dir="rtl"] .footer-more-keyboards .icon { transform:scaleX(-1); }

/* English fallback sections keep their typography within translated site chrome. */
.home-content[lang="en"] { --font-body:"Google Sans Flex",sans-serif; font-family:var(--font-body); line-height:1.55; }
/* i2Type shares the i2Suite shell and editor. */
.type-primary-nav { display:flex; gap:26px; align-items:center; margin-inline-end:auto; }
.type-primary-nav a { color:var(--muted); text-decoration:none; font-weight:550; font-size:14px; }
.type-primary-nav a:hover,.type-primary-nav a[aria-current] { color:var(--accent); }
.type-primary-nav a:focus-visible { outline:2px solid var(--accent); outline-offset:6px; border-radius:3px; }
.type-intro { text-align:center; padding:34px 0 24px; }
.type-eyebrow { color:var(--accent-readable,var(--accent-hover)); font-size:11px; font-weight:650; letter-spacing:1.5px; text-transform:uppercase; display:inline-flex; align-items:center; gap:8px; }
.type-eyebrow .icon { width:16px; height:16px; }
.type-intro h1 { font-size:clamp(32px,3.4vw,46px); line-height:1.16; letter-spacing:-1.6px; font-weight:650; margin:10px 0; }
.type-intro>p { max-width:650px; margin:0 auto; color:var(--muted); font-size:15px; }
.type-assurance { display:flex; justify-content:center; gap:22px; margin-top:14px; font-size:11px; color:var(--muted); }
.type-assurance span { display:inline-flex; align-items:center; gap:5px; }
.type-assurance .icon { width:13px; height:13px; color:var(--accent); }
/* The gallery follows i2PDF's centered finder and three-column cards. */
.type-directory { padding:52px 0 30px; scroll-margin-top:24px; }
.type-keyboard-page .type-directory { padding-top:64px; }
.type-directory-heading { text-align:center; margin-bottom:18px; }
.type-directory h2 { font-size:30px; font-weight:700; line-height:1.35; letter-spacing:-.6px; margin:0 0 10px; }
.type-directory-heading p { font-size:14px; color:var(--muted); margin:0 auto; max-width:620px; }
.type-directory-tabs { display:flex; flex-wrap:wrap; justify-content:center; gap:14px; }
.type-directory-tabs button { min-height:50px; display:inline-flex; align-items:center; justify-content:center; gap:8px; border-radius:12px; padding:10px 18px; font-size:15px; font-weight:600; }
.type-directory-tabs button:hover { background:var(--canvas); }
.type-directory-tabs button[aria-pressed="true"] { color:var(--accent-readable,var(--accent-hover)); background:var(--accent-soft); }
.type-directory-tabs .icon { width:19px; height:19px; }
.type-directory-tabs button>span { padding:1px 5px; border-radius:5px; background:var(--accent); color:white; font-size:10px; }
.type-directory-controls { display:flex; align-items:center; gap:10px; max-width:800px; margin:24px auto 0; }
.type-directory-search { display:flex; align-items:center; flex:1; gap:10px; padding:4px 14px; min-width:0; min-height:54px; border:1px solid color-mix(in srgb,var(--accent) 20%,var(--line)); border-radius:12px; background:var(--surface); }
.type-directory-search>.icon { width:22px; height:22px; color:var(--accent-readable,var(--accent-hover)); }
.type-directory-search input { min-width:0; width:100%; border:0; outline:0; background:none; color:var(--ink); font:inherit; font-size:16px; padding:8px 0; }
.type-directory-search input::-webkit-search-cancel-button { appearance:none; }
.type-directory-search:focus-within { border-color:var(--accent); box-shadow:0 0 0 1px var(--accent); }
.type-directory-search button { flex:0 0 38px; height:42px; padding:8px; border-radius:8px; }
.type-directory-search button:hover { background:var(--canvas); }
.type-directory-search button .icon { width:18px; height:18px; color:var(--muted); }
.type-directory-views { display:flex; flex:none; gap:3px; padding:4px; border:1px solid color-mix(in srgb,var(--accent) 20%,var(--line)); border-radius:12px; background:var(--surface); }
.type-directory-views button { display:grid; place-items:center; width:44px; height:44px; padding:10px; border:1px solid transparent; border-radius:9px; }
.type-directory-views button .icon { width:20px; height:20px; color:var(--muted); }
.type-directory-views button[aria-pressed="true"] { background:var(--accent-soft); border-color:color-mix(in srgb,var(--accent) 40%,var(--line)); }
.type-directory-views button[aria-pressed="true"] .icon { color:var(--accent-readable,var(--accent-hover)); }
.type-directory-count { font-size:12px; color:var(--muted); text-align:center; margin:14px 0 28px; font-variant-numeric:tabular-nums; }
.type-keyboard-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.type-keyboard-card { min-width:0; display:flex; flex-direction:column; border:1px solid color-mix(in srgb,var(--accent) 10%,var(--line)); background:var(--surface); border-radius:16px; padding:22px; color:var(--ink); transition:border-color .18s,box-shadow .18s,background .18s; }
.type-card-flag { display:flex; align-items:center; justify-content:center; margin-bottom:12px; }
.type-card-heading { text-align:center; }
.type-card-heading h3 { min-width:0; color:var(--ink); font-family:var(--font-body); font-size:22px; font-weight:700; line-height:1.35; letter-spacing:-.3px; margin:0; overflow-wrap:anywhere; }
.type-card-heading h3>span { display:inline-block; color:#A3ADB9; font:inherit; letter-spacing:inherit; }
.type-card-arrow { display:none; place-items:center; color:var(--muted); transition:color .18s; }
.type-card-arrow .icon { width:18px; height:18px; }
.type-language-label { display:flex; align-items:center; justify-content:center; min-width:0; margin-top:8px; }
.type-native { text-align:center; min-width:0; color:var(--muted); font-size:18px; line-height:1.6; font-weight:300; overflow-wrap:anywhere; }
.type-card-description { text-align:center; font-size:13px; line-height:1.75; color:var(--muted); margin:16px 0 0; }
.type-keyboard-card:hover { background:color-mix(in srgb,var(--accent) 2%,var(--surface)); border-color:color-mix(in srgb,var(--accent) 45%,var(--line)); box-shadow:0 4px 16px #26344d0a; }
.type-keyboard-card:hover .type-card-arrow { color:var(--accent-readable,var(--accent-hover)); }
.type-keyboard-card:focus-visible { outline:3px solid var(--accent); outline-offset:3px; }
.type-keyboard-card[aria-current] { border-color:var(--accent); background:var(--accent-soft); }
.type-directory-more { text-align:center; margin-top:32px; }
.type-directory-more .button { min-height:56px; border-radius:16px; gap:20px; padding:14px 24px; }
.type-no-results { padding:36px 20px; border:1px dashed var(--line); border-radius:18px; text-align:center; }
.type-no-results h3 { margin:0; font-size:20px; }
.type-no-results p { color:var(--muted); font-size:14px; }
/* Homepage choices need only the language and its native name. */
.type-home-page:not(.type-directory-page) .type-card-description { display:none; }
/* Compact view keeps the same links, native labels and original-size sprite. */
.type-directory[data-view="compact"] .type-keyboard-grid { gap:12px; }
.type-directory[data-view="compact"] .type-keyboard-card { position:relative; display:grid; grid-template-columns:16px max-content minmax(0,1fr); align-items:center; column-gap:10px; padding:14px 42px 14px 16px; border-radius:13px; }
.type-directory[data-view="compact"] .type-card-flag { grid-column:1; grid-row:1; margin:0; }
.type-directory[data-view="compact"] .type-card-heading { grid-column:2; grid-row:1; text-align:start; padding:0; white-space:nowrap; }
.type-directory[data-view="compact"] .type-card-heading h3 { font-size:16px; line-height:1.5; letter-spacing:0; font-weight:600; }
.type-directory[data-view="compact"] .type-card-heading h3>span,.type-directory[data-view="compact"] .type-card-description { display:none; }
.type-directory[data-view="compact"] .type-card-arrow { position:absolute; display:grid; right:15px; top:calc(50% - 10px); width:20px; height:20px; border:0; }
.type-directory[data-view="compact"] .type-language-label { grid-column:3; grid-row:1; justify-content:flex-end; padding:0; margin:0; }
.type-directory[data-view="compact"] .type-native { text-align:start; color:var(--muted); font-size:13px; font-weight:400; white-space:nowrap; }
.type-not-found { padding-block:100px; text-align:center; }
.type-not-found h1 { font-size:42px; margin:12px 0; }
.type-not-found p { color:var(--muted); margin-bottom:30px; }
.footer-note { display:flex; flex-direction:column; gap:4px; align-items:flex-start; }
/* Keep the original source pixels:16x11; Nepal's9x11 flag is centered in its tile. */
.keyboard-language-flag { display:inline-block; flex:0 0 16px; width:16px; height:11px; background-image:var(--keyboard-flags-image); background-repeat:no-repeat; background-size:var(--keyboard-flags-width) var(--keyboard-flags-height); background-position:calc(var(--keyboard-flag-x) * -1) calc(var(--keyboard-flag-y) * -1); }
[hidden] { display:none !important; }
@media(max-width:1020px) { .type-primary-nav { gap:18px; } .type-keyboard-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:760px) { .type-primary-nav { display:none; } .type-intro { padding:24px 0 20px; } }
@media(max-width:680px) {
    .type-directory { padding-top:34px; } .type-keyboard-page .type-directory { padding-top:40px; }
    .type-directory h2 { font-size:26px; } .type-directory-heading p { font-size:13px; }
    .type-keyboard-grid { grid-template-columns:minmax(0,1fr); gap:16px; }
    .type-keyboard-card { padding:20px; } .type-card-heading h3 { font-size:22px; }
    .type-language-label { margin-top:8px; }
    .type-directory-controls { flex-wrap:wrap; gap:10px; margin-top:20px; }
    .type-directory-search { flex-basis:100%; }
    .type-directory-views { margin-inline-start:auto; }
    .type-directory-count { margin:12px 0 20px; }
    .type-directory-tabs { gap:8px; } .type-directory-tabs button { font-size:13px; padding:10px 12px; }
    .type-directory-tabs .icon { width:17px; height:17px; }
}
@media(max-width:420px) { .type-intro h1 { font-size:30px; letter-spacing:-1px; } .type-intro>p { font-size:13px; } .type-assurance { gap:12px; font-size:10px; } }
@media(prefers-reduced-motion:reduce) { .type-keyboard-card,.type-card-arrow { transition:none; } }
