.luna-den, .luna-terminy {
  margin: 1.8rem 0;
  padding-top: .9rem;
  border-top: 3px solid var(--red, #bd1020);
  scroll-margin-top: 1rem;
}
.hs-main .luna-den h2, .hs-main .luna-terminy h2 { margin: .1em 0 .35em; }
.luna-skoky, .luna-nav { display: flex; flex-wrap: wrap; gap: .4em 1.4em; }
.luna-skoky a, .luna-nav a, .luna-plan a {
  color: #9f0d18;
  text-decoration: underline;
  text-underline-offset: .18em;
}
.luna-skoky a, .luna-nav a { font-weight: 600; }
.hs-lunarni-mrizka a.luna-cislo {
  width: fit-content;
  min-width: 2rem;
  min-height: 2rem;
  justify-content: center;
  color: #1b1918;
  font-weight: 600;
}
.hs-lunarni-mrizka .luna-vybrany-den a.luna-cislo,
.hs-lunarni-mrizka .luna-vybrany-den a.luna-cislo time { background: #af1020; color: #fff; }
.hs-lunarni-mrizka a.luna-cislo:hover { box-shadow: inset 0 -2px #b21020; }
.luna-rady, .luna-plan { margin: 0; }
.luna-rady { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.6rem; }
.luna-rady > div, .luna-plan > div { padding: .75rem 0; border-top: 1px solid #d7d0c9; }
.luna-rady dt, .luna-plan dt {
  font: 800 1.4rem/1.12 var(--head);
  color: #211e1c;
}
.luna-rady dd, .luna-plan dd { margin: .3em 0 0; line-height: 1.5; }
.luna-plan > div { display: grid; grid-template-columns: minmax(10rem,.7fr) minmax(0,2fr); gap: .4rem 1.5rem; }
.luna-plan dd, .luna-plan dd p { margin: 0; }
.luna-plan ul { display: flex; flex-wrap: wrap; gap: .2em 1.3em; margin: .35em 0 0; padding: 0; list-style: none; }
.luna-plan li { font-variant-numeric: tabular-nums; }
.luna-den > p, .luna-terminy > p { max-width: 76ch; }
@media (max-width: 680px) {
  .luna-rady, .luna-plan > div { display: block; }
  .luna-plan dt { margin-bottom: .3em; }
  .hs-lunarni-mrizka a.luna-cislo { width: 100%; min-width: 0; }
}
.luna-prubeh { margin: .8rem 0 1rem; padding: 0; list-style: none; }
.luna-prubeh li { margin: 0; padding: .45em .75em; background: #f5f1ec; border-bottom: 1px solid #fff; }
.luna-prubeh strong { display: inline-block; margin-right: .4em; font-variant-numeric: tabular-nums; }
.luna-rady dd p { margin: .3rem 0 .6rem; }
.luna-den > p a { color: #9f0d18; }

/* Lunární kalendář — sazba magazínu a obrazová příloha. */
.luna-uvod { border-bottom: 4px solid var(--red, #be101a); }
.luna-disk {
  display: inline-block; flex: 0 0 auto; width: var(--prumer, 38px); height: var(--prumer, 38px);
  background-image: url("lunarni-faze-atlas-v1.webp"); background-size: 800% 400%;
  background-position: var(--x) var(--y); background-repeat: no-repeat;
}
.luna-x0 { --x: 0%; } .luna-x1 { --x: 14.285714%; } .luna-x2 { --x: 28.571429%; } .luna-x3 { --x: 42.857143%; }
.luna-x4 { --x: 57.142857%; } .luna-x5 { --x: 71.428571%; } .luna-x6 { --x: 85.714286%; } .luna-x7 { --x: 100%; }
.luna-y0 { --y: 0%; } .luna-y1 { --y: 33.333333%; } .luna-y2 { --y: 66.666667%; } .luna-y3 { --y: 100%; }

.luna-dnes { margin: 1.4rem 0 2rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-top: 1rem; display: grid; grid-template-columns: minmax(200px,.9fr) minmax(0,1.8fr); gap: .85rem 1.4rem; }
.luna-dnes-hlava { display: flex; gap: .9rem; align-items: center; --prumer: 64px; }
.hs-main .luna-dnes-hlava h2 { font-size: clamp(30px,3vw,42px); margin: 0; }
.luna-dnes-hlava p { margin: .2em 0 0; }
.luna-dnes dl { margin: 0; display: grid; grid-template-columns: .65fr 1fr 1.35fr; align-items: center; }
.luna-dnes dl > div { padding: .15rem .8rem; border-left: 1px solid var(--line); }
.luna-dnes dt { color: #524b47; }
.luna-dnes dd { margin: .12em 0 0; font: 700 clamp(19px,2.1vw,29px)/1.1 var(--head); }
.luna-dnes-pata { grid-column: 1/-1; display: flex; gap: .35rem 1.2rem; justify-content: space-between; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--line); padding: .55rem 0; }
.luna-dnes-pata small { color: #514c49; font-size: .875rem; }
.luna-skoky { font-size: .95rem; }
.luna-volba { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .4rem 1.3rem; margin: 1rem 0; }
.hs-main .luna-volba h2 { margin: 0; font: 800 clamp(34px,4.4vw,57px)/1 var(--head); }
.luna-volba .hs-obloha-vyber { margin: 0; }
.luna-atlas { margin: 0 0 1.8rem; border-top: 4px solid var(--red,#be101a); color: #f6f2e8; background: #0c1a28 url("lunarni-noc-v1.webp") repeat; }
.luna-atlas figcaption { display: flex; align-items: baseline; gap: .4rem 1.2rem; flex-wrap: wrap; justify-content: space-between; margin: 0 clamp(14px,3.8vw,48px); padding: clamp(16px,2.4vw,30px) 0 10px; border-bottom: 1px solid #596373; }
.hs-main .luna-atlas h3 { margin: 0; font: 800 clamp(33px,4.1vw,55px)/1 var(--head); color: #fff; }
.luna-atlas h3::first-letter { text-transform: uppercase; }
.luna-atlas figcaption > span { font: 600 1rem/1.15 var(--body); color: #dfd5c1; }
.luna-tisk { padding: 0 clamp(14px,3.8vw,48px); margin: 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); list-style: none; }
.luna-tisk.luna-pocet-5 { grid-template-columns: repeat(5,minmax(0,1fr)); }
.luna-tisk.luna-pocet-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.luna-tisk li { min-width: 0; margin: 0; padding: 0; }
.luna-atlas .luna-tisk a { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 0 1.35rem; color: inherit; text-decoration: none; background: transparent; }
.luna-rytiny { position: relative; display: grid; width: 100%; place-items: center; padding: 1.4rem 0 1.05rem; }
.luna-rytiny::before { content: ""; position: absolute; inset: 51% 0 auto; height: 1px; background: #637079; }
.luna-tisk li:first-child .luna-rytiny::before { left: 50%; }
.luna-tisk li:last-child .luna-rytiny::before { right: 50%; }
.luna-rytiny .luna-disk { --prumer: clamp(70px,8.8vw,118px); position: relative; border-radius: 50%; outline: 1px solid #a3977c; outline-offset: 4px; }
.luna-tisk strong { color: #fff; font: 800 clamp(23px,2.5vw,34px)/1.06 var(--head); }
.luna-tisk time { font: 600 clamp(16px,1.7vw,22px)/1.4 var(--body); font-variant-numeric: tabular-nums; margin-top: .15rem; color: #f1d6a2; }
.luna-den-tydne { font-size: .9rem; color: #d0d8df; }
.luna-pozorovani { max-width: 24ch; margin: .55em .45em 0; line-height: 1.28; font-size: .99rem; }
.luna-atlas .luna-tisk a:is(:hover,:focus-visible) strong { text-decoration: underline; text-underline-offset: .15em; }
.luna-atlas a:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.luna-podpis { margin: 0 clamp(14px,3.8vw,48px); border-top: 1px solid #596373; padding: .6rem 0 .72rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .25em 1em; font-size: .88rem; color: #d4dde5; }

.hs-main #luna-vyber-dne { font-size: clamp(29px,3vw,40px); }
.luna-mesic #luna-vyber-dne + p { margin: .4em 0 1em; }
.luna-mesic .hs-lunarni-mrizka td { height: 70px; vertical-align: top; }
.luna-mesic .hs-lunarni-mrizka a.luna-cislo { display: flex; align-items: center; justify-content: space-between; gap: .15rem; width: 100%; padding: .2rem; min-height: 39px; box-sizing: border-box; background: transparent; }
.luna-cislo .luna-disk { --prumer: 28px; }
.luna-mesic .luna-cislo time { font: 700 1.28rem/1 var(--head); min-width: 1.5rem; padding: .15em; text-align: center; }
.luna-mesic .luna-vybrany-den { background: #fbf0eb; }
.luna-mesic .luna-udalost { width: fit-content; padding: .12em .2em; text-decoration: underline; text-underline-offset: .1em; }
.luna-mesic .luna-udalost small { color: #9d0914; font-size: .87rem; }
.luna-den, .luna-terminy { position: relative; border-top: 1px solid var(--line); padding-top: 1.2rem; }
.luna-den::before, .luna-terminy::before { content: ""; width: 66px; height: 3px; background: var(--red); position: absolute; top: -1px; left: 0; }
.hs-main :is(.luna-den,.luna-terminy) h2 { font-size: clamp(32px,3.6vw,47px); }
.luna-rady { column-gap: 2.2rem; }
.luna-rady dt { font-size: 1.7rem; }
.luna-prubeh { border-left: 3px solid var(--red); }
.luna-prubeh li { background: #f7f4ef; }
.luna-plan dt { font-size: 1.48rem; }
@media (max-width: 760px) {
  .luna-dnes { grid-template-columns: 1fr; gap: .85rem; }
  .luna-dnes dl > div:first-child { border-left: 0; padding-left: 0; }
  .luna-rytiny .luna-disk { --prumer: clamp(46px,8vw,70px); }
}
@media (max-width: 560px) {
  .luna-dnes { margin: 1rem 0 1.5rem; }
  .luna-dnes-hlava { --prumer: 50px; }
  .luna-dnes dl { grid-template-columns: 1fr 1.1fr 1.45fr; }
  .luna-dnes dl > div { padding: 0 .45rem; }
  .luna-dnes dt { font-size: .83rem; }
  .luna-dnes dd { font-size: 1.12rem; }
  .luna-volba .hs-obloha-vyber { grid-template-columns: 26px minmax(62px,1fr) minmax(45px,.7fr) auto 26px; gap: 3px; }
  .luna-atlas figcaption { align-items: center; }
  .luna-atlas figcaption > span { font-size: .85rem; }
  .luna-atlas .luna-tisk { display: block; }
  .luna-tisk li + li { border-top: 1px solid #3b4955; }
  .luna-atlas .luna-tisk a { display: grid; text-align: left; grid-template-columns: 58px 1fr; column-gap: 1rem; padding: .8rem 0; }
  .luna-rytiny { grid-row: span 4; align-self: center; padding: 0; }
  .luna-rytiny::before { display: none; }
  .luna-rytiny .luna-disk { --prumer: 48px; }
  .luna-tisk time, .luna-den-tydne { font-size: .9rem; margin: 0; }
  .luna-den-tydne { display: none; }
  .luna-pozorovani { max-width: none; margin: .2em 0 0; font-size: .9rem; }
  .luna-mesic .hs-lunarni-mrizka td { padding: 0; height: 59px; }
  .luna-mesic .hs-lunarni-mrizka a.luna-cislo { flex-direction: column; padding: 2px 0; gap: 2px; }
  .luna-cislo .luna-disk { --prumer: 18px; }
  .luna-mesic .luna-cislo time { font-size: 1.05rem; }
  .luna-mesic .hs-lunarni-mrizka a.luna-udalost { display: block; min-height: 0; width: 100%; padding: 1px 0; text-align: center; line-height: 1; }
  .luna-mesic .luna-udalost small { display: inline; font: 600 .66rem/1 var(--head); overflow-wrap: anywhere; }
}
@media print {
  .luna-atlas { print-color-adjust: exact; -webkit-print-color-adjust: exact; break-inside: avoid; }
  .luna-volba form, .luna-podpis, .luna-skoky { display: none; }
}

/* Denní přehled a sazba měsíčních termínů. */
.luna-barva-vlasy { --tisk: #ae1823; }
.luna-barva-domov { --tisk: #365675; }
.luna-barva-zahrada { --tisk: #38674e; }
.luna-barva-jidlo { --tisk: #8e4f24; }
.luna-znacka { display: block; flex: none; height: 2rem; width: 2rem; color: var(--tisk, #a71520); }
.luna-datum-dne { display: inline-block; color: #6e362d; font: 600 clamp(1.05rem,2.2vw,1.6rem)/1.2 var(--body); margin-left: .45rem; vertical-align: .1em; }
.luna-denni-graf { margin: 1rem 0 1.1rem; padding: 1rem clamp(14px,2.4vw,32px); background: #0c1a28 url("lunarni-noc-v1.webp"); color: #f5f1e7; border-top: 3px solid var(--red); }
.luna-denni-graf figcaption { font: 800 clamp(23px,2.4vw,32px)/1.2 var(--head); }
.luna-inkoust-0 { --barva-useku: #e9c88b; }
.luna-inkoust-1 { --barva-useku: #93becb; }
.luna-inkoust-2 { --barva-useku: #d9a192; }
.luna-cara-dne { display:flex; height:7px; margin: .95rem 0 .25rem; }
.luna-cara-dne span { min-width: 1px; flex-basis: 0; background: var(--barva-useku); }
.luna-cara-dne span + span { box-shadow: inset 1px 0 #0c1a28; }
.luna-hodiny { display:flex; justify-content: space-between; color:#c8d3dc; font-variant-numeric: tabular-nums; font-size:.81rem; }
.luna-denni-graf .luna-prubeh { display:flex; flex-wrap:wrap; gap:.6rem 2rem; border:0; margin:.6rem 0 0; padding:0; }
.luna-denni-graf .luna-prubeh li { display:grid; grid-template-columns:auto 1fr; column-gap:.55rem; border:0; padding:0; background:transparent; }
.luna-denni-graf li::before { content:""; width:.62rem; height:.62rem; margin-top:.32rem; background:var(--barva-useku); grid-row:span 3; }
.luna-prubeh .luna-znak { font: 700 1.43rem/1.2 var(--head); }
.luna-denni-graf .luna-prubeh li > span:last-child { color:#e0e5eb; }
.luna-rady dt { display:flex; gap:.7rem; align-items:center; }
.luna-rady dd { margin-top:.45rem; }
.luna-rady .luna-od-hodiny { display:inline-block; font-variant-numeric:tabular-nums; margin-right:.3em; color:#674138; }
.luna-rozpis { --popis: minmax(190px,28%); margin:1.15rem 0 1.7rem; border-block:1px solid var(--line,#d7d0c9); padding:0 0 .75rem; }
.luna-rozpis figcaption { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:baseline; gap:.25rem 1.1rem; padding:.85rem 0; }
.hs-main .luna-rozpis h3 { margin:0; font:800 clamp(28px,3.1vw,42px)/1 var(--head); }
.luna-rozpis h3::first-letter { text-transform:uppercase; }
.luna-rozpis figcaption p { margin:0; color:#514c47; }
.luna-stupnice, .luna-prace a { display:grid; grid-template-columns: var(--popis) minmax(0,1fr); align-items:center; }
.luna-stupnice { background:#f4f0eb; color:#4f4440; font-size:.83rem; font-weight:600; padding:.35rem 0; }
.luna-stupnice > span { padding-left:.6rem; }
.luna-stupnice > div { position:relative; height:1.25rem; }
.luna-stupnice b { position:absolute; transform: translateX(-50%); }
.luna-rozpis .luna-prace { margin:0; padding:0; list-style:none; }
.luna-prace li { margin:0; padding:0; border-bottom:1px solid #e5dfda; }
.luna-prace a { color:#221d1a; font-weight:600; min-height:36px; }
.luna-prace a:hover, .luna-prace a:focus-visible { color:#90131a; background:#faf6f2; }
.luna-prace a:hover .luna-prace-nazev, .luna-prace a:focus-visible .luna-prace-nazev { text-decoration:underline; text-underline-offset:.2em; }
.luna-prace-nazev { display:flex; align-items:center; gap:.55rem; padding:.25rem .65rem .25rem .4rem; line-height:1.24; }
.luna-prace .luna-znacka { width:21px;height:21px; }
.luna-kolej { position:relative; min-width:0; height:26px; display:flex; align-items:center; border-right:1px solid #e9e2da;
  background-image:linear-gradient(to right,#ded8d2 1px,transparent 1px); background-size:calc(100% / var(--dnu)) 100%; }
.luna-kolej svg { display:block; height:10px; width:100%; fill:var(--tisk); }
.luna-kolej small { margin-left:.45rem; padding:0 .35em; background:#fff; font-weight:400; font-size:.87rem; color:#675950; }
.hs-main .luna-skupina h3 { display:flex; align-items:center; gap:.65rem; padding:.55rem 0; margin:1rem 0 0; font-size:clamp(25px,2.5vw,33px); }
.luna-skupina h3 .luna-znacka { width:1.7rem; height:1.7rem; }
.luna-plan > div { scroll-margin-top:1rem; padding:.85rem 0; }
.luna-plan > div:target { background:#fcf6ed; box-shadow:inset 3px 0 var(--tisk); padding-left:.7rem; }
.luna-skupina .luna-plan ul { display:block; margin:.5rem 0 0; padding:0; }
.luna-plan li + li { border-top:1px dotted #dbd3cb; }
.luna-plan li a { display:grid; align-items:center; grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto; gap:.4rem .8rem; padding:.35rem .2rem; color:#211e1c; text-decoration:none; }
.luna-plan li a:hover, .luna-plan li a:focus-visible { background:#f6f2ee; color:#861019; }
.luna-plan li a:hover time span { text-decoration:underline; text-underline-offset:.18em; }
.luna-mez { display:flex; align-items:baseline; gap:.4em; }
.luna-oddo { font-size:.86em; color:#635b56; }
.luna-mez time { display:flex; flex-wrap:wrap; gap:0 .45em; align-items:baseline; }
.luna-mez time span { font-weight:600; }
.luna-mez time b { font-weight:500; color:#4c4542; }
.luna-sipka { color:var(--red); font-size:1.15em; }
.luna-plan .luna-volno { margin-top:.3em; color:#5e554e; }
@media (max-width:680px) {
  .luna-datum-dne { display:block; margin:.3rem 0 .5rem; }
  .luna-denni-graf .luna-prubeh { gap:.6rem 1rem; }
  .luna-rozpis { --popis: minmax(120px,38%); }
  .luna-prace a { min-height:40px; font-size:.9rem; }
  .luna-prace-nazev { gap:.3rem; padding-left:0; }
  .luna-prace .luna-znacka { width:17px; height:17px; }
  .luna-rozpis figcaption p { font-size:.92rem; }
  .luna-stupnice b:last-child { transform:translateX(-85%); }
  .luna-stupnice b:first-child { transform:none; }
  .luna-plan li a { gap:.5rem; }
}
@media (max-width:390px) {
  .luna-mez { display:block; }
  .luna-mez time { display:block; }
  .luna-mez time span, .luna-mez time b { display:block; }
  .luna-sipka { align-self:center; }
}
@media print {
  .luna-denni-graf,.luna-rozpis { print-color-adjust:exact; -webkit-print-color-adjust:exact; break-inside:avoid; }
}
