.image-preview-dialog {
    position: fixed;
    width: fit-content;
    max-width: 94vw;
    max-height: 94vh;
    margin: auto;
    padding: 0;
    overflow: visible;
    border: 0;
    background: transparent;
}

input:autofill,
input:-webkit-autofill {
    box-shadow: inset 0 0 0 1000px #fff;
    -webkit-text-fill-color: #000;
    caret-color: #000;
}

.image-preview-dialog::backdrop { background: rgb(0 0 0 / 90%); }
.image-preview-dialog img { display: block; max-width: 92vw; max-height: 90vh; border-radius: 4px; object-fit: contain; box-shadow: 0 18px 70px rgb(0 0 0 / 35%); }
.image-preview-close { position: absolute; top: -15px; right: -15px; display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid #888; border-radius: 50%; background: #111; color: #fff; cursor: pointer; font-size: 17px; }
.image-preview-close:hover { background: var(--hp-accent-1, #d04233); }
.image-preview-close:focus-visible { outline: 3px solid rgb(208 66 51 / 55%); outline-offset: 3px; }

.site-title-tooltip {
    position: fixed;
    z-index: 10000;
    min-width: 100px;
    max-width: min(320px, calc(100vw - 24px));
    padding: 7px 10px;
    border: 1px solid rgb(255 255 255 / 12%);
    border-radius: 5px;
    background: #252321;
    box-shadow: 0 5px 18px rgb(0 0 0 / 22%);
    color: #fff;
    font: 500 12px/1.4 -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 100ms ease;
}

.site-title-tooltip.is-visible { opacity: 1; visibility: visible; }
.site-title-tooltip.has-list { text-align: left; white-space: pre-line; }
.site-title-tooltip::after { position: absolute; left: var(--tooltip-arrow-x, 50%); width: 7px; height: 7px; background: #252321; content: ""; transform: translateX(-50%) rotate(45deg); }
.site-title-tooltip[data-placement="above"]::after { bottom: -4px; }
.site-title-tooltip[data-placement="below"]::after { top: -4px; }

.detail-copy.rich-content .content-gallery-grid > a,
.category-item-gallery.rich-content .content-gallery-grid > a {
    display: block;
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--hp-paper, #f4f1ee);
}

.detail-copy.rich-content .content-gallery-grid > a > img,
.category-item-gallery.rich-content .content-gallery-grid > a > img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}
@font-face {
    font-family: "PT Sans Narrow";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/assets/fonts/pt-sans-narrow-latin.woff2") format("woff2");
}

@font-face {
    font-family: "Helvetica Neue";
    font-style: normal;
    font-weight: 100;
    font-display: swap;
    src: url("/assets/fonts/helvetica-neue-thin.otf") format("opentype");
}

@font-face {
    font-family: "Helvetica Neue";
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url("/assets/fonts/helvetica-neue-light.otf") format("opentype");
}

@font-face {
    font-family: "Helvetica Neue";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/assets/fonts/helvetica-neue-roman.otf") format("opentype");
}

@font-face {
    font-family: "Helvetica Neue";
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url("/assets/fonts/helvetica-neue-heavy.otf") format("opentype");
}

.rich-content {
    color: inherit;
    font-family: var(--hp-font-copy, "Helvetica Neue", Helvetica, Arial, sans-serif);
    font-size: 1rem;
    line-height: 1.33;
    white-space: normal;
    overflow-wrap: anywhere;
}

.rich-content--lede {
    font-size: 1.16rem;
    line-height: 1.5;
}

.rich-content p { margin: 0 0 1em; }
.rich-content .rich-align-left { text-align: left; }
.rich-content .rich-align-center { text-align: center; }
.rich-content .rich-align-right { text-align: right; }
.rich-content .rich-align-justify { text-align: justify; }
.rich-content h2, .rich-content h3, .rich-content h4, .rich-content h5 { line-height: 1.2; }
.rich-content h2 { margin: 1.25em 0 .55em; font-size: 1.5em; }
.rich-content h3 { margin: 1.2em 0 .5em; font-size: 1.25em; }
.rich-content h4, .rich-content h5 { margin: 1.1em 0 .45em; font-size: 1.08em; }
.rich-content ul, .rich-content ol { margin: 0 0 1em; padding-left: 1.55em; }
.rich-content li { margin: .2em 0; }
.rich-content blockquote { margin: 1.2em 0; padding: .1em 0 .1em 1em; border-left: 3px solid var(--hp-accent-1, #d04233); color: inherit; }
.rich-content .floating { margin-top: 0; }
.rich-content :is(p, figure, div):has(img):has(+ .floating) { float: left; width: fit-content; max-width: calc(100% - var(--hp-gap-2, 1rem)); margin: .15em var(--hp-gap-2, 1rem) 1em 0; }
.rich-content :is(p, figure, div):has(img):has(+ .floating) img { display: block; max-width: 100%; height: auto; }
.rich-content img:has(+ .floating) { float: left; max-width: calc(100% - var(--hp-gap-2, 1rem)); margin: .15em var(--hp-gap-2, 1rem) 1em 0; }
.rich-content .floating-clear { display: block; clear: both; height: 0; margin: 0; padding: 0; line-height: 0; visibility: hidden; }
.rich-content .two-columns {display: flex;align-items: flex-start;gap: var(--hp-gap-2, 1rem);margin: 1em 0;}
.rich-content .two-columns > .two-columns__column { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; }
.rich-content .two-columns > .two-columns__column:has(img) { flex: 0 0 auto; max-width: 100%; }
.rich-content a {color: var(--hp-red, #d04233);text-decoration: none;}
.rich-content img { max-width: 100%; height: auto; }
.rich-content figure { max-width: 100%; margin: 1em 0; }
.rich-content figcaption { margin-top: .4em; color: var(--hp-muted, #727272); font-size: .9em; }
.rich-content table { width: auto; max-width: 100%; border-collapse: collapse; }
.rich-content th, .rich-content td { padding: .4rem .6rem; border: 1px solid var(--hp-line, #d9d9d9); text-align: left; vertical-align: top; }
.rich-content iframe { display: block; width: min(100%, 720px); aspect-ratio: 16 / 9; border: 0; }
.rich-content hr { margin: 1.5em 0; border: 0; border-top: 1px solid var(--hp-line, #d9d9d9); }
.rich-content > :first-child, .two-columns__column > :first-child { margin-top: 0; }
.rich-content > :last-child, .two-columns__column > :last-child { margin-bottom: 0; }

@media (max-width: 640px) {
    .rich-content :is(p, figure, div):has(img):has(+ .floating), .rich-content img:has(+ .floating) { float: none; width: auto; max-width: 100%; margin: 0 0 1em; }
    .rich-content .floating { margin: 0 0 1em; }
    .rich-content .two-columns { flex-direction: column; gap: var(--hp-gap-1, 1rem); }
    .rich-content .two-columns > .two-columns__column { width: 100%; flex-basis: auto; }
}
