/* TRELLAN: the home and sign-in screens. Reports 258, 259.

   Page-specific rules for this area only, after trellan.css and
   trellan-shell.css. Scope every rule to the page (its own class or
   `.t-<kind>` wrapper); do not restyle shared components here.
   See planning/trellan-screen-guide.md.

   Boards: home-*, m-home-* in ~/adealia/design/trellan-canvas/project/. */

/* ── 1. The home: one full-width photo carousel (decision 4) ─────────── */

.rp.of-home--carousel { align-items: stretch; gap: 28px; padding-top: 40px; }
.of-home--carousel > * { max-width: 1120px; margin-inline: auto; }

/* The board's top bar keeps its ground and its search on the home too. */
.shell-top.shell-top--home { background: var(--card-bg); border-bottom: 1px solid var(--hairline); }
.shell-top.shell-top--home .topsearch { visibility: visible; }

.of-home--carousel .hc {
  height: auto; min-height: 420px; border-radius: 0;
  background: var(--charcoal);
  display: flex; align-items: flex-end;
}
/* The darkened photo: dark at the words, clear to the right. */
.of-home--carousel .hc__shade {
  background: linear-gradient(90deg, rgba(28,39,51,.78) 0%, rgba(28,39,51,.45) 55%, rgba(28,39,51,.12) 85%);
}
.of-home--carousel .hc__body {
  height: auto; width: 100%; max-width: 736px;
  align-items: stretch; justify-content: flex-end; text-align: left;
  gap: 18px; padding: 56px 48px 40px;
}
.hc__eyebrow {
  margin: 0; color: var(--card-bg); opacity: .9;
  font-family: var(--font-display); font-weight: 500; font-size: 11px;
  letter-spacing: 2.4px; text-transform: uppercase;
}
.hc__hello, .hc__hello em {
  font-family: var(--font-display); font-weight: 300; font-style: normal;
  letter-spacing: 2px; text-transform: uppercase;
}
.of-home--carousel .hc__hello { font-size: 44px; line-height: 1.1; text-shadow: none; overflow-wrap: normal; }
.of-home--carousel .hc__sub { font-size: 17px; color: var(--card-bg); }

/* The ask bar: a square white field and a green arrow that sends. */
.rp.of-home .hc .ui-ask {
  max-width: none; height: 56px; margin-top: 6px; padding: 0;
  gap: 0; border: 1px solid var(--card-bg); border-radius: 0; background: var(--card-bg);
}
.rp.of-home .hc .ui-ask input.hc__input {
  height: 54px; padding: 0 16px !important; font-size: 16px; color: var(--ink);
}
.rp.of-home .hc .ui-ask:focus-within { box-shadow: none; outline: 2px solid var(--leaf); outline-offset: 2px; }
.of-home--carousel .hc__go {
  width: 56px; height: 56px; margin: -1px -1px -1px 0; border-radius: 0;
  background: var(--green); color: var(--on-green, var(--ink));
}
.of-home--carousel .hc__go:hover { background: var(--charcoal); color: var(--card-bg); }

/* The photo's words and the arrows, bottom right. */
.hc__cap {
  position: absolute; z-index: 3; right: 48px; bottom: 100px;
  max-width: 40%; text-align: right;
  font-size: 12px; color: var(--card-bg); opacity: .85;
}
.hc__slide:not(.is-on) .hc__cap { visibility: hidden; }
.of-home--carousel .hc__nav {
  left: auto; right: 48px; bottom: 40px; transform: none; gap: 12px;
}
.of-home--carousel .hc__arrow {
  width: 40px; height: 40px; border-radius: 0;
  border: 1px solid rgba(255,255,255,.7); background: transparent; color: var(--card-bg);
}
.of-home--carousel .hc__arrow:hover { background: rgba(255,255,255,.12); }
.of-home--carousel .hc__arrow .ms { font-size: 18px; }
.of-home--carousel .hc__dots { background: transparent; border-radius: 0; padding: 0; gap: 6px; }
.of-home--carousel .hc__dot { width: 8px; height: 4px; border-radius: 0; background: rgba(255,255,255,.45); }
.of-home--carousel .hc__dot.is-on { width: 22px; background: var(--card-bg); }
.of-home--carousel .hc__edit {
  height: 40px; padding: 0 14px; border-radius: 0;
  border: 1px solid rgba(255,255,255,.7); background: transparent; color: var(--card-bg);
  font-family: var(--font-display); font-weight: 500; font-size: 11px;
  letter-spacing: 2px; text-transform: uppercase;
}
.of-home--carousel .hc__edit:hover { background: rgba(255,255,255,.12); color: var(--card-bg); }

