/* Insights (round two, D23): the page, the Home section and the property block. Colours and type come from the tokens in
   design.css and portal.css; the section head, the who chip, .btn-ink and .link are the shared pieces, so the look rollout
   restyles this with the rest. Nothing here is under 14 px. */

.ins-page { padding-top: 16px; }
@media (min-width: 1024px) { .ins-page { padding-top: 32px; } }
/* Below 1024 px the top bar names the screen and the h1 stays for a screen reader, out of sight. */
.ins-h1 { display: none; margin: 0 0 24px; font: 600 28px/34px var(--font); letter-spacing: -.005em; }
@media (max-width: 1023px) {
  .ins-h1 { display: block; position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (min-width: 1024px) { .ins-h1 { display: block; } }

.ins-list { display: flex; flex-direction: column; gap: 12px; }
.ins-page .ins-list { max-width: 720px; }

.ins-tag { font-size: 14px; line-height: 20px; color: var(--steel); }
.ins-src { margin-left: auto; font-size: 14px; line-height: 20px; color: var(--steel); }
.ins-title { margin: 10px 0 4px; font-size: 17px; line-height: 22px; font-weight: 600; overflow-wrap: anywhere; }
.ins-title:focus { outline: none; }
html.kbd .ins-title:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.ins-body { margin: 0; font-size: 15px; line-height: 22px; }
.ins-basis { margin: 10px 0 0; font-size: 14px; line-height: 20px; color: var(--steel); }
.ins-cap { font-weight: 600; color: var(--ink); }
.ins-jobs { margin: 6px 0 0; padding: 0; list-style: none; font-size: 14px; line-height: 20px; }
.ins-jobs a { display: inline-flex; align-items: center; min-height: 44px; }
.ins-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-top: 12px; }
.ins-acts .btn { min-height: 44px; }
@media (max-width: 480px) { .ins-acts .btn { flex: 1 1 100%; } }
.ins-dismiss, .ins-undo { font-size: 15px; }

/* The status line a dismissed card turns into: the same width as the card, Undo beside the word. */
.ins-gone { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 16px;
  background: var(--mist); border: 1px solid var(--concrete); border-radius: var(--r-card); }
.ins-gone p { margin: 0; font-size: 15px; line-height: 22px; color: var(--steel); }

.ins-note { margin: 24px 0 0; max-width: 720px; font-size: 14px; line-height: 20px; color: var(--steel); }
.ins-page > .ins-note { margin-top: 0; }
.ins-banner { margin: 0 0 var(--sec-gap); max-width: 720px; padding: 14px 16px; background: var(--mist); border-radius: var(--r-card);
  font-size: 15px; line-height: 22px; }
.ins-empty { max-width: 560px; }

/* Home and the property block put a section among others; the slot keeps its gap only once it holds a note. */
.o-insights { margin: 0; }
.ins-slot:not([hidden]) { margin: 0 0 var(--sec-gap); }
.o-insights .ins-note, .ins-slot .ins-note { margin-top: 12px; }

/* The Account page's Insights block: the plain line, the status, and the owner's button under them. */
.ins-switch:not([hidden]) { margin: 0; }
.ins-switch .ins-status { color: var(--ink); font-weight: 600; }

/* ================================================================ look v2 (SPEC 7.16, 7.7, 7.17, 7.18): the page, the Home
   slot, the property slot and Account's switch as rows on hairlines (rule 1); the kind as the type label, New as an ink dot
   and the word, an ordered note's status as a dot and a word (rule 4); the action in ink, Dismiss and Undo as links. */
.v2.v-ins { padding: 8px var(--v-gut) calc(var(--v-tabs) + 32px); max-width: 760px; }
@media (min-width: 1024px) { .v2.v-ins { padding: 28px 48px 80px; } }
.v2.v-ins .ins-h1 { font-size: 28px; line-height: 34px; font-weight: 600; letter-spacing: -.3px; color: var(--v-ink); }
.v2 .ins-list { display: block; gap: 0; border-top: 1px solid var(--v-hair); }
.v2 .v-sec-h + .ins-list, .v2 .sec-h + .ins-list { border-top: 0; }
.v2 .ins-row { padding: 16px 0 14px; border-bottom: 1px solid var(--v-hair); }
.v2 .ins-k { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.v2 .ins-k .v-st { font-size: inherit; line-height: inherit; }
.v2 .ins-tag { color: var(--v-mute); }
.v2 .ins-fresh { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--v-ink); }
.v2 .ins-fresh i { width: 8px; height: 8px; border-radius: 50%; background: var(--v-ink); }
.v2 .ins-title { margin: 4px 0 2px; font-size: 16px; line-height: 22px; font-weight: 600; color: var(--v-ink); }
.v2 .ins-body { font-size: 15px; line-height: 22px; color: var(--v-ink-2); }
.v2 .ins-place { margin-top: 2px; font-size: 14px; line-height: 20px; color: var(--v-mute); }
.v2 .ins-basis { margin-top: 6px; font-size: 14px; line-height: 20px; color: var(--v-mute); }
.v2 .ins-basis > summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; font-weight: 600; color: var(--v-ink); }
.v2 .ins-basis > p { margin: 0 0 4px; }
.v2 .ins-jobs { margin: 0; padding: 0; list-style: none; }
.v2 .ins-job { display: inline-flex; align-items: center; min-height: 44px; color: var(--v-ink); font-weight: 500; text-decoration: underline;
  text-decoration-color: var(--v-hair-2); text-underline-offset: 3px; }
