/* Approved engraved portraits with live, accessible territory lettering. */
.territory-card{background:radial-gradient(ellipse at 35% 25%,#fff4d5aa,transparent 78%),linear-gradient(118deg,#e5ca91,#f5e5b9 53%,#dfc18a);color:#15382c}
.territory-card .card-eyebrow{display:flex;align-items:center;justify-content:center;gap:5px;min-width:0;white-space:nowrap;text-transform:uppercase}
.territory-card .card-eyebrow::before,.territory-card .card-eyebrow::after{content:"";display:block;width:22px;min-width:4px;flex:1 1 22px;height:1px;background:#ac7e35;opacity:.8}
.territory-card .card-name{display:flex;align-items:center;justify-content:center;width:100%;text-align:center;text-transform:uppercase;overflow-wrap:normal;word-break:normal}
.card-title-rule{display:block;width:80%;height:9px;flex:none;fill:none;stroke:#ac7e35;stroke-width:1.15;stroke-linejoin:round}
.card-preview .territory-card{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:15px 35px 9px 98px 17px;justify-items:center;align-items:center;gap:4px;min-height:0;padding:12px 7px 11px}
.card-preview .territory-card .card-eyebrow{width:100%;font:700 9px/1.25 Georgia,serif;letter-spacing:.09em;padding:0 17px}
.card-preview .territory-card .card-name{font:700 12px/1.28 Georgia,serif;min-height:35px;padding:0 2px}
.card-preview .territory-card .card-engraving{width:100%;height:98px;margin:0;object-fit:contain}
.card-preview .territory-card .card-caption{margin:0;font:700 10.5px/1.35 Georgia,serif;letter-spacing:.04em;align-self:end}
.territory-card .card-caption{color:#15382c;text-transform:uppercase}
.card-large.territory-card{gap:9px;padding:28px 25px 22px}
.card-large.territory-card .card-eyebrow{margin:0;width:100%;font:700 12px/1.4 Georgia,serif;letter-spacing:.14em}
.card-large.territory-card .card-eyebrow::before,.card-large.territory-card .card-eyebrow::after{width:42px}
.card-large.territory-card .card-name{min-height:0;margin:0;font:700 25px/1.2 Georgia,serif;letter-spacing:.01em}
.card-large.territory-card .card-title-rule{height:11px;width:85%}
.card-large.territory-card .card-engraving{display:block;width:min(100%,295px);height:auto;aspect-ratio:768/806;max-height:310px;margin:4px auto;object-fit:contain}
.card-large.territory-card .card-caption{font:700 21px/1.2 Georgia,serif;letter-spacing:.05em}
.card-large.territory-card .card-bonus{margin:3px 0 0;font:600 10px/1.5 var(--ui-copy);text-transform:uppercase;color:#48543c}
.card-large.territory-card .card-description{margin:4px 0 0;padding:8px 0 0;border-top:1px solid #ac7e3540;font:500 10.5px/1.55 var(--ui-copy);text-transform:uppercase;color:#48543c}
.card-help{width:100%;margin:5px 0 0;text-align:center}
.card-help summary{font:600 9px/1.5 var(--ui-copy);letter-spacing:.05em;color:#48543c;text-transform:uppercase;cursor:pointer}
.card-help .card-bonus{display:block}
@media(max-width:420px){.card-large.territory-card{padding:24px 20px 18px}.card-large.territory-card .card-name{font-size:22px}.card-large.territory-card .card-engraving{max-height:270px}.card-preview .territory-card .card-name{font-size:12px}}
@media(max-height:680px){.card-large.territory-card .card-engraving{max-height:190px}.card-large.territory-card{padding-top:22px;gap:7px}}

.card-preview .territory-card>*{min-width:0;max-width:100%;box-sizing:border-box}
.goal-preview .temple-card{display:flex;align-items:center;justify-content:center;gap:3px;min-height:90px;padding:11px 76px;text-align:center}
.goal-preview .card-eyebrow,.goal-preview .card-name,.goal-preview .card-progress{width:100%;text-align:center;margin:0}
.goal-preview .card-eyebrow{font-size:10px;overflow-wrap:normal}
.goal-preview .card-name{display:block;text-wrap:balance}
.goal-preview .card-engraving{position:absolute;right:12px;top:50%;transform:translateY(-50%);width:56px;height:62px;margin:0}
@media(max-width:420px){.goal-preview .temple-card{padding-inline:59px}.goal-preview .card-engraving{right:9px;width:42px}.goal-preview .card-name{font-size:15px}.goal-preview .card-eyebrow{font-size:9px}}
