:root {
    --bg: #f5f5f7;
    --surface: #ffffff;
    --surface-muted: rgba(255, 255, 255, 0.82);
    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --accent: #007aff;
    --accent-dark: #0062cc;
    --border: rgba(29, 29, 31, 0.08);
    --shadow-soft: 0 20px 60px rgba(15, 23, 42, 0.08);
    --shadow-card: 0 10px 30px rgba(15, 23, 42, 0.06);
    --radius-lg: 16px;
    --radius-md: 14px;
    --radius-sm: 12px;
    --container: 1120px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top, rgba(0, 122, 255, 0.08), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f5f5f7 100%);
    color: var(--text-primary);
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

button,
input {
    font: inherit;
}

button {
    border: 0;
    background: none;
    cursor: pointer;
}

input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.95rem 1rem;
    background: rgba(255, 255, 255, 0.88);
    color: var(--text-primary);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

input::placeholder {
    color: #8e8e93;
}

input:focus-visible,
button:focus-visible,
a:focus-visible,
summary:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.16);
    border-color: rgba(0, 122, 255, 0.35);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    width: min(calc(100% - 2rem), var(--container));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: rgba(245, 245, 247, 0.8);
    border-bottom: 1px solid rgba(29, 29, 31, 0.05);
}

.navbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.brand-logo {
    display: block;
    width: auto;
    height: 2.5rem;
    max-width: min(220px, 40vw);
}

.nav-search {
    order: 3;
}

.search-form {
    width: 100%;
    position: relative;
}

.search-form input {
    min-width: 0;
    padding-right: 4.5rem;
}

.search-form-button {
    position: absolute;
    top: 50%;
    right: 0.45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.9rem;
    height: 2.4rem;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: var(--text-secondary);
    border-left: 1px solid rgba(29, 29, 31, 0.12);
    transition: transform 0.2s ease, color 0.2s ease;
    transform: translateY(-50%);
}

.search-form-button:hover {
    color: var(--accent);
    transform: translateY(calc(-50% - 1px));
}

.search-form-icon {
    width: 1.05rem;
    height: 1.05rem;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.nav-links a,
.nav-dropdown summary {
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-dropdown summary:hover {
    color: var(--text-primary);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown summary {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    list-style: none;
}

.nav-dropdown summary::-webkit-details-marker {
    display: none;
}

.nav-dropdown summary::after {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    transition: transform 0.2s ease;
}

.nav-dropdown[open] summary::after {
    transform: rotate(-135deg) translateY(-1px);
}

.nav-dropdown-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    margin-top: 0.75rem;
    padding: 0.9rem 1rem;
    min-width: 13rem;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(29, 29, 31, 0.08);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}

.nav-dropdown-menu a {
    display: block;
    width: 100%;
    white-space: nowrap;
}


.breadcrumbs-wrap {
    padding: 1rem 0 0;
}

.breadcrumbs-bar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
    list-style: none;
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.breadcrumbs li {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumbs li:not(:last-child)::after {
    content: "/";
    color: #a1a1aa;
}

.breadcrumbs a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    color: var(--text-primary);
}

.breadcrumbs span[aria-current="page"] {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-primary);
}

.breadcrumb-home {
    width: 0.95rem;
    height: 0.95rem;
    flex: 0 0 auto;
}

.breadcrumbs-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    flex: 0 0 auto;
}

.breadcrumb-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border: 1px solid rgba(31, 41, 55, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--text-secondary);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.breadcrumb-action-button:hover,
.breadcrumb-action-button:focus-visible,
.breadcrumb-action-button.is-active {
    color: var(--text-primary);
    border-color: rgba(31, 41, 55, 0.22);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
    transform: translateY(-1px);
}

.breadcrumb-action-button:focus-visible {
    outline: 2px solid rgba(17, 24, 39, 0.18);
    outline-offset: 2px;
}

.breadcrumb-action-button svg {
    width: 1.1rem;
    height: 1.1rem;
    flex: 0 0 auto;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 640px) {
    .breadcrumbs-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .breadcrumbs-actions {
        justify-content: flex-end;
    }
}

.section {
    padding: 4rem 0;
}

.section-compact {
    padding: 2.5rem 0 4rem;
}

.section-soft {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.4));
    border-top: 1px solid rgba(29, 29, 31, 0.04);
    border-bottom: 1px solid rgba(29, 29, 31, 0.04);
}

