/* =========================================================================
   CigarPass — Cigars of the Month (/cigars-of-the-month). Page: cigars_of_the_month.php, script: assets/js/cotm.js.
   The lounge photo behind it comes from site.css (.has-smk-bd), like Today's Smoke and the Jukebox.
   ========================================================================= */
.cm { --cm-brass: #D49A42; --cm-brass-hi: #F0C47A; --cm-panel: rgba(22,11,7,.86); --cm-line: rgba(212,154,66,.28); }
.cm-hero { text-align: center; }
.cm-hero__go { display: flex; justify-content: center; flex-wrap: wrap; gap: .7rem; margin-top: 1.2rem; }
.cm-note { margin: 1rem auto 0; color: #ffb4a8; font-size: .9rem; }
.cm-msg { margin: 0; padding: 2.4rem 1rem; text-align: center; font-style: italic; color: var(--parchment-dim); border: 1px dashed var(--cm-line); border-radius: 10px; }
.cm-month, .cm-archive { max-width: 76rem; margin: 0 auto; padding: 0 1.25rem; }
.cm-archive { margin-top: 2.6rem; padding-bottom: 3rem; }

/* ---- the month band: ‹ November 2026 › + totals, with the two honors beside it ---- */
.cm-month { scroll-margin-top: calc(var(--header-h) + 50px); }
.cm-band { display: flex; align-items: center; justify-content: center; gap: 1.6rem 2.4rem; flex-wrap: wrap; margin: .6rem 0 1.4rem; }
.cm-month__head { display: flex; align-items: center; justify-content: center; gap: 1.1rem; text-align: center; }
.cm-kicker { margin: 0 0 .35rem; font: 700 .7rem/1 var(--font-ui); letter-spacing: .3em; text-transform: uppercase; color: #b99660; }
.cm-month__head h2 { margin: 0; font-family: var(--font-plaque); font-size: clamp(1.9rem, 3.6vw, 2.7rem); letter-spacing: .06em; line-height: 1.05; white-space: nowrap;
  background: linear-gradient(180deg, #fff1c9, #f0c47a 45%, #b9832f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cm-count { margin: .5rem 0 0; font: 600 .74rem/1.3 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--cm-brass-hi); }
.cm-nav { flex: none; width: 2.7rem; height: 2.7rem; border-radius: 50%; border: 1px solid var(--cm-line); background: var(--cm-panel); color: var(--cm-brass-hi); font-size: 1.6rem; line-height: 1; cursor: pointer; transition: background .2s, border-color .2s; }
.cm-nav:hover:not(:disabled) { background: rgba(212,154,66,.16); border-color: var(--cm-brass); }
.cm-nav:disabled { opacity: .25; cursor: default; }
.cm-honors { display: flex; gap: 1.1rem; flex-wrap: wrap; justify-content: center; }
.cm-honor { position: relative; display: flex; align-items: center; gap: .8rem; width: 19rem; max-width: 100%; padding: 1.15rem 1rem .85rem; border: 1px solid rgba(240,196,122,.5); border-radius: 12px; cursor: pointer; text-align: left; color: inherit; font: inherit;
  background: radial-gradient(120% 140% at 0% 0%, rgba(240,196,122,.16), transparent 60%), linear-gradient(180deg, #2a160b, #170c07); box-shadow: 0 .8rem 1.6rem rgba(0,0,0,.45), inset 0 1px 0 rgba(255,241,201,.12); transition: transform .2s, box-shadow .2s; }
.cm-honor:hover, .cm-honor:focus-visible { transform: translateY(-2px); box-shadow: 0 1.1rem 2rem rgba(0,0,0,.55), 0 0 0 1px var(--cm-brass-hi); }
.cm-honor__ribbon { position: absolute; top: -.65rem; left: .9rem; padding: .28rem .7rem .26rem; border-radius: 3px; font: 800 .62rem/1 var(--font-ui); letter-spacing: .18em; text-transform: uppercase; color: #2a160b;
  background: linear-gradient(180deg, #f6d48f, #c8913c); box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.cm-honor__av, .cm-honor__ph { flex: none; width: 3.4rem; height: 3.4rem; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #1d0f08, 0 0 0 3px var(--cm-brass); }
.cm-honor__ph { border-radius: 8px; }
.cm-honor__av--letter { display: grid; place-items: center; font: 700 1.3rem var(--font-plaque); color: #2a160b; background: radial-gradient(circle at 35% 30%, #fff1c9, #d49a42 60%, #8a5a1e); }
.cm-honor__txt { display: grid; gap: .2rem; min-width: 0; }
.cm-honor__txt b { font-family: var(--font-plaque); font-size: 1.1rem; letter-spacing: .03em; color: #f6e4bd; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-honor__txt small { font: 500 .8rem var(--font-ui); color: #d8b57a; }

/* ---- the row of members: tap one to see only their cigars ---- */
.cm-people { display: flex; gap: .5rem; overflow-x: auto; padding: .3rem .1rem .7rem; margin-bottom: .4rem; scrollbar-width: thin; scrollbar-color: rgba(212,154,66,.4) transparent; }
.cm-person { flex: none; display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .7rem .3rem .3rem; border: 1px solid var(--cm-line); border-radius: 99px; cursor: pointer; color: #f1e3c8; font: 600 .84rem var(--font-ui); background: var(--cm-panel); transition: border-color .2s, background .2s; }
.cm-person:hover { border-color: rgba(240,196,122,.6); }
.cm-person[aria-pressed="true"] { border-color: var(--cm-brass-hi); background: linear-gradient(180deg, rgba(240,196,122,.24), rgba(212,154,66,.12)); }
.cm-person b { min-width: 1.4rem; padding: .12rem .35rem; border-radius: 99px; text-align: center; font: 700 .72rem var(--font-ui); color: #2a160b; background: linear-gradient(180deg, #f6d48f, #c8913c); }
.cm-person__av { width: 1.9rem; height: 1.9rem; border-radius: 50%; object-fit: cover; }
.cm-person__av--letter { display: grid; place-items: center; font: 700 .85rem var(--font-plaque); color: #2a160b; background: radial-gradient(circle at 35% 30%, #fff1c9, #d49a42 60%, #8a5a1e); }
.cm-person__all { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; font: 700 .7rem var(--font-ui); letter-spacing: .04em; color: var(--cm-brass-hi); box-shadow: inset 0 0 0 1px var(--cm-line); }
.cm-person__name { max-width: 9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-only { margin: 0 0 .8rem; font: 500 .9rem var(--font-ui); color: #d8b57a; }
.cm-only[hidden] { display: none; }
.cm-only button { padding: 0; border: 0; background: none; cursor: pointer; font: 600 .9rem var(--font-ui); color: var(--cm-brass-hi); }
.cm-only button:hover { text-decoration: underline; }

/* ---- the wall: every cigar of the month ---- */
.cm-wall, .cm-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 1rem .9rem; }
.cm-cig { display: flex; flex-direction: column; gap: .35rem; padding: 0; border: 0; background: none; cursor: zoom-in; text-align: left; color: inherit; font: inherit; min-width: 0; }
.cm-cig.is-hidden { opacity: .4; }
.cm-cig__ph { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 9px; overflow: hidden; background: #0d0704; box-shadow: 0 0 0 1px rgba(212,154,66,.3), 0 .6rem 1.2rem rgba(0,0,0,.45); transition: transform .2s, box-shadow .2s; }
.cm-cig__ph > img { width: 100%; height: 100%; object-fit: cover; display: block; }   /* the photo only, not the face on it */
.cm-cig:hover .cm-cig__ph, .cm-cig:focus-visible .cm-cig__ph { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--cm-brass-hi), 0 .9rem 1.6rem rgba(0,0,0,.55); }
.cm-cig__n, .cm-cig__likes { position: absolute; top: .45rem; padding: .22rem .45rem; border-radius: 99px; font: 700 .7rem/1 var(--font-ui); color: #fff; background: rgba(10,5,3,.7); backdrop-filter: blur(4px); }
.cm-cig__n { right: .45rem; } .cm-cig__likes { left: .45rem; color: #ffd2c9; }
.cm-cig__who { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: .4rem; padding: 1.6rem .55rem .5rem; font: 600 .78rem/1.2 var(--font-ui); color: #fff;
  background: linear-gradient(0deg, rgba(8,4,2,.88), transparent); }
.cm-cig__who > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-cig__who .cm-cig__av { flex: none; width: 1.5rem; height: 1.5rem; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px rgba(240,196,122,.7); }
.cm-cig__av--letter { display: grid; place-items: center; font: 700 .7rem var(--font-plaque); color: #2a160b; background: radial-gradient(circle at 35% 30%, #fff1c9, #d49a42 60%, #8a5a1e); }
.cm-cig__t { font: 600 .88rem/1.25 var(--font-ui); color: #f3dfb4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cm-cig__d { font: .74rem var(--font-ui); color: var(--parchment-dim); }
.cm-sheet__av--letter, .cm-yt__av--letter { display: grid; place-items: center; font: 700 1.1rem var(--font-plaque); color: #2a160b; background: radial-gradient(circle at 35% 30%, #fff1c9, #d49a42 60%, #8a5a1e); }

/* ---- the archive ---- */
.cm-archive__head { text-align: center; margin-bottom: 1rem; }
.cm-archive h2 { margin: 0; font-family: var(--font-plaque); font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: .08em; color: #f3dfb4; }
.cm-archive__top { margin: .6rem 0 0; font: 500 .9rem var(--font-ui); color: #d8b57a; }
.cm-archive__top[hidden] { display: none; }
.cm-archive__top b { color: #f6e4bd; }
.cm-yt__av { width: 1.5rem; height: 1.5rem; margin: 0 .35rem 0 .2rem; border-radius: 50%; object-fit: cover; vertical-align: -.4rem; display: inline-grid; font-size: .75rem; }
.cm-years { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.cm-years[hidden] { display: none; }
.cm-year { padding: .4rem 1rem; border: 0; border-radius: 99px; cursor: pointer; font: 700 .85rem/1 var(--font-ui); letter-spacing: .08em; color: #d9c29a; background: rgba(20,10,6,.8); box-shadow: inset 0 0 0 1px var(--cm-line); }
.cm-year[aria-selected="true"] { color: #2a160b; background: linear-gradient(180deg, #f6d48f, #c8913c); box-shadow: none; }
.cm-tiles { display: flex; gap: .9rem; overflow-x: auto; scroll-snap-type: x proximity; padding: .3rem .1rem 1rem; scrollbar-width: thin; scrollbar-color: rgba(212,154,66,.4) transparent; }
.cm-tiles > .cm-msg { flex: 1; }
.cm-tile { flex: 0 0 12.5rem; scroll-snap-align: start; }
.cm-tile { display: flex; flex-direction: column; padding: 0; border: 1px solid var(--cm-line); border-radius: 10px; overflow: hidden; cursor: pointer; text-align: left; color: inherit; font: inherit;
  background: linear-gradient(180deg, #24130b, #170c07); box-shadow: 0 .8rem 1.6rem rgba(0,0,0,.45); transition: transform .2s, border-color .2s; }
.cm-tile:hover, .cm-tile:focus-visible { transform: translateY(-3px); border-color: rgba(240,196,122,.65); }
.cm-tile.is-on { border-color: var(--cm-brass-hi); box-shadow: 0 0 0 1px var(--cm-brass-hi), 0 .8rem 1.6rem rgba(0,0,0,.45); }
.cm-tile__cover { display: grid; gap: 2px; aspect-ratio: 4 / 3; overflow: hidden; grid-template-rows: minmax(0, 1fr); background: #0d0704; }
.cm-tile__cover img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 0; }
.cm-tile__cover--2 { grid-template-columns: 1fr 1fr; }
.cm-tile__cover--3, .cm-tile__cover--4 { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); }
.cm-tile__cover--3 img:first-child { grid-row: 1 / 3; }
.cm-tile__body { display: grid; gap: .15rem; padding: .6rem .75rem .7rem; }
.cm-tile__body b { font-family: var(--font-plaque); font-size: 1rem; letter-spacing: .04em; color: #f3dfb4; }
.cm-tile__body small { font: 600 .68rem/1.3 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--cm-brass-hi); }
.cm-tile__body .cm-tile__top { letter-spacing: .04em; text-transform: none; font-weight: 500; font-size: .78rem; color: #cbb999; }

/* ---- a member's sheet ---- */
body.cm-open { overflow: hidden; }
.cm-sheet { position: fixed; inset: 0; z-index: 1002; display: grid; place-items: center; padding: 1.2rem; background: rgba(8,4,2,.74); animation: cm-in .18s ease-out; }
.cm-sheet__card { width: min(58rem, 100%); max-height: calc(100vh - 2.4rem); display: flex; flex-direction: column; border-radius: 14px; overflow: hidden;
  background: linear-gradient(180deg, #1d0f08, #120905); box-shadow: 0 0 0 1px rgba(212,154,66,.55), 0 20px 60px rgba(0,0,0,.65); }
.cm-sheet__head { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--cm-line); background: linear-gradient(180deg, #2b160c, #1d0f08); }
.cm-sheet__head div { flex: 1; min-width: 0; }
.cm-sheet__head h3 { margin: 0; font-family: var(--font-plaque); font-size: 1.45rem; letter-spacing: .04em; color: #f3dfb4; }
.cm-sheet__head small { font: .85rem var(--font-ui); color: #d8b57a; }
.cm-sheet__av { flex: none; width: 3.4rem; height: 3.4rem; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #1d0f08, 0 0 0 4px var(--cm-brass); }
.cm-sheet__x { flex: none; width: 2.3rem; height: 2.3rem; border: 0; border-radius: 50%; cursor: pointer; font-size: 1rem; color: #d9c29a; background: rgba(255,255,255,.07); }
.cm-sheet__x:hover { color: #fff; background: rgba(255,255,255,.14); }
.cm-sheet__list { overflow-y: auto; overscroll-behavior: contain; padding: .4rem 1.2rem 1.4rem; }
.cm-sheet__list h4 { margin: 1.2rem 0 .7rem; font-family: var(--font-plaque); font-size: 1.1rem; letter-spacing: .05em; color: var(--cm-brass-hi); }
.cm-sheet__list h4 small { font: 500 .8rem var(--font-ui); color: var(--parchment-dim); letter-spacing: 0; }

/* ---- a cigar, full screen ---- */
.cm-lb { position: fixed; inset: 0; z-index: 1003; display: flex; align-items: center; justify-content: center; background: #050302; animation: cm-in .15s ease-out; }
.cm-lb__fig { margin: 0; max-width: min(92vw, 72rem); display: flex; flex-direction: column; align-items: center; gap: .7rem; }
.cm-lb__img { max-width: 100%; max-height: calc(100vh - 12rem); object-fit: contain; border-radius: 4px; box-shadow: 0 1rem 3rem rgba(0,0,0,.7); }
.cm-lb figcaption { display: grid; gap: .3rem; width: 100%; max-width: 42rem; text-align: center; color: #f1e3c8; }
.cm-lb__dots { display: flex; justify-content: center; gap: .4rem; }
.cm-lb__dots:empty { display: none; }
.cm-lb__dots button { width: .6rem; height: .6rem; padding: 0; border: 0; border-radius: 50%; cursor: pointer; background: rgba(255,255,255,.3); }
.cm-lb__dots button[aria-current] { background: var(--cm-brass-hi); }
.cm-lb__t { font-family: var(--font-plaque); font-size: 1.35rem; letter-spacing: .04em; color: #f6d48f; }
.cm-lb__who { font: 500 .85rem var(--font-ui); color: #d8b57a; }
.cm-lb__words { white-space: pre-line; font-family: var(--font-body); font-size: 1rem; line-height: 1.45; max-height: 6.5em; overflow-y: auto; }
.cm-lb__words:empty { display: none; }
.cm-lb__foot { display: flex; justify-content: center; align-items: center; gap: 1.2rem; font-size: .85rem; color: var(--parchment-dim); }
.cm-lb__name { padding: .25rem .6rem; border: 0; border-radius: 4px; cursor: pointer; font: 600 .75rem var(--font-ui); color: #f6d48f; background: rgba(212,154,66,.16); }
.cm-lb__nameform { display: flex; justify-content: center; gap: .4rem; }
.cm-lb__nameform[hidden] { display: none; }
.cm-lb__nameform input { width: min(20rem, 70vw); padding: .4rem .6rem; border: 1px solid var(--cm-line); border-radius: 5px; background: #120905; color: #f1e3c8; font: .9rem var(--font-ui); }
.cm-lb__nameform button { padding: .4rem .8rem; border: 0; border-radius: 5px; cursor: pointer; font: 700 .8rem var(--font-ui); color: #2a160b; background: linear-gradient(180deg, #f6d48f, #c8913c); }
.cm-lb__hide { padding: .25rem .6rem; border: 0; border-radius: 4px; cursor: pointer; font: 600 .75rem var(--font-ui); color: #ffb4a8; background: rgba(217,69,59,.18); }
.cm-lb__x { position: absolute; top: max(.8rem, env(safe-area-inset-top)); right: .8rem; z-index: 1; width: 2.6rem; height: 2.6rem; border: 0; border-radius: 50%; cursor: pointer; font-size: 1.1rem; color: #fff; background: rgba(255,255,255,.12); }
.cm-lb__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 3rem; height: 3rem; border: 0; border-radius: 50%; cursor: pointer; font-size: 2rem; line-height: 1; color: #fff; background: rgba(255,255,255,.1); }
.cm-lb__nav--prev { left: .8rem; } .cm-lb__nav--next { right: .8rem; }
.cm-lb__nav:hover, .cm-lb__x:hover { background: rgba(255,255,255,.22); }
.cm-lb.is-single .cm-lb__nav { display: none; }
@keyframes cm-in { from { opacity: 0; } }

@media (max-width: 760px) {
  .cm-month, .cm-archive { padding: 0 .8rem; }
  .cm-month__head { gap: .6rem; }
  .cm-nav { width: 2.5rem; height: 2.5rem; font-size: 1.5rem; }
  .cm-band { gap: 1.3rem; }
  .cm-honors { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: .7rem; }
  .cm-honor { width: auto; flex-direction: column; align-items: flex-start; gap: .45rem; padding: 1rem .7rem .7rem; }
  .cm-honor__ribbon { left: .6rem; font-size: .54rem; letter-spacing: .12em; padding: .24rem .5rem; }
  .cm-honor__av, .cm-honor__ph { width: 2.6rem; height: 2.6rem; }
  .cm-honor__txt b { font-size: .95rem; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .cm-honor__txt small { font-size: .74rem; }
  .cm-count { font-size: .66rem; letter-spacing: .1em; }
  .cm-wall, .cm-row { grid-template-columns: repeat(2, 1fr); gap: .8rem .7rem; }
  .cm-tile { flex-basis: 10rem; }
  .cm-sheet { padding: 0; place-items: end stretch; }
  .cm-sheet__card { width: 100%; max-height: 92vh; border-radius: 16px 16px 0 0; }
  .cm-lb__nav { top: auto; bottom: 1rem; transform: none; }
  .cm-lb__img { max-height: calc(100vh - 15rem); }
}
@media (prefers-reduced-motion: reduce) { .cm-sheet, .cm-lb { animation: none; } .cm-cig__ph, .cm-tile, .cm-honor, .cm-person { transition: none; } }
