/* Shared geometry. Typography, colors, content and motion remain owned by their components.
   New components can use .am-ui-button, .am-ui-icon, .am-ui-row and .am-layout-shell. */
:root {
    --am-space-1:4px;
    --am-space-2:8px;
    --am-space-3:12px;
    --am-space-4:16px;
    --am-space-6:24px;
    --am-space-8:32px;
    --am-control-size:48px;
    --am-control-compact:44px;
    --am-icon-size:20px;
    --am-page-gutter:18px;
    --am-list-width:1120px;
    --am-panel-inset:28px;
}
.am-layout-shell { box-sizing:border-box; width:min(var(--am-list-width),calc(100% - 2 * var(--am-page-gutter))); margin-inline:auto; }
.am-ui-row { display:flex; align-items:center; gap:var(--am-space-3); min-width:0; }
.am-ui-icon { display:inline-flex; align-items:center; justify-content:center; flex:none; width:var(--am-icon-size); height:var(--am-icon-size); line-height:1; }

/* A shared control box: longer labels can wrap instead of being clipped. */
.am-ui-button,
body:not(.native-home) #main :is(a.btn,.elementor-button,.ue_box_button,.wp-block-button__link,.native-plan-actions .button,.am-mobile-plan-body>a.button),
#main :is(.amerjsal-form,.am-resource-tools,.am-blog-search,.comment-form) :is(button[type=submit],input[type=submit]),
.site-footer .elementor-element-dc97feb a.btn {
    box-sizing:border-box;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:var(--am-space-3);
    min-height:var(--am-control-size);
    max-width:100%;
    padding:10px var(--am-space-6);
    font-size:16px;
    line-height:24px;
    text-align:center;
    vertical-align:middle;
    white-space:normal;
}
body:not(.native-home) #main :is(a.btn,a.elementor-button),.site-footer .elementor-element-dc97feb a.btn { margin-inline:0; }
body:not(.native-home) #main a.btn :is(.ms-btn__text,.ms-btn__icon),
.site-footer .elementor-element-dc97feb a.btn :is(.ms-btn__text,.ms-btn__icon) {
    display:inline-flex; align-items:center; justify-content:center;
    position:static; transform:none; margin:0; line-height:24px;
}
body:not(.native-home) #main a.btn .ms-btn__icon,.site-footer .elementor-element-dc97feb a.btn .ms-btn__icon {
    flex:0 0 var(--am-icon-size); width:var(--am-icon-size); height:var(--am-icon-size); line-height:1;
}
body:not(.native-home) #main a.btn .ms-btn__icon :is(i,svg),.site-footer .elementor-element-dc97feb a.btn .ms-btn__icon :is(i,svg) {
    display:block; margin:0; line-height:1;
}

/* Footer/profile social icons use a fixed square, independent of glyph width. */
:is(.native-content,.site-footer) .ms-s-w .ms-s-i {
    box-sizing:border-box; display:inline-flex; align-items:center; justify-content:center;
    flex:none; width:var(--am-control-compact); height:var(--am-control-compact);
    min-width:var(--am-control-compact); min-height:var(--am-control-compact);
    padding:0; line-height:1; vertical-align:middle;
}
:is(.native-content,.site-footer) .ms-s-w .ms-s-i i {
    display:flex; align-items:center; justify-content:center; width:1em; height:1em; margin:0; line-height:1;
}
.site-footer .native-footer-legal,
.site-footer .am-footer-top-control {
    box-sizing:border-box; width:min(1290px,calc(100% - 2 * var(--am-page-gutter))); margin-inline:auto;
}
.site-footer .am-footer-top-control { padding-inline:0; }

/* The listing's title, search, grid and browse area share the same left edge. */
.am-blog-index .am-blog-heading { max-width:none; margin-inline:0; }

