/* Coach Michele Design: the article, archive and 404 templates (inc/templates.php).
   Design C has no page for them, so they are composed from the design's own parts (the
   hero's night ground and light, labels, Italiana headings, the gold double frame, text
   links, gold hairlines). Every colour, font, size step and easing here is a token or a
   literal of the design's styles.css: no new hues, fonts or radii. Loaded after styles.css. */

/* ------------------------------------------------------------------ the night band (top of every template page) */
.tpl-band { position: relative; isolation: isolate; overflow: hidden; background: var(--night); color: var(--on-dark); padding: calc(var(--mast) + clamp(56px, 7vw, 104px)) 0 clamp(64px, 8vw, 120px); }
/* the hero's ground: its two pools of gold light over the night gradient (styles.css .hero__bg, with token stops) */
.tpl-band::before { content: ''; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(50% 60% at 72% 34%, rgba(192, 144, 45, .16), transparent 64%),
    radial-gradient(40% 40% at 12% 20%, rgba(138, 100, 24, .14), transparent 70%),
    linear-gradient(180deg, var(--foot) 0%, var(--night) 40%, var(--night-2) 100%);
}
/* a gold hairline closing the band */
.tpl-band::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, rgba(192, 144, 45, 0), rgba(192, 144, 45, .55) 50%, rgba(192, 144, 45, 0)); }
.tpl-band__in { position: relative; z-index: 1; }
.tpl-band__h { max-width: 16em; }
.tpl-band__lead { margin-top: 28px; max-width: 36em; color: var(--on-dark-2); }
.tpl-band__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

/* the 404: a full first screen, like the hero, with the monogram as a faint mark */
.tpl-band--404 { min-height: 100svh; display: flex; align-items: center; padding-bottom: clamp(88px, 9vw, 132px); }
.tpl-band__mono { position: absolute; left: 71%; top: 50%; z-index: -1; width: min(34vw, 420px); height: auto; transform: translate(-50%, -50%); opacity: .14; pointer-events: none; }
@media (max-width: 899px) {
  .tpl-band__mono { left: 50%; top: 36%; width: 66vw; opacity: .1; }
  .tpl-band__actions .btn { flex: 1 1 260px; }
}

/* ------------------------------------------------------------------ the article */
.tpl-article { padding: clamp(72px, 8vw, 128px) 0 var(--sec-y); }
.tpl-article__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(48px, 7vw, 120px); align-items: start; }
.tpl-article__aside { position: sticky; top: 120px; }
.tpl-article__figure { max-width: 460px; }
.tpl-article__figure figcaption { margin-top: 18px; font-size: 15px; line-height: 1.5; color: var(--brown-2); }
.tpl-article__foot { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line-lt); max-width: 30em; }
@media (max-width: 899px) {
  .tpl-article__grid { grid-template-columns: 1fr; gap: 0; }
  .tpl-article__aside { position: static; order: -1; }
  .tpl-article__figure { margin-bottom: 48px; }
}

/* the design's frame at the image's own proportions (styles.css .frame__img is 4:5.3) */
.tpl-frame--natural .frame__img { aspect-ratio: auto; }
.tpl-frame--natural .frame__img img { height: auto; }

/* the article's text: the design's reading type (styles.css body and .prose) in a reading column of about
   65 characters (30em: Albert Sans sets about 8.8px a character at 20px; 65ch would be ~93, ch being a zero's width) */
.tpl-prose { max-width: 30em; font-size: 20px; line-height: 1.62; color: var(--brown-2); overflow-wrap: break-word; }
@media (max-width: 899px) { .tpl-prose { font-size: 18px; } }
.tpl-prose > * + * { margin-top: 1.05em; }
.tpl-prose p, .tpl-prose li { color: var(--brown-2); }
.tpl-prose h2, .tpl-prose h3 { font-family: var(--f-display); font-weight: 400; color: var(--brown); text-wrap: balance; }
.tpl-prose h2 { font-size: clamp(34px, 3.2vw, 48px); line-height: 1.08; letter-spacing: .01em; }
.tpl-prose h3 { font-size: clamp(28px, 2.4vw, 36px); line-height: 1.12; }
.tpl-prose h4, .tpl-prose h5, .tpl-prose h6 { font-family: var(--f-label); font-weight: 600; font-size: 15px; line-height: 1.5; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-dk); }
.tpl-prose > :is(h2, h3, h4, h5, h6) { margin-top: 1.7em; }
.tpl-prose > :is(h2, h3, h4, h5, h6) + * { margin-top: .7em; }
.tpl-prose > :first-child { margin-top: 0; }
.tpl-prose a { color: var(--brown); text-decoration-line: underline; text-decoration-color: var(--gold-dk); text-decoration-thickness: 1px; text-underline-offset: .22em; transition: color .3s; }
.tpl-prose a:hover { color: var(--gold-dk); }
.tpl-prose strong, .tpl-prose b { font-weight: 600; color: var(--brown); }
.tpl-prose ul, .tpl-prose ol { padding-left: 1.3em; }
.tpl-prose li + li { margin-top: .45em; }
.tpl-prose li::marker { color: var(--gold-dk); }
.tpl-prose blockquote { margin-block: 1.6em; padding: 6px 0 6px 28px; border-left: 1px solid var(--gold); }
.tpl-prose blockquote p { font-family: var(--f-display); font-size: clamp(28px, 2.6vw, 38px); line-height: 1.2; color: var(--brown); text-wrap: balance; }
.tpl-prose blockquote p + p { margin-top: .6em; }
.tpl-prose blockquote cite { display: block; margin-top: 14px; font-family: var(--f-label); font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dk); }
.tpl-prose figure { margin-block: 1.8em; }
.tpl-prose img, .tpl-prose video, .tpl-prose iframe { max-width: 100%; height: auto; }
.tpl-prose figcaption { margin-top: 12px; font-size: 15px; line-height: 1.5; color: var(--brown-2); }
.tpl-prose hr { border: 0; height: 1px; background: var(--line-lt); margin-block: 2.4em; }
.tpl-prose table { width: 100%; border-collapse: collapse; font-size: 17px; }
.tpl-prose th, .tpl-prose td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line-lt); text-align: left; vertical-align: top; }
.tpl-prose th { font-weight: 600; color: var(--brown); }
.tpl-prose .alignleft { float: left; margin: .3em 1.6em 1em 0; max-width: 50%; }
.tpl-prose .alignright { float: right; margin: .3em 0 1em 1.6em; max-width: 50%; }
.tpl-prose .aligncenter { margin-inline: auto; }
.tpl-prose::after { content: ''; display: table; clear: both; }

