:root { --iv-blue: #163de1; --iv-ink: #111b30; --iv-line: #d8e2f5; }
.ptj-site { background: #f5f8fe; color: var(--iv-ink); }
.ptj-header .ptj-brand a { display: inline-flex; align-items: center; gap: .35em; color: #0f172a; font: 850 clamp(1.85rem, 4.2vw, 3.1rem)/1 Inter, system-ui, sans-serif; letter-spacing: -.06em; }
.iv-logo-mark { display: inline-grid; place-items: center; width: 1.08em; height: 1.08em; border-radius: .13em; background: var(--iv-blue); color: white; font-size: .8em; transform: skew(-8deg); }
.ptj-footer-brand { color: var(--iv-ink); font-weight: 800; }
.ptj-nav a:hover, .ptj-nav [aria-current] { color: var(--iv-blue); background: #eaf0ff; }
.iv-home { margin: 1rem 0 2rem; display: grid; gap: .8rem; font-family: Inter, system-ui, sans-serif; }
.iv-lead, .iv-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: .8rem; }
.iv-hero { grid-column: span 6; display: grid; grid-template-columns: 1fr 1fr; position: relative; overflow: hidden; }
.iv-hero::after { content: ""; position: absolute; bottom: 0; right: 0; width: 3.5rem; height: 3.5rem; background: var(--iv-blue); clip-path: polygon(100% 0, 100% 100%, 0 100%); pointer-events: none; }
.iv-hero-copy { align-self: center; padding: 1rem .4rem 1rem 1rem; }
.iv-hero img { width: 100%; height: 100%; min-height: 16rem; object-fit: cover; border-radius: .4rem; }
.iv-latest, .iv-side { grid-column: span 3; }
.iv-side { display: grid; gap: .8rem; grid-template-rows: 1fr 1fr; }
.iv-panel { min-width: 0; padding: .85rem; border: 1px solid var(--iv-line); border-radius: .55rem; background: white; }
.iv-row > .iv-panel { grid-column: span 4; }
.iv-bottom > .iv-panel { grid-column: span 6; }
.iv-panel h2 { margin: 0 0 .55rem; font: 800 clamp(1rem, 1.55vw, 1.45rem)/1.16 Inter, system-ui, sans-serif; letter-spacing: -.035em; }
.iv-hero h2 { margin: .6rem 0; font-size: clamp(1.45rem, 2.8vw, 2.85rem); line-height: 1.02; }
.iv-hero h2 a, .iv-story, .iv-links a { color: #17243d; text-decoration: none; }
.iv-links a:hover, .iv-story:hover, .iv-hero a:hover { text-decoration: underline; }
.iv-tag { color: var(--iv-blue); font-weight: 800; font-size: .86rem; }
.iv-button, .iv-options button { display: inline-block; padding: .5rem .68rem; border: 1px solid var(--iv-blue); border-radius: .32rem; font: inherit; font-weight: 700; cursor: pointer; }
.iv-button { color: white; background: var(--iv-blue); text-decoration: none; }
.iv-options { display: flex; flex-wrap: wrap; gap: .35rem; }
.iv-options button { color: var(--iv-blue); background: white; }
.iv-options .iv-correct { background: #dcfce7; color: #185437; }
.iv-panel p { margin: 0 0 .6rem; }
.iv-panel .iv-result:empty { display: none; }
.iv-result { padding-top: .55rem; }
.iv-popular-panel .iv-story { min-height: 2.55rem; }
.iv-popular-panel .iv-story img { width: 4.8rem; aspect-ratio: 1.8; }
.iv-history-story { display: grid; gap: .45rem; margin-bottom: .4rem; color: #17243d; text-decoration: none; }
.iv-history-story:hover strong { text-decoration: underline; }
.iv-history-story img { width: 100%; height: 7rem; border-radius: .32rem; object-fit: cover; }
.iv-map-preview { display: grid; width: 100%; padding: 0; overflow: hidden; border: 1px solid var(--iv-line); border-radius: .32rem; background: #e3edfb; cursor: pointer; }
.iv-map-preview[hidden] { display: none; }
.iv-map-preview img { grid-area: 1 / 1; width: 100%; height: auto; aspect-ratio: 2.5; object-fit: cover; }
.iv-map-preview .iv-button { grid-area: 1 / 1; justify-self: start; align-self: end; margin: .5rem; }
.iv-map-preview:focus-visible { outline: 2px solid #192bb8; outline-offset: 2px; }
.iv-story { display: flex; align-items: center; gap: .5rem; padding: .4rem 0; border-bottom: 1px solid var(--iv-line); font-size: .88rem; line-height: 1.22; }
.iv-story img { width: 34%; aspect-ratio: 1.55; height: auto; object-fit: cover; border-radius: .3rem; }
.iv-latest .iv-story { min-height: 4.35rem; }
.iv-latest .iv-story time { display: block; margin-top: .25rem; color: #40516d; font-size: .76rem; }
.iv-quiz-image { max-width: 10rem; width: 100%; height: auto; margin-bottom: .45rem; border-radius: .3rem; }
.iv-links { padding-left: 1.1rem; margin: 0; }
.iv-reader { display: grid; gap: .4rem; justify-items: start; }
.iv-reader textarea { width: 100%; height: 5.5rem; min-height: 5.5rem; resize: vertical; }
.iv-experiment-list { list-style: none; margin: 0; padding: 0; }
.iv-experiment-list .iv-story img { width: min(32%, 9rem); }
.iv-trap { display: none; }
.iv-comparison { position: relative; display: grid; aspect-ratio: 2; overflow: hidden; border-radius: .3rem; }
.iv-comparison img { grid-area: 1/1; width: 100%; height: 100%; object-fit: cover; }
.iv-comparison img + img { clip-path: inset(0 0 0 var(--iv-split, 50%)); }
.iv-comparison-credits { font-size: .78rem; }
.iv-comparison-credits summary { cursor: pointer; color: var(--iv-blue); }
.iv-comparison-credits ul { margin: .3rem 0; padding-left: 1rem; }
@media (max-width: 960px) { .iv-hero { grid-column: span 8; } .iv-latest { grid-column: span 4; } .iv-side { grid-column: 1 / -1; grid-template: auto / 1fr 1fr; } }
@media (max-width: 620px) { .iv-lead, .iv-row, .iv-side { grid-template-columns: 1fr; grid-template-rows: auto; } .iv-lead > *, .iv-row > .iv-panel { grid-column: 1; } .iv-hero { grid-template-columns: 1fr; } .iv-hero img { height: 12rem; min-height: 0; } .iv-hero-copy { padding: .35rem; } }

.ptj-site .ptj-shell { max-width: 1440px; }
.ptj-site .ptj-header { min-height: 0; margin: 0; padding: .75rem .15rem; background: #f5f8fe; }
.ptj-site .ptj-nav { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin: 0; }
.ptj-site .ptj-nav a { min-height: 2.85rem; flex-direction: row; padding: .4rem; gap: .45rem; }
.ptj-site .ptj-nav a svg { width: 1.05rem; height: 1.05rem; }
.ptj-site .ptj-search button { background: var(--iv-blue); }
.iv-hero { padding: .45rem; }
.iv-hero-copy { padding: .7rem; }
.iv-hero img { min-height: 13rem; }
.iv-panel p { font-size: .93rem; }
.iv-button, .iv-options button { font-size: .86rem; }
.iv-quiz-image { width: 100%; max-width: none; height: 8rem; object-fit: cover; }
.iv-map-frame { border: 0; width: 100%; min-height: 13rem; margin-top: .6rem; }
.iv-map-controls { margin-top: .45rem; }
@media (max-width: 760px) { .ptj-site .ptj-nav { display: none; } .iv-hero img { min-height: 0; } }
.iv-random-panel { position: relative; isolation: isolate; }
.iv-random-panel::after { content: ""; position: absolute; z-index: -1; inset: .45rem .45rem .45rem auto; width: 43%; border-radius: .3rem; background: url('iv-editorial.webp') left top / 200% 100% no-repeat; clip-path: polygon(24% 0, 100% 0, 100% 100%, 0 100%); }
.iv-random-panel .iv-result { max-width: 60%; }
.iv-myth-panel .iv-quiz::before { content: ""; display: block; height: 8rem; margin-bottom: .45rem; background: url('iv-editorial.webp') right top / 200% 100% no-repeat; border-radius: .3rem; }
.iv-comparison { aspect-ratio: auto; height: 8rem; }
.iv-quiz-date { color: #44547b; font-size: .8rem !important; }
.iv-hero::before { content: ""; position: absolute; inset: 0 auto auto 50%; height: 2.3rem; width: 2.3rem; background: #f8c52c; clip-path: polygon(0 0, 100% 0, 0 100%); pointer-events: none; }
.iv-story strong { hyphens: auto; }
.iv-new-rubrics > .iv-panel:only-child { grid-column: 1 / -1; }
.iv-panel .iv-fact-lead { font-weight: 750; font-size: 1.05rem; }
.iv-fact-topics { display: flex; flex-wrap: wrap; gap: .45rem 1.1rem; margin: 1.2rem 0; }
.iv-fact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: .75rem; }
.ptj-entry .iv-fact-card { padding: 1rem; border: 1px solid var(--iv-line); border-radius: .5rem; background: #fff; scroll-margin-top: 1rem; }
.ptj-entry .iv-fact-card h3 { margin-top: 0; font-size: 1.25rem; }
.ptj-entry .iv-fact-card:target { border-color: var(--iv-blue); }
.iv-fact-links { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .9rem; }
.iv-topic-rubrics, .iv-garden-list { margin-top: .45rem; padding-left: 1.1rem; }
.iv-home .iv-garden-list { margin-bottom: .6rem; font-size: .9rem; }
.iv-new-rubrics a, .iv-fact-links a, .iv-atlas-entry-link { color: #1436b0; text-decoration: underline; }
.iv-atlas-entry-link { display: inline-block; margin-top: .45rem; font-size: .88rem; }
.iv-atlas > .iv-map-preview, .iv-atlas > .iv-map-frame { max-width: 46rem; }
.iv-atlas .iv-fact-card img { width: 100%; height: 9rem; object-fit: cover; border-radius: .3rem; margin-bottom: .6rem; }
.iv-atlas .iv-place { padding: .35rem .55rem; border: 1px solid #bac7ef; border-radius: .25rem; }
.iv-search-facts { margin: 0 0 1.2rem; padding: .8rem 1rem; border: 1px solid var(--iv-line); border-radius: .45rem; background: #fff; }
.iv-search-facts ul { padding-left: 1.15rem; margin: .45rem 0 0; }
.iv-search-facts a { color: #1436b0; text-decoration: underline; }
.iv-themed-quizzes { display: grid; gap: .85rem; }
.iv-themed-quizzes p.iv-question { font-weight: 600; }
@media (max-width: 620px) { .iv-hero::before { display: none; } }
.iv-place-details { margin-top: .6rem; }
.iv-place-details summary { cursor: pointer; font-size: .86rem; font-weight: 700; }
.iv-place-list { padding: 0; list-style: none; margin: .4rem 0; }
.iv-place-list li { display: flex; justify-content: space-between; align-items: baseline; gap: .4rem; border-top: 1px solid var(--iv-line); padding: .28rem 0; font-size: .82rem; }
.iv-place { border: 0; background: none; color: var(--iv-blue); text-align: left; padding: .25rem .1rem; font: inherit; font-weight: 700; cursor: pointer; }
.iv-random-panel h2 { position: relative; max-width: 65%; }
.iv-random-panel .iv-button { position: relative; }
.ptj-searchform button, .ptj-site form[role="search"] button { background: var(--iv-blue); }
.iv-options button:focus-visible, .iv-button:focus-visible, .iv-place:focus-visible { outline: 2px solid #192bb8; outline-offset: 2px; }
.iv-options button:disabled { opacity: .72; cursor: default; }
.iv-options button.iv-correct:disabled { opacity: 1; }
.iv-article-discovery { margin-top: 1.4rem; padding-top: .6rem; border-top: 1px solid var(--iv-line); }
.iv-quiz-links { display: flex; flex-wrap: wrap; gap: .2rem .8rem; }
.iv-share { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 1.2rem 0; }
.iv-share-status { font-size: .86rem; }
.iv-fact-share { margin: .45rem 0 0; }
.iv-fact-share[hidden] { display: none; }
.iv-fact-share button { background: #fff; border: 1px solid var(--iv-line); border-radius: .3rem; color: #1436b0; font: inherit; padding: .22rem .55rem; min-height: 28px; cursor: pointer; }
.iv-fact-share button:focus-visible { outline: 2px solid #192bb8; outline-offset: 2px; }
@media (min-width: 961px) {
    .iv-hero { min-height: 282px; grid-template-columns: 1fr 1fr; }
    .iv-hero > img { position: absolute; inset: .45rem .45rem .45rem auto; width: calc(50% - .5rem); height: calc(100% - .9rem); min-height: 0; }
    .iv-hero-copy { position: relative; z-index: 1; }
    .iv-hero::before { z-index: 1; }
    .iv-side { grid-template-rows: minmax(0, 1fr) minmax(0, 1.1fr); }
    .iv-side .iv-panel { padding: .68rem .8rem; }
    .iv-side .iv-panel h2 { margin-bottom: .4rem; }
    .iv-side .iv-panel p { margin-bottom: .35rem; }
    .iv-side .iv-quiz-date { display: none; }
    .iv-entertainment .iv-quiz { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: .3rem .6rem; align-content: start; }
    .iv-entertainment .iv-quiz-image, .iv-entertainment .iv-myth-panel .iv-quiz::before { grid-area: 1 / 2 / span 3 / 3; height: 8.4rem; margin: 0; }
    .iv-entertainment .iv-question, .iv-entertainment .iv-options, .iv-entertainment .iv-result { grid-column: 1; }
    .iv-entertainment .iv-options button { padding: .32rem .42rem; font-size: .76rem; }
    .iv-compare-panel .iv-comparison { display: inline-grid; width: 56%; height: 8.4rem; margin-right: 3%; vertical-align: top; float: left; }
    .iv-compare-panel label { display: grid; font-size: .78rem; }
    .iv-compare-panel input { width: 100%; }
    .iv-compare-panel::after { content: ""; display: block; clear: both; }
}
.iv-skip-link { position: absolute; z-index: 1000; left: .75rem; top: .75rem; transform: translateY(-200%); color: #fff; background: var(--iv-blue); padding: .6rem .8rem; }
.iv-skip-link:focus { transform: none; }
.ptj-site .ptj-search button { background: var(--iv-blue) !important; color: #fff !important; }
.ptj-site.ptj-front .ptj-nav a:first-child:not([aria-current]) { color: inherit; }
.ptj-site.ptj-front .ptj-nav a:first-child:not([aria-current]):after { display: none; }
.ptj-site .ptj-nav a[aria-current=page]:after { background: var(--iv-blue); }