.hero-section {
    padding: 3.25rem 0 5rem;
}

.hero-grid,
.detail-layout {
    display: grid;
    gap: 1.5rem;
}

.hero-copy h1,
.list-hero h1,
.detail-header h1 {
    margin: 0;
    font-size: clamp(1.9rem, 4.8vw, 3.25rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.hero-text,
.detail-text,
.list-hero p {
    max-width: 44rem;
    font-size: 1.05rem;
    color: var(--text-secondary);
}

.eyebrow,
.panel-label,
.card-kicker {
    margin: 0 0 0.85rem;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.hero-search,
.toolbar-search,
.tool-actions {
    display: grid;
    gap: 0.875rem;
}

.hero-search,
.toolbar-search {
    margin-top: 1.75rem;
}

.toolbar-search {
    margin-bottom: 1.75rem;
}

.surface-card {
    background: var(--surface-muted);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(18px);
}

.hero-panel,
.tool-surface,
.prose-block,
.faq-block,
.sidebar-card,
.tool-card,
.category-card,
.empty-state {
    padding: 1.4rem;
}

.hero-panel h2,
.section-heading h2,
.tool-surface h2,
.prose-block h2,
.faq-block h2,
.tool-card h2,
.tool-card h3,
.category-card h3,
.empty-state h2 {
    margin: 0 0 0.75rem;
    font-size: 1.45rem;
    letter-spacing: -0.03em;
}

.hero-panel p,
.tool-card p,
.category-card p,
.sidebar-card p,
.support-copy,
.result-panel p,
.faq-list p,
.footer-meta,
.tool-surface-header p,
.prose-block,
.empty-state p {
    margin: 0;
    color: var(--text-secondary);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.hero-stats div,
.result-panel,
.meta-list li {
    padding: 0.95rem 1rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(29, 29, 31, 0.05);
}

.hero-stats span,
.meta-list span,
.result-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.hero-stats strong,
.meta-list strong,
.result-panel strong {
    display: block;
    margin-top: 0.35rem;
    font-size: 1.1rem;
    letter-spacing: -0.03em;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.25rem;
    padding: 0.85rem 1.25rem;
    border-radius: 999px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 14px 28px rgba(0, 122, 255, 0.22);
}

.button-primary:hover {
    background: var(--accent-dark);
}

.button-shimmer {
    position: relative;
    overflow: hidden;
}

.button-shimmer::after {
    content: "";
    position: absolute;
    inset: -20% auto -20% -35%;
    width: 32%;
    background: linear-gradient(
        115deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.18) 35%,
        rgba(255, 255, 255, 0.55) 50%,
        rgba(255, 255, 255, 0.18) 65%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-22deg);
    animation: button-shimmer-slide 2.8s ease-in-out infinite;
    pointer-events: none;
}

.button-secondary {
    background: rgba(255, 255, 255, 0.78);
    color: var(--text-primary);
    border: 1px solid rgba(29, 29, 31, 0.08);
}

.button-secondary:hover {
    background: #fff;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.card-grid {
    display: grid;
    gap: 1rem;
}

.card-grid-3 {
    grid-template-columns: 1fr;
}

.category-card,
.tool-card,
.card-link {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.category-card:hover,
.tool-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
    border-color: rgba(0, 122, 255, 0.12);
}

.card-link {
    display: inline-flex;
    margin-top: 1.2rem;
    color: var(--accent);
    font-weight: 600;
}

.card-link.muted {
    color: var(--text-secondary);
}

.detail-page,
.detail-top,
.detail-bottom,
.detail-main,
.detail-sidebar {
    display: grid;
    gap: 1.25rem;
    min-width: 0;
}

.detail-header,
.detail-content,
.tool-surface,
.surface-card {
    min-width: 0;
}

.tool-surface {
    overflow-x: hidden;
}

.detail-content {
    display: grid;
    gap: 2rem;
}

.detail-header .detail-text {
    max-width: none;
    width: 100%;
}

.tool-surface-header {
    margin-bottom: 1.2rem;
}

.tool-panel {
    display: grid;
    gap: 1rem;
}

.input-grid {
    display: grid;
    gap: 1rem;
}

.field-group {
    display: grid;
    gap: 0.55rem;
}

.field-group label {
    font-size: 0.95rem;
    font-weight: 600;
}

.support-copy {
    align-self: center;
}

.result-panel strong {
    font-size: clamp(2rem, 6vw, 3.5rem);
    line-height: 1;
}

.faq-list {
    display: grid;
    gap: 0.9rem;
}

.faq-list details {
    padding: 1rem 0;
    border-top: 1px solid rgba(29, 29, 31, 0.08);
}

.faq-list details:first-child {
    border-top: 0;
    padding-top: 0;
}

.faq-list summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.meta-list {
    display: grid;
    gap: 0.8rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.sidebar-links {
    display: grid;
    gap: 0.8rem;
}

.sidebar-links a {
    color: var(--text-primary);
}

.sidebar-links a:hover {
    color: var(--accent);
}

.sidebar-related-posts-kicker {
    margin-bottom: 1rem;
}

.sidebar-related-posts {
    gap: 0;
}

.sidebar-related-post-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.sidebar-related-post-image {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 12px;
}

.sidebar-related-post-placeholder {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    padding: 0.5rem;
    border: 1px solid rgba(29, 29, 31, 0.08);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.12), rgba(29, 29, 31, 0.06));
    text-align: center;
}

.sidebar-related-post-placeholder-label {
    margin: 0;
    font-size: 0.65rem;
}

.sidebar-related-post-title {
    display: block;
}

.sidebar-card-tool {
    border-color: rgba(8, 64, 169, 0.35);
    background: linear-gradient(135deg, #1f7bff 0%, #0d47a1 100%);
    box-shadow: 0 18px 40px rgba(13, 71, 161, 0.28);
}

.sidebar-card-tool .card-kicker {
    color: #fff;
}

.sidebar-card-tool p,
.sidebar-card-tool span,
.sidebar-card-tool strong {
    color: #fff;
}

.sidebar-card-tool .sidebar-links a {
    display: block;
    padding: 0.95rem 0 0;
    border-radius: var(--radius-md);
    background: transparent;
    border: none;
    box-shadow: none;
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.sidebar-card-tool .sidebar-links a:hover {
    color: #fff;
    transform: translateY(-1px);
}

.prose-block p {
    margin: 0.75rem 0 0;
}

.flatpage-content {
    margin-top: 24px;
}

@keyframes button-shimmer-slide {
    0%,
    18% {
        left: -35%;
        opacity: 0;
    }

    28% {
        opacity: 1;
    }

    48% {
        left: 115%;
        opacity: 0.95;
    }

    100% {
        left: 115%;
        opacity: 0;
    }
}

.list-hero {
    margin-bottom: 1.25rem;
}

.site-footer {
    padding: 2rem 0 2.5rem;
}

.footer-inner {
    border-top: 1px solid rgba(29, 29, 31, 0.08);
    padding-top: 1.2rem;
}

.footer-inner p {
    margin: 0;
}

@media (min-width: 700px) {
    .navbar {
        grid-template-columns: auto minmax(280px, 1fr) auto;
        align-items: center;
    }

    .nav-search {
        order: initial;
    }

    .nav-dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 25;
    }

    .hero-search,
    .toolbar-search,
    .tool-actions,
    .input-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-search .button,
    .toolbar-search .button {
        width: auto;
    }

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

@media (min-width: 960px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
        align-items: center;
    }

    .detail-bottom {
        grid-template-columns: minmax(0, 1fr) 320px;
        align-items: start;
    }

    .detail-sidebar {
        position: sticky;
        top: 6.75rem;
        align-self: start;
    }

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

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

@media (max-width: 959px) {
    .detail-sidebar {
        position: static;
    }
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1 1 0;
    min-width: 0;
}

.footer-copy p {
    margin: 0;
}

.footer-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: center;
    gap: 32px;
    flex: 1 1 0;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
}

.footer-category-links {
    min-width: 180px;
}

.footer-project-links {
    min-width: 120px;
    flex: 0 0 auto;
}

.footer-links a {
    color: inherit;
    text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    text-decoration: underline;
}

.footer-brand {
    flex-shrink: 0;
    align-self: center;
}

@media (max-width: 720px) {
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-nav {
        width: 100%;
        flex-direction: column;
        gap: 16px;
    }

    .footer-brand {
        margin-left: 0;
    }
}

.image-style-align-right {
    float: right;
    margin: 0 0 1rem 1rem;
}