/* "What do you need to do?" */
.of-home--carousel .hs-do { gap: 14px; }
.hs-do__title { font-weight: 300; letter-spacing: 2px; color: var(--ink); }
.of-home--carousel .hs-do__title { font-size: 24px; line-height: 1.2; text-transform: uppercase; }
.of-home--carousel .hs-do__row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px;
}
.of-home--carousel .hs-do__btn {
  min-height: 64px; padding: 12px 18px; gap: 14px;
  background: var(--card-bg); border: 1px solid var(--hairline); border-radius: 0; color: var(--ink);
}
.of-home--carousel .hs-do__btn:hover { background: var(--mist); border-color: var(--hairline); }
.of-home--carousel .hs-do__icon { font-size: 22px; color: var(--leaf); }
.of-home--carousel .hs-do__words { flex: 1; line-height: 1.35; }
.of-home--carousel .hs-do__label { font-weight: 700; color: var(--ink); }
.of-home--carousel .hs-do__sub { color: var(--gray); }
.hs-do__chev { flex: none; font-size: 16px; color: var(--edge); }

/* The eight boxes: square, hairline, caps label, a Leaf line icon. */
.of-home--carousel .of-tiles { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.of-home--carousel .of-tile {
  min-height: 160px; padding: 20px 12px; gap: 12px;
  background: var(--card-bg); border: 1px solid var(--hairline); border-radius: 0; box-shadow: none;
  font-family: var(--font-display); font-weight: 500; font-size: 12px;
  letter-spacing: 2px; text-transform: uppercase; color: var(--ink);
}
.of-home--carousel .of-tile:hover { background: var(--mist); border-color: var(--hairline); color: var(--ink); }
.of-home--carousel .of-tile .of-tile__icon { font-size: 30px; color: var(--leaf); }
.of-home--carousel .of-tile__label { overflow-wrap: normal; }

@media (max-width: 759.98px) {
  /* The phone: the photo runs edge to edge under the top bar. */
  .shell-col > .ui-page.of-home--carousel { padding-top: 0; }
  .of-home--carousel > .hc { width: auto; margin-inline: -16px; min-height: 440px; border-radius: 0; }
  .of-home--carousel .hc__shade { background: linear-gradient(180deg, rgba(28,39,51,.35) 0%, rgba(28,39,51,.72) 60%); }
  .of-home--carousel .hc__body { padding: 120px 20px 96px; gap: 14px; }
  .of-home--carousel .hc__hello { font-size: 30px; }
  .of-home--carousel .hc__sub { font-size: 16px; }
  .rp.of-home .hc .ui-ask { height: 52px; padding: 0; }
  .rp.of-home .hc .ui-ask input.hc__input { height: 50px; font-size: 15px; }
  .of-home--carousel .hc__go { width: 52px; height: 52px; }
  .hc__cap { left: 20px; right: auto; bottom: 26px; max-width: 50%; text-align: left; }
  .of-home--carousel .hc__nav { right: 20px; bottom: 18px; }
  .of-home--carousel .hc__arrow { width: 44px; height: 44px; }
  .of-home--carousel .hc__edit { width: 44px; height: 44px; padding: 0; justify-content: center; }
  .of-home--carousel .hs-do__row { gap: 8px; }
  .of-home--carousel .hs-do__title { font-size: 20px; }
  .of-home--carousel .of-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .of-home--carousel .of-tile { min-height: 104px; font-size: 11px; letter-spacing: 1.5px; }
}

/* ── 1b. The assistant (chat/index.html; board home-assistant-chat) ─────
   The board's history column is the rail's "Recent chats" here (shared,
   not changed). Look only: square, hairline, the person's question in
   charcoal on the right, the answer without a box on the left, Send green
   (it sends). */
body.is-chat .welcome-logo--mark { display: flex; justify-content: center; height: auto; margin: 0 0 18px; color: var(--charcoal); }
body.is-chat #welcome { max-width: 760px; }
body.is-chat .greeting-kicker {
  font-family: var(--font-display); font-weight: 500; font-size: 11px;
  letter-spacing: 2px; text-transform: uppercase; color: var(--gray);
}
body.is-chat .welcome-title {
  font-family: var(--font-display); font-weight: 300; font-size: 30px;
  letter-spacing: 2px; text-transform: uppercase; color: var(--ink);
}
body.is-chat .welcome-sub { color: var(--charcoal); }
body.is-chat .chip {
  border: 1px solid var(--hairline); border-radius: 0; background: var(--card-bg);
  color: var(--ink); box-shadow: none; font-size: 14px;
}
body.is-chat .chip:hover { transform: none; background: var(--mist); border-color: var(--hairline); }
body.is-chat .msg.user .bubble {
  background: var(--charcoal); color: var(--card-bg);
  border-radius: 0; box-shadow: none;
}
body.is-chat .msg.assistant .bubble {
  background: transparent; border: 0; border-radius: 0; box-shadow: none;
  padding-inline: 0; color: var(--charcoal);
}
body.is-chat .bubble a, body.is-chat .msg.user .bubble a { color: var(--leaf); }
body.is-chat .msg.user .bubble a { color: var(--card-bg); }
body.is-chat .bubble.err { border-radius: 0; border: 0; border-left: 3px solid var(--alert-dot); padding-inline: 16px; }
body.is-chat #composer { background: var(--card-bg); backdrop-filter: none; border-top: 1px solid var(--hairline); }
body.is-chat #input {
  border: 1px solid var(--edge); border-radius: 0; box-shadow: none; min-height: 56px;
}
body.is-chat #input:focus { border-color: var(--leaf); box-shadow: none; outline: 2px solid var(--leaf); outline-offset: 0; }
body.is-chat #send {
  min-height: 56px; padding: 0 24px; border-radius: 0;
  background: var(--green); color: var(--on-green);
  font-family: var(--font-display); font-weight: 500; font-size: 12px;
  letter-spacing: 2px; text-transform: uppercase;
}
body.is-chat #send:hover:not(:disabled) { background: var(--charcoal); color: var(--card-bg); }
body.is-chat #send:active:not(:disabled) { transform: none; }

