
/* =========================================================
   KAOMOJI COPY AND PASTE — CharacterCounter.com

   File: kaomoji-copy-and-paste.css
   ========================================================= */


/* =========================================================
   PAGE BASE
   ========================================================= */

.km-page {
    width: 100%;
    padding: 105px 15px 45px;

    background: #fff;
    color: #333;

    font-family: "Roboto", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;

    --km-blue: #1a73e8;
    --km-blue-dark: #1558aa;
    --km-blue-light: #edf5ff;

    --km-border: #dce2e9;
    --km-text: #333;
    --km-muted: #666;

    --km-green: #237a40;
    --km-green-light: #edf9f0;

    --km-unicode-font:
        "Noto Sans",
        "Segoe UI",
        "Segoe UI Symbol",
        "Apple Symbols",
        "Arial Unicode MS",
        "Hiragino Sans",
        "Meiryo",
        Arial,
        sans-serif;
}


.km-page,
.km-page *,
.km-page *::before,
.km-page *::after {
    box-sizing: border-box;
}


.km-page [hidden] {
    display: none !important;
}


.km-page button,
.km-page input {
    font-family: "Roboto", Arial, sans-serif;
}


.km-page button {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}


.km-page button:disabled {
    cursor: not-allowed;
}


.km-page a {
    color: #1155cc;
    text-decoration: none;
}


.km-page a:hover {
    text-decoration: underline;
}


.km-page a:focus-visible,
.km-page button:focus-visible,
.km-page input:focus-visible {
    outline: 3px solid rgba(26, 115, 232, 0.3);
    outline-offset: 3px;
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.km-visually-hidden {
    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

    padding: 0 !important;
    margin: -1px !important;

    overflow: hidden !important;

    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;

    white-space: nowrap !important;

    border: 0 !important;
}


/* =========================================================
   MAIN PAGE LAYOUT
   ========================================================= */

.km-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        300px;

    align-items: stretch;

    gap: 25px;

    width: 100%;
    max-width: 1400px;

    margin: 0 auto;
}


.km-main {
    width: 100%;
    min-width: 0;
}


/* =========================================================
   RAPTIVE ADVERTISING SIDEBAR
   ========================================================= */

.km-sidebar {
    display: block;

    width: 300px;
    min-width: 300px;
    min-height: 100%;

    align-self: stretch;

    margin: 0;
    padding: 0;
}


/* =========================================================
   PAGE HEADING
   ========================================================= */

.km-heading {
    width: 100%;

    margin: 0 0 25px;
    padding: 0;

    text-align: center;
}


.km-heading h1 {
    margin: 0 0 10px;
    padding: 0;

    color: #333;

    font-family: "Roboto", Arial, sans-serif;
    font-size: 32px;
    line-height: 1.25;
    font-weight: 700;

    overflow-wrap: break-word;
}


.km-intro {
    width: 100%;
    max-width: 800px;

    margin: 0 auto;
    padding: 0;

    color: #555;

    font-size: 16px;
    line-height: 1.55;
    font-weight: 400;
}


/* =========================================================
   JAVASCRIPT NOTICE
   ========================================================= */

.km-notice {
    width: 100%;

    margin: 0 0 20px;
    padding: 12px 15px;

    border: 1px solid #e3cf9b;
    border-radius: 7px;

    background: #fff9eb;
    color: #665022;

    font-size: 14px;
    line-height: 1.5;
}


/* =========================================================
   MAIN TOOL
   ========================================================= */

.km-tool {
    display: flex;
    flex-direction: column;

    gap: 25px;

    width: 100%;
    min-width: 0;

    margin: 0 0 45px;
    padding: 0;
}


/* =========================================================
   SEARCH AND CATEGORY CONTROLS
   ========================================================= */

.km-controls {
    display: flex;
    flex-direction: column;

    gap: 16px;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;
}


/* =========================================================
   SEARCH BAR
   ========================================================= */

.km-search-wrap {
    position: relative;

    display: flex;
    align-items: center;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;
}


.km-page .km-search {
    display: block;

    width: 100%;
    min-width: 0;
    min-height: 49px;

    margin: 0;

    padding:
        12px
        48px
        12px
        45px;

    border: 2px solid #c9ced6;
    border-radius: 8px;

    background: #fff;
    color: #333;

    font-family: "Roboto", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 400;

    outline: none;

    appearance: none;
    -webkit-appearance: none;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}


