/* OfficeKitHQ layout (2026-10-17): header 2 tầng + thanh danh mục tab, hero tối, 5 khu bàn đè mép, lưới gọn 4 cột, mục lục ngang trong bài. Nạp sau theme.css + site.css. */
.lay-okh .ast-header { position: static; box-shadow: none; background: #fff; }
.lay-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ast-ink); font-family: var(--ast-heading-font); flex: none; }
.lay-logo__mark svg { width: 46px; height: 46px; display: block; }
.lay-logo__word { font-weight: 800; font-size: 1.75rem; letter-spacing: -.04em; line-height: 1; }
.lay-logo__word b { color: var(--ast-accent); }
.lay-logo--footer { color: #fff; }
.lay-logo--footer .lay-logo__word b { color: var(--ast-highlight); }

/* header: dải tiện ích tối, hàng brand, thanh tab */
.lay-deck__util { background: var(--ast-dark); color: color-mix(in srgb, #fff 72%, transparent); font-size: .78rem; padding: .55em 0; }
.lay-deck__util a { color: var(--ast-highlight); }
.lay-deck__brand { display: flex; align-items: center; gap: 22px; min-height: 92px; }
.lay-deck__tag { margin: 0; padding-left: 22px; border-left: 1px solid var(--ast-line); color: var(--ast-muted); font-size: .88rem; line-height: 1.35; max-width: 250px; }
.lay-deck__search { margin-left: auto; width: 330px; border-radius: 999px; overflow: hidden; }
.lay-deck__rail { background: #fff; color: var(--ast-ink); border-top: 1px solid var(--ast-line); border-bottom: 1px solid var(--ast-line); }
.lay-deck__rail .ast-nav__inner { gap: 0; }
.lay-deck__rail .ast-menu { gap: 0; flex-wrap: nowrap; }
.lay-deck__rail .ast-menu > li > a { border-radius: 0; padding: .95em 1.05em; font-size: .9rem; font-weight: 700; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.lay-deck__rail .ast-menu > li > a:hover, .lay-deck__rail .current-menu-item > a, .lay-deck__rail .current-category-ancestor > a, .lay-deck__rail .current-menu-ancestor > a { background: transparent; color: var(--ast-accent); border-bottom-color: var(--ast-accent); }
.lay-deck__rail .ast-menu .sub-menu { border: 1px solid var(--ast-line); }
.lay-deck__rail .ast-menu--right { margin-left: auto; }
.lay-deck__rail .ast-menu--right > li > a { color: var(--ast-accent); }

.lay-h { margin: 0 0 .7em; font-size: clamp(1.4rem, 1.15rem + 1vw, 1.85rem); letter-spacing: -.02em; }
.lay-kicker { display: inline-block; margin: 0 0 .8em; font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ast-accent); text-decoration: none; }
.lay-kicker--light { color: var(--ast-highlight); }

/* hero tối + khu bàn đè mép */
.lay-hero { background: var(--ast-dark) radial-gradient(900px 420px at 88% -10%, color-mix(in srgb, var(--ast-accent) 60%, transparent), transparent 70%); color: #fff; padding: clamp(44px, 6vw, 84px) 0 clamp(104px, 12vw, 160px); }
.lay-hero__in { max-width: 780px; }
.lay-hero__title { margin: 0 0 .4em; font-size: clamp(2.1rem, 1.5rem + 2.8vw, 3.6rem); line-height: 1.05; letter-spacing: -.035em; }
.lay-hero__title span { color: var(--ast-highlight); }
.lay-hero__text { margin: 0 0 1.5em; font-size: 1.1rem; line-height: 1.55; color: color-mix(in srgb, #fff 78%, transparent); max-width: 640px; }
.lay-hero__cta { margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.lay-btn { display: inline-block; padding: .8em 1.4em; border-radius: 10px; background: var(--ast-highlight); color: var(--ast-dark); font-weight: 800; text-decoration: none; }
.lay-btn:hover { filter: brightness(1.06); }
.lay-btn--ghost { background: transparent; color: #fff; border: 1px solid color-mix(in srgb, #fff 35%, transparent); }
.lay-zones { margin-top: calc(-1 * clamp(68px, 8vw, 110px)); position: relative; z-index: 2; }
.lay-zones__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.lay-zone { display: flex; flex-direction: column; gap: 4px; padding: 18px 18px 16px; background: #fff; border: 1px solid var(--ast-line); border-top: 4px solid var(--ast-accent); border-radius: 14px; text-decoration: none; color: var(--ast-ink); box-shadow: 0 18px 40px rgba(15, 22, 48, .14); transition: transform .15s; }
a.lay-zone:hover { transform: translateY(-3px); }
.lay-zone--soon { border-top-color: var(--ast-line); }
.lay-zone--soon .lay-zone__label { color: var(--ast-muted); }
.lay-zone__label { font-family: var(--ast-heading-font); font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.lay-zone__name { font-size: .8rem; color: var(--ast-accent); font-weight: 700; }
.lay-zone__short { font-size: .85rem; color: var(--ast-muted); line-height: 1.4; }
.lay-zone__n { margin-top: auto; padding-top: 10px; font-size: .72rem; font-weight: 700; color: var(--ast-muted); text-transform: uppercase; letter-spacing: .06em; }

/* lưới bài gọn */
.lay-new { padding: clamp(40px, 5vw, 72px) 0; }
.lay-new--soft { background: var(--ast-soft); }
.lay-new__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.lay-more { font-weight: 700; text-decoration: none; white-space: nowrap; }
.lay-grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 18px; }
.lay-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 18px; }
.lay-tile { display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--ast-line); border-radius: 12px; overflow: hidden; }
.lay-tile__img { display: block; aspect-ratio: 16 / 10; background: var(--ast-soft); }
.lay-tile__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lay-tile__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.lay-tile__cat { align-self: flex-start; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--ast-accent); background: var(--ast-accent-soft); padding: .3em .7em; border-radius: 999px; text-decoration: none; }
.lay-tile__title { margin: 0; font-size: 1rem; line-height: 1.35; }
.lay-tile__title a { color: var(--ast-ink); text-decoration: none; }
.lay-tile__title a:hover { color: var(--ast-accent); }
.lay-tile__date { margin-top: auto; font-size: .75rem; color: var(--ast-muted); }

/* 4 con số */
.lay-checks { padding: clamp(40px, 5vw, 72px) 0; background: var(--ast-soft); border-top: 1px solid var(--ast-line); }
.lay-checks__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.lay-check { background: #fff; border: 1px solid var(--ast-line); border-radius: 12px; padding: 18px 18px 16px; }
.lay-check__n { display: inline-block; font-family: var(--ast-heading-font); font-weight: 800; font-size: .78rem; color: var(--ast-highlight); background: var(--ast-dark); padding: .25em .6em; border-radius: 6px; }
.lay-check__h { margin: .7em 0 .35em; font-size: 1.05rem; }
.lay-check p { margin: 0; color: var(--ast-muted); font-size: .92rem; line-height: 1.5; }
.lay-checks__more { margin: 20px 0 0; font-weight: 700; }
.lay-okh .ast-trust { gap: 14px; }
.lay-okh .ast-trust__item { background: #fff; border: 1px solid var(--ast-line); }

/* archive: cột trái cây danh mục */
.lay-arch--side { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start; }
.lay-arch__nav { position: sticky; top: 24px; border: 1px solid var(--ast-line); border-radius: 12px; padding: 16px; background: #fff; font-size: .92rem; }
.lay-arch__navh { margin: 0 0 .6em; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--ast-muted); }
.lay-ctree, .lay-ctree ul { list-style: none; margin: 0; padding: 0; }
.lay-ctree > li { padding: 6px 0; border-top: 1px solid var(--ast-line); }
.lay-ctree > li > a { display: block; padding: 4px 6px; font-weight: 800; color: var(--ast-ink); text-decoration: none; border-radius: 6px; }
.lay-ctree ul { padding-left: 10px; margin: 2px 0 4px; }
.lay-ctree ul a { display: flex; justify-content: space-between; gap: 8px; padding: 3px 6px; border-radius: 6px; color: var(--ast-ink); text-decoration: none; }
.lay-ctree ul a span { color: var(--ast-muted); font-size: .8rem; }
.lay-ctree a:hover { color: var(--ast-accent); }
.lay-ctree a[aria-current="page"] { background: var(--ast-accent); color: #fff; }
.lay-ctree a[aria-current="page"] span { color: color-mix(in srgb, #fff 75%, transparent); }
.lay-arch__main .ast-archive__head { max-width: none; }

/* bài viết */
.lay-post { max-width: 980px; padding-top: 28px; }
.lay-post__head { max-width: 780px; margin: 0; }
.lay-post__img { margin: 24px 0 0; }
.lay-post__img img { border-radius: 16px; border: 1px solid var(--ast-line); box-shadow: 0 16px 40px rgba(15, 22, 48, .1); }
.lay-jump { position: sticky; top: 0; z-index: 40; margin-top: 28px; background: color-mix(in srgb, var(--ast-bg) 92%, transparent); backdrop-filter: blur(8px); border-top: 1px solid var(--ast-line); border-bottom: 1px solid var(--ast-line); }
.lay-jump__in { display: flex; gap: 6px; align-items: center; overflow-x: auto; scrollbar-width: none; padding-top: 8px; padding-bottom: 8px; white-space: nowrap; }
.lay-jump__in::-webkit-scrollbar { display: none; }
.lay-jump__h { flex: none; margin-right: 6px; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--ast-muted); }
.lay-jump a { flex: none; padding: .4em .9em; border-radius: 999px; border: 1px solid var(--ast-line); background: #fff; color: var(--ast-ink); text-decoration: none; font-size: .85rem; font-weight: 600; }
.lay-jump a:hover { border-color: var(--ast-accent); color: var(--ast-accent); }
.lay-okh .ast-single { padding-top: 32px; }
.lay-okh .ast-side { top: 70px; }
.lay-okh .ast-content > h2 { padding-top: .5em; border-top: 2px solid var(--ast-line); }
.lay-okh .affshelf-card { border: 1px solid var(--ast-line); border-left: 5px solid var(--ast-accent); border-radius: 12px; background: #fff; padding: 1.3em; }
.lay-okh .affshelf-card__n { background: var(--ast-dark); color: var(--ast-highlight); border-radius: 6px; }
.lay-okh .affshelf-btn, .lay-okh .affshelf-compare__buy, .lay-okh .ast-side-pick__btn { border-radius: 8px; }
.lay-okh .affshelf-pc__pros { background: #EAF6EE; border-radius: 10px; }
.lay-okh .affshelf-pc__cons { background: #FCEDEA; border-radius: 10px; }
.lay-okh .affshelf-compare, .lay-okh .ast-table-scroll { border: 1px solid var(--ast-line); border-radius: 12px; overflow: hidden; }
.lay-okh .affshelf-compare thead th, .lay-okh .ast-content table thead th { background: var(--ast-dark); color: #fff; }

/* footer */
.lay-foot__top { display: flex; align-items: center; gap: 28px; padding-bottom: 28px; margin-bottom: 32px; border-bottom: 1px solid color-mix(in srgb, #fff 12%, transparent); }
.lay-foot__about { margin: 0; max-width: 600px; color: color-mix(in srgb, #fff 72%, transparent); }
.lay-foot__grid { grid-template-columns: repeat(3, 1fr); }
.lay-foot__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 1080px) {
  .lay-deck__tag { display: none; }
  .lay-deck__rail .ast-menu > li > a { padding: .9em .75em; font-size: .85rem; }
  .lay-zones__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lay-grid4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lay-checks__list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .lay-arch--side { grid-template-columns: 1fr; gap: 20px; }
  .lay-arch__nav { position: static; }
  .lay-grid3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .lay-zones__grid { grid-template-columns: 1fr 1fr; }
  .lay-grid4 { grid-template-columns: 1fr 1fr; }
  .lay-foot__top { flex-direction: column; align-items: flex-start; gap: 14px; }
}
@media (max-width: 760px) {
  .lay-deck__brand { min-height: 64px; gap: 10px; }
  .lay-logo__mark svg { width: 36px; height: 36px; }
  .lay-logo__word { font-size: 1.3rem; }
  .lay-deck__search { width: auto; flex: 1 1 0; min-width: 0; margin-left: 0; }
  .lay-deck__rail { background: var(--ast-dark); color: #fff; border: 0; }
  .lay-deck__rail .ast-menu { flex-direction: column; flex-wrap: wrap; }
  .lay-deck__rail .ast-menu > li > a { border-bottom: 0; margin: 0; }
  .lay-deck__rail .ast-menu > li > a:hover, .lay-deck__rail .current-menu-item > a, .lay-deck__rail .current-category-ancestor > a { color: #fff; background: color-mix(in srgb, #fff 12%, transparent); border-bottom-color: transparent; }
  .lay-deck__rail .ast-menu--right { margin-left: 0; }
  .lay-deck__rail .ast-menu--right > li > a { color: var(--ast-highlight); }
  .lay-hero { padding-bottom: 76px; }
  .lay-zones { margin-top: -48px; }
  .lay-zones__grid, .lay-grid4, .lay-grid3, .lay-checks__list { grid-template-columns: 1fr; }
  .lay-post { padding-top: 20px; }
  .lay-jump { margin-top: 20px; }
}
@media (max-width: 380px) {
  .lay-logo__word { font-size: 1.1rem; }
  .lay-logo__mark svg { width: 32px; height: 32px; }
}
