/* Cloud Notes demo. Builds on /assets/site.css and uses its colour tokens. */

.demo-page .hero { align-items: start; }
.demo-steps { margin-top: 32px; }
.demo-steps .step-title { margin-top: 4px; }

/* The notes card: one block per state (off, out, in), plus a shared message line. */
.notes { padding: 0; overflow: hidden; min-height: 180px; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.notes [hidden] { display: none !important; }
.notes-pad { padding: 28px; }
.notes .card-title { margin-top: 0; }
.notes-google { margin-top: 22px; min-height: 44px; }

.notes-in { display: flex; flex-direction: column; flex: 1; }
.notes-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.notes-who { font-size: 14px; color: var(--muted); min-width: 0; overflow-wrap: anywhere; }
.notes-who strong { color: var(--ink); font-weight: 500; }
.notes textarea { display: block; flex: 1; width: 100%; min-height: 220px; border: 0; outline: none; resize: vertical; padding: 16px; font: 400 15px/1.65 var(--sans); color: var(--ink); background: var(--surface); }
.notes textarea::placeholder { color: var(--subtle); }
.notes textarea:focus-visible { box-shadow: inset 0 0 0 2px var(--accent-line); }
.notes-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--bg); }
.notes-delete { margin-left: auto; font: 500 14px var(--sans); color: var(--muted); background: none; border: 0; padding: 6px 2px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.notes-delete:hover { color: var(--err); }
.notes button:disabled, .notes textarea:disabled { opacity: .55; cursor: default; }

.notes-msg { margin: 0; padding: 12px 16px; font-size: 14px; line-height: 1.55; color: var(--muted); border-top: 1px solid var(--line-soft); }
.notes-msg:empty { display: none; }
.notes-msg.err { color: var(--err); background: var(--err-bg); }

.sub-title.after-list { margin-top: 32px; }
.cta-links { margin: 14px 0 0; font-size: 14px; color: var(--dark-muted); }
.cta-links a { color: #fff; }
.cta-links a:hover { color: var(--accent-line); }

/* Links in running text: underline, not colour alone. */
.demo-page p a, .demo-page li a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