.km-search::-webkit-search-cancel-button,
.km-search::-webkit-search-decoration {
    -webkit-appearance: none;
}


.km-page .km-search::placeholder {
    color: #858b94;
    opacity: 1;
}


.km-page .km-search:hover {
    border-color: #aeb7c2;
}


.km-page .km-search:focus,
.km-page .km-search:focus-visible {
    border-color: var(--km-blue);

    outline: none;

    box-shadow:
        0 0 0 3px rgba(26, 115, 232, 0.10);
}


.km-search-icon {
    position: absolute;

    z-index: 1;

    top: 50%;
    left: 15px;

    transform: translateY(-50%);

    color: #777;

    font-size: 21px;
    line-height: 1;

    pointer-events: none;
}


/* =========================================================
   CLEAR SEARCH BUTTON
   ========================================================= */

.km-page .km-clear-search {
    position: absolute;

    top: 50%;
    right: 7px;

    transform: translateY(-50%);

    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;

    margin: 0;
    padding: 0;

    border: 0;
    border-radius: 6px;

    background: transparent;
    color: #777;

    font-size: 22px;
    line-height: 1;

    cursor: pointer;

    transition:
        background-color 0.15s ease,
        color 0.15s ease;
}


.km-page .km-clear-search:hover {
    background: #eef2f7;
    color: #333;
}


.km-page .km-clear-search:active {
    background: #e2e9f1;
}


/* =========================================================
   CATEGORY FILTERS

   Categories wrap onto multiple lines.
   No horizontal scrolling.
   ========================================================= */

.km-categories {
    display: flex;
    flex-wrap: wrap;

    align-items: center;
    justify-content: flex-start;

    gap: 7px;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;
}


.km-page .km-category-button {
    display: inline-flex;

    flex: 0 0 auto;

    align-items: center;
    justify-content: center;

    min-height: 36px;

    margin: 0;
    padding: 7px 13px;

    border: 1px solid #cbd5e1;
    border-radius: 6px;

    background: #fff;
    color: #444;

    font-family: "Roboto", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 500;

    white-space: nowrap;

    cursor: pointer;

    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}


.km-page .km-category-button:hover {
    border-color: #9bbce5;

    background: #f0f6ff;
    color: var(--km-blue-dark);
}


.km-page .km-category-button:active {
    background: #e2eeff;
}


.km-page .km-category-button.is-active,
.km-page .km-category-button[aria-pressed="true"] {
    border-color: var(--km-blue);

    background: var(--km-blue);
    color: #fff;

    font-weight: 600;
}


.km-page .km-category-button.is-active:hover,
.km-page .km-category-button[aria-pressed="true"]:hover {
    border-color: var(--km-blue-dark);

    background: var(--km-blue-dark);
    color: #fff;
}


/* =========================================================
   KAOMOJI COLLECTION
   ========================================================= */

.km-collection {
    display: flex;
    flex-direction: column;

    gap: 30px;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;
}


/* =========================================================
   CATEGORY GROUPS
   ========================================================= */

.km-group {
    display: flex;
    flex-direction: column;

    gap: 12px;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;

    scroll-margin-top: 100px;
}


.km-group h2 {
    margin: 0;
    padding: 0;

    color: #333;

    font-family: "Roboto", Arial, sans-serif;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.35;

    overflow-wrap: break-word;
}


.km-group-heading {
    display: flex;

    align-items: center;
    justify-content: space-between;

    flex-wrap: wrap;

    gap: 8px 12px;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;
}


/* =========================================================
   RESPONSIVE KAOMOJI GRID

   Adjusts the number of columns automatically according
   to the available width.
   ========================================================= */

.km-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(155px, 1fr));

    align-items: stretch;

    gap: 8px;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;
}


/* =========================================================
   INDIVIDUAL KAOMOJI BUTTONS
   ========================================================= */

