/* Text-first adaptation of the Chai poster. All artwork is local CSS / inline SVG. */
.layout { grid-template-columns: minmax(0, 1.85fr) minmax(310px, 1fr); align-items: start; }
#daily.daily { min-width: 0; min-height: 0; padding: 12px; border: 1px solid #af8e44; background: #f7f2df; box-shadow: 0 8px 35px #443c2210; }
#daily.daily::before { inset: 5px; border-color: #bca26088; }
.fx-card { --fx-ink: #143e31; --fx-gold: #94712a; --fx-line: #b4934e; --fx-muted: #62614b; position: relative; color: var(--fx-ink); background-color: #faf5e7; background-image: radial-gradient(#7764490c .7px, transparent .8px), linear-gradient(105deg, #e8dcbe22, transparent 45%, #e8dcbe25); background-size: 4px 4px, auto; border: 1px solid var(--fx-line); padding: 17px; font-family: var(--serif); overflow-wrap: anywhere; }
.fx-card::before, .fx-card::after { content: ""; position: absolute; width: 18px; height: 18px; border-color: var(--fx-gold); border-style: double; pointer-events: none; z-index: 1; }
.fx-card::before { left: -4px; top: -4px; border-width: 4px 0 0 4px; }
.fx-card::after { right: -4px; bottom: -4px; border-width: 0 4px 4px 0; }
.fx-card h2, .fx-card h3, .fx-card h4, .fx-card p, .fx-card ul, .fx-card dl { margin: 0; }
.fx-card ul { padding: 0; list-style: none; }
.fx-card dd { margin: 0; }
.fx-header { isolation: isolate; position: relative; text-align: center; border: 0; background: transparent; padding: 5px 12px 21px; }
.fx-mountains { position: absolute; left: 0; bottom: 0; width: 100%; height: 100px; color: #315e48; pointer-events: none; z-index: -1; }
.fx-wordmark { font: 600 18px/1.5 Georgia, var(--serif); letter-spacing: 1px; }
.fx-wordmark span { color: #a54331; margin: 0 5px; }
.fx-header h2 { font-size: clamp(34px, 3.9vw, 51px); font-weight: 700; line-height: 1.35; letter-spacing: 4px; margin: 9px 0 7px; }
.fx-date { font-size: 17px; line-height: 1.65; }
.fx-lunar { font-family: var(--sans); font-size: 12px; color: #65664f; margin-top: 2px !important; }
.fx-lunar span { padding: 0 8px; }
.fx-disclaimer-top { display: inline-block; margin-top: 13px !important; padding: 5px 13px; border: 3px double var(--fx-gold); color: #414f36; font-size: 13px; font-weight: 600; letter-spacing: 1px; }
.fx-overview { position: relative; isolation: isolate; padding: 17px 19px; border: 3px double var(--fx-line); text-align: center; }
.fx-overview .fx-mountains { height: 100%; max-height: 130px; opacity: .7; }
.fx-kicker { font-size: 14px; font-weight: 700; letter-spacing: 1px; }
.fx-headline-row { display: flex; align-items: center; justify-content: center; gap: 19px; margin-top: 15px; }
.fx-headline-row h3 { font-size: clamp(35px, 4vw, 58px); line-height: 1.3; letter-spacing: 2px; font-weight: 700; }
.fx-fortune { display: flex; flex-shrink: 0; flex-direction: column; align-items: center; gap: 5px; font-size: 13px; }
.fx-seal { display: grid; place-items: center; min-width: 59px; min-height: 62px; padding: 1px 8px; background: #a43527; color: #fff7e9; border: 4px double #fff7e9; outline: 1px solid #a43527; border-radius: 8px 3px 7px 2px; font-size: 36px; line-height: 1.3; box-shadow: inset 0 0 10px #edb4a13b; transform: rotate(-2deg); }
.fx-summary { margin-top: 13px !important; font-size: 19px; line-height: 1.65; letter-spacing: 1px; }
.fx-good-avoid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 17px; text-align: left; }
.fx-good-avoid > div { display: flex; gap: 11px; align-items: center; }
.fx-good-avoid b { display: grid; flex-shrink: 0; place-items: center; width: 34px; height: 37px; border-radius: 6px 2px 5px 2px; background: #345a40; color: #fff9e8; font-size: 25px; font-weight: 500; }
.fx-good-avoid > div:last-child b { background: #45463c; }
.fx-good-avoid p { font-size: 16px; line-height: 1.8; }
.fx-closed-note { border-top: 1px solid #bca16070; padding-top: 12px; margin-top: 15px !important; color: #60614a; font: 13px/1.8 var(--sans); }
.fx-block { border: 1px solid var(--fx-line); padding: 14px 13px 12px; margin-top: 13px; }
.fx-section-heading { display: flex; align-items: center; justify-content: center; gap: 12px; text-align: center; }
.fx-section-heading > span { flex: 1; max-width: 80px; height: 1px; background: linear-gradient(90deg, transparent, var(--fx-gold)); }
.fx-section-heading > span:last-child { transform: rotate(180deg); }
.fx-section-heading h3 { flex: 0 1 auto; font-size: 23px; font-weight: 700; line-height: 1.4; letter-spacing: 1px; }
.fx-section-note { text-align: center; color: var(--fx-muted); font: 12px/1.75 var(--sans); margin-top: 5px !important; }
.fx-periods { display: grid; gap: 9px; margin-top: 12px; }
.fx-period-row { display: grid; grid-template-columns: 114px minmax(0, 1fr); gap: 13px; padding: 11px 12px; border: 1px solid #b49653; background: linear-gradient(110deg, #fffcf399, #ece4cf44); }
.fx-period-title { display: flex; flex-wrap: wrap; gap: 3px 6px; align-content: center; justify-content: center; text-align: center; border-right: 1px solid #bba365; padding-right: 12px; }
.fx-period-title h4 { font-size: 29px; line-height: 1.35; letter-spacing: 2px; width: 100%; }
.fx-hours { width: 100%; font: 11px/1.5 var(--sans); font-variant-numeric: tabular-nums; }
.fx-luck { display: inline-flex; justify-content: center; align-items: center; min-height: 26px; border: 3px double #fbf4de; outline: 1px solid currentColor; border-radius: 4px; background: #96752f; color: #fff7de; padding: 0 8px; font-size: 16px; line-height: 1.5; margin-top: 5px; }
.fx-luck--good { background-color: #3f694d; }
.fx-luck--caution { background-color: #a54332; }
.fx-segments { display: grid; align-content: center; gap: 5px; }
.fx-segments > div { display: grid; grid-template-columns: 102px minmax(0, 1fr); gap: 7px; }
.fx-segments dt { font: 12px/1.8 var(--sans); font-variant-numeric: tabular-nums; color: #43513d; }
.fx-segments dd { font-size: 15px; line-height: 1.6; }
.fx-fineprint { text-align: center; margin-top: 10px !important; color: var(--fx-muted); font: 12px/1.8 var(--sans); }
.fx-windows { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 13px; }
.fx-window { padding: 13px 12px; border: 3px double #567046; text-align: center; background: #dae2c41f; }
.fx-window--caution { color: #7e2b20; border-color: #a14d35; background: #c8704d08; }
.fx-window h3 { font-size: 22px; line-height: 1.5; letter-spacing: 1px; }
.fx-window-time { font-size: 18px; margin-top: 5px !important; line-height: 1.5; }
.fx-window-time span { display: block; font-size: 17px; font-variant-numeric: tabular-nums; }
.fx-window-time + p { font-size: 14px; line-height: 1.8; margin-top: 6px; }
.fx-window small { display: block; color: #67634f; font: 11px/1.75 var(--sans); margin-top: 7px; }
.fx-sector-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; margin-top: 13px; }
.fx-sector-grid > div:last-child { border-left: 1px solid #bda568; padding-left: 17px; }
.fx-sector-grid h4 { font-size: 17px; margin-bottom: 9px; }
.fx-sector-grid ul { display: grid; gap: 9px; }
.fx-sector-grid li { display: flex; align-items: center; gap: 9px; font-size: 16px; line-height: 1.65; }
.fx-element { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; color: #fff8de; background: #9b782e; font-size: 24px; line-height: 1; }
.fx-sector-grid li:nth-child(2n) .fx-element { background-color: #416578; }
.fx-sector-grid > div:last-child .fx-element { background-color: #9a4939; }
.fx-sector-closed { text-align: center; padding: 18px 5px 10px; }
.fx-sector-closed > span { display: inline-grid; place-items: center; width: 37px; height: 37px; background: #49654d; color: #fff8de; border-radius: 50%; font-size: 24px; margin-bottom: 9px; }
.fx-sector-closed p { font-size: 17px; line-height: 1.8; }
.fx-sector-closed small { display: block; margin-top: 5px; font: 12px/1.8 var(--sans); color: #62614b; }
.fx-clock-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 13px !important; }
.fx-clock-grid li { display: grid; grid-template-columns: 36px 1fr; gap: 0 6px; padding: 7px 10px; border: 1px solid #bba363; align-items: center; min-width: 0; }
.fx-clock-grid li.fx-clock-active { background: #d4dfc544; border-color: #69835d; }
.fx-clock-name { grid-row: 1 / 3; font-size: 26px; line-height: 1.4; }
.fx-clock-name small { font-size: 11px; margin-left: 1px; }
.fx-clock-hours { font: 11px/1.6 var(--sans); color: #6b674f; font-variant-numeric: tabular-nums; }
.fx-clock-practice { font-size: 14px; line-height: 1.6; }
.fx-fengshui { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 18px 4px 12px; text-align: center; }
.fx-compass { display: grid; place-items: center; flex-shrink: 0; width: 42px; height: 42px; border: 4px double #aa8a44; border-radius: 50%; font-size: 26px; line-height: 1; }
.fx-fengshui h3 { font-size: 18px; letter-spacing: 2px; }
.fx-fengshui p { font-size: 14px; line-height: 1.8; margin-top: 3px; }
.fx-fengshui p span { padding: 0 7px; color: #9f783a; }
.fx-quote { margin: 1px 0 11px; text-align: center; font-size: 23px; line-height: 1.7; font-weight: 600; letter-spacing: 1px; }
.fx-disclaimer-bottom { font: 11px/1.85 var(--sans); text-align: center; color: #65614e; padding: 0 5px; }
.fx-evidence { border-top: 1px solid #c7b989; margin-top: 15px; padding-top: 3px; font-family: var(--sans); color: #59604b; }
#daily .fx-evidence summary { display: list-item; min-height: 44px; padding: 10px 2px; font-size: 12px; cursor: pointer; }
.fx-evidence-content { border-top: 1px dashed #c7b989; padding: 12px 2px; }
.fx-evidence-content h3 { color: #354a38; font: 600 18px/1.7 var(--serif); }
.fx-evidence-content p { font-size: 13px; line-height: 1.9; margin-top: 6px; }
.fx-evidence-content .fx-authored { font-size: 12px; margin-top: 9px; }
.fx-source-links { display: flex; flex-wrap: wrap; gap: 4px 15px; margin-top: 8px; }
.fx-source-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; text-underline-offset: 4px; }
.fx-card-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 3px 12px; align-items: center; font: 11px/1.8 var(--sans); color: #65614e; border-top: 1px solid #c7b989; }
.fx-card-footer a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 4px; }
.fx-template-preview { border-top: 1px solid #c7b989; font-family: var(--sans); color: #59604b; }
#daily .fx-template-preview summary { display: list-item; min-height: 44px; padding: 10px 2px; font-size: 12px; cursor: pointer; }
.fx-template-preview > p { font-size: 12px; line-height: 1.8; margin-bottom: 10px; }
.fx-template-preview img { display: block; width: 100%; max-width: 430px; height: auto; margin: 0 auto 15px; }
.fx-card a:focus-visible, .fx-card summary:focus-visible { outline: 3px solid #a44131; outline-offset: 3px; }
.fx-unavailable { padding: 100px 20px; text-align: center; color: #626b51; }
.fx-unavailable > span { font: 55px var(--serif); color: #966f32; }
.fx-unavailable h2 { font: 25px/1.6 var(--serif); }
.fx-unavailable p { font-size: 14px; }
@media (max-width: 1100px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .fx-card { padding: 24px; }
  .fx-header h2 { font-size: 48px; }
  .fx-headline-row h3 { font-size: 57px; }
  .fx-period-row { grid-template-columns: 140px minmax(0, 1fr); }
  .fx-segments > div { grid-template-columns: 122px minmax(0, 1fr); }
  .fx-segments dt { font-size: 14px; }
  .fx-clock-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 690px) {
  #daily.daily { padding: 7px; }
  .fx-card { padding: 13px; }
  .fx-header { padding: 4px 0 17px; }
  .fx-wordmark { font-size: 16px; }
  .fx-header h2 { font-size: clamp(30px, 7.9vw, 43px); letter-spacing: 2px; }
  .fx-date { font-size: 15px; }
  .fx-disclaimer-top { font-size: 11px; letter-spacing: 0; padding: 4px 9px; }
  .fx-overview { padding: 16px 12px; }
  .fx-kicker { font-size: 12px; letter-spacing: 0; }
  .fx-headline-row { gap: 13px; }
  .fx-headline-row h3 { font-size: clamp(31px, 7.8vw, 46px); letter-spacing: 0; }
  .fx-fortune { font-size: 11px; }
  .fx-seal { min-width: 47px; min-height: 50px; font-size: 30px; padding: 1px 5px; }
  .fx-summary { font-size: 17px; letter-spacing: 0; }
  .fx-good-avoid { grid-template-columns: 1fr; gap: 10px; margin-top: 15px; }
  .fx-good-avoid p { font-size: 16px; }
  .fx-block { padding: 12px 9px; }
  .fx-section-heading { gap: 7px; }
  .fx-section-heading h3 { font-size: 20px; letter-spacing: 0; }
  .fx-section-heading > span { max-width: 32px; }
  .fx-period-row { grid-template-columns: 1fr; gap: 9px; padding: 12px 10px; }
  .fx-period-title { display: flex; flex-wrap: nowrap; justify-content: flex-start; border-right: 0; border-bottom: 1px solid #bba365; padding: 0 0 10px; align-items: center; gap: 9px; }
  .fx-period-title h4 { width: auto; font-size: 26px; flex-shrink: 0; }
  .fx-period-title .fx-hours { width: auto; font-size: 11px; flex: 1; text-align: left; }
  .fx-luck { flex-shrink: 0; margin-top: 0; font-size: 16px; }
  .fx-segments { gap: 8px; }
  .fx-segments > div { grid-template-columns: 98px minmax(0, 1fr); gap: 6px; }
  .fx-segments dt { font-size: 11px; line-height: 2; }
  .fx-segments dd { font-size: 15px; }
  .fx-windows { gap: 9px; }
  .fx-window { padding: 11px 7px; }
  .fx-window h3 { font-size: 18px; letter-spacing: 0; }
  .fx-window-time { font-size: 18px; }
  .fx-window-time span { font-size: 15px; }
  .fx-window-time + p { font-size: 13px; }
  .fx-window small { font-size: 10px; }
  .fx-sector-grid { grid-template-columns: 1fr; gap: 14px; }
  .fx-sector-grid > div:last-child { border-left: 0; padding-left: 0; border-top: 1px solid #bda568; padding-top: 12px; }
  .fx-sector-grid h4 { font-size: 17px; }
  .fx-sector-grid li { font-size: 16px; }
  .fx-clock-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .fx-clock-grid li { padding: 6px; grid-template-columns: 29px 1fr; gap: 0 3px; }
  .fx-clock-name { font-size: 24px; }
  .fx-clock-name small { display: none; }
  .fx-clock-hours { font-size: 10px; }
  .fx-clock-practice { font-size: 13px; }
  .fx-fengshui { gap: 8px; padding-top: 16px; }
  .fx-compass { width: 36px; height: 36px; font-size: 22px; }
  .fx-fengshui h3 { font-size: 18px; }
  .fx-fengshui p { font-size: 13px; }
  .fx-fengshui p span { padding: 0 3px; }
  .fx-quote { font-size: 20px; letter-spacing: 0; }
  .fx-card-footer { padding-top: 7px; }
}
@media (max-width: 359px) {
  .fx-card { padding: 9px; }
  .fx-headline-row { gap: 10px; }
  .fx-headline-row h3 { font-size: 30px; }
  .fx-windows { grid-template-columns: 1fr; }
  .fx-clock-grid { grid-template-columns: 1fr; }
  .fx-clock-grid li { grid-template-columns: 35px 92px minmax(0, 1fr); }
  .fx-clock-name { grid-row: auto; }
}
@media (prefers-reduced-motion: reduce) { .fx-card *, .fx-card *::before, .fx-card *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
@media print { #daily.daily { max-width: none; padding: 7px; border-color: #9a7d3c; } .fx-card { print-color-adjust: exact; -webkit-print-color-adjust: exact; } .fx-header { display: block; } .fx-card-footer, .fx-evidence, .fx-template-preview { display: none; } .fx-block, .fx-period-row, .fx-window { break-inside: avoid; } }
