.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.grain-overlay {
    position: relative;
}

.grain-overlay::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 10;
}

.grain-overlay-abs {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    mix-blend-mode: multiply;
}

body.nav-open {
    overflow: hidden;
}

#mobile-nav.is-open {
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;
    width: min(20rem, 86vw) !important;
    height: 100dvh !important;
    border-radius: 16px 0 0 16px !important;
}

#mobile-nav-backdrop.is-open {
    display: block !important;
}

@media (min-width: 1024px) {
    #mobile-nav,
    #mobile-nav-backdrop {
        display: none !important;
    }
}

button.is-loading,
a.is-loading,
input[type="submit"].is-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0.88;
    cursor: wait;
    pointer-events: none;
}

.btn-spinner {
    display: inline-block;
    width: 1.05em;
    height: 1.05em;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: btn-spin 0.7s linear infinite;
}

@keyframes btn-spin {
    to {
        transform: rotate(360deg);
    }
}

.toast-stack {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 60;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
    width: min(22rem, calc(100vw - 2.5rem));
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
    padding: 0.9rem 0.85rem 0.9rem 1rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(24, 56, 37, 0.12);
    animation: toast-in 0.35s ease;
}

.toast-text {
    flex: 1;
    margin: 0;
    font-family: Inter, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.toast-close {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    border: 0;
    border-radius: 9999px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    opacity: 0.7;
}

.toast-close:hover {
    opacity: 1;
    background: rgba(28, 28, 23, 0.06);
}

.toast-close .material-symbols-outlined {
    font-size: 18px;
}

.toast-success,
.toast-info {
    background: #c7eccf;
    color: #012110;
}

.toast-error,
.toast-warning {
    background: #ffdad6;
    color: #93000a;
}

.toast.is-leaving {
    animation: toast-out 0.25s ease forwards;
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateX(1rem);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toast-out {
    to {
        opacity: 0;
        transform: translateX(1rem);
    }
}

.g-reviews-title {
    font-family: Inter, sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #202124;
}

.g-reviews-score {
    font-family: Inter, sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #202124;
}

.g-reviews-count,
.g-reviews-date {
    font-family: Inter, sans-serif;
    font-size: 14px;
    color: #5f6368;
    white-space: nowrap;
}

.g-reviews-stars {
    display: inline-flex;
    gap: 1px;
    color: #e8eaed;
    line-height: 1;
}

.g-star {
    font-size: 15px;
}

.g-star.is-on {
    color: #fbbc04;
}

.g-reviews-nav {
    width: 36px;
    height: 36px;
    border: 1px solid #dadce0;
    border-radius: 9999px;
    background: #fff;
    color: #5f6368;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.g-reviews-nav:hover {
    background: #f8f9fa;
}

.g-reviews-nav .material-symbols-outlined {
    font-size: 22px;
}

.g-reviews-track {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 0.25rem 0.15rem 0.75rem;
}

.g-reviews-track::-webkit-scrollbar {
    display: none;
}

.g-reviews-card {
    flex: 0 0 100%;
    scroll-snap-align: start;
    background: #fff;
    border-radius: 16px;
    padding: 1.35rem 1.4rem 1.5rem;
    box-shadow: 0 8px 28px rgba(32, 33, 36, 0.06);
    min-height: 13.5rem;
}

@media (min-width: 768px) {
    .g-reviews-card {
        flex: 0 0 calc((100% - 2.5rem) / 3);
    }
}

.g-reviews-avatar {
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    object-fit: cover;
    flex-shrink: 0;
}

.g-reviews-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: Inter, sans-serif;
    font-size: 16px;
    font-weight: 600;
}

.g-reviews-name {
    margin: 0;
    font-family: Inter, sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #202124;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.g-reviews-text {
    margin: 0;
    font-family: Inter, sans-serif;
    font-size: 14px;
    line-height: 1.55;
    color: #3c4043;
}

.g-reviews-more {
    display: inline;
    margin-left: 0.2rem;
    padding: 0;
    border: 0;
    background: none;
    color: #1a73e8;
    font: inherit;
    cursor: pointer;
}

.g-reviews-all {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem 1.15rem;
    border: 1px solid #dadce0;
    border-radius: 9999px;
    background: #fff;
    color: #3c4043;
    font-family: Inter, sans-serif;
    font-size: 14px;
    font-weight: 500;
}

.g-reviews-all:hover {
    background: #f8f9fa;
}

.g-reviews-all .g-logo {
    width: 18px;
    height: 18px;
}

.service-layout {
    display: grid;
    gap: 3rem 4rem;
}

@media (min-width: 900px) {
    .service-layout {
        grid-template-columns: minmax(0, 1fr) 20rem;
    }
}

.service-alcove {
    margin: 0 0 2.25rem;
    background: #183825;
    padding: 0 0 0.7rem;
}

.service-alcove img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.service-kicker {
    margin: 0 0 0.7rem;
    font-family: "Libre Caslon Text", serif;
    font-style: italic;
    font-size: 15px;
    color: #653d1e;
}

.service-title {
    margin: 0 0 1rem;
    max-width: 22ch;
    font-family: "Libre Caslon Text", serif;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #183825;
}

.service-dek {
    margin: 0 0 1.75rem;
    max-width: 42rem;
    font-family: Inter, sans-serif;
    font-size: 18px;
    line-height: 1.55;
    color: #4c290b;
}

.service-heading {
    margin: 2.75rem 0 1rem;
    max-width: 28ch;
    font-family: "Libre Caslon Text", serif;
    font-size: 1.7rem;
    line-height: 1.3;
    color: #183825;
}

.service-subhead {
    margin: 0 0 0.45rem;
    font-family: "Libre Caslon Text", serif;
    font-size: 1.15rem;
    line-height: 1.35;
    color: #183825;
}

.service-prose {
    margin: 0 0 1rem;
    max-width: 40rem;
    font-family: Inter, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #424843;
}

.service-steps {
    counter-reset: step-counter;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
    border-left: 1px solid #c2c8c0;
}

.service-steps li {
    position: relative;
    margin: 0;
    padding: 0 0 1.75rem 1.5rem;
}

.service-steps li:last-child {
    padding-bottom: 0;
}

.service-steps li::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    top: 0.15rem;
    left: -0.7rem;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 9999px;
    background: #183825;
    color: #fff;
    font-family: Inter, sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35rem;
    text-align: center;
}

