/* v0.35.0: grouped research tools, the Today line, word explanations, plain-words summaries and number sources. */

.research-tools>.research-tool-groups{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px;justify-content:stretch;text-align:left}
.research-tool-groups section{display:flex;flex-direction:column;gap:6px;padding:10px;border:1px solid var(--line);border-radius:12px;background:var(--surface,#fff)}
.research-tool-groups h3{margin:0 0 2px;font-size:11px;letter-spacing:.5px;text-transform:uppercase;color:var(--muted,#5b6b66)}
.research-tool-groups a{justify-content:flex-start}
html[data-theme="dark"] .research-tool-groups section{background:#192a31}

/* Home: one plain sentence first. */
.today-line{margin:0 0 12px;padding:12px 16px;border-radius:14px;background:var(--surface,#fff);border:1px solid var(--line);font-size:16px;font-weight:600;line-height:1.4}
.today-line a{margin-left:6px;font-weight:600;white-space:nowrap}

/* Tap or hover a money word to see what it means. */
.term{position:relative;border-bottom:1px dotted currentColor;cursor:help;outline-offset:2px}
.term-tip{display:none;position:absolute;left:0;top:calc(100% + 6px);z-index:30;width:min(280px,78vw);padding:9px 11px;border-radius:10px;background:#1f3a33;color:#fff;font-size:13px;font-weight:400;line-height:1.4;letter-spacing:0;text-transform:none;white-space:normal;box-shadow:0 6px 20px rgba(0,0,0,.18)}
.term .term-tip{display:none!important}
.term:hover .term-tip,.term:focus .term-tip,.term:focus-within .term-tip{display:block!important}
@media(max-width:700px){.term:hover .term-tip,.term:focus .term-tip,.term:focus-within .term-tip{position:fixed;left:16px;right:16px;top:auto;bottom:96px;width:auto;font-size:14px}}
.word-list{display:grid;gap:12px;margin:0}.word-list dt{font-weight:700}.word-list dd{margin:2px 0 0}

/* House report: the plain-words summary leads. */
.plain-words{margin:0 0 14px;padding:16px 18px;border-radius:16px;border:1px solid var(--line);border-left:5px solid var(--green,#2f7a59);background:var(--surface,#fff)}
.plain-words h2{margin:0 0 6px;font-size:15px}
.plain-words p{margin:0;font-size:16px;line-height:1.5}
.plain-words .plain-verdict{margin-top:8px;font-size:14px}

/* Where a number comes from. */
.source{display:block;margin-top:2px;font-size:10.5px;font-style:normal;letter-spacing:.2px;color:var(--muted,#5b6b66)}
.source::before{content:'';display:inline-block;width:7px;height:7px;margin-right:5px;border-radius:50%;vertical-align:1px;background:currentColor}
.source-advert::before{background:#2f7a59}.source-estimate::before{background:#c08a1e}.source-settings::before{background:#5a6fb0}
.advert-refurb h3 .source{display:inline;margin-left:8px}

/* Area check and decisions. */
.area-facts,.area-decisions,.likely-drop ul,.your-decisions ul{margin:6px 0 10px;padding-left:18px;line-height:1.5}
.decision-archived strong{color:#a33a2c}.decision-kept strong{color:#2f7a59}
.area-learned{margin:0 0 8px;padding:8px 10px;border-radius:10px;background:#fbf2e2}
.advert-too-dear{margin:6px 0;padding:8px 10px;border-radius:10px;background:#fbe9e6}

html[data-theme="dark"] :is(.today-line,.plain-words){background:#192a31;color:var(--ink)}
html[data-theme="dark"] :is(.area-learned,.advert-too-dear){background:#2a2f25;color:var(--ink)}
@media (prefers-color-scheme: dark){html:not([data-theme="light"]) :is(.today-line,.plain-words){background:#192a31}}

/* v0.36.0: the "Share report (PDF)" button near the top of the house report. */
.report-share{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin:0 0 16px}
.report-share .button{margin:0}
.report-share small{color:var(--muted,#5b6b66);font-size:12px;flex:1 1 220px;min-width:0}
@media print{.report-share{display:none}}
