/* A guide inside provisioning: existing page/editor positions stay untouched. */
.template-guide-tile { position: relative; }
.template-guide-tile::after { content: '↗'; position: absolute; top: 12px; right: 14px; color: var(--link, #006c70); font-size: 18px; pointer-events: none; }
.template-guide-tile > .template-guide-tile__link { position: absolute; inset: 0; display: block; border-radius: inherit; }
.template-guide-tile:has(.template-guide-tile__link:focus-visible) { outline: 3px solid var(--link, #006c70); outline-offset: 3px; }
.template-guide-tile:hover { border-color: var(--link, #006c70); }
.template-guide { margin-top: 48px; border-top: 3px solid var(--link, #006c70); padding-top: 34px; scroll-margin-top: calc(var(--header-h, 80px) + 24px); }
.template-guide__intro { display: flex; gap: 22px; align-items: flex-start; max-width: 900px; }
.template-guide__mark { display: grid; place-items: center; width: 58px; height: 58px; border: 1px solid var(--border, #d8dfdf); border-radius: 16px; background: var(--bg-tint, #edf3f3); color: var(--link, #006c70); flex-shrink: 0; }
.site .template-guide__intro .eyebrow { margin: 0 0 10px; }
.site .template-guide__intro h3 { margin: 0 0 16px; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.25; }
.template-guide__lead { margin: 0; color: var(--text-2, #627476); line-height: 1.8; font-size: 16px; }
.template-guide__nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 28px 0; }
.template-guide__nav a { display: flex; align-items: center; gap: 11px; padding: 12px 14px; border: 1px solid var(--border, #d8dfdf); border-radius: 10px; background: var(--paper, #fff); color: var(--text-strong, #173b3d); text-decoration: none; font-size: 13px; line-height: 1.5; }
.template-guide__nav a > span { color: var(--link, #006c70); font-size: 11px; font-variant-numeric: tabular-nums; }
.template-guide__nav a:hover { border-color: var(--link, #006c70); background: var(--bg-tint, #edf3f3); }
.template-guide__nav a:focus-visible, .template-guide__back:focus-visible { outline: 3px solid var(--link, #006c70); outline-offset: 3px; }
.template-guide__list { display: grid; gap: 16px; }
.template-guide__area { min-width: 0; border: 1px solid var(--border, #d8dfdf); border-radius: var(--r-card, 10px); background: var(--paper, #fff); overflow: clip; scroll-margin-top: calc(var(--header-h, 80px) + 24px); }
.template-guide__summary { display: flex; align-items: center; gap: 18px; padding: 24px; list-style: none; cursor: pointer; }
.template-guide__summary::-webkit-details-marker { display: none; }
.template-guide__summary::marker { content: ''; }
.template-guide__summary:hover { background: var(--bg-tint, #edf3f3); }
.template-guide__summary:focus-visible { outline: 3px solid var(--link, #006c70); outline-offset: -4px; border-radius: inherit; }
.template-guide__number { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; background: var(--bg-tint, #edf3f3); color: var(--link, #006c70); font-size: 13px; font-weight: 600; }
.template-guide__heading { min-width: 0; flex: 1; display: grid; gap: 6px; }
.template-guide__title { font-family: var(--font-head, inherit); font-size: clamp(18px, 1.7vw, 23px); font-weight: 600; line-height: 1.35; color: var(--text-strong, #173b3d); }
.template-guide__benefit { font-size: 14px; line-height: 1.6; color: var(--text-2, #627476); }
.template-guide__chevron { display: grid; place-items: center; flex-shrink: 0; color: var(--link, #006c70); }
.template-guide__area[open] > .template-guide__summary { border-bottom: 1px solid var(--border, #d8dfdf); }
.template-guide__area[open] .template-guide__chevron { transform: rotate(180deg); }
.template-guide__body { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 30px; padding: 28px 24px; align-items: start; }
.template-guide__copy { min-width: 0; }
.site .template-guide__copy h4 { margin: 0 0 12px; font-size: 17px; line-height: 1.5; }
.template-guide__copy p { margin: 0 0 16px; font-size: 14px; line-height: 1.8; color: var(--text-2, #627476); }
.template-guide__reason { margin: 24px 0; padding: 20px; border-left: 3px solid var(--link, #006c70); background: var(--bg-tint, #edf3f3); border-radius: 0 12px 12px 0; }
.template-guide__reason > p:last-child { margin-bottom: 0; }
.template-guide__steps { list-style: none; counter-reset: template-step; padding: 0; margin: 0; display: grid; gap: 16px; }
.template-guide__steps li { position: relative; padding-left: 36px; counter-increment: template-step; }
.template-guide__steps li::before { content: counter(template-step); position: absolute; left: 0; top: 2px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--border, #d8dfdf); color: var(--link, #006c70); font-size: 11px; font-weight: 600; }
.template-guide__steps strong { display: block; font-size: 14px; line-height: 1.6; color: var(--text-strong, #173b3d); }
.template-guide__steps p { margin: 5px 0 0; }
.template-guide__visual { min-width: 0; position: sticky; top: calc(var(--header-h, 80px) + 24px); }
.template-guide .product-shot__open { aspect-ratio: auto; }
.template-guide .product-shot__image { height: auto; }
.template-guide__back { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin: 0 24px 22px; font-size: 12px; }
html:is([data-ui-theme="aurora"], [data-ui-theme="midnight"]) .template-guide { border-color: var(--ui-accent); }
html:is([data-ui-theme="aurora"], [data-ui-theme="midnight"]) .template-guide__mark,
html:is([data-ui-theme="aurora"], [data-ui-theme="midnight"]) .template-guide__number { background: var(--ui-surface-soft); color: var(--ui-accent-text); border-color: var(--ui-border); }
html:is([data-ui-theme="aurora"], [data-ui-theme="midnight"]) .template-guide__nav a,
html:is([data-ui-theme="aurora"], [data-ui-theme="midnight"]) .template-guide__area { border-color: var(--ui-border); background: var(--ui-surface); }
html:is([data-ui-theme="aurora"], [data-ui-theme="midnight"]) .template-guide__area { border-radius: 20px; box-shadow: var(--ui-shadow); }
html:is([data-ui-theme="aurora"], [data-ui-theme="midnight"]) .template-guide__summary:hover,
html:is([data-ui-theme="aurora"], [data-ui-theme="midnight"]) .template-guide__nav a:hover { background: var(--ui-surface-soft); }
html:is([data-ui-theme="aurora"], [data-ui-theme="midnight"]) .template-guide__area[open] > .template-guide__summary { border-color: var(--ui-border); }
html:is([data-ui-theme="aurora"], [data-ui-theme="midnight"]) .template-guide__reason { background: var(--ui-surface-soft); border-color: var(--ui-accent); }
html:is([data-ui-theme="aurora"], [data-ui-theme="midnight"]) .template-guide__title,
html:is([data-ui-theme="aurora"], [data-ui-theme="midnight"]) .template-guide__steps strong,
html:is([data-ui-theme="aurora"], [data-ui-theme="midnight"]) .template-guide__nav a { color: var(--ui-heading); }
html:is([data-ui-theme="aurora"], [data-ui-theme="midnight"]) .template-guide__lead,
html:is([data-ui-theme="aurora"], [data-ui-theme="midnight"]) .template-guide__benefit,
html:is([data-ui-theme="aurora"], [data-ui-theme="midnight"]) .template-guide__copy p { color: var(--ui-muted); }
html:is([data-ui-theme="aurora"], [data-ui-theme="midnight"]) .template-guide__nav a > span,
html:is([data-ui-theme="aurora"], [data-ui-theme="midnight"]) .template-guide__chevron,
html:is([data-ui-theme="aurora"], [data-ui-theme="midnight"]) .template-guide__steps li::before,
html:is([data-ui-theme="aurora"], [data-ui-theme="midnight"]) .template-guide-tile::after { color: var(--ui-accent-text); }
@media (max-width: 980px) {
  .template-guide__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .template-guide__body { grid-template-columns: minmax(0, 1fr); }
  .template-guide__visual { position: static; }
}
@media (max-width: 580px) {
  .template-guide { margin-top: 32px; padding-top: 26px; }
  .template-guide__intro { display: block; }
  .template-guide__mark { margin-bottom: 18px; width: 44px; height: 44px; }
  .template-guide__lead { font-size: 14px; }
  .template-guide__nav { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .template-guide__nav a { padding: 10px 12px; }
  .template-guide__summary { padding: 18px 14px; gap: 12px; align-items: flex-start; }
  .template-guide__number { width: 28px; height: 28px; font-size: 11px; border-radius: 9px; }
  .template-guide__title { font-size: 17px; }
  .template-guide__benefit { font-size: 13px; }
  .template-guide__body { padding: 22px 14px; gap: 24px; }
  .template-guide__reason { padding: 16px; }
  .template-guide__back { margin-right: 14px; }
}
@media print {
  .template-guide__nav, .template-guide__back { display: none; }
  .template-guide__area { overflow: visible; box-shadow: none; }
  .template-guide__area::details-content { content-visibility: visible; }
  .template-guide__body { display: block !important; }
  .template-guide__visual { position: static; margin-top: 20px; }
}
