/* Vychet — a derivative of Dope. Copyright Ghost Foundation, MIT license. */

:root {
    --vy-paper: #f7f7f0;
    --vy-ink: #203a32;
    --vy-muted: #5c6a61;
    --vy-rule: #d9ded3;
    --vy-gutter: max(5vw,calc((100vw - 1600px)/2));
    --font-sans: Arial,Helvetica,sans-serif;
    --font-serif: Georgia,"Times New Roman",serif;
    --primary-text-color: var(--vy-ink);
    --secondary-text-color: var(--vy-muted);
    --primary-color: #35644f;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 24px;
}

body {
    background: var(--vy-paper);
    color: var(--vy-ink);
    font-family: var(--font-sans);
}

body h1,body h2,body h3,body h4 {
    color: var(--vy-ink);
}

a,button {
    -webkit-tap-highlight-color: #789b6c35;
}

a:focus-visible,button:focus-visible,[tabindex]:focus-visible,summary:focus-visible {
    outline: 3px solid #245b43;
    outline-offset: 5px;
}

[hidden] {
    display: none!important;
}

.vy-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.vy-skip-link {
    position: fixed;
    top: 12px;
    left: 16px;
    z-index: 100;
    padding: 12px 18px;
    transform: translateY(-180%);
    background: var(--vy-ink);
    color: white;
}

.vy-skip-link:focus {
    transform: translateY(0);
    color: white;
}

.vy-header {
    padding: 17px var(--vy-gutter);
    border-bottom: 1px solid var(--vy-rule);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
}

.vy-logo {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1.8px;
    color: var(--vy-ink);
    line-height: 1;
}

.vy-logo span {
    font-weight: 400;
    color: #667c68;
}

.vy-logo .logo-image {
    max-height: 48px;
    max-width: 190px;
    object-fit: contain;
}

.vy-header nav {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-left: auto;
}

.vy-header nav a,.vy-login {
    color: var(--vy-ink);
    font-size: 13px;
    font-weight: 600;
}

.vy-header nav a {
    padding: 12px 0;
}

.vy-header nav a:hover {
    text-decoration: underline;
    text-underline-offset: 5px;
}

.vy-login {
    border: 1px solid var(--vy-ink);
    border-radius: 30px;
    padding: 12px 21px;
    white-space: nowrap;
}

.vy-login:hover {
    color: var(--vy-paper);
    background: var(--vy-ink);
}

.site .site-content {
    padding-top: 0;
}

.vy-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 36px;
    padding: 40px var(--vy-gutter) 30px;
}

.vy-eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .17em;
    line-height: 1.5;
    margin: 0 0 24px;
    color: var(--vy-muted);
}

.vy-intro h1 {
    font-size: clamp(38px,4.55vw,73px);
    line-height: 1.08;
    font-weight: 500;
    letter-spacing: -.055em;
    margin: 0;
}

.vy-intro h1 span {
    color: #667e61;
}

.vy-intro-note {
    width: 270px;
    flex-shrink: 0;
    padding-bottom: 5px;
}

.vy-intro-note p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--vy-muted);
    margin: 0 0 23px;
}

.vy-intro-note a {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding: 8px 0;
    border-bottom: 1px solid var(--vy-ink);
    color: var(--vy-ink);
    font-weight: 600;
    font-size: 13px;
}

.vy-intro-note a span {
    font-size: 22px;
    line-height: 1;
}

.vy-card-feed {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding: 6px var(--vy-gutter) 16px;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--vy-gutter);
    scrollbar-width: thin;
    scrollbar-color: #95a58a transparent;
    overscroll-behavior-x: contain;
}

.vy-card-feed:focus-visible {
    outline-offset: -3px;
}

