/* Đạo Quán public directories and account actions. */
body.dq-seo-r300.dq356-ui {
  --dq-ink: #163833;
  --dq-muted: #465a54;
  --dq-paper: #fffdf7;
  --dq-edge: #ded1b6;
  --dq-gold: #d7b376;
  color: var(--dq-ink);
  background: radial-gradient(ellipse at 80% 0, #f6edd9 0, transparent 38rem), #f9f6ed;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

.dq356-ui > :is(header, main, footer) { width: 100%; max-width: 1170px; padding-inline: clamp(16px, 4vw, 44px); }
.dq356-ui > header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6rem 1.3rem; padding-block: 14px; border: 0; }
.dq356-ui > main { padding-top: clamp(10px, 2vw, 22px); padding-bottom: clamp(35px, 6vw, 68px); }
.dq356-ui > footer { border-top: 1px solid var(--dq-edge); color: var(--dq-muted); padding-block: 26px 38px; }
.dq356-ui > footer > p { margin: 0 0 .5rem; font-size: .84rem; letter-spacing: .05em; }
.dq356-ui a { color: #1f5145; text-underline-offset: .18em; }
.dq356-ui .dq356-brand { display: inline-flex; align-items: center; gap: .65rem; min-height: 44px; text-decoration: none; font: 700 1.3rem/1.2 Georgia, serif; }
.dq356-brand img { width: 38px; height: 38px; border-radius: 10px; object-fit: contain; background: #fffaf0; box-shadow: 0 3px 7px #462f1b2b; }
.dq356-ui > header > nav { gap: .25rem 1rem; }
.dq356-ui > header > nav > a { display: inline-flex; align-items: center; min-height: 44px; font-size: .93rem; text-decoration: none; }
.dq356-ui .dq356-open {
  display: inline-flex; align-items: center; min-height: 44px; padding: .55rem .95rem;
  border: 1px solid #427061; border-radius: 999px; background: #204f45; color: #fff8e6; text-decoration: none; font-size: .87rem; font-weight: 650;
}
.dq356-ui :is(h1, h2, h3) { overflow-wrap: anywhere; }
.dq356-ui :is(h1,h2) { font-family: Georgia, "Times New Roman", serif; }
.dq356-ui a:focus-visible, .dq356-paths a:focus-visible, .dq356-help a:focus-visible { outline: 3px solid #ad6a26; outline-offset: 4px; }
.dq356-ui .dq356-skip { position: absolute; inset: 10px auto auto 10px; z-index: 3; padding: .7rem; background: #fff8e7; transform: translateY(-200%); }
.dq356-ui .dq356-skip:focus { transform: none; }

.dq356-hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: clamp(220px, 26vw, 340px);
  border: 1px solid #cbb17b;
  border-radius: clamp(18px, 3vw, 31px);
  margin: 0 0 clamp(24px, 4vw, 43px);
  color: #1e3c33;
  background: linear-gradient(92deg, #fffaf0 4%, #fff9eadb 41%, #fff9ea00 84%), url("san-dao-quan.webp") 76% center/cover no-repeat #f2e9d1;
  box-shadow: 0 12px 30px #48352322, inset 0 1px #ffffffb8;
}
.dq356-hero--dark {
  color: #fff4d9;
  background: linear-gradient(92deg, #071b22fa 7%, #0a2730dd 39%, #071b2230 89%), url("dem-dao-quan.webp") 80% 39%/cover no-repeat #102e32;
  border-color: #866b43;
  box-shadow: 0 16px 34px #14292a39, inset 0 1px #dcb77774;
}
.dq356-hero--jade { background-image: linear-gradient(91deg, #f1f1df 8%, #f5f1def0 39%, #eee8cb12 87%), url("san-dao-quan.webp"); }
.dq356-hero-copy { padding: clamp(21px, 5.7vw, 66px); max-width: min(100%, 760px); }
.dq356-hero-copy > h1 { font-size: clamp(2rem, 5vw, 3.65rem); letter-spacing: -.026em; line-height: 1.12; margin: 0 0 .45em; }
.dq356-hero-copy > p { max-width: 56ch; margin: .5em 0; font-size: clamp(.94rem, 1.5vw, 1.08rem); }
.dq356-hero--dark p { color: #f3e7c9; }
.dq356-hero-copy > a.button { width: fit-content; margin-block: .65rem .15rem; border-radius: 999px; background: #204d42; box-shadow: 0 4px 10px #1e3b3548; }
.dq356-hero-copy .dq356-paths { margin-top: 1.15rem; }

.dq356-paths { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .55rem; }
.dq356-paths > a {
  display: inline-flex; align-items: center; justify-content: center; gap: .47rem;
  min-height: 44px; max-width: 100%; padding: .38rem .82rem;
  border: 1px solid #c5a773; border-radius: 999px; background: #fff9e9; color: #1b4538;
  box-shadow: inset 0 1px #fff, 0 3px 6px #503e2230; text-decoration: none; font-weight: 650; line-height: 1.25; font-size: .88rem;
}
.dq356-paths > a::after, .dq356-card > a::after { content: ""; width: .38em; height: .38em; border: solid currentColor; border-width: 1px 1px 0 0; transform: rotate(45deg); flex: none; }
.dq356-paths > a[aria-current] { background: #224d41; color: #ffefce; border-color: #2f6655; box-shadow: inset 0 1px #5f8f76, 0 3px 6px #223d3238; }
.dq356-paths > a:hover { background: #fae9c4; color: #1b4238; }
.dq356-hero--dark .dq356-paths > a[aria-current] { background: linear-gradient(#f6e5b9,#dcb474); color: #213528; border-color: #efd49b; }

.dq356-ui .dq356-category { margin: 0 0 clamp(24px, 4vw, 48px); }
.dq356-category > h2, .dq356-view-topics main > section:not(.dq356-hero) > h2 { margin: 0 0 .85rem; font-size: clamp(1.33rem, 3.3vw, 2rem); }
.dq356-grid, .dq356-view-topics main > section:not(.dq356-hero) > ul, .dq356-view-guide main > ul {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; list-style: none; padding: 0; margin: 0;
}
.dq356-grid[data-kind="reading"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dq356-card, .dq356-view-topics main > section:not(.dq356-hero) > ul > li, .dq356-view-guide main > ul > li {
  display: flex; flex-direction: column; align-items: flex-start; min-width: 0; gap: .55rem;
  padding: clamp(14px, 2vw, 23px); border: 1px solid var(--dq-edge); border-radius: 17px;
  background: linear-gradient(150deg, #fffefa, #faf5e6); box-shadow: inset 0 1px #fff, 0 6px 18px #47361e13;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.dq356-card:hover, .dq356-card:focus-within { border-color: #a98d54; box-shadow: inset 0 1px #fff, 0 9px 24px #47361e22; }
.dq356-card > a {
  display: flex; gap: .62rem; width: 100%; min-height: 44px; align-items: center; justify-content: flex-start;
  color: #143f34; font-size: clamp(1rem, 1.6vw, 1.17rem); font-weight: 720; line-height: 1.35; text-decoration: none; overflow-wrap: anywhere;
}
.dq356-card > a::after { margin-inline-start: auto; opacity: .58; }
.dq356-card > p { margin: 0; color: var(--dq-muted); font-size: .92rem; line-height: 1.55; }
.dq356-kind { color: #2c5046; background: #e8efe5; border: 1px solid #d0ddcd; border-radius: 999px; font-size: .75rem; font-weight: 650; padding: .16rem .55rem; }
.dq356-mark {
  display: grid; place-items: center; width: 35px; height: 35px; flex: 0 0 auto; border-radius: 11px;
  color: #c7a15e; background: linear-gradient(145deg, #2b7160, #143b35);
  border: 1px solid #366455; box-shadow: inset 0 1px #d4b37172, 0 3px 7px #2d3a2e3b;
}
.dq356-mark::before { content: ""; display: block; width: 12px; height: 12px; border: 1px solid currentColor; transform: rotate(45deg); border-radius: 3px; }
[data-kind="calendar"] .dq356-mark::before { transform: none; border-radius: 3px; box-shadow: inset 0 3px currentColor; }
[data-kind="compass"] .dq356-mark::before { border-radius: 50%; box-shadow: inset 0 0 0 3px #245649, inset 0 0 0 4px currentColor; }
[data-kind="number"] .dq356-mark::before { transform: none; border-radius: 3px; background: repeating-linear-gradient(90deg, transparent 0 3px, currentColor 3px 4px); }
[data-kind="culture"] .dq356-mark::before { transform: none; width: 14px; border-radius: 1px 1px 4px 4px; background: linear-gradient(90deg, transparent 47%, currentColor 47% 55%, transparent 55%); }
.dq356-view-topics > main > section:not(.dq356-hero), .dq356-view-guide > main > section:not(.dq356-hero) { margin-bottom: 26px; }
.dq356-view-guide main > :is(p, section:not(.dq356-hero)) { max-width: 78ch; }
.dq356-ui nav[aria-label="Phân trang"] { margin-top: 28px; gap: 10px; }
.dq356-ui nav[aria-label="Phân trang"] > a {
  display: inline-flex; align-items: center; min-height: 44px; padding: .45rem 1rem; border-radius: 999px; border: 1px solid #c5a773; background: #fff9eb; font-weight: 650; text-decoration: none;
}
.dq356-ui nav[aria-label="Đường dẫn"] { margin: 0 0 12px; font-size: .88rem; align-items: center; gap: .35rem .6rem; }
.dq356-view-reading > main > article {
  display: block; max-width: 890px; margin: auto; border: 1px solid var(--dq-edge); border-radius: 22px;
  padding: clamp(16px, 5vw, 54px); background: var(--dq-paper); box-shadow: 0 11px 29px #48352317;
}
.dq356-view-reading > main > article > :is(figure, video, audio, img) { display: block; margin-inline: auto; border-radius: 12px; }
.dq356-view-reading > main > article > h1 { margin-block: .45em .5em; }
.dq356-view-reading [data-dq-full-content] { font-size: clamp(1rem, 1.8vw, 1.125rem); line-height: 1.77; }
.dq356-view-reading figcaption { color: var(--dq-muted); font-size: .89rem; text-align: center; padding: .45em; }
.dq356-view-reading audio { width: 100%; margin-block: 1rem; }
.dq356-view-reading .dq-toc { margin-block: 1.1rem; }

.dq356-destinations {
  box-sizing: border-box; width: min(calc(100% - 28px), 1160px); margin: 26px auto; padding: clamp(16px, 3vw, 28px);
  border: 1px solid #d4b97c; border-radius: 20px; background: linear-gradient(130deg, #fffaf0, #f7edd5); color: #173e34;
  box-shadow: 0 7px 16px #251b1822, inset 0 1px #fff;
}
.dq356-destinations > h2 { margin: 0 0 .75rem; color: #173e34; font-size: clamp(1.14rem, 3.4vw, 1.65rem); line-height: 1.25; }

.dq356-help.paper {
  box-sizing: border-box; min-width: 0; padding: clamp(11px, 4vw, 22px); margin-block: 16px;
  color: #18352f; background: linear-gradient(145deg, #fffdf5 5%, #f5ead0 100%);
  border: 1px solid #d7b477; border-radius: 18px; box-shadow: inset 0 1px 1px #ffffff, 0 6px 0 -4px #ad8148, 0 9px 20px #191f2043;
}
.dq356-help > h2 { margin: 0 0 .7rem; padding: 0; color: #163731; font-weight: 730; font-size: clamp(1.13rem, 5vw, 1.62rem); line-height: 1.23; text-shadow: 0 1px #fff5de; }
.dq356-help__actions { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; }
.dq356-help .dq356-help__link {
  display: inline-flex; min-width: 0; min-height: 44px; max-width: 100%; align-items: center; justify-content: center; text-align: center;
  box-sizing: border-box; width: fit-content; padding: .52em .84em; border: 1px solid #bd9558; border-radius: 999px;
  color: #412a1f; background: linear-gradient(#ffebc0 4%, #ead092 96%); font-size: clamp(.78rem, 2.9vw, .94rem); line-height: 1.24;
  text-decoration: none; font-weight: 700; box-shadow: inset 0 1px #fff4d6, inset 0 -2px #8a562621, 0 3px #ac803d99, 0 6px 10px #4a35252c;
  transition: box-shadow .16s ease, transform .16s ease;
}
.dq356-help .dq356-help__link--trial { color: #12372d; border-color: #8aab92; background: linear-gradient(#f7fff2,#c6dfc7); box-shadow: inset 0 1px #fff, 0 3px #76937a, 0 6px 10px #3b53402e; }
.dq356-help .dq356-help__link--ask { color: #fff3d3; background: linear-gradient(#335f61,#153b45); border-color: #3e6061; box-shadow: inset 0 1px #9aafa8, 0 3px #18363c, 0 6px 10px #2c2a242f; }
.dq356-help .dq356-help__link:is(:hover,:focus-visible) { filter: brightness(1.07); }
.dq356-help .dq356-help__link:active { transform: translateY(2px); box-shadow: inset 0 2px 5px #402e2755; }

@media (max-width: 820px) {
  .dq356-grid, .dq356-view-topics main > section:not(.dq356-hero) > ul, .dq356-view-guide main > ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .dq356-hero { min-height: 215px; background-position: 76% center; }
  .dq356-hero--dark { background-image: linear-gradient(90deg,#071b22f5,#091d23b7 68%,#071b2270), url("dem-dao-quan.webp"); }
  .dq356-hero--light, .dq356-hero--jade { background-image: linear-gradient(90deg,#fffaf1f7 7%,#fff9e8df 65%,#f3ead35e), url("san-dao-quan.webp"); }
  .dq356-grid, .dq356-grid[data-kind="reading"], .dq356-view-topics main > section:not(.dq356-hero) > ul, .dq356-view-guide main > ul { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .dq356-hero-copy { padding: clamp(18px, 5.5vw, 34px); }
  .dq356-help__actions { display: grid; grid-template-columns: repeat(2, fit-content(50%)); gap: 7px; }
  .dq356-help__actions[data-dq-count="3"] { grid-template-columns: repeat(3, minmax(0, max-content)); }
  .dq356-help .dq356-help__link { width: 100%; padding-inline: clamp(.28em, 2vw, .8em); overflow-wrap: anywhere; }
}

@media (prefers-reduced-motion: reduce) {
  .dq356-card, .dq356-help__link { transition: none !important; }
}