/* Parallel card families share the same title/arrow and taxonomy alignment. */
#main :is(.am-project-card .am-pc-title-row,.am-resource-card .am-resource-title-row) { align-items:flex-start; gap:var(--am-space-3); }
#main :is(.am-project-card .am-pc-title-row,.am-resource-card .am-resource-title-row) h2 { padding-top:5px; }
#main :is(.am-pc-arrow,.am-resource-guide-arrow) {
    box-sizing:border-box; display:inline-flex; align-items:center; justify-content:center;
    flex:0 0 var(--am-control-compact); width:var(--am-control-compact); height:var(--am-control-compact);
    min-width:var(--am-control-compact); min-height:var(--am-control-compact); padding:0; line-height:1;
}
#main .am-project-card .am-pc-categories {
    display:flex; flex-wrap:nowrap; align-items:center; gap:var(--am-space-2);
    min-width:0; height:28px; min-height:28px; margin-bottom:11px;
}
#main .am-project-card .am-pc-category-item { flex:0 1 auto; min-width:0; align-items:center; gap:var(--am-space-2); }
#main .am-project-card .am-pc-category-item>a { display:block; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#main :is(.am-pc-category-separator,.am-pc-category-more) { flex:none; }

/* Remove native fieldset margins without touching labels, names, validation or CAPTCHA. */
#main .amerjsal-form fieldset { box-sizing:border-box; min-inline-size:0; width:100%; margin:0; padding:0; }
#main .amerjsal-form fieldset>legend { max-width:100%; padding-inline:0; }
#main .amerjsal-survey :is(.ac-name-parts,.ac-email-parts) { gap:var(--am-space-4); }
#main .amerjsal-survey .ac-field>label,
#main .amerjsal-survey .ac-field>fieldset>legend { line-height:21px; }
#main .amerjsal-survey :is(.ac-name-part,.ac-email-part)>label { line-height:20px; }

/* Keep paired project headings level while retaining the bottom-aligned outcome. */
@media(min-width:768px) {
    .single-portfolios .native-content .e-con:has(>.elementor-widget-technology_badges):has(>.elementor-widget-alert) {
        padding-top:calc(var(--am-panel-inset) + 1px);
    }
}

/* Dots remain visually small, with equal, non-overlapping control boxes. */
.native-carousel-controls { gap:var(--am-space-2); }
.native-carousel-controls>button { display:inline-flex; align-items:center; justify-content:center; flex:none; padding:0; line-height:1; }
.native-carousel-dots { align-items:center; gap:0; padding:0; }
.native-carousel-dots button,
.native-carousel-dots button[aria-current=true] {
    display:inline-flex; align-items:center; justify-content:center; flex:none;
    width:28px; height:var(--am-control-compact); padding:0; background:transparent; opacity:1;
}
.native-carousel-dots button::before {
    position:static; display:block; width:9px; height:9px; border-radius:50%;
    background:var(--color-contrast-medium); opacity:.4;
}
.native-carousel-dots button[aria-current=true]::before { background:var(--color-contrast-higher); opacity:1; }

@media(max-width:767px) {
    :root { --am-panel-inset:22px; }
    /* Keep icon-only footer links centered as a single group on narrow screens. */
    .site-footer .ms-s-w .ms-s-i { width:48px; height:48px; }
}

/* Keep each footer circle at the control size, rather than the font glyph size. */
.site-footer .ms-s-w .ms-s-i.s-icon i { box-sizing:border-box; width:100%; height:100%; padding:0!important; }

/* A row of technology badges stretches each box to its longest label. */
#main .amerjsal-technologies { align-items:stretch; }
#main .amerjsal-technologies>a { display:flex; align-items:stretch; }
#main .amerjsal-technologies>a>.tech-badge { flex:1; }

/* Heights are measured per visible row; a single-column layout has no reserved text space. */
.am-blog-card .am-blog-categories { min-height:var(--am-row-taxonomy-height,0px); align-content:flex-start; }
.am-blog-card .am-blog-copy h2,
#main .am-project-card .am-pc-title-row,
#main .am-resource-card .am-resource-title-row { min-height:var(--am-row-title-height,0px); }

.am-blog-card .am-blog-categories.am-row-aligned:empty { display:flex; }