.vy-deduction {
    flex: 0 0 calc((100vw - 2 * var(--vy-gutter) - 32px)/3);
    min-width: 280px;
    min-height: 395px;
    display: flex;
    flex-direction: column;
    position: relative;
    isolation: isolate;
    padding: 24px 28px 26px;
    background: #e0ecb4;
    color: #2f442b;
    scroll-snap-align: start;
    border: 1px solid #23382908;
    border-radius: 9px;
}

.vy-deduction-medical {
    background: #d5e6e2;
    color: #274a44;
}

.vy-deduction-property {
    background: #f0d5c2;
    color: #603f30;
}

.vy-deduction-investment {
    background: #e6e5da;
    color: #505648;
}

.vy-deduction-pension {
    background: #e3dfea;
    color: #524a63;
}

.vy-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
}

.vy-card-status {
    padding: 6px 9px;
    border: 1px solid currentColor;
    border-radius: 20px;
    font-size: 10px;
    letter-spacing: .09em;
}

.is-coming-soon .vy-card-status {
    background: #ffffff70;
}

.vy-card-art {
    position: relative;
    height: 145px;
    margin: 12px 0 5px;
}

.vy-card-illustration {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.vy-card-illustration::before {
    content: "";
    position: absolute;
    width: 143px;
    height: 143px;
    border-radius: 50%;
    background: #ffffff30;
}

.vy-card-illustration::after {
    content: "+";
    position: absolute;
    right: 7%;
    top: 17%;
    font: 26px Georgia,serif;
    opacity: .6;
}

.vy-card-illustration svg {
    position: relative;
    width: 62%;
    height: 142px;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transform: rotate(-6deg);
}

.vy-deduction-medical .vy-card-illustration svg {
    transform: rotate(7deg);
}

.vy-deduction-property .vy-card-illustration svg {
    transform: rotate(-4deg);
}

.vy-category-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.vy-card-copy {
    margin-top: auto;
}

.vy-card-copy h3 {
    margin: 6px 0 12px;
    font-size: clamp(32px,2.8vw,48px);
    font-weight: 500;
    letter-spacing: -.045em;
    line-height: 1.12;
    color: inherit;
    overflow-wrap: anywhere;
}

.vy-card-copy p {
    max-width: 350px;
    min-height: 44px;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 19px;
    color: inherit;
}

.vy-card-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    padding-top: 14px;
    border-top: 1px solid currentColor;
    color: inherit;
    font-weight: 600;
    font-size: 13px;
}

.vy-card-link > [aria-hidden] {
    font-size: 25px;
    line-height: 1;
}

a.vy-card-link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 9px;
}

a.vy-card-link:focus-visible::after {
    outline: 3px solid #245b43;
    outline-offset: 2px;
}

.vy-deduction:not(.is-coming-soon):has(a:hover) {
    border-color: #6b805d;
}

.vy-deduction:not(.is-coming-soon) .vy-card-status {
    background: #2f442b;
    color: #fff;
    border-color: #2f442b;
}

.vy-card-unavailable {
    font-weight: 400;
}

a.vy-card-link:hover {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.vy-carousel-footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin: 0 var(--vy-gutter);
    padding-top: 8px;
    min-height: 60px;
}

.vy-carousel-footer h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
}

.vy-carousel-status {
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    letter-spacing: .04em;
    margin: 0;
}

.vy-carousel-controls {
    margin-inline-start: auto;
    display: flex;
    gap: 9px;
}

.vy-carousel-controls button {
    width: 44px;
    height: 44px;
    border: 1px solid var(--vy-ink);
    color: var(--vy-ink);
    border-radius: 50%;
    background: transparent;
    font-size: 22px;
    cursor: pointer;
}

.vy-carousel-controls button:hover {
    background: var(--vy-ink);
    color: var(--vy-paper);
}

.vy-carousel-controls button:disabled {
    opacity: .3;
    cursor: default;
    background: transparent;
    color: var(--vy-ink);
}

.vy-section-heading h2 {
    font-weight: 500;
    font-size: clamp(30px,3.2vw,48px);
    line-height: 1.12;
    letter-spacing: -.04em;
    margin: 0;
}

