/* Aveni community
   Palette comes from theme-light-blue-gold.css: ink #17304f, gold #b88a3b,
   line #e3ecf2, paper #ffffff, cream #fbfdff.
   Everything on this page shares one 1040px measure so the hero, the tabs and
   the thread list line up on the same left edge. */

/* ---------------------------------------------------------------- header */
.site-header{border-bottom:1px solid #e9f0f5;background:rgba(255,255,255,.9)}
.cm-nav-auth{font-family:inherit;font-size:13px;line-height:1.3;color:#8d6728;background:#fdf8f0;border:1px solid #eddcbb;border-radius:999px;padding:5px 13px;cursor:pointer;align-self:center;white-space:nowrap;transition:background .15s,border-color .15s,color .15s}
.cm-nav-auth:hover{background:#f8eeda;border-color:#dcc08c}
.cm-nav-auth[data-in="1"]{background:#17304f;border-color:#17304f;color:#fff}
.cm-nav-auth[data-in="1"]:hover{background:#0f2438;border-color:#0f2438}
.cm-nav-who{color:#8d6728;font-weight:500;align-self:center;white-space:nowrap;max-width:150px;overflow:hidden;text-overflow:ellipsis}
.cm-nav-who:hover{color:#b88a3b}

/* ------------------------------------------------------------------ hero */
.cm-hero{max-width:1040px;margin:0 auto;padding:58px 24px 26px}
.cm-eyebrow{display:flex;align-items:center;gap:9px;margin:0 0 16px;font:600 10.5px/1 'DM Sans',sans-serif;letter-spacing:.2em;text-transform:uppercase;color:#b88a3b}
.cm-eyebrow::before{content:"";width:22px;height:1px;background:#dcc08c}
.cm-hero h1{margin:0 0 16px;font:500 clamp(29px,3.5vw,43px)/1.18 'Playfair Display',Georgia,serif;color:#17304f;letter-spacing:-.6px;max-width:20em}
.cm-lede{margin:0;font-size:16px;line-height:1.75;color:#4b6274;max-width:46em}
.cm-hero-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:26px 0 0}
.cm-hero-note{font-size:13px;color:#7d90a2}

/* ---------------------------------------------------------------- buttons */
.cm-btn{font-family:inherit;font-size:14.5px;font-weight:500;border:1px solid #b88a3b;background:#b88a3b;color:#fff;border-radius:999px;padding:11px 24px;cursor:pointer;transition:background .15s,border-color .15s,color .15s,box-shadow .15s;box-shadow:0 6px 16px rgba(184,138,59,.18)}
.cm-btn:hover{background:#8d6728;border-color:#8d6728;box-shadow:0 8px 20px rgba(141,103,40,.22)}
.cm-btn.ghost{background:#fff;color:#17304f;border-color:#dbe8f0;box-shadow:none}
.cm-btn.ghost:hover{background:#f4fafc;color:#17304f;border-color:#b88a3b;box-shadow:none}
.cm-btn.full{width:100%;margin-top:12px}
.cm-btn[disabled]{opacity:.55;cursor:default;box-shadow:none}

/* ---------------------------------------------------------------- boards */
.cm-boards{max-width:1040px;margin:0 auto;padding:0 24px 46px}
.cm-tabs{display:flex;gap:8px;flex-wrap:wrap;border-bottom:1px solid #e9f0f5;padding-bottom:16px;margin:0 0 26px}
.cm-tab{font-family:inherit;font-size:13px;color:#5b7285;background:#fff;border:1px solid #e3ecf2;border-radius:999px;padding:7px 15px;cursor:pointer;transition:all .15s}
.cm-tab:hover{border-color:#dcc08c;color:#8d6728}
.cm-tab.is-on{background:#17304f;border-color:#17304f;color:#fff;box-shadow:0 6px 16px rgba(23,48,79,.16)}
.cm-tab .cm-count{display:inline-block;margin-left:7px;padding:1px 8px;border-radius:999px;font-size:11.5px;letter-spacing:0;background:rgba(23,48,79,.08);color:#67727d;vertical-align:1px}
.cm-tab.is-on .cm-count{background:rgba(255,255,255,.26);color:#fff}
@media (max-width:620px){.cm-tab .cm-count{margin-left:5px;padding:1px 6px;font-size:11px}}

.cm-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:30px;align-items:start}
@media (max-width:920px){.cm-layout{grid-template-columns:1fr}}

/* ------------------------------------------------------------ thread card */
.cm-list{display:flex;flex-direction:column;gap:12px}
.cm-item{position:relative;display:block;text-decoration:none;border:1px solid #e6eef4;border-radius:14px;padding:18px 20px 15px 21px;background:#fff;transition:border-color .16s,box-shadow .16s,transform .16s}
.cm-item::before{content:"";position:absolute;left:0;top:17px;bottom:17px;width:3px;border-radius:0 3px 3px 0;background:#e6d3ae;opacity:0;transition:opacity .16s}
.cm-item:hover{border-color:#dfe9f0;box-shadow:0 12px 28px rgba(23,48,79,.075);transform:translateY(-1px)}
.cm-item:hover::before{opacity:1}
.cm-item h3{margin:0 0 7px;font:500 17.5px/1.4 'Playfair Display',Georgia,serif;color:#17304f;letter-spacing:-.1px}
.cm-item p{margin:0;font-size:14px;line-height:1.65;color:#4b6274;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.cm-item .cm-meta{margin-top:11px}

.cm-meta{display:flex;gap:10px;flex-wrap:wrap;align-items:center;font-size:12px;color:#8296a6}
.cm-meta > span + span::before{content:"·";margin-right:10px;color:#c8d5df}
.cm-meta > .cm-badge + span::before{content:"";margin:0}
.cm-badge{display:inline-block;font-size:10px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:#8d6728;background:#fdf6e9;border:1px solid #eddcbb;border-radius:999px;padding:3px 9px}
.cm-item[data-board="zodiac"] .cm-badge{color:#8a4b3b;background:#fbf1ee;border-color:#efd6cd}
.cm-item[data-board="iching"] .cm-badge{color:#1f4a6b;background:#eef5fa;border-color:#d3e3ef}
.cm-item[data-board="help"] .cm-badge{color:#4f6473;background:#f2f6f9;border-color:#dde7ee}

.cm-empty{border:1px dashed #dbe8f0;border-radius:14px;padding:38px 28px;text-align:center;color:#7d90a2;font-size:14px;background:#fbfdff;line-height:1.7}
.cm-empty .cm-link{font-size:14px}
.cm-more{margin-top:18px}

/* ----------------------------------------------------------------- thread */
.cm-thread{background:#fff;border:1px solid #e6eef4;border-radius:16px;padding:26px 28px 28px}
.cm-back{font-family:inherit;font-size:12.5px;color:#8d6728;background:none;border:0;cursor:pointer;padding:0 0 16px}
.cm-back:hover{color:#b88a3b}
.cm-thread h2{margin:0 0 8px;font:500 26px/1.28 'Playfair Display',Georgia,serif;color:#17304f;letter-spacing:-.3px}
.cm-thread-meta{margin:0 0 20px;font-size:12.5px;color:#8296a6}
.cm-thread-body{font-size:16px;line-height:1.8;color:#2f4457;white-space:pre-wrap}
.cm-thread-tools{display:flex;gap:18px;margin-top:20px;padding-top:14px;border-top:1px solid #eef4f8}
.cm-link{font-family:inherit;font-size:12.5px;color:#8296a6;background:none;border:0;cursor:pointer;padding:0;text-decoration:underline;text-underline-offset:3px;text-decoration-color:#cbd8e2}
.cm-link:hover{color:#8d6728;text-decoration-color:#dcc08c}
.cm-replies-title{margin:30px 0 14px;font:500 17px 'Playfair Display',Georgia,serif;color:#17304f}
.cm-replies-title span{font:400 12.5px 'DM Sans',sans-serif;color:#8296a6}
.cm-replies{display:flex;flex-direction:column;gap:14px}
.cm-reply{border-left:2px solid #eedfc2;padding:2px 0 2px 16px}
.cm-reply p{margin:0 0 5px;font-size:14.5px;line-height:1.72;color:#2f4457;white-space:pre-wrap}
.cm-reply .cm-meta{font-size:11.5px}
.cm-reply-form{margin-top:24px;padding-top:20px;border-top:1px solid #eef4f8}
.cm-signin-hint{margin:18px 0 0;font-size:13px;color:#8296a6}

/* -------------------------------------------------------------- compose */
.cm-compose{margin-top:28px;background:#fff;border:1px solid #e6eef4;border-radius:16px;padding:26px 28px}
.cm-compose h2{margin:0 0 16px;font:500 20px 'Playfair Display',Georgia,serif;color:#17304f}
.cm-compose label,.cm-reply-form label,.cm-modal label{display:block;font-size:10.5px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:#8d6728;margin:16px 0 7px}
.cm-compose label:first-of-type{margin-top:0}
.cm-compose input,.cm-compose select,.cm-compose textarea,.cm-reply-form textarea,.cm-modal input{
  width:100%;font-family:inherit;font-size:15px;color:#17304f;background:#fff;border:1px solid #dbe8f0;border-radius:10px;padding:11px 13px;transition:border-color .15s,box-shadow .15s}
.cm-compose textarea,.cm-reply-form textarea{resize:vertical;line-height:1.68}
.cm-compose input:focus,.cm-compose select:focus,.cm-compose textarea:focus,.cm-reply-form textarea:focus,.cm-modal input:focus{
  outline:0;border-color:#b88a3b;box-shadow:0 0 0 3px rgba(184,138,59,.14)}
.cm-privacy-note{margin:14px 0 0;font-size:12.5px;line-height:1.65;color:#7d90a2;background:#fdf8f0;border:1px solid #eddcbb;border-radius:10px;padding:11px 14px}
.cm-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:18px}
.cm-status{font-size:13px;color:#5b7285}
.cm-status.err{color:#b4433a}
.cm-status.ok{color:#2f6b4f}

/* ----------------------------------------------------------------- aside */
.cm-aside{display:flex;flex-direction:column;gap:16px;position:sticky;top:96px}
@media (max-width:920px){.cm-aside{position:static}}
.cm-card{background:#fff;border:1px solid #e6eef4;border-radius:14px;padding:20px 21px}
.cm-card h3{margin:0 0 9px;font:500 15.5px 'Playfair Display',Georgia,serif;color:#17304f}
.cm-card p{margin:0;font-size:13px;line-height:1.7;color:#4b6274}
.cm-card p + p{margin-top:9px}
.cm-card ul{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:9px;font-size:13px;line-height:1.65;color:#4b6274}
.cm-card ul li{position:relative;padding-left:15px}
.cm-card ul li::before{content:"";position:absolute;left:0;top:.62em;width:4px;height:4px;border-radius:50%;background:#d9b872}
.cm-card a{color:#8d6728}
.cm-card.muted{background:#fbfdff;border-style:dashed}
.cm-card.muted p{font-size:12.5px;color:#7d90a2}
#cm-account{background:linear-gradient(180deg,#fffdf9,#fdf8f0);border-color:#eddcbb}
#cm-account p{color:#6d5c42}

/* ------------------------------------------------------------------ foot */
.cm-foot{max-width:1040px;margin:0 auto;padding:0 24px 60px}
.cm-foot p{margin:0;font-size:12.5px;line-height:1.75;color:#8296a6;border-top:1px solid #e9f0f5;padding-top:20px}

/* ----------------------------------------------------------------- modal */
.cm-mask{position:fixed;inset:0;background:rgba(23,48,79,.44);display:flex;align-items:center;justify-content:center;padding:20px;z-index:80;backdrop-filter:blur(3px)}
.cm-mask[hidden]{display:none}
.cm-modal{position:relative;background:#fff;border-radius:18px;padding:30px 30px 24px;width:100%;max-width:400px;box-shadow:0 30px 70px rgba(23,48,79,.3)}
.cm-modal h2{margin:0 0 6px;font:500 21px 'Playfair Display',Georgia,serif;color:#17304f}
.cm-modal-sub{margin:0 0 4px;font-size:13px;line-height:1.6;color:#5b7285}
.cm-modal .cm-link{display:block;margin-top:12px}
.cm-x{position:absolute;top:12px;right:15px;border:0;background:none;font-size:21px;line-height:1;color:#a9bcc9;cursor:pointer}
.cm-x:hover{color:#17304f}

/* ------------------------------------------------------------- responsive */
@media (max-width:720px){
  .cm-hero{padding:40px 20px 20px}
  .cm-boards{padding:0 20px 36px}
  .cm-thread,.cm-compose{padding:20px}
  .cm-foot{padding:0 20px 44px}
  .cm-item{padding:16px 16px 13px 17px}
}
@media (max-width:520px){
  .cm-nav-auth{font-size:12.5px;padding:4px 11px}
  /* the meta line wraps on phones; a leading "·" at the wrap point reads as a typo */
  .cm-meta{gap:5px 13px;font-size:11.5px}
  .cm-meta > span + span::before{content:"";margin:0}
}

/* --- sign-in method switch (2026-11-16) --------------------------------
   Two ways in: an emailed code, or a password set in the account centre.
   The switch sits above the fields, quiet enough not to look like a step. */
.cm-auth-tabs{display:inline-flex;gap:4px;padding:3px;margin:14px 0 2px;background:#f2f5f8;border:1px solid #e3ebf1;border-radius:999px}
.cm-auth-tab{font-family:inherit;font-size:12.5px;color:#5b7285;background:none;border:0;border-radius:999px;padding:6px 15px;cursor:pointer;transition:background .14s ease,color .14s ease}
.cm-auth-tab:hover{color:#17304f}
.cm-auth-tab.is-on{background:#fff;color:#17304f;font-weight:600;box-shadow:0 1px 3px rgba(23,48,79,.13)}
.cm-auth-tab:focus-visible{outline:2px solid #c9a45e;outline-offset:1px}
@media (max-width:520px){.cm-modal{padding:26px 22px 20px}.cm-auth-tab{padding:5px 12px;font-size:12px}}

/* --- password reveal toggle (2026-11-16) ------------------------------
   .pw-eye itself lives in styles.css; here only the box and the room the
   eye needs inside the modal's password field. */
.cm-pw-box{position:relative;display:block}
.cm-pw-box input{padding-right:44px}

/* --- server-rendered thread pages (2026-11-16) -------------------------
   /community/t/<id>/ is plain HTML so a crawler can read it; nothing here
   depends on community.js. Same palette as the app: navy text, gold rules,
   cream surfaces. */
.cmt{max-width:760px;margin:0 auto;padding:34px 22px 60px}
.cmt-crumbs{font:400 13px/1.5 'DM Sans',sans-serif;color:#7a6a52;margin-bottom:22px}
.cmt-crumbs a{color:#8d6728;text-decoration:none;border-bottom:1px solid rgba(201,164,94,.4)}
.cmt-crumbs a:hover{border-bottom-color:#8d6728}
.cmt-crumbs span[aria-hidden]{color:#c2b49b;margin:0 4px}
.cmt-badge{display:inline-block;margin:0 0 14px;padding:4px 11px;border-radius:999px;background:#fbf3e3;border:1px solid #ecd9b4;font:600 11px/1.3 'DM Sans',sans-serif;letter-spacing:.09em;text-transform:uppercase;color:#8a6a2c}
.cmt-post h1{margin:0 0 14px;font-family:'Playfair Display',Georgia,serif;font-size:clamp(26px,4.2vw,38px);line-height:1.22;color:#152e4b;letter-spacing:-.01em}
.cmt-meta{margin:0;font:400 13px/1.6 'DM Sans',sans-serif;color:#8b8172}
.cmt-meta span{color:#5f6b7a}
.cmt-body{margin:22px 0 0;font:400 16.5px/1.72 'DM Sans',sans-serif;color:#2b3a4b}
.cmt-body p{margin:0 0 15px}
.cmt-replies{margin-top:40px;padding-top:26px;border-top:1px solid #e7dcc6}
.cmt-replies h2{margin:0 0 18px;font-family:'Playfair Display',Georgia,serif;font-size:21px;font-weight:500;color:#152e4b}
.cmt-count{font-family:'DM Sans',sans-serif;font-size:14px;color:#a1917a}
.cmt-reply{padding:16px 18px;margin-bottom:12px;background:#fdfaf3;border:1px solid #efe4cd;border-radius:12px}
.cmt-reply p{margin:0;font:400 15.5px/1.7 'DM Sans',sans-serif;color:#2b3a4b}
.cmt-reply .cmt-meta{margin-top:10px;font-size:12.5px}
.cmt-empty{margin:0 0 18px;font:400 15px/1.6 'DM Sans',sans-serif;color:#8b8172;font-style:italic}
.cmt-form{margin-top:26px;padding:20px;background:#fff;border:1px solid #e7dcc6;border-radius:14px}
.cmt-form label{display:block;margin-bottom:8px;font:600 11px/1 'DM Sans',sans-serif;letter-spacing:.1em;text-transform:uppercase;color:#8d6728}
.cmt-form textarea{width:100%;box-sizing:border-box;padding:11px 13px;border:1px solid #d8c7a4;border-radius:9px;font:400 15px/1.6 'DM Sans',sans-serif;color:#17304f;background:#fffdf8;resize:vertical}
.cmt-form textarea:focus{outline:2px solid rgba(201,164,94,.45);outline-offset:1px;border-color:#c9a45e}
.cmt-row{display:flex;align-items:center;gap:14px;margin-top:12px;flex-wrap:wrap}
.cmt-fine{margin:12px 0 0;font:400 12.5px/1.6 'DM Sans',sans-serif;color:#8b8172}
.cmt-fine a{color:#8d6728}
.cmt-status:empty{display:none}
.cmt-status[data-kind="err"]{color:#a32d2d;font-size:13px}
.cmt-status[data-kind="ok"]{color:#0f6e56;font-size:13px}
.cmt-siblings{margin-top:44px;padding-top:24px;border-top:1px solid #e7dcc6}
.cmt-siblings h2{margin:0 0 14px;font-family:'Playfair Display',Georgia,serif;font-size:19px;font-weight:500;color:#152e4b}
.cmt-siblings ul{margin:0;padding:0;list-style:none}
.cmt-siblings li{margin-bottom:2px}
.cmt-siblings a{display:block;padding:11px 2px;font:400 15px/1.45 'DM Sans',sans-serif;color:#1f3b5c;text-decoration:none;border-bottom:1px solid #f0e8d8}
.cmt-siblings a:hover{color:#8d6728}
.cmt-more-board{display:block;margin-bottom:3px;font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:#a1917a}
.cmt-all{display:inline-block;margin-top:14px;font:600 14px/1.4 'DM Sans',sans-serif;color:#8d6728;text-decoration:none}
.cmt-all:hover{color:#6f4f1c}
.cmt-foot{margin:44px 0 0;padding:16px 18px;background:#f7f3ea;border-radius:11px;font:400 13px/1.65 'DM Sans',sans-serif;color:#7a6a52}
@media (max-width:620px){
  .cmt{padding:24px 16px 48px}
  .cmt-body{font-size:16px}
  .cmt-form{padding:16px}
  .cmt-reply{padding:14px}
}
