/* قائمة أنواع الطلبات (Pages/Services/Requests، ‎/requests‎) | Request types list (Pages/Services/Requests, /requests).
   Loaded only by that page (section "Styles"). Site palette from site-enhancements.css; the icon frame is an arch,
   after the doorways of Omani forts and mosques (the page banner is Al-Wasta mosque). */

.rt-page {
    --rt-ink: #2B2116;
    --rt-muted: #6B5E4E;
    --rt-ground: #F7F5F1;
    --rt-surface: #ffffff;
    --rt-line: #E7E1D6;
    --rt-sand: #F5EBDA;
    --rt-brown: var(--nsg-brown, #7d571b);
    --rt-brown-dark: var(--nsg-brown-dark, #5c3f12);
    --rt-gold: var(--nsg-gold, #C99033);
    --rt-gold-text: var(--nsg-gold-text, #946a26);
    background: var(--rt-ground);
    color: var(--rt-ink);
    padding-bottom: 72px;
}

.rt-container {
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 24px;
    box-sizing: border-box;
}

/* ---- hero: banner photo under a brown wash; the site header floats over it, so its height is reserved ---- */
.rt-hero {
    position: relative;
    color: #fff;
    background-color: var(--rt-brown);
    background-image: linear-gradient(180deg, rgba(61, 42, 10, .55) 0%, rgba(92, 63, 18, .92) 70%), var(--rt-hero-img);
    background-size: cover;
    background-position: center 35%;
}

.rt-hero-inner {
    padding-block: 168px 96px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 46rem;
}

.rt-hero h1 {
    margin: 0;
    color: #fff;
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
}

.rt-hero-lead {
    margin: 0;
    color: rgba(255, 255, 255, .92);
    font-size: 1.125rem;
    line-height: 1.7;
}

.rt-crumbs ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: .875rem;
}

.rt-crumbs li {
    color: rgba(255, 255, 255, .85);
}

    .rt-crumbs li + li::before {
        content: "/";
        margin-inline-end: 8px;
        opacity: .7;
    }

.rt-crumbs a {
    color: #fff;
    text-decoration: none;
}

    .rt-crumbs a:hover {
        text-decoration: underline;
    }

/* ---- search: sits on the hero's lower edge ---- */
.rt-search {
    position: relative;
    margin-top: -32px;
    z-index: 2;
}

.rt-search-box {
    position: relative;
    max-width: 46rem;
}

.rt-search label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.rt-search-icon {
    position: absolute;
    inset-inline-start: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--rt-gold-text);
    pointer-events: none;
}

.rt-search input {
    width: 100%;
    height: 64px;
    padding-inline: 58px 22px;
    border: 1px solid var(--rt-line);
    border-radius: 16px;
    background: var(--rt-surface);
    color: var(--rt-ink);
    font: inherit;
    font-size: 1.125rem;
    box-shadow: 0 18px 40px rgba(61, 42, 10, .16);
    box-sizing: border-box;
}

    .rt-search input::placeholder {
        color: #8C7F6E;
    }

    .rt-search input:focus {
        outline: 3px solid var(--rt-gold);
        outline-offset: 2px;
        border-color: var(--rt-gold);
    }

/* ---- body grid: services + aside ---- */
.rt-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 32px;
    align-items: start;
    margin-top: 32px;
}

/* category jump links */
.rt-jump {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}

    .rt-jump a {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-height: 40px;
        padding: 0 16px;
        border: 1px solid var(--rt-line);
        border-radius: 999px;
        background: var(--rt-surface);
        color: var(--rt-ink);
        font-size: .9375rem;
        font-weight: 600;
        text-decoration: none;
        transition: border-color .15s, color .15s;
    }

        .rt-jump a:hover {
            border-color: var(--rt-brown);
            color: var(--rt-brown-dark);
        }

.rt-count {
    display: inline-block;
    min-width: 1.75em;
    padding: 1px 7px;
    border-radius: 999px;
    background: var(--rt-sand);
    color: var(--rt-brown-dark);
    font-size: .8125rem;
    font-weight: 700;
    text-align: center;
}

/* ---- a category: heading + one panel of rows ---- */
.rt-group + .rt-group {
    margin-top: 40px;
}

.rt-group-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    scroll-margin-top: 101px;
}

    .rt-group-head h2 {
        margin: 0;
        color: var(--rt-ink);
        font-size: 1.5rem;
        font-weight: 800;
        line-height: 1.3;
    }

.rt-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
    background: var(--rt-surface);
    border: 1px solid var(--rt-line);
    border-radius: 20px;
    overflow: hidden;
}

    /* hairlines between rows and columns, drawn by each cell so hidden (filtered) rows leave no gaps */
    .rt-list > li {
        border-bottom: 1px solid var(--rt-line);
        border-inline-end: 1px solid var(--rt-line);
        margin-bottom: -1px;
        margin-inline-end: -1px;
    }

        .rt-list > li[hidden] {
            display: none;
        }

