/* Grace Management Group look: white, serif headlines, red accent, quiet type. Loaded after app.css. */
:root { --ink: #263330; --red: #b0202e; --red-dark: #8f1a26; --text: #4a4a4a; --line: #e6e6e6; --soft: #f7f6f4; }
body { background: #fff; color: var(--text); font-family: 'Quicksand', -apple-system, 'Segoe UI', sans-serif; font-weight: 500; }
h1, h2, h3, .serif { font-family: 'EB Garamond', Georgia, serif; font-weight: 500; color: var(--ink); }
h1 em, h2 em { color: var(--red); font-style: italic; font-weight: 500; }
a { color: var(--red); } a:hover { color: var(--red-dark); }
.kicker, .eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--red); font-weight: 600; }

.btn { border-radius: 2px; height: 42px; letter-spacing: .1em; text-transform: uppercase; font-size: 12.5px; font-weight: 600; }
.btn-primary { background: var(--red); color: #fff; } .btn-primary:hover { background: var(--red-dark); }
.btn:disabled { background: #d8b4b8; }
.btn-secondary { background: #fff; color: var(--ink); border: 1px solid #555; } .btn-secondary:hover { background: var(--soft); }
.btn-text { color: var(--red); letter-spacing: .06em; } .btn-text:hover { background: #fbeeee; }
.card { border-radius: 2px; border-color: var(--line); }

/* Header */
.site-header { height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 32px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 1px 6px rgba(0,0,0,.04); flex-shrink: 0; }
.site-header img { height: 44px; display: block; }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.site-nav a, .site-nav button { color: var(--ink); background: none; border: 0; padding: 0; font: inherit; font-weight: 500; cursor: pointer; text-decoration: none; }
.site-nav a:hover, .site-nav button:hover { color: var(--red); }
.site-nav .who { color: #888; }
#menu { display: none; }

/* Chat layout */
.app-wrap { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
.app-body { flex: 1; display: flex; min-height: 0; }
.side { background: var(--soft); color: var(--text); width: 260px; padding: 18px 14px; border-right: 1px solid var(--line); }
.side .new-chat { background: var(--red); border-radius: 2px; text-transform: uppercase; letter-spacing: .1em; font-size: 12.5px; }
.side .new-chat:hover { background: var(--red-dark); }
.side .hist { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #999; margin: 18px 6px 6px; font-weight: 600; }
.side .convs { margin: 0 -4px; }
.side .conv { color: var(--text); border-radius: 2px; } .side .conv:hover, .side .conv.active { background: #fff; color: var(--ink); box-shadow: inset 2px 0 0 var(--red); }
.side .conv button { color: #aaa; }
.main { background: #fff; }
.brandbar { background: var(--soft); border-bottom: 1px solid var(--line); color: var(--ink); }
.brandbar strong { font-family: 'EB Garamond', serif; font-size: 18px; font-weight: 600; }
.empty { margin-top: 6vh; }
.empty h1 { font-size: clamp(44px, 7vw, 76px); line-height: 1.02; margin: 0 0 22px; letter-spacing: -.01em; }
.empty p { font-size: 17px; color: var(--text); max-width: 520px; margin: 0 auto 30px; line-height: 1.6; }
.brands { gap: 14px; max-width: 760px; }
.brand-card { border-radius: 0; border: 1px solid #555; background: #fff; color: var(--ink); font-family: 'Quicksand', sans-serif; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: 18px 34px; min-width: 190px; box-shadow: none; transition: all .15s; }
.brand-card:hover { background: var(--red); border-color: var(--red); color: #fff; box-shadow: none; }
.msg { font-size: 15.5px; }
.msg.user { background: var(--ink); border-radius: 2px; padding: 11px 16px; }
.msg.bot { background: var(--soft); border: 0; border-left: 3px solid var(--red); border-radius: 2px; color: #333; }
.msg.bot .src { color: #8a8a8a; }
.fb button { border-radius: 2px; } .fb button.on { border-color: var(--red); color: var(--red); background: #fbeeee; }
.composer { border-top: 1px solid var(--line); background: #fff; padding-top: 14px; }
.composer textarea { border-radius: 2px; border-color: #bbb; font-family: 'Quicksand', sans-serif; font-weight: 500; }
.composer textarea:focus { outline: 2px solid #ecc4c8; border-color: var(--red); }
.composer textarea:disabled { background: var(--soft); }
.composer .note { color: #999; }

/* Auth pages */
.auth-brand { background: #fff; color: var(--ink); border-right: 1px solid var(--line); }
.auth-brand .logo { height: 56px; }
.auth-brand h1 { font-size: clamp(46px, 5.5vw, 80px); line-height: 1.02; margin: 0 0 20px; }
.auth-brand p { font-size: 17px; line-height: 1.65; color: var(--text); margin: 0; max-width: 420px; }
.auth-form-side { background: var(--soft); }
.auth-form h2 { font-size: 34px; color: var(--ink); }
.field label { letter-spacing: .08em; text-transform: uppercase; font-size: 11.5px; color: #777; }
.field input, .field select, .field textarea { border-radius: 2px; }
.field input:focus { outline: 2px solid #ecc4c8; border-color: var(--red); }
.error-msg { color: var(--red); }

/* Admin */
.admin-wrap { padding-top: 32px; }
.admin-head h1 { font-size: 40px; margin: 0; }
.tab { border-radius: 2px; letter-spacing: .08em; text-transform: uppercase; font-size: 12.5px; }
.tab.on { background: var(--red); border-color: var(--red); }
.panel h3 { font-size: 24px; }
.tbl th { letter-spacing: .1em; }
.tag { background: #fbeeee; color: var(--red-dark); border-radius: 2px; } .tag.off { background: #efefef; color: #777; } .tag.bad { background: #fdeaea; color: #a11; }
.bar > div { background: var(--red); }
.toast { background: var(--ink); border-radius: 2px; }

.side-backdrop { display: none; }

@media (max-width: 780px) {
  .site-header { height: 60px; padding: 0 16px; } .site-header img { height: 36px; }
  .site-nav { gap: 16px; font-size: 13px; } .site-nav .who { display: none; }
  #menu { display: inline-block; }
  .side { position: fixed; z-index: 20; top: 60px; bottom: 0; left: 0; transform: translateX(-100%); transition: transform .2s; box-shadow: 2px 0 12px rgba(0,0,0,.1); }
  .side.open { transform: none; }
  .side-backdrop { position: fixed; z-index: 19; top: 60px; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.4); }
  .side-backdrop.show { display: block; }
  .auth-wrap { grid-template-columns: 1fr; } .auth-brand { display: none; }
  .auth-form-side { padding: 32px 20px; min-height: 100vh; }
}
.auth-form h2 { font-size: 36px !important; margin-bottom: 8px !important; }

/* Brand pages */
.bp-wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px 70px; }
.bp-hero { padding: 56px 0 30px; text-align: center; }
.bp-hero h1 { font-size: clamp(46px, 7vw, 84px); line-height: 1.02; margin: 10px 0 14px; }
.bp-hero p { font-size: 17px; max-width: 560px; margin: 0 auto 22px; line-height: 1.6; }
.bp-hero .bp-tag { font-family: 'EB Garamond', serif; font-size: 26px; color: var(--red); margin: 0 auto 26px; }
.bp-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.bp-actions .btn { padding: 0 22px; }
.bp-sec-links h2.bp-links-title { font-family: 'Quicksand', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red); border-bottom: 1px solid var(--line); padding-bottom: 10px; margin: 0 0 4px; }
.bp-links { display: flex; flex-direction: column; }
.bp-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 2px; color: var(--red); font-weight: 600; letter-spacing: .01em; text-decoration: none; border-bottom: 1px solid var(--line); }
.bp-link:hover { color: var(--red-dark); background: var(--soft); }
.bp-link-arrow { font-size: 15px; flex-shrink: 0; }
.bp-preview { background: #fff7e0; border: 1px solid #ecd9a0; padding: 8px 14px; font-size: 13px; text-align: center; margin-top: 14px; }
.bp-sec { margin-top: 38px; }
.bp-sec h2 { font-size: 30px; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.bp-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.bp-fact { background: var(--soft); border-left: 3px solid var(--red); padding: 14px 16px; }
.bp-label { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: #777; font-weight: 600; margin-bottom: 6px; }
.bp-value { font-family: 'EB Garamond', serif; font-size: 30px; line-height: 1.1; color: var(--ink); font-weight: 600; }
.bp-value.long { font-family: 'Quicksand', sans-serif; font-size: 15px; line-height: 1.5; font-weight: 600; }
.bp-detail { font-size: 14px; line-height: 1.55; color: #555; margin-top: 8px; }
.bp-src { font-size: 11.5px; color: #aaa; margin-top: 10px; }
.bp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.bp-list { margin: 0; padding-left: 22px; line-height: 1.5; }
.bp-list li { margin-bottom: 10px; } .bp-list li span { display: block; color: #777; font-size: 14px; }
.bp-story { font-size: 17px; line-height: 1.7; max-width: 760px; margin: 0; }
.bp-foot { margin-top: 44px; font-size: 12.5px; color: #999; text-align: center; }
.bp-editor label { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #777; font-weight: 600; margin: 14px 0 4px; }
.bp-editor textarea, .bp-editor input { width: 100%; border: 1px solid #d7dbe2; border-radius: 2px; padding: 9px 12px; font-size: 14px; font-family: inherit; }
.bp-editor .hint { font-size: 12px; color: #999; margin: 2px 0 0; text-transform: none; letter-spacing: 0; font-weight: 500; }
@media (max-width: 780px) { .bp-two { grid-template-columns: 1fr; } .bp-hero { padding-top: 34px; } }

/* Faire documentation upload */
.fd-wrap { max-width: 760px; margin: 0 auto; padding: 0 20px 70px; }
.fd-hero { padding-bottom: 26px; }
.fd-hero h1 { font-size: clamp(42px, 6.5vw, 72px); }
.bp-hero .fd-key { max-width: 560px; margin: 4px auto 18px; padding: 12px 16px; font-size: 15px; line-height: 1.5; background: #fbf0f1; border-left: 3px solid var(--red); text-align: left; }
.fd-field-note { display: block; font-size: 12.5px; color: var(--red); margin-top: 5px; }
.fd-form { padding: 28px 30px 30px; }
.fd-form h2, .fd-mine h2 { font-size: 30px; margin: 0 0 18px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.fd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.fd-full { grid-column: 1 / -1; }
.fd-form .field input:focus, .fd-form .field select:focus, .fd-form .field textarea:focus { outline: 2px solid #ecc4c8; border-color: var(--red); }
.fd-opt { text-transform: none; letter-spacing: 0; color: #aaa; font-weight: 500; }
.fd-fieldset { border: 0; padding: 0; margin: 0 0 16px; }
.fd-fieldset legend, .fd-label { letter-spacing: .08em; text-transform: uppercase; font-size: 11.5px; color: #777; font-weight: 600; margin-bottom: 8px; padding: 0; }
.fd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fd-chip { position: relative; cursor: pointer; }
.fd-chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.fd-chip span { display: inline-block; border: 1px solid #555; padding: 10px 16px; font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); background: #fff; }
.fd-chip input:checked + span { background: var(--red); border-color: var(--red); color: #fff; }
.fd-chip input:focus-visible + span { outline: 2px solid #ecc4c8; outline-offset: 2px; }
.fd-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; border: 1.5px dashed #bbb; background: var(--soft); padding: 26px 16px; cursor: pointer; transition: border-color .15s, background .15s; }
.fd-drop:hover, .fd-drop.over { border-color: var(--red); background: #fbeeee; }
.fd-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.fd-drop:focus-within { outline: 2px solid #ecc4c8; }
.fd-star { color: var(--red); font-weight: 700; }
.fd-req-note { font-size: 12.5px; color: #777; margin: -4px 0 14px; }
.fd-drop-req { font-size: 12.5px; color: var(--red); font-weight: 600; }
.fd-drop.missing { border-color: var(--red); background: #fbeeee; }
.fd-drop-main { color: var(--red); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 13px; }
.fd-drop-sub { font-size: 13px; color: #888; }
.fd-files { list-style: none; margin: 10px 0 0; padding: 0; }
.fd-files li { display: flex; align-items: center; gap: 10px; padding: 6px 0 6px 2px; border-bottom: 1px solid var(--line); font-size: 14px; }
.fd-files .fd-fname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.fd-files .btn { height: 32px; padding: 0 10px; font-size: 11.5px; }
.fd-submit { width: 100%; margin-top: 22px; }
.fd-progress { height: 4px; background: var(--line); margin-top: 10px; } .fd-progress > div { height: 4px; background: var(--red); width: 0; transition: width .2s; }
.fd-mine { margin-top: 44px; }
.fd-sub { border-left: 3px solid var(--red); background: var(--soft); padding: 14px 16px; margin-bottom: 12px; }
.fd-sub-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.fd-sub-head strong { font-family: 'EB Garamond', serif; font-size: 21px; font-weight: 600; color: var(--ink); }
.fd-sub-meta { font-size: 14px; margin-top: 4px; }
.fd-sub-notes { font-size: 14px; color: #555; margin-top: 6px; white-space: pre-wrap; }
.fd-sub-files { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: 14px; font-weight: 600; }
.fd-sub-files a { overflow-wrap: anywhere; }
.fd-sub-when { font-size: 12px; color: #999; margin-top: 8px; }
@media (max-width: 780px) {
  .fd-grid { grid-template-columns: 1fr; }
  .fd-form { padding: 22px 18px 24px; }
  .fd-hero { padding-top: 34px; }
}
.site-nav a, .site-nav button { white-space: nowrap; }
@media (max-width: 440px) {
  .site-header { padding: 0 12px; gap: 10px; } .site-header img { height: 30px; }
  .site-nav { gap: 10px; font-size: 12.5px; }
  .site-nav a[href="/"] { display: none; } /* the logo already links home; frees room for Sign out */
}
@media (max-width: 380px) {
  .site-header img { height: 26px; }
  .site-header > a { flex-shrink: 0; }
  .site-nav { gap: 8px; font-size: 12px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .site-nav a[href="/"] { display: none; } /* the logo already links home */
}
.row-form input, .row-form select, .row-form textarea { max-width: 100%; }
.fd-hint { font-size: 13.5px; line-height: 1.5; color: #666; margin: -6px 0 14px; }
.fd-warn { font-size: 13.5px; line-height: 1.5; color: #8a5a00; background: #fff7e0; border-left: 3px solid #e0b33a; padding: 8px 12px; margin: -6px 0 14px; }
.fd-jump { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; margin-top: -8px; }
.fd-fine { margin-top: 44px; font-size: 14.5px; line-height: 1.55; scroll-margin-top: 16px; }
.fd-fine h2 { font-size: 30px; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.fd-fine h3 { font-family: 'Quicksand', sans-serif; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin: 18px 0 6px; }
.fd-fine ul { margin: 0; padding-left: 20px; } .fd-fine li { margin-bottom: 5px; }
.fd-fine-lead { font-size: 15.5px; margin: 0 0 4px; color: var(--ink); }
.fd-fine-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.fd-fine-src { font-size: 12.5px; color: #999; margin-top: 18px; }
@media (max-width: 780px) { .fd-fine-cols { grid-template-columns: 1fr; } }

/* ---- Claims (damaged / missing items); builds on the fd-* Faire Docs styles ---- */
.cl-item { border: 1px solid var(--line); border-left: 3px solid var(--red); background: var(--soft); padding: 12px 16px 2px; margin-bottom: 12px; }
.cl-item-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.cl-item-num { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.cl-item-head .btn { height: 28px; padding: 0 8px; font-size: 11.5px; }
.cl-item-grid { display: grid; grid-template-columns: 1fr 96px; gap: 0 14px; }
.cl-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.cl-item .fd-chip span { padding: 8px 14px; }
.cl-add { margin-top: 2px; }
.cl-sub-items { margin: 8px 0 0; padding-left: 18px; font-size: 14px; } .cl-sub-items li { margin-bottom: 3px; }
.cl-dmg { color: var(--red); font-weight: 600; }
@media (max-width: 600px) { .cl-choices { grid-template-columns: 1fr; } .cl-item-grid { grid-template-columns: 1fr 76px; } }
.fd-drop-req.cl-quiet { color: #888; font-weight: 500; }

/* Login: OneCoast TM signup callout */
.auth-signup { margin-top: 28px; padding: 20px 20px 22px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--red); text-align: center; }
.auth-signup-title { font-family: 'EB Garamond', serif; font-size: 23px; font-weight: 600; color: var(--ink); line-height: 1.2; }
.auth-signup p { font-size: 14px; color: #555; margin: 6px 0 14px; }
.auth-signup .btn { display: flex; align-items: center; justify-content: center; width: 100%; text-decoration: none; border-color: var(--red); color: var(--red); }
.auth-signup .btn:hover { background: var(--red); color: #fff; }

/* ---- Brand page videos ---- */
.bp-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 22px; }
.bp-video { margin: 0; }
.bp-video-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 6px; overflow: hidden; }
.bp-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.bp-video figcaption { margin-top: 8px; font-weight: 600; }

/* ---- Ask Grace wordmark (sign-in pages) ---- */
.ask-mark { font-family: 'EB Garamond', serif; font-weight: 500; color: var(--ink); line-height: 1; white-space: nowrap; }
.ask-mark em { font-style: italic; color: var(--red); }
.auth-lockup { display: flex; align-items: center; gap: 24px; align-self: flex-start; }
.auth-lockup .logo { display: block; }
.auth-lockup-rule { width: 1px; align-self: stretch; margin: 4px 0; background: var(--red); opacity: .45; }
.auth-lockup .ask-mark { font-size: 34px; }
.ask-mark-mobile { display: none; font-size: 46px; margin-bottom: 26px; }
@media (max-width: 780px) { .ask-mark-mobile { display: block; } }

/* Header lockup: GMG logo | Ask Grace. The wordmark is the app's name, so it carries the most weight. */
.hdr-lockup { display: flex; align-items: center; gap: 20px; text-decoration: none; flex-shrink: 0; }
.hdr-lockup .ask-mark { font-size: 36px; }
@media (max-width: 900px) { .hdr-lockup { gap: 14px; } .hdr-lockup .ask-mark { font-size: 30px; } }
/* Phones: no room for both beside the menu, so show the Ask Grace wordmark on its own. */
@media (max-width: 660px) { .hdr-lockup img, .hdr-lockup .auth-lockup-rule { display: none; } .hdr-lockup .ask-mark { font-size: 27px; } }
@media (max-width: 440px) { .hdr-lockup .ask-mark { font-size: 23px; } }
@media (max-width: 380px) { .hdr-lockup .ask-mark { font-size: 20px; } }
