.acs-alt-codes-wrapper {
    width: 100%;
    margin: 24px 0;
}

.acs-alt-codes-toolbar {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(220px, 280px) auto;
    gap: 14px;
    align-items: end;
    margin-bottom: 16px;
    padding: 18px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
}

.acs-search-box,
.acs-filter-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.acs-search-label,
.acs-filter-label {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
}

.acs-alt-search-input,
.acs-alt-category-filter {
    width: 100%;
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #ffffff;
    color: #111827;
    font-size: 14px;
    outline: none;
}

.acs-alt-search-input:focus,
.acs-alt-category-filter:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.acs-toolbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.acs-clear-filter-btn {
    min-height: 42px;
    padding: 9px 14px;
    border: none;
    border-radius: 10px;
    background: #111827;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.acs-clear-filter-btn:hover {
    background: #374151;
}

.acs-symbols-strip {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #f8fafc;
}

.acs-symbols-strip .acs-symbols-strip-item,
.acs-symbol-cell .acs-symbols-strip-item,
.acs-symbol-name-cell .acs-symbols-strip-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    padding: 8px 12px;
    border: 1px solid #1f2937 !important;
    border-radius: 12px;
    background: #111827 !important;
    background-color: #111827 !important;
    color: #ffffff !important;
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    transform: scale(1);
    transform-origin: center center;
    transition:
        transform 0.22s cubic-bezier(0.34, 1.4, 0.64, 1),
        box-shadow 0.22s ease,
        background-color 0.22s ease,
        border-color 0.22s ease;
    will-change: transform;
}

/* Glyph on inner span — white on black; themes often override <button> font-size. */
.acs-symbols-strip .acs-symbols-strip-item .acs-symbols-strip-glyph,
.acs-symbol-cell .acs-symbols-strip-item .acs-symbols-strip-glyph,
.acs-symbol-name-cell .acs-symbols-strip-item .acs-symbols-strip-glyph {
    display: block;
    color: #ffffff !important;
    font-size: 42px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    letter-spacing: 0;
    pointer-events: none;
    -webkit-text-fill-color: #ffffff;
}

.acs-symbols-strip .acs-symbols-strip-item:hover,
.acs-symbols-strip .acs-symbols-strip-item:focus-visible,
.acs-symbol-cell .acs-symbols-strip-item:hover,
.acs-symbol-cell .acs-symbols-strip-item:focus-visible,
.acs-symbol-name-cell .acs-symbols-strip-item:hover,
.acs-symbol-name-cell .acs-symbols-strip-item:focus-visible {
    background: #000000 !important;
    background-color: #000000 !important;
    border-color: #374151 !important;
    transform: scale(1.22) !important;
    z-index: 5;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    outline: none;
}

.acs-symbols-strip .acs-symbols-strip-item:hover .acs-symbols-strip-glyph,
.acs-symbols-strip .acs-symbols-strip-item:focus-visible .acs-symbols-strip-glyph,
.acs-symbol-cell .acs-symbols-strip-item:hover .acs-symbols-strip-glyph,
.acs-symbol-cell .acs-symbols-strip-item:focus-visible .acs-symbols-strip-glyph,
.acs-symbol-name-cell .acs-symbols-strip-item:hover .acs-symbols-strip-glyph,
.acs-symbol-name-cell .acs-symbols-strip-item:focus-visible .acs-symbols-strip-glyph {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff;
}

.acs-symbols-strip .acs-symbols-strip-item:active,
.acs-symbol-cell .acs-symbols-strip-item:active,
.acs-symbol-name-cell .acs-symbols-strip-item:active {
    transform: scale(1.1);
    background: #0f172a !important;
    background-color: #0f172a !important;
}

.acs-symbols-strip .acs-symbols-strip-item.acs-copied,
.acs-symbol-cell .acs-symbols-strip-item.acs-copied,
.acs-symbol-name-cell .acs-symbols-strip-item.acs-copied {
    background: #14532d !important;
    background-color: #14532d !important;
    border-color: #22c55e !important;
    box-shadow: 0 0 0 2px #22c55e;
    transform: scale(1.12);
}

.acs-symbols-strip .acs-symbols-strip-item.acs-copied .acs-symbols-strip-glyph,
.acs-symbol-cell .acs-symbols-strip-item.acs-copied .acs-symbols-strip-glyph,
.acs-symbol-name-cell .acs-symbols-strip-item.acs-copied .acs-symbols-strip-glyph {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff;
}

.acs-alt-codes-count {
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
}

.acs-table-scroll {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
}

.acs-alt-codes-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    font-size: 15px;
}

