.ps-site .ps-horo-hub-section {
    margin-block: 26px;
}

.ps-site .ps-horo-hub-section h2,
.ps-site .ps-horo-date-panel h2,
.ps-site .ps-horo-related h2 {
    margin: 0 0 12px;
    font-size: clamp(23px, 2.1vw, 28px);
    letter-spacing: -.025em;
}

.ps-site .ps-horo-hub-section .pill {
    padding: 7px 14px;
    color: var(--blue);
    background: #f5f8ff;
}
.ps-site .ps-horo-hub-section .pill:hover {
    color: #fff;
    background: var(--blue);
    border-color: var(--blue);
}

.ps-site .ps-horo-topics {
    display: grid;
    gap: 4px 14px;
}

.ps-site .ps-horo-topics a {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 4px 0;
    color: var(--blue);
    font-weight: 600;
}

.ps-site .ps-horo-icon {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #f1eafa;
    color: #69409c;
    font-size: 17px;
}

.ps-site .ps-horo-date-panel,
.ps-site .ps-horo-related {
    margin-block: 26px;
    padding: clamp(14px, 2.6vw, 24px);
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f5f8fd;
}

.ps-site .ps-horo-date-panel h3,
.ps-site .ps-horo-related h3 {
    margin: 0 0 3px;
    color: var(--muted);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: normal;
    line-height: 1.4;
}

.ps-site .ps-horo-date-panel .ps-horo-date-form {
    margin: 14px 0 18px;
}

.ps-site .ps-horo-date-form label {
    display: block;
    margin-block-end: 5px;
    font-weight: 600;
}

.ps-site .ps-horo-date-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ps-site .ps-horo-date-controls input,
.ps-site .ps-horo-date-controls button {
    min-width: 0;
    max-width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
    line-height: 1.4;
}

.ps-site .ps-horo-date-controls input {
    width: 11.25rem;
    color-scheme: light;
    color: var(--ink);
    background: #fff;
}

.ps-site .ps-horo-date-controls button {
    color: #fff;
    background: #2359ae;
    border-color: #2359ae;
    font-weight: 600;
}

.ps-site .ps-horo-date-controls :is(input, button):focus-visible {
    outline: 3px solid #2359c5;
    outline-offset: 2px;
}

.ps-site .ps-horo-date-panel .ps-horo-date-message {
    color: #7a2833;
}

.ps-site .ps-horo-archive {
    margin-block: 26px;
}

.ps-site .ps-horo-archive h2 {
    margin: 0 0 14px;
}

.ps-site .ps-horo-archive h3 {
    margin: 17px 0 3px;
    font-size: 19px;
    font-weight: 600;
    letter-spacing: normal;
}

.ps-site .ps-horo-archive-rows {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ps-site .ps-horo-archive-row {
    display: grid;
    grid-template-columns: minmax(10rem, 15rem) minmax(0, 1fr);
    align-items: baseline;
    gap: 4px 14px;
    padding: 4px 0;
    border-bottom: 1px solid var(--line);
}
.ps-site .ps-horo-archive-row > span:first-child {
    font-weight: 600;
}

.ps-site .ps-horo-links {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 14px;
}
.ps-site .ps-horo-links a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 2px 0;
    color: var(--blue);
}
.ps-site .ps-horo-links a + a::before {
    position: absolute;
    inset-inline-start: -8px;
    top: calc(50% - 1px);
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: var(--muted);
    content: "";
}
.ps-site .ps-horo-links a:hover,
.ps-site .ps-horo-topics a:hover {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ps-site .ps-horo-date-panel .ps-horo-links a {
    text-decoration: underline;
    text-underline-offset: 3px;
}
.ps-site .ps-horo-date-panel .ps-horo-links a + a::before {
    content: none;
}

.ps-site .ps-horo-related-group + .ps-horo-related-group {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.ps-site .ps-horo-reading h2 {
    display: flex;
    align-items: baseline;
    gap: 9px;
    margin: 1.2em 0 .32em;
    line-height: 1.2;
    scroll-margin-top: 26px;
}
.ps-site .ps-horo-reading h2:first-child {
    margin-top: 0;
}
.ps-site .ps-horo-reading h2 .ps-horo-icon {
    align-self: flex-start;
    margin-top: .1em;
}
.ps-site .ps-horo-reading h3 {
    margin: .8em 0 .27em;
    font-size: clamp(18px, 1.65vw, 22px);
    font-weight: 600;
    letter-spacing: -.02em;
    line-height: 1.3;
}
.ps-site .ps-horo-reading h2 + h3 {
    margin-top: .32em;
}
.ps-site .ps-horo-reading .ps-horo-highlight {
    padding: 12px 15px;
    border-inline-start: 3px solid #bca4dd;
    border-radius: 0 8px 8px 0;
    background: #f6f2fb;
}

@media (min-width: 1000px) {
    .ps-site .ps-horo-topics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .ps-site .ps-horo-archive-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        padding-top: 7px;
    }
}

@media (max-width: 480px) {
    .ps-site .ps-horo-date-controls > :is(input, button) {
        width: 100%;
    }
}
