/* Hallmark · checked: 2026-11-22 · genre: modern-minimal (inferred)
 * floor: 0 FAIL · fixed: 2 (20, 26b) · structural: 0 printed
 * built: the project · redesign: polish · v2.0.0 */
/* 广告横幅按框架宽度显示。文字独立一行，未设置链接时仍可阅读。 */
html, body {overflow-x:clip}
.edition.ad-document {background:transparent}
.ad-content:not(:empty) {
  display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;
  padding:6px;border:1px solid #c89530;border-left-width:3px;border-radius:4px;
  background:#fff8e5;color:#714909;
}
.ad-content [data-ad-slot] {
  grid-column:1/-1;
  display:block;
  min-width:0;
  background:var(--site-tint);
  color:var(--ink);
  text-align:center;
  overflow-wrap:anywhere;
}
.ad-content [data-ad-slot]:not(.ad-placeholder):not(:has(img)) {padding:8px}
.ad-content [data-ad-slot="A01"]:not(.ad-placeholder) {
  display:grid;place-items:center;min-height:72px;padding:12px;
  border:2px solid #b5122a;border-radius:6px;
  background:linear-gradient(180deg,#d83a4c,#a90e27);color:#fff;
  font-size:clamp(20px,5vw,28px);font-weight:950;letter-spacing:.04em;
  text-shadow:0 1px 2px rgb(0 0 0 / .3);
}
.ad-content [data-ad-slot="T01"]:not(.ad-placeholder) {
  background:#ffdf35;
  color:#62202a;font-size:18px;font-weight:900;line-height:1.3;text-wrap:balance;
}
/* 域名条单独出现时贴着开奖区；下方的推荐横幅仍使用原样式。 */
.ad-content:has(> [data-ad-slot="T01"]:only-child) {padding:0;border:0;border-radius:0;background:transparent}
.ad-content .ad-placeholder {
  grid-column:1/-1;display:grid;place-items:center;min-height:28px;padding:2px;
  border:1px dashed #d4ad5a;background:#fffdf5;color:#714909;font:700 12px/1.3 var(--mono);
}
.ad-content .ad-placeholder.ad-banner {grid-column:1/-1;min-height:48px;font-size:14px}
.ad-content img {display:block;width:100%;height:auto}
.ad-content a:focus-visible {outline-offset:-3px}
.ad-content a:active {background:#ffd977;outline:2px solid #9b6914;outline-offset:-3px}
@media(max-width:480px) {.ad-content:not(:empty) {grid-template-columns:repeat(4,minmax(0,1fr))}}
