/* 1.7 article components only. Page layout and body font remain theme-owned. */
.anw-content-block,.anw-inline-reference,.anw-inline-term{--anw-content-line:#c8c4bb;--anw-content-soft:#ece7de;--anw-content-red:#99252c;--anw-content-muted:#766e62;box-sizing:border-box}
.anw-content-block{margin:1.5em 0;max-width:100%;font-family:inherit;line-height:1.85;color:inherit}
.anw-content-block *{box-sizing:border-box}
.anw-content-block :where(figure,dl,dt,dd,p){margin:0}
.anw-content-block h3{margin:0;padding:0;border:0;border-radius:0;background:none;color:inherit;box-shadow:none}
.anw-content-block h3::before,.anw-content-block h3::after{display:none}
.anw-profile{display:grid;grid-template-columns:38% minmax(0,1fr);border:1px solid var(--anw-content-line)}
.anw-profile.image-right{grid-template-columns:minmax(0,1fr) 42%}
.anw-profile.no-image{grid-template-columns:minmax(0,1fr)}
.anw-profile>.anw-profile-heading{grid-column:1/-1;padding:8px 17px;background:#f8f5ef;border-bottom:2px solid var(--anw-content-red)}
.anw-profile-heading h3{font-size:25px;font-weight:700;line-height:1.45}
.anw-profile-image{min-width:0;position:relative;overflow:hidden;background:#eee9df;align-self:stretch;min-height:200px}
/* Keep new component frames stable while SWELL lazysizes sets an inline height. */
.anw-profile-image img{display:block;width:100%;height:100%!important;max-width:100%;object-fit:cover;object-position:center top;position:absolute;inset:0}
.anw-profile-info{min-width:0}
.anw-profile.image-left.has-image .anw-profile-info{border-left:1px solid var(--anw-content-line)}
.anw-profile.image-right.has-image .anw-profile-image{grid-column:2;border-left:1px solid var(--anw-content-line)}
.anw-profile.image-right.has-image .anw-profile-info{grid-column:1;grid-row:1}
.anw-profile.image-right.has-image:has(>.anw-profile-heading) .anw-profile-image,.anw-profile.image-right.has-image:has(>.anw-profile-heading) .anw-profile-info{grid-row:2}
.anw-profile-facts{display:grid;grid-template-columns:88px minmax(0,1fr);font-size:16px;line-height:1.65}
.anw-profile-facts>dt,.anw-profile-facts>dd{padding:12px 14px;border-bottom:1px solid var(--anw-content-line);overflow-wrap:anywhere}
.anw-profile-facts>dt{background:var(--anw-content-soft);font-weight:400}
.anw-profile-facts>dd{background:#fff;margin:0}
.anw-profile-facts>dt:last-of-type,.anw-profile-facts>dd:last-of-type{border-bottom:0}
.anw-profile.image-right .anw-profile-facts{grid-template-columns:76px minmax(0,1fr)}
.anw-profile.image-right .anw-profile-facts>dt{background:#f8f5ef}
.anw-profile.is-open{border:0;grid-template-columns:44% minmax(0,1fr);gap:24px;align-items:center}
.anw-profile.is-open.image-right{grid-template-columns:minmax(0,1fr) 44%}
.anw-profile.is-open.no-image{grid-template-columns:minmax(0,1fr)}
.anw-profile.is-open .anw-profile-image{height:auto;min-height:0;align-self:stretch;border:0;background:#f4f0e8}
.anw-profile.is-open.has-image{min-height:120px}
.anw-profile.is-open .anw-profile-image img{object-fit:contain;object-position:center center}
.anw-profile.is-open.image-left.has-image .anw-profile-info,.anw-profile.is-open .anw-profile-info{border:0}
.anw-profile.is-open.image-right.has-image .anw-profile-image{border:0}
.anw-profile.is-open .anw-profile-heading{padding:0 0 10px;border-bottom:3px solid var(--anw-content-red)}
.anw-profile.is-open h3{font-size:30px;line-height:1.5}
.anw-profile.is-open .anw-profile-facts{grid-template-columns:65px minmax(0,1fr)}
.anw-profile.is-open .anw-profile-facts>dt,.anw-profile.is-open .anw-profile-facts>dd{padding:12px 0;background:none}
.anw-profile.is-open .anw-profile-facts>dt{font-size:14px;color:var(--anw-content-muted)}
.anw-profile.is-open .anw-profile-facts>dt:last-of-type,.anw-profile.is-open .anw-profile-facts>dd:last-of-type{border-bottom:1px solid var(--anw-content-line)}
.anw-image-boxes{display:flex;gap:12px;align-items:stretch;justify-content:flex-start}
.anw-image-boxes>figure{flex:0 1 calc((100% - (var(--anw-image-count) - 1)*12px)/var(--anw-image-count));max-width:220px;min-width:0;margin:0;border:1px solid var(--anw-content-line)}
.anw-box-image{aspect-ratio:1.08;max-height:195px;background:#eee9df;overflow:hidden}
.anw-box-image img{display:block;width:100%;height:100%!important;object-fit:cover;object-position:center top}
.anw-image-boxes figcaption{margin:0;padding:8px 5px;text-align:center;background:#f8f5ef;font-size:16px;border-top:1px solid var(--anw-content-line);overflow-wrap:anywhere}
.anw-image-boxes figcaption b{display:block;font-weight:700}
.anw-image-boxes figcaption small{display:block;color:var(--anw-content-muted);font-size:12px;font-weight:400;line-height:1.6;margin-top:4px}
.anw-guide-steps{list-style:none;counter-reset:anw-step;padding:0}
.anw-guide-steps>li{position:relative;counter-increment:anw-step;padding:0 0 25px 44px;margin:0;list-style:none}
.anw-guide-steps>li:last-child{padding-bottom:0}
.anw-guide-steps>li::before{content:counter(anw-step);position:absolute;top:1px;left:0;display:grid;place-items:center;width:28px;height:28px;color:var(--anw-content-red);border:1px solid var(--anw-content-red);background:transparent;border-radius:0;font:700 14px Arial,sans-serif}
.anw-guide-steps b{font-size:16px;line-height:1.8}
.anw-guide-steps p{margin:4px 0 0;color:var(--anw-content-muted);font-size:14px;line-height:1.8}
.anw-checklist{padding:0;list-style:none;border-top:1px solid var(--anw-content-line)}
.anw-checklist>li{display:flex;align-items:baseline;gap:10px;padding:12px 3px;margin:0;border-bottom:1px solid var(--anw-content-line);font-size:16px;line-height:1.8;list-style:none}
.anw-checklist>li::before,.anw-checklist>li::after{display:none}
.anw-check-mark{display:inline-block;width:15px;height:15px;flex:0 0 15px;align-self:center;border:1px solid #aaa292;background:#fff}
.anw-checklist b{font-weight:400}
.anw-event-period{display:grid;grid-template-columns:78px minmax(0,1fr);gap:19px;align-items:start;padding:16px;border:1px solid var(--anw-content-line)}
.anw-event-period.no-date{grid-template-columns:minmax(0,1fr)}
.anw-event-date{display:flex;flex-direction:column;align-items:center;background:var(--anw-content-red);color:#fff;padding:9px 7px;text-align:center}
.anw-event-date span{font-size:14px;line-height:1.6}
.anw-event-date strong{font:700 32px/1.3 Arial,sans-serif}
.anw-event-date small{font-size:12px;line-height:1.8}
.anw-event-period h3{margin:0 0 9px;font-size:20px;line-height:1.5}
.anw-event-period dl{display:grid;grid-template-columns:72px minmax(0,1fr);gap:4px 8px;font-size:14px;line-height:1.9}
.anw-event-period dt{color:var(--anw-content-muted)}
.anw-event-period dd{margin:0;overflow-wrap:anywhere}
.anw-event-period .anw-countdown{margin:12px 0 0;font-size:14px;font-weight:700;color:var(--anw-content-red);font-variant-numeric:tabular-nums}
.anw-inline-reference{display:inline-flex;align-items:center;gap:6px;vertical-align:middle;line-height:1.7;padding:2px 8px 2px 3px;border:1px solid var(--anw-content-line);background:#faf8f4;font-size:14px;color:var(--anw-content-red);text-decoration:none;max-width:100%}
.anw-inline-reference>.anw-inline-image{display:block;flex:none;width:27px;height:29px!important;object-fit:cover;object-position:top;margin:0}
.anw-inline-reference>b{font-weight:700;overflow-wrap:anywhere}
a.anw-inline-reference:hover{background:#f2ece3;text-decoration:underline}
.anw-inline-reference:focus-visible,.anw-inline-term:focus-visible{outline:2px solid var(--anw-content-red);outline-offset:3px}
.anw-inline-term{position:relative;display:inline-block;cursor:help;border-bottom:1px dotted var(--anw-content-red);color:var(--anw-content-red)}
.anw-term-definition{display:none;position:fixed;z-index:100100;width:min(280px,calc(100vw - 24px));padding:11px 14px;background:#292826;color:#fff;box-shadow:0 3px 9px #0002;font-size:14px;font-weight:400;line-height:1.85;text-align:left;white-space:normal;border:0}
.anw-inline-term.is-open>.anw-term-definition{display:block}
.anw-skill-sequence{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.anw-sequence-operator{color:#928876}
.anw-sequence-box{display:inline-flex;align-items:center;min-height:38px;padding:4px 11px;border:1px solid #b8afa0;border-bottom:3px solid #b8afa0;background:#f7f5ef;font-size:14px;line-height:1.7;max-width:100%}
.anw-sequence-box .anw-inline-reference{background:none;border:0;padding:0;color:inherit;font-weight:400}
.anw-sequence-box .anw-inline-reference b{font-weight:400}
.anw-image-value{display:inline-flex;align-items:center;gap:6px;max-width:100%;vertical-align:middle;line-height:1.6}
.anw-image-value .anw-value-image{flex:0 0 auto;width:auto;max-width:80px;height:auto;max-height:40px;object-fit:contain;display:block;margin:0}
.ananta-wiki .anw-value-only>dd{grid-column:1/-1;margin-left:0}
.anw-rich-value-control{display:flex;flex-direction:column;gap:6px;min-width:160px}
.anw-rich-value-control>img{max-width:80px;max-height:70px;object-fit:contain}
.anw-rich-value-control>label{display:block;font-size:12px}
.anw-rich-value-control>label>input{display:block;width:100%}
.anw-rich-value-control>div{display:flex;gap:5px;flex-wrap:wrap}
.anw-rich-value-control button{white-space:nowrap}
.anw-co-media-dialog{width:min(720px,95vw);max-height:88vh;border:1px solid #c8c4bb;background:#fff;padding:22px;color:#292826;overflow:auto;font:inherit}
.anw-co-media-dialog::backdrop{background:#0007}
.anw-co-media-head{display:flex;justify-content:space-between;gap:20px;align-items:center}
.anw-co-media-head h2{font-size:20px;margin:0}
.anw-co-media-dialog button{font:inherit;cursor:pointer;border:1px solid #c8c4bb;background:#f8f5ef;color:inherit;padding:6px 10px}
.anw-co-media-dialog button[aria-pressed=true]{font-weight:700;border-color:#99252c}
.anw-co-media-dialog button:disabled{opacity:.5;cursor:default}
.anw-co-media-dialog select,.anw-co-media-dialog input{font:inherit;padding:6px;max-width:100%;border:1px solid #c8c4bb}
.anw-co-media-filters{display:flex;flex-wrap:wrap;gap:8px}
.anw-co-media-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:16px 0}
.anw-co-media-grid button{display:flex;flex-direction:column;align-items:center;font-size:12px;word-break:break-word}
.anw-co-media-grid img{width:100%;height:95px;object-fit:contain;margin-bottom:5px}
.anw-co-media-dialog label{display:block;margin:15px 0}
.anw-co-media-dialog label select{margin-left:10px}
#anw-media-move-bar{padding:12px 0;display:flex;gap:6px;flex-wrap:wrap;align-items:center}
@media(max-width:560px){
 .anw-profile-facts{grid-template-columns:58px minmax(0,1fr);font-size:14px;line-height:1.75}
 .anw-profile-facts>dt,.anw-profile-facts>dd{padding:11px 7px}
 .anw-profile.image-right{grid-template-columns:minmax(0,1fr) 37%}
 .anw-profile.image-right .anw-profile-facts{grid-template-columns:51px minmax(0,1fr)}
 .anw-profile.image-right .anw-profile-facts>dt,.anw-profile.image-right .anw-profile-facts>dd{padding:10px 6px}
 .anw-profile>.anw-profile-heading{padding:7px 12px}
 .anw-profile-heading h3{font-size:22px}
 .anw-profile.is-open{grid-template-columns:37% minmax(0,1fr);gap:13px}
 .anw-profile.is-open.image-right{grid-template-columns:minmax(0,1fr) 37%}
 .anw-profile.is-open.no-image,.anw-profile.no-image{grid-template-columns:minmax(0,1fr)}
 .anw-profile.is-open h3{font-size:25px}
 .anw-profile.is-open .anw-profile-facts{grid-template-columns:42px minmax(0,1fr)}
 .anw-profile.is-open .anw-profile-facts>dt{font-size:12px}
 .anw-profile.is-open .anw-profile-facts>dt,.anw-profile.is-open .anw-profile-facts>dd{padding:10px 0}
 .anw-image-boxes{gap:7px}
 .anw-image-boxes>figure{flex-basis:calc((100% - (var(--anw-image-count) - 1)*7px)/var(--anw-image-count))}
 .anw-image-boxes.count-5,.anw-image-boxes.count-6{flex-wrap:wrap;justify-content:center}
 .anw-image-boxes.count-5>figure,.anw-image-boxes.count-6>figure{flex-basis:calc((100% - 14px)/3)}
 .anw-image-boxes figcaption{font-size:14px;padding:7px 2px}
 .anw-image-boxes figcaption small{font-size:11px}
 .anw-event-period{grid-template-columns:65px minmax(0,1fr);gap:12px;padding:12px}
 .anw-event-period h3{font-size:18px}
 .anw-event-period dl{display:block}
 .anw-event-period dt{margin-top:6px;font-size:12px}
 .anw-event-period dd{font-size:14px}
 .anw-skill-sequence{gap:7px}
 .anw-sequence-box{padding:4px 7px}
 .anw-co-media-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
