.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-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 {
    font-size: 30px;
    font-weight: 700;
    text-align: center;
    min-width: 70px;
}

.acs-title-cell a {
    font-weight: 700;
    color: #1d4ed8;
    text-decoration: none;
}

.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-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 {
        font-size: 24px;
    }

    .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;
}
