/* turkeyroutes — /practical/public-holidays/ (app/site/pratik-public-holidays.php). Uses the tokens of tr.css. 01.10 */
:root { --hol: #c8102e; --hol-2: #fdeceb; --half: #f3c969; --half-2: #fff4d6; }

/* next-holiday panel */
.th-next { display: grid; grid-template-columns: 210px minmax(0, 1fr); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--float); margin-bottom: 30px; background: #fff; }
.th-count { background: var(--night); color: #fff; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 22px 16px; text-align: center; }
.th-num { font: 800 4.6rem/1 var(--f-display); letter-spacing: -.04em; }
.th-unit { font: 600 .74rem/1.2 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: #c9d1e3; margin-top: 8px; }
.th-next-b { padding: 20px 24px 18px; background: linear-gradient(180deg, #f3faf9, #fff 70%); }
.th-next-b h2 { font-size: 1.8rem; font-weight: 800; margin: 6px 0 4px; }
.th-next-d { margin: 0; font-size: 1rem; }
.th-next-d .mono { font-weight: 600; color: var(--night); }
.th-next-e { margin: 6px 0 0; font-size: .92rem; color: var(--ink-2); }
.th-next-p { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 22px; }
.th-next-p li { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.th-next-p li > span:first-child { font-weight: 600; }
.th-next-p .tag { margin: 0; }
.th-next-p .th-eve { display: none; }

/* 15-month calendar */
.th-key { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 0 0 14px; font-size: .86rem; }
.th-key small { color: var(--ink-2); font-size: .78rem; }
.th-k::before { content: ""; display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-right: 6px; vertical-align: -2px; }
.th-k--full::before { background: var(--hol); }
.th-k--half::before { background: linear-gradient(135deg, var(--half) 50%, var(--half-2) 50%); border: 1px solid #d9a730; }
.th-k--today::before { background: #fff; outline: 2px solid var(--night); outline-offset: -2px; }
.th-cal { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.th-mon { border: 1px solid var(--line); border-radius: 16px; padding: 10px 10px 8px; background: #fff; }
.th-mon h3 { font-size: 1rem; font-weight: 800; margin: 0 0 6px; }
.th-mon h3 small { font: 600 .7rem/1 var(--f-mono); color: var(--ink-2); }
.th-days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.th-days li { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 6px; font: 400 .72rem/1 var(--f-mono); color: var(--ink-2); }
.th-days .th-wd { font-weight: 600; font-size: .6rem; color: #9aa1b0; aspect-ratio: auto; padding-bottom: 2px; }
.th-days li:nth-child(7n), .th-days li:nth-child(7n - 1) { color: #9aa1b0; }
.th-days .is-full { background: var(--hol); color: #fff !important; font-weight: 600; cursor: help; }
.th-days .is-half { background: linear-gradient(135deg, var(--half) 50%, var(--half-2) 50%); color: var(--night) !important; font-weight: 600; cursor: help; }
.th-days .is-today { outline: 2px solid var(--night); outline-offset: -1px; color: var(--night); font-weight: 700; }
.th-days .is-past { opacity: .4; }

/* holiday periods */
.th-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.th-grp { border: 1px solid var(--line); border-left: 5px solid var(--sea); border-radius: 18px; padding: 14px 16px 12px; background: #fff; min-width: 0; }
.th-grp.is-rel { border-left-color: var(--hol); }
.th-grp.is-next { box-shadow: var(--float); border-color: #c8d9da; }
.th-grp.is-past { opacity: .55; }
.th-grp-h { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; margin-bottom: 10px; }
.th-grp-d { margin: 0 0 4px; font-weight: 600; color: var(--ink-2); font-size: .82rem; }
.th-grp h3 { font-size: 1.25rem; font-weight: 800; margin: 0; }
.th-grp h3 small { display: block; font: 400 .82rem/1.3 var(--f-body); color: var(--ink-2); margin-top: 3px; letter-spacing: 0; }
.th-grp-t { margin: 0; display: flex; flex-wrap: wrap; align-content: flex-start; justify-content: flex-end; gap: 4px; }
.th-grp-t .tag { margin: 0; }
.th-len { background: var(--night); color: #fff; }
.th-tw { border-radius: 12px; }
.th-tw table { font-size: .86rem; }
.th-tw th, .th-tw td { padding: 7px 10px; }
.th-tw tr.is-eve td { background: #fffaf0; }
.th-day { white-space: nowrap; }
.th-we { display: inline-block; font: 600 .58rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); border: 1px solid var(--line); border-radius: 4px; padding: 2px 4px; vertical-align: 1px; }
.th-eve { display: block; color: var(--ink-2); font-size: .72rem; line-height: 1.3; margin-top: 2px; }

/* what it means */
.th-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.th-card { display: flex; flex-direction: column; border-top-width: 4px; }
.th-card .src { margin-top: auto; padding-top: 6px; }
.th-card--no { border-top-color: var(--warn); }
.th-card--mix { border-top-color: var(--sea); }
.th-card--nv { border-top-color: #d9a730; background: #fffdf8; }
.th-card-k { font: 600 .66rem/1.4 var(--f-mono) !important; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 6px !important; }
.th-card-k .nv { font: 700 .66rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .05em; padding: 3px 6px; }
.th-det { margin: 0 0 8px; font-size: .86rem; }
.th-det summary { cursor: pointer; font-weight: 600; color: var(--sea); }
.th-det p { margin-top: 6px; }
.th-notes { margin-top: 18px; padding: 14px 18px; border-radius: 16px; background: var(--soft); max-width: 900px; }
.th-notes h3 { margin: 0 0 6px; font-size: 1.05rem; }
.th-notes ul { margin: 0; padding-left: 18px; }
.th-notes li, .th-notes p { margin: 0 0 4px; font-size: .92rem; }

/* Ramadan + 2028 */
.th-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.th-ram { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 8px; }
.th-ram li { display: grid; grid-template-columns: 56px 1fr 1fr; gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.th-ram b { font: 800 1.2rem/1 var(--f-display); color: var(--night); }
.th-ram .mono { display: block; font-weight: 600; color: var(--night); }
.th-28 { display: grid; gap: 2px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.th-28 .mono { font-weight: 600; color: var(--night); }
.th-28 small { color: var(--ink-2); font-size: .8rem; }
.th-src { margin: 0; padding-left: 18px; font-size: .9rem; }
.th-src li { margin: 0 0 6px; }

@media (max-width: 1099px) {
  .th-cal { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .th-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .th-list, .th-two { grid-template-columns: 1fr; }
  .th-cal { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
  .th-next { grid-template-columns: 1fr; }
  .th-count { flex-direction: row; gap: 10px; padding: 14px 16px; justify-content: flex-start; }
  .th-num { font-size: 2.6rem; }
  .th-unit { margin-top: 0; }
  .th-next-b { padding: 16px; }
  .th-next-b h2 { font-size: 1.5rem; }
  .th-cal { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -16px; padding: 0 16px 6px; scrollbar-width: none; }
  .th-cal::-webkit-scrollbar { display: none; }
  .th-mon { flex: 0 0 62%; scroll-snap-align: start; }
  .th-cards { grid-template-columns: 1fr; }
  .th-grp { padding: 12px 12px 10px; }
  .th-grp-t { justify-content: flex-start; }
  .th-tw th, .th-tw td { padding: 6px 7px; }
  .th-tw table { font-size: .8rem; }
  .th-day { white-space: normal; min-width: 76px; }
  .th-we { display: table; margin-top: 3px; }
  .th-ram li { grid-template-columns: 48px 1fr; }
  .th-ram li span:last-child { grid-column: 2; }
}