.acs-alt-codes-table th,
.acs-alt-codes-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    vertical-align: middle;
}

.acs-alt-codes-table th {
    background: #f8fafc;
    font-weight: 800;
    color: #111827;
    white-space: nowrap;
}

.acs-alt-codes-table tbody tr:hover {
    background: #f9fafb;
}

.acs-symbol-cell {
    text-align: center;
    vertical-align: middle;
    min-width: 76px;
    padding: 10px 8px;
}

.acs-symbol-name-cell {
    vertical-align: top;
    min-width: 200px;
    max-width: 320px;
    padding: 16px 14px;
    overflow: visible;
    position: relative;
}

.acs-alt-codes-table td.acs-symbol-name-cell {
    overflow: visible;
}

.acs-symbol-name-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    overflow: visible;
}

.acs-symbol-name-stack-symbol {
    display: flex;
    justify-content: flex-start;
    overflow: visible;
    padding: 4px;
}

.acs-symbol-name-stack-title,
.acs-title-cell a {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    color: #1d4ed8;
    text-decoration: none;
    word-break: break-word;
}

.acs-symbol-name-stack-title:hover,
.acs-title-cell a:hover {
    text-decoration: underline;
}

.acs-code-cell,
.acs-number-cell {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-weight: 700;
    color: #111827;
    white-space: nowrap;
}

.acs-codes-cell {
    min-width: 220px;
    vertical-align: top;
    overflow: visible;
}

.acs-code-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.acs-code-stack-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.acs-code-stack-label {
    flex: 0 0 auto;
    min-width: 72px;
    font-size: 13px;
    font-weight: 700;
    color: #374151;
}

.acs-code-stack-value,
.acs-code-copy-chip {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}

.acs-code-stack-value {
    color: #111827;
    word-break: break-all;
}

.acs-code-copy-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 6px 14px;
    border: none !important;
    border-radius: 999px;
    background: var(--acs-accent-color, #2563eb) !important;
    background-color: var(--acs-accent-color, #2563eb) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    cursor: pointer;
    word-break: break-all;
    text-align: center;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
    transform: scale(1);
    transform-origin: center center;
    transition:
        transform 0.22s cubic-bezier(0.34, 1.4, 0.64, 1),
        box-shadow 0.22s ease,
        background-color 0.22s ease;
    will-change: transform;
}

.acs-code-copy-chip:hover,
.acs-code-copy-chip:focus-visible {
    background: #1d4ed8 !important;
    background-color: #1d4ed8 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    transform: scale(1.08);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
    outline: none;
    z-index: 2;
}

.acs-code-copy-chip.acs-copied {
    background: #16a34a !important;
    background-color: #16a34a !important;
    border-color: #16a34a !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.acs-type-cell,
.acs-category-cell {
    color: #374151;
}

.acs-copy-cell {
    min-width: 190px;
}

.acs-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 3px;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    background: #2563eb;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.acs-copy-btn:hover {
    background: #1d4ed8;
}

.acs-copy-alt-btn {
    background: #111827;
}

.acs-copy-alt-btn:hover {
    background: #374151;
}

.acs-copy-btn.acs-copied {
    background: #16a34a;
}

.acs-no-alt-codes,
.acs-no-results {
    padding: 16px;
    margin-top: 14px;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 10px;
    color: #92400e;
    font-weight: 700;
}

@media (max-width: 900px) {
    .acs-alt-codes-toolbar {
        grid-template-columns: 1fr;
    }

    .acs-toolbar-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .acs-alt-codes-table {
        font-size: 14px;
    }

    .acs-alt-codes-table th,
    .acs-alt-codes-table td {
        padding: 10px;
    }

    .acs-symbol-cell .acs-symbols-strip-item,
    .acs-symbol-name-cell .acs-symbols-strip-item {
        min-width: 52px;
        min-height: 52px;
    }

    .acs-symbol-cell .acs-symbols-strip-glyph,
    .acs-symbol-name-cell .acs-symbols-strip-glyph {
        font-size: 32px !important;
    }

    .acs-symbol-name-stack-title {
        font-size: 14px;
    }

    .acs-copy-btn {
        padding: 7px 10px;
        font-size: 12px;
    }
}

.acs-single-alt-code {
    width: 100%;
    margin: 28px 0;
}

.acs-single-hero {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
    padding: 24px;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 55%, #eef2ff 100%);
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
}

.acs-single-symbol-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 180px;
    padding: 20px 16px;
    border-radius: 20px;
    background: #111827;
    color: #ffffff;
}

.acs-single-symbol {
    font-size: 92px;
    font-weight: 900;
    line-height: 1;
}

