.dg .sub-card{position:relative;background:var(--navy);color:#FFFFFF;border-radius:24px;padding:30px;overflow:hidden;isolation:isolate}
.dg .sub-card::before{content:"";position:absolute;inset:0;z-index:-1;background:url(/assets/img/topo-dark.svg) center/cover no-repeat}
.dg .sub-card h2{font-family:"Unbounded",system-ui,sans-serif;font-weight:500;font-size:20px;line-height:1.3}
.dg .sub-card p{margin-top:10px;color:var(--soft);font-size:15px}
.dg .sub-card .btn{margin-top:20px}
.dg .pub-tools{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px}
.dg .srch{display:flex;align-items:center;gap:10px;min-height:56px;padding:0 18px;border-radius:999px;background:#FFFFFF;border:1px solid var(--line);flex:0 1 380px;transition:border-color .2s ease,box-shadow .2s ease}
.dg .srch:focus-within{border-color:var(--blue);box-shadow:0 0 0 4px rgba(42,74,138,.12)}
.dg .srch svg{width:20px;height:20px;color:var(--muted);flex:none}
.dg .srch input{border:0;outline:0;background:transparent;font:inherit;font-size:15.5px;color:var(--ink);width:100%;min-height:44px}
.dg .featured{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);background:#FFFFFF;border:1px solid var(--line);border-radius:28px;overflow:hidden;text-decoration:none;color:var(--ink);margin-top:28px}
.dg .featured:hover{color:var(--ink)}
.dg .featured-img{position:relative;min-height:420px;overflow:hidden;background:var(--sky)}
.dg .featured-img img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.dg .featured-b{padding:40px 44px;display:flex;flex-direction:column;gap:16px;justify-content:center}
.dg .featured h2{font-family:"Cormorant Garamond",Georgia,serif;font-weight:700;font-size:36px;line-height:1.1}
.dg .featured p{color:var(--muted);font-size:16px}
.dg .featured .more{font-size:15.5px}
.dg .pub-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin-top:22px}
.dg .empty{margin-top:28px;padding:40px;border-radius:24px;background:#FFFFFF;border:1px dashed #B9C3D8;text-align:center;color:var(--muted)}
.dg .empty b{display:block;color:var(--ink);font-size:18px;margin-bottom:6px}
.dg .more-row{display:flex;justify-content:center;margin-top:36px}
.dg .topics{margin-top:56px;padding:30px;border-radius:26px;background:#FFFFFF;border:1px solid var(--line);display:flex;flex-wrap:wrap;align-items:center;gap:12px 24px}
.dg .topics h2{font-family:"Unbounded",system-ui,sans-serif;font-weight:500;font-size:18px}
.dg .topics .chips{display:flex;flex-wrap:wrap;gap:10px}
.dg .topics .chips a{display:inline-flex;align-items:center;min-height:42px;padding:0 16px;border-radius:999px;background:var(--bg);border:1px solid var(--line);color:var(--ink);text-decoration:none;font-size:14.5px;font-weight:500;transition:border-color .2s ease,color .2s ease}
.dg .topics .chips a:hover{border-color:var(--blue);color:var(--blue)}
@media (max-width:1180px){
  .dg .featured{grid-template-columns:minmax(0,1fr)}
  .dg .pub-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:720px){
  .dg .srch{flex:1 1 100%}
  .dg .featured-img{min-height:0;aspect-ratio:16/10}
  .dg .featured-b{padding:24px 20px 26px}
  .dg .featured h2{font-size:28px}
  .dg .pub-grid{grid-template-columns:minmax(0,1fr)}
  .dg .topics{padding:22px 18px}
}
.dg .tpl-head{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:56px;align-items:center;margin-top:22px;padding-bottom:44px}
.dg .ph .tpl-h1{margin-top:16px;font-size:clamp(30px,3.1vw,46px);line-height:1.1}
.dg .tpl-head .lead{margin-top:18px;font-size:18px;color:var(--muted);max-width:640px}
.dg .tpl-head .meta{margin-top:22px}
.dg .tpl-head .cta-row{margin-top:26px}
.dg .tpl-sheet{position:relative;justify-self:end;width:100%;max-width:420px;margin:0 16px 16px 0}
.dg .tpl-sheet::before{content:"";position:absolute;inset:16px -16px -16px 16px;border-radius:8px;background:#FFFFFF;border:1px solid var(--line);box-shadow:0 20px 40px rgba(19,32,61,.08)}
.dg .sheet{position:relative;aspect-ratio:1/1.3;border-radius:8px;background:#FFFFFF;border:1px solid var(--line);box-shadow:0 40px 80px rgba(19,32,61,.16);padding:34px 36px;overflow:hidden}
.dg .sheet::after{content:"";position:absolute;left:0;right:0;bottom:0;height:46%;background:linear-gradient(rgba(255,255,255,0),#FFFFFF 78%)}
.dg .sheet-in{font-family:"Times New Roman",Times,"Liberation Serif",serif;font-size:11.5px;line-height:1.5;color:#2A2A2A}
.dg .sheet-in p{margin:0 0 5px}
.dg .sheet-in .c,.dg .sheet-in .h{text-align:center}
.dg .sheet-in .h{font-weight:700}
.dg .sheet-in .r{text-align:right}
.dg .sheet-in ol,.dg .sheet-in ul{margin:0 0 5px;padding-left:16px}
.dg .sheet-in table{width:100%;border-collapse:collapse;margin:4px 0 6px}
.dg .sheet-in td,.dg .sheet-in th{border:1px solid #B5BCC9;padding:2px 4px}
.dg .sheet-in .tab{display:inline-block;width:2em}
.dg .sheet-badge{position:absolute;right:18px;bottom:18px;z-index:1;display:flex;align-items:center;gap:8px;padding:9px 12px;border-radius:12px;background:var(--navy);color:#FFFFFF;font-size:13px;font-weight:600}
.dg .sheet-badge b{padding:2px 6px;border-radius:5px;background:var(--amber);color:var(--ink);font-size:11px;letter-spacing:.06em}
.dg .tpl-body > h2:first-of-type{margin-top:8px}
.dg .tpl-body .tpl-intro{margin-bottom:48px;font-size:19px;line-height:1.7;color:var(--ink)}
.dg .tpl-intro p + p{margin-top:14px}
.dg .paper{position:relative;margin-top:24px;padding:56px 64px;border-radius:8px;background:#FFFFFF;border:1px solid var(--line);box-shadow:0 1px 0 rgba(19,32,61,.04),0 24px 48px rgba(19,32,61,.08);font-family:"Times New Roman",Times,"Liberation Serif",serif;font-size:16.5px;line-height:1.55;color:#1A1A1A;overflow-wrap:break-word}
.dg .paper p{margin:0 0 8px}
.dg .paper .c{text-align:center}
.dg .paper .r{text-align:right}
.dg .paper .j{text-align:justify}
.dg .paper .h{text-align:center;font-weight:700;margin:6px 0 14px}
.dg .paper ol,.dg .paper ul{margin:0 0 8px;padding-left:26px}
.dg .paper li{margin:0 0 4px}
.dg .paper .tbl{overflow-x:auto;margin:10px 0 14px}
.dg .paper table{width:100%;border-collapse:collapse;margin:10px 0 14px;font-size:15px}
.dg .paper .tbl table{margin:0}
.dg .paper td,.dg .paper th{border:1px solid #9AA3B5;padding:6px 8px;vertical-align:top;text-align:left}
.dg .paper td p,.dg .paper th p{margin:0}
.dg .paper .sp{height:10px;margin:0}
.dg .paper .row{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 24px}
.dg .paper .ind,.dg .sheet-in .ind{margin-left:50%}
.dg .paper .fi{text-indent:2em}
.dg .sheet-in .fi{text-indent:1.5em}
.dg .paper .bl,.dg .sheet-in .bl{display:inline-block;max-width:100%;overflow:hidden;white-space:nowrap;vertical-align:baseline;line-height:1.2;color:transparent;border-bottom:1px solid #3A3F4A}
.dg .tpl-body .flow ol{margin-top:0}
.dg .tpl-body .four-c b{display:flex;gap:10px;align-items:flex-start}
.dg .tpl-body .mx{flex:none;width:22px;height:22px;margin-top:1px;border-radius:50%;background:#FBEAEA;color:#9B2C2C;font-size:13px;font-weight:700;display:flex;align-items:center;justify-content:center}
.dg .sheet-in .row{display:flex;justify-content:space-between;gap:12px}
.dg .sheet-in .sp{height:6px;margin:0}
.dg .paper .tab{display:inline-block;width:2.5em}
.dg .paper mark{background:#FFF1CF;color:inherit;padding:0 2px;border-radius:3px}
.dg .paper.is-long:not(.open){max-height:820px;overflow:hidden}
.dg .paper.is-long:not(.open)::after{content:"";position:absolute;left:0;right:0;bottom:0;height:200px;background:linear-gradient(rgba(255,255,255,0),#FFFFFF 85%)}
.dg .paper-act{display:flex;flex-wrap:wrap;gap:12px;margin-top:18px}
.dg .paper-act .copied{border-color:var(--amber);background:var(--sand);color:var(--ink)}
.dg .tpl-body .note{margin-top:18px;font-size:16px;color:var(--muted)}
.dg .law{margin-top:48px;padding:24px 26px;border-radius:20px;background:var(--sky);font-size:15px;line-height:1.6;color:var(--muted)}
.dg .law b{display:block;color:var(--ink);font-size:15.5px}
.dg .law ul{margin:8px 0 0;padding-left:20px}
.dg .law li{margin-top:4px}
.dg .law small{display:block;margin-top:12px;font-size:13.5px;line-height:1.55}
.dg .tpl-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin-top:22px}
.dg .tpl-how{margin-top:56px;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;list-style:none}
.dg .tpl-how li{display:flex;gap:16px;align-items:flex-start;padding:22px;border-radius:22px;background:#FFFFFF;border:1px solid var(--line)}
.dg .tpl-how .n{flex:none;width:40px;height:40px;border-radius:50%;background:var(--sand);color:var(--gold-tx);display:flex;align-items:center;justify-content:center;font-family:"Unbounded",system-ui,sans-serif;font-size:15px;font-weight:500}
.dg .tpl-how b{display:block;font-size:16.5px;line-height:1.35}
.dg .tpl-how span.t{display:block;margin-top:4px;font-size:14.5px;color:var(--muted);line-height:1.5}
@media (max-width:1180px){
  .dg .tpl-head{grid-template-columns:minmax(0,1fr)}
  .dg .tpl-sheet{display:none}
  .dg .tpl-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dg .tpl-how{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:720px){
  .dg .tpl-head{padding-bottom:28px}
  .dg .ph .tpl-h1{font-size:28px}
  .dg .tpl-sub{display:none}
  .dg .paper table{font-size:13px}
  .dg .paper td,.dg .paper th{padding:4px 5px}
  .dg .tpl-head .lead{font-size:16.5px}
  .dg .tpl-head .cta-row .btn{width:100%}
  .dg .tpl-body .tpl-intro{font-size:17.5px;margin-bottom:36px}
  .dg .paper{padding:28px 20px;font-size:15.5px}
  .dg .paper .ind{margin-left:28%}
  .dg .paper-act .btn{width:100%}
  .dg .tpl-grid{grid-template-columns:minmax(0,1fr)}
}
