.city-strip {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fffdf9;
    margin: 24px 0 28px;
    overflow: hidden;
}
.city-strip a {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 17px 20px;
    transition: background 0.2s;
}
.city-strip a:hover {
    background: #f0e7f3;
}
.city-strip-date {
    flex: 1.5;
    background: #f0e7f3;
}
.city-strip-item {
    flex: 1;
    border-left: 1px solid var(--border);
}
.city-strip small {
    display: block;
    font-size: 9px;
    color: #836e7d;
    margin-bottom: 5px;
}
.city-strip strong {
    display: block;
    font-size: 12px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}
.city-strip-icon {
    color: var(--plum);
    font-size: 23px;
    flex-shrink: 0;
}
.city-strip .city-strip-all {
    padding: 16px;
    flex: 0 0 52px;
    justify-content: center;
    color: var(--plum);
}
.city-card-condition {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 14px;
    grid-column: 1;
}
.city-tools-link {
    margin: 22px 0 30px;
}
.moon-phase-events {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.moon-phase-events button {
    display: flex;
    gap: 10px;
    align-items: center;
    background: #f0e7f3;
    border: 1px solid #e2d4e7;
    border-radius: 9px;
    padding: 12px;
    color: var(--plum);
    text-align: left;
    cursor: pointer;
    min-width: 0;
    min-height: 62px;
}
.moon-phase-events strong,
.moon-phase-events small {
    display: block;
}
.moon-phase-events strong {
    font-size: 11px;
    line-height: 1.5;
}
.moon-phase-events small {
    font-size: 10px;
    margin-top: 5px;
    color: var(--muted);
}
.moon-selected-event {
    font-size: 11px !important;
    background: #f0e7f3;
    padding: 12px;
    border-radius: 8px;
}
.moon-selected-event[hidden] {
    display: none;
}
@media (max-width: 400px) {
    .moon-phase-events button {
        padding: 10px;
        gap: 8px;
    }
    .moon-phase-events strong {
        font-size: 9px;
    }
    .moon-phase-events small {
        font-size: 8px;
    }
    .moon-phase-events .moon-disc {
        width: 22px;
        height: 22px;
    }
}
.city-page-heading {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    margin-bottom: 25px;
}
.city-page-heading h1 {
    margin: 12px 0 14px;
}
.city-page-heading p {
    font-size: 13px;
    color: var(--muted);
    margin: 0;
}
.city-location {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #eee3f1;
    border-radius: 30px;
    padding: 12px 18px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    color: var(--plum);
}
.city-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
    margin-bottom: 28px;
}
.city-tabs a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 9px;
    padding: 11px 16px;
    background: #eee5f0;
    color: var(--plum);
}
.city-tabs a[aria-current='page'] {
    background: var(--plum);
    color: #fff;
}
.city-service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.city-service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 28px;
    overflow: hidden;
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}
.city-service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px #3d12350c;
}
.city-weather-card {
    background: #f0e7f3;
}
.city-sun-card {
    background: #fff0db;
}
.city-moon-card {
    background: #3d1235;
    color: #fff1ef;
}
.city-card-icon {
    font-size: 32px;
    margin-bottom: 28px;
    color: var(--plum);
}
.city-card-kicker {
    font-size: 8px;
    letter-spacing: 1.4px;
    font-weight: 600;
    opacity: 0.65;
    margin-bottom: 12px;
}
.city-service-card h2 {
    font-size: 28px;
    margin: 0 0 14px;
    line-height: 1.2;
}
.city-card-number {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.2;
}
.city-card-phase {
    font-size: 22px;
    margin-bottom: 10px;
}
.city-service-card p {
    font-size: 12px;
    line-height: 1.8;
    opacity: 0.8;
    margin-bottom: 28px;
}
.city-card-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    align-self: stretch;
    font-size: 11px;
    font-weight: 600;
    margin-top: auto;
}
.city-moon-card > .moon-disc {
    width: 42px;
    height: 42px;
    margin-bottom: 22px;
}
.city-moon-card h2 {
    color: #fff1ef;
}
.city-practical {
    margin-top: 50px;
}
.city-practical h2 {
    font-size: 30px;
}
.city-quick-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.city-quick-grid > a {
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fffdf9;
    padding: 20px;
}
.city-quick-grid > a > span {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #f0e7f3;
    display: grid;
    place-items: center;
    color: var(--plum);
    flex-shrink: 0;
    font-size: 20px;
}
.city-quick-grid h3 {
    font:
        750 14px Manrope,
        Arial,
        sans-serif;
    margin: 0 0 7px;
}
.city-quick-grid p {
    font-size: 11px;
    line-height: 1.6;
    color: var(--muted);
    margin: 0;
}
.city-quick-grid > a > i {
    margin-left: auto;
    font-size: 12px;
}
.city-quick-grid > a > div {
    min-width: 0;
}
.weather-dashboard {
    min-height: 240px;
}
.weather-loading {
    padding: 55px 24px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #f0e7f3;
    text-align: center;
}
.weather-loading h2 {
    font-size: 26px;
}
.weather-loading p {
    font-size: 13px;
    color: var(--muted);
}
.weather-loading-icon {
    font-size: 45px;
    color: var(--plum);
    display: block;
    margin-bottom: 20px;
}
.weather-current {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 28px;
    background: #f0e7f3;
    border: 1px solid #e3d5e8;
    border-radius: 18px;
    padding: 32px;
    margin-bottom: 26px;
}
.weather-now {
    display: flex;
    align-items: center;
    gap: 25px;
}
.weather-now > i {
    font-size: 68px;
    color: var(--plum);
}
.weather-now strong {
    display: block;
    font-size: 72px;
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -4px;
    color: var(--plum);
}
.weather-now h2 {
    font:
        700 16px Manrope,
        Arial,
        sans-serif;
    margin: 12px 0;
}
.weather-now p {
    font-size: 11px;
    color: var(--muted);
    margin: 0;
}
.weather-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-content: center;
}
.weather-metric {
    background: #fff9;
    padding: 16px;
    border-radius: 10px;
}
.weather-metric span {
    display: block;
    font-size: 10px;
    color: var(--muted);
    margin-bottom: 8px;
}
.weather-metric strong {
    font-size: 18px;
}
.weather-updated {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 22px;
}
.weather-stale {
    background: #fff0db;
    color: #875720;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.65;
    margin-bottom: 20px;
}
.weather-hours {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 9px;
    margin-bottom: 30px;
}
.weather-hour {
    display: grid;
    gap: 10px;
    text-align: center;
    padding: 17px 8px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fffdf9;
}
.weather-hour span {
    font-size: 14px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--text);
}
.weather-hour strong {
    font-size: 22px;
    color: var(--plum);
}
.weather-hour small {
    font-size: 10px;
    color: #5d7390;
}
.weather-day-list {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
}
.weather-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px 8px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fffdf9;
    min-width: 0;
}
.weather-day time {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    text-align: center;
    line-height: 1.7;
}
.weather-day > i {
    font-size: 25px;
    color: var(--plum);
    margin: 5px;
}
.weather-day strong {
    font-size: 16px;
}
.weather-day small {
    font-size: 10px;
    color: var(--muted);
}
.weather-section-title {
    font-size: 25px;
    margin: 26px 0 18px;
}
.weather-source {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    font-size: 10px;
    line-height: 1.7;
    color: var(--muted);
    margin-top: 24px;
}
.weather-source a {
    text-decoration: underline;
    text-underline-offset: 3px;
}
.moon-disc {
    --moon-dark: #574260;
    --moon-light: #fff1ca;
    display: inline-block;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--moon-dark);
    box-shadow: inset 0 0 0 1px #8e7995;
    position: relative;
    overflow: hidden;
}
.moon-phase-0 {
    background: var(--moon-dark);
}
.moon-phase-1 {
    background: var(--moon-light);
}
.moon-phase-1:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--moon-dark);
    border-radius: 50%;
    left: -25%;
}
.moon-phase-2 {
    background: linear-gradient(90deg, var(--moon-dark) 50%, var(--moon-light) 50%);
}
.moon-phase-3 {
    background: var(--moon-dark);
}
.moon-phase-3:after {
    content: '';
    position: absolute;
    width: 85%;
    height: 100%;
    background: var(--moon-light);
    border-radius: 50%;
    right: 0;
}
.moon-phase-4 {
    background: var(--moon-light);
}
.moon-phase-5 {
    background: var(--moon-dark);
}
.moon-phase-5:after {
    content: '';
    position: absolute;
    width: 85%;
    height: 100%;
    background: var(--moon-light);
    border-radius: 50%;
    left: 0;
}
.moon-phase-6 {
    background: linear-gradient(90deg, var(--moon-light) 50%, var(--moon-dark) 50%);
}
.moon-phase-7 {
    background: var(--moon-light);
}
.moon-phase-7:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--moon-dark);
    border-radius: 50%;
    right: -25%;
}
.moon-layout,
.sun-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(260px, 1fr);
    gap: 24px;
    align-items: start;
}
.moon-calendar,
.city-detail-card {
    background: #fffdf9;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 24px;
}
.moon-calendar-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.moon-calendar-heading h2 {
    font-size: 24px;
    margin: 0;
    text-align: center;
    text-transform: capitalize;
}
.city-icon-button {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    background: #eee3f1;
    border-radius: 9px;
    flex-shrink: 0;
}
.moon-month-form {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    margin-bottom: 25px;
}
.moon-month-form label {
    display: grid;
    gap: 8px;
    font-size: 11px;
    flex: 1;
    min-width: 0;
}
.moon-month-form input {
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    min-height: 43px;
    max-width: 100%;
    font: inherit;
    color: inherit;
}
.moon-month-form .button {
    font-size: 11px;
    padding: 12px;
}
.moon-weekdays,
.moon-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 5px;
}
.moon-weekdays {
    margin-bottom: 8px;
    font-size: 10px;
    text-align: center;
    color: var(--muted);
}
.moon-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 10px 3px;
    min-height: 107px;
    border: 1px solid #ede4eb;
    border-radius: 9px;
    background: #fbf7f2;
    color: var(--plum);
    cursor: pointer;
}
.moon-day > span:first-child {
    font-size: 12px;
    font-weight: 600;
}
.moon-day small {
    font-size: 8px;
    line-height: 1.3;
    overflow-wrap: anywhere;
    max-width: 100%;
}
.moon-day.is-today {
    border-color: #f56552;
}
.moon-day[aria-pressed='true'] {
    background: #eee3f1;
    outline: 2px solid #805171;
    outline-offset: -2px;
}
.city-detail-card h2 {
    font-size: 30px;
    margin: 15px 0 22px;
}
.city-detail-card h3 {
    font-size: 24px;
    margin: 18px 0;
}
.city-detail-card p {
    font-size: 13px;
    line-height: 1.8;
}
.city-detail-card .text-link {
    font-size: 12px;
}
.city-detail-card .city-fineprint {
    font-size: 11px;
    color: var(--muted);
    margin: 24px 0;
}
.moon-large {
    width: 100px;
    height: 100px;
}
.sun-visual {
    border: 1px solid #ecdcc2;
    background: #fff0db;
    border-radius: 18px;
    padding: 30px;
    text-align: center;
    overflow: hidden;
}
.sun-arc {
    height: 180px;
    width: 85%;
    border: 2px dashed #dfb36c;
    border-bottom: 0;
    border-radius: 500px 500px 0 0;
    margin: 50px auto 0;
    position: relative;
}
.sun-arc:after {
    content: '';
    position: absolute;
    left: -12%;
    right: -12%;
    bottom: 0;
    height: 2px;
    background: #dfb36c;
}
.sun-arc-icon {
    position: absolute;
    top: -29px;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 56px;
    background: #fff0db;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #c4872b;
    font-size: 42px;
}
.sun-times {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    text-align: center;
    margin: 22px 0;
}
.sun-times small {
    display: block;
    font-size: 11px;
    color: #92744b;
    margin-bottom: 9px;
}
.sun-times strong {
    font-size: 35px;
    color: var(--plum);
}
.sun-visual > p {
    font-size: 11px;
    color: #92744b;
    margin: 25px 0 0;
}
@media (max-width: 1100px) {
    .city-strip a {
        padding: 14px;
        gap: 9px;
    }
    .city-strip strong {
        font-size: 11px;
    }
    .city-service-card {
        padding: 23px;
    }
    .city-service-card h2 {
        font-size: 25px;
    }
    .weather-day-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .moon-layout,
    .sun-layout {
        grid-template-columns: minmax(0, 1.5fr) minmax(240px, 1fr);
    }
}
@media (max-width: 800px) {
    .city-strip {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        position: relative;
    }
    .city-strip-date {
        grid-column: span 2;
        padding-right: 48px !important;
    }
    .city-strip-item {
        border-top: 1px solid var(--border);
        border-left: 0;
    }
    .city-strip-item:nth-child(odd) {
        border-left: 1px solid var(--border);
    }
    .city-strip .city-strip-all {
        position: absolute;
        top: 3px;
        right: 3px;
        width: 42px;
        height: 55px;
        padding: 10px;
    }
    .city-strip-icon {
        font-size: 20px;
    }
    .city-service-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .city-service-card {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 0 14px;
        padding: 24px;
    }
    .city-card-icon,
    .city-moon-card > .moon-disc {
        grid-column: 2;
        grid-row: 1/4;
        margin: 0 !important;
        align-self: center;
    }
    .city-card-kicker,
    .city-service-card h2,
    .city-service-card p,
    .city-card-number,
    .city-card-phase {
        grid-column: 1;
    }
    .city-card-link {
        grid-column: 1/-1;
        margin-top: 8px;
    }
    .city-service-card h2 {
        font-size: 28px;
    }
    .city-service-card p {
        margin-bottom: 12px;
    }
    .city-card-icon {
        font-size: 42px;
    }
    .city-card-number {
        font-size: 26px;
    }
    .city-quick-grid {
        grid-template-columns: 1fr;
    }
    .weather-current {
        grid-template-columns: 1fr;
        padding: 25px;
        gap: 24px;
    }
    .weather-now strong {
        font-size: 65px;
    }
    .weather-now > i {
        font-size: 55px;
    }
    .weather-hours {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .weather-day-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .moon-layout,
    .sun-layout {
        grid-template-columns: 1fr;
    }
    .city-page-heading {
        align-items: flex-start;
    }
    .city-detail-card {
        padding: 24px;
    }
    .city-detail-card h2 {
        font-size: 28px;
    }
    .sun-arc {
        height: 150px;
    }
    .city-page-heading .city-location {
        margin-top: 28px;
    }
}
@media (max-width: 600px) {
    .city-strip {
        margin: 16px 0 24px;
    }
    .city-strip small {
        font-size: 9px;
    }
    .city-strip strong {
        font-size: 11px;
    }
    .city-strip-item {
        min-height: 78px;
    }
    .city-strip-item:last-of-type:nth-child(4) {
        grid-column: span 2;
    }
    .city-page-heading {
        display: block;
        margin-bottom: 23px;
    }
    .city-page-heading h1 {
        font-size: 34px;
        overflow-wrap: anywhere;
    }
    .city-page-heading .city-location {
        display: none;
    }
    .city-page-heading p {
        font-size: 11px;
        line-height: 1.7;
    }
    .city-tabs {
        gap: 7px;
    }
    .city-tabs a {
        font-size: 10px;
        padding: 10px 12px;
        flex: 1 1 auto;
    }
    .city-service-card h2 {
        font-size: 25px;
    }
    .city-quick-grid > a {
        padding: 17px 15px;
        gap: 12px;
    }
    .city-quick-grid h3 {
        font-size: 12px;
    }
    .city-quick-grid p {
        font-size: 10px;
    }
    .city-practical h2 {
        font-size: 28px;
    }
    .weather-hours {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .weather-day-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .weather-day {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 8px;
        padding: 16px;
        text-align: left;
    }
    .weather-day time {
        grid-column: 1;
        text-align: left;
    }
    .weather-day > i {
        grid-column: 2;
        grid-row: 1/3;
        font-size: 24px;
    }
    .weather-day strong {
        grid-column: 1;
    }
    .weather-day small {
        grid-column: 1/-1;
    }
    .weather-now {
        gap: 20px;
    }
    .weather-now > i {
        font-size: 45px;
    }
    .weather-now strong {
        font-size: 60px;
    }
    .weather-now h2 {
        font-size: 14px;
        line-height: 1.6;
    }
    .weather-current {
        padding: 22px;
    }
    .weather-metric {
        padding: 13px;
    }
    .weather-metric strong {
        font-size: 17px;
    }
    .weather-source {
        font-size: 9px;
    }
    .moon-calendar {
        padding: 15px;
    }
    .moon-calendar-heading h2 {
        font-size: 21px;
    }
    .moon-days,
    .moon-weekdays {
        gap: 4px;
    }
    .moon-day {
        min-height: 71px;
        gap: 7px;
        padding: 9px 1px;
    }
    .moon-day small {
        display: none;
    }
    .moon-day .moon-disc {
        width: 23px;
        height: 23px;
    }
    .moon-day > span:first-child {
        font-size: 11px;
    }
    .moon-month-form .button {
        padding: 12px 10px;
    }
    .city-detail-card .moon-large {
        width: 80px;
        height: 80px;
    }
    .sun-visual {
        padding: 24px 20px;
    }
    .sun-times strong {
        font-size: 30px;
    }
    .sun-arc {
        width: 80%;
        height: 125px;
    }
    .city-practical {
        margin-top: 35px;
    }
}

@media (max-width: 600px) {
    .moon-month-form input {
        font-size: 16px;
    }
}

[data-moon-times='0'] .moon-selected-event,
[data-moon-light='0'] .moon-illumination {
    display: none !important;
}
.horoscope-source {
    overflow-wrap: anywhere;
    font-size: 11px;
    line-height: 1.8;
}
.horoscope-source a {
    text-decoration: underline;
}
