/* ปฏิทินวันหยุด (din/holiday-calendar) */
.din-article--hcal { max-width: 1180px; }
.din-article--hcal .din-article__title { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.din-hcal { --hc-dark: #2b481e; --hc-green: #4ba44e; --hc-orange: #f05a2b; --hc-line: #f1e6d0; --hc-muted: #6e6455;
	display: flex; flex-direction: column; gap: 40px; margin: 0 0 56px; font-family: var(--din-font, "Sarabun", sans-serif); color: #3b3a36; line-height: 1.6; font-size: 16px; }
.din-hcal *, .din-hcal *::before, .din-hcal *::after { box-sizing: border-box; }
.entry-content .din-hcal a { text-decoration: none; }
.entry-content .din-hcal img, .entry-content .din-hcal img:not(.alignleft):not(.alignright):not(.emoji):not([width="1"]) { margin: 0 !important; border-radius: 0; }
.din-hcal__lhead > div { flex: 1 1 300px; }
.entry-content .din-hcal figure { margin: 0 !important; max-width: none !important; }
.din-hcal h2, .din-hcal h3, .din-hcal p { margin: 0; }

/* top */
.din-hcal__top { display: flex; flex-direction: column; gap: 18px; }
.entry-content .din-hcal img.din-hcal__banner { display: block; width: 100%; height: auto; border-radius: 24px; box-shadow: 0 10px 26px rgba(43, 72, 30, .12); }
.din-hcal__intro { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.din-hcal__lead { flex: 1 1 420px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.din-hcal__intro p { font-size: 17px; line-height: 1.75; }
.din-hcal__cross { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 16px; border-radius: 999px; background: #f2faee; border: 1.5px solid #cfe5c9; color: var(--hc-dark) !important; font-weight: 700; font-size: 14.5px; transition: background .15s; }
.din-hcal__cross:hover { background: #e3f3dc; }
.din-hcal__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.din-hcal__chip { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 2px solid var(--hc-line); border-radius: 999px; padding: 6px 16px 6px 6px; font-weight: 600; font-size: 15px; }
.din-hcal__chip b { min-width: 40px; height: 40px; padding: 0 6px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 19px; font-weight: 800; }

/* colours */
.din-hcal .k-off, .din-hcal .k-sub { background: #ffdde6; color: #9c1747; }
.din-hcal .k-bank { background: #ffe9d6; color: #8a3b00; }
.din-hcal .k-note { background: #fff4b8; color: #5e5000; }
.din-hcal .k-phra { background: #ffe5c7; color: #8a4300; }

/* jump bar */
.din-hcal__jump { position: sticky; top: var(--din-header-h, 96px); z-index: 20; background: rgba(255, 255, 255, .95); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--hc-line); margin: -16px 0; padding: 10px 0; }
.admin-bar .din-hcal__jump { top: calc(var(--din-header-h, 96px) + 32px); }
.din-hcal__jump > div { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; }
.din-hcal__jump a { flex: none; display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 14px; border-radius: 999px; background: #fff; border: 2px solid #e8f3e2; color: var(--hc-dark) !important; font-weight: 700; font-size: 14px; white-space: nowrap; transition: background .15s, border-color .15s; }
.din-hcal__jump a:hover { border-color: var(--hc-green); background: #f2faee; }
.din-hcal__jump a.is-year { background: var(--hc-dark); border-color: var(--hc-dark); color: #fff !important; font-weight: 800; }
.din-hcal__jump a.is-long { border-color: #ffd9c7; }

/* year heading */
.din-hcal__year { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 12px; scroll-margin-top: calc(var(--din-header-h, 96px) + 76px); }
.din-hcal__year > span { font-size: 56px; font-weight: 800; line-height: 1; color: var(--hc-orange); }
.din-hcal__year h2 { font-size: 30px; font-weight: 800; color: var(--hc-dark); line-height: 1.3; }
.din-hcal__year p { color: var(--hc-muted); margin-top: 4px; }

/* month */
.din-hcal__mon { scroll-margin-top: calc(var(--din-header-h, 96px) + 76px); background: #fff; border: 2px solid var(--hc-line); border-radius: 36px; padding: 28px 30px 30px; display: flex; flex-direction: column; gap: 18px; }
.din-hcal__mh { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 16px; padding-bottom: 16px; border-bottom: 2px solid #f4eee2; }
.din-hcal__mh .en { display: block; font-weight: 700; font-size: 13px; letter-spacing: .14em; color: var(--hc-orange); }
.din-hcal__mh h3 { margin: 2px 0 0; font-size: 36px; font-weight: 800; line-height: 1.2; color: var(--hc-dark); }
.din-hcal__stats { display: flex; flex-wrap: wrap; gap: 6px; }
.din-hcal__stats span { font-weight: 700; font-size: 13px; border-radius: 999px; padding: 5px 12px; }
.din-hcal__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 36px; align-items: start; }
.din-hcal__col { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.din-hcal__pic { border-radius: 24px; overflow: hidden; background: #f4faf0; box-shadow: 0 10px 26px rgba(43, 72, 30, .12); }
.entry-content .din-hcal__pic img { display: block; width: 100%; height: auto; object-fit: cover; }

.din-hcal__sh { display: flex; align-items: center; gap: 8px; margin: 20px 0 10px; font-weight: 800; font-size: 16px; color: var(--hc-dark); }
.din-hcal__sh i { flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--hc-line) 0 6px, transparent 6px 12px); }
.din-hcal__none { color: var(--hc-muted); background: #faf6ee; border-radius: 14px; padding: 12px 16px; }

.din-hcal__row { display: flex; gap: 14px; align-items: center; padding: 8px 0; }
.din-hcal__row .db { flex: none; width: 58px; height: 60px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.din-hcal__row .db b { font-size: 24px; font-weight: 800; }
.din-hcal__row .db span { font-weight: 700; font-size: 12px; margin-top: 4px; }
.din-hcal__row .nm { font-weight: 700; font-size: 16px; line-height: 1.45; color: #2e2c28; }
.din-hcal__row .sub { font-size: 13.5px; color: var(--hc-muted); line-height: 1.5; }
.din-hcal .tag { display: inline-block; font-weight: 700; font-size: 12px; border-radius: 999px; padding: 2px 10px; margin-right: 6px; }

.din-hcal__phras, .din-hcal__notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.din-hcal__phras .ph { display: flex; align-items: center; gap: 10px; background: #fff3e3; border: 1.5px solid #ffe0bc; border-radius: 16px; padding: 6px 12px 6px 6px; font-weight: 500; font-size: 13.5px; line-height: 1.35; color: #6b3a00; }
.din-hcal__phras .ph > b { flex: none; width: 36px; height: 36px; border-radius: 50%; background: #ffb45c; color: #fff; font-weight: 800; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; }
.din-hcal__phras em { display: block; font-style: normal; font-weight: 700; font-size: 12px; color: #b0600f; }
.din-hcal__notes .nt { display: flex; gap: 10px; align-items: center; background: #fffbe6; border-radius: 14px; padding: 8px 12px 8px 8px; }
.din-hcal__notes .nt b { flex: none; width: 38px; height: 38px; border-radius: 12px; background: #fff0a0; color: #5e5000; font-weight: 800; font-size: 17px; display: flex; align-items: center; justify-content: center; }
.din-hcal__notes .nt span { font-weight: 500; font-size: 14px; line-height: 1.4; color: #3b3a36; }
.din-hcal__notes .nt small { display: block; font-size: 12px; font-weight: 400; color: var(--hc-muted); margin-top: 2px; line-height: 1.4; }
.din-hcal__notes .nt.has-d { align-items: flex-start; }
.din-hcal__notes.is-extra .nt { background: #f3f8ff; }
.din-hcal__notes.is-extra .nt b { background: #dcebff; color: #1f4e8c; }

.din-hcal__tip { display: flex; gap: 12px; align-items: flex-start; background: #eef7ea; border-radius: 20px; padding: 14px 18px; margin-top: 16px; color: #2f7d33; }
.din-hcal__tip svg { flex: none; margin-top: 4px; }
.din-hcal__tip p { font-size: 15px; line-height: 1.65; color: var(--hc-dark); }
.din-hcal__reads { display: flex; flex-direction: column; gap: 8px; }
.din-hcal__reads .rd { display: flex; align-items: center; gap: 12px; background: #faf6ee; border-radius: 16px; padding: 10px 14px; color: #2e2c28 !important; font-weight: 500; font-size: 14.5px; line-height: 1.45; min-height: 44px; transition: background .15s, transform .15s; }
.din-hcal__reads .rd:hover { background: #f2faee; color: #1f5a22 !important; transform: translateX(3px); }
.din-hcal__reads .ar { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--hc-green); color: #fff; display: inline-flex; align-items: center; justify-content: center; }

/* mini calendar (months without a picture) */
.din-hcal__mini { background: linear-gradient(180deg, #f6fbf2, #fffdf6); border-radius: 24px; padding: 18px; box-shadow: 0 10px 26px rgba(43, 72, 30, .1); }
.din-hcal__mg { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.din-hcal__mg .wd { background: var(--hc-green); color: #fff; text-align: center; font-weight: 700; font-size: 13px; padding: 6px 0; border-radius: 10px; }
.din-hcal__mg .wd.sun { background: #3e9241; }
.din-hcal__mg .cc { min-height: 64px; border: 1.5px solid #d9edcf; background: #fffdf8; border-radius: 12px; padding: 5px 4px; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.din-hcal__mg .cc.e { border-color: transparent; background: transparent; }
.din-hcal__mg .cc b { font-weight: 800; font-size: 18px; line-height: 1.1; color: var(--hc-dark); }
.din-hcal__mg .cc.sun b { color: #e8542a; }
.din-hcal__mg .cc i { font-style: normal; font-weight: 700; font-size: 10px; line-height: 1.25; color: #7a5a12; }
.din-hcal__mg .cc.h { background: #ffe3ea; border-color: #ffc6d5; }
.din-hcal__mg .cc.h b { color: #b0164e; }
.din-hcal__mg .cc.h i { color: #9c1747; }
.din-hcal__mg .cc.no { background: #fff7cc; border-color: #ffea8a; }
.din-hcal__mg .cc.p { background: #fff0dd; border-color: #ffd9ae; }
.din-hcal__lg { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; font-weight: 500; font-size: 13px; color: var(--hc-muted); }
.din-hcal__lg span { display: inline-flex; align-items: center; gap: 6px; }
.din-hcal__lg i { width: 14px; height: 14px; border-radius: 5px; display: inline-block; }
.din-hcal__lg i.h { background: #ffe3ea; border: 1.5px solid #ffc6d5; }
.din-hcal__lg i.no { background: #fff7cc; border: 1.5px solid #ffea8a; }
.din-hcal__lg i.p { background: #fff0dd; border: 1.5px solid #ffd9ae; }

/* long weekends + note */
.din-hcal__longs { display: flex; flex-direction: column; gap: 20px; scroll-margin-top: calc(var(--din-header-h, 96px) + 76px); }
.din-hcal__lhead { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.entry-content .din-hcal__lhead img { width: 110px; height: auto; }
.din-hcal__lhead h2 { font-size: 30px; font-weight: 800; color: var(--hc-dark); line-height: 1.3; }
.din-hcal__lhead p { color: var(--hc-muted); margin-top: 4px; }
.din-hcal__lgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.din-hcal__lw { background: #fff; border: 2px solid var(--hc-line); border-radius: 22px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.din-hcal__lw .yr { align-self: flex-start; font-weight: 700; font-size: 12px; color: #fff; background: var(--hc-orange); border-radius: 999px; padding: 2px 10px; }
.din-hcal__lw .n { font-weight: 700; color: var(--hc-orange); }
.din-hcal__lw .n b { font-size: 32px; font-weight: 800; line-height: 1; }
.din-hcal__lw strong { font-size: 16px; }
.din-hcal__lw .r { font-size: 14px; color: var(--hc-muted); }
.din-hcal__lw .tag { align-self: flex-start; margin-top: 4px; }
.din-hcal__note { background: #fff6d6; border-radius: 32px; padding: 24px 30px; display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.entry-content .din-hcal__note img { width: 110px; height: auto; }
.din-hcal__note p { flex: 1 1 360px; font-size: 14.5px; line-height: 1.75; color: #5c5346; }
.din-hcal__note b { color: #3b3a36; }

@media (max-width: 640px) {
	.din-hcal { gap: 28px; }
	.entry-content .din-hcal img.din-hcal__banner { border-radius: 14px; }
	.din-hcal__intro p { font-size: 15.5px; }
	.din-hcal__year > span { font-size: 42px; }
	.din-hcal__year h2, .din-hcal__lhead h2 { font-size: 24px; }
	.din-hcal__mon { padding: 18px 16px 20px; border-radius: 26px; }
	.din-hcal__mh h3 { font-size: 28px; }
	.din-hcal__notes { grid-template-columns: minmax(0, 1fr); }
	.din-hcal__phras { gap: 6px; }
	.din-hcal__phras .ph { padding: 5px 8px 5px 5px; font-size: 12.5px; gap: 8px; }
	.din-hcal__phras .ph > b { width: 32px; height: 32px; font-size: 14px; }
	.din-hcal__mini { padding: 10px; }
	.din-hcal__mg { gap: 3px; }
	.din-hcal__mg .cc { min-height: 50px; border-radius: 8px; padding: 3px 1px; }
	.din-hcal__mg .cc b { font-size: 15px; }
	.din-hcal__mg .cc i { font-size: 8.5px; }
	.din-hcal__jump a { min-height: 36px; padding: 0 12px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .din-hcal__reads .rd { transition: none; } }

/* highlights */
.din-hcal__hl { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: calc(var(--din-header-h, 96px) + 76px); }
.din-hcal__hl h2 { font-size: 28px; font-weight: 800; color: var(--hc-dark); line-height: 1.3; }
.din-hcal__hlgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.din-hcal__hlc { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 2px solid var(--hc-line); border-radius: 20px; padding: 14px 16px; color: #3b3a36 !important; transition: transform .15s, border-color .15s; }
a.din-hcal__hlc:hover { transform: translateY(-2px); border-color: var(--hc-accent, var(--hc-green)); }
.din-hcal__hlc .d { align-self: flex-start; font-weight: 700; font-size: 12.5px; color: #fff; background: var(--hc-accent, var(--hc-orange)); border-radius: 999px; padding: 2px 10px; }
.din-hcal__hlc strong { font-size: 17px; font-weight: 800; color: var(--hc-dark); line-height: 1.35; }
.din-hcal__hlc .t { font-size: 13.5px; color: var(--hc-muted); line-height: 1.5; }

/* FAQ */
.din-hcal__faq { display: flex; flex-direction: column; gap: 10px; scroll-margin-top: calc(var(--din-header-h, 96px) + 76px); }
.din-hcal__faq h2 { font-size: 28px; font-weight: 800; color: var(--hc-dark); line-height: 1.3; margin-bottom: 4px; }
.din-hcal__faq details { background: #fff; border: 2px solid var(--hc-line); border-radius: 18px; padding: 0 18px; }
.din-hcal__faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; min-height: 44px; }
.din-hcal__faq summary::-webkit-details-marker { display: none; }
.din-hcal__faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--hc-accent, var(--hc-green)); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; transition: transform .2s; }
.din-hcal__faq details[open] summary::after { transform: rotate(45deg); }
.din-hcal__faq h3 { margin: 0; font-size: 16.5px; font-weight: 700; color: var(--hc-dark); line-height: 1.45; }
.din-hcal__faq details p { padding: 0 0 16px; font-size: 15px; line-height: 1.75; color: #4a463f; }

/* วันพระจีน + mini calendar marks (also used on the Chinese page) */
.din-hcal .k-cy { background: #fff3c4; color: #7a5300; }
.din-hcal__phras .ph.is-chiu { background: #fff8dc; border-color: #f6d36b; color: #6b4a00; }
.din-hcal__phras .ph.is-chiu > b { background: #f2b705; }
.din-hcal__phras .ph.is-chiu em { color: #8a6200; }
.din-hcal__phras .ph.is-jab { background: #fff0ee; border-color: #f5b5ad; color: #8a1d14; }
.din-hcal__phras .ph.is-jab > b { background: #d7261e; }
.din-hcal__phras .ph.is-jab em { color: #b3261e; }
.din-hcal__mg .cc.cy { background: #fff8dc; border-color: #f2b705; }
.din-hcal__mg .cc.cy i { color: #8a6200; }
.din-hcal__mg .cc.cj { background: #fff0ee; border-color: #e5483f; }
.din-hcal__mg .cc.cj i { color: #b3261e; }
.din-hcal__lg i.cy { background: #fff8dc; border: 1.5px solid #f2b705; }
.din-hcal__lg i.cj { background: #fff0ee; border: 1.5px solid #e5483f; }

/* Chinese calendar page: red & gold */
.din-hcal--cn { --hc-dark: #7a1712; --hc-accent: #d7261e; --hc-orange: #d7261e; --hc-line: #f3dcc4; }
.din-hcal--cn .din-hcal__jump a { border-color: #f6dcd6; color: #7a1712 !important; }
.din-hcal--cn .din-hcal__jump a:hover { border-color: #d7261e; background: #fff4f2; }
.din-hcal--cn .din-hcal__jump a.is-year { background: #b3191a; border-color: #b3191a; color: #fff !important; }
.din-hcal--cn .din-hcal__mh .en { color: #c48a00; }
.din-hcal--cn .din-hcal__mon { border-color: #f3dcc4; background: linear-gradient(180deg, #fffdf8, #fff 120px); }
.din-hcal--cn .din-hcal__notes .nt { background: #fff7e6; }
.din-hcal--cn .din-hcal__notes .nt b { background: #ffe1a6; color: #7a4a00; }
.din-hcal--cn .din-hcal__notes.is-extra .nt { background: #f3f8ff; }
.din-hcal--cn .din-hcal__notes.is-extra .nt b { background: #dcebff; color: #1f4e8c; }
.din-hcal--cn .din-hcal__tip { background: #fff4e5; color: #b3191a; }
.din-hcal--cn .din-hcal__tip p { color: #6b2410; }
.din-hcal--cn .din-hcal__reads .ar { background: #d7261e; }
.din-hcal--cn .din-hcal__reads .rd:hover { background: #fff4f2; color: #7a1712 !important; }
.din-hcal--cn .din-hcal__cross { background: #f2faee; }
.din-hcal--cn .din-hcal__mini { background: linear-gradient(180deg, #fff8e1, #fffdf6); }
.din-hcal--cn .din-hcal__mg .wd { background: #d7261e; }
.din-hcal--cn .din-hcal__mg .wd.sun { background: #b3191a; }
.din-hcal--cn .din-hcal__mg .cc { border-color: #f3dcc4; }
.din-hcal--cn .din-hcal__mg .cc b { color: #3b2a20; }
.din-hcal--cn .din-hcal__mg .cc.sun b { color: #d7261e; }
.din-hcal--cn .din-hcal__mg .cc.h { background: #ffd9d4; border-color: #f19a90; }
.din-hcal--cn .din-hcal__mg .cc.h b, .din-hcal--cn .din-hcal__mg .cc.h i { color: #9e130c; }
.din-hcal--cn .din-hcal__mg .cc.cy { background: #fff8dc; border-color: #f2b705; }
.din-hcal--cn .din-hcal__mg .cc.cj { background: #fff0ee; border-color: #e5483f; }
.din-hcal--cn .din-hcal__mg .cc.no { background: #fff7e6; border-color: #ffd58a; }
.din-hcal--cn .din-hcal__lg i.no { background: #fff7e6; border-color: #ffd58a; }
.din-hcal--cn .din-hcal__lg i.h { background: #ffd9d4; border-color: #f19a90; }
.din-hcal--cn .din-hcal__faq details { border-color: #f3dcc4; }
@media (max-width: 640px) {
	.din-hcal__chip { font-size: 13px; padding: 4px 12px 4px 4px; gap: 8px; }
	.din-hcal__chip b { min-width: 32px; height: 32px; font-size: 15px; }
	.din-hcal__chips { gap: 6px; }
	.din-hcal__cross { font-size: 13.5px; }
	.din-hcal__hl h2, .din-hcal__faq h2 { font-size: 23px; }
	.din-hcal__hlgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.din-hcal__hlc { padding: 12px; border-radius: 16px; }
	.din-hcal__hlc strong { font-size: 15px; }
	.din-hcal__hlc .t { font-size: 12.5px; }
}

/* narrow screens: one column in reading order (picture, holidays, วันพระ, วันสำคัญ, เพิ่มเติม, Inspire, อ่านต่อ) */
@media (max-width: 899px) {
	.din-hcal__cols { display: flex; flex-direction: column; gap: 4px; }
	.din-hcal__col { display: contents; }
	.din-hcal__pic, .din-hcal__mini { order: 0; }
	.din-hcal__blk.is-hol, .din-hcal__blk.is-nohol { order: 1; }
	.din-hcal__blk.is-phra { order: 2; }
	.din-hcal__blk.is-notes { order: 3; }
	.din-hcal__blk.is-extras { order: 4; }
	.din-hcal__blk.is-tip { order: 5; }
	.din-hcal__blk.is-reads { order: 6; }
}
