/*
 * /osrs-services hub only. Loaded by the hero widget when page=services and
 * there is no sub-page, so the 14 service pages and every other page that
 * uses the same widgets never load this file.
 */

/* ---------- Hero: answer capsule, fact pills, last update ---------- */
.svc-hub-capsule {
    max-width: 50rem;
    margin: 1rem auto 0;
    font-family: "Epilogue", sans-serif;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.5;
    color: #d0d0d0;
}
@media (min-width: 640px) {
    .svc-hub-capsule { font-size: 17px; }
}
.svc-hub-capsule a {
    color: #FFC43A;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.svc-hub-capsule a:hover {
    opacity: 0.85;
}

/* H1: every word but the last in white; the last keeps the hero yellow */
.svc-hub-title-white {
    color: #fff;
}

/* Review badges and fact pills in one row, all the same size as the badges */
.svc-hub-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin: 1.5rem auto 0;
}
@media (min-width: 1024px) {
    .svc-hub-badges { gap: 1rem; margin-top: 2rem; }
}
/* Let the badge widget's links and the pills sit in the same flex row */
.svc-hub-badges > div,
.svc-hub-badges > ul {
    display: contents;
}
.svc-hub-badges > ul {
    list-style: none;
}
.svc-hub-badges li {
    white-space: nowrap;
}
/* Same type as the badges on the other pages (Epilogue, light), not the
   hero's display font, and no yellow star in front of the rating */
.svc-hub-badges,
.svc-hub-badges a,
.svc-hub-badges li {
    font-family: "Epilogue", sans-serif;
    font-weight: 300;
}
.svc-hub-badges a span[aria-hidden="true"].text-\[\#FFC701\] {
    display: none;
}

/* The CMS copy of the badges is skipped on the hub (they are in the hero now);
   hide the empty wrapper it leaves so it adds no gap. */
div.lg\:pb-12:has(> div.lg\:mt-9, > div.lg\:mt-12):not(:has(a, img)) {
    display: none;
}

/* ---------- Service cards ---------- */
.svc-hub-group {
    margin-top: 2.5rem;
}
.svc-hub-group-title {
    margin: 0 0 1rem;
    font-size: 22px;
    font-weight: 400;
    color: #FFC43A;
}
@media (min-width: 1024px) {
    .svc-hub-group-title { font-size: 26px; }
}

.svc-hub-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
@media (min-width: 768px) {
    .svc-hub-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
}
@media (min-width: 1024px) {
    .svc-hub-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
}

.svc-hub-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1rem 0.85rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    transition: border-color 0.2s, transform 0.2s;
}
.svc-hub-card:hover,
.svc-hub-card:focus-within {
    border-color: rgba(255, 196, 58, 0.45);
    transform: translateY(-2px);
}
@media (min-width: 768px) {
    .svc-hub-card { padding: 1.25rem 1.25rem 1.4rem; }
}

.svc-hub-card-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    margin-bottom: 0.75rem;
}
.svc-hub-card-banner img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}
@media (min-width: 768px) {
    .svc-hub-card-banner { height: 64px; }
}

.svc-hub-card-name {
    margin: 0;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.2;
}
@media (min-width: 768px) {
    .svc-hub-card-name { font-size: 21px; }
}
.svc-hub-card-name a {
    color: #fff;
    text-decoration: none;
}
/* The whole card is clickable through the name link */
.svc-hub-card-name a::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
}
.svc-hub-card-name a:focus-visible {
    outline: none;
}
.svc-hub-card:has(a:focus-visible) {
    outline: 2px solid #FFC43A;
    outline-offset: 2px;
}

.svc-hub-card-price {
    margin: 0.35rem 0 0;
    font-family: "Epilogue", sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
}
.svc-hub-card-price span {
    color: #20D420;
    font-weight: 600;
}
.svc-hub-card-price small,
.svc-hub-table small {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.svc-hub-card-desc {
    margin: 0.5rem 0 0;
    font-family: "Epilogue", sans-serif;
    font-size: 12.5px;
    font-weight: 300;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.75);
}
@media (min-width: 768px) {
    .svc-hub-card-desc { font-size: 14px; }
}

.svc-hub-card-start {
    margin: 0.5rem 0 0;
    font-family: "Epilogue", sans-serif;
    font-size: 12px;
    color: #FFC43A;
}