/* a text widget placed inside a .tpl-prose container (the legal pages): in the Elementor
   editor the widget's text sits inside Elementor's two widget boxes, so the reading rhythm
   above is repeated for that depth (on the public site the widget prints no boxes and these
   rules match nothing) */
.tpl-prose > .elementor-widget > .elementor-widget-container > * + * { margin-top: 1.05em; }
.tpl-prose > .elementor-widget > .elementor-widget-container > :is(h2, h3, h4, h5, h6) { margin-top: 1.7em; }
.tpl-prose > .elementor-widget > .elementor-widget-container > :is(h2, h3, h4, h5, h6) + * { margin-top: .7em; }
.tpl-prose > .elementor-widget > .elementor-widget-container > :first-child { margin-top: 0; }

/* ------------------------------------------------------------------ the archive */
.tpl-list { padding: clamp(72px, 8vw, 128px) 0 var(--sec-y); }
.tpl-cards { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(56px, 6vw, 88px) clamp(32px, 4vw, 64px); }
@media (max-width: 1099px) { .tpl-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 699px) { .tpl-cards { grid-template-columns: 1fr; } }
.tpl-card { position: relative; display: flex; flex-direction: column; padding-top: 26px; border-top: 1px solid var(--line-lt); }
.tpl-card::before { content: ''; position: absolute; left: 0; top: -1px; width: 36px; height: 1px; background: var(--gold); }
.tpl-card__fig { display: block; order: -1; margin: 0 0 26px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--cream); }
.tpl-card__fig img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.tpl-card:hover .tpl-card__fig img { transform: scale(1.04); }
p.tpl-card__meta { font-family: var(--f-label); font-weight: 500; font-size: 14px; line-height: 1.5; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dk); }
.tpl-card__h { margin-top: 14px; font-family: var(--f-display); font-size: clamp(30px, 2.4vw, 38px); line-height: 1.12; color: var(--brown); text-wrap: balance; }
.tpl-card__h a { color: inherit; text-decoration: none; transition: color .3s; }
.tpl-card__h a:hover { color: var(--gold-dk); }
.tpl-card__ex { margin-top: 14px; font-size: 18px; line-height: 1.6; }
.tpl-card__go { margin-top: auto; padding-top: 14px; align-self: flex-start; }

/* page numbers */
.tpl-pager { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: clamp(64px, 7vw, 104px); padding-top: 26px; border-top: 1px solid var(--line-lt); }
.tpl-pager .page-numbers { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 48px; min-height: 48px; padding: 0 14px; border: 1px solid transparent; border-radius: 2px; font-weight: 600; font-size: 17px; line-height: 1; color: var(--brown); text-decoration: none; transition: border-color .3s, color .3s; }
.tpl-pager a.page-numbers:hover { border-color: var(--line-lt); color: var(--gold-dk); }
.tpl-pager .current { border-color: var(--gold-dk); color: var(--gold-dk); }
.tpl-pager .dots { min-width: 0; padding: 0 4px; }
.tpl-pager .prev { margin-right: auto; padding-left: 0; }
.tpl-pager .next { margin-left: auto; padding-right: 0; }
.tpl-pager .i-arrow { width: 20px; height: 20px; }
/* phones: the arrows alone (the words stay for screen readers), so the row never wraps */
@media (max-width: 599px) {
  .tpl-pager .prev span, .tpl-pager .next span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .tpl-pager .prev, .tpl-pager .next { padding: 0 12px; }
}

/* nothing to list */
.tpl-empty { max-width: 40em; padding-top: 28px; border-top: 1px solid var(--line-lt); position: relative; }
.tpl-empty::before { content: ''; position: absolute; left: 0; top: -1px; width: 36px; height: 1px; background: var(--gold); }
.tpl-empty__h { font-family: var(--f-display); font-size: clamp(34px, 3.4vw, 52px); line-height: 1.1; color: var(--brown); text-wrap: balance; }
.tpl-empty .tlink { margin-top: 22px; }
