/* AMP Standalone FAQ
   No dependencies. Uses [hidden] for collapsed state, max-height transition
   for smooth open/close without measuring jQuery slideDown issues. */

.amp-faq {
    max-width: 960px;
    margin: 0 auto;
    font-family: inherit;
    color: inherit;
}

/* ---- Search ---- */
.amp-faq__search {
    position: relative;
    margin-bottom: 24px;
}
.amp-faq__search-input {
    width: 100%;
    padding: 14px 18px;
    font-size: 16px;
    border: 1px solid #d8d8d8;
    border-radius: 4px;
    background: #fff;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.15s ease;
}
.amp-faq__search-input:focus {
    border-color: #44596B;
}
.amp-faq__search-empty {
    padding: 16px 0;
    color: #888;
    font-size: 14px;
}

/* ---- Category (outer accordion) ---- */
.amp-faq__category {
    border-bottom: 1px solid #e3e3e3;
}
.amp-faq__category:first-of-type {
    border-top: 1px solid #e3e3e3;
}
.amp-faq__cat-header {
    width: 100%;
    background: #fff;
    border: 0;
    padding: 24px 52px 24px 24px;
    text-align: left;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-family: inherit;
    line-height: 1.4;
}
.amp-faq__cat-header:hover {
    background: #fafafa;
}
.amp-faq__cat-header:focus-visible {
    outline: 2px solid #44596B;
    outline-offset: -2px;
}
.amp-faq__cat-title {
    flex: 1;
}

/* ---- Question (inner accordion) ---- */
.amp-faq__cat-body {
    background: #fafafa;
}
.amp-faq__cat-body[hidden] {
    display: none;
}
.amp-faq__item {
    border-top: 1px solid #ececec;
}
.amp-faq__q {
    width: 100%;
    background: transparent;
    border: 0;
    padding: 18px 52px 18px 40px;
    text-align: left;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #2c3e50;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-family: inherit;
    line-height: 1.5;
}
.amp-faq__q:hover {
    background: rgba(0,0,0,0.025);
}
.amp-faq__q:focus-visible {
    outline: 2px solid #44596B;
    outline-offset: -2px;
}
.amp-faq__q-text {
    flex: 1;
}

/* ---- Answer body ---- */
.amp-faq__a {
    background: #fff;
}
.amp-faq__a[hidden] {
    display: none;
}
.amp-faq__a-inner {
    padding: 4px 40px 24px;
    color: #444;
    font-size: 15px;
    line-height: 1.7;
    text-align: left;
}
.amp-faq__a-inner > *:first-child { margin-top: 0; }
.amp-faq__a-inner > *:last-child  { margin-bottom: 0; }
.amp-faq__a-inner p {
    margin: 0 0 12px;
}
.amp-faq__a-inner ul,
.amp-faq__a-inner ol {
    margin: 0 0 12px;
    padding-left: 24px;
}
.amp-faq__a-inner li {
    margin-bottom: 4px;
}
.amp-faq__a-inner a {
    color: #44596B;
    text-decoration: underline;
}
.amp-faq__a-inner img {
    max-width: 100%;
    height: auto;
}

/* ---- Plus/minus icon (pure CSS, no SVG) ---- */
.amp-faq__icon {
    width: 14px;
    height: 14px;
    position: relative;
    flex-shrink: 0;
}
.amp-faq__icon::before,
.amp-faq__icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 14px;
    height: 2px;
    background: #44596B;
    transition: transform 0.2s ease;
}
.amp-faq__icon::before {
    transform: translateY(-50%) rotate(90deg);
}
.amp-faq__icon::after {
    transform: translateY(-50%);
}
[aria-expanded="true"] .amp-faq__icon::before {
    transform: translateY(-50%) rotate(0deg);
}

/* ---- Search highlight ---- */
.amp-faq__highlight {
    background: #ffeb3b;
    color: #000;
    padding: 0 2px;
    border-radius: 2px;
}

/* ---- Mobile ---- */
@media (max-width: 640px) {
    .amp-faq__cat-header {
        padding: 18px 44px 18px 16px;
        font-size: 16px;
    }
    .amp-faq__q {
        padding: 14px 44px 14px 24px;
        font-size: 14px;
    }
    .amp-faq__a-inner {
        padding: 4px 24px 18px;
        font-size: 14px;
    }
}