/* ---------- Prices and facts ---------- */
.svc-hub-section {
    font-family: "Epilogue", sans-serif;
}
.svc-hub-h2 {
    margin: 0 0 0.75rem;
    font-family: inherit;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
}
@media (min-width: 1024px) {
    .svc-hub-h2 { font-size: 28px; }
}
.svc-hub-lead,
.svc-hub-note {
    max-width: 760px;
    margin: 0 0 1.25rem;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}
.svc-hub-note {
    margin: 1rem 0 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.svc-hub-table-wrap {
    max-width: 900px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
}
.svc-hub-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.svc-hub-table th,
.svc-hub-table td {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
    vertical-align: top;
    color: #fff;
}
.svc-hub-table tbody tr:last-child th,
.svc-hub-table tbody tr:last-child td {
    border-bottom: 0;
}
.svc-hub-table thead th {
    background: rgba(255, 255, 255, 0.04);
    font-weight: 600;
    white-space: nowrap;
}
.svc-hub-table tbody th {
    font-weight: 500;
}
.svc-hub-table tbody th a {
    color: #FFC43A;
    text-decoration: none;
}
.svc-hub-table tbody th a:hover {
    text-decoration: underline;
}
.svc-hub-table td {
    font-weight: 300;
    white-space: nowrap;
}
.svc-hub-table .svc-hub-price {
    color: #20D420;
    font-weight: 600;
}
@media (max-width: 639px) {
    .svc-hub-table th,
    .svc-hub-table td { padding: 0.55rem 0.45rem; font-size: 12.5px; }
    .svc-hub-table th:first-child,
    .svc-hub-table td:first-child { padding-left: 0.75rem; }
    .svc-hub-table small { display: block; font-size: 11px; }
}

/* Facts: label / value, the value wraps */
.svc-hub-facts tbody th {
    width: 38%;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}
.svc-hub-facts td {
    white-space: normal;
    font-weight: 400;
}


/* ---------- Section spacing (the site CSS is prebuilt, so spacing lives here) ---------- */
.svc-hub-catalog {
    padding-top: 2rem;
    padding-bottom: 2rem;
}
.svc-hub-steps {
    padding-top: 3rem;
    padding-bottom: 1rem;
}
.svc-hub-steps-title {
    margin-bottom: 4rem;
}
.svc-hub-section {
    padding-top: 2rem;
    padding-bottom: 1rem;
}
@media (min-width: 1024px) {
    .svc-hub-catalog { padding-top: 2.5rem; padding-bottom: 3rem; }
    .svc-hub-steps { padding-top: 3.5rem; padding-bottom: 2rem; }
    .svc-hub-steps-title { margin-bottom: 5rem; }
    .svc-hub-section { padding-top: 3rem; padding-bottom: 1rem; }
}

.svc-hub-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;
}