.vy-guides {
    padding: 52px var(--vy-gutter) 60px;
    border-top: 1px solid var(--vy-rule);
    background: #eef0e7;
}

.vy-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 32px;
}

.vy-section-heading>a {
    padding: 10px 0;
    font-size: 13px;
    color: var(--vy-ink);
    text-decoration: underline;
    text-underline-offset: 5px;
    white-space: nowrap;
}

.vy-section-heading .vy-eyebrow {
    margin-bottom: 14px;
}

.vy-guide-list {
    padding: 0;
    margin: 0;
    list-style: none;
    border-bottom: 1px solid #bdc7b7;
}

.vy-guide-row {
    display: grid;
    grid-template-columns: clamp(126px, 13vw, 190px) minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    padding: 24px 0;
    border-top: 1px solid #bdc7b7;
    color: var(--vy-ink);
}

.vy-guide-row:hover, .vy-guide-row:focus-visible {
    opacity: 1;
    color: var(--vy-ink);
}

.vy-guide-row:hover h3, .vy-guide-row:focus-visible h3 {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .16em;
}

.vy-guide-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--vy-muted);
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.vy-guide-meta time {
    color: var(--vy-ink);
    font-variant-numeric: tabular-nums;
}

.vy-guide-copy h3 {
    margin: 0;
    font-size: clamp(20px, 1.8vw, 27px);
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -.03em;
    overflow-wrap: anywhere;
}

.vy-guide-copy p {
    max-width: 75ch;
    margin: 7px 0 0;
    color: var(--vy-muted);
    font-size: 14px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.vy-guide-end {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 24px;
}

.vy-guide-end img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.vy-guide-empty {
    border-top: 1px solid #bdc7b7;
    padding-top: 24px;
}

.vy-articles {
    padding-top: 55px;
    padding-bottom: 75px;
}

.vy-articles .term {
    margin-bottom: 45px;
}

.vy-articles .term-name {
    font-weight: 500;
    letter-spacing: -.04em;
}

.vy-articles .post-feed .post {
    border-top: 1px solid var(--vy-rule);
    padding-top: 32px;
    margin-bottom: 40px;
}

.vy-articles .post-title {
    font-weight: 500;
}

.vy-articles .post-excerpt {
    color: var(--vy-muted);
    font-size: 15px;
}

.vy-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    margin: 40px 0 0;
    font-size: 13px;
}

.vy-pagination a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.vy-editorial-empty {
    padding: 30px 0;
    font-size: 16px;
}