.service-benefits {
    margin: 1.25rem 0 0;
    display: grid;
    gap: 1.35rem;
}

.service-benefits dt {
    margin: 0;
    font-family: "Libre Caslon Text", serif;
    font-size: 1.1rem;
    color: #183825;
}

.service-benefits dd {
    margin: 0.35rem 0 0;
    max-width: 40rem;
    font-family: Inter, sans-serif;
    font-size: 15px;
    line-height: 1.65;
    color: #424843;
}

.service-ledger {
    margin: 1.25rem 0 0;
    border-top: 1px solid #183825;
}

.service-ledger-head,
.service-ledger-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.35rem 1rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid #c2c8c0;
}

.service-ledger-head {
    font-family: Inter, sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #653d1e;
}

.service-ledger-row {
    font-family: Inter, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #1c1c17;
}

@media (min-width: 700px) {
    .service-ledger-head,
    .service-ledger-row {
        grid-template-columns: 0.8fr 1fr 1fr;
        align-items: start;
    }
}

.service-types {
    margin: 1.5rem 0 0;
    display: grid;
    gap: 1.5rem;
}

.service-type {
    padding: 0 0 0 1.1rem;
    border-left: 2px solid #c2c8c0;
}

.service-type.is-current {
    border-left-color: #964730;
    border-left-width: 3px;
    background: #f7f3eb;
    padding: 1rem 1.1rem 1rem 1.15rem;
}

.service-type-label {
    margin: 0 0 0.3rem;
    font-family: Inter, sans-serif;
    font-size: 13px;
    color: #653d1e;
}

.service-who {
    margin: 0.75rem 0 0;
    padding: 0;
    list-style: none;
}

.service-who li {
    position: relative;
    margin: 0 0 0.65rem;
    padding-left: 1.1rem;
    max-width: 40rem;
    font-family: Inter, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    color: #1c1c17;
}

.service-who li::before {
    content: "";
    position: absolute;
    top: 0.55rem;
    left: 0;
    width: 0.4rem;
    height: 0.4rem;
    background: #964730;
}

.service-caution {
    margin: 2rem 0;
    padding: 1.1rem 0 1.1rem 1rem;
    border-left: 3px solid #4c290b;
    max-width: 40rem;
}

.service-caution p {
    margin: 0 0 0.7rem;
    font-family: Inter, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #4c290b;
}

.service-caution p:last-child {
    margin-bottom: 0;
}

.service-block-note .service-prose {
    font-size: 15px;
    font-style: italic;
}

.service-aside {
    display: none;
    min-width: 0;
}