.v2 .ins-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 10px; }
.v2 .ins-src { margin-left: auto; font-size: 14px; line-height: 20px; color: var(--v-mute); }
.v2 .ins-gone { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border: 0;
  border-bottom: 1px solid var(--v-hair); border-radius: 0; background: none; }
.v2 .ins-gone p { margin: 0; font-size: 15px; line-height: 22px; color: var(--v-mute); }
.v2 .ins-note { max-width: 720px; margin-top: 16px; font-size: 14px; line-height: 20px; color: var(--v-mute); }
.v2 .ins-banner { margin: 0 0 16px; padding: 0; background: none; border-radius: 0; font-size: 15px; line-height: 22px; color: var(--v-ink-2); }
.v2 .ins-tabs { display: flex; gap: 20px; margin: 0 0 4px; border-bottom: 1px solid var(--v-hair); }
.v2 .ins-tab { min-height: 44px; padding: 0; border: 0; background: none; font-size: 15px; line-height: 20px; font-weight: 600; color: var(--v-mute);
  box-shadow: inset 0 -2px 0 transparent; }
.v2 .ins-tab[aria-pressed="true"] { color: var(--v-ink); box-shadow: inset 0 -2px 0 var(--v-ink); }
.v2 .ins-n { margin-left: 6px; font-weight: 500; color: var(--v-mute); }
.v2 .ins-tabs + .ins-list { border-top: 0; }
.v2 .ins-empty { max-width: 560px; padding: 0; border: 0; background: none; text-align: left; }
.v2 .ins-empty h2 { font-size: 20px; line-height: 26px; font-weight: 600; }
.v2 .ins-empty p { margin-top: 4px; font-size: 15px; line-height: 22px; color: var(--v-mute); }
.v2 .ins-empty .v-btn { margin-top: 16px; }
.v2 .ins-sw { padding-top: 14px; }
.v2 .ins-switch .ins-status { color: var(--v-ink); font-weight: 600; }
@media (min-width: 1024px) { .v2 .ins-tab, .v2 .ins-basis > summary, .v2 .ins-job { min-height: 36px; } }
.v2 .ins-basis > summary { list-style: none; text-decoration: underline; text-decoration-color: var(--v-hair-2); text-underline-offset: 3px; }
.v2 .ins-basis > summary::-webkit-details-marker { display: none; }
.v2 .ins-tab { min-width: 44px; }
/* review fixes (Opus S9): Undo and Home's head link at 44 px wide below 1024; an empty tab's line; Account's switch as
   a row with the status in ink (the switch itself is ui.switchBtn since slice 1); Based on shows open or closed */
.v2 .ins-undo { min-width: 44px; justify-content: center; }
@media (max-width: 1023px) { .v2 .o-insights .v-sec-link { display: inline-flex; align-items: center; justify-content: flex-end; min-width: 44px; min-height: 44px; } }
.v2 .ins-none { padding: 16px 0; border-bottom: 1px solid var(--v-hair); font-size: 15px; line-height: 22px; color: var(--v-mute); }
.v2 .ins-sw-row { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin-top: 12px;
  padding: 14px 0 15px; border-top: 1px solid var(--v-hair); border-bottom: 1px solid var(--v-hair); }
.v2 .ins-sw-m { min-width: 0; }
.v2.v-lists .ins-switch .ins-status { margin: 0; font-size: 16px; line-height: 22px; font-weight: 600; color: var(--v-ink); }
.v2 .ins-basis > summary::after { content: ""; width: 7px; height: 7px; margin-left: 8px; border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform var(--v-quick, .15s) ease; }
.v2 .ins-basis[open] > summary::after { transform: translateY(2px) rotate(225deg); }
/* Slice 9: the landlord's own cost inside Based on is quiet money, base.css's .v-amount (ui.amount), in ink inside the grey line. */
.v2 .ins-own .v-amount { color: var(--v-ink); }
/* The landlord's quiet block (Home and the rental page): secondary to the page's main list, so a plain heading in the body face with
   no caps and no orange rule, one row shape, no buttons. */
.v2 .ins-quiet { margin: 32px 0 16px; padding-top: 16px; border-top: 1px solid var(--v-hair); }
.v2 .ins-quiet-h { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.v2 .ins-quiet-h h2 { margin: 0; font-family: var(--v-sans); font-size: 16px; line-height: 22px; font-weight: 600; color: var(--v-ink); }
.v2 .ins-quiet-all { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--v-ink);
  text-decoration: underline; text-decoration-color: var(--v-hair-2); text-underline-offset: 3px; }
.v2 .ins-quiet-rows { margin: 0; padding: 0; list-style: none; }
.v2 .ins-quiet-rows a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 8px 0;
  border-bottom: 1px solid var(--v-hair); color: var(--v-ink); text-decoration: none; }
.v2 .ins-quiet-m { display: flex; flex-direction: column; min-width: 0; }
.v2 .ins-quiet-go { flex: none; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--v-ink); text-decoration: underline;
  text-decoration-color: var(--v-hair-2); text-underline-offset: 3px; }
.v2 .ins-quiet-t { font-size: 15px; line-height: 22px; font-weight: 500; }
.v2 .ins-quiet-s { font-size: 14px; line-height: 20px; color: var(--v-mute); }
@media (min-width: 1024px) { .v2 .ins-quiet-all { min-height: 36px; } }
