  /* ---- Điện thoại: vùng chạm và cỡ chữ ------------------------------
     Đo được trên màn 390px: nút đổi ngôn ngữ chỉ 34×31px, dưới ngưỡng 44×44
     của Apple — ngón tay bấm trượt sang nút bên cạnh. Và 88 chỗ chữ dưới 14px,
     khách phải nheo mắt hoặc phóng to. */
  @media (max-width: 720px) {
    /* Vùng chạm: CHIỀU CAO 44px là thứ quyết định ngón tay bấm trúng hay
       trượt; bề ngang 40px vẫn đủ cho một dải nút liền nhau. Ép luôn 44 bề
       ngang thì 4 nút + tên quán = 399px, tràn màn 390px và cắt mất chữ
       "GARDEN" — đã đo. */
    /* ⚠️ Nút ngôn ngữ ĐÃ ĐƯỢC GỠ khỏi luật này 29/08/2026 — Sếp chốt nó phải
       giống y hệt khu đặt món (nút 25×26px), và bên đó chạy thực tế không ai
       than bấm trượt. Ép 40×44 ở đây làm khối rộng 166px thay vì 121px.
       Các nút khác vẫn giữ vùng chạm. */
    .lang-btn {
      min-width: 40px; min-height: 44px;
    }

    /* Đầu trang dồn về MỘT hàng.
       Đo được: xếp hai hàng nó cao 109px = 13% màn hình 844px, mà nó lại dính
       trên nên chiếm chỗ đó suốt buổi. Nặng hơn: đầu trang cao đẩy nút "Đặt
       Bàn Ngay" của hero xuống y=850, tức là NẰM DƯỚI mép màn hình đầu tiên
       (844px) — khách phải cuộn mới thấy nút đặt bàn.
       Bỏ nút đặt bàn ở đây vì thanh dính đáy đã lo việc đó rồi, và cho 4 nút
       ngôn ngữ đứng cùng hàng với tên quán: 4×44 + tên quán vẫn lọt 390px. */
    .header-inner {
      flex-wrap: nowrap;
      justify-content: space-between;
      padding-block: 4px;
      gap: 8px;
    }
    .header-inner .btn-book { display: none; }
    .wordmark { font-size: 13px; gap: 6px; white-space: nowrap; }
    /* ⚠️ CHỈ đặt CHIỀU CAO, để bề ngang tự tính theo.

       Bản cũ ép cứng `width: 24px; height: 24px` — tức ép logo thành HÌNH
       VUÔNG, trong khi ảnh thật 134×160 (tỉ lệ 0,84, cao hơn rộng). Kết quả:
       logo bị nén méo trên MỌI màn dưới 760px. Ở chân trang còn tệ hơn vì luật
       riêng của chân trang đặt chiều cao 38px, thành ra 24×38 — tỉ lệ 0,63.

       Trước đây chân trang lót một đĩa tròn màu kem sau logo nên không ai thấy;
       bỏ đĩa đi ngày 29/08/2026 thì Sếp nhận ra ngay.

       Đừng thêm `width` lại. Muốn logo nhỏ hơn thì chỉnh `height`. */
    .wordmark img { height: 24px; width: auto; }
  }

  /* Chữ "GARDEN" từng bị ẩn dưới 400px vì tràn 8px. Ngày 29/08/2026 bộ chọn
     ngôn ngữ thu từ 201px xuống 67px, dư ra 134px — thừa chỗ cho nó, nên đã
     trả lại. Kiểm ở 320px vẫn còn 118px trống. */
  @media (max-width: 400px) {
    .lang-switch { flex: none; }
    /* Sàn cỡ chữ: nhãn nhỏ 13px, chữ đọc 15px. Không ép hết về 16px —
       nhãn dẫn IN HOA GIÃN CHỮ ở 16px sẽ tràn dòng trên màn hẹp. */
    .xb .el__badge { font-size: max(var(--el-size, .8125rem), 12.5px); }
    .xb .el__caption,
    .xb .el__text,
    .xb .el__icon-text,
    /* GÕ NHẦM đã sửa 10/09/2026: phần tử dòng danh sách mang lớp `el--listitem`
     (hai gạch NGANG, do Blade ghép `el--{{ $type }}`), không phải `el__listitem`.
     Ba luật dùng tên sai chưa bao giờ khớp phần tử nào — nghĩa là dòng danh
     sách không được nâng cỡ chữ tối thiểu, và tệ hơn, không được gỡ-cứu màu
     chữ khi nằm trong thẻ sáng đặt trên khối nền tối (xem hai luật dưới). */
  .xb .el--listitem { font-size: max(var(--el-size, 1rem), 15px); }
    .xb .el__stat-label { font-size: 12.5px; }
  }

  /* ---------- Section shell ---------- */
  /* The page's single source of horizontal inset. Anything that needs to bleed
     past it (the brands marquee) measures from the same --w-gutter token, so
     the two cannot drift apart — hardcoding 24px here while the bleed used the
     token left a few pixels of sideways scroll at some widths. */
  .flow {
    max-width: 1180px;
    margin: 0 auto;
    padding-inline: var(--w-gutter);
    display: flex;
    flex-direction: column;
  }
  section.block { padding: var(--sp-section) 0; border-bottom: 1px solid var(--line-soft); }
  section.block:last-of-type { border-bottom: none; }
  /* Sections are reordered per language via the CSS `order` property (see
     public/js/xmg.js), so the last section in DOM order is not necessarily the
     last one on screen — :last-of-type above would strip the divider off a
     section sitting mid-page. Restore it for every reorderable section and let
     .section-last, which JS sets from the active language's real order, be the
     single source of truth for "visually last". */
  main.reorder section.block { border-bottom: 1px solid var(--line-soft); }
  section.block.section-last { border-bottom: none; padding-bottom: 32px; }

  .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
  .reveal.in { opacity: 1; transform: translateY(0); }
  @media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
  }

  /* ---------- Staggered card reveal ---------- */
  .brand-card, .dish-card, .testi-card { opacity: 0; }
  .reveal.in .brand-card, .reveal.in .dish-card, .reveal.in .testi-card {
    animation: stagger-in 0.6s var(--ease-out) both;
  }
  @keyframes stagger-in {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .reveal.in .brand-card:nth-child(1), .reveal.in .dish-card:nth-child(1), .reveal.in .testi-card:nth-child(1) { animation-delay: .03s; }
  .reveal.in .brand-card:nth-child(2), .reveal.in .dish-card:nth-child(2), .reveal.in .testi-card:nth-child(2) { animation-delay: .09s; }
  .reveal.in .brand-card:nth-child(3), .reveal.in .dish-card:nth-child(3), .reveal.in .testi-card:nth-child(3) { animation-delay: .15s; }
  .reveal.in .brand-card:nth-child(4), .reveal.in .dish-card:nth-child(4), .reveal.in .testi-card:nth-child(4) { animation-delay: .21s; }
  .reveal.in .brand-card:nth-child(5), .reveal.in .dish-card:nth-child(5) { animation-delay: .27s; }
  .reveal.in .brand-card:nth-child(6) { animation-delay: .33s; }

  /* Inline-editable text/images stack one instance per locale (see
     resources/views/home.blade.php and its partials — each wrapped in
     <span data-locale="xx">), so only the active language's editable node
     shows. This also keeps each locale's own live Livewire component mounted
     across a language switch, so admin edits persist without a reload. */
  [data-locale] { display: inline; }
  body[data-lang="vi"] [data-locale]:not([data-locale="vi"]),
  body[data-lang="en"] [data-locale]:not([data-locale="en"]),
  body[data-lang="ko"] [data-locale]:not([data-locale="ko"]),
  body[data-lang="ru"] [data-locale]:not([data-locale="ru"]),
  body[data-lang="ja"] [data-locale]:not([data-locale="ja"]),
  body[data-lang="zh"] [data-locale]:not([data-locale="zh"]) {
    display: none;
  }


  main.reorder { display: flex; flex-direction: column; }

  .boost-badge {
    display: none;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--gold-tint);
    color: var(--gold-deep);
    margin-left: 12px;
    vertical-align: middle;
    white-space: nowrap;
  }

  /* ---------- Booking modal ---------- */
  /* ================================================================
     KHUNG ĐẶT BÀN — dựng lại 27/08 theo yêu cầu Sếp ("nhìn phèn quá").

     Bản cũ phèn vì nó KHÔNG DÙNG một chi tiết nào của thương hiệu: ô nhập
     bo tròn 8px nền xanh nhạt, nhãn xám, nút khối đặc — đúng kiểu mặc định
     của mọi biểu mẫu trên mạng. Bản này mượn lại đúng ba thứ đã có sẵn trên
     trang: giấy kem, nét vàng mảnh, và chữ Lora.
     ================================================================ */
  .modal-overlay {
    position: fixed;
    inset: 0;
    /* Nền tối và mờ hơn: khung đặt bàn là việc cuối cùng khách làm, phải
       tách hẳn khỏi trang chứ không lửng lơ trên nền còn đọc được. */
    background: rgba(14, 17, 10, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 20px;
  }
  .modal-overlay.open { display: flex; }

  .modal-box {
    background: var(--paper);
    /* Bo góc 6px chứ không phải 16px. Góc bo càng tròn càng thân thiện —
       và càng xa cảm giác nhà hàng cao cấp, vốn chuộng cạnh gần thẳng. */
    border-radius: 6px;
    border: 1px solid rgba(169, 128, 63, .30);
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6);
    padding: 40px 38px 34px;
    position: relative;
  }
  /* Dải vàng mảnh vắt ngang đỉnh khung — cùng ngôn ngữ với gạch vàng ở
     nhãn dẫn từng mục ngoài trang. */
  .modal-box::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-deep));
    border-radius: 5px 5px 0 0;
  }

  .modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: transparent;
    border: 1px solid var(--line);
    width: 34px;
    height: 34px;
    border-radius: 4px;
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1;
    cursor: pointer;
  }

  /* Tiêu đề: chữ có chân, cỡ lớn, kèm gạch vàng phía trên như tiêu đề mục. */
  .modal-box h2 {
    font-family: var(--f-heading);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
    padding-right: 44px;
    margin: 0;
  }
  .modal-box h2::before {
    content: "";
    display: block;
    width: 42px; height: 2px;
    background: var(--gold-deep);
    margin-bottom: 16px;
  }
  .modal-sub {
    font-size: 14px;
    color: var(--ink-soft);
    margin-top: 10px;
    line-height: 1.6;
    max-width: 40ch;
  }

  .form-grid { display: flex; flex-direction: column; gap: 18px; margin-top: 30px; }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

  /* Nhãn dùng đúng kiểu nhãn dẫn của trang: nhỏ, in hoa, giãn chữ, màu vàng
     đậm. Nhờ vậy khung này đọc ra là một phần của trang, không phải một cái
     hộp lạ ai đó dán vào. */
  .field label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--gold-deep);
    margin-bottom: 8px;
  }
  .field input, .field select, .field textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 4px;
    /* background-color, not the `background` shorthand: the shorthand also resets
       background-repeat/position/size, and Filament's forms.css — pulled in by
       @filamentStyles for the inline-edit components — then sets ONLY
       background-image on `select:not(.choices)`. Equal specificity, loaded
       later, so its chevron won while our reset left repeat/0% 0% behind and the
       arrow tiled right across the field. */
    background-color: var(--surface);
    color: var(--ink);
    padding: 13px 14px;
    /* 16px là ngưỡng bắt buộc, không phải lựa chọn thẩm mỹ: iOS TỰ PHÓNG TO
       cả trang mỗi lần chạm vào ô nhập có cỡ chữ dưới 16px. Ô cũ để 14px nên
       khách dùng iPhone bấm vào là màn hình giật nảy một cái. */
    font-size: 16px;
    font-family: var(--f-body);
    min-height: 48px;
    transition: border-color var(--dur-fast) var(--ease-out),
                box-shadow var(--dur-fast) var(--ease-out);
  }
  .field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }

  /* Own the dropdown arrow outright. Specificity (0,2,1) beats Filament's
     `select:not(.choices)` (0,1,1) regardless of stylesheet order. */
  .field select:not(.choices) {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%23a9803f' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px 16px;
    padding-right: 40px;
  }
  /* Ô đang gõ sáng lên bằng viền vàng thay vì khung nét dày — cùng một tín
     hiệu nhưng nhẹ nhàng hơn, và vẫn đủ rõ cho người dùng bàn phím. */
  .field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--gold-deep);
    box-shadow: 0 0 0 3px rgba(222, 189, 124, .28);
  }
  .field textarea { resize: vertical; min-height: 86px; line-height: 1.6; }

  /* Điện thoại: khung ăn gần hết màn nên đệm 38px là quá tay, và tiêu đề
     30px đẩy phần nhập xuống dưới tầm nhìn đầu tiên. */
  @media (max-width: 560px) {
    .modal-overlay { padding: 10px; align-items: flex-start; }
    /* 90vh chặn khung ở 760px trên màn 844px rồi cuộn bên trong — nút "Xác
       nhận đặt bàn" rơi xuống dưới vùng cuộn đó, khách không thấy nút bấm.
       Nới lên gần hết màn và giữ nguyên khả năng cuộn cho máy nhỏ hơn. */
    .modal-box { padding: 26px 20px 24px; margin-top: 8px; max-height: calc(100vh - 20px); }
    .modal-box h2 { font-size: 24px; }
    .modal-box h2::before { margin-bottom: 12px; }
    .modal-sub { font-size: 13.5px; margin-top: 8px; }
    .form-grid { gap: 13px; margin-top: 20px; }
    /* Ngày và Giờ đứng cạnh nhau: hai ô này ngắn, xếp dọc là mất thêm 86px
       chiều cao mà chẳng dễ đọc hơn. Họ tên / số điện thoại thì vẫn xếp dọc
       vì chữ nhập vào dài. */
    .form-row { gap: 10px; }
    .field label { margin-bottom: 6px; }
    .field input, .field select, .field textarea { padding: 11px 12px; min-height: 46px; }
    .field textarea { min-height: 70px; }
    .modal-submit { min-height: 52px; margin-top: 6px; }
  }

  /* Ngày và Giờ đứng cạnh nhau — nhưng chỉ từ 380px trở lên.
     Đo được: ở 360px mỗi ô chỉ còn 145px trong khi ô ngày kèm biểu tượng
     lịch cần ~150px → tràn ngang. Ở 375px (iPhone SE/mini) mỗi ô được 152px,
     vừa đủ. Nên ngưỡng đặt ở 372px: máy hẹp hơn thì xếp dọc, dài thêm một
     chút còn hơn tràn. */
  @media (min-width: 372px) and (max-width: 560px) {
    .form-row:has(input[type="date"]) { grid-template-columns: 1fr 1fr; }
  }
  /* Nút xác nhận: nền xanh đậm nhất của thương hiệu, chữ giấy kem, chữ hoa
     giãn nhẹ. Cao 54px — trên ngưỡng vùng chạm, và đủ bề thế cho việc cuối
     cùng khách làm trên trang. Có một nét vàng mảnh ở đáy khi rê chuột. */
  .modal-submit {
    margin-top: 10px;
    width: 100%;
    min-height: 54px;
    background: var(--forest-deep);
    color: var(--paper);
    border: 1px solid var(--forest-deep);
    border-radius: 4px;
    font-family: var(--f-body);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .09em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background var(--dur-fast) var(--ease-out),
                color var(--dur-fast) var(--ease-out),
                box-shadow var(--dur-fast) var(--ease-out);
  }
  .modal-submit:hover {
    background: #29351a;
    color: var(--gold);
    box-shadow: 0 8px 22px -10px rgba(35, 43, 24, .85);
  }
  .modal-close { transition: border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
  .modal-close:hover { border-color: var(--gold-deep); color: var(--gold-deep); }
  .modal-success { display: none; text-align: center; padding: 14px 4px 4px; }
  .modal-success.show { display: block; }
  /* Dấu tích báo đặt thành công: vòng tròn viền vàng mảnh thay vì mảng màu
     đặc — cùng lối trang trí với ô số 01–05 và dải vàng đỉnh khung. */
  .modal-success .icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--gold-deep);
    color: var(--gold-deep);
    display: flex; align-items: center; justify-content: center;
    font-size: 28px;
    margin: 0 auto 20px;
  }
  .modal-success h3 { font-size: 18px; }
  .modal-success p { font-size: 13.5px; color: var(--ink-soft); margin-top: 10px; }
  .modal-success .modal-close-2 {
    margin-top: 20px;
    background: var(--forest-tint);
    color: var(--forest-deep);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13.5px;
  }
  @media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }

  /* ---------- Story ---------- */
  .story-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 44px; align-items: center; }
  .story-grid img { border-radius: 130px 130px 14px 14px; box-shadow: var(--shadow); }
  .story-grid p { color: var(--ink-soft); font-size: 15.5px; max-width: 52ch; }
  @media (max-width: 780px) { .story-grid { grid-template-columns: 1fr; } .story-grid .img-wrap { order: -1; } }
  .brand-grid .brand-card.dup { display: none; }
  @media (max-width: 720px) {
    .brand-grid .brand-card.dup { display: block; }
  }
  .brand-card .mark {
    width: 34px; height: 34px;
    border-radius: 9px;
    background: var(--forest-tint);
    color: var(--forest-deep);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--f-heading);
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 14px;
    transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
  }
  .brand-card:hover .mark {
    background: var(--gold);
    color: #241a0c;
    transform: scale(1.12);
  }
  .dish-card {
    background: var(--surface);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--dur-fast) var(--ease-out);
  }
  .dish-card:hover { transform: translateY(-4px); }
  .dish-card img { height: 190px; width: 100%; object-fit: cover; transition: transform var(--dur-med) var(--ease-out); }
  .dish-card:hover img { transform: scale(1.06); }
  .dish-card .dish-body { padding: 16px 16px 18px; }
  .dish-card h3 { font-size: 15px; }
  .dish-card .price {
    margin-top: 6px;
    font-variant-numeric: tabular-nums;
    color: var(--gold-deep);
    font-weight: 700;
    font-size: 14px;
  }
  .offer-banner .btn-ghost { border-color: rgba(255,255,255,0.5); }
  .testi-card .stars { color: var(--gold); font-size: 14px; letter-spacing: 2px; }
  .testi-card p.quote { margin: 12px 0 0; font-size: 14px; color: var(--ink); }
  .testi-card .src { margin-top: 14px; font-size: 12px; color: var(--ink-faint); }
  .branch-panel.active { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  @media (max-width: 640px) { .branch-panel.active { grid-template-columns: 1fr; } }
  .gallery-grid .g1 { grid-column: span 2; grid-row: span 2; }
  @media (max-width: 640px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } .gallery-grid .g1 { grid-column: span 2; grid-row: span 1; } }

  /* ---------- Lightbox ---------- */
  .lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(10, 13, 7, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    touch-action: none;
    overscroll-behavior: contain;
  }
  .lightbox.open { display: flex; }
  .lightbox img {
    max-width: min(92vw, 1100px);
    max-height: 86vh;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 30px 70px -20px rgba(0,0,0,0.6);
  }
  .lightbox-close {
    position: absolute;
    top: 20px; right: 24px;
    width: 42px; height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 18px;
    transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
  }
  .lightbox-close:hover { background: rgba(255,255,255,0.25); transform: rotate(90deg); }
  .lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px; height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 20px;
    transition: background var(--dur-fast) var(--ease-out);
  }
  .lightbox-nav:hover { background: rgba(255,255,255,0.28); }
  .lightbox-prev { left: 20px; }
  .lightbox-next { right: 20px; }
  .lightbox-count {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.75);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
  }
  @media (max-width: 640px) {
    .lightbox-nav { width: 40px; height: 40px; font-size: 17px; }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
  }

  /* ---------- Footer ---------- */
  footer.site {
    background: var(--forest-deep);
    color: #e7e2d0;
    margin-top: 0;
    position: relative;
  }
  .footer-divider { display: block; width: 100%; height: 52px; margin-top: 40px; }
  .footer-divider path { fill: var(--forest-deep); }
  @media (max-width: 640px) { .footer-divider { height: 30px; } }
  /* Khối cuối trước chân trang nền TỐI (home.blade.php gắn noi-chan-toi vào main): dải sóng lấy cùng
     màu xanh đậm và sát khối, không để hở dải kem. Sóng hoà vào khối + chân trang thành một mảng liền. */
  main.noi-chan-toi ~ .footer-divider { margin-top: 0; background: var(--forest-deep); }
  .footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: var(--sp-block) var(--w-gutter) var(--sp-stack);
    display: grid;
    /* Column count follows the space available instead of being declared per
       breakpoint. min(100%, …) keeps a column from being wider than the footer
       itself on a narrow phone, which is what pushed the page 2px sideways at
       320px. */
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
    gap: var(--sp-stack);
  }
  .footer-inner h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold-tint);
    margin-bottom: 14px;
    font-weight: 700;
  }
  .footer-inner .wordmark { color: #fff; margin-bottom: 10px; }
  .footer-inner p, .footer-inner li { font-size: 13px; color: #cdd7cd; }
  .footer-inner ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
  /* Biểu tượng mạng xã hội cột Kết nối (phiếu 0184): mỗi hãng một màu thương hiệu, trên ô trắng để nổi trên nền ô-liu đậm. */
  .mxh { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
  .mxh__muc {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; background: #fff; border-radius: 50%;
    transition: transform .18s ease, filter .18s ease; cursor: default;
  }
  .mxh__muc svg { display: block; fill: var(--mxh-mau); }
  .mxh__muc--khoi svg { width: 100%; height: 100%; }
  .mxh__muc--net svg { width: 22px; height: 22px; }
  .mxh__muc[data-mxh-muc="kakaotalk"] { border-radius: 3px; }
  a.mxh__muc { cursor: pointer; }
  a.mxh__muc:hover { transform: translateY(-2px); filter: brightness(1.12); }
  a.mxh__muc:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
  .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding: 16px 24px 24px;
    text-align: center;
    font-size: 11.5px;
    color: #9fae9f;
  }

  /* 0387: mỗi mục hàng dưới chân trang là một khối không bẻ giữa chữ (dấu « · » nằm trong khối mục trước). */
  .footer-bottom--hang .fb-muc { white-space: nowrap; }

  /* 0389 (L21): điện thoại — nút liên hệ nổi .lhn (đáy 85px, cao 52px = đỉnh 137px) nằm đè hàng dưới cùng.
     Đáy trang đã có body 78px + footer-bottom 24px = 102px; thêm 47px (= 137 − 102 + 12 thở) + vùng an toàn
     để hàng cuối nằm trên nút. Cùng mốc 720px với .sticky-cta / .lhn. Máy tính không đổi. */
  @media (max-width: 720px) {
    footer.site { padding-bottom: calc(47px + env(safe-area-inset-bottom)); }
  }

  /* ---------- Visual editor chrome ---------- */
  /* Moved out to public/css/editor-ui.css on purpose. The editing tools must
     not wear the website's own palette: a dark toolbar over the dark hero photo
     was effectively invisible, and sharing colours made it impossible to tell
     the tool apart from the page it edits. That file is self-contained (its
     variables are all --e-*) and is loaded for admins only, so it can be copied
     to another site as-is. */

  /* ---------- Admin-added blocks ---------- */
  /* These render from data (see partials/home/_block.blade.php) rather than
     being hand-written sections, so their spacing and width come from settings
     the admin picks instead of from a rule per section. */
  /* `section.xb`, not `.xb`: these blocks also carry `.block`, and
     `section.block { padding: var(--sp-section) 0 }` above has specificity
     (0,1,1) — a bare `.xb` would lose to it and the admin's spacing setting
     would do nothing (measured: asked for 120px, got 114px from --sp-section).
     Matching that specificity and coming later is what makes the setting win. */
  section.xb {
    /* No setting means the page's own section rhythm — the same responsive
       spacing every built-in section uses. So a section that has been converted
       into a block keeps exactly the air it had, at every screen width, without
       anyone having to guess a number that only happens to be right on a
       desktop. A number set in the panel pins it instead. */
    padding-block: var(--xb-pad-y, var(--sp-section));
    text-align: var(--xb-align, left);
    /* Mốc neo cho ba thứ mới dưới đây (ảnh nền · lớp mờ · viền chân): cả ba
       nằm tuyệt đối trong lòng khối. Thiếu dòng này chúng sẽ neo vào ông tổ
       nào đó ở tít trên và trôi đi đâu không biết. */
    position: relative;
  }
  /* KHOẢNG CÁCH TRÊN DƯỚI RIÊNG TỪNG KHỔ (14/10/2026 — việc 39·20). Máy chủ chỉ
     vẽ --xb-pad-y-t / -m cho khổ Sếp đã đặt riêng; khổ trống kế thừa khổ lớn
     hơn — điện thoại → máy tính bảng → máy tính → nhịp chung của trang — đúng
     luật "khổ nhỏ kế thừa khổ lớn" của ô phần tử. Gốc: khối đầu trang của cả
     bốn trang chừa 120 + 120px trên màn 390px vì padY dùng chung mọi khổ.
     Hai câu @media phải TRÙNG HomePage::LAYOUT_BANDS. */
  @media (min-width: 760px) and (max-width: 1099.98px) {
    section.xb { padding-block: var(--xb-pad-y-t, var(--xb-pad-y, var(--sp-section))); }
  }
  @media (max-width: 759.98px) {
    section.xb { padding-block: var(--xb-pad-y-m, var(--xb-pad-y-t, var(--xb-pad-y, var(--sp-section)))); }
  }

  /* ---------- Ảnh nền · lớp mờ · viền chân của MỘT KHỐI (15/09/2026) ----------
     Ba thứ này trước đây chỉ mảng hero mới có, viết cứng trong trang. Nay là ba
     ô cài đặt, khối nào cũng bật được — bước đệm để chính mảng hero trở thành
     một khối bình thường như mọi phần khác. */
  .xb__anh-nen {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    /* KHÔNG nhận chuột: nó phủ kín khối, mà mọi phần tử của khối nằm bên trên
       nó. Nhận chuột là nuốt sạch mọi cú bấm vào nội dung — đúng lý do
       .hero-overlay của mảng hero cũng phải tắt (xem ghi chú ở đó). */
    pointer-events: none;
  }
  /* Ô CHỌN TỆP PHẢI ĐƯỢC BẬT LẠI KHẢ NĂNG NHẬN CHUỘT.
     Khung nền mang `pointer-events: none` để khỏi nuốt cú bấm vào nội dung
     khối, nhưng luật ấy chảy xuống mọi thứ bên trong — và Chromium thì TỪ CHỐI
     mở hộp thoại chọn tệp cho một ô mà nó coi là không tương tác được, kể cả
     khi lệnh mở đến từ mã. Đo 15/09/2026 để tách bạch: một ô chọn tệp sạch mở
     được cả bằng mã lẫn bằng chuột, còn chính ô này thì không cách nào mở.
     Cùng cách chữa Puck dùng: cha tắt, đúng thứ cần thì bật lại. */
  .xb__anh-nen input[type="file"] { pointer-events: auto; }
  .xb__anh-nen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Phần nào của ảnh lọt vào khung — Sếp kéo tay ở chế độ "Chỉnh ảnh nền"
       (12/10/2026). Không có biến thì về giữa, đúng `center` cũ. */
    object-position: var(--xb-anh-x, 50%) var(--xb-anh-y, 50%);
    display: block;
  }
  .xb__mo {
    position: absolute;
    inset: 0;
    z-index: 1;
    /* Một màu sẫm trong suốt một phần, đậm nhạt do ô cài đặt quyết. Dùng màu
       nền sẫm của trang chứ không phải đen tuyền: đen tuyền trên nền xanh ô-liu
       của XMG trông như một vệt bẩn. */
    background: rgba(16, 21, 11, var(--xb-mo, 0));
    pointer-events: none;
  }
  /* Nội dung phải nằm TRÊN cả hai lớp kia. */
  .xb > .xb__inner { position: relative; z-index: 2; }

  .xb__chan {
    position: absolute;
    left: 0; right: 0; bottom: -1px;   /* -1px: hở một sợi tóc là thấy ngay */
    height: 52px;
    z-index: 3;
    pointer-events: none;
  }
  .xb__chan svg { width: 100%; height: 100%; display: block; }
  /* Tô bằng màu nền trang: viền trông như khối đang khoét vào nền, đúng cách
     hàng cây của mảng hero vẫn làm. */
  .xb__chan path { fill: var(--xb-chan-mau, var(--bg)); }
  /* 0523: _block.blade.php đặt --xb-chan-mau = nền của khúc HIỆN ngay dưới (khác var(--bg) mới đặt) → sóng liền mạch với khúc dưới. */
  @media (max-width: 640px) { .xb__chan { height: 30px; } }

  /* Khối có ảnh nền thì phải có chỗ cho ảnh thở: một khối cao 0 thì ảnh nền
     cũng cao 0, nhìn như chưa đặt gì — đúng cái bẫy "màu vô hình" đã gặp. */
  .xb--co-anh-nen { min-height: 220px; }

  /* ---------- Chiều cao khối theo khổ màn (12/10/2026) ----------
     Sếp: "điều chỉnh khung này về chiều cao cho phù hợp với hình". Máy chủ vẽ
     đúng số đã cất của từng khổ (--xb-cao-d / -t / -m) và lớp .xb--co-cao khi có
     ít nhất một số. Ba khối @media dưới đây chọn ra MỘT số cho khổ đang xem:
       · máy tính bảng để trống thì lấy của máy tính;
       · điện thoại KHÔNG kế thừa — Sếp gật: chiều cao vừa đẹp trên máy tính
         thành cột ảnh cao ngồng trên màn 390px.
     Biến tham chiếu một biến chưa có thì tự thành "không hợp lệ", và lúc ấy
     var(--xb-cao, …) rơi về giá trị lùi — tức khổ chưa đặt hiện y như cũ.

     MIN-height, không phải height: kéo thấp hơn phần chữ cần thì khối dừng ở
     mức vừa đủ chữ, chữ không bao giờ bị cắt. Ba câu hỏi @media phải TRÙNG
     HomePage::LAYOUT_BANDS.

     "VỪA KHÍT ẢNH" đi bằng --xb-tl-? (tỉ lệ ảnh, vd 1080 / 555) qua
     aspect-ratio: khít ở MỌI bề ngang, điều số px không làm được. Khổ ấy
     min-height là auto, nên trình duyệt vẫn cho khối cao thêm khi chữ cần
     chỗ (luật "automatic minimum size" của aspect-ratio). Máy chủ vẽ biến
     không dùng thành `auto` để chặn kế thừa lẫn hai kiểu — xem _block.blade.php. */
  @media (min-width: 1100px) {
    section.xb.xb--co-cao { --xb-cao: var(--xb-cao-d); --xb-tl: var(--xb-tl-d); }
  }
  @media (min-width: 760px) and (max-width: 1099.98px) {
    section.xb.xb--co-cao {
      --xb-cao: var(--xb-cao-t, var(--xb-cao-d));
      --xb-tl: var(--xb-tl-t, var(--xb-tl-d));
    }
  }
  @media (max-width: 759.98px) {
    section.xb.xb--co-cao { --xb-cao: var(--xb-cao-m); --xb-tl: var(--xb-tl-m); }
  }
  section.xb.xb--co-cao {
    min-height: var(--xb-cao, auto);
    aspect-ratio: var(--xb-tl, auto);
    /* Khối cao hơn chữ thì chữ đứng GIỮA theo chiều dọc, như mảng đầu trang cũ —
       để chữ dính mép trên còn khoảng trống dồn hết xuống dưới thì trông như
       khối bị vỡ. Ảnh nền · lớp mờ · viền chân nằm tuyệt đối nên không bị flex
       xếp; .xb__inner có bề rộng riêng + margin-inline:auto nên vẫn căn như cũ. */
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  section.xb.xb--co-cao.xb--co-anh-nen { min-height: var(--xb-cao, 220px); }
  /* "Chữ nằm ở" (14/10/2026 — việc 39·20): Trên / Dưới thay cho giữa mặc định
     ngay trên. Một giá trị cho mọi khổ. Có ô này thì muốn chữ nằm thấp không
     phải đẩy cột chữ bằng lề nữa — lề dùng chung mọi khổ, ăn chỗ của điện
     thoại (gốc 39·20). Chữ vẫn nằm TRONG khoảng cách trên dưới của khối. */
  section.xb.xb--co-cao.xb--chu-tren { justify-content: flex-start; }
  section.xb.xb--co-cao.xb--chu-duoi { justify-content: flex-end; }
  /* A custom block is marked out by its own background, so the divider the
     built-in sections share would just be a stray line — especially under a
     dark block. Off by default; "Đường kẻ ngăn dưới khối" in the block panel
     opts one back in, in whatever colour it asks for. !important because it
     is the more specific setting and must win regardless of source order. */
  main.reorder section.xb { border-bottom: none; }
  main.reorder section.xb.xb--divider-on {
    border-bottom: 1px solid var(--xb-divider-color, var(--line-soft)) !important;
  }
  .xb__inner {
    /* Width is a setting, so it is a variable the modifiers below reassign —
       the container itself never needs to know which width it is. */
    width: min(100% - (2 * var(--w-gutter)), var(--xb-max, 75rem));
    margin-inline: auto;
  }
  .xb--w-narrow { --xb-max: 42rem; }
  .xb--w-normal { --xb-max: 60rem; }
  .xb--w-wide   { --xb-max: 75rem; }
  .xb--w-full .xb__inner { width: 100%; }

  /* Sếp chốt 27/08: trang chỉ dùng HAI màu xanh của thương hiệu — xanh nhạt
     (chính là nền trang) và xanh đậm. Không còn màu kem ở cấp khối.

     Nhịp trang vì thế là đổi qua lại từng mục. Hai đầu bị khoá sẵn nên bài
     toán tự giải: mép sóng dưới hero vẽ bằng đúng màu nền trang nên mục đầu
     buộc phải nhạt; chân trang màu xanh đậm nên mục cuối cũng buộc phải
     nhạt — không thì mục Đặt bàn dính liền vào chân trang thành một mảng
     tối. Chín mục, hai đầu đều nhạt: đổi qua lại vừa khít. */
  .xb--bg-tint { background: var(--bg); }
  .xb--bg-card { background: var(--surface); }
  .xb--bg-dark { background: var(--forest-deep); color: var(--paper); }
  .xb--bg-dark .xb__heading { color: var(--gold); }