.vy-editorial-empty a,.vy-guide-back {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.vy-guide-back {
    display: inline-block;
    margin: 25px 0;
    font-size: 13px;
}

.site .gh-foot {
    margin-top: 0;
    border-top: 1px solid var(--vy-rule);
    padding: 28px var(--vy-gutter);
    color: var(--vy-muted);
    font-size: 11px;
}

.site .gh-foot-inner {
    max-width: none;
}

.site .gh-foot a {
    color: inherit;
}

@media (min-width: 768px) {
    .vy-footer-login {
        grid-column: -2;
        justify-self: end;
    }
}

@media(min-width:1700px) {
    .vy-deduction {
        min-height: 520px;
    }

    .vy-card-art {
        height: 210px;
    }

    .vy-card-illustration svg {
        height: 175px;
    }
}

@media(max-width:1100px) {
    .vy-intro-note {
        width: 230px;
    }

    .vy-deduction {
        flex-basis: calc((100vw - 2 * var(--vy-gutter) - 16px)/2.3);
    }
}

@media(max-width:800px) {
    .vy-intro {
        display: block;
        padding-top: 30px;
        padding-bottom: 20px;
    }

    .vy-intro h1 {
        font-size: clamp(36px,6.8vw,58px);
    }

    .vy-intro-note {
        width: auto;
        margin-top: 14px;
    }

    .vy-intro-note p {
        margin-bottom: 0;
    }

    .vy-intro-note p br {
        display: none;
    }

    .vy-intro-note a {
        display: none;
    }

    .vy-deduction {
        flex-basis: 60vw;
    }

}

@media(max-width:600px) {
    .vy-header nav a[href="/#deductions"] {
        display: none;
    }

    .vy-card-illustration svg {
        height: 108px;
    }

    .vy-card-illustration::before {
        width: 108px;
        height: 108px;
    }
    :root {
        --vy-gutter: 20px;
    }

    .vy-header {
        gap: 12px;
        flex-wrap: nowrap;
        padding-block: 12px;
    }

    .vy-logo {
        font-size: 27px;
    }

    .vy-logo .logo-image {
        max-width: 160px;
    }

    .vy-login {
        margin-left: 0;
        padding: 10px 14px;
        font-size: 12px;
    }

    .vy-header nav {
        order: 0;
        width: auto;
        gap: 26px;
        margin: 0 0 0 auto;
    }

    .vy-header nav a {
        font-size: 12px;
    }

    .vy-eyebrow {
        font-size: 9px;
        margin-bottom: 19px;
    }

    .vy-intro h1 {
        font-size: clamp(32px,7.7vw,46px);
    }

    .vy-intro-note p {
        font-size: 13px;
        max-width: 350px;
    }

    .vy-deduction {
        flex-basis: calc(100vw - 64px);
        min-width: 0;
        min-height: 365px;
        padding: 20px;
    }

    .vy-card-feed {
        gap: 12px;
    }

    .vy-card-art {
        height: 122px;
    }

    .vy-card-copy h3 {
        font-size: 36px;
    }

    .vy-card-copy p {
        min-height: 45px;
    }

    .vy-carousel-footer {
        gap: 6px 10px;
        padding-top: 3px;
    }

    .vy-carousel-footer h2 {
        font-size: 14px;
    }

    .vy-guides {
        padding-top: 36px;
        padding-bottom: 36px;
    }

    .vy-section-heading {
        align-items: flex-end;
        gap: 12px;
    }

    .vy-section-heading h2 {
        font-size: 31px;
    }

    .vy-section-heading>a {
        font-size: 11px;
    }

    .vy-guide-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px 14px;
        padding: 18px 0;
    }

    .vy-guide-meta {
        grid-column: 1 / -1;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 2px 12px;
        font-size: 12px;
    }

    .vy-guide-end {
        flex-direction: column;
        gap: 6px;
        font-size: 21px;
    }

    .vy-guide-end img {
        width: 64px;
        height: 48px;
    }

    .vy-articles {
        padding-top: 35px;
    }

    .vy-articles .term-name {
        font-size: 36px;
    }

    .site .gh-foot {
        padding-block: 22px;
    }
}

@media (max-width: 360px) {
    :root {
        --vy-gutter: 14px;
    }

    .vy-header {
        gap: 8px;
    }

    .vy-logo {
        min-width: 0;
        font-size: 22px;
    }

    .vy-logo .logo-image {
        max-width: min(100%, 104px);
    }

    .vy-login {
        padding-inline: 12px;
    }
}

@media(prefers-reduced-motion:reduce) {
    html,.vy-card-feed {
        scroll-behavior: auto;
    }

    *,*::before,*::after {
        animation-duration: .01ms!important;
        animation-iteration-count: 1!important;
        transition-duration: .01ms!important;
    }
}

@media(forced-colors:active) {
    .vy-deduction,.vy-carousel-controls button {
        border-color: ButtonText;
    }
}

.vy-guides {
    margin-top: 36px;
}

.single-post .u-placeholder::before {
    background-color: rgba(0,0,0,.55);
}

@media(max-width:800px) {
    .vy-intro-note a {
        display: inline-flex;
        align-items: center;
        gap: 12px;
        margin-top: 8px;
        min-height: 40px;
    }
}