/* ---------- Live tracking (summary of the services security plugin) ---------- */
.svc-hub-live {
    padding-top: 2.5rem;
    padding-bottom: 1rem;
}
.svc-hub-live-inner {
    display: grid;
    gap: 1.75rem;
    padding: 1.5rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
}
@media (min-width: 1024px) {
    .svc-hub-live { padding-top: 3.5rem; padding-bottom: 1.5rem; }
    .svc-hub-live-inner {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
        align-items: center;
        gap: 2.5rem;
        padding: 2.5rem;
    }
}
.svc-hub-live-kicker {
    margin: 0 0 0.35rem;
    font-family: "Epilogue", sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #20D420;
}
.svc-hub-live-title {
    margin: 0;
    font-size: 26px;
    font-weight: 400;
    line-height: 1.15;
    color: #fff;
}
@media (min-width: 1024px) {
    .svc-hub-live-title { font-size: 36px; }
}
.svc-hub-live-lead {
    margin: 0.75rem 0 0;
    font-family: "Epilogue", sans-serif;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.85);
}
.svc-hub-live-list {
    display: grid;
    gap: 0.75rem 1.25rem;
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
    font-family: "Epilogue", sans-serif;
}
@media (min-width: 640px) {
    .svc-hub-live-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.svc-hub-live-list li {
    position: relative;
    padding-left: 1.4rem;
    font-size: 14px;
    line-height: 1.45;
}
.svc-hub-live-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.4em;
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 999px;
    background: #20D420;
    box-shadow: 0 0 0 3px rgba(32, 212, 32, 0.18);
}
.svc-hub-live-list strong {
    display: block;
    font-weight: 600;
    color: #fff;
}
.svc-hub-live-list span {
    display: block;
    margin-top: 0.15rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.75);
}
.svc-hub-live-link {
    display: inline-block;
    margin-top: 1.25rem;
    font-family: "Epilogue", sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #FFC43A;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.svc-hub-live-link:hover {
    opacity: 0.85;
}
.svc-hub-live-shots {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}
.svc-hub-live-shots figure {
    margin: 0;
}
.svc-hub-live-shots img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.svc-hub-live-shots figcaption {
    margin-top: 0.4rem;
    font-family: "Epilogue", sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
}
@media (max-width: 479px) {
    .svc-hub-live-shots { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Power leveling page ---------- */
.svc-hub-table td.svc-hub-wrap {
    white-space: normal;
}
@media (min-width: 640px) {
    .svc-hub-table td.svc-hub-wrap { min-width: 9rem; }
}
.svc-hub-text {
    max-width: 760px;
    font-family: "Epilogue", sans-serif;
}
.svc-hub-text p {
    margin: 0 0 1rem;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}
.svc-hub-text strong {
    font-weight: 600;
    color: #fff;
}
.svc-hub-text a {
    color: #FFC43A;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------- Trustpilot reviews carousel on these pages (trustpilot-reviews-carousel-widget) ---------- */
/* This file only loads on the hub and power leveling, so every carousel here gets
   the page's side margins, card text in Epilogue and no footer badges (the hero
   already shows them). The same carousel on other pages is unchanged. */
.tp-reviews[class*="widget-"] {
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    padding: 2rem 1.5rem 0.5rem;
}
@media (min-width: 1024px) {
    .tp-reviews[class*="widget-"] { padding: 3rem 2rem 1rem; }
}
.tp-reviews[class*="widget-"] .tp-reviews__footer {
    display: none;
}
.tp-reviews[class*="widget-"] .tp-reviews__card-body,
.tp-reviews[class*="widget-"] .tp-reviews__meta,
.tp-reviews[class*="widget-"] .tp-reviews__read,
.tp-reviews[class*="widget-"] .tp-reviews__score-text {
    font-family: "Epilogue", sans-serif;
}
.tp-reviews[class*="widget-"] .tp-reviews__card-body {
    font-weight: 300;
}
/* The carousel score links to Trustpilot on these pages */
.tp-reviews__score--link {
    text-decoration: none;
    width: fit-content;
}
.tp-reviews__score--link:hover .tp-reviews__score-text,
.tp-reviews__score--link:focus-visible .tp-reviews__score-text {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------- Carry / plugin login / Parsec table (inside the editorial copy) ---------- */
/* legacy-class.css forces every table in the copy to 1000px with centred
   headers; this one fits the column on desktop and scrolls inside its own
   box on phones. */
.legacy-body-wrapper-dont-remove-class .svc-hub-compare-wrap {
    max-width: 960px;
    margin: 1rem 0 1.25rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
}
.legacy-body-wrapper-dont-remove-class table.svc-hub-compare {
    min-width: 640px;
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}
.legacy-body-wrapper-dont-remove-class table.svc-hub-compare th,
.legacy-body-wrapper-dont-remove-class table.svc-hub-compare td {
    padding: 0.75rem 1rem;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left !important;
    vertical-align: top;
    font-size: 14px;
    line-height: 1.45;
}
.legacy-body-wrapper-dont-remove-class table.svc-hub-compare tbody tr:last-child th,
.legacy-body-wrapper-dont-remove-class table.svc-hub-compare tbody tr:last-child td {
    border-bottom: 0;
}
.legacy-body-wrapper-dont-remove-class table.svc-hub-compare thead {
    position: static;
}
.legacy-body-wrapper-dont-remove-class table.svc-hub-compare thead th {
    background: rgba(255, 255, 255, 0.04);
    font-weight: 600;
}
.legacy-body-wrapper-dont-remove-class table.svc-hub-compare tbody th {
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: 400;
    white-space: nowrap;
}
.legacy-body-wrapper-dont-remove-class table.svc-hub-compare tbody tr:hover {
    background: transparent;
}
