/* Pages outside the designs (parts/other.php): old-site pages, post archives, 404. */
.ot { --ink: #030303; --grey: #525252; --gold: #f8d000; padding: 130px 0 110px; font-family: 'Kanit', sans-serif; color: var(--ink); background: #fff; }
.ot a { color: inherit; }
.ot h1, .ot-title { margin: 24px 0 30px; font: 700 56px/1.1 'Space Grotesk', sans-serif; text-transform: uppercase; }
.ot-desc { max-width: 820px; margin: -10px 0 40px; font-size: 18px; color: var(--grey); }
.ot-grid { row-gap: 44px; }
.ot-ex { font-size: 14px; line-height: 1.55; color: var(--grey); }
.ot-pages { display: flex; justify-content: center; gap: 8px; margin-top: 60px; }
.ot-pages .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 46px; padding: 0 10px; border-radius: 99px; box-shadow: inset 0 0 0 1.5px #d4d4d4; font: 600 15px 'Space Grotesk', sans-serif; text-decoration: none; }
.ot-pages .page-numbers.current { background: var(--gold); box-shadow: none; }
.ot-page { padding-top: 100px; }
.ot-builder { width: 100%; }
.ot-text { max-width: 900px; font-size: 18px; line-height: 1.75; }
.ot-text img { max-width: 100%; height: auto; }
.ot-404 { text-align: left; }
.ot-404 p { max-width: 640px; font-size: 18px; color: var(--grey); }
.ot-btns { display: flex; gap: 18px; align-items: center; margin-top: 30px; }
.ot-line { font: 700 15px 'Space Grotesk', sans-serif; text-transform: uppercase; text-decoration: underline; text-underline-offset: 5px; }
@media (max-width: 1199px) { .ot { padding-top: 110px; } .ot h1, .ot-title { font-size: 40px; } .ot-grid { display: grid !important; grid-template-columns: 1fr 1fr; overflow: visible; } }
@media (max-width: 767px) { .ot { padding: 100px 0 70px; } .ot h1, .ot-title { font-size: 30px; } .ot-grid { grid-template-columns: 1fr; } }
/* Tin tức: search + category chips (real posts and categories) */
.ot-search { display: flex; gap: 10px; max-width: 760px; margin: 0 0 28px; padding: 8px; border-radius: 99px; box-shadow: inset 0 0 0 1.5px #d4d4d4; background: #fff; }
.ot-search input[type=search] { flex: 1; min-width: 0; border: 0; outline: 0; padding: 0 20px; font: 400 17px 'Kanit', sans-serif; background: transparent; }
.ot-search button { border: 0; border-radius: 99px; padding: 14px 28px; background: var(--ink); color: #fff; font: 700 15px 'Space Grotesk', sans-serif; text-transform: uppercase; cursor: pointer; white-space: nowrap; }
.ot-search button:hover { background: var(--gold); color: var(--ink); }
.ot-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.ot-chips a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 99px; box-shadow: inset 0 0 0 1.5px #d4d4d4; font: 500 15px 'Space Grotesk', sans-serif; text-decoration: none; white-space: nowrap; transition: .2s; }
.ot-chips a small { font-size: 13px; color: var(--grey); }
.ot-chips a:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.ot-chips a.is-on { background: var(--ink); color: #fff; box-shadow: none; }
.ot-chips a.is-on small { color: var(--gold); }
.ot-count { margin: 0 0 30px; font-size: 16px; color: var(--grey); }
@media (max-width: 767px) {
	.ot-search { border-radius: 18px; flex-direction: column; } .ot-search input[type=search] { padding: 12px 14px; } .ot-search button { width: 100%; }
	.ot-chips { flex-wrap: nowrap; overflow-x: auto; margin-right: -16px; padding-bottom: 6px; scrollbar-width: none; }
}
.ot-chips--sub { margin-top: -14px; padding-left: 14px; border-left: 3px solid var(--gold); }
.ot-chips--sub a { padding: 8px 15px; font-size: 14px; }
/* chips: one row, dragged with mouse or finger */
.ot-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; cursor: grab; user-select: none; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); padding-right: 60px; }
.ot-chips::-webkit-scrollbar { display: none; }
.ot-chips.is-drag { cursor: grabbing; }
.ot-chips.is-drag a { pointer-events: none; }
.ot-chips a { flex: 0 0 auto; }
/* parent category badge, top-left of the card image */
.ot-card__img { position: relative; }
.ot-cat { position: absolute; top: 14px; right: 14px; z-index: 1; padding: 7px 14px; border-radius: 99px; background: var(--gold); color: var(--ink); font: 600 13px/1 'Space Grotesk', sans-serif; font-style: normal; white-space: nowrap; }
/* touch targets: chips and search button at least 44px high, apart from each other */
.ot-chips a { min-height: 44px; }
.ot-search { margin-bottom: 34px; }
.ot-search button { min-height: 44px; }
