/* Rain Hair Studio — shared styles. Loaded by every page under /cece/rainhairstudio/. */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --paper: #fafcfd;
  --card: #ffffff;
  --ink: #1c2a33;
  --ink-soft: #3d505b;
  --muted: #6d8392;
  --line: #dfe7ec;
  --rain: #5b7d8b;
  --rain-deep: #3f5d6b;
  --mist: #9eb5c4;
  --rain-soft: #c9d8e1;
  --cloud: #eaf0f4;
  --gold: #FFB612;
  --sage: #8a9a82;
  --rose: #c98a93;
  --owner: #b87a52;
  --warn: #dc2626;
}
html, body { background: var(--paper); color: var(--ink); }
body { font-family: 'Helvetica Neue', sans-serif; padding: 1rem; max-width: 940px; margin: 0 auto; line-height: 1.55; font-size: 15px; padding-bottom: 4rem; }

header.rhs { background: linear-gradient(135deg, var(--rain-deep) 0%, var(--mist) 100%); color: #fff; padding: 1.1rem 1rem; margin: -1rem -1rem 1.1rem; border-bottom: 3px solid var(--rain-soft); }
header.rhs .breadcrumb { font-size: 0.78rem; margin-bottom: 0.4rem; }
header.rhs .breadcrumb a { color: rgba(255,255,255,0.92); text-decoration: none; font-weight: 600; }
header.rhs h1 { color: #fff; font-size: 1.5rem; line-height: 1.18; font-family: 'Fraunces', Georgia, serif; font-weight: 500; }
header.rhs .sub { font-size: 0.88rem; opacity: 0.93; margin-top: 0.3rem; }
header.rhs .llc { font-size: 0.72rem; opacity: 0.78; margin-top: 0.15rem; letter-spacing: 0.04em; }
header.rhs .role-badge { display: inline-block; background: rgba(255,255,255,0.22); color: #fff; padding: 0.15rem 0.55rem; border-radius: 999px; font-size: 0.7rem; letter-spacing: 0.05em; text-transform: uppercase; font-weight: 700; margin-left: 0.5rem; vertical-align: middle; }
header.rhs .role-badge.owner { background: rgba(255,182,18,0.95); color: var(--rain-deep); }
header.rhs .role-badge.viewer { background: rgba(255,255,255,0.18); }

nav.tabs { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-top: 0.75rem; }
nav.tabs a { background: rgba(255,255,255,0.18); color: #fff; padding: 0.32rem 0.7rem; border-radius: 5px; text-decoration: none; font-size: 0.78rem; font-weight: 600; }
nav.tabs a.active { background: #fff; color: var(--rain-deep); }
nav.tabs a.owner-only { border: 1px dashed rgba(255,255,255,0.55); }

.scaffold-note { background: linear-gradient(90deg, rgba(91,125,139,0.10), rgba(91,125,139,0.03)); border: 1px dashed var(--rain); border-radius: 10px; padding: 0.8rem 1rem; margin-bottom: 1rem; font-size: 0.86rem; color: var(--ink-soft); }
.scaffold-note strong { color: var(--rain-deep); }

.grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 720px) { .grid.two { grid-template-columns: 1fr 1fr; } .grid.three { grid-template-columns: 1fr 1fr 1fr; } }

.section { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem; }
.section h2 { font-family: 'Fraunces', Georgia, serif; font-weight: 500; font-size: 1.1rem; color: var(--ink); margin-bottom: 0.5rem; padding-bottom: 0.35rem; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.section h2 .badge { font-size: 0.66rem; background: var(--cloud); color: var(--rain-deep); padding: 0.12rem 0.5rem; border-radius: 999px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-family: 'Helvetica Neue', sans-serif; }
.section .placeholder { color: var(--muted); font-style: italic; font-size: 0.88rem; padding: 0.35rem 0; }

.section ul, .section ol { list-style: none; padding: 0; }
.section li { padding: 0.4rem 0; border-top: 1px solid var(--line); font-size: 0.92rem; color: var(--ink-soft); display: flex; align-items: flex-start; gap: 0.55rem; }
.section li:first-child { border-top: none; padding-top: 0.15rem; }
.section li .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rain-soft); margin-top: 0.45rem; flex-shrink: 0; }

.section a { color: var(--rain-deep); font-weight: 600; text-decoration: none; }
.section a:hover { text-decoration: underline; }

.cta-row { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.6rem; }
.cta-row a, .cta-row button { background: var(--rain); color: #fff; padding: 0.4rem 0.75rem; border-radius: 6px; font-size: 0.84rem; font-weight: 600; border: none; cursor: pointer; font-family: inherit; text-decoration: none; }
.cta-row a.outline, .cta-row button.outline { background: transparent; color: var(--rain-deep); border: 1px solid var(--rain); }

.about { background: var(--cloud); border-left: 3px solid var(--rain); border-radius: 0 8px 8px 0; padding: 0.8rem 1rem; margin-bottom: 1rem; font-size: 0.88rem; color: var(--ink-soft); }
.about strong { color: var(--rain-deep); }

.role-gated { display: none; }
body[data-role="owner"] .owner-show { display: block; }
body[data-role="member"] .member-show { display: block; }
body[data-role="viewer"] .viewer-show { display: block; }
body[data-role="owner"] .non-owner-hide { display: none; }

.viewer-banner { background: #fff8e6; border-left: 3px solid var(--gold); padding: 0.55rem 0.85rem; border-radius: 0 8px 8px 0; font-size: 0.84rem; color: var(--ink-soft); margin-bottom: 1rem; display: none; }
body[data-role="viewer"] .viewer-banner { display: block; }
body[data-role="viewer"] .write-control { opacity: 0.5; pointer-events: none; }

.meta-row { margin-top: 1.3rem; padding-top: 0.7rem; border-top: 1px solid var(--line); font-size: 0.78rem; color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.4rem; }

.empty-card { background: var(--cloud); border: 1px dashed var(--rain-soft); border-radius: 10px; padding: 1.1rem 1.2rem; text-align: center; color: var(--ink-soft); font-size: 0.9rem; }
.empty-card strong { color: var(--rain-deep); display: block; margin-bottom: 0.3rem; }

.member-card { display: flex; align-items: center; gap: 0.7rem; padding: 0.5rem 0.7rem; background: var(--cloud); border-radius: 8px; margin-bottom: 0.4rem; font-size: 0.9rem; }
.member-card .avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--rain); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; flex-shrink: 0; }
.member-card .name { font-weight: 700; color: var(--ink); }
.member-card .role { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; margin-left: auto; }
.member-card .role.owner { color: var(--owner); font-weight: 700; }