.service-ticket-mobile {
    margin: 0 0 2rem;
}

.service-ticket-mobile-end {
    margin: 2.5rem 0 0;
}

@media (min-width: 900px) {
    .service-ticket-mobile {
        display: none;
    }

    .service-aside {
        display: block;
    }

    .service-ticket {
        position: sticky;
        top: 6.5rem;
    }
}

.service-page a.font-label-caps {
    letter-spacing: 0;
    font-size: 14px;
    font-weight: 600;
    text-transform: none;
}

.service-ticket {
    background: #fff;
    border: 1px solid #ddd4c6;
    border-radius: 12px;
    padding: 1.4rem 1.35rem 1.5rem;
}

.service-ticket-name {
    margin: 0 0 0.35rem;
    font-family: "Libre Caslon Text", serif;
    font-size: 1.25rem;
    line-height: 1.3;
    color: #183825;
}

.service-ticket-tag {
    margin: 0 0 1rem;
    font-family: Inter, sans-serif;
    font-size: 13px;
    color: #653d1e;
}

.service-ticket-meta {
    margin: 0 0 1rem;
}

.service-ticket-meta > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-top: 1px solid #c2c8c0;
}

.service-ticket-meta dt {
    flex-shrink: 0;
    font-family: Inter, sans-serif;
    font-size: 13px;
    color: #424843;
}

.service-ticket-meta dd {
    margin: 0;
    text-align: right;
    font-family: Inter, sans-serif;
    font-size: 15px;
    color: #1c1c17;
}

.service-ticket-price .flex,
.service-related-meta .flex {
    justify-content: flex-end;
}

.service-ticket-note {
    margin: 0 0 1rem;
    font-family: Inter, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    color: #964730;
}

.service-ticket-cta {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    background: #183825;
    color: #fff;
    font-family: Inter, sans-serif;
    font-size: 16px;
    font-weight: 700;
    padding: 0.95rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.service-ticket-cta:hover {
    background: #e04800;
    color: #fff;
}

.service-related {
    margin-top: 5rem;
    padding-top: 2.25rem;
    border-top: 1px solid #183825;
}

.service-related-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
    margin-bottom: 1.75rem;
}

.service-related-kicker {
    margin: 0 0 0.35rem;
    font-family: "Libre Caslon Text", serif;
    font-style: italic;
    font-size: 15px;
    color: #653d1e;
}

.service-related-title {
    margin: 0;
    font-family: "Libre Caslon Text", serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.2;
    color: #183825;
}

.service-related-all {
    font-family: Inter, sans-serif;
    font-size: 14px;
    color: #653d1e;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.service-related-all:hover {
    color: #e04800;
}

.service-related-grid {
    display: grid;
    gap: 1.75rem 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 700px) {
    .service-related-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.service-related-item {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.service-related-photo {
    margin: 0 0 0.9rem;
    background: #183825;
    padding: 0 0 0.45rem;
}

.service-related-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.service-related-item h3 {
    margin: 0 0 0.45rem;
    font-family: "Libre Caslon Text", serif;
    font-size: 1.2rem;
    line-height: 1.3;
    color: #183825;
}

.service-related-copy {
    margin: 0 0 0.85rem;
    flex-grow: 1;
    font-family: Inter, sans-serif;
    font-size: 14px;
    line-height: 1.55;
    color: #424843;
}

.service-related-meta {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0;
    padding-top: 0.7rem;
    border-top: 1px solid #c2c8c0;
    font-family: Inter, sans-serif;
    font-size: 13px;
    color: #4c290b;
}

.service-related-item:hover h3 {
    color: #e04800;
}

@media (prefers-reduced-motion: reduce) {
    .service-ticket-cta {
        transition: none;
    }
}

/* Auth (signup / login) */
.auth-stage {
    position: relative;
    padding: 2.5rem 0 4rem;
    background:
        radial-gradient(ellipse 70% 55% at 12% 18%, rgba(24, 56, 37, 0.07), transparent 60%),
        linear-gradient(180deg, #f0ebe3 0%, #f7f3ec 48%, #faf7f2 100%);
}

.auth-shell {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--margin-mobile, 1.25rem);
    display: grid;
    gap: 2rem;
}

.auth-shell-single {
    max-width: 920px;
}

.auth-aside {
    min-width: 0;
}

.auth-title {
    margin: 0 0 0.75rem;
    font-family: "Libre Caslon Text", "Libre Caslon", Georgia, serif;
    font-size: clamp(1.65rem, 3.5vw, 2.1rem);
    line-height: 1.2;
    color: #183825;
}

.auth-lede {
    margin: 0 0 1.5rem;
    max-width: 28rem;
    font-family: Inter, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #424843;
}

.auth-points {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.7rem;
}

.auth-points li {
    position: relative;
    padding-left: 1.1rem;
    font-family: Inter, sans-serif;
    font-size: 0.95rem;
    line-height: 1.45;
    color: #4c290b;
}

.auth-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 999px;
    background: #183825;
}

.auth-panel {
    min-width: 0;
    background: #fffcf7;
    border: 1px solid rgba(194, 200, 192, 0.7);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 40px rgba(24, 56, 37, 0.06);
}

.auth-form {
    display: grid;
    gap: 1.25rem;
}

.auth-grid {
    display: grid;
    gap: 1rem;
}

.auth-hint {
    margin: 0;
    font-family: Inter, sans-serif;
    font-size: 0.8rem;
    line-height: 1.45;
    color: #6b716c;
}

@media (min-width: 768px) {
    .auth-stage {
        padding: 3.5rem 0 5rem;
    }

    .auth-shell {
        padding: 0 var(--margin-desktop, 2rem);
        grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
        gap: 2.5rem;
        align-items: center;
    }

    .auth-panel {
        padding: 2rem;
    }

    .auth-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem 1.1rem;
    }
}