.rt-service {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    height: 100%;
    padding: 20px 22px;
    color: inherit;
    text-decoration: none;
    box-sizing: border-box;
    transition: background-color .15s;
}

    .rt-service:hover {
        background: #FBF6EC;
        color: inherit;
    }

    .rt-service:focus-visible {
        outline: 3px solid var(--rt-gold);
        outline-offset: -3px;
    }

/* the arch: round top, square-ish foot, like a fort doorway */
.rt-arch {
    --rt-accent: var(--rt-brown);
    display: grid;
    place-items: center;
    width: 56px;
    height: 64px;
    border-radius: 28px 28px 8px 8px;
    background: var(--rt-sand);
    color: var(--rt-accent);
    box-shadow: inset 0 -3px 0 var(--rt-accent);
}

    .rt-arch .material-symbols-outlined {
        font-size: 30px;
        line-height: 1;
        margin-top: 4px;
    }

.rt-service-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.rt-service-name {
    margin: 0;
    color: var(--rt-ink);
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.45;
}

.rt-service-desc {
    margin: 0;
    color: var(--rt-muted);
    font-size: .9375rem;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rt-service-go {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--rt-brown);
    transition: background-color .15s, color .15s, transform .15s;
}

    .rt-service:hover .rt-service-go {
        background: var(--rt-brown);
        color: #fff;
    }

/* the chevron points toward the reading direction's end */
[dir="rtl"] .rt-service-go svg {
    transform: scaleX(-1);
}

.rt-empty {
    margin: 0;
    padding: 28px;
    border: 1px dashed var(--rt-line);
    border-radius: 20px;
    background: var(--rt-surface);
    color: var(--rt-muted);
    font-size: 1rem;
    text-align: center;
}

    .rt-empty[hidden] {
        display: none;
    }

/* ---- aside ---- */
.rt-aside {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 101px; /* below the site's fixed header (77px) once scrolled */
}

.rt-note {
    padding: 22px;
    border-radius: 20px;
    background: var(--rt-surface);
    border: 1px solid var(--rt-line);
}

    .rt-note h2 {
        margin: 0 0 12px;
        color: var(--rt-ink);
        font-size: 1.125rem;
        font-weight: 800;
    }

.rt-steps {
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

    .rt-steps li {
        display: grid;
        grid-template-columns: 22px minmax(0, 1fr);
        gap: 10px;
        color: var(--rt-muted);
        font-size: .9375rem;
        line-height: 1.65;
    }

    .rt-steps i {
        color: var(--rt-gold-text);
        margin-top: 4px;
        text-align: center;
    }

.rt-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 12px;
    background: var(--rt-brown);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: background-color .15s;
}

    .rt-btn:hover,
    .rt-btn:focus-visible {
        background: var(--rt-brown-dark);
        color: #fff;
    }

    .rt-btn:focus-visible {
        outline: 3px solid var(--rt-gold);
        outline-offset: 2px;
    }

.rt-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

    .rt-links li + li {
        border-top: 1px solid var(--rt-line);
    }

    .rt-links a {
        display: grid;
        grid-template-columns: 40px minmax(0, 1fr) auto;
        align-items: center;
        gap: 12px;
        padding: 12px 0;
        color: inherit;
        text-decoration: none;
    }

        .rt-links a:hover .rt-link-name {
            color: var(--rt-brown-dark);
            text-decoration: underline;
        }

        .rt-links a:focus-visible {
            outline: 3px solid var(--rt-gold);
            outline-offset: 2px;
            border-radius: 8px;
        }

.rt-link-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--rt-sand);
    color: var(--rt-brown);
    overflow: hidden;
}

.rt-link-name {
    display: block;
    color: var(--rt-ink);
    font-size: .9375rem;
    font-weight: 700;
    line-height: 1.4;
}

.rt-link-desc {
    display: block;
    color: var(--rt-muted);
    font-size: .8125rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rt-link-ext {
    color: var(--rt-muted);
    font-size: .8125rem;
}

.rt-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---- responsive ---- */
@media (max-width: 991.98px) {
    .rt-body {
        grid-template-columns: minmax(0, 1fr);
    }

    .rt-aside {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .rt-hero-inner { padding-top: 184px; } /* site header ≈ 152px tall here */
    .rt-list { grid-template-columns: minmax(0, 1fr); }
    .rt-list > li { border-inline-end: 0; margin-inline-end: 0; }
}

@media (max-width: 575.98px) {
    .rt-container { padding-inline: 16px; }
    .rt-hero-inner { padding-block: 232px 80px; } /* site header ≈ 207px tall here */
    .rt-hero h1 { font-size: 2rem; }
    .rt-hero-lead { font-size: 1rem; }
    .rt-search input { height: 56px; font-size: 1rem; padding-inline: 50px 16px; }
    .rt-search-icon { inset-inline-start: 18px; }
    .rt-service { padding: 16px; gap: 12px; }
    .rt-arch { width: 48px; height: 56px; border-radius: 24px 24px 7px 7px; }
    .rt-arch .material-symbols-outlined { font-size: 26px; }
    .rt-service-go { display: none; }
    .rt-service { grid-template-columns: auto minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    .rt-page * { transition: none !important; }
}