.km-page .km-face {
    position: relative;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;
    min-width: 0;
    min-height: 66px;

    margin: 0;
    padding: 13px 8px;

    border: 1px solid #d9e0e8;
    border-radius: 7px;

    background: #fff;
    color: #222;

    font-family: var(--km-unicode-font);
    font-size: 18px;
    line-height: 1.5;
    font-weight: 400;

    text-align: center;
    text-transform: none;

    letter-spacing: normal;

    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;

    box-shadow: none;

    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}


/* =========================================================
   KAOMOJI TEXT

   Preserve internal spaces and Unicode characters.
   Long expressions may wrap rather than being clipped.
   ========================================================= */

.km-face-text {
    display: block;

    width: 100%;
    min-width: 0;
    max-width: 100%;

    margin: 0;
    padding: 0;

    color: inherit;

    font-family: var(--km-unicode-font);
    font-size: inherit;
    line-height: inherit;
    font-weight: 400;

    text-align: center;
    text-transform: none;

    letter-spacing: normal;

    white-space: pre-wrap;

    overflow-wrap: anywhere;
    word-break: normal;

    unicode-bidi: isolate;

    pointer-events: none;
}


/* =========================================================
   KAOMOJI HOVER AND ACTIVE STATES
   ========================================================= */

@media (hover: hover) {

    .km-page .km-face:hover {
        border-color: #a7c5eb;

        background: #f1f7ff;
        color: #174d90;
    }

}


.km-page .km-face:active {
    border-color: #86b4ef;

    background: #e3efff;
}


.km-page .km-face:focus-visible {
    z-index: 1;

    border-color: var(--km-blue);

    outline: 3px solid rgba(26, 115, 232, 0.25);
    outline-offset: 2px;
}


/* =========================================================
   OPTIONAL LONG KAOMOJI CARDS

   JavaScript can apply these classes to particularly
   long expressions.
   ========================================================= */

.km-page .km-face.is-wide,
.km-page .km-face.km-face-wide {
    grid-column: span 2;
}


.km-page .km-face.is-long .km-face-text,
.km-page .km-face.km-face-long .km-face-text {
    font-size: 16px;
    line-height: 1.5;
}


/* =========================================================
   COPY SUCCESS FEEDBACK

   Feedback appears directly on the selected kaomoji.
   It does not change the size of the card.
   ========================================================= */

.km-copy-feedback {
    position: absolute;

    z-index: 2;

    inset: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 5px;

    margin: 0;
    padding: 7px;

    border-radius: inherit;

    background: var(--km-green-light);
    color: var(--km-green);

    font-family: "Roboto", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 600;

    text-align: center;

    pointer-events: none;
}


.km-page .km-face.is-copied,
.km-page .km-face.copied,
.km-page .km-face.is-copied:hover,
.km-page .km-face.copied:hover {
    border-color: #87c49b;

    background: var(--km-green-light);
    color: var(--km-green);
}


.km-page .km-face.is-copied .km-face-text,
.km-page .km-face.copied .km-face-text {
    visibility: hidden;
}


/* =========================================================
   COPY ERROR FEEDBACK
   ========================================================= */

.km-page .km-face.is-error,
.km-page .km-face.copy-error {
    border-color: #e3b2b2;

    background: #fff3f3;
    color: #a63232;
}


.km-page .km-face.is-error .km-copy-feedback,
.km-page .km-face.copy-error .km-copy-feedback {
    background: #fff3f3;
    color: #a63232;
}


/* =========================================================
   RECENTLY COPIED SECTION
   ========================================================= */

.km-recent {
    width: 100%;

    margin: 0;

    padding: 0 0 22px;

    border-bottom: 1px solid #e1e6ec;
}


.km-recent .km-group-heading {
    min-height: 30px;
}


.km-recent h2 {
    font-size: 21px;
}


/* =========================================================
   CLEAR RECENT HISTORY BUTTON
   ========================================================= */

.km-page .km-clear-recent {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 5px;

    min-height: 32px;

    margin: 0;
    padding: 5px 11px;

    border: 1px solid #cbd7e7;
    border-radius: 5px;

    background: #fff;
    color: #145ba8;

    font-family: "Roboto", Arial, sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;

    white-space: nowrap;

    cursor: pointer;

    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}


.km-page .km-clear-recent:hover {
    border-color: #9bbce5;

    background: #edf5ff;
    color: #104b8d;
}