/* ── 1c. Coming soon (dashboard/coming_soon.html) ───────────────────── */
[data-coming-soon] { max-width: 520px; margin-inline: auto; padding: 32px 32px 36px; text-align: center; }
[data-coming-soon] .of-error__ico { color: var(--leaf); font-size: 30px; }
[data-coming-soon] .cs-eyebrow {
  margin: 10px 0 0; font-family: var(--font-display); font-weight: 500; font-size: 11px;
  letter-spacing: 2px; text-transform: uppercase; color: var(--gray);
}
[data-coming-soon] .of-error__title {
  font-family: var(--font-display); font-weight: 300; font-size: 30px;
  letter-spacing: 2px; text-transform: uppercase; color: var(--ink);
}
[data-coming-soon] .of-error__actions { justify-content: center; flex-wrap: wrap; }

/* ── 1d. Guide (guide/index.html): topics as a plain list, sentence case,
   the topic on the page ground with no card round it. ─────────────── */
.ofs-guide .of-settings__link, .ofs-prefs .of-settings__link {
  font-family: var(--font-sans); font-weight: 400; font-size: 14px;
  letter-spacing: 0; text-transform: none; color: var(--charcoal);
}
.ofs-guide .of-settings__link[aria-current], .ofs-guide .of-settings__link.is-on { color: var(--ink); }
.ofs-guide .of-settings__chev, .ofs-guide .of-settings__link > .ms:first-child,
.ofs-prefs .of-settings__chev, .ofs-prefs .of-settings__link > .ms:first-child { display: none; }

/* What reaches you (notifications/preferences.html): sections on the page
   ground, "How we reach you" on Mist, an ink rule under each table head. */
.ofs-prefs .of-section { border: 0; background: transparent; padding-inline: 0; }
.ofs-prefs #prefsChannels { background: var(--mist); padding: 16px 20px; }
.ofs-prefs .ofs-pref--head {
  border-bottom: 1px solid var(--charcoal);
  font-family: var(--font-display); font-weight: 500; font-size: 10px;
  letter-spacing: 2px; text-transform: uppercase; color: var(--charcoal);
}
.ofs-prefs .ofs-pref { border-bottom: 1px solid var(--hairline); }
@media (max-width: 759.98px) {
  /* "Phone notification" was cut mid-word: the head says "Phone". */
  .ofs-prefs .ofs-pref--head .ofs-pref__more { display: none; }
}
.ofs-prefs .ofs-pref__title { font-weight: 700; color: var(--ink); }
.ofs-prefs .ofs-pref__when { color: var(--gray); }
.ofs-guide .guide-section { border: 0; background: transparent; padding-top: 0; }
.ofs-guide .guide-body h3 {
  font-family: var(--font-display); font-weight: 500; font-size: 12px;
  letter-spacing: 2px; text-transform: uppercase; color: var(--ink);
}

/* ── 1e. Notifications (notifications/index.html) ───────────────────── */
.notes-page .of-list { border: 0; border-top: 1px solid var(--charcoal); background: transparent; }
.notes-page .note-row { border-bottom: 1px solid var(--hairline); }
.notes-page .note-dot { display: none; }
.notes-page .note-unread { box-shadow: inset 2px 0 0 var(--charcoal); border-left: 0; }
.notes-page .note-row .of-row__title { color: var(--ink); font-weight: 700; text-decoration: none; }
.notes-page .note-when { color: var(--gray); font-size: 13px; }