/* Shared geometry must never override application-controlled visibility. */
.am-ui-button[hidden],
body:not(.native-home) #main :is(a.btn,.elementor-button,.ue_box_button,.wp-block-button__link,.native-plan-actions .button,.am-mobile-plan-body>a.button)[hidden],
#main :is(.amerjsal-form,.am-resource-tools,.am-blog-search,.comment-form) :is(button[type=submit],input[type=submit])[hidden],
.site-footer .elementor-element-dc97feb a.btn[hidden] { display:none!important; }
#main :is(.native-plan-actions,.am-mobile-plan-body)>a.button:not([hidden]) { display:flex; width:100%; }

/* Shared action states: stable controls, one palette, one keyboard focus treatment. */
:root { --am-button-bg:#126c9e; --am-button-hover:#0e567f; --am-button-ink:#fff; --am-button-focus:#198aca; --am-button-duration:180ms; }
.am-ui-button:not(.am-ui-button--secondary) ,
body:not(.native-home) #main :is(a.btn,.elementor-button,.ue_box_button,.wp-block-button__link,.native-plan-actions>a.button,.am-mobile-plan-body>a.button,.am-resource-card .am-resource-card-actions>a,.amerjsal-form button[type=submit],.amerjsal-form input[type=submit],.am-resource-tools button[type=submit],.am-blog-search button[type=submit],.comment-form button[type=submit],.comment-form input[type=submit]) ,
.site-footer .elementor-element-dc97feb a.btn {
    background:var(--am-button-bg); border-color:var(--am-button-bg); color:var(--am-button-ink);
    border-radius:999px; text-decoration:none;
}
.am-ui-button:not(.am-ui-button--secondary) ,
body:not(.native-home) #main :is(a.btn,.elementor-button,.ue_box_button,.wp-block-button__link,.native-plan-actions>a.button,.am-mobile-plan-body>a.button,.am-resource-card .am-resource-card-actions>a,.amerjsal-form button[type=submit],.amerjsal-form input[type=submit],.am-resource-tools button[type=submit],.am-blog-search button[type=submit],.comment-form button[type=submit],.comment-form input[type=submit]) ,
.site-footer .elementor-element-dc97feb a.btn ,
#main .am-guide-related>a.am-ui-button--secondary {
    box-shadow:none; transform:none;
    transition:background-color var(--am-button-duration) ease,border-color var(--am-button-duration) ease,color var(--am-button-duration) ease;
}
.am-ui-button:not(.am-ui-button--secondary):not(:disabled):not([aria-disabled=true]):is(:hover,:focus-visible) ,
body:not(.native-home) #main :is(a.btn,.elementor-button,.ue_box_button,.wp-block-button__link,.native-plan-actions>a.button,.am-mobile-plan-body>a.button,.am-resource-card .am-resource-card-actions>a,.amerjsal-form button[type=submit],.amerjsal-form input[type=submit],.am-resource-tools button[type=submit],.am-blog-search button[type=submit],.comment-form button[type=submit],.comment-form input[type=submit]):not(:disabled):not([aria-disabled=true]):is(:hover,:focus-visible) ,
.site-footer .elementor-element-dc97feb a.btn:not(:disabled):not([aria-disabled=true]):is(:hover,:focus-visible) ,
#main .am-guide-related>a.am-ui-button--secondary:not(:disabled):not([aria-disabled=true]):is(:hover,:focus-visible) {
    background:var(--am-button-hover); border-color:var(--am-button-hover); color:var(--am-button-ink);
    box-shadow:none; transform:none; text-decoration:none;
}
.am-ui-button:not(.am-ui-button--secondary):focus-visible ,
body:not(.native-home) #main :is(a.btn,.elementor-button,.ue_box_button,.wp-block-button__link,.native-plan-actions>a.button,.am-mobile-plan-body>a.button,.am-resource-card .am-resource-card-actions>a,.amerjsal-form button[type=submit],.amerjsal-form input[type=submit],.am-resource-tools button[type=submit],.am-blog-search button[type=submit],.comment-form button[type=submit],.comment-form input[type=submit]):focus-visible ,
.site-footer .elementor-element-dc97feb a.btn:focus-visible ,
#main .am-guide-related>a.am-ui-button--secondary:focus-visible { outline:3px solid var(--am-button-focus); outline-offset:4px; }
.am-ui-button:not(.am-ui-button--secondary):not(:disabled):not([aria-disabled=true]):active ,
body:not(.native-home) #main :is(a.btn,.elementor-button,.ue_box_button,.wp-block-button__link,.native-plan-actions>a.button,.am-mobile-plan-body>a.button,.am-resource-card .am-resource-card-actions>a,.amerjsal-form button[type=submit],.amerjsal-form input[type=submit],.am-resource-tools button[type=submit],.am-blog-search button[type=submit],.comment-form button[type=submit],.comment-form input[type=submit]):not(:disabled):not([aria-disabled=true]):active ,
.site-footer .elementor-element-dc97feb a.btn:not(:disabled):not([aria-disabled=true]):active ,
#main .am-guide-related>a.am-ui-button--secondary:not(:disabled):not([aria-disabled=true]):active { transform:translateY(1px); box-shadow:none; }