/* Mobile: get to the form quickly; header already carries the brand. */
@media (max-width: 767px) {
    .auth-stage {
        padding: 1.5rem 0 3rem;
    }

    .auth-shell {
        gap: 1.25rem;
        width: 100%;
        box-sizing: border-box;
    }

    .auth-title {
        margin-bottom: 0.5rem;
        font-size: 1.55rem;
    }

    .auth-lede {
        margin-bottom: 0;
        font-size: 0.95rem;
    }

    .auth-points {
        display: none;
    }

    .auth-panel {
        width: 100%;
        box-sizing: border-box;
        padding: 1.25rem;
    }

    .auth-grid {
        grid-template-columns: 1fr;
    }
}

/* Public site. Same orange as the figure in the logo, used on hover.
   Nav is sentence case. Fields stay white; actions stay filled. */

body:not(.ops-app) header nav a.font-label-caps,
body:not(.ops-app) #mobile-nav a.font-label-caps,
body:not(.ops-app) header a.font-label-caps,
body:not(.ops-app) header button.font-label-caps,
body:not(.ops-app) #mobile-nav button.font-label-caps {
    letter-spacing: 0;
    font-size: 15px;
    font-weight: 600;
    text-transform: none;
    line-height: 1;
    font-family: Inter, sans-serif;
}

body:not(.ops-app) #mobile-nav form {
    display: block;
    width: 100%;
    margin: 0;
}

body:not(.ops-app) #mobile-nav button.font-label-caps {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0.25rem 0;
    text-align: left;
    background: transparent;
    border: 0;
    color: #424843;
}

body:not(.ops-app) header form {
    display: flex;
    align-items: center;
    margin: 0;
}

body:not(.ops-app) a.hover\:text-secondary:hover,
body:not(.ops-app) button.hover\:text-secondary:hover,
body:not(.ops-app) a.hover\:text-tertiary:hover,
body:not(.ops-app) a.hover\:text-primary:hover {
    color: #e04800;
}

body:not(.ops-app) a.bg-primary:hover,
body:not(.ops-app) button.bg-primary:hover {
    background-color: #e04800;
    border-color: #e04800;
    color: #fff;
}

body:not(.ops-app) a.border.border-primary:hover,
body:not(.ops-app) button.border.border-primary:hover {
    color: #e04800;
    border-color: #e04800;
    background-color: #fff4ec;
}

body:not(.ops-app) label.font-label-caps {
    letter-spacing: 0;
    font-size: 13px;
    font-weight: 600;
    text-transform: none;
    color: #3c433e;
}

body:not(.ops-app) input.bg-surface-container,
body:not(.ops-app) select.bg-surface-container,
body:not(.ops-app) textarea.bg-surface-container {
    background: #fff;
    border-color: #d9d1c4;
}

body:not(.ops-app) input.bg-surface-container:focus,
body:not(.ops-app) select.bg-surface-container:focus,
body:not(.ops-app) textarea.bg-surface-container:focus {
    border-color: #e04800;
    outline: none;
    box-shadow: 0 0 0 1px #e04800;
}