.km-page .km-clear-recent:active {
    background: #dceaff;
}


/* =========================================================
   EMPTY SEARCH RESULTS
   ========================================================= */

.km-empty {
    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 10px;

    width: 100%;
    min-height: 200px;

    margin: 0;
    padding: 30px 15px;

    border: 1px solid #dce2e9;
    border-radius: 8px;

    background: #fafbfd;

    text-align: center;
}


.km-empty h2 {
    margin: 0;
    padding: 0;

    color: #333;

    font-size: 21px;
    line-height: 1.4;
    font-weight: 600;
}


.km-empty p {
    margin: 0;
    padding: 0;

    color: #666;

    font-size: 15px;
    line-height: 1.5;
}


.km-page .km-reset-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 40px;

    margin: 6px 0 0;
    padding: 9px 15px;

    border: 1px solid var(--km-blue);
    border-radius: 6px;

    background: var(--km-blue);
    color: #fff;

    font-family: "Roboto", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;

    cursor: pointer;

    transition:
        background-color 0.15s ease,
        border-color 0.15s ease;
}


.km-page .km-reset-button:hover {
    border-color: var(--km-blue-dark);

    background: var(--km-blue-dark);
}


/* =========================================================
   STATIC COLLECTION FALLBACK

   The HTML collection remains readable and selectable
   if JavaScript is unavailable.
   ========================================================= */

.km-source {
    grid-column: 1 / -1;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 15px;

    border: 1px solid #dce2e9;
    border-radius: 7px;

    background: #fafbfd;
    color: #333;

    font-family: var(--km-unicode-font);
    font-size: 17px;
    line-height: 1.9;
    font-weight: 400;

    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: normal;

    overflow-x: auto;

    user-select: text;
    -webkit-user-select: text;
}


/* =========================================================
   INFORMATIONAL ARTICLE
   ========================================================= */

.km-article {
    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 30px 0 0;

    border-top: 1px solid #e0e5eb;

    color: #333;

    font-family: "Roboto", Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.75;
}


.km-article-section {
    width: 100%;
    min-width: 0;

    margin: 0 0 32px;
    padding: 0;
}


.km-article-section:last-child {
    margin-bottom: 0;
}


/* =========================================================
   ARTICLE HEADINGS
   ========================================================= */

.km-article h2 {
    margin: 0 0 14px;
    padding: 0;

    color: #333;

    font-family: "Roboto", Arial, sans-serif;
    font-size: 25px;
    line-height: 1.35;
    font-weight: 700;

    overflow-wrap: break-word;
}


.km-article h3 {
    margin: 24px 0 8px;
    padding: 0;

    color: #333;

    font-family: "Roboto", Arial, sans-serif;
    font-size: 19px;
    line-height: 1.4;
    font-weight: 600;

    overflow-wrap: break-word;
}


/* =========================================================
   ARTICLE PARAGRAPHS
   ========================================================= */

.km-article p {
    margin: 0 0 15px;
    padding: 0;

    color: #444;

    font-size: 16px;
    line-height: 1.75;
    font-weight: 400;
}


.km-article p:last-child {
    margin-bottom: 0;
}


.km-article strong {
    font-weight: 600;
}


.km-article em {
    font-style: italic;
}


/* =========================================================
   ARTICLE LINKS
   ========================================================= */

.km-article a {
    color: #1155cc;

    font-weight: 400;
    text-decoration: none;

    overflow-wrap: break-word;
}


.km-article a:hover {
    text-decoration: underline;
}


.km-article a:focus-visible {
    outline: 3px solid rgba(26, 115, 232, 0.25);
    outline-offset: 2px;

    border-radius: 2px;
}


/* =========================================================
   ARTICLE LISTS
   ========================================================= */

.km-article .km-article-list {
    margin: 0 0 17px;
    padding: 0 0 0 24px;

    color: #444;

    font-size: 16px;
    line-height: 1.75;
}


.km-article ul.km-article-list {
    list-style-type: disc;
}


.km-article ol.km-article-list {
    list-style-type: decimal;
}


.km-article .km-article-list li {
    display: list-item;

    margin: 0 0 6px;
    padding: 0 0 0 2px;
}


.km-article .km-article-list li:last-child {
    margin-bottom: 0;
}