/* Related tools are secondary actions, with the same pill geometry and hover as primary actions. */
#main .am-guide-related { display:flex; flex-wrap:wrap; gap:var(--am-space-3); }
#main .am-guide-related>a.am-ui-button--secondary {
    min-width:0; padding:10px var(--am-space-6); border:1px solid var(--resource-accent);
    border-radius:999px; background:transparent; color:var(--resource-accent);
    font-size:16px; line-height:24px; font-weight:600; justify-content:center; overflow-wrap:anywhere;
}
#main .am-guide-related>a.am-ui-button>span { color:inherit; }
#main .am-guide-related>a.am-ui-button--secondary:is(:hover,:focus-visible) {
    background:var(--am-button-hover); border-color:var(--am-button-hover); color:var(--am-button-ink);
}

/* Icon actions share the hover color without shifting the icon or changing its hit area. */
#main :is(.am-project-card .am-pc-arrow,.am-resource-card .am-resource-guide-arrow),
.native-carousel-controls>button,.native-comparison-close,.native-lightbox button,
#main .am-pc-dialog-close,.native-slider .ms-slider--nav button {
    transition:background-color var(--am-button-duration) ease,color var(--am-button-duration) ease;
}
#main :is(.am-project-card .am-pc-arrow,.am-resource-card .am-resource-guide-arrow):is(:hover,:focus-visible),
.native-carousel-controls>button:not(:disabled):is(:hover,:focus-visible),
.native-comparison-close:is(:hover,:focus-visible),.native-lightbox button:is(:hover,:focus-visible),
#main .am-pc-dialog-close:is(:hover,:focus-visible),
.native-slider .ms-slider--nav button:not(:disabled):is(:hover,:focus-visible) {
    background:var(--am-button-hover); color:var(--am-button-ink); box-shadow:none;
}
#main .am-project-card:hover .am-pc-title-row .am-pc-arrow,
#main .am-resource-card:hover .am-resource-title-row .am-resource-guide-arrow,
#main .am-resource-card .am-resource-card-actions>a:is(:hover,:focus-visible) .am-resource-arrow-icon { transform:none; }
#main :is(.am-project-card .am-pc-arrow,.am-resource-card .am-resource-guide-arrow):focus-visible,
.native-carousel-controls>button:focus-visible,.native-comparison-close:focus-visible,
.native-lightbox button:focus-visible,#main .am-pc-dialog-close:focus-visible {
    outline:3px solid var(--am-button-focus); outline-offset:4px;
}
.native-slider .ms-slider--nav button { border-radius:50%; }
/* Filter selections keep their existing persistent selected state. */
#main :is(.project-filters>a,.am-pc-technology-filters .am-pc-filter-link):not([aria-disabled=true]):is(:hover,:focus-visible) {
    background:var(--am-button-hover); border-color:var(--am-button-hover); color:var(--am-button-ink);
}
html body[data-theme] .site-footer .ms-s-w .ms-s-i.s-icon:is(:hover,:focus-visible) i {
    background-color:var(--am-button-hover)!important; color:var(--am-button-ink)!important;
}
/* No animation is needed to understand the state. */
@media(prefers-reduced-motion:reduce) {
.am-ui-button:not(.am-ui-button--secondary) ,
body:not(.native-home) #main :is(a.btn,.elementor-button,.ue_box_button,.wp-block-button__link,.native-plan-actions>a.button,.am-mobile-plan-body>a.button,.am-resource-card .am-resource-card-actions>a,.amerjsal-form button[type=submit],.amerjsal-form input[type=submit],.am-resource-tools button[type=submit],.am-blog-search button[type=submit],.comment-form button[type=submit],.comment-form input[type=submit]) ,
.site-footer .elementor-element-dc97feb a.btn ,
#main .am-guide-related>a.am-ui-button--secondary { transition:none; }
.am-ui-button:not(.am-ui-button--secondary):not(:disabled):not([aria-disabled=true]):active ,
body:not(.native-home) #main :is(a.btn,.elementor-button,.ue_box_button,.wp-block-button__link,.native-plan-actions>a.button,.am-mobile-plan-body>a.button,.am-resource-card .am-resource-card-actions>a,.amerjsal-form button[type=submit],.amerjsal-form input[type=submit],.am-resource-tools button[type=submit],.am-blog-search button[type=submit],.comment-form button[type=submit],.comment-form input[type=submit]):not(:disabled):not([aria-disabled=true]):active ,
.site-footer .elementor-element-dc97feb a.btn:not(:disabled):not([aria-disabled=true]):active ,
#main .am-guide-related>a.am-ui-button--secondary:not(:disabled):not([aria-disabled=true]):active { transform:none; }
}

