/*
Theme Name: 1000 Emojis Elegance Pro
Theme URI: https://1000emojis.com/
Author: 1000Emojis.com
Author URI: https://1000emojis.com/
Description: A premium, lightweight and fully responsive emoji-directory theme with design presets, dark mode, sortable homepage sections, accessible live search, advanced directory layouts and deep Customizer controls. Designed for the separate 1000 Emojis Core plugin.
Version: 3.0.1
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: thousand-emojis
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, news, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, wide-blocks, accessibility-ready, two-columns
*/

:root {
    --te-accent: #708f98;
    --te-accent-dark: #45646d;
    --te-ink: #1c2024;
    --te-muted: #697078;
    --te-border: #e7e8ea;
    --te-soft: #f7f8f8;
    --te-warm: #fffaf1;
    --te-card: #ffffff;
    --te-success: #18794e;
    --te-danger: #b42318;
    --te-radius: 18px;
    --te-radius-sm: 11px;
    --te-shadow: 0 18px 55px rgba(26, 34, 39, 0.09);
    --te-container: 1220px;
    --te-content: 790px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: #fff;
    color: var(--te-ink);
    font-family: var(--te-body-font);
    font-size: var(--te-body-size);
    line-height: var(--te-line-height);
    -webkit-font-smoothing: antialiased;
    overflow-wrap: anywhere;
}
body.admin-bar .site-header { top: 32px; }
img { max-width: 100%; height: auto; }
a { color: var(--te-accent-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--te-ink); }
button, input, textarea, select { font: inherit; }
button, input[type="submit"] { cursor: pointer; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--te-accent) 65%, white); outline-offset: 3px; }
::selection { background: var(--te-accent); color: #fff; }

.screen-reader-text {
    border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px;
    margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px;
    word-wrap: normal !important;
}
.screen-reader-text:focus {
    background: #fff; clip: auto !important; clip-path: none; color: var(--te-ink); display: block;
    height: auto; left: 8px; padding: 12px 16px; top: 8px; width: auto; z-index: 100000;
}

.te-container { width: min(calc(100% - 40px), var(--te-container)); margin-inline: auto; }
.te-narrow { width: min(calc(100% - 40px), var(--te-content)); margin-inline: auto; }
.te-section { padding: clamp(48px, 7vw, 92px) 0; }
.te-section--soft { background: var(--te-soft); }
.te-section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.te-section-head h2, .archive-header h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 500; line-height: 1.1; letter-spacing: -.025em; }
.te-section-head h2 { font-size: clamp(31px, 4vw, 48px); }
.te-kicker { display: inline-block; margin-bottom: 8px; color: var(--te-accent-dark); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.te-lead { color: var(--te-muted); font-size: clamp(17px, 2vw, 21px); max-width: 760px; }

/* Announcement */
.top-notice { background: #111; color: #fff; font-size: 13px; text-align: center; }
.top-notice__inner { min-height: 35px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.top-notice a { color: #fff; text-decoration: none; }
.top-notice a:hover { text-decoration: underline; }

/* Header and elegant split navigation */
.site-header {
    position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.96);
    border-bottom: 1px solid var(--te-border); backdrop-filter: blur(12px);
}
.header-main { min-height: 116px; display: grid; grid-template-columns: 1fr minmax(220px, 340px) 1fr; align-items: center; gap: 28px; }
.branding { text-align: center; min-width: 0; }
.custom-logo-link { display: inline-flex; }
.custom-logo { max-height: 74px; width: auto; }
.site-title { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(28px, 3vw, 41px); font-weight: 500; letter-spacing: .025em; line-height: 1; }
.site-title a { color: var(--te-accent-dark); text-decoration: none; }
.site-description { margin: 7px 0 0; color: var(--te-muted); font-family: Georgia, "Times New Roman", serif; font-size: 14px; }
.header-nav { min-width: 0; }
.header-nav--right { text-align: right; }
.menu, .sub-menu { list-style: none; margin: 0; padding: 0; }
.header-nav .menu { display: flex; align-items: center; gap: clamp(14px, 2vw, 27px); }
.header-nav--right .menu { justify-content: flex-end; }
.header-nav .menu > li { position: relative; }
.header-nav a { color: var(--te-ink); font-size: 12px; font-weight: 700; letter-spacing: .075em; text-decoration: none; text-transform: uppercase; white-space: nowrap; }
.header-nav a:hover, .header-nav .current-menu-item > a { color: var(--te-accent-dark); }
.header-nav .sub-menu {
    position: absolute; top: calc(100% + 14px); left: -18px; z-index: 10; min-width: 220px;
    padding: 12px; background: #fff; border: 1px solid var(--te-border); border-radius: var(--te-radius-sm);
    box-shadow: var(--te-shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .18s ease;
}
.header-nav--right .sub-menu { left: auto; right: -18px; }
.header-nav li:hover > .sub-menu, .header-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.header-nav .sub-menu a { display: block; padding: 9px 10px; font-size: 12px; text-align: left; white-space: normal; }
.header-tools { display: none; }
.menu-toggle, .mega-toggle, .search-toggle, .mobile-close {
    appearance: none; border: 1px solid var(--te-border); background: #fff; color: var(--te-ink);
    border-radius: 999px; min-height: 42px; padding: 9px 14px; font-weight: 750;
}
.menu-toggle svg, .mega-toggle svg, .search-toggle svg { width: 20px; height: 20px; display: block; }
.header-subbar { border-top: 1px solid var(--te-border); }
.header-subbar__inner { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.mega-toggle { border: 0; border-radius: 0; padding-inline: 0; display: inline-flex; align-items: center; gap: 9px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.header-quick-search { position: relative; width: min(340px, 100%); }
.header-quick-search input { width: 100%; height: 37px; border: 0; background: var(--te-soft); border-radius: 999px; padding: 0 40px 0 16px; font-size: 13px; }
.header-quick-search button { position: absolute; right: 5px; top: 4px; width: 30px; height: 30px; padding: 0; border: 0; background: transparent; }
.category-mega { display: none; border-top: 1px solid var(--te-border); background: #fff; box-shadow: 0 22px 40px rgba(20, 25, 30, .08); }
.category-mega.is-open { display: block; }
.category-mega__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; padding: 24px 0 30px; }
.category-mega__item { display: block; min-height: 92px; padding: 16px; border: 1px solid var(--te-border); border-radius: 14px; text-decoration: none; transition: .18s ease; }
.category-mega__item:hover { border-color: var(--te-accent); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(25,35,40,.08); }
.category-mega__item strong { display: block; color: var(--te-ink); font-size: 14px; }
.category-mega__item span { display: block; color: var(--te-muted); font-size: 12px; margin-top: 3px; }

.mobile-panel { position: fixed; inset: 0; z-index: 2000; display: none; background: rgba(16,20,24,.46); }
.mobile-panel.is-open { display: block; }
.mobile-panel__inner { margin-left: auto; width: min(92vw, 410px); height: 100%; overflow-y: auto; background: #fff; padding: 22px; box-shadow: -20px 0 50px rgba(0,0,0,.15); }
.mobile-panel__head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--te-border); padding-bottom: 15px; }
.mobile-panel .menu { display: block; }
.mobile-panel .menu a { display: block; color: var(--te-ink); padding: 12px 2px; border-bottom: 1px solid var(--te-border); font-weight: 700; text-decoration: none; }
.mobile-panel .sub-menu { padding-left: 18px; }

/* Search overlay */
.search-overlay { position: fixed; inset: 0; z-index: 2200; display: none; place-items: start center; background: rgba(16,20,24,.68); padding: 12vh 20px 40px; }
.search-overlay.is-open { display: grid; }
.search-overlay__dialog { width: min(760px, 100%); background: #fff; border-radius: 20px; padding: 24px; box-shadow: var(--te-shadow); }
.search-overlay__top { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.search-overlay__top h2 { margin: 0; font-family: Georgia, serif; font-weight: 500; }
.search-overlay__close { border: 0; background: transparent; font-size: 29px; line-height: 1; }

/* Live search */
.emoji-search { position: relative; width: 100%; }
.emoji-search__row { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--te-border); border-radius: 999px; padding: 8px; box-shadow: 0 13px 38px rgba(28,37,42,.08); }
.emoji-search__icon { margin-left: 13px; font-size: 20px; }
.emoji-search input { flex: 1; min-width: 0; height: 50px; border: 0; outline: 0; background: transparent; padding: 0 5px; font-size: 17px; }
.emoji-search button[type="submit"] { min-height: 48px; border: 0; border-radius: 999px; background: var(--te-ink); color: #fff; padding: 0 23px; font-weight: 800; }
.live-results { position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 10px); max-height: 440px; overflow-y: auto; display: none; background: #fff; border: 1px solid var(--te-border); border-radius: 16px; box-shadow: var(--te-shadow); text-align: left; }
.live-results.is-open { display: block; }
.live-result { display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 13px; align-items: center; padding: 13px 15px; color: var(--te-ink); text-decoration: none; border-bottom: 1px solid var(--te-border); }
.live-result:last-child { border-bottom: 0; }
.live-result:hover { background: var(--te-soft); }
.live-result__emoji { display: grid; place-items: center; min-height: 42px; border-radius: 11px; background: var(--te-warm); font-size: 29px; }
.live-result strong { display: block; font-size: 14px; }
.live-result small { display: block; color: var(--te-muted); }
.live-results__state { padding: 20px; color: var(--te-muted); text-align: center; }

/* Homepage */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 118px) 0 clamp(60px, 9vw, 112px); background: linear-gradient(145deg, #fff 0%, var(--te-warm) 52%, #f2f7f8 100%); border-bottom: 1px solid var(--te-border); }
.hero::before, .hero::after { content: "✨"; position: absolute; opacity: .19; filter: grayscale(.15); pointer-events: none; }
.hero::before { left: 3vw; top: 16%; font-size: clamp(64px, 10vw, 150px); transform: rotate(-12deg); }
.hero::after { right: 4vw; bottom: 8%; font-size: clamp(70px, 11vw, 160px); content: "😊"; transform: rotate(8deg); }
.hero__inner { position: relative; z-index: 2; text-align: center; }
.hero__eyebrow { color: var(--te-accent-dark); font-size: 12px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 { max-width: 930px; margin: 15px auto 18px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(44px, 7vw, 83px); font-weight: 500; letter-spacing: -.045em; line-height: .98; }
.hero__text { max-width: 700px; margin: 0 auto 31px; color: var(--te-muted); font-size: clamp(17px, 2vw, 21px); }
.hero .emoji-search { max-width: 790px; margin-inline: auto; }
.hero__examples { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; color: var(--te-muted); font-size: 13px; }
.hero__examples a { padding: 5px 10px; border: 1px solid rgba(112,143,152,.25); border-radius: 999px; background: rgba(255,255,255,.72); text-decoration: none; }
.stats-strip { border-bottom: 1px solid var(--te-border); background: #fff; }
.stats-strip__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 23px; text-align: center; border-right: 1px solid var(--te-border); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: Georgia, serif; font-size: 29px; font-weight: 500; }
.stat span { color: var(--te-muted); font-size: 13px; }
.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.category-card { position: relative; min-height: 185px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; padding: 23px; background: #fff; border: 1px solid var(--te-border); border-radius: var(--te-radius); color: var(--te-ink); text-decoration: none; transition: .18s ease; }
.category-card::before { content: attr(data-icon); position: absolute; top: 12px; right: 16px; font-size: 60px; opacity: .9; }
.category-card:hover { transform: translateY(-4px); border-color: var(--te-accent); box-shadow: var(--te-shadow); }
.category-card h3 { margin: 0; font-family: Georgia, serif; font-size: 23px; font-weight: 500; }
.category-card p { margin: 7px 0 0; color: var(--te-muted); font-size: 13px; }
.category-card__count { position: absolute; top: 18px; left: 18px; padding: 4px 9px; border-radius: 999px; background: var(--te-soft); color: var(--te-muted); font-size: 11px; font-weight: 800; }
.emoji-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.emoji-card { position: relative; min-width: 0; overflow: hidden; background: #fff; border: 1px solid var(--te-border); border-radius: var(--te-radius); transition: .18s ease; }
.emoji-card:hover { transform: translateY(-4px); border-color: var(--te-accent); box-shadow: var(--te-shadow); }
.emoji-card__link { display: block; padding: 25px 22px 18px; color: var(--te-ink); text-decoration: none; }
.emoji-card__emoji { min-height: 82px; display: grid; place-items: center; margin-bottom: 15px; border-radius: 15px; background: linear-gradient(135deg, var(--te-warm), #f2f7f8); font-size: clamp(48px, 6vw, 68px); line-height: 1; }
.emoji-card h3 { margin: 0; font-family: Georgia, serif; font-size: 21px; font-weight: 500; line-height: 1.2; }
.emoji-card__excerpt { margin: 9px 0 0; color: var(--te-muted); font-size: 14px; line-height: 1.55; }
.emoji-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--te-border); color: var(--te-muted); font-size: 12px; }
.mini-copy { border: 0; border-radius: 999px; background: var(--te-soft); color: var(--te-ink); padding: 7px 11px; font-size: 12px; font-weight: 800; }
.mini-copy:hover { background: var(--te-ink); color: #fff; }
.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tool-card { padding: 29px; border: 1px solid var(--te-border); border-radius: var(--te-radius); background: #fff; }
.tool-card__icon { display: grid; place-items: center; width: 53px; height: 53px; margin-bottom: 18px; border-radius: 15px; background: var(--te-warm); font-size: 27px; }
.tool-card h3 { margin: 0 0 8px; font-family: Georgia, serif; font-size: 23px; font-weight: 500; }
.tool-card p { margin: 0 0 16px; color: var(--te-muted); font-size: 14px; }
.te-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 18px; border: 1px solid var(--te-ink); border-radius: 999px; background: var(--te-ink); color: #fff; font-size: 14px; font-weight: 800; text-decoration: none; }
.te-button:hover { background: transparent; color: var(--te-ink); }
.te-button--ghost { background: transparent; color: var(--te-ink); }
.te-button--ghost:hover { background: var(--te-ink); color: #fff; }

/* Main layouts */
.site-main { min-height: 50vh; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(36px, 5vw, 72px); align-items: start; padding: 55px 0 80px; }
.content-layout--wide { display: block; }
.archive-header { padding: clamp(48px, 8vw, 90px) 0 33px; text-align: center; border-bottom: 1px solid var(--te-border); background: linear-gradient(180deg, #fff, var(--te-soft)); }
.archive-header h1 { font-size: clamp(40px, 6vw, 67px); }
.archive-description { max-width: 720px; margin: 15px auto 0; color: var(--te-muted); }
.archive-description p:last-child { margin-bottom: 0; }
.posts-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.content-layout .posts-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }

/* Breadcrumbs */
.breadcrumbs { border-bottom: 1px solid var(--te-border); background: #fff; }
.breadcrumbs__inner { min-height: 46px; display: flex; align-items: center; gap: 7px; overflow-x: auto; color: var(--te-muted); font-size: 12px; white-space: nowrap; }
.breadcrumbs a { color: var(--te-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--te-ink); }
.breadcrumbs__sep { opacity: .5; }

/* Single emoji */
.single-shell { padding: 52px 0 88px; }
.emoji-hero-card { display: grid; grid-template-columns: 255px minmax(0,1fr); gap: clamp(28px, 5vw, 62px); align-items: center; padding: clamp(28px, 5vw, 56px); border: 1px solid var(--te-border); border-radius: 26px; background: linear-gradient(135deg, #fff, var(--te-warm)); box-shadow: var(--te-shadow); }
.emoji-display { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 24px; background: #fff; border: 1px solid var(--te-border); font-size: clamp(92px, 14vw, 145px); line-height: 1; }
.emoji-hero-card h1 { margin: 7px 0 12px; font-family: Georgia, serif; font-size: clamp(38px, 5.2vw, 66px); font-weight: 500; letter-spacing: -.035em; line-height: 1.03; }
.emoji-summary { margin: 0 0 21px; color: var(--te-muted); font-size: 19px; }
.emoji-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.copy-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 10px 24px; border: 1px solid var(--te-ink); border-radius: 999px; background: var(--te-ink); color: #fff; font-weight: 850; }
.copy-button:hover { background: var(--te-accent-dark); border-color: var(--te-accent-dark); }
.copy-button.is-copied { background: var(--te-success); border-color: var(--te-success); }
.emoji-code { display: inline-flex; align-items: center; min-height: 50px; padding: 10px 17px; border: 1px solid var(--te-border); border-radius: 999px; background: #fff; color: var(--te-muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.single-grid { display: grid; grid-template-columns: minmax(0,1fr) 310px; gap: clamp(35px, 6vw, 76px); margin-top: 52px; align-items: start; }
.entry-content { min-width: 0; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2, .entry-content h3 { font-family: Georgia, serif; font-weight: 500; line-height: 1.2; scroll-margin-top: 150px; }
.entry-content h2 { margin: 44px 0 16px; font-size: clamp(29px, 3.6vw, 40px); }
.entry-content h3 { margin: 32px 0 13px; font-size: 26px; }
.entry-content p, .entry-content ul, .entry-content ol { margin-top: 0; margin-bottom: 22px; }
.entry-content ul, .entry-content ol { padding-left: 25px; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: 15px; }
.entry-content th, .entry-content td { border: 1px solid var(--te-border); padding: 12px; text-align: left; }
.entry-content th { background: var(--te-soft); }
.entry-content blockquote { margin: 30px 0; padding: 25px 30px; border-left: 4px solid var(--te-accent); background: var(--te-soft); font-family: Georgia, serif; font-size: 22px; }
.entry-content pre { max-width: 100%; overflow-x: auto; padding: 18px; border-radius: 12px; background: #171a1d; color: #fff; }
.entry-content img { border-radius: 14px; }
.entry-content .alignwide { max-width: 1050px; width: calc(100% + 180px); margin-left: -90px; }
.entry-content .alignfull { max-width: none; width: 100vw; margin-left: calc(50% - 50vw); }
.emoji-facts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px; margin: 35px 0; }
.fact-card { padding: 19px; border: 1px solid var(--te-border); border-radius: 14px; background: var(--te-soft); }
.fact-card strong { display: block; margin-bottom: 5px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.fact-card span { color: var(--te-muted); }
.auto-section { margin: 38px 0; padding: 27px; border: 1px solid var(--te-border); border-radius: var(--te-radius); background: #fff; }
.auto-section h2 { margin-top: 0; }
.example-list { display: grid; gap: 10px; list-style: none !important; padding-left: 0 !important; }
.example-list li { padding: 13px 15px; border-radius: 12px; background: var(--te-soft); }
.combo-list { display: flex; flex-wrap: wrap; gap: 9px; }
.combo-chip { padding: 8px 12px; border: 1px solid var(--te-border); border-radius: 999px; background: #fff; font-size: 18px; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 38px; }
.post-tags a { padding: 6px 11px; border-radius: 999px; background: var(--te-soft); font-size: 12px; text-decoration: none; }
.related-section { margin-top: 72px; padding-top: 50px; border-top: 1px solid var(--te-border); }

/* Sidebar and widgets */
.sidebar { position: sticky; top: 160px; }
.widget { margin-bottom: 24px; padding: 23px; border: 1px solid var(--te-border); border-radius: var(--te-radius); background: #fff; }
.widget-title { margin: 0 0 16px; font-family: Georgia, serif; font-size: 23px; font-weight: 500; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: 8px 0; border-bottom: 1px solid var(--te-border); }
.widget li:last-child { border-bottom: 0; }
.widget a { text-decoration: none; }
.ad-slot { width: 100%; overflow: hidden; text-align: center; }
.ad-slot:empty { display: none; }
.ad-slot img, .ad-slot iframe { max-width: 100%; }
.ad-label { display: block; margin-bottom: 5px; color: #969ca1; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }

/* Pagination */
.pagination, .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 42px; }
.page-numbers { display: inline-grid; place-items: center; min-width: 42px; min-height: 42px; padding: 7px 11px; border: 1px solid var(--te-border); border-radius: 999px; text-decoration: none; }
.page-numbers.current, .page-numbers:hover { background: var(--te-ink); border-color: var(--te-ink); color: #fff; }

/* Forms, comments */
input[type="text"], input[type="email"], input[type="url"], input[type="search"], textarea, select { max-width: 100%; border: 1px solid var(--te-border); border-radius: 10px; background: #fff; padding: 11px 13px; }
textarea { width: 100%; }
.comment-list { list-style: none; padding: 0; }
.comment-body { padding: 22px; margin-bottom: 16px; border: 1px solid var(--te-border); border-radius: 14px; }
.comment-meta { font-size: 13px; color: var(--te-muted); }

/* Footer */
.site-footer { background: #14181b; color: #d7dbde; }
.footer-widgets { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 35px; padding: 65px 0 45px; }
.site-footer .widget { padding: 0; margin: 0; background: transparent; border: 0; }
.site-footer .widget-title { color: #fff; }
.site-footer a { color: #d7dbde; }
.footer-brand { font-family: Georgia, serif; color: #fff; font-size: 31px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom__inner { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #aeb5b9; font-size: 13px; }
.footer-menu { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-menu a { text-decoration: none; }
.back-to-top { border: 1px solid rgba(255,255,255,.24); background: transparent; color: #fff; border-radius: 999px; padding: 8px 12px; }

/* 404 */
.error-404 { padding: 100px 0; text-align: center; }
.error-404__emoji { font-size: 95px; }
.error-404 h1 { font-family: Georgia, serif; font-size: clamp(45px, 7vw, 78px); font-weight: 500; margin: 8px 0; }

/* Toast */
.copy-toast { position: fixed; left: 50%; bottom: 28px; z-index: 3000; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 11px 17px; border-radius: 999px; background: #121619; color: #fff; box-shadow: var(--te-shadow); transition: .2s ease; font-size: 14px; }
.copy-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* WordPress utility */
.alignleft { float: left; margin: 0 24px 18px 0; }
.alignright { float: right; margin: 0 0 18px 24px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { color: var(--te-muted); font-size: 13px; }
.sticky { outline: 2px solid color-mix(in srgb, var(--te-accent) 45%, white); }
.bypostauthor { }

@media (max-width: 1100px) {
    .header-main { grid-template-columns: auto 1fr auto; min-height: 88px; }
    .header-nav { display: none; }
    .branding { grid-column: 2; }
    .header-tools { display: flex; align-items: center; gap: 8px; }
    .header-tools--left { grid-column: 1; grid-row: 1; }
    .header-tools--right { grid-column: 3; grid-row: 1; }
    .header-subbar { display: none; }
    .category-mega__grid { grid-template-columns: repeat(4, 1fr); }
    .emoji-grid { grid-template-columns: repeat(3, 1fr); }
    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .posts-grid { grid-template-columns: repeat(3, 1fr); }
    .content-layout .posts-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-widgets { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 850px) {
    body.admin-bar .site-header { top: 46px; }
    .te-container, .te-narrow { width: min(calc(100% - 28px), var(--te-container)); }
    .emoji-grid, .posts-grid { grid-template-columns: repeat(2, 1fr); }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .tools-grid { grid-template-columns: 1fr; }
    .content-layout, .single-grid { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .emoji-hero-card { grid-template-columns: 180px 1fr; }
    .entry-content .alignwide { width: 100%; margin-left: 0; }
}

@media (max-width: 620px) {
    body { font-size: 16px; }
    .top-notice__inner { min-height: 31px; }
    .header-main { min-height: 76px; gap: 10px; }
    .site-title { font-size: 25px; }
    .site-description { display: none; }
    .menu-toggle, .search-toggle { width: 42px; padding: 0; display: grid; place-items: center; }
    .hero { padding-top: 50px; }
    .hero::before, .hero::after { opacity: .10; }
    .hero h1 { font-size: clamp(40px, 13vw, 58px); }
    .emoji-search__row { border-radius: 17px; flex-wrap: wrap; padding: 9px; }
    .emoji-search input { min-width: calc(100% - 50px); }
    .emoji-search button[type="submit"] { width: 100%; }
    .stats-strip__grid { grid-template-columns: 1fr; }
    .stat { border-right: 0; border-bottom: 1px solid var(--te-border); }
    .stat:last-child { border-bottom: 0; }
    .category-grid, .emoji-grid, .posts-grid, .content-layout .posts-grid { grid-template-columns: 1fr; }
    .category-card { min-height: 155px; }
    .te-section-head { align-items: start; flex-direction: column; }
    .emoji-hero-card { grid-template-columns: 1fr; text-align: center; }
    .emoji-display { width: min(240px, 100%); margin-inline: auto; }
    .emoji-actions { justify-content: center; }
    .emoji-facts { grid-template-columns: 1fr; }
    .footer-widgets { grid-template-columns: 1fr; }
    .footer-bottom__inner { align-items: flex-start; flex-direction: column; padding: 22px 0; }
    .alignleft, .alignright { float: none; display: block; margin: 0 auto 18px; }
}

@media (min-width: 1600px) {
    :root { --te-container: 1380px; --te-content: 850px; }
    body { font-size: 18px; }
    .emoji-grid { grid-template-columns: repeat(5, minmax(0,1fr)); }
    .category-grid { grid-template-columns: repeat(5, minmax(0,1fr)); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

@media print {
    .top-notice, .site-header, .breadcrumbs, .sidebar, .site-footer, .emoji-actions, .ad-slot, .related-section { display: none !important; }
    .single-grid, .content-layout { display: block; }
    body { color: #000; }
}

/* Compact WordPress search form */
.search-form { position: relative; display: flex; width: 100%; }
.search-form label { display: block; flex: 1; }
.search-form .search-field { width: 100%; height: 40px; padding-right: 42px; border-radius: 999px; background: var(--te-soft); }
.search-form .search-submit { position: absolute; top: 4px; right: 5px; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--te-ink); font-size: 19px; }
.all-emojis-filter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(190px, 260px) auto; gap: 12px; margin-bottom: 28px; padding: 17px; border: 1px solid var(--te-border); border-radius: var(--te-radius); background: #fff; }
.all-emojis-filter input, .all-emojis-filter select { width: 100%; min-height: 46px; }
.all-emojis-filter button { min-height: 46px; border: 0; border-radius: 999px; background: var(--te-ink); color: #fff; padding: 0 21px; font-weight: 800; }
@media (max-width: 700px) { .all-emojis-filter { grid-template-columns: 1fr; } }
.footer-menu .menu { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-menu .menu li { list-style: none; }
:focus-visible { outline-color: var(--te-accent); }
:focus-visible { outline: 3px solid var(--te-accent); outline-offset: 3px; }


/* Version 2.0 professional editable system */
body { background: var(--te-body-bg); }
h1,h2,h3,h4,h5,h6,.site-title,.widget-title,.footer-brand,.te-section-head h2,.archive-header h1,.emoji-card h3,.category-card h3,.tool-card h3 { font-family: var(--te-heading-font); font-weight: var(--te-heading-weight); }
.te-section { padding-block: var(--te-section-space); }
.te-section--white { background: var(--te-body-bg); }
.te-section--soft { background: var(--te-soft); }
.te-section--warm { background: var(--te-warm); }
.site-header { background: color-mix(in srgb, var(--te-header-bg) 96%, transparent); }
.te-static-header .site-header { position: relative; top: auto; }
.custom-logo { max-width: var(--te-logo-width); }
.site-title { font-size: clamp(24px, 3vw, var(--te-title-size)); }
.header-nav a { font-size: var(--te-menu-size); }
.top-notice { background: var(--te-notice-bg); color: var(--te-notice-color); }
.top-notice a { color: var(--te-notice-color); }
.hero h1 { font-size: clamp(44px, 7vw, var(--te-hero-size)); }
.hero--white { background: var(--te-body-bg); }
.hero--soft { background: var(--te-soft); }
.hero--accent { background: color-mix(in srgb, var(--te-accent) 13%, white); }
.hero--align-left .hero__inner { text-align: left; }
.hero--align-left .hero h1,.hero--align-left .hero__text,.hero--align-left .hero .emoji-search { margin-left: 0; }
.hero--align-left .hero__examples { justify-content: flex-start; }
.category-grid { grid-template-columns: repeat(var(--te-category-columns), minmax(0,1fr)); }
.emoji-grid { grid-template-columns: repeat(var(--te-grid-columns), minmax(0,1fr)); }
.content-layout { grid-template-columns: minmax(0,1fr) var(--te-sidebar); }
.te-sidebar-left .content-layout > div:first-child,.te-sidebar-left .single-grid > .entry-content { grid-column: 2; }
.te-sidebar-left .content-layout > .sidebar,.te-sidebar-left .single-grid > .sidebar { grid-column: 1; grid-row: 1; }
.emoji-card,.category-card,.tool-card,.widget,.fact-card,.auto-section { background: var(--te-card); border-radius: var(--te-radius); transition: transform var(--te-hover-speed) ease, box-shadow var(--te-hover-speed) ease, border-color var(--te-hover-speed) ease; }
.te-card-style-shadow .emoji-card { border-color: transparent; box-shadow: var(--te-shadow); }
.te-card-style-flat .emoji-card { border-color: transparent; box-shadow: none; }
.te-card-style-flat .emoji-card__meta { border-top-color: transparent; }
.te-hover-none .emoji-card:hover,.te-hover-none .category-card:hover,.te-hover-none .tool-card:hover,.te-hover-none .category-mega__item:hover { transform: none; box-shadow: none; }
.te-hover-lift .emoji-card:hover,.te-hover-lift .category-card:hover,.te-hover-lift .tool-card:hover,.te-hover-lift .category-mega__item:hover { transform: translateY(-5px); border-color: var(--te-accent); box-shadow: var(--te-shadow); }
.te-hover-scale .emoji-card:hover,.te-hover-scale .category-card:hover,.te-hover-scale .tool-card:hover,.te-hover-scale .category-mega__item:hover { transform: scale(1.025); border-color: var(--te-accent); box-shadow: var(--te-shadow); }
.te-hover-glow .emoji-card:hover,.te-hover-glow .category-card:hover,.te-hover-glow .tool-card:hover,.te-hover-glow .category-mega__item:hover { transform: none; border-color: var(--te-accent); box-shadow: 0 0 0 4px color-mix(in srgb,var(--te-accent) 16%,transparent),var(--te-shadow); }
.te-hover-border .emoji-card:hover,.te-hover-border .category-card:hover,.te-hover-border .tool-card:hover,.te-hover-border .category-mega__item:hover { transform: none; border-color: var(--te-accent); box-shadow: none; }
.te-emoji-bg-soft .emoji-card__emoji { background: var(--te-soft); }
.te-emoji-bg-warm .emoji-card__emoji { background: var(--te-warm); }
.te-emoji-bg-white .emoji-card__emoji { background: #fff; border: 1px solid var(--te-border); }
.te-menu-hover-underline .header-nav .menu > li > a { position: relative; }
.te-menu-hover-underline .header-nav .menu > li > a::after { content:"";position:absolute;left:0;right:100%;bottom:-8px;height:2px;background:var(--te-accent);transition:right var(--te-hover-speed) ease; }
.te-menu-hover-underline .header-nav .menu > li > a:hover::after,.te-menu-hover-underline .header-nav .current-menu-item > a::after { right:0; }
.te-menu-hover-pill .header-nav a { padding:8px 11px;border-radius:999px; }
.te-menu-hover-pill .header-nav a:hover,.te-menu-hover-pill .header-nav .current-menu-item>a { background:var(--te-soft); }
.te-button,.emoji-search button[type="submit"] { background: var(--te-button-bg); color: var(--te-button-color); border-color: var(--te-button-bg); }
.te-button:hover { color: var(--te-button-bg); }
.site-footer { background: var(--te-footer-bg); color: var(--te-footer-color); }
.site-footer a { color: var(--te-footer-color); }
.footer-widgets--1 { grid-template-columns: 1fr; }
.footer-widgets--2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
.footer-widgets--3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.footer-widgets--4 { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
.te-widget-zone { padding: 26px 0; background: var(--te-body-bg); }
.te-widget-zone__inner { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,270px),1fr)); gap: 22px; }
.te-widget-zone .widget { margin: 0; }
.home-widget-area--before-hero { border-bottom: 1px solid var(--te-border); }
.home-widget-area--before-footer { border-top: 1px solid var(--te-border); }
.widget-category-cards { display:grid;gap:8px; }
.widget-category-cards a { display:grid;grid-template-columns:32px 1fr auto;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--te-border);border-radius:12px;color:var(--te-ink); }
.widget-category-cards a:hover { border-color:var(--te-accent); }
.widget-category-cards small { color:var(--te-muted); }
.widget-emoji-list { display:grid;gap:5px; }
.widget-emoji-list a { display:grid;grid-template-columns:45px 1fr;gap:11px;align-items:center;padding:9px;border-radius:12px;color:var(--te-ink); }
.widget-emoji-list a:hover { background:var(--te-soft); }
.widget-emoji-list__emoji { display:grid;place-items:center;width:45px;height:45px;border-radius:12px;background:var(--te-warm);font-size:25px; }
.widget-emoji-list strong,.widget-emoji-list small { display:block; }
.widget-emoji-list small { color:var(--te-muted);font-size:11px;line-height:1.35;margin-top:2px; }
.widget .emoji-search__row { border-radius:15px;flex-wrap:wrap; }
.widget .emoji-search button[type="submit"] { width:100%; }
.te-reduce-motion *,.te-reduce-motion *::before,.te-reduce-motion *::after { transition:none!important;animation:none!important;scroll-behavior:auto!important; }
.te-header-compact .header-main { grid-template-columns:minmax(180px,340px) 1fr auto;min-height:88px; }
.te-header-compact .branding { grid-column:1;text-align:left; }
.te-header-compact .header-nav--left { grid-column:2; }
.te-header-compact .header-nav--right { display:none; }
.te-header-centered .header-main { grid-template-columns:1fr;gap:18px;padding-block:25px; }
.te-header-centered .branding { grid-row:1; }
.te-header-centered .header-nav--left { grid-row:2; }
.te-header-centered .header-nav--right { grid-row:3;text-align:center; }
.te-header-centered .header-nav .menu,.te-header-centered .header-nav--right .menu { justify-content:center; }
@media(max-width:1100px){.category-grid{grid-template-columns:repeat(min(3,var(--te-category-columns)),1fr)}.emoji-grid{grid-template-columns:repeat(var(--te-grid-columns-tablet,2),1fr)}}
@media(max-width:850px){.emoji-grid{grid-template-columns:repeat(var(--te-grid-columns-tablet,2),1fr)}.footer-widgets--3,.footer-widgets--4{grid-template-columns:repeat(2,1fr)}}
@media(max-width:620px){.category-grid{grid-template-columns:1fr}.emoji-grid{grid-template-columns:repeat(var(--te-grid-columns-mobile,1),1fr)}.footer-widgets--2,.footer-widgets--3,.footer-widgets--4{grid-template-columns:1fr}.hero--align-left .hero__inner{text-align:center}.hero--align-left .hero__examples{justify-content:center}.te-sidebar-left .content-layout > div:first-child,.te-sidebar-left .single-grid > .entry-content,.te-sidebar-left .content-layout > .sidebar,.te-sidebar-left .single-grid > .sidebar{grid-column:auto;grid-row:auto}}

.archive-widget-area,.single-widget-area{padding:0 0 28px}.archive-widget-area .te-widget-zone__inner,.single-widget-area .te-widget-zone__inner{grid-template-columns:1fr}.archive-widget-area .widget,.single-widget-area .widget{margin:0}

/* =========================================================
   Version 3.0 — professional emoji directory system
   ========================================================= */
html[data-theme="dark"] {
    color-scheme: dark;
    --te-body-bg: var(--te-dark-bg);
    --te-card: var(--te-dark-card);
    --te-header-bg: var(--te-dark-card);
    --te-ink: var(--te-dark-text);
    --te-muted: var(--te-dark-muted);
    --te-border: var(--te-dark-border);
    --te-soft: color-mix(in srgb, var(--te-dark-card) 82%, white 4%);
    --te-warm: color-mix(in srgb, var(--te-secondary) 10%, var(--te-dark-bg));
    --te-button-bg: var(--te-dark-text);
    --te-button-color: var(--te-dark-bg);
    --te-input-bg: var(--te-dark-card);
}
html[data-theme="dark"] body { background: var(--te-body-bg); color: var(--te-ink); }
html[data-theme="dark"] .site-header,
html[data-theme="dark"] .category-mega,
html[data-theme="dark"] .search-overlay__dialog,
html[data-theme="dark"] .mobile-panel__inner,
html[data-theme="dark"] .emoji-directory-toolbar,
html[data-theme="dark"] .all-emojis-filter { background: var(--te-card); color: var(--te-ink); }
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea { background: var(--te-input-bg); color: var(--te-ink); border-color: var(--te-border); }
html[data-theme="dark"] .emoji-card__emoji { background: linear-gradient(145deg, color-mix(in srgb,var(--te-accent) 15%,var(--te-card)), var(--te-card)); }
html[data-theme="dark"] .site-footer { background: #090b0d; }

.te-preset-modern { --te-heading-font: ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif; }
.te-preset-modern .emoji-card,.te-preset-modern .category-card,.te-preset-modern .tool-card { border-radius: var(--te-radius-sm); }
.te-preset-playful .hero { background: radial-gradient(circle at 15% 10%, color-mix(in srgb,var(--te-secondary) 28%,transparent), transparent 32%), radial-gradient(circle at 90% 20%, color-mix(in srgb,var(--te-accent) 26%,transparent), transparent 34%), var(--te-warm); }
.te-preset-playful .emoji-card__emoji { font-size: clamp(54px,7vw,82px); }
.te-preset-minimal .emoji-card,.te-preset-minimal .category-card,.te-preset-minimal .tool-card { box-shadow:none;border-radius:4px; }
.te-preset-minimal .hero::before,.te-preset-minimal .hero::after { display:none; }
.te-preset-colourful .category-card:nth-child(3n+1){background:color-mix(in srgb,var(--te-accent) 10%,var(--te-card))}.te-preset-colourful .category-card:nth-child(3n+2){background:color-mix(in srgb,var(--te-secondary) 14%,var(--te-card))}.te-preset-colourful .category-card:nth-child(3n){background:color-mix(in srgb,#8ed6b4 14%,var(--te-card))}
.te-preset-dark { --te-shadow:0 18px 60px rgba(0,0,0,.28); }

.header-icon-button { display:grid;place-items:center;width:42px;height:42px;padding:0;border:1px solid var(--te-border);border-radius:50%;background:var(--te-card);color:var(--te-ink);text-decoration:none; }
.header-icon-button:hover { border-color:var(--te-accent);color:var(--te-accent-dark); }
.header-icon-button svg { width:20px;height:20px; }
.header-tools--right { gap:8px; }
.theme-icon--sun { display:block; }
html[data-theme="dark"] .theme-icon--sun { transform:rotate(25deg); }
.category-inline-nav .menu { display:flex;flex-wrap:wrap;gap:22px;margin:0;padding:0;list-style:none; }
.category-inline-nav a { color:var(--te-ink);font-size:12px;font-weight:800;letter-spacing:.08em;text-decoration:none;text-transform:uppercase; }
.mobile-panel__actions { display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:24px; }
.mobile-panel--right .mobile-panel__inner { margin-left:auto;transform:translateX(104%); }
.mobile-panel--right.is-open .mobile-panel__inner { transform:translateX(0); }
.site-header { transition:transform .22s ease,box-shadow .22s ease; }
.site-header.is-hidden { transform:translateY(calc(-100% - 40px)); }

.emoji-directory-toolbar { margin-bottom:24px;padding:20px;border:var(--te-border-width) solid var(--te-border);border-radius:var(--te-radius);background:var(--te-card);box-shadow:0 10px 30px rgba(26,34,39,.04); }
.directory-search { display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;margin-bottom:16px; }
.directory-search input { width:100%;min-height:52px;border-radius:999px;padding-inline:20px;background:var(--te-input-bg); }
.directory-search button,.filter-apply { min-height:48px;border:0;border-radius:999px;padding:0 24px;background:var(--te-button-bg);color:var(--te-button-color);font-weight:800; }
.directory-filters { display:grid;grid-template-columns:repeat(4,minmax(145px,1fr)) auto auto;gap:12px;align-items:end; }
.directory-filters label span { display:block;margin:0 0 5px;color:var(--te-muted);font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.06em; }
.directory-filters select { width:100%;min-height:46px;border-radius:var(--te-radius-sm); }
.filter-clear { display:grid;place-items:center;min-height:46px;color:var(--te-muted); }
.az-filter { display:flex;flex-wrap:wrap;gap:6px;margin:0 0 22px; }
.az-filter a { display:grid;place-items:center;min-width:34px;height:34px;padding:0 7px;border:1px solid var(--te-border);border-radius:9px;background:var(--te-card);color:var(--te-ink);font-size:12px;font-weight:800;text-decoration:none; }
.az-filter a:hover,.az-filter a.is-active { border-color:var(--te-accent);background:var(--te-accent);color:#fff; }
.directory-result-bar { display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 20px; }
.directory-result-bar p { margin:0;color:var(--te-muted);font-weight:700; }
.view-switch { display:flex;border:1px solid var(--te-border);border-radius:10px;overflow:hidden; }
.view-switch a { display:grid;place-items:center;width:42px;height:38px;color:var(--te-muted);text-decoration:none; }
.view-switch a.is-active { background:var(--te-ink);color:var(--te-card); }
.emoji-directory--list { grid-template-columns:1fr!important; }
.emoji-directory--list .emoji-card { display:grid;grid-template-columns:1fr auto; }
.emoji-directory--list .emoji-card__link { display:grid;grid-template-columns:100px minmax(0,1fr);grid-template-rows:auto auto;align-items:center;column-gap:20px;padding:16px; }
.emoji-directory--list .emoji-card__emoji { grid-row:1/3;width:100px;height:90px;margin:0;font-size:50px; }
.emoji-directory--list .emoji-card h3 { align-self:end;margin:0; }
.emoji-directory--list .emoji-card__excerpt { align-self:start;margin:5px 0 0; }
.emoji-directory--list .emoji-card__meta { min-width:190px;border-top:0;border-left:1px solid var(--te-border); }
.emoji-card__buttons { display:flex;align-items:center;gap:6px; }
.mini-favourite { display:grid;place-items:center;width:34px;height:30px;border:1px solid var(--te-border);border-radius:999px;background:transparent;color:var(--te-muted);font-size:19px; }
.mini-favourite.is-active,.js-favourite-emoji.is-active { color:#d22f65;border-color:color-mix(in srgb,#d22f65 45%,var(--te-border)); }

.emoji-day-card { display:grid;grid-template-columns:minmax(180px,280px) 1fr;gap:36px;align-items:center;padding:clamp(24px,5vw,52px);border:1px solid var(--te-border);border-radius:var(--te-radius-lg);background:linear-gradient(135deg,var(--te-card),color-mix(in srgb,var(--te-accent) 9%,var(--te-card)));box-shadow:var(--te-shadow); }
.emoji-day-card__symbol { display:grid;place-items:center;aspect-ratio:1;border-radius:var(--te-radius-lg);background:var(--te-warm);font-size:clamp(86px,12vw,150px); }
.emoji-day-card h3 { margin:0 0 12px;font-size:clamp(32px,5vw,58px); }
.emoji-day-card h3 a { color:var(--te-ink);text-decoration:none; }
.emoji-day-card p { color:var(--te-muted);font-size:19px;max-width:680px; }
.newsletter-section { background:linear-gradient(135deg,color-mix(in srgb,var(--te-accent) 18%,var(--te-soft)),var(--te-soft)); }
.newsletter-card,.cta-card { display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,520px);gap:44px;align-items:center;padding:clamp(28px,5vw,58px);border-radius:var(--te-radius-lg);background:var(--te-card);box-shadow:var(--te-shadow); }
.newsletter-card h2,.cta-card h2 { margin:0 0 10px;font-size:clamp(32px,4.5vw,52px); }
.newsletter-card p,.cta-card p { margin-bottom:0;color:var(--te-muted); }
.newsletter-form { display:grid;grid-template-columns:1fr auto;gap:10px; }
.newsletter-form input { min-height:52px;border-radius:999px;padding:0 19px;background:var(--te-input-bg); }
.newsletter-form button { min-height:52px;border:0;border-radius:999px;padding:0 23px;background:var(--te-button-bg);color:var(--te-button-color);font-weight:800; }
.faq-list { display:grid;gap:12px; }
.faq-item { border:1px solid var(--te-border);border-radius:var(--te-radius-sm);background:var(--te-card);overflow:hidden; }
.faq-item summary { position:relative;padding:20px 54px 20px 20px;font-weight:800;cursor:pointer;list-style:none; }
.faq-item summary::-webkit-details-marker { display:none; }
.faq-item summary::after { content:"+";position:absolute;right:20px;top:50%;transform:translateY(-50%);font-size:24px;color:var(--te-accent-dark); }
.faq-item[open] summary::after { content:"−"; }
.faq-item div { padding:0 20px 20px;color:var(--te-muted); }
.faq-item p { margin:0; }
.cta-section { background:var(--te-footer-bg);color:var(--te-footer-color); }
.cta-card { grid-template-columns:minmax(0,1fr) auto;background:color-mix(in srgb,var(--te-footer-bg) 88%,white 6%);box-shadow:none; }
.cta-card h2,.cta-card p { color:var(--te-footer-color); }
.cta-card .te-button { white-space:nowrap;background:var(--te-accent);border-color:var(--te-accent); }

.emoji-note { margin:30px 0;padding:24px;border-left:4px solid var(--te-warning);border-radius:0 var(--te-radius-sm) var(--te-radius-sm) 0;background:color-mix(in srgb,var(--te-warning) 9%,var(--te-card)); }
.emoji-note h2 { margin-top:0;font-size:24px; }
.floating-copy { position:fixed;right:18px;bottom:18px;z-index:90;display:none;min-height:52px;padding:0 22px;border:0;border-radius:999px;background:var(--te-ink);color:var(--te-card);font-weight:800;box-shadow:0 14px 40px rgba(0,0,0,.22); }
.te-favourites-modal { position:fixed;inset:0;z-index:100002;display:grid;place-items:center;padding:20px;background:rgba(5,8,10,.62);opacity:0;visibility:hidden;transition:.18s ease; }
.te-favourites-modal.is-open { opacity:1;visibility:visible; }
.te-favourites-dialog { width:min(680px,100%);max-height:min(80vh,760px);overflow:auto;border-radius:var(--te-radius-lg);background:var(--te-card);color:var(--te-ink);box-shadow:0 30px 100px rgba(0,0,0,.3); }
.te-favourites-list { display:grid;gap:8px;padding:20px; }
.te-favourites-list article { display:grid;grid-template-columns:1fr auto;align-items:center;padding:10px 12px;border:1px solid var(--te-border);border-radius:12px; }
.te-favourites-list article a { display:grid;grid-template-columns:48px 1fr;align-items:center;gap:12px;color:var(--te-ink);text-decoration:none; }
.te-favourites-list article span { font-size:32px;text-align:center; }
.te-favourites-list article button { width:42px;height:42px;border:1px solid var(--te-border);border-radius:50%;background:transparent;color:#d22f65;font-size:20px; }

.te-tool-grid { display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:14px;margin-top:20px; }
.te-tool-emoji { position:relative;padding:18px;border:1px solid var(--te-border);border-radius:var(--te-radius-sm);background:var(--te-card); }
.te-tool-emoji>a { display:grid;gap:8px;color:var(--te-ink);text-decoration:none; }
.te-tool-emoji>a span { font-size:54px; }
.te-tool-emoji>button { margin-top:12px;border:1px solid var(--te-border);border-radius:999px;background:transparent;padding:7px 12px; }
.te-tool-emoji .js-favourite-emoji { position:absolute;top:10px;right:10px;margin:0;width:34px;height:34px;padding:0; }
.te-emoji-picker>input { width:100%;min-height:50px;border-radius:999px;padding:0 18px; }

.ad-slot { display:grid;align-content:center;min-height:var(--te-ad-min-height,0); }
.live-result.is-active { background:var(--te-soft);outline:2px solid var(--te-accent);outline-offset:-2px; }
.skip-link:focus { z-index:100010; }

@media (max-width:1100px){
    .directory-filters{grid-template-columns:repeat(3,minmax(145px,1fr))}.newsletter-card{grid-template-columns:1fr}.category-inline-nav{display:none}
}
@media (max-width:850px){
    .directory-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.emoji-day-card{grid-template-columns:170px 1fr;gap:24px}.emoji-day-card__symbol{font-size:88px}.cta-card{grid-template-columns:1fr}.cta-card .te-button{justify-self:start}.floating-copy{display:block}
}
@media (max-width:620px){
    .header-tools--right .header-icon-button:first-child{display:none}.directory-search{grid-template-columns:1fr}.directory-filters{grid-template-columns:1fr}.directory-result-bar{align-items:flex-start}.emoji-directory--list .emoji-card{display:block}.emoji-directory--list .emoji-card__link{grid-template-columns:78px 1fr}.emoji-directory--list .emoji-card__emoji{width:78px;height:74px;font-size:42px}.emoji-directory--list .emoji-card__meta{border-left:0;border-top:1px solid var(--te-border)}.emoji-day-card{grid-template-columns:1fr;text-align:center}.emoji-day-card__symbol{width:min(220px,100%);margin:auto}.emoji-day-card .emoji-actions{justify-content:center}.newsletter-form{grid-template-columns:1fr}.mobile-panel__actions{grid-template-columns:1fr}.az-filter{gap:4px}.az-filter a{min-width:30px;height:31px}.floating-copy{left:14px;right:14px;width:calc(100% - 28px)}
}
.category-card:hover{border-color:var(--te-category-accent,var(--te-accent))}.category-card::after{background:var(--te-category-accent,var(--te-accent))}