/* =========================================================
   INLINE KAOMOJI EXAMPLES
   ========================================================= */

.km-example {
    color: #222;

    font-family: var(--km-unicode-font);
    font-size: 1.05em;
    line-height: 1.6;
    font-weight: 400;

    letter-spacing: normal;

    white-space: pre-wrap;

    overflow-wrap: anywhere;
    word-break: normal;

    unicode-bidi: isolate;
}


/* =========================================================
   ARTICLE TABLE WRAPPER
   ========================================================= */

.km-table-wrap {
    width: 100%;
    min-width: 0;

    margin: 17px 0;
    padding: 0;

    border: 1px solid #dce2e9;
    border-radius: 7px;

    overflow-x: auto;

    -webkit-overflow-scrolling: touch;
}


/* =========================================================
   ARTICLE TABLES
   ========================================================= */

.km-table {
    width: 100%;
    min-width: 450px;

    margin: 0;
    padding: 0;

    border: 0;
    border-collapse: collapse;

    background: #fff;

    font-family: "Roboto", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;

    text-align: left;
}


.km-table th,
.km-table td {
    margin: 0;
    padding: 11px 14px;

    border: 0;
    border-bottom: 1px solid #e0e5eb;

    text-align: left;
    vertical-align: middle;
}


.km-table th {
    background: #f2f5f9;
    color: #333;

    font-size: 14px;
    font-weight: 600;
}


.km-table td {
    color: #444;

    font-size: 15px;
    font-weight: 400;
}


.km-table tbody tr:nth-child(even) {
    background: #fafbfd;
}


.km-table tbody tr:last-child td {
    border-bottom: 0;
}


.km-table td.km-example {
    color: #222;

    font-family: var(--km-unicode-font);
    font-size: 17px;
    line-height: 1.6;

    white-space: nowrap;
}


/* =========================================================
   FREQUENTLY ASKED QUESTIONS
   ========================================================= */

.km-faq-section {
    margin-top: 5px;
}


.km-faq-section h3 {
    margin-top: 24px;
    margin-bottom: 7px;
}


.km-faq-section h2 + h3 {
    margin-top: 16px;
}


.km-faq-section p {
    margin-bottom: 16px;
}


/* =========================================================
   RELATED TOOLS
   ========================================================= */

.km-related-section {
    padding-top: 20px;

    border-top: 1px solid #e3e7ec;
}


.km-article .km-related-tools {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    align-items: start;

    gap: 10px 25px;

    width: 100%;

    margin: 0;
    padding: 0;

    list-style: none;
}


.km-related-tools li {
    min-width: 0;

    margin: 0;
    padding: 0;

    font-size: 15px;
    line-height: 1.6;

    list-style: none;
}


.km-related-tools a {
    display: inline-block;

    color: #1155cc;

    font-size: 15px;
    line-height: 1.6;
}


/* =========================================================
   TEXT SELECTION
   ========================================================= */

.km-page ::selection {
    background: #cde2ff;
    color: #222;
}


/* =========================================================
   LARGE DESKTOP
   ========================================================= */

@media screen and (min-width: 1400px) {

    .km-grid {
        grid-template-columns:
            repeat(auto-fill, minmax(160px, 1fr));
    }

}


/* =========================================================
   MEDIUM DESKTOP
   ========================================================= */

@media screen and (max-width: 1150px) {

    .km-layout {
        gap: 20px;
    }


    .km-grid {
        grid-template-columns:
            repeat(auto-fill, minmax(145px, 1fr));
    }


    .km-page .km-face {
        font-size: 17px;
    }


    .km-page .km-category-button {
        padding: 7px 11px;
        font-size: 13px;
    }

}


/* =========================================================
   TABLET

   Remove the advertising sidebar at 900px and below.
   ========================================================= */

@media screen and (max-width: 900px) {

    .km-layout {
        display: block;
    }


    .km-sidebar {
        display: none;
    }


    .km-main {
        width: 100%;
        max-width: none;
    }


    .km-page {
        padding-right: 20px;
        padding-left: 20px;
    }


    .km-grid {
        grid-template-columns:
            repeat(auto-fill, minmax(145px, 1fr));
    }


    .km-page .km-face {
        font-size: 18px;
    }


    .km-page .km-category-button {
        min-height: 36px;
        padding: 7px 12px;

        font-size: 14px;
    }

}