/* Utility icons use the same state colors, while retaining their positioning and toggle animation. */
.native-carousel-controls>button,.native-comparison-close,.native-lightbox .close { border-radius:50%; }
.site-header .am-header-tools :is(#am-a11y-open,.native-theme-toggle),
.site-footer .am-footer-top-control .native-back-to-top {
    transition:background-color var(--am-button-duration) ease,color var(--am-button-duration) ease;
}
.site-header .am-header-tools :is(#am-a11y-open,.native-theme-toggle):is(:hover,:focus-visible),
.site-footer .am-footer-top-control .native-back-to-top:is(:hover,:focus-visible) {
    background:var(--am-button-hover); color:var(--am-button-ink);
}
.site-header .am-header-tools :is(#am-a11y-open,.native-theme-toggle):focus-visible,
.site-footer .am-footer-top-control .native-back-to-top:focus-visible { outline:3px solid var(--am-button-focus); outline-offset:4px; }
@media(prefers-reduced-motion:reduce) {
    .native-carousel-controls>button,.native-comparison-close,.native-lightbox button,
    #main .am-pc-dialog-close,.native-slider .ms-slider--nav button,
    .site-header .am-header-tools :is(#am-a11y-open,.native-theme-toggle),
    .site-footer .am-footer-top-control .native-back-to-top { transition:none; }
}

#main :is(.project-filters>a,.am-pc-technology-filters .am-pc-filter-link):not([aria-disabled=true]):focus-visible { outline:3px solid var(--am-button-focus); outline-offset:4px; }

/* Keep footer actions governed by the shared tokens despite legacy template declarations. */
.site-footer .elementor-element-dc97feb a.btn { background:var(--am-button-bg)!important; border-color:var(--am-button-bg)!important; color:var(--am-button-ink)!important; }
.site-footer .elementor-element-dc97feb a.btn:not([aria-disabled=true]):is(:hover,:focus-visible) { background:var(--am-button-hover)!important; border-color:var(--am-button-hover)!important; }
.site-header .am-header-tools :is(#am-a11y-open,.native-theme-toggle) { border-radius:50%; }
body:not(.native-home) #main :is(a.btn,.elementor-button,.ue_box_button,.wp-block-button__link,.native-plan-actions>a.button,.am-mobile-plan-body>a.button,.am-resource-card .am-resource-card-actions>a,.amerjsal-form button[type=submit],.amerjsal-form input[type=submit],.am-resource-tools button[type=submit],.am-blog-search button[type=submit],.comment-form button[type=submit],.comment-form input[type=submit]):is(:disabled,[aria-disabled=true]) {
    background:var(--am-button-bg); border-color:var(--am-button-bg); color:var(--am-button-ink); box-shadow:none; transform:none;
}

/* Editorial actions use the shared arrow and action palette. */
#main .am-blog-search button .am-ui-icon { display:inline-flex; width:20px; height:20px; font-size:20px; line-height:1; }
#main .am-blog-read.btn { align-self:flex-start; margin-top:auto; }
#main .am-blog-read.btn .am-ui-icon { display:inline-flex; font-size:20px; line-height:1; }
#main .am-editorial-read-link.am-ui-button { align-self:flex-start; margin-top:auto; gap:12px; }
#main .am-editorial-related-card>a:is(:hover,:focus-visible) .am-editorial-read-link.am-ui-button { background:var(--am-button-hover); border-color:var(--am-button-hover); color:var(--am-button-ink); box-shadow:none; transform:none; }

/* A reserved slot prevents footer-reveal layout changes while the button floats. */
.site-footer .am-footer-top-control { min-height:72px; }
body>.native-back-to-top.am-back-top-floating { position:fixed; inset:auto 24px 24px auto; z-index:90; box-sizing:border-box; width:48px; height:48px; border-radius:50%; }
body>.native-back-to-top.am-back-top-floating:not([hidden]) { display:flex; align-items:center; justify-content:center; }
body>.native-back-to-top.am-back-top-floating[hidden] { display:none!important; }
body>.native-back-to-top.am-back-top-floating,.site-footer .am-footer-top-control .native-back-to-top { background:var(--am-button-bg); color:var(--am-button-ink); }
body>.native-back-to-top.am-back-top-floating:is(:hover,:focus-visible) { background:var(--am-button-hover); color:var(--am-button-ink); }
body>.native-back-to-top.am-back-top-floating:focus-visible { outline:3px solid var(--am-button-focus); outline-offset:4px; }
body.native-menu-open>.native-back-to-top.am-back-top-floating { visibility:hidden; pointer-events:none; }
@media(max-width:767px){body>.native-back-to-top.am-back-top-floating{right:16px;bottom:max(16px,env(safe-area-inset-bottom))}}

/* Current reading section is visible in both versions of the article contents. */
.am-editorial-sidebar { top:var(--am-header-offset,96px); max-height:calc(100dvh - var(--am-header-offset,96px) - 24px); overflow-y:auto; }
.am-editorial-sidebar a,.am-editorial-mobile-toc a { box-sizing:border-box; border:1px solid transparent; border-radius:9px; padding:8px 12px; }
.am-editorial-sidebar a { display:flex; align-items:center; min-height:44px; }
.am-editorial-sidebar a[aria-current=location],.am-editorial-mobile-toc a[aria-current=location] { background:#126c9e; color:#fff; border-color:#126c9e; text-decoration:none; }
.am-editorial-sidebar .am-editorial-toc-position { font-size:12px; line-height:1.5; color:var(--article-muted); margin:0 0 14px; }
@media(max-width:1023px){
 .am-editorial-mobile-toc { position:sticky; top:var(--am-header-offset,96px); z-index:85; align-self:start; max-height:calc(75dvh - var(--am-header-offset,96px)); overflow:auto; }
 .am-editorial-mobile-toc summary { flex-wrap:wrap; gap:4px 12px; padding:12px 16px; }
 .am-editorial-mobile-toc summary .am-editorial-toc-position { display:block; flex:0 0 100%; min-width:0; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font-size:12px; line-height:18px; font-weight:400; color:var(--article-muted); }
 .am-editorial-mobile-toc nav { padding:0 12px 12px; }
 .am-editorial-mobile-toc nav a { padding:8px 12px; }
 .am-editorial-mobile-toc a[aria-current=location] { color:#fff; }
}

#main .am-editorial-content h2 { scroll-margin-top:var(--am-article-anchor-offset,112px); }
#main .am-editorial-read-link.am-ui-button { font-size:16px; font-weight:600; line-height:24px; }

/* Project arrow ink is centered by the SVG viewBox, independent of the UI font. */
#main .am-project-card .am-pc-arrow .am-pc-arrow-icon { display:block; flex:none; width:20px; height:20px; max-width:none; margin:0; padding:0; overflow:visible; }

/* These legacy CTA buttons participate in the same action states as the rest of the site. */
#main a.elementor-cta:is(:hover,:focus-visible) .elementor-cta__button.elementor-button {
    background:var(--am-button-hover); border-color:var(--am-button-hover); color:var(--am-button-ink); box-shadow:none; transform:none;
}
#main a.elementor-cta:focus-visible .elementor-cta__button.elementor-button { outline:3px solid var(--am-button-focus); outline-offset:4px; }

/* Distinctive, aligned markers retain the existing semantic lists and their exact text. */
.elementor-1107 .elementor-element:is(.elementor-element-08f9859,.elementor-element-f48cc1d) { --am-bullet-ink:#126c9e; }
body[data-theme=dark] .elementor-1107 .elementor-element:is(.elementor-element-08f9859,.elementor-element-f48cc1d) { --am-bullet-ink:#6acbfa; }
.elementor-1107 .elementor-element:is(.elementor-element-08f9859,.elementor-element-f48cc1d) .elementor-icon-list-items { display:grid; gap:14px; margin:0; padding:0; list-style:none; }
.elementor-1107 .elementor-element:is(.elementor-element-08f9859,.elementor-element-f48cc1d) .elementor-icon-list-item { display:flex; align-items:flex-start; gap:12px; margin:0; padding:0; }
.elementor-1107 .elementor-element:is(.elementor-element-08f9859,.elementor-element-f48cc1d) .elementor-icon-list-icon {
    display:grid; place-items:center; box-sizing:border-box; flex:0 0 22px; width:22px; height:22px; margin-top:1px;
    color:var(--am-bullet-ink); border:1px solid color-mix(in srgb,var(--am-bullet-ink) 30%,transparent); border-radius:6px;
    background:color-mix(in srgb,var(--am-bullet-ink) 8%,transparent);
}
.elementor-1107 .elementor-element:is(.elementor-element-08f9859,.elementor-element-f48cc1d) .elementor-icon-list-icon>* { display:none; }
.elementor-1107 .elementor-element-08f9859 .elementor-icon-list-icon::before { content:''; display:block; width:7px; height:7px; border-top:2px solid currentColor; border-right:2px solid currentColor; transform:translateX(-1px) rotate(45deg); }
.elementor-1107 .elementor-element-f48cc1d .elementor-icon-list-icon::before { content:''; display:block; width:5px; height:9px; border-right:2px solid currentColor; border-bottom:2px solid currentColor; transform:translateY(-1px) rotate(45deg); }
.elementor-1107 .elementor-element:is(.elementor-element-08f9859,.elementor-element-f48cc1d) .elementor-icon-list-text { min-width:0; line-height:1.6; }

/* Underline the content box, not asymmetrically padded first/last menu links. */
#main-header-nav .am-current-section>a {
    box-shadow:none; padding-bottom:0; background-image:linear-gradient(currentColor,currentColor); background-size:100% 2px;
    background-origin:content-box; background-clip:content-box; background-position:left bottom; background-repeat:no-repeat;
}
#main-header-nav .menu-item>a::after { box-sizing:border-box; padding:inherit; text-align:inherit; }
@media(max-width:1024px){
 #main-header-nav.native-open .menu-item>a { width:fit-content; max-width:100%; }
 #main-header-nav.native-open .am-current-section>a { background-size:100% 2px; background-position:left bottom; }
 body.native-menu-open #main-header-nav.native-open .menu-item>a { overflow:hidden; }
 body.native-menu-open #main-header-nav.native-open .menu-item>a::after { font-size:inherit!important; line-height:inherit!important; }
}

/* Portfolio service lists: one spacing source, without inherited Elementor item margins. */
#main .elementor-element:is(.elementor-element-08f9859,.elementor-element-f48cc1d) .elementor-icon-list-items{display:grid;gap:8px;margin:0;padding:0}
#main .elementor-element:is(.elementor-element-08f9859,.elementor-element-f48cc1d) .elementor-icon-list-item{display:flex;align-items:center;gap:10px;margin:0;padding:0}
#main .elementor-element:is(.elementor-element-08f9859,.elementor-element-f48cc1d) .elementor-icon-list-text{margin:0;padding:0;line-height:1.5}
#main .elementor-element:is(.elementor-element-08f9859,.elementor-element-f48cc1d) .elementor-icon-list-icon{margin:0}

/* Match navigation feedback in both themes, with a brighter dark-theme accent. */
body[data-theme=light] #main-header-nav .menu-item>a:is(:hover,:focus-visible){color:#126c9e!important}
body[data-theme=dark] #main-header-nav .menu-item>a:is(:hover,:focus-visible){color:#6acbfa!important}
body[data-theme] #main-header-nav .menu-item>a:is(:hover,:focus-visible) :is(.native-nav-label),body[data-theme] #main-header-nav .menu-item>a:is(:hover,:focus-visible)::after{color:inherit!important}
/* Profile socials share a center line instead of relying on inline glyph baselines. */
#main :is(.elementor-1107,.elementor-1718) .ms-s-w{display:flex;align-items:center;flex-wrap:wrap;gap:12px;justify-content:var(--am-social-justify,flex-start)}
#main :is(.elementor-1107,.elementor-1718) .ms-s-w .ms-s-i{display:inline-flex;align-items:center;justify-content:center;float:none;margin:0;vertical-align:middle}
#main :is(.elementor-1107,.elementor-1718) .ms-s-w .ms-s-i i{display:grid;place-items:center;line-height:1;margin:0}

body[data-theme] #main-header-nav .menu-item>a:is(:hover,:focus-visible)::after{transform:translateY(0)!important}

#main .elementor-1718 .ms-s-w{--am-social-justify:center}
/* Natural block flow prevents disclosure contents from compressing while closing. */
#main details.am-disclosure-motion{box-sizing:border-box}
#main details.am-disclosure-motion.am-disclosure-running{overflow:clip}

/* Technology headers use one surface and one inset, without a second padded card. */
#main .tech-header-modern .tech-header-flex{background:transparent;border-radius:0;padding:0;align-items:flex-start;justify-content:flex-start;gap:24px}
#main .tech-header-modern .tech-icon-wrap{flex:0 0 128px}
#main .tech-header-modern .tech-icon-wrap img{box-sizing:border-box;width:128px;height:128px;padding:12px;background:#f7f9fb}
#main .tech-header-modern .tech-details-wrap{flex:1;min-width:0;max-width:none}
#main .tech-header-modern .tech-description-modern{max-width:70ch}
@media(max-width:767px){
 #main .tech-header-modern .tech-header-flex{flex-direction:column;gap:20px}
 #main .tech-header-modern .tech-icon-wrap{align-self:center;flex:none}
 #main .tech-header-modern .tech-details-wrap{width:100%}
}

@media(max-width:767px){
 #main .tech-post-navigation :is(.tech-prev,.tech-next){width:100%;max-width:none}
 #main .tech-post-navigation :is(.tech-prev,.tech-next)>a{width:100%;min-height:56px}
 #main .tech-post-navigation .tech-labels{flex:1}
 #main .tech-post-navigation .tech-arrow{flex:none}
}

/* The homepage hero stays dark regardless of the saved theme preference. */
body.native-home .main-header #am-a11y-open { color:#fff!important; }