.acs-single-hero-alt-code {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f8fafc;
    font-family: Consolas, Monaco, "Courier New", monospace;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.02em;
    text-align: center;
}

.acs-single-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.acs-single-kicker {
    margin: 0 0 8px;
    color: #2563eb;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.acs-single-title {
    margin: 0 0 12px;
    color: #111827;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.1;
    font-weight: 900;
}

.acs-single-summary {
    max-width: 760px;
    margin: 0 0 18px;
    color: #475569;
    font-size: 17px;
    line-height: 1.7;
}

.acs-single-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.acs-single-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.acs-single-card {
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.acs-card-label {
    display: block;
    margin-bottom: 8px;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.acs-card-value {
    display: block;
    color: #111827;
    font-size: 20px;
    line-height: 1.3;
}

.acs-card-symbol {
    font-size: 38px;
    line-height: 1;
}

.acs-single-section {
    margin-top: 20px;
    padding: 22px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #ffffff;
}

.acs-single-section h2 {
    margin-top: 0;
    margin-bottom: 14px;
    color: #111827;
    font-size: 24px;
    line-height: 1.3;
}

.acs-typing-steps {
    margin: 0;
    padding-left: 22px;
}

.acs-typing-steps li {
    margin-bottom: 10px;
    color: #374151;
    font-size: 16px;
    line-height: 1.7;
}

.acs-category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.acs-category-pill {
    display: inline-flex;
    align-items: center;
    padding: 9px 13px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.acs-category-pill:hover {
    background: #dbeafe;
    color: #1e40af;
}

.acs-keywords-text {
    margin: 0;
    color: #475569;
    font-size: 15px;
    line-height: 1.7;
}

.acs-single-post-content {
    color: #374151;
    line-height: 1.8;
}

@media (max-width: 900px) {
    .acs-single-hero {
        grid-template-columns: 1fr;
    }

    .acs-single-symbol-box {
        min-height: 150px;
    }

    .acs-single-symbol {
        font-size: 76px;
    }

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

@media (max-width: 560px) {
    .acs-single-hero,
    .acs-single-section {
        padding: 18px;
    }

    .acs-single-grid {
        grid-template-columns: 1fr;
    }

    .acs-single-title {
        font-size: 28px;
    }

    .acs-single-summary {
        font-size: 15px;
    }
}

.acs-collection-section {
    margin-bottom: 2.5rem;
}

.acs-collection-section-title {
    font-size: 1.25rem;
    margin: 0 0 1rem;
}

.acs-collection-hub-links .acs-categories-grid,
.acs-collection-child-grid,
.acs-collection-block-grid {
    margin-bottom: 2rem;
}

.acs-post-type-archive-page .acs-category-content + .acs-category-content {
    margin-top: 1.5rem;
}

.acs-category-archive-page {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 46px;
}

.acs-category-hero {
    margin-bottom: 24px;
    padding: 34px;
    border: 1px solid #e5e7eb;
    border-radius: 26px;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 50%, #f8fafc 100%);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.acs-category-kicker {
    margin: 0 0 10px;
    color: #2563eb;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.acs-category-title {
    margin: 0 0 14px;
    color: #111827;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.05;
    font-weight: 950;
}

.acs-category-description {
    max-width: 850px;
    color: #475569;
    font-size: 17px;
    line-height: 1.8;
}

.acs-category-description p {
    margin: 0;
}

.acs-category-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.acs-category-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 13px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #dbeafe;
    color: #1e3a8a;
    font-size: 14px;
    font-weight: 800;
}

.acs-category-content,
.acs-category-guide {
    margin-top: 22px;
    padding: 24px;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    background: #ffffff;
}

.acs-category-section-heading {
    margin-bottom: 18px;
}

.acs-category-section-heading h2,
.acs-category-guide h2 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 28px;
    line-height: 1.3;
    font-weight: 900;
}

.acs-category-section-heading p {
    margin: 0;
    color: #64748b;
    font-size: 16px;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .acs-category-archive-page {
        width: min(100% - 20px, 1180px);
        padding-top: 18px;
    }

    .acs-category-hero,
    .acs-category-content,
    .acs-category-guide {
        padding: 18px;
        border-radius: 18px;
    }

    .acs-category-title {
        font-size: 34px;
    }

    .acs-category-description {
        font-size: 15px;
    }
}

.acs-alt-categories-wrapper {
    display: grid;
    gap: 18px;
    margin: 28px 0;
}

.acs-alt-categories-columns-1 {
    grid-template-columns: 1fr;
}

.acs-alt-categories-columns-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.acs-alt-categories-columns-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.acs-alt-categories-columns-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.acs-alt-categories-columns-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.acs-alt-categories-columns-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.acs-alt-category-card {
    display: flex;
    flex-direction: column;
    min-height: 220px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    color: inherit;
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
    transition: 0.22s ease;
}

.acs-alt-category-card:hover {
    transform: translateY(-3px);
    border-color: #bfdbfe;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.09);
}

.acs-alt-category-card-top {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 14px;
}

.acs-alt-category-card-title {
    margin: 0;
    color: #111827;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 900;
}

.acs-alt-category-count {
    flex: 0 0 auto;
    padding: 5px 9px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.acs-alt-category-symbols {
    min-height: 46px;
    margin-bottom: 14px;
    color: #111827;
    font-size: 30px;
    font-weight: 900;
    letter-spacing: 4px;
    line-height: 1.3;
}

.acs-alt-category-description {
    margin: 0 0 18px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
}

.acs-alt-category-link-text {
    margin-top: auto;
    color: #2563eb;
    font-size: 14px;
    font-weight: 900;
}

.acs-alt-category-card:hover .acs-alt-category-link-text {
    color: #1e40af;
}

@media (max-width: 1100px) {
    .acs-alt-categories-columns-4,
    .acs-alt-categories-columns-5,
    .acs-alt-categories-columns-6 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .acs-alt-categories-columns-3,
    .acs-alt-categories-columns-4,
    .acs-alt-categories-columns-5,
    .acs-alt-categories-columns-6 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .acs-alt-categories-wrapper {
        grid-template-columns: 1fr !important;
    }

    .acs-alt-category-card {
        min-height: auto;
        padding: 18px;
        border-radius: 16px;
    }

    .acs-alt-category-symbols {
        font-size: 26px;
    }
}

.acs-popular-heading {
    margin: 26px 0 16px;
    color: #111827;
    font-size: 30px;
    line-height: 1.25;
    font-weight: 950;
}

.acs-popular-alt-codes-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin: 24px 0;
}

.acs-popular-alt-card {
    display: flex;
    flex-direction: column;
    min-height: 250px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    transition: 0.22s ease;
}

.acs-popular-alt-card:hover {
    transform: translateY(-3px);
    border-color: #bfdbfe;
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.1);
}

.acs-popular-symbol {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 86px;
    margin-bottom: 16px;
    border-radius: 18px;
    background: #111827;
    color: #ffffff;
    font-size: 54px;
    font-weight: 950;
    line-height: 1;
}

.acs-popular-title {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 900;
}

.acs-popular-title a {
    color: #111827;
    text-decoration: none;
}

.acs-popular-title a:hover {
    color: #2563eb;
}

.acs-popular-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.acs-popular-meta span {
    display: inline-flex;
    padding: 6px 9px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 900;
}

.acs-popular-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}

