/* Nha khoa Thư Hiên (nha-khoa 4.5): a dental health magazine. A centred nameplate over a dateline, a cover photo with
   the headline boxed on it, text in columns, tall doctor portraits, a navy pull-quote, a lead-story grid for the
   advice pages. Fonts: Playfair Display (nameplate, titles) + Be Vietnam Pro (text). */
:root {
  --navy: #14213d;
  --navy-2: #22335a;
  --coral: #e76f51;
  --sand: #f4efe6;
  --paper: #fffdf9;
  --ink: #1f2430;
  --muted: #646a78;
  --line: #e2dccf;
  --k-font: 'Be Vietnam Pro', system-ui, sans-serif;
  --k-font-display: 'Playfair Display', Georgia, serif;
  --k-accent: #14213d;
  --k-accent-ink: #ffffff;
  --k-ink: #1f2430;
  --k-paper: #fffdf9;
  --k-muted: #646a78;
  --k-line: #e2dccf;
  --k-radius: 4px;
}

body {
  background: var(--paper);
  color: var(--ink);
  font:
    400 16px/1.7 'Be Vietnam Pro',
    system-ui,
    sans-serif;
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.15;
  text-wrap: balance;
}
.plain {
  margin: 0;
  padding: 0;
  list-style: none;
}
.kicker {
  display: block;
  margin: 0 0 8px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.fine {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 1.5px solid var(--navy);
  border-radius: 2px;
  background: var(--navy);
  color: #fff;
  font:
    600 15px/1.2 'Be Vietnam Pro',
    sans-serif;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover {
  background: var(--navy-2);
}
.btn-line {
  background: transparent;
  color: var(--navy);
}
.btn-line:hover {
  background: var(--sand);
}
.btn-sm {
  min-height: 44px;
  padding: 0 16px;
}
.btn-block {
  width: 100%;
}
.link {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.link-big {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  text-decoration: none;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid var(--coral);
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.back-dark {
  color: var(--navy);
}

/* Masthead */
.hdr {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--paper);
  border-bottom: 3px double var(--navy);
}
.hdr-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  max-width: 1128px;
  margin: 0 auto;
  padding: 6px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.hdr-main {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 8px;
  max-width: 1128px;
  margin: 0 auto;
  padding: 8px 16px;
}
.mast {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1;
  text-decoration: none;
  color: var(--navy);
}
.mast small {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--coral);
}
.mast span {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.hdr-menu,
.hdr-book {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: none;
  color: var(--navy);
  cursor: pointer;
}
.hdr-book {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.menu {
  display: none;
  flex-direction: column;
  padding: 0 16px 8px;
}
.menu[data-open] {
  display: flex;
}
.menu a {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-weight: 600;
  text-decoration: none;
}
.menu .menu-cta {
  color: var(--coral);
}

/* Sections */
.sec {
  padding: 48px 16px;
}
.sec > * {
  max-width: 1128px;
  margin-left: auto;
  margin-right: auto;
}
.page {
  max-width: 1160px;
  margin: 0 auto;
}
.sec-sand {
  background: var(--sand);
}
.sec-navy {
  background: var(--navy);
  color: #fff;
}
.h1 {
  font-size: 34px;
}
.h2 {
  margin-bottom: 22px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 30px;
}
.sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.sec-head .h2 {
  margin: 0;
  border: 0;
}
.sec-head .more {
  margin-bottom: 10px;
}

/* Cover */
.cover {
  display: flex;
  align-items: flex-end;
  min-height: 520px;
  padding: 16px;
  background-size: cover;
  background-position: center;
}
.cover-box {
  max-width: 560px;
  padding: 22px;
  background: var(--paper);
  box-shadow: 10px 10px 0 var(--coral);
}
.cover-title {
  font-size: 30px;
  line-height: 1.15;
  color: var(--navy);
}
.cover-title em {
  font-weight: 400;
}

/* Intro */
.columns {
  display: grid;
  gap: 14px;
}
.columns p {
  margin: 0;
}
.columns p:first-of-type::first-letter {
  float: left;
  margin: 6px 10px 0 0;
  font-family: 'Playfair Display', serif;
  font-size: 62px;
  font-weight: 800;
  line-height: 0.8;
  color: var(--coral);
}
.figures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 30px;
  margin-bottom: 0;
  border-top: 1px solid var(--navy);
  border-bottom: 1px solid var(--navy);
}
.figures div {
  padding: 14px 8px;
}
.figures dd {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--navy);
}
.figures dt {
  color: var(--muted);
  font-size: 14px;
}

/* Services */
.svcs {
  display: grid;
  gap: 18px;
}
.svc {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.svc-img img {
  display: block;
  width: 116px;
  height: 140px;
  object-fit: cover;
}
.svc-name {
  margin-bottom: 6px;
  font-size: 21px;
}
.svc-name a {
  text-decoration: none;
}
.svc-name a:hover {
  color: var(--coral);
}
.svc-short {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 15px;
}
.svc-price {
  margin: 0 0 10px;
}
.svc-price b {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--navy);
}
.svc-price small {
  color: var(--muted);
}

/* Doctors */
.docs {
  display: grid;
  gap: 28px;
}
.doc {
  margin: 0;
}
.doc img {
  display: block;
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: top;
  filter: grayscale(0.15);
}
.doc figcaption {
  display: flex;
  flex-direction: column;
  padding-top: 14px;
}
.doc b {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  line-height: 1.2;
  color: var(--navy);
}
.doc-bio {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
}

/* Quotes */
.pull {
  margin-top: 0;
  margin-bottom: 36px;
  text-align: center;
}
.pull blockquote {
  margin: 0 auto 14px;
  max-width: 820px;
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-style: italic;
  line-height: 1.4;
}
.pull blockquote::before {
  content: '“';
  display: block;
  color: var(--coral);
  font-size: 64px;
  line-height: 0.6;
}
.pull figcaption {
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
}
.minis {
  display: grid;
  gap: 18px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.mini {
  margin: 0;
}
.stars {
  margin: 0;
  color: var(--coral);
  letter-spacing: 2px;
}
.mini blockquote {
  margin: 6px 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
}
.mini figcaption {
  font-size: 14px;
}

/* Stories */
.stories {
  display: grid;
  gap: 24px;
}
.story {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}
.story img {
  width: 100%;
  height: 200px;
  margin-bottom: 12px;
  object-fit: cover;
}
.story-title {
  font-family: 'Playfair Display', serif;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.25;
}
.story:hover .story-title {
  color: var(--coral);
}
.story-excerpt {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
}

/* FAQ */
.faqs {
  display: grid;
}
.faq {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  position: relative;
  padding: 16px 40px 16px 0;
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  position: absolute;
  top: 12px;
  right: 4px;
  color: var(--coral);
  font-size: 26px;
  font-family: 'Be Vietnam Pro', sans-serif;
}
.faq[open] summary::after {
  content: '−';
}
.faq p {
  margin: 0;
  padding: 0 0 18px;
  color: var(--muted);
}

/* Contact */
.contact {
  display: grid;
  gap: 20px;
  max-width: 1160px;
  margin: 0 auto;
}
.contact > * {
  max-width: none;
  margin: 0;
}
.hours li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  max-width: 380px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.map {
  min-height: 280px;
  background: var(--sand);
}

/* List */
.finder {
  display: grid;
  gap: 10px;
  margin: 18px 0 14px;
}
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-bottom: 2px solid var(--navy);
  background: var(--sand);
}
.search input {
  flex: 1;
  min-width: 0;
  min-height: 50px;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  outline: none;
}
.select {
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.tabs,
.tabs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
}
.tabs {
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.tab {
  min-height: 44px;
  padding: 0;
  border: 0;
  border-bottom: 3px solid transparent;
  background: none;
  color: var(--muted);
  font:
    600 15px/1 'Be Vietnam Pro',
    sans-serif;
  cursor: pointer;
}
.tab[aria-pressed='true'] {
  border-bottom-color: var(--coral);
  color: var(--navy);
}
.empty {
  padding: 24px;
  background: var(--sand);
  text-align: center;
}

/* Detail */
.dcover {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 340px;
  padding: 16px;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
.dcover::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(20, 33, 61, 0.92), rgba(20, 33, 61, 0.1) 70%);
}
.dcover-in {
  width: 100%;
  max-width: 1128px;
  margin: 0 auto;
  color: #fff;
}
.dgrid {
  display: grid;
  gap: 28px;
  max-width: 1160px;
  margin: 0 auto;
}
.dgrid > * {
  max-width: none;
  margin: 0;
}
.dlead {
  margin-top: 0;
  font-family: 'Playfair Display', serif;
  font-size: 21px;
  font-style: italic;
  line-height: 1.45;
}
.spec {
  margin: 20px 0 0;
  border-top: 1px solid var(--navy);
}
.spec div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.spec dt {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.spec dd {
  margin: 0;
}
.dbox {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-self: start;
  padding: 22px;
  background: var(--sand);
  border-top: 4px solid var(--coral);
}
.dprice {
  margin: 0;
}
.dprice b {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  color: var(--navy);
}
.dprice small {
  color: var(--muted);
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tags li {
  padding: 2px 10px;
  border: 1px solid var(--navy);
  font-size: 13px;
  font-weight: 600;
}

/* Order */
.order {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}
.paper {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
}
.order-side {
  order: -1;
  padding: 20px;
  background: var(--sand);
}
.order-item {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
}
.order-item:empty::before {
  content: 'Chọn dịch vụ ở ô “Dịch vụ” trong phiếu hẹn.';
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
}
.order-total {
  margin: 4px 0 0;
  font-weight: 700;
}
.order-side:has(.order-item:empty) .order-total {
  display: none;
}
.order-side hr {
  margin: 16px 0;
  border: 0;
  border-top: 1px solid var(--line);
}
.order-quote {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-style: italic;
  line-height: 1.45;
}
.order-by {
  margin: 8px 0 0;
  color: var(--coral);
  font-size: 14px;
  font-weight: 700;
}

/* Article */
.read {
  max-width: 740px;
  margin: 0 auto;
}
.read > * {
  max-width: none;
}
.read-lead {
  margin: 14px 0 22px;
  font-family: 'Playfair Display', serif;
  font-size: 21px;
  font-style: italic;
  line-height: 1.45;
}
.read-img {
  width: 100%;
  height: 240px;
  margin-bottom: 22px;
  object-fit: cover;
}
.read-body p {
  margin: 0 0 16px;
  font-size: 17px;
}
.read-body p:first-of-type::first-letter {
  float: left;
  margin: 6px 10px 0 0;
  font-family: 'Playfair Display', serif;
  font-size: 62px;
  font-weight: 800;
  line-height: 0.8;
  color: var(--coral);
}
.read-cta {
  margin: 28px 0 0;
}
.stories-all {
  margin-top: 26px;
}

/* Footer */
.ftr {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
}
.ftr-in {
  display: grid;
  gap: 22px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 38px 16px;
}
.ftr p {
  margin: 0 0 6px;
}
.mast-ftr {
  align-items: flex-start;
  margin-bottom: 10px !important;
  color: #fff;
}
.ftr-h {
  color: var(--coral);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.ftr .link-big {
  color: #fff;
}

@media (min-width: 720px) {
  .columns {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
  .figures {
    grid-template-columns: repeat(4, 1fr);
  }
  .figures div + div {
    border-left: 1px solid var(--line);
    padding-left: 16px;
  }
  .svcs {
    grid-template-columns: 1fr 1fr;
    gap: 24px 36px;
  }
  .svc {
    grid-template-columns: 180px 1fr;
  }
  .svc-img img {
    width: 180px;
    height: 200px;
  }
  .docs {
    grid-template-columns: repeat(3, 1fr);
  }
  .minis {
    grid-template-columns: repeat(4, 1fr);
  }
  .stories {
    grid-template-columns: repeat(3, 1fr);
  }
  .ftr-in {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .hdr-main {
    grid-template-columns: 1fr auto 1fr;
    padding: 10px 16px 4px;
  }
  .hdr-menu {
    visibility: hidden;
  }
  .hdr-book {
    justify-self: end;
  }
  .mast span {
    font-size: 44px;
  }
  .menu {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 34px;
    padding: 4px 16px 10px;
  }
  .menu a {
    padding: 4px 0;
    border: 0;
    font-size: 15px;
  }
  .cover {
    min-height: 600px;
    padding: 48px max(16px, calc((100% - 1128px) / 2));
  }
  .cover-box {
    padding: 34px;
  }
  .cover-title {
    font-size: 44px;
  }
  .sec {
    padding: 72px 16px;
  }
  .h1 {
    font-size: 46px;
  }
  .h2 {
    font-size: 36px;
  }
  .stories-lead {
    grid-template-columns: 2fr 1fr 1fr;
    align-items: start;
  }
  .stories-lead .story:first-of-type img {
    height: 360px;
  }
  .stories-lead .story:first-of-type .story-title {
    font-size: 30px;
  }
  .faqs {
    grid-template-columns: 1fr 1fr;
    column-gap: 48px;
  }
  .contact {
    grid-template-columns: 1fr 1.3fr;
    align-items: center;
  }
  .finder {
    grid-template-columns: 1fr 260px;
  }
  .dcover {
    min-height: 460px;
    padding: 48px 16px;
  }
  .dgrid {
    grid-template-columns: 1fr 360px;
    gap: 56px;
  }
  .dbox {
    position: sticky;
    top: 170px;
  }
  .order {
    grid-template-columns: 1fr 360px;
    align-items: start;
  }
  .order-side {
    order: 0;
    position: sticky;
    top: 170px;
  }
  .read-img {
    height: 420px;
  }
}
