/*
 * If you go: practical notes at the end of a story, in the site's own colours.
 * A story that has the block loads this; so does the editor, whose preview
 * lends the card the admin's colours under the site's names (admin.css).
 */
:is(.note-body, .preview) .iyg {
  --iyg-accent: var(--accent-ink);
  --iyg-accent-text: color-mix(in srgb, var(--accent-ink) 72%, var(--heading)); /* small labels: 4.5:1 on any scheme */
  --iyg-line: color-mix(in srgb, var(--heading) 13%, transparent);
  --iyg-plate: var(--page);
  display: flex; flex-direction: column; gap: 28px; margin: 2.5em 0 0; padding: clamp(20px, 5vw, 40px);
  border: 1px solid var(--iyg-line); border-radius: 20px; background: var(--tile); color: var(--heading); font-size: 16px; line-height: 1.45;
}
:is(.note-body, .preview) .iyg p { margin: 0; }
:is(.note-body, .preview) .iyg h2, :is(.note-body, .preview) .iyg h3 { margin: 0; letter-spacing: 0; }
.iyg .icon { flex: none; width: 18px; height: 18px; }
.iyg-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px; }
.iyg-heading { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.iyg-kicker { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--iyg-accent-text); }
:is(.note-body, .preview) .iyg .iyg-title { font-size: clamp(28px, 4.5vw, 34px); line-height: 1.15; letter-spacing: -.02em; font-weight: 700; color: var(--heading); }
.iyg-where { display: flex; align-items: center; gap: 8px; font-size: 17px; line-height: 1.35; font-weight: 500; }
.iyg-visited { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 12px; border-radius: 999px;
  background: var(--iyg-plate); border: 1px solid var(--iyg-line); font-size: 13px; line-height: 1.2; color: var(--muted); }
.iyg-visited .icon, .iyg-fact dt .icon, .iyg-label .icon { width: 16px; height: 16px; }
.iyg-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 0; }
.iyg-facts-stack { grid-template-columns: minmax(0, 1fr); }
.iyg-fact { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; border-radius: 14px; background: var(--iyg-plate); border: 1px solid var(--iyg-line); }
.iyg-fact dt, :is(.note-body, .preview) .iyg .iyg-label { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 12px; line-height: 16px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.iyg-fact dd { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.iyg-value { font-size: 16px; line-height: 1.45; font-weight: 500; color: var(--heading); }
.iyg-sub { font-size: 13px; line-height: 18px; color: var(--muted); }
.iyg-route { display: flex; flex-direction: column; gap: 14px; }
:is(.note-body, .preview) .iyg-stops { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 8px; margin: 0; padding: 0; list-style: none; }
.iyg-stops li { display: flex; align-items: center; gap: 8px; margin: 0; }
.iyg-stops > li > .icon { width: 16px; height: 16px; color: var(--muted); }
.iyg-stop { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 14px 4px 6px; border-radius: 999px;
  background: var(--iyg-plate); border: 1px solid var(--iyg-line); font-size: 15px; line-height: 1.3; font-weight: 500; }
.iyg-num { display: inline-grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--iyg-accent); color: var(--page); font-size: 13px; font-weight: 600; }
.iyg-note { font-size: 14px; line-height: 20px; color: var(--muted); }
.iyg-line { display: flex; gap: 14px; align-items: flex-start; }
.iyg-badge { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--iyg-plate); border: 1px solid var(--iyg-line); }
:is(.note-body, .preview) .iyg .iyg-line-title { margin: 0 0 4px; font-size: 15px; line-height: 20px; font-weight: 600; color: var(--heading); }
.iyg-line p { font-size: 16px; line-height: 1.5; color: var(--text); }
.iyg-tip { display: flex; gap: 16px; align-items: flex-start; padding: 22px 24px; border-radius: 16px; background: color-mix(in srgb, var(--iyg-accent) 8%, var(--page)); }
.iyg-bulb { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--iyg-accent); color: var(--page); }
.iyg-bulb .icon { width: 20px; height: 20px; }
.iyg-tip > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.iyg-tip-text { font-family: ui-serif, "New York", "Iowan Old Style", Georgia, serif; font-size: 21px; line-height: 1.4; color: var(--heading); }
.iyg-skip { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: var(--text); }
.iyg-skip .icon { margin-top: 2px; color: var(--muted); }
.iyg-skip strong { font-weight: 600; color: var(--heading); }
.iyg-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 24px; border-top: 1px solid var(--iyg-line); }
:is(.note-body, .preview) .iyg .iyg-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px;
  background: var(--iyg-plate); border: 1px solid color-mix(in srgb, var(--heading) 24%, transparent); color: var(--heading);
  font-size: 15px; font-weight: 500; line-height: 1.2; text-decoration: none; }
:is(.note-body, .preview) .iyg .iyg-btn:hover { color: var(--heading); border-color: color-mix(in srgb, var(--heading) 45%, transparent); }
:is(.note-body, .preview) .iyg .iyg-btn-main, :is(.note-body, .preview) .iyg .iyg-btn-main:hover { background: var(--iyg-accent); border-color: var(--iyg-accent); color: var(--page); font-weight: 600; }
:is(.note-body, .preview) .iyg .iyg-btn-main:hover { filter: brightness(1.08); }
:is(.note-body, .preview) .iyg .iyg-btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--iyg-accent) 60%, transparent); outline-offset: 2px; }
.iyg-btn .icon { width: 18px; height: 18px; }
@media (max-width: 640px) {
  .iyg-tip { padding: 18px; gap: 14px; }
  .iyg-tip-text { font-size: 19px; }
