/* almanac_month.css
 * The Monthly Energy Forecast plate. Lifted verbatim from Sam's build
 * reference (artifact "Reflector's Almanac Forecast Spec") so the shipped
 * forecast is the design that was approved, not an interpretation of it.
 * Deliberately fixed-theme: this is a printed page, not a UI surface.
 */
.almanac { min-width:880px; padding:34px 26px 30px; color:#575170;
  font-family:'Manrope',-apple-system,Helvetica,sans-serif; line-height:1.55;
  --paper:#f9f4e9; --panel:#fdf9ef; --ink:#232038; --ink2:#575170; --ink3:#8d88a2;
  --gilt:#a4741b; --gilt-soft:#c9a45c; --edge:#e4dac2;
  --man:#d63384; --gen:#3a72c4; --pro:#2f9b80; --mg:#8852a4; --amethyst:#7d5ac4; }

  .almanac .wrap { max-width:900px; margin:0 auto; }
  .almanac .brand { font-family:'Cinzel',Georgia,serif; font-weight:500; font-size:11px; letter-spacing:0.34em;
    text-transform:uppercase; color:var(--gilt); text-align:center; margin-bottom:14px; }
  .almanac h1 { font-family:'Cormorant Garamond',Georgia,serif; font-weight:400; font-size:44px;
    color:var(--ink); line-height:1.06; text-align:center; margin-bottom:5px; }
  .almanac .sub { font-family:'Cormorant Garamond',Georgia,serif; font-style:italic; font-size:16.5px;
    color:var(--ink2); text-align:center; margin-bottom:8px; }
  .almanac .rule { width:120px; height:1px; margin:14px auto 24px;
    background:linear-gradient(90deg,var(--paper),var(--gilt-soft),var(--paper)); }

  .almanac .legend { display:flex; flex-wrap:wrap; justify-content:center; gap:9px 16px; align-items:center;
    margin-bottom:22px; font-size:12px; color:var(--ink2); }
  /* the legend chip carries the same tint the block in the grid does, so the
     swatch and the day it stands for are literally the same colour */
  .almanac .legend .dot { display:inline-block; width:17px; height:17px; border-radius:2px;
    margin-right:8px; vertical-align:-4px; }
  .almanac .legend .dot.blend { background:linear-gradient(100deg, rgba(214,51,132,0.26) 0%,
    rgba(214,51,132,0.18) 40%, rgba(58,114,196,0.18) 60%, rgba(58,114,196,0.26) 100%); }
  /* an open day is cream with a moon on it, so its chip is too */
  .almanac .legend .dot.openchip { background:var(--panel); border:1px solid var(--edge);
    display:inline-flex; align-items:center; justify-content:center; }
  .almanac .legend b { color:var(--ink); font-weight:600; }
  .almanac .brand { text-align:center; font-family:'Cinzel',Georgia,serif; font-weight:500;
    font-size:11px; letter-spacing:0.34em; text-transform:uppercase; color:var(--gilt);
    margin-bottom:14px; }
  .almanac .ded { text-align:center; margin-top:16px; }
  .almanac .ded-for { font-family:'Cormorant Garamond',Georgia,serif; font-style:italic; font-weight:400;
    font-size:13px; letter-spacing:0.01em; text-transform:none; color:var(--gilt);
    margin-right:11px; }
  .almanac .ded-name { font-family:'Cormorant Garamond',Georgia,serif; font-weight:600; font-size:15px;
    letter-spacing:0.22em; text-transform:uppercase; color:var(--ink); }
  .almanac .ded-born { font-family:'Cormorant Garamond',Georgia,serif; font-style:italic; font-size:12.5px;
    color:var(--ink3); margin-top:3px; }
  .almanac .ded-born .sep { color:var(--gilt-soft); padding:0 6px; font-style:normal; }
  .almanac .corona { position:absolute; left:50%; transform:translate(-50%,-50%); z-index:2; }
  .almanac .moonmark { position:absolute; left:0; right:0; text-align:center; z-index:4;
    font-family:'Cormorant Garamond',Georgia,serif; font-style:italic; font-weight:500;
    font-size:10.5px; line-height:1.35; color:var(--gilt); }
  .almanac .moonmark .mg { font-style:normal; font-size:9px; margin-right:3px; }
  .almanac .cycmark { position:absolute; left:8px; z-index:4; font-family:'Cormorant Garamond',Georgia,serif;
    font-style:italic; font-size:10px; line-height:1; color:var(--gilt); white-space:nowrap; }
  .almanac .cycmark .cstar { font-style:normal; font-size:9px; margin-right:2px; }
  .almanac .clockkey { font-family:'Oswald',sans-serif; font-weight:300; font-size:8.5px; letter-spacing:0.2em;
    text-transform:uppercase; color:var(--ink3); text-align:center; margin-bottom:22px; }

  .almanac .grid { display:grid; grid-template-columns:repeat(7,1fr); gap:8px; }
  .almanac .wd { font-family:'Oswald',sans-serif; font-weight:400; font-size:9px; letter-spacing:0.26em;
    text-transform:uppercase; color:var(--ink3); text-align:center; padding-bottom:6px; }
  .almanac .cell { position:relative; height:172px; border-radius:10px; overflow:hidden;
    background:var(--panel); border:1px solid var(--edge);
    box-shadow:0 1px 3px rgba(35,32,56,0.04); }
  .almanac .cell.blank { background:transparent; border:none; box-shadow:none; }
  /* the translucent stencil: a ghost of cream traced around the numeral, so it
     stays legible where a carried-over sliver crosses the corner, while the
     colour runs nearly whole beneath it */
  .almanac .dom { position:absolute; top:5px; left:9px; z-index:3;
    font-family:'Cormorant Garamond',Georgia,serif; font-weight:600; font-size:17px; color:var(--ink);
    text-shadow:
      -1.5px -1.5px 0 rgba(253,249,239,0.42), 1.5px -1.5px 0 rgba(253,249,239,0.42),
      -1.5px 1.5px 0 rgba(253,249,239,0.42), 1.5px 1.5px 0 rgba(253,249,239,0.42),
      -2px 0 0 rgba(253,249,239,0.38), 2px 0 0 rgba(253,249,239,0.38),
      0 -2px 0 rgba(253,249,239,0.38), 0 2px 0 rgba(253,249,239,0.38),
      0 0 3px rgba(253,249,239,0.32); }
  /* translucent windows, outlined and rounded, inset from the cell edges */
  .almanac .band { position:absolute; left:4px; right:4px; z-index:1; border:1px solid; border-radius:5px; }
  /* the caption: type above, whole-window hours below, inside the block.
     Every opening window is drawn at least tall enough to hold it (the
     guaranteed-room rule), and a late window is shifted up just enough to
     keep the whole caption inside the day. */
  .almanac .band .t { position:absolute; top:2px; right:14px; text-align:right;
    white-space:nowrap; z-index:2; }
  .almanac .lbl-type { display:block; font-family:'Manrope',-apple-system,Helvetica,sans-serif;
    font-weight:700; font-size:8.5px; letter-spacing:0.09em; text-transform:uppercase;
    line-height:1.3; margin-right:-9px; }
  .almanac .startw { display:block; font-family:'Cormorant Garamond',Georgia,serif; font-weight:500;
    font-size:11px; line-height:1.15; margin-top:1px; opacity:0.62; }
  .almanac .endw { position:absolute; bottom:1px; right:14px; z-index:2; white-space:nowrap;
    font-family:'Cormorant Garamond',Georgia,serif; font-weight:500; font-size:11px;
    line-height:1.15; opacity:0.62; }
  /* the plumb line: a weighted cord from start to end. A dot marks a true
     terminus; a dotless end running off the block's edge means the window
     continues on the neighbouring day. */
  .almanac .spine { position:absolute; right:7px; width:1px; z-index:2; opacity:0.5; }
  .almanac .spine .sdot { position:absolute; left:50%; transform:translateX(-50%);
    width:4px; height:4px; border-radius:50%; }
  .almanac .spine .sdot.t { top:-2px; }
  .almanac .spine .sdot.b { bottom:-2px; }
  /* open days keep the same cream field as every other day: nothing completes,
     so nothing is drawn. The moon and the label carry the identity instead. */
  .almanac .open-moon { position:absolute; top:41%; left:50%; transform:translate(-50%,-50%); }
  .almanac .open-lbl { position:absolute; bottom:8px; left:0; right:0; text-align:center;
    font-family:'Oswald',sans-serif; font-weight:400; font-size:8px; letter-spacing:0.3em;
    text-transform:uppercase; color:var(--amethyst); }

  .almanac h2.section { font-family:'Cormorant Garamond',Georgia,serif; font-weight:400; font-size:26px;
    color:var(--ink); margin:46px 0 4px; text-align:center; }
  .almanac .section-sub { font-family:'Cormorant Garamond',Georgia,serif; font-style:italic; font-size:14.5px;
    color:var(--ink3); text-align:center; margin-bottom:18px; }


  .almanac .sec-blurb { font-size:13px; color:var(--ink2); line-height:1.65; max-width:430px; }

  /* MG reference strip: it can never appear in Sam's own calendar */
  .almanac .mgref { margin-top:38px; display:flex; gap:14px; align-items:center;
    background:var(--panel); border:1px dashed #d9c9e4; border-radius:12px; padding:13px 16px; }
  .almanac .miss-chip { width:38px; height:38px; border-radius:9px; flex:none;
    background:linear-gradient(120deg, rgba(214,51,132,0.30), rgba(58,114,196,0.30));
    border:1px solid rgba(136,82,164,0.45); }
  .almanac .mgref .cells { display:grid; grid-template-columns:repeat(2,74px); gap:7px; flex:none; }
  .almanac .mgref .mini { position:relative; height:78px; border-radius:8px; overflow:hidden;
    background:var(--panel); border:1px solid var(--edge); }
  .almanac .mgref .mini .dom { top:3px; left:6px; font-size:12px; }
  .almanac .mgref .mini { height:96px; }
  .almanac .mgref .mini .band .t { top:2px; right:6px; }
  .almanac .mgref .mini .endw { right:6px; }
  .almanac .mgref .mini .lbl-type { margin-right:0; }
  .almanac .mgref .mini .lbl-type { font-size:7px; letter-spacing:0.07em; }
  .almanac .mgref .mini .startw, .almanac .mgref .mini .endw { font-size:9.5px; }
  .almanac .mgref .txt { font-size:11.5px; color:var(--ink2); line-height:1.6; }
  .almanac .mgref .txt b { font-family:'Cormorant Garamond',Georgia,serif; font-size:14px; color:var(--ink); }

  /* your energy windows: ruled ledger sections */
  .almanac .sec { margin-top:60px; }
  .almanac .sec-name { text-align:center; font-family:'Cormorant Garamond',Georgia,serif; font-weight:600;
    font-size:22px; color:var(--ink); letter-spacing:0.01em; }
  .almanac .sec-name .dot { display:inline-block; width:8px; height:8px; border-radius:50%;
    margin-right:11px; vertical-align:2px; }
  .almanac .sec-strat { text-align:center; font-family:'Oswald',sans-serif; font-weight:400; font-size:9.5px;
    letter-spacing:0.24em; text-transform:uppercase; margin-top:7px; }
  .almanac .sec-blurb { text-align:center; font-size:13px; color:var(--ink2); line-height:1.7;
    max-width:540px; margin:10px auto 0; }
  .almanac .flavors { display:flex; justify-content:center; margin:24px auto 0; max-width:780px; }
  .almanac .flavor { flex:1 1 0; padding:2px 24px; text-align:center; }
  .almanac .flavor + .flavor { border-left:1px solid var(--edge); }
  .almanac .flavor b { display:block; font-family:'Cormorant Garamond',Georgia,serif; font-weight:600;
    font-size:14.5px; color:var(--ink); }
  .almanac .flavor span { display:block; font-size:11px; color:var(--ink2); line-height:1.6; margin-top:3px; }
  .almanac .days { margin-top:28px; border-top:1px solid var(--edge); }
  .almanac .dayrow { display:grid; grid-template-columns:152px 1fr; gap:0 28px;
    padding:17px 6px 16px; border-bottom:1px solid var(--edge); }
  .almanac .d-date { font-family:'Cormorant Garamond',Georgia,serif; font-weight:600; font-size:17px;
    color:var(--ink); line-height:1.3; padding-top:1px; }
  .almanac .d-note { display:block; font-family:'Cormorant Garamond',Georgia,serif; font-style:italic;
    font-weight:500; font-size:12.5px; color:var(--ink3); margin-top:2px; }
  .almanac .win { position:relative; padding-left:17px; }
  .almanac .win + .win { margin-top:13px; }
  .almanac .win::before { content:''; position:absolute; left:0; top:5px; bottom:4px; width:2px;
    border-radius:1px; background:var(--spine); }
  .almanac .w-time { font-family:'Cormorant Garamond',Georgia,serif; font-weight:600; font-size:15.5px;
    line-height:1.3; }
  .almanac .w-sub { font-family:'Cormorant Garamond',Georgia,serif; font-weight:600; font-size:14.5px;
    color:var(--ink); line-height:1.4; margin-top:1px; }
  .almanac .ssym { display:inline-block; vertical-align:-1.5px; margin-right:5px; }
  .almanac .lbl-type .ssym { vertical-align:-1px; margin-right:3px; }
  .almanac .w-mech { font-family:'Cormorant Garamond',Georgia,serif; font-size:13.5px; color:var(--ink2);
    line-height:1.55; margin-top:4px; }
  .almanac .w-mech > span { display:block; }
  .almanac .w-mech b { font-weight:600; color:var(--ink); }
  .almanac .w-mech i { font-style:italic; }
  .almanac .w-mech .sep { color:var(--gilt-soft); padding:0 7px; }
  .almanac .w-mech .gates { white-space:nowrap; }
  .almanac .d-open { font-family:'Cormorant Garamond',Georgia,serif; font-size:13.5px; color:var(--ink2);
    line-height:1.6; padding-top:2px; }

  .almanac .tip { position:fixed; z-index:9; pointer-events:none; background:var(--ink); color:var(--paper);
    font-size:11.5px; line-height:1.5; padding:8px 11px; border-radius:8px; max-width:250px;
    opacity:0; transition:opacity .08s; }
  .almanac .tip b { color:#fff; }
  .almanac .foot { margin-top:34px; text-align:center; font-family:'Oswald',sans-serif; font-weight:300;
    font-size:8.5px; letter-spacing:0.18em; text-transform:uppercase; color:var(--ink3); }