/* =========================================================
   SMALL TABLET AND LARGE MOBILE
   ========================================================= */

@media screen and (max-width: 600px) {

    .km-page {
        padding:
            95px
            12px
            35px;
    }


    .km-heading {
        margin-bottom: 20px;
    }


    .km-heading h1 {
        font-size: 28px;
        line-height: 1.3;
    }


    .km-intro {
        font-size: 15px;
        line-height: 1.55;
    }


    .km-tool {
        gap: 22px;

        margin-bottom: 35px;
    }


    .km-controls {
        gap: 13px;
    }


    .km-page .km-search {
        min-height: 47px;
        font-size: 16px;
    }


    .km-categories {
        gap: 6px;
    }


    .km-page .km-category-button {
        min-height: 35px;

        padding: 7px 10px;

        font-size: 13px;
    }


    .km-collection {
        gap: 25px;
    }


    .km-group {
        gap: 10px;
    }


    .km-group h2 {
        font-size: 21px;
    }


    .km-grid {
        grid-template-columns:
            repeat(auto-fill, minmax(135px, 1fr));

        gap: 7px;
    }


    .km-page .km-face {
        min-height: 60px;

        padding: 11px 6px;

        font-size: 17px;
    }


    .km-page .km-face.is-long .km-face-text,
    .km-page .km-face.km-face-long .km-face-text {
        font-size: 15px;
    }


    .km-copy-feedback {
        font-size: 14px;
    }


    .km-recent {
        padding-bottom: 18px;
    }


    .km-article {
        padding-top: 25px;
    }


    .km-article-section {
        margin-bottom: 27px;
    }


    .km-article h2 {
        font-size: 23px;
        line-height: 1.35;
    }


    .km-article h3 {
        font-size: 18px;
    }


    .km-article p,
    .km-article .km-article-list {
        font-size: 15px;
        line-height: 1.75;
    }


    .km-table th,
    .km-table td {
        padding: 10px 11px;
    }


    .km-table td.km-example {
        font-size: 16px;
    }


    .km-article .km-related-tools {
        gap: 9px 15px;
    }

}


/* =========================================================
   STANDARD MOBILE

   Two columns on ordinary mobile screens give kaomoji
   enough room to remain readable.
   ========================================================= */

@media screen and (max-width: 440px) {

    .km-page {
        padding-right: 10px;
        padding-left: 10px;
    }


    .km-heading h1 {
        font-size: 26px;
    }


    .km-intro {
        font-size: 14px;
    }


    .km-page .km-search {
        padding-left: 39px;
        padding-right: 42px;
    }


    .km-search-icon {
        left: 12px;
        font-size: 19px;
    }


    .km-categories {
        gap: 5px;
    }


    .km-page .km-category-button {
        min-height: 35px;

        padding: 7px 9px;

        font-size: 12px;
    }


    .km-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 7px;
    }


    .km-page .km-face {
        min-height: 60px;

        padding: 10px 6px;

        font-size: 17px;
    }


    .km-group h2 {
        font-size: 20px;
    }


    .km-recent h2 {
        font-size: 19px;
    }


    .km-empty {
        min-height: 180px;

        padding: 25px 12px;
    }


    .km-empty h2 {
        font-size: 19px;
    }


    .km-empty p {
        font-size: 14px;
    }


    .km-article h2 {
        font-size: 22px;
    }


    .km-article .km-related-tools {
        grid-template-columns:
            minmax(0, 1fr);
    }

}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media screen and (max-width: 340px) {

    .km-page {
        padding-right: 8px;
        padding-left: 8px;
    }


    .km-heading h1 {
        font-size: 24px;
    }


    .km-grid {
        gap: 5px;
    }


    .km-page .km-face {
        padding-right: 4px;
        padding-left: 4px;

        font-size: 15px;
    }


    .km-page .km-category-button {
        padding-right: 8px;
        padding-left: 8px;
    }


    .km-page .km-search::placeholder {
        font-size: 14px;
    }

}


/* =========================================================
   REDUCED MOTION ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .km-page *,
    .km-page *::before,
    .km-page *::after {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }

}