.acs-popular-number {
    margin: 12px 0 0;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.acs-popular-table-wrap {
    margin: 24px 0;
}

@media (max-width: 1100px) {
    .acs-popular-alt-codes-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .acs-popular-alt-codes-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .acs-popular-alt-codes-grid {
        grid-template-columns: 1fr;
    }

    .acs-popular-alt-card {
        min-height: auto;
        padding: 18px;
    }

    .acs-popular-symbol {
        min-height: 76px;
        font-size: 46px;
    }
}

.acs-single-faq-section {
    background: #f8fafc;
}

.acs-faq-list {
    display: grid;
    gap: 12px;
}

.acs-faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
    overflow: hidden;
}

.acs-faq-question {
    position: relative;
    padding: 16px 48px 16px 18px;
    color: #111827;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.5;
    cursor: pointer;
    list-style: none;
}

.acs-faq-question::-webkit-details-marker {
    display: none;
}

.acs-faq-question::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 18px;
    width: 26px;
    height: 26px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
}

.acs-faq-item[open] .acs-faq-question::after {
    content: "−";
    background: #2563eb;
    color: #ffffff;
}

.acs-faq-answer {
    padding: 0 18px 16px;
    color: #475569;
    font-size: 15px;
    line-height: 1.8;
}

.acs-faq-answer p {
    margin: 0;
}

.acs-faq-item[open] {
    border-color: #bfdbfe;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.acs-related-alt-codes-section {
    background: #ffffff;
}

.acs-related-heading-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.acs-related-heading-row h2 {
    margin-bottom: 6px;
}

.acs-related-heading-row p {
    margin: 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.7;
}

.acs-related-alt-codes-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.acs-related-alt-card {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    transition: 0.22s ease;
}