/* ── 1f. My feedback thread (decision 3) ─────────────────────────────
   The person's message white with a hairline on the left; the Adealia
   team's charcoal with white words, on the right. Scoped to the person's
   own pages; the admin thread is the admin area's. */
.fb-thread-page .fb-thread { display: flex; flex-direction: column; gap: 16px; padding: 0; list-style: none; }
.fb-thread-page .fb-msg { max-width: min(560px, 85%); border-radius: 0; box-shadow: none; padding: 10px 14px; }
.fb-thread-page .fb-msg--user {
  align-self: flex-start; background: var(--card-bg); color: var(--charcoal);
  border: 1px solid var(--hairline);
}
.fb-thread-page .fb-msg--admin {
  align-self: flex-end; background: var(--charcoal); color: var(--card-bg); border: 0;
}
.fb-thread-page .fb-msg__who { font-size: 12px; color: var(--gray); margin: 0 0 4px; }
.fb-thread-page .fb-msg--admin .fb-msg__who { color: var(--card-bg); opacity: .8; }
.fb-thread-page .fb-msg--admin a { color: var(--card-bg); }
.fb-thread-page .fb-reply__bar { justify-content: flex-start; text-align: left; }
.fb-thread-page .ui-field__label, .fb-page .ui-field__label {
  font-family: var(--font-display); font-weight: 500; font-size: 11px;
  letter-spacing: 2px; text-transform: uppercase; color: var(--ink);
}
.fb-thread-page .fb-optional, .fb-page .fb-optional { text-transform: none; letter-spacing: 0; font-family: var(--font-sans); }

.fb-mine .fb-mine__how { max-width: none; }
@media (max-width: 759.98px) {
  .fb-thread-page .fb-reply__bar .ui-btn { width: 100%; }
  .tq-one .tq-act form, .tq-one .tq-act .ui-btn { width: 100%; }
}

/* ── 1g. One task (tasks/one.html; board home-task) ─────────────────── */
.tq-one .tq-kind { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tq-one .tq-due {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px;
  background: var(--warn-bg); color: var(--warn-fg); font-size: 13px;
}
.tq-one .tq-due::before { content: ""; width: 8px; height: 8px; background: var(--warn-dot); }
.tq-one .tq-due.rp-row__due--overdue { background: var(--alert-bg); color: var(--alert-fg); }
.tq-one .tq-due.rp-row__due--overdue::before { background: var(--alert-dot); }
.tq-one .tq-body { color: var(--ink); font-size: 16px; }
.tq-one .tq-act {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--hairline);
}
.tq-one .tq-act form { margin: 0; }
.tq-one .tq-act__note { margin: 0; font-size: 13px; color: var(--gray); }

/* ── 2. The signed-out pages (auth/_shell.html) ──────────────────────── */

body.auth-body { background: var(--mist); }
.auth-body .auth-wrap {
  flex-direction: column; justify-content: flex-start; gap: 16px;
  padding: 66px 16px 40px;
}
.auth-body .auth-card {
  width: 100%; max-width: 420px; box-sizing: border-box;
  padding: 32px 36px; background: var(--card-bg);
  border: 1px solid var(--hairline); border-radius: 0; box-shadow: none;
}
.auth-body .auth-tagline {
  margin: 4px 0 0; padding-bottom: 22px; border-bottom: 1px solid var(--hairline);
  color: var(--gray);
}
.auth-body .auth-title { margin-top: 22px; }
.auth-body .auth-sub { color: var(--gray); }
.auth-body .auth-label {
  font-family: var(--font-display); font-weight: 500; font-size: 11px;
  letter-spacing: 2px; text-transform: uppercase; color: var(--ink);
}
.auth-body .auth-err {
  border: 0; border-left: 3px solid var(--alert-dot); border-radius: 0;
  background: var(--alert-bg); color: var(--alert-fg);
}
.auth-body .auth-ways { display: flex; flex-direction: column; gap: 10px; }
.auth-body .auth-ways .ui-btn { width: 100%; justify-content: center; text-decoration: none; }
.auth-body .auth-ways .ui-btn--primary { color: var(--card-bg); }
.auth-body .auth-ways .ui-btn--primary:hover { color: var(--on-green); }
.auth-body .auth-ways .ui-btn--secondary { color: var(--ink); }
/* The foot sits under the card, small and quiet. */
.auth-body .auth-foot {
  margin: 0; padding: 0; border: 0; text-align: center;
  font-size: 12px; color: var(--gray);
}
@media (max-width: 759.98px) {
  .auth-body .auth-wrap { padding: 20px 16px 32px; }
  .auth-body .auth-card { padding: 28px 20px; }
}
