/* Intentionally scoped: no global theme styles are changed. */
.ivd-puzzle,.ivd-hub,.ivd-archive{--ivd-ink:#122b3a;--ivd-muted:#546570;--ivd-teal:#136e73;--ivd-line:#e1e8e8;--ivd-bg:#f7faf9;color:var(--ivd-ink);font:inherit;max-width:100%;margin:1.5rem auto;line-height:1.6}
.ivd-puzzle *, .ivd-hub *, .ivd-archive *{box-sizing:border-box}
.ivd-puzzle-head,.ivd-hub>header{padding:clamp(1.25rem,4vw,2.3rem);background:linear-gradient(125deg,#f4f9f7,#fefcf7);border:1px solid var(--ivd-line);border-radius:18px}
.ivd-puzzle h2,.ivd-hub h2,.ivd-archive h2{font-size:clamp(1.45rem,3vw,2.05rem);line-height:1.25;color:var(--ivd-ink);margin:.5rem 0 1rem}
.ivd-puzzle h3,.ivd-hub h3{font-size:1.18rem;line-height:1.35;margin:1.2rem 0 .8rem;color:var(--ivd-ink)}
.ivd-eyebrow{font-size:.76rem;letter-spacing:.11em;text-transform:uppercase;font-weight:750;color:var(--ivd-teal)}
.ivd-meta,.ivd-editor-note,.ivd-disclaimer{color:var(--ivd-muted);font-size:.9rem}
.ivd-intro{padding:.65rem 1.25rem}
.ivd-hints,.ivd-connection-grid,.ivd-final,.ivd-commentary{margin:1.25rem 0}
.ivd-reveal{border:1px solid var(--ivd-line);border-radius:12px;margin:.65rem 0;background:white;overflow:hidden}
.ivd-reveal>summary{cursor:pointer;list-style:none;padding:1rem 1.1rem;min-height:48px;font-weight:700;display:flex;gap:1rem;align-items:center;justify-content:space-between;color:var(--ivd-ink)}
.ivd-reveal>summary::-webkit-details-marker{display:none}
.ivd-reveal>summary::after{content:'+';font-size:1.3rem;color:var(--ivd-teal);font-weight:500}
.ivd-reveal[open]>summary::after{content:'−'}
.ivd-reveal>summary:focus-visible,.ivd-hub a:focus-visible,.ivd-crosslinks a:focus-visible{outline:3px solid #0c929c;outline-offset:3px}
.ivd-reveal[open]>summary{background:var(--ivd-bg);border-bottom:1px solid var(--ivd-line)}
.ivd-reveal-body{padding:1rem 1.1rem;overflow-wrap:anywhere}
.ivd-reveal-body p:first-child{margin-top:0}.ivd-reveal-body p:last-child{margin-bottom:0}
.ivd-answer{border-color:#eccf92}.ivd-answer>summary{color:#704d00;background:#fffbf1}
.ivd-final-answer{font-size:1.55rem;font-weight:800;letter-spacing:.055em}
.ivd-connection-grid .ivd-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem}
.ivd-group{border:1px solid var(--ivd-line);border-radius:12px;padding:.85rem;background:var(--ivd-bg);min-width:0}
.ivd-group h4{margin:0 0 .6rem;font-size:1rem;text-transform:capitalize}
.ivd-group.ivd-yellow{border-top:4px solid #f1bf44}.ivd-group.ivd-green{border-top:4px solid #61a36b}.ivd-group.ivd-blue{border-top:4px solid #6b97cc}.ivd-group.ivd-purple{border-top:4px solid #9f7ab7}
.ivd-crosslinks{padding:1.15rem;border-top:1px solid var(--ivd-line);margin-top:2rem}
.ivd-crosslinks>div{display:flex;flex-wrap:wrap;gap:.55rem;margin-top:.8rem}
.ivd-crosslinks a,.ivd-hub-card a{display:inline-block;color:var(--ivd-teal);font-weight:700;text-decoration:none;border:1px solid var(--ivd-line);padding:.55rem .8rem;border-radius:8px;background:#fff}
.ivd-crosslinks a:hover,.ivd-hub-card a:hover{background:#e9f6f4}
.ivd-hub-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin-top:1.15rem}
.ivd-hub-card{border:1px solid var(--ivd-line);border-radius:14px;padding:1.15rem;background:white;min-width:0;box-shadow:0 3px 13px rgba(25,48,62,.04)}
.ivd-hub-card p{color:var(--ivd-muted);font-size:.94rem;min-height:3.25em}
.ivd-archive-list{list-style:none;padding:0;margin:1rem 0}
.ivd-archive-list li{border-bottom:1px solid var(--ivd-line);padding:.7rem .4rem}
.ivd-archive-list a{color:var(--ivd-teal)}
.ivd-empty{padding:1.5rem;background:var(--ivd-bg);border:1px dashed var(--ivd-line);border-radius:12px}
@media(max-width:730px){.ivd-hub-grid{grid-template-columns:1fr}.ivd-connection-grid .ivd-groups{grid-template-columns:1fr}.ivd-puzzle-head,.ivd-hub>header{padding:1.1rem}.ivd-reveal>summary{padding:.85rem}}

/* v0.3: readable original evergreen guides below the interactive daily puzzle */
.ivd-puzzle-guide{max-width:76ch;margin:2rem auto;padding:1rem 0;border-top:1px solid rgba(0,0,0,.13);line-height:1.75}.ivd-puzzle-guide h2{font-size:clamp(1.35rem,2vw,1.75rem);margin:1.25rem 0 .6rem}.ivd-puzzle-guide h3{font-size:1.125rem;margin:1.5rem 0 .4rem}.ivd-puzzle-guide p{margin:.5rem 0 1rem}

/* v0.4 — original, puzzle-specific analysis and optional FAQs */
.ivd-daily-analysis{max-width:76ch;margin:1.4rem 0;padding:1.05rem 1.25rem;background:#f7faf9;border:1px solid var(--ivd-line,#e1e8e8);border-radius:12px;line-height:1.75}
.ivd-daily-analysis h3{margin-top:.15rem}.ivd-daily-analysis p:last-child{margin-bottom:0}
.ivd-daily-faqs{max-width:76ch;margin:1.5rem 0}.ivd-daily-faqs h3{margin-bottom:.8rem}.ivd-daily-faq{background:#fff}
.ivd-puzzle-guide{overflow-wrap:anywhere}.ivd-puzzle-guide ul{padding-left:1.35rem}.ivd-puzzle-guide li{margin-bottom:.45rem}
.ivd-yesterday{margin:1.3rem 0;padding:.8rem 1rem;background:var(--ivd-bg,#f7faf9);border-radius:8px}.ivd-yesterday a{color:var(--ivd-teal,#136e73);font-weight:700}

/* v0.6.2 — Automatically preserved previous-edition archive cards. */
.ivd-history{--ivd-history-ink:#143340;--ivd-history-line:#dce7e9;--ivd-history-accent:#176c70;color:var(--ivd-history-ink);margin:clamp(28px,5vw,54px) auto 24px;max-width:100%;line-height:1.65}
.ivd-history *{box-sizing:border-box}
.ivd-history-heading{border-top:1px solid var(--ivd-history-line);padding-top:clamp(19px,3vw,26px);margin-bottom:20px}
.ivd-history-heading .ivd-eyebrow{font-size:.76rem;letter-spacing:.11em;font-weight:750;text-transform:uppercase;color:var(--ivd-history-accent)}
.ivd-history h2{font-size:clamp(1.4rem,2.7vw,1.9rem);line-height:1.3;margin:.25rem 0 .5rem;color:var(--ivd-history-ink)}
.ivd-history-heading p{color:#5c6f77;max-width:72ch;font-size:1rem;margin:.45rem 0 0}
.ivd-history-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.ivd-history-card{display:flex;flex-direction:column;min-width:0;background:#fff;border:1px solid var(--ivd-history-line);border-radius:16px;padding:clamp(16px,2vw,23px);box-shadow:0 5px 20px rgba(17,51,65,.045);transition:transform .15s ease,border-color .15s ease}
.ivd-history-card:hover{border-color:#94b8bd;transform:translateY(-2px)}
.ivd-history-card-meta{display:flex;flex-wrap:wrap;align-items:center;gap:5px 10px;color:#54707c;font-size:.78rem;font-weight:700}
.ivd-history-card-meta span{color:#6d5e43;background:#faf5e9;padding:3px 9px;border-radius:50px}
.ivd-history-card h3{font-family:inherit;color:var(--ivd-history-ink);font-size:1.12rem;line-height:1.35;margin:13px 0 10px;font-weight:750}
.ivd-history-card h3 a{color:inherit;text-decoration:none}
.ivd-history-card h3 a:hover,.ivd-history-card h3 a:focus-visible{text-decoration:underline}
.ivd-history-card p{color:#526972;font-size:.92rem;line-height:1.6;flex:1;margin:0 0 15px}
.ivd-history-read{display:inline-flex;gap:6px;align-items:center;align-self:flex-start;text-decoration:none;color:var(--ivd-history-accent);font-size:.9rem;font-weight:750;padding:6px 0}
.ivd-history-read:hover,.ivd-history-read:focus-visible{text-decoration:underline}
.ivd-history a:focus-visible{outline:3px solid #268c93;outline-offset:3px;border-radius:3px}
.ivd-history-pagination{display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between;gap:10px;margin-top:18px}
.ivd-history-pagination a{display:inline-flex;padding:9px 13px;border:1px solid var(--ivd-history-line);border-radius:10px;background:#f6faf9;text-decoration:none;color:var(--ivd-history-accent);font-weight:700}
.ivd-history-pagination span,.ivd-history-empty{color:#5d737b;font-size:.92rem}
.ivd-guide-expansion{margin-top:2.1rem;padding-top:.75rem;border-top:1px solid #e1e8e8}
.ivd-guide-expansion h2{font-size:clamp(1.4rem,2.6vw,1.85rem);line-height:1.35}
.ivd-guide-expansion h3{font-size:1.13rem;line-height:1.42;margin:1.7rem 0 .55rem}
.ivd-guide-expansion p{margin:.6rem 0 1.05rem;line-height:1.8}
.ivd-guide-expansion a{color:#176c70;text-decoration:underline;text-underline-offset:2px}
@media(max-width:860px){.ivd-history-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.ivd-history-grid{grid-template-columns:1fr;gap:12px}.ivd-history-card{padding:17px}.ivd-history{margin-top:27px}.ivd-history-heading{padding-top:20px}.ivd-history-pagination{justify-content:center}.ivd-guide-expansion{margin-top:1.6rem}}