.acs-related-alt-card:hover {
    transform: translateY(-2px);
    border-color: #bfdbfe;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.07);
}

.acs-related-symbol-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 86px;
    border-radius: 16px;
    background: #111827;
    color: #ffffff;
    text-decoration: none;
}

.acs-related-symbol {
    font-size: 42px;
    font-weight: 950;
    line-height: 1;
}

.acs-related-content {
    min-width: 0;
}

.acs-related-content h3 {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 900;
}

.acs-related-content h3 a {
    color: #111827;
    text-decoration: none;
}

.acs-related-content h3 a:hover {
    color: #2563eb;
}

.acs-related-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.acs-related-meta span {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 800;
}

.acs-related-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

@media (max-width: 900px) {
    .acs-related-alt-codes-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .acs-related-alt-card {
        grid-template-columns: 1fr;
    }

    .acs-related-symbol-link {
        min-height: 76px;
    }

    .acs-related-symbol {
        font-size: 38px;
    }
}

.acs-code-literal {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    background: #f1f5f9;
    font-family: Consolas, Monaco, "Courier New", monospace;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-all;
    color: #111827;
}

/* Symbol detail modal (strip click) */
body.acs-symbol-modal-open {
    overflow: hidden;
}

.acs-symbol-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.acs-symbol-modal[hidden] {
    display: none !important;
}

.acs-symbol-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
}

.acs-symbol-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
}

.acs-symbol-modal-card {
    padding: 18px;
    border: 1px solid #d1d5db;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
}

.acs-symbol-modal-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #ffffff;
}

.acs-symbol-modal-row-preview {
    align-items: center;
}

.acs-symbol-modal-preview {
    flex: 1 1 auto;
    min-height: 96px;
    font-size: 84px;
    line-height: 1;
    color: #111827 !important;
    word-break: break-all;
}

.acs-symbol-modal-name {
    flex: 1 1 auto;
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    color: #111827;
}

.acs-symbol-modal-code {
    flex: 1 1 auto;
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    color: #2563eb;
    word-break: break-word;
}

.acs-symbol-modal-meta {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    color: #111827;
}

.acs-symbol-modal .acs-symbol-modal-action {
    flex: 0 0 auto;
    min-width: 118px;
    padding: 10px 16px;
    border: 1px solid #d1d5db !important;
    border-radius: 999px;
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.acs-symbol-modal .acs-symbol-modal-action:hover,
.acs-symbol-modal .acs-symbol-modal-action:focus-visible {
    transform: scale(1.04);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
    outline: none;
}

/* Copy Symbol: always gradient */
.acs-symbol-modal .acs-symbol-modal-action-primary {
    border: none !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: linear-gradient(90deg, #6b7280 0%, #2563eb 100%) !important;
}

.acs-symbol-modal .acs-symbol-modal-action-primary:hover,
.acs-symbol-modal .acs-symbol-modal-action-primary:focus-visible {
    /* keep same style; only scale/shadow from generic hover */
    background: linear-gradient(90deg, #6b7280 0%, #2563eb 100%) !important;
}

.acs-symbol-modal .acs-symbol-modal-action.acs-copied {
    background: #16a34a !important;
    background-color: #16a34a !important;
    border-color: #16a34a !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.acs-symbol-modal-footer {
    margin-top: 16px;
    padding-top: 4px;
    text-align: center;
}

.acs-symbol-modal .acs-symbol-modal-close {
    display: inline-block;
    width: 100%;
    max-width: 220px;
    margin: 0 auto;
    padding: 12px 24px;
    border: none !important;
    border-radius: 999px;
    background: #ef4444 !important;
    background-color: #ef4444 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.acs-symbol-modal .acs-symbol-modal-close:hover,
.acs-symbol-modal .acs-symbol-modal-close:focus-visible {
    background: #dc2626 !important;
    background-color: #dc2626 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    outline: none;
}

@media (max-width: 560px) {
    .acs-symbol-modal-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 12px;
    }

    .acs-symbol-modal-name,
    .acs-symbol-modal-code {
        flex: 1 1 auto;
        min-width: 0;
        font-size: 14px;
    }

    .acs-symbol-modal .acs-symbol-modal-action {
        width: auto;
        min-width: 0;
        flex: 0 0 auto;
        padding: 8px 12px;
        font-size: 12px !important;
        white-space: nowrap;
    }

    .acs-symbol-modal-row-preview {
        flex-wrap: nowrap;
    }

    .acs-symbol-modal-preview {
        flex: 1 1 auto;
        min-width: 0;
        min-height: 72px;
        font-size: 56px;
        text-align: left;
    }
}
