/* Place post: breadcrumbs, title, big photo, contents list (left), readable column (middle), facts and nearby (right). */
.es-progress { position: fixed; left: 0; right: 0; top: 78px; height: 3px; z-index: 59; pointer-events: none; }
.es-progress i { display: block; height: 100%; width: 0; background: var(--accent); }

.es-post__head { padding: 44px 0 40px; }
.es-post__kicker { display: flex; align-items: center; gap: 10px; }
.es-post__head h1 { font: 700 clamp(40px, 5.6vw, 84px)/.98 var(--font-heading); letter-spacing: -.035em; max-width: 14em; text-wrap: balance; }
.es-post__head .lead { font-size: clamp(19px, 1.7vw, 23px); max-width: 30em; margin-top: 22px; }
.es-post__meta { display: flex; align-items: center; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.es-post__meta > p:first-child { display: flex; flex-wrap: wrap; gap: 6px 22px; font: 500 15px/1.3 var(--font-body); color: var(--muted); }
.es-post__meta > p:first-child span + span { padding-left: 22px; border-left: 1px solid var(--line-2); }
.es-post__actions { display: flex; gap: 8px; }
.es-act { display: inline-flex; align-items: center; gap: 9px; height: 46px; padding: 0 20px; font: 700 15px/1 var(--font-body); color: var(--text); background: #fff; border: 0; box-shadow: inset 0 0 0 1.5px var(--line-2); border-radius: 999px; cursor: pointer; transition: box-shadow .2s, background .2s, color .2s; }
.es-act:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.es-act .es-ico { color: var(--accent-ink); }
.es-act[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }
.es-act[aria-pressed="true"] .es-ico { color: var(--accent); fill: currentColor; }

.es-post__hero img { width: 100%; aspect-ratio: 16 / 8.2; object-fit: cover; border-radius: var(--radius-lg); }
.es-post__hero figcaption, .es-prose figcaption { font: 500 14px/1.4 var(--font-body); color: var(--muted); margin-top: 12px; }
.es-post__hero figcaption { text-align: right; }

.es-post__grid { display: grid; grid-template-columns: 208px minmax(0, 1fr) 336px; grid-template-rows: auto 1fr; grid-template-areas: "toc prose facts" "toc prose nearby"; gap: 28px 56px; padding-top: 64px; padding-bottom: 104px; }
.es-toc { grid-area: toc; position: sticky; top: 112px; align-self: start; }
.es-toc__btn { display: none; }
.es-toc__h, .es-facts h2, .es-nearby h2 { font: 700 12px/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 16px; }
.es-toc ol { border-left: 1.5px solid var(--line); }
.es-toc a { display: block; padding: 8px 0 8px 18px; margin-left: -1.5px; border-left: 1.5px solid transparent; font: 500 15px/1.35 var(--font-body); color: var(--muted); transition: color .2s, border-color .2s; }
.es-toc a:hover { color: var(--text); }
.es-toc a.is-on { color: var(--text); font-weight: 700; border-color: var(--accent); }

.es-facts { grid-area: facts; align-self: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 26px 26px 8px; }
.es-facts dl { margin: 0; }
.es-facts dl > div { padding: 13px 0; border-top: 1px solid var(--line); }
.es-facts dt { font: 700 13px/1.3 var(--font-body); color: var(--muted); margin-bottom: 3px; }
.es-facts dd { margin: 0; font: 600 16px/1.4 var(--font-body); color: var(--text); }

.es-nearby { grid-area: nearby; position: sticky; top: 112px; align-self: start; background: var(--ink); color: #fff; border-radius: var(--radius-md); padding: 26px 22px 24px; }
.es-nearby h2 { color: var(--accent); padding: 0 4px; }
.es-nearby li a { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; align-items: center; padding: 9px 4px; border-radius: 14px; transition: background .2s; }
.es-nearby li a:hover { background: rgba(255, 255, 255, .07); }
.es-nearby img { width: 76px; height: 60px; object-fit: cover; border-radius: 10px; }
.es-nearby b { display: block; font: 700 17.5px/1.15 var(--font-heading); letter-spacing: -.02em; }
.es-nearby span { display: flex; align-items: center; gap: 7px; font: 600 12.5px/1.3 var(--font-body); color: var(--on-dark-muted); margin-top: 5px; }
.es-nearby .es-link { color: #fff; margin: 16px 4px 0; }
.es-nearby .es-link .es-ico { color: var(--accent); }

/* the readable column */
.es-prose { grid-area: prose; max-width: 720px; width: 100%; justify-self: center; font-size: 19px; line-height: 1.72; color: var(--text); }
.es-prose > p { margin-bottom: 1.15em; }
.es-prose__intro { font: 500 clamp(22px, 2vw, 26px)/1.4 var(--font-heading); letter-spacing: -.015em; }
.es .es-prose h2 { font: 700 clamp(28px, 2.9vw, 40px)/1.06 var(--font-heading); letter-spacing: -.03em; margin: 1.7em 0 .55em; scroll-margin-top: 112px; }
.es-prose a:not(.btn):not(.es-link) { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; transition: background .2s; }
.es-prose a:not(.btn):not(.es-link):hover { background: rgba(255, 179, 65, .28); }
.es-prose figure { margin: 1.9em 0; }
.es-prose figure img { width: 100%; border-radius: var(--radius-md); }
.es-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 1.9em 0; }
.es-duo figure { margin: 0; }
.es-duo img { aspect-ratio: 4 / 5; object-fit: cover; }
.es-tip { margin: 1.7em 0; padding: 24px 26px; background: var(--alt-2); border-left: 4px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.es-tip h3 { font: 700 20px/1.2 var(--font-heading); letter-spacing: -.02em; margin-bottom: 6px; }
.es-tip p { font-size: 17.5px; line-height: 1.6; }
.es-points { margin: 0 0 1.15em; display: grid; gap: 0; border-top: 1px solid var(--line); }
.es-points li { position: relative; padding: 15px 0 15px 26px; border-bottom: 1px solid var(--line); font-size: 18px; line-height: 1.6; }
.es-points li::before { content: ""; position: absolute; left: 2px; top: 1.45em; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.es-postmap { margin: 1.6em 0 0; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; background: #fff; }
.es-postmap__map { height: 380px; background: var(--alt-2); position: relative; z-index: 1; }
.es-postmap__bar { display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; padding: 16px 18px; }
.es-postmap .btn { height: 50px; font-size: 15px; }
.es-prose .faq { margin-top: .2em; }
.es-prose .faq details p { font-size: 17.5px; }
.es-filed { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 2.6em; padding-top: 26px; border-top: 1px solid var(--line); }
.es-filed span { font: 700 12px/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-right: 8px; }
.es-prose .es-filed a:not(.btn):not(.es-link) { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; background: #fff; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); font: 600 14.5px/1 var(--font-body); text-decoration: none; }
.es-prose .es-filed a:not(.btn):not(.es-link):hover { background: var(--ink); color: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }

.es-act--quiet { box-shadow: none; background: none; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--accent); text-decoration-thickness: 2px; padding: 0 12px; }
.es-act--quiet:hover { box-shadow: none; background: rgba(255, 179, 65, .28); }

/* comments (WordPress's own) */
.es-comments { margin-top: 2.4em; padding-top: 8px; border-top: 1px solid var(--line); }
.es .es-prose .es-comments h2 { margin-top: 1.1em; }
.es-comments > p { font-size: 17.5px; color: var(--muted); }
.es-comments__none { margin: 22px 0; padding: 18px 20px; background: var(--alt-2); border-radius: var(--radius-sm); font-weight: 600; }
.es-comments .es-comments__none { color: var(--text); }
.es-cform { display: grid; gap: 8px; }
.es-cform label { font: 700 14px/1.3 var(--font-body); color: var(--text); margin-top: 10px; }
.es-cform textarea, .es-cform input { width: 100%; font: 400 17px/1.5 var(--font-body); color: var(--text); background: #fff; border: 1.5px solid var(--line-2); border-radius: 14px; padding: 13px 16px; }
.es-cform textarea { min-height: 150px; resize: vertical; }
.es-cform textarea:focus, .es-cform input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255, 179, 65, .45); }
.es-cform__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.es-cform__row > div { display: grid; gap: 8px; }
.es-cform__foot { display: flex; align-items: center; gap: 14px 20px; flex-wrap: wrap; margin-top: 16px; }
.es-cform__foot span { font-size: 14.5px; color: var(--muted); }

.es-related { padding: 96px 0; border-top: 1px solid var(--line); }
.es-related--alt { background: var(--alt-2); border-top: 0; }
.es .es-related h2 { font-size: clamp(32px, 3.6vw, 52px); }

@media (max-width: 1240px) {
  .es-post__grid { grid-template-columns: minmax(0, 1fr) 320px; grid-template-rows: auto auto 1fr; grid-template-areas: "prose facts" "prose toc" "prose nearby"; gap: 24px 48px; }
  .es-toc { position: static; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 24px 24px 16px; }
  .es-prose { justify-self: start; }
}
@media (max-width: 900px) {
  .es-post__grid { grid-template-columns: 1fr; grid-template-rows: none; grid-template-areas: "facts" "toc" "prose" "nearby"; gap: 18px 0; padding-top: 28px; padding-bottom: 72px; }
  .es-nearby { position: static; margin-top: 28px; }
  .es-toc { padding: 0; overflow: hidden; }
  .es-toc__h { display: none; }
  .es-toc__btn { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 18px 20px; background: none; border: 0; font: 700 16px/1 var(--font-body); color: var(--text); cursor: pointer; }
  .es-toc__btn .es-ico { color: var(--accent-ink); transition: transform .25s; }
  .es-toc__btn[aria-expanded="true"] .es-ico { transform: rotate(180deg); }
  .es-toc ol { display: none; border-left: 0; border-top: 1px solid var(--line); padding: 8px 6px 12px; }
  .es-toc.is-open ol { display: block; }
  .es-toc a { padding: 9px 14px; border-left: 0; margin: 0; }
  .es-prose { margin-top: 14px; }
}
@media (max-width: 640px) {
  .es-progress { top: 66px; }
  .es-post__head { padding: 26px 0 26px; }
  .es-post__meta { margin-top: 22px; padding-top: 18px; }
  .es-post__meta > p:first-child { font-size: 14px; gap: 4px 14px; }
  .es-post__meta > p:first-child span + span { padding-left: 14px; }
  .es-post__hero .container { padding: 0; }
  .es-post__hero img { border-radius: 0; aspect-ratio: 4 / 3; }
  .es-post__hero figcaption { padding: 0 var(--pad); text-align: left; }
  .es-prose { font-size: 18px; line-height: 1.7; }
  .es-duo { gap: 10px; }
  .es-tip { padding: 20px 20px; }
  .es-postmap__map { height: 300px; }
  .es-postmap .btn { width: 100%; }
  .es-related { padding: 64px 0; }
  .es-cform__row { grid-template-columns: 1fr; }
  .es-act--quiet { display: none; }
}
