.apd-home{padding-block:24px 42px;background:#f5f8fe}
.apd-home-section{margin-block:26px}
.apd-home-categories{margin-top:9px}
.apd-home h1{margin:0;color:#102e70;font-size:clamp(1.8rem,4vw,3rem);line-height:1.13;letter-spacing:-.04em}
.apd-home-intro{margin:.55rem 0 1.4rem;color:#435979;max-width:65ch}
.apd-home-section>h2{font-size:clamp(1.28rem,2.5vw,1.72rem);line-height:1.2;margin:0 0 .8rem;color:#162d53}
.apd-home-grid,.apd-home-poster-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:start}
.apd-home-category-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
.apd-home-reference-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
.apd-home-utility-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.apd-home-poster-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.apd-home .apd-home-tile{display:flex;flex-direction:column;align-items:center;justify-content:start;text-align:center;gap:8px;padding:12px 8px;min-height:100px;height:100%;line-height:1.32;background:#fff;color:#192e51;border:1px solid #d5e1f4;border-radius:15px;text-decoration:none;cursor:pointer;overflow-wrap:anywhere}
.apd-home .apd-home-tile:hover,.apd-home .apd-home-tile[aria-expanded=true],.apd-home-partner[open]>.apd-home-tile{background:#ebf3ff;border-color:#3066c9}
.apd-home .apd-home-tile:focus-visible,.apd-home-poster summary:focus-visible{outline:3px solid #1b56bf;outline-offset:3px}
.apd-home-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:11px;font-size:1.2rem;font-weight:800;color:#1554ba;background:#e7f0ff;flex:none}
.apd-home-category-grid>a:nth-child(3n+2) .apd-home-icon{background:#ddf5ee;color:#11695e}
.apd-home-category-grid>a:nth-child(3n+3) .apd-home-icon{background:#f0eaff;color:#582f98}
.apd-home-catalog{margin-top:13px;background:#edf4ff;border:1px solid #cdddf8;border-radius:16px;padding:14px}
.apd-home-catalog h3{margin:0 0 10px;color:#192e51;font-size:1.15rem}
.apd-home-status{margin:.6rem 0;color:#233e69}
.apd-home-poster,.apd-home-partner{min-width:0}
.apd-home-poster{border:1px solid #cfddf2;background:white;border-radius:13px;overflow:hidden}
.apd-home-poster summary,.apd-home-partner summary{display:block;list-style:none;cursor:pointer}
.apd-home-poster summary::-webkit-details-marker,.apd-home-partner summary::-webkit-details-marker{display:none}
.apd-home-poster summary strong{display:block;line-height:1.3;padding:9px 11px 11px;color:#192e51}
.apd-home-poster-image,.apd-home-poster-empty{display:grid;place-items:center;aspect-ratio:5/6;background:#f0f4fa;overflow:hidden}
.apd-home-poster-image img{display:block;width:100%;height:100%;aspect-ratio:5/6;object-fit:contain}
.apd-home-poster-empty{aspect-ratio:5/2;color:#2157af;font-weight:800;font-size:1.4rem}
.apd-home-poster-actions{display:flex;flex-wrap:wrap;gap:7px;padding:0 8px 10px}
.apd-home .apd-home-poster-actions .button{flex:1;padding:7px 9px;min-height:38px;border-radius:8px;justify-content:center;font-size:.9rem;box-shadow:none}
.apd-home-partner-consult{margin-top:6px}
.apd-home-partner article.partner-card{display:block;margin-top:8px;padding:14px;border-radius:13px}
.apd-home [id],.apd-home-subpage [id]{scroll-margin-top:128px}
.apd-home-back{padding-top:16px}
.apd-home-back a{color:#154aa1;font-weight:700}
.apd-home-service-detail{padding-block:18px}
.apd-home-noscript{display:flex;flex-wrap:wrap;gap:12px}
@media(max-width:920px){.apd-home-category-grid,.apd-home-reference-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:620px){
    .apd-home{padding-block:15px 26px}
    .apd-home-grid,.apd-home-poster-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
    .apd-home-section{margin-block:20px}
    .apd-home-categories{margin-top:7px}
    .apd-home .apd-home-tile{font-size:.91rem;min-height:86px;padding:9px 6px}
    .apd-home-icon{width:35px;height:35px}
    .apd-home-catalog{padding:9px}
    .apd-home [id],.apd-home-subpage [id]{scroll-margin-top:91px}
}

.apd-home-poster-actions [data-quote-catalog],
.apd-home-poster-actions > small { flex-basis: 100%; }
.apd-home-poster-actions > small { line-height: 1.35; color: #284166; }

.apd-home .apd-home-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
}
.apd-home-category-hint {
    margin: -.25rem 0 1rem;
    color: #364f73;
}
.apd-home .apd-home-category-grid > .apd-home-tile {
    justify-content: center;
    min-height: 105px;
    height: auto;
}
.apd-home-catalog-slot {
    grid-column: 1 / -1;
    min-width: 0;
}
.apd-home-catalog-slot[hidden] {
    display: none;
}
.apd-home-chevron {
    display: inline-block;
    width: .42em;
    height: .42em;
    margin: 0 .15em .14em;
    border: solid currentColor;
    border-width: 0 .12em .12em 0;
    transform: rotate(45deg);
}
.apd-home-tile[aria-expanded="true"] .apd-home-chevron,
.apd-home-partner[open] .apd-home-chevron {
    transform: rotate(225deg);
}
.apd-home .apd-home-partner-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
}
.apd-home .apd-home-partner > summary.apd-partner-poster {
    display: grid;
    align-content: start;
    gap: .65rem;
    min-height: 242px;
    padding: clamp(16px, 2.2vw, 28px);
    border: 1px solid #5484c9;
    border-radius: 16px;
    background: linear-gradient(150deg, #163767, #245395);
    color: #fff;
    overflow-wrap: break-word;
    text-align: left;
}
.apd-home .apd-home-partner > summary.apd-partner-poster-free {
    background: linear-gradient(150deg, #11424f, #1c6269);
}
.apd-home .apd-home-partner > summary.apd-partner-poster-paid {
    background: linear-gradient(150deg, #402663, #664589);
}
.apd-home .apd-home-partner > summary.apd-partner-poster strong {
    color: inherit;
    padding: 0;
    font-size: clamp(1.25rem, 2.3vw, 1.8rem);
    line-height: 1.19;
}
.apd-partner-poster-brand {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: .85rem;
    font-weight: 700;
}
.apd-partner-poster-brand img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #fff;
    object-fit: contain;
}
.apd-partner-poster-fee {
    font-size: 1.13rem;
    font-weight: 750;
}
.apd-partner-poster-detail {
    font-size: .88rem;
    font-weight: 700;
}
.apd-home .apd-home-partner > summary.apd-partner-poster:focus-visible {
    outline: 3px solid #f6c259;
    outline-offset: 3px;
}
.apd-home-reference-links {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem 1.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.apd-home-reference-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #174483;
    font-weight: 680;
    text-underline-offset: .24em;
}
.apd-home-information {
    padding-block: 1rem 2rem;
}
@media (max-width: 700px) {
    .apd-home .apd-home-partner-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .apd-home .apd-home-category-grid > .apd-home-tile {
        gap: 6px;
        min-height: 86px;
        padding-inline: 4px;
        font-size: clamp(.68rem, 2.28vw, .9rem);
        overflow-wrap: normal;
        word-break: normal;
    }
    .apd-home .apd-home-partner > summary.apd-partner-poster {
        min-height: 0;
    }
}

.apd-home .apd-home-info-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 18px;
    padding-block: .5rem;
    color: #264569;
    font-size: .9rem;
}
.apd-home-clock {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: .3rem .8rem;
}
.apd-home-clock [data-apd-clock] {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}
.apd-home-prayer {
    position: relative;
}
.apd-home-prayer summary {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .25rem .75rem;
    border: 1px solid #bfd2eb;
    border-radius: 10px;
    background: #fff;
    color: #173e71;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}
.apd-home-prayer summary::-webkit-details-marker {
    display: none;
}
.apd-home-prayer[open] summary .apd-home-chevron {
    transform: rotate(225deg);
}
.apd-prayer-panel {
    box-sizing: border-box;
    position: absolute;
    z-index: 12;
    right: 0;
    width: min(640px, calc(100vw - 28px));
    max-height: 72vh;
    max-height: 72dvh;
    overflow: auto;
    margin-top: 6px;
    padding: .85rem;
    border: 1px solid #d0e0f3;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 24px #12345922;
}
.apd-prayer-panel p {
    margin: .55rem 0;
}
.apd-prayer-panel label {
    display: block;
    margin-bottom: .4rem;
    font-weight: 700;
}
.apd-location-fields, .apd-location-panels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}
.apd-location-subregions {
    margin-top: .75rem;
}
.apd-location-fields input, .apd-location-fields select {
    box-sizing: border-box;
    min-height: 44px;
    width: 100%;
    padding: .4rem .55rem;
    border: 1px solid #bfd2eb;
    border-radius: 8px;
    background: white;
    color: #173e71;
    font: inherit;
}
.apd-location-note {
    color: #3f5877;
    font-size: .82rem;
}
.apd-location-matches:not([hidden]) {
    display: grid;
    max-height: 12rem;
    overflow: auto;
    padding: .15rem;
    margin-top: .25rem;
    border: 1px solid #bfd2eb;
    border-radius: 8px;
}
.apd-location-matches button {
    border: 0;
    background: #fff;
    color: #173e71;
    padding: .25rem .45rem;
    min-height: 44px;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.apd-location-matches button:hover, .apd-location-matches button:focus-visible {
    background: #edf5ff;
}
.apd-location-panels {
    align-items: start;
    margin-top: .8rem;
}
.apd-location-panels section {
    padding: .6rem;
    border: 1px solid #d0e0f3;
    border-radius: 9px;
}
.apd-location-panels h2 {
    margin: 0 0 .45rem;
    font-size: 1rem;
}
.apd-weather-timeline {
    list-style: none;
    padding: 0;
    margin: .6rem 0;
}
.apd-weather-timeline li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .1rem .5rem;
    padding: .45rem .5rem;
    border-bottom: 1px solid #d0e0f3;
}
.apd-weather-timeline li:nth-child(odd) {
    background: #edf5ff;
}
.apd-weather-timeline time {
    grid-column: 1 / -1;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.apd-prayer-panel a {
    display: inline-block;
    padding: .4rem 0;
    color: #174483;
    text-underline-offset: 3px;
}
.apd-prayer-panel dl {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    margin: .65rem 0;
    text-align: center;
    font-size: .82rem;
}
.apd-prayer-panel dl > div {
    padding: .45rem .12rem;
    border-radius: 7px;
    background: #edf5ff;
}
.apd-prayer-panel dd {
    margin: 0;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
}
.apd-home-search {
    margin-bottom: 1.2rem;
}
.apd-home-search > label {
    display: block;
    margin-bottom: .35rem;
    color: #162d53;
    font-weight: 750;
}
.apd-home-search-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .5rem;
}
.apd-home-search-controls input {
    box-sizing: border-box;
    min-width: 0;
    min-height: 44px;
    padding: .58rem .7rem;
    border: 1px solid #99b6dc;
    border-radius: 10px;
    background: #fff;
    color: #11243d;
    font: inherit;
}
.apd-search-list {
    margin: .55rem 0 0;
    padding: 0;
    list-style: none;
}
.apd-search-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .5rem;
    padding: .5rem .6rem;
    border-bottom: 1px solid #d4e2f4;
}
.apd-search-list small {
    display: block;
    color: #3f5877;
}
.apd-search-list a {
    flex: none;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    color: #174483;
    font-weight: 700;
    text-underline-offset: 3px;
}
@media (max-width: 620px) {
    .apd-home .apd-home-info-bar {
        gap: 4px 8px;
        font-size: .82rem;
    }
    .apd-home-prayer {
        position: static;
    }
    .apd-prayer-panel {
        right: 14px;
    }
    .apd-location-fields, .apd-location-panels {
        grid-template-columns: minmax(0, 1fr);
    }
    .apd-search-list li {
        font-size: .86rem;
    }
}
