/* db.dov.vn — Plain text aesthetic, NO IMAGES rendered */

*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; font-size: 14px; }
body {
  margin: 0;
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", "JetBrains Mono",
               Menlo, Consolas, "Courier New", monospace;
  line-height: 1.55;
  color: #111;
  background: #fff;
  font-feature-settings: "calt" 0;
}
a { color: #00e; text-decoration: underline; text-underline-offset: 2px; }
a:visited { color: #551a8b; }
a:hover { background: #ff0; color: #000; text-decoration: none; }
img { display: none; }  /* db.dov.vn: KHÔNG render ảnh — bot không cần */
hr  { border: 0; border-top: 1px solid #000; margin: 16px 0; }
code, kbd, samp {
  font-family: inherit;
  background: #f3f3f3;
  padding: 0 4px;
  border: 1px solid #ddd;
}
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th, td { padding: 4px 8px; border: 1px solid #000; text-align: left; vertical-align: top; }
th { background: #eee; font-weight: 700; }
ul, ol { padding-left: 22px; margin: 8px 0; }
li { margin: 2px 0; }

.skip-link {
  position: absolute; left: -9999px;
  background: #000; color: #fff; padding: 4px 8px;
}
.skip-link:focus { left: 4px; top: 4px; z-index: 100; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.site-main-wrap { padding: 16px 16px 32px; }

/* Header */
.site-header {
  background: #fff;
  border-bottom: 2px solid #000;
}
.site-header .wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
  padding: 12px 16px 8px;
}
.brand a {
  color: #000; text-decoration: none;
  font-weight: 700; font-size: 16px;
}
.brand a:hover { background: transparent; }
.brand-tag {
  font-size: 11px; color: #666;
  font-weight: 400; margin-left: 4px;
}
.brand-sub { margin: 2px 0 0; font-size: 11px; color: #666; }
.site-nav {
  display: flex; gap: 12px;
  flex-wrap: wrap; font-size: 13px;
}
.site-nav a { color: #00e; padding: 0; }
.site-search {
  display: flex; gap: 0;
  margin-top: 6px;
  grid-column: 1 / -1;
}
.site-search input {
  flex: 1;
  border: 1px solid #000;
  background: #fff; color: #000;
  padding: 4px 8px;
  font-family: inherit; font-size: 13px;
}
.site-search input::placeholder { color: #999; }
.site-search button {
  background: #000; color: #fff;
  border: 1px solid #000;
  padding: 4px 12px;
  font-family: inherit; font-size: 13px;
  cursor: pointer;
}
.site-search button:hover { background: #fff; color: #000; }

/* Breadcrumb */
.breadcrumb {
  background: #fff;
  border-bottom: 1px solid #ccc;
  font-size: 12px;
}
.breadcrumb ol {
  list-style: none; margin: 0;
  padding: 6px 0;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.breadcrumb li:not(:last-child)::after {
  content: " / "; margin-left: 6px; color: #999;
}
.breadcrumb [aria-current] { color: #000; font-weight: 700; }

/* Format bar */
.format-bar {
  background: #fff;
  border-bottom: 1px solid #000;
  font-size: 12px;
}
.format-bar .wrap {
  padding: 4px 16px;
  display: flex; gap: 6px; align-items: center;
  flex-wrap: wrap;
}
.fb-label { color: #666; }
.format-bar a {
  padding: 0 6px;
  border: 1px solid #000;
  color: #000; text-decoration: none;
}
.format-bar a:hover, .format-bar .fb-active {
  background: #000; color: #fff;
}

/* Headings */
h1, h2, h3, h4 { margin: 0 0 8px; font-weight: 700; }
h1 { font-size: 18px; padding-bottom: 4px; border-bottom: 2px solid #000; }
h2 { font-size: 15px; padding-bottom: 2px; border-bottom: 1px solid #000; margin-top: 20px; }
h3 { font-size: 13px; margin-top: 14px; }

/* Hero */
.hero {
  border: 1px solid #000;
  padding: 12px 14px;
  margin-bottom: 20px;
  background: #fff;
}
.hero h1 { border: none; padding: 0; font-size: 20px; margin: 0 0 6px; }
.hero p { font-size: 13px; color: #333; margin: 0 0 10px; max-width: 720px; }
.hero-stats {
  display: flex; gap: 24px; flex-wrap: wrap;
  padding-top: 8px; border-top: 1px solid #ccc;
  font-size: 12px;
}
.hero-stat strong { display: inline; font-size: 13px; font-weight: 700; }
.hero-stat span { color: #666; margin-left: 4px; }

section.s { margin-bottom: 24px; }

/* Card grid — TEXT ONLY, no images */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid #ccc;
}
.card {
  border: none;
  border-bottom: 1px solid #ccc;
  background: transparent;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  padding: 0;
}
.card:hover { background: #f9f9f9; }
.card-link {
  display: block;
  padding: 6px 8px;
  color: #000;
  text-decoration: none;
  flex: 1;
  min-width: 0;
}
.card-link:hover { background: transparent; text-decoration: none; }
.card-body { flex: 1; min-width: 0; }
.card-name {
  font-size: 13px;
  font-weight: 400;
  margin: 0 0 2px;
  line-height: 1.4;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  color: #555;
}
.card-sku { color: #00e; font-size: 11px; }
.card-price { color: #000; font-weight: 700; }
.card-attrs { color: #666; }
.card-count { color: #060; font-weight: 700; }
.card-excerpt {
  font-size: 12px;
  color: #444;
  margin: 2px 0 0;
  line-height: 1.45;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-date { font-size: 10px; color: #999; }
.card-formats {
  display: flex; gap: 2px;
  padding: 4px 8px;
  border-left: 1px solid #ccc;
  background: transparent;
  align-items: center;
}
.card-formats a {
  font-size: 10px;
  color: #666;
  padding: 0 4px;
  border: 1px solid #ccc;
  text-decoration: none;
}
.card-formats a:hover { background: #000; color: #fff; }
.card-article .card-name { white-space: normal; }

/* Entity (detail page) — không có entity-img nữa */
.entity {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.entity-main h1 {
  font-size: 18px;
  border-bottom: 2px solid #000;
  padding-bottom: 4px;
  margin: 0 0 8px;
}
.entity-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px solid #ccc;
  margin-bottom: 12px;
}
.entity-aside {
  background: #fafafa;
  border: 1px solid #ccc;
  padding: 10px 12px;
  font-size: 12px;
}
.entity-aside h3 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #333;
  margin: 0 0 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid #ccc;
}
.attr-list { list-style: none; padding: 0; margin: 0; }
.attr-list li {
  padding: 3px 0;
  display: flex;
  gap: 8px;
  border-bottom: 1px dotted #ddd;
  word-break: break-all;
}
.attr-list li:last-child { border-bottom: 0; }
.attr-list dt { color: #666; min-width: 80px; }
.attr-list dd { margin: 0; flex: 1; font-weight: 700; }

.entity-section { margin-top: 16px; }
.entity-section h2 {
  font-size: 14px;
  margin: 0 0 8px;
  padding-bottom: 2px;
  border-bottom: 1px solid #000;
}
.prose p { margin: 0 0 10px; }
.prose ul, .prose ol { padding-left: 22px; }

/* Article body */
.article-body { max-width: 720px; }
.article-body h2 {
  font-size: 16px;
  margin: 18px 0 8px;
  padding-bottom: 2px;
  border-bottom: 1px solid #ccc;
}
.article-body h3 { font-size: 13px; margin: 14px 0 6px; }
.article-body blockquote {
  border-left: 2px solid #000;
  padding: 2px 12px;
  margin: 12px 0;
  background: #fafafa;
  color: #333;
}

/* Pagination */
.pagination {
  display: flex; gap: 4px; flex-wrap: wrap;
  margin: 16px 0;
  font-size: 13px;
}
.pagination a, .pagination span {
  padding: 2px 8px;
  border: 1px solid #000;
  background: #fff;
  color: #000;
  text-decoration: none;
}
.pagination a:hover { background: #ff0; }
.pagination .current { background: #000; color: #fff; }

.search-empty {
  padding: 24px;
  text-align: center;
  color: #666;
  border: 1px dashed #ccc;
  background: #fafafa;
  font-size: 13px;
}

/* Footer */
.site-footer {
  background: #fff;
  color: #333;
  border-top: 2px solid #000;
  margin-top: 32px;
  padding: 16px 0 8px;
  font-size: 12px;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 12px;
}
.footer-cols h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 6px;
  color: #000;
  font-weight: 700;
}
.footer-cols ul { list-style: none; padding: 0; margin: 0; }
.footer-cols li { margin-bottom: 2px; }
.footer-cols a { color: #00e; font-size: 12px; }
.copyright {
  font-size: 11px;
  color: #666;
  padding-top: 8px;
  border-top: 1px solid #ccc;
}

@media (max-width: 720px) {
  .site-header .wrap { grid-template-columns: 1fr; }
  .entity { grid-template-columns: 1fr; }
  .hero h1 { font-size: 17px; }
}

@media print {
  .site-header, .site-footer, .breadcrumb, .format-bar, .pagination,
  .site-nav, .site-search, .card-formats { display: none !important; }
  body { color: #000; }
  a { color: #000; text-decoration: underline; }
}
