/* AA ZKwP 0.4.1074: presentation contract for the shared publication inside FCI.
   Only .aa-fci-zkwp-shared-shell is affected; standalone ZKwP cards stay unchanged. */
.aa-unified-show-preview .aa-fci-zkwp-shared-shell,
.aa-unified-show-preview .aa-fci-zkwp-shared-shell *{box-sizing:border-box}
.aa-unified-show-preview .aa-fci-zkwp-shared-shell{min-width:0;width:100%;max-width:100%;font-size:14px;line-height:1.5;color:#253e33}
.aa-unified-show-preview .aa-fci-zkwp-shared-shell .aa-zkwp-fci-embedded-body,
.aa-unified-show-preview .aa-fci-zkwp-shared-shell .aa-show-publication-summaries{width:100%;min-width:0;max-width:100%;display:block;overflow:visible}
.aa-unified-show-preview .aa-fci-zkwp-shared-shell details{width:100%;min-width:0;max-width:100%;overflow:visible}
.aa-unified-show-preview .aa-fci-zkwp-shared-shell details>summary{position:relative;cursor:pointer;list-style:none;display:flex;align-items:center;gap:9px;min-width:0;max-width:100%;margin:0;padding:11px 12px;border:1px solid #e4d2b6;border-radius:10px;background:#fff8ed;color:#264737;font-size:14px;line-height:1.3;text-align:left}
.aa-unified-show-preview .aa-fci-zkwp-shared-shell details>summary::-webkit-details-marker{display:none}
/* FCI's historic generic accordion ::after must not affect ZKwP's descendants. */
.aa-unified-show-preview .aa-fci-zkwp-shared-shell details>summary::after{content:none!important;display:none!important}
.aa-unified-show-preview .aa-fci-zkwp-shared-shell details>summary .aa-show-chevron{display:inline-block;flex:0 0 9px;width:9px;height:9px;border-right:2px solid #771a39;border-bottom:2px solid #771a39;transform:rotate(-45deg);transition:transform .16s ease;margin-right:3px}
.aa-unified-show-preview .aa-fci-zkwp-shared-shell details[open]>summary .aa-show-chevron{transform:rotate(45deg)}
.aa-unified-show-preview .aa-fci-zkwp-shared-shell details>summary h5,
.aa-unified-show-preview .aa-fci-zkwp-shared-shell details>summary h6{font-size:inherit!important;line-height:1.3!important;font-weight:800!important;color:inherit!important;margin:0!important;min-width:0}
.aa-unified-show-preview .aa-fci-zkwp-shared-shell details>summary small{font-size:12px;color:#6b655a;margin-left:auto;line-height:1.3}
.aa-unified-show-preview .aa-fci-zkwp-shared-shell .aa-show-publication-own-dogs,
.aa-unified-show-preview .aa-fci-zkwp-shared-shell .aa-show-publication-source{display:block;border:0;border-top:4px solid #8a4c69;border-radius:12px;padding:8px;margin:0 0 12px;background:#fffdf8}
.aa-unified-show-preview .aa-fci-zkwp-shared-shell .aa-show-publication-source.is-catalog{border-top-color:#b48a54}
.aa-unified-show-preview .aa-fci-zkwp-shared-shell .aa-show-publication-source.is-results{border-top-color:#751b39}
.aa-unified-show-preview .aa-fci-zkwp-shared-shell .aa-show-publication-source>p,
.aa-unified-show-preview .aa-fci-zkwp-shared-shell .aa-show-publication-source>dl,
.aa-unified-show-preview .aa-fci-zkwp-shared-shell .aa-show-publication-source>.aa-show-total-row,
.aa-unified-show-preview .aa-fci-zkwp-shared-shell .aa-show-publication-source>.aa-show-source-classes,
.aa-unified-show-preview .aa-fci-zkwp-shared-shell .aa-show-publication-source>.aa-show-ranked-results,
.aa-unified-show-preview .aa-fci-zkwp-shared-shell .aa-show-publication-source>.aa-show-standard-catalog-entries{margin:10px 0}
.aa-unified-show-preview .aa-fci-zkwp-shared-shell .aa-show-publication-source>dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.aa-unified-show-preview .aa-fci-zkwp-shared-shell .aa-show-publication-source>dl>div{min-width:0;background:#f5eee3;border:1px solid #eadac4;border-radius:9px;padding:8px;display:flex;flex-direction:column;text-align:center}
.aa-unified-show-preview .aa-fci-zkwp-shared-shell .aa-show-publication-source>dl>div.is-judge{grid-column:1/-1;text-align:left;display:block}
.aa-unified-show-preview .aa-fci-zkwp-shared-shell .aa-show-publication-source>dl dt{font-size:11px;text-transform:uppercase;font-weight:700;color:#81725f;margin:0}
.aa-unified-show-preview .aa-fci-zkwp-shared-shell .aa-show-publication-source>dl dd{margin:2px 0 0;font-size:17px;font-weight:800;overflow-wrap:anywhere}
.aa-unified-show-preview .aa-fci-zkwp-shared-shell .aa-show-publication-source>dl .is-judge dd{font-size:14px}
.aa-unified-show-preview .aa-fci-zkwp-shared-shell .aa-show-total-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}
.aa-unified-show-preview .aa-fci-zkwp-shared-shell .aa-show-golden-total{margin:0}.aa-unified-show-preview .aa-fci-zkwp-shared-shell .aa-show-document-preview{border-radius:8px;min-width:0;width:auto;padding:8px 12px;font-weight:700}
.aa-unified-show-preview .aa-fci-zkwp-shared-shell .aa-show-source-classes,
.aa-unified-show-preview .aa-fci-zkwp-shared-shell .aa-show-ranked-results{margin-top:12px;border:0;background:transparent;padding:0}
.aa-unified-show-preview .aa-fci-zkwp-shared-shell .aa-show-source-classes>summary,
.aa-unified-show-preview .aa-fci-zkwp-shared-shell .aa-show-ranked-results>summary,
.aa-unified-show-preview .aa-fci-zkwp-shared-shell .aa-show-dog-sex-group>summary{background:#f5eee4;border-color:#e5d5bc;font-weight:800;color:#294a3b}
.aa-unified-show-preview .aa-fci-zkwp-shared-shell .aa-show-publication-classes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:10px 0;padding:0}
.aa-unified-show-preview .aa-fci-zkwp-shared-shell .aa-show-publication-classes-sex{min-width:0;border:1px solid #e6d4b9;border-radius:10px;padding:10px}
.aa-unified-show-preview .aa-fci-zkwp-shared-shell .aa-show-class-stat{display:flex;align-items:center;gap:7px;min-width:0;justify-content:space-between;font-size:12px;padding:4px 0}
.aa-unified-show-preview .aa-fci-zkwp-shared-shell .aa-show-class-stat>i{flex:none;width:9px;height:9px;border-radius:50%;background:var(--aa-class-accent,#791c37)}
.aa-unified-show-preview .aa-fci-zkwp-shared-shell .aa-show-class-stat>b{margin-left:auto}
.aa-unified-show-preview .aa-fci-zkwp-shared-shell .aa-show-collapsible-class{--aa-class-accent:#791c37;--aa-class-soft:#f3e7e9;--aa-class-card:#fff8f1;margin:10px 0 13px;border:0;padding:0;overflow:visible}
.aa-unified-show-preview .aa-fci-zkwp-shared-shell .aa-show-class--minor-puppy{--aa-class-accent:#9a5a2f;--aa-class-soft:#f7eadf;--aa-class-card:#fff8f1}
.aa-unified-show-preview .aa-fci-zkwp-shared-shell .aa-show-class--puppy{--aa-class-accent:#b07a22;--aa-class-soft:#f7efd9;--aa-class-card:#fffaf0}
.aa-unified-show-preview .aa-fci-zkwp-shared-shell .aa-show-class--junior{--aa-class-accent:#477a57;--aa-class-soft:#e5f0e7;--aa-class-card:#f4faf5}
.aa-unified-show-preview .aa-fci-zkwp-shared-shell .aa-show-class--intermediate{--aa-class-accent:#3c7288;--aa-class-soft:#e2eef2;--aa-class-card:#f3f9fb}
.aa-unified-show-preview .aa-fci-zkwp-shared-shell .aa-show-class--open{--aa-class-accent:#5268a0;--aa-class-soft:#e7eaf4;--aa-class-card:#f6f7fc}
.aa-unified-show-preview .aa-fci-zkwp-shared-shell .aa-show-class--working{--aa-class-accent:#7a5b9e;--aa-class-soft:#eee7f4;--aa-class-card:#faf6fc}
.aa-unified-show-preview .aa-fci-zkwp-shared-shell .aa-show-class--champion{--aa-class-accent:#8b4564;--aa-class-soft:#f2e4ea;--aa-class-card:#fcf5f8}
.aa-unified-show-preview .aa-fci-zkwp-shared-shell .aa-show-class--veteran{--aa-class-accent:#6b6554;--aa-class-soft:#eeece5;--aa-class-card:#faf9f5}
.aa-unified-show-preview .aa-fci-zkwp-shared-shell .aa-show-class--other{--aa-class-accent:#7b1733;--aa-class-soft:#f2e4e8;--aa-class-card:#fbf4f5}
.aa-unified-show-preview .aa-fci-zkwp-shared-shell .aa-show-collapsible-class>summary.aa-show-class-name{display:flex!important;align-items:center;justify-content:flex-start;gap:10px;width:100%!important;margin:0!important;padding:10px 12px!important;border:1px solid #d5bdac!important;border-left:5px solid var(--aa-class-accent)!important;border-radius:10px!important;background:var(--aa-class-soft)!important;color:#263e32!important}
.aa-unified-show-preview .aa-fci-zkwp-shared-shell .aa-show-collapsible-class>summary.aa-show-class-name>span{flex:1;min-width:0;overflow-wrap:anywhere;font-weight:800}
.aa-unified-show-preview .aa-fci-zkwp-shared-shell .aa-show-collapsible-class>summary .aa-show-class-count{margin-left:auto;display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:28px;padding:2px 8px;border-radius:999px;background:var(--aa-class-accent);color:white;font-size:13px;font-weight:800}
.aa-unified-show-preview .aa-fci-zkwp-shared-shell .aa-show-collapsible-class>summary .aa-show-class-chevron{display:block;width:8px;height:8px;border-right:2px solid var(--aa-class-accent);border-bottom:2px solid var(--aa-class-accent);transform:rotate(45deg);margin:0 4px 4px}
.aa-unified-show-preview .aa-fci-zkwp-shared-shell .aa-show-collapsible-class[open]>summary .aa-show-class-chevron{transform:rotate(225deg);margin:4px 4px 0}
.aa-unified-show-preview .aa-fci-zkwp-shared-shell .aa-show-ranked-list{display:grid;gap:8px;margin:10px 0 0;padding:0;min-width:0}
/* Results are rows of fields, NOT ZKwP's desktop grid columns in a narrow FCI modal. */
.aa-unified-show-preview .aa-fci-zkwp-shared-shell article.aa-show-ranked-entry,
.aa-unified-show-preview .aa-fci-zkwp-shared-shell article.aa-show-dog-entry{display:grid!important;grid-template-columns:40px minmax(0,1fr)!important;gap:6px 10px!important;align-items:start!important;min-width:0!important;max-width:100%!important;width:100%!important;min-height:0!important;margin:0!important;padding:11px 12px!important;border:1px solid #e4d2bc!important;border-left:4px solid var(--aa-class-accent,#b18b61)!important;border-radius:11px!important;background:var(--aa-class-card,#fff9f0)!important;overflow:visible!important;}
.aa-unified-show-preview .aa-fci-zkwp-shared-shell article.aa-show-ranked-entry>*{min-width:0!important;max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;hyphens:none!important;}
.aa-unified-show-preview .aa-fci-zkwp-shared-shell article.aa-show-ranked-entry>.aa-show-place-badge{grid-column:1!important;grid-row:1/3!important;display:flex;align-items:center;justify-content:center;width:35px;height:35px;border-radius:50%;background:#aa7e27;color:white;font-weight:800;font-size:15px}
.aa-unified-show-preview .aa-fci-zkwp-shared-shell article.aa-show-ranked-entry>.aa-show-catalog-number{grid-column:2!important;grid-row:1!important;font-size:12px;color:#796e61;margin:0}
.aa-unified-show-preview .aa-fci-zkwp-shared-shell article.aa-show-ranked-entry>.aa-show-result-name{grid-column:2!important;grid-row:2!important;display:block;line-height:1.35;font-size:14px;font-weight:800;margin:0}
.aa-unified-show-preview .aa-fci-zkwp-shared-shell article.aa-show-ranked-entry>.aa-show-dog-card-meta{grid-column:2!important;grid-row:auto!important;display:flex!important;flex-wrap:wrap;gap:5px 8px;align-items:center;margin:0;font-size:12px}
.aa-unified-show-preview .aa-fci-zkwp-shared-shell article.aa-show-ranked-entry>.aa-show-result-achievements,
.aa-unified-show-preview .aa-fci-zkwp-shared-shell article.aa-show-ranked-entry>.aa-show-own-meta,
.aa-unified-show-preview .aa-fci-zkwp-shared-shell article.aa-show-ranked-entry>.aa-show-own-titles{grid-column:2!important;grid-row:auto!important;display:flex!important;flex-wrap:wrap!important;gap:5px 7px!important;align-items:center;line-height:1.4}
.aa-unified-show-preview .aa-fci-zkwp-shared-shell article.aa-show-ranked-entry>.aa-show-result-owner,
.aa-unified-show-preview .aa-fci-zkwp-shared-shell article.aa-show-ranked-entry>.aa-show-result-breeder{grid-column:1/-1!important;grid-row:auto!important;display:block!important;margin:0!important;padding:6px 0 0!important;border-top:1px solid #e9dbcb;line-height:1.5!important;font-size:12px!important;color:#3b5445!important}
.aa-unified-show-preview .aa-fci-zkwp-shared-shell article.aa-show-ranked-entry>.aa-show-result-owner b,
.aa-unified-show-preview .aa-fci-zkwp-shared-shell article.aa-show-ranked-entry>.aa-show-result-breeder b{display:inline!important;margin:0 5px 0 0!important;font-size:12px!important;white-space:normal!important}
.aa-unified-show-preview .aa-fci-zkwp-shared-shell article.aa-show-ranked-entry .aa-show-result-titles{display:inline-flex!important;flex-wrap:wrap!important;gap:5px!important}
.aa-unified-show-preview .aa-fci-zkwp-shared-shell .aa-show-title-badge{display:inline-flex!important;max-width:100%;width:auto!important;white-space:normal!important;overflow-wrap:anywhere!important;border-radius:999px!important;padding:3px 9px!important;line-height:1.25!important;font-size:11px!important;word-break:normal!important}
.aa-unified-show-preview .aa-fci-zkwp-shared-shell .aa-show-grade{font-weight:750;white-space:normal}
.aa-unified-show-preview .aa-fci-zkwp-shared-shell article.is-own-dog>.aa-show-home-name{grid-column:1/-1!important;grid-row:auto!important;font-weight:800;color:#791c37}
.aa-unified-show-preview .aa-fci-zkwp-shared-shell article.is-own-dog>.aa-show-place-badge{grid-row:auto!important}
.aa-unified-show-preview .aa-fci-zkwp-shared-shell article.is-own-dog>.aa-show-result-name{grid-column:1/-1!important;grid-row:auto!important}
.aa-unified-show-preview .aa-fci-zkwp-shared-shell article.is-own-dog>.aa-show-own-meta{grid-column:1/-1!important}
.aa-unified-show-preview .aa-fci-zkwp-shared-shell a{color:#235747;text-decoration:underline;text-underline-offset:2px;overflow-wrap:anywhere}
.aa-unified-show-preview .aa-fci-zkwp-shared-shell a:focus-visible,.aa-unified-show-preview .aa-fci-zkwp-shared-shell summary:focus-visible{outline:2px solid #801e3d;outline-offset:2px}
@media(max-width:640px){
 .aa-unified-show-preview .aa-fci-zkwp-shared-shell .aa-show-publication-classes{grid-template-columns:1fr}
 .aa-unified-show-preview .aa-fci-zkwp-shared-shell .aa-show-collapsible-class>summary.aa-show-class-name{padding:9px!important}
 .aa-unified-show-preview .aa-fci-zkwp-shared-shell article.aa-show-ranked-entry{padding:10px!important;grid-template-columns:36px minmax(0,1fr)!important}
 .aa-unified-show-preview .aa-fci-zkwp-shared-shell .aa-show-publication-source>dl{gap:5px}
}

/* AA-ZKwP 0.4.1075: the shared result list is hosted in a full-screen FCI dialog.
   Its CSS inherits ZKwP class and card presentation without constraining the FCI card. */
.aa-fci-results-portal{position:fixed!important;inset:0!important;z-index:2147483600!important;display:flex!important;align-items:center;justify-content:center;padding:12px;box-sizing:border-box;color:#263f35}
.aa-fci-results-portal-shade{position:absolute;inset:0;background:rgba(17,26,22,.73)}
.aa-fci-results-portal-dialog{position:relative;display:flex;flex-direction:column;width:min(900px,100%);max-height:calc(100dvh - 24px);background:#fffaf1;border-radius:20px;overflow:hidden;box-shadow:0 18px 55px rgba(0,0,0,.3);min-width:0}
.aa-fci-results-portal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 20px;border-bottom:1px solid #e3d5c0;flex:none;background:#fffaf1}
.aa-fci-results-portal-titles{min-width:0}.aa-fci-results-portal-titles small{display:block;font-size:10px;letter-spacing:.07em;font-weight:700;color:#998565}
.aa-fci-results-portal-titles h2{margin:1px 0;font-size:23px;line-height:1.2;color:#284a3e}
.aa-fci-results-portal-titles p{margin:3px 0 0;font-size:12px;color:#57695d;overflow-wrap:anywhere}
.aa-fci-results-portal-close{border:0!important;border-radius:50%!important;width:48px!important;height:48px!important;min-width:48px!important;background:#73132f!important;color:#fff!important;font-size:30px!important;line-height:1!important;display:grid!important;place-items:center!important;cursor:pointer!important;padding:0!important}
.aa-fci-results-portal-scroll{overflow-y:auto!important;overflow-x:hidden!important;min-height:0;flex:1;overscroll-behavior:contain;padding:12px 18px 18px}
.aa-fci-results-portal .aa-fci-zkwp-shared-shell{max-width:100%;min-width:0;background:transparent;border:0;padding:0;box-shadow:none}
.aa-fci-results-portal .aa-show-publication-source.is-results{margin:0;padding:0 0 15px;border:0;background:transparent;box-shadow:none}
.aa-fci-results-portal .aa-show-ranked-results{margin-top:12px}
.aa-fci-results-portal .aa-show-ranked-results>summary{display:none!important}
.aa-fci-results-portal .aa-show-result-sex{margin-bottom:12px}
.aa-fci-results-portal .aa-show-ranked-list{min-width:0}
.aa-fci-results-portal .aa-show-ranked-row{min-width:0;overflow-wrap:anywhere}
.aa-fci-results-portal .aa-show-ranked-row *{max-width:100%}
.aa-fci-open-detailed-results{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:48px;margin:12px 0 3px;padding:11px 14px;border:1px solid #e1cbb7;border-radius:11px;background:#fff8ec;color:#731633;font-size:14px;font-weight:750;text-align:left;cursor:pointer}
.aa-fci-open-detailed-results::after{content:'↗';font-size:18px;font-weight:700;line-height:1}
.aa-fci-open-detailed-results:hover,.aa-fci-open-detailed-results:focus-visible{background:#f8e8d9;outline-offset:2px}
@media(max-width:600px){.aa-fci-results-portal{padding:6px}.aa-fci-results-portal-dialog{max-height:calc(100dvh - 12px);border-radius:16px}.aa-fci-results-portal-head{padding:11px 12px}.aa-fci-results-portal-titles h2{font-size:19px}.aa-fci-results-portal-scroll{padding:10px 11px 18px}.aa-fci-results-portal-close{width:44px!important;height:44px!important;min-width:44px!important}}


/* 0.4.1076: one disclosure indicator for FCI-embedded shared publication.
   ZKwP legacy markup contains .aa-show-chevron::before with a glyph,
   while the embedded stylesheet also draws a rotated CSS border on its host.
   Disable BOTH and draw one right-aligned chevron on the host. */
.aa-unified-show-preview .aa-fci-zkwp-shared-shell details > summary > .aa-show-chevron,
.aa-fci-results-portal .aa-fci-zkwp-shared-shell details > summary > .aa-show-chevron {
  display:block!important; order:99!important; margin:0 4px 3px auto!important;
  flex:0 0 9px!important; width:9px!important; height:9px!important;
  font-size:0!important; line-height:0!important; color:transparent!important;
  border:0!important; border-right:2px solid #7a2340!important;
  border-bottom:2px solid #7a2340!important;
  border-radius:0!important; background:none!important;
  transform:rotate(45deg)!important; transition:transform .16s ease!important;
}
.aa-unified-show-preview .aa-fci-zkwp-shared-shell details[open] > summary > .aa-show-chevron,
.aa-fci-results-portal .aa-fci-zkwp-shared-shell details[open] > summary > .aa-show-chevron {
  transform:rotate(225deg)!important; margin-top:4px!important; margin-bottom:0!important;
}
.aa-unified-show-preview .aa-fci-zkwp-shared-shell details > summary > .aa-show-chevron::before,
.aa-unified-show-preview .aa-fci-zkwp-shared-shell details > summary > .aa-show-chevron::after,
.aa-fci-results-portal .aa-fci-zkwp-shared-shell details > summary > .aa-show-chevron::before,
.aa-fci-results-portal .aa-fci-zkwp-shared-shell details > summary > .aa-show-chevron::after{
  content:none!important; display:none!important;
}
.aa-unified-show-preview .aa-fci-zkwp-shared-shell details > summary::marker,
.aa-fci-results-portal .aa-fci-zkwp-shared-shell details > summary::marker{content:''!important}
.aa-unified-show-preview .aa-fci-zkwp-shared-shell details > summary::-webkit-details-marker,
.aa-fci-results-portal .aa-fci-zkwp-shared-shell details > summary::-webkit-details-marker{display:none!important}
/* Class headers have their OWN proper color-matched caret; leave it intact. */

/* 0.4.1078 — own-dog place badge must remain a perfect circle at top-right. */
.aa-unified-show-preview .aa-fci-zkwp-shared-shell article.aa-show-ranked-entry.is-own-dog{display:grid!important;grid-template-columns:minmax(0,1fr) 36px!important;gap:8px 10px!important;align-items:start!important}
.aa-unified-show-preview .aa-fci-zkwp-shared-shell article.is-own-dog>.aa-show-home-name{grid-column:1!important;grid-row:1!important;align-self:center!important}
.aa-unified-show-preview .aa-fci-zkwp-shared-shell article.is-own-dog>.aa-show-place-badge{grid-column:2!important;grid-row:1!important;width:36px!important;height:36px!important;min-width:36px!important;max-width:36px!important;min-height:36px!important;max-height:36px!important;padding:0!important;border-radius:50%!important;aspect-ratio:1/1!important;justify-self:end!important;align-self:start!important;line-height:1!important;box-sizing:border-box!important}
.aa-unified-show-preview .aa-fci-zkwp-shared-shell article.is-own-dog>.aa-show-catalog-number{grid-column:1/-1!important;grid-row:2!important;justify-self:start!important}
.aa-unified-show-preview .aa-fci-zkwp-shared-shell article.is-own-dog>.aa-show-result-name{grid-column:1/-1!important;grid-row:3!important}
.aa-unified-show-preview .aa-fci-zkwp-shared-shell article.is-own-dog>.aa-show-own-meta{grid-column:1/-1!important;grid-row:4!important}
