/* An article (article.php), on top of magazine.css: a dark green cover with the picture laid over its edge, then the text
   between its table of contents and the showcase. */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* how far along: no script, where the browser can do it alone */
@supports (animation-timeline: scroll()) {
	.tma-progress { position: fixed; z-index: 10000; inset: 0 0 auto; height: 3px; background: var(--ps-primary); transform-origin: right; animation: tma-progress linear both; animation-timeline: scroll(root); pointer-events: none; }
	@keyframes tma-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

/* the cover: the same green as the magazine's top; the title and its summary, and the picture on a lighter block, over the
   cover's lower edge */
.tma-cover { background: var(--tmm-rings) no-repeat right -130px bottom -150px / 760px auto, var(--tmm-glow), var(--tmm-green); color: #fff; }
.tma-cover__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); align-items: center; gap: 0 clamp(40px, 7vw, 110px); padding-top: 18px; }
.tma-cover .tmm-crumbs { grid-column: 1 / -1; margin-bottom: 26px; }
.tma-cover .tmm-crumbs :is(p, span, a) { color: rgba(255,255,255,.72); }
.tma-cover .tmm-crumbs a:hover { color: #fff; }
.tma-cover .tmm-crumbs .separator:has(+ .last), .tma-cover .tmm-crumbs .last { display: none; } /* (the title is right under it) */
.tma-cover__text { padding-bottom: 72px; }
.tma-cover__tag { display: inline-block; margin-bottom: 16px; padding: 4px 14px; border-radius: 10px; background: rgba(255,255,255,.14); color: #fff; font-size: 13px; font-weight: 700; line-height: 1.8; transition: background-color .2s ease; }
.tma-cover__tag:hover { background: rgba(255,255,255,.24); color: #fff; }
.tma-cover__title { margin: 0; color: #fff; font-size: clamp(26px, 3.3vw, 44px); font-weight: 700; line-height: 1.6; }
.tma-cover__note { margin: 18px 0 0; padding-inline-start: 16px; border-inline-start: 2px solid #7ed0a5; color: rgba(255,255,255,.86); font-size: 16px; line-height: 2.05; }
.tma-by { display: inline-flex; flex-wrap: wrap; align-items: center; margin: 26px 0 0; padding: 9px 4px; border: 1px solid rgba(255,255,255,.16); border-radius: 10px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.9); font-size: 13.5px; line-height: 1.7; list-style: none; }
.tma-by li { display: inline-flex; align-items: center; gap: 7px; padding: 0 16px; }
.tma-by li + li { border-inline-start: 1px solid rgba(255,255,255,.2); }
.tma-by .ps-icon { flex: none; color: #9fd9bb; }
.tma-cover__pic { position: relative; z-index: 1; aspect-ratio: 1; margin: 0 0 -56px; border-radius: 10px; }
.tma-cover__pic::before { content: ""; position: absolute; z-index: -1; inset: 18px 18px -18px -18px; border-radius: 10px; background: #2b8560; }
.tma-cover__pic img { display: block; width: 100%; height: 100%; border-radius: 10px; object-fit: cover; }

.tma-grid { display: grid; grid-template-columns: 290px minmax(0, 1fr) 280px; grid-template-areas: "toc main shop"; align-items: start; gap: 44px; padding-top: 116px; }
.tma-grid--no-toc { grid-template-columns: minmax(0, 1fr) 280px; grid-template-areas: "main shop"; }
.tma-grid--no-shop { grid-template-columns: 290px minmax(0, 1fr); grid-template-areas: "toc main"; }
.tma-grid--no-toc.tma-grid--no-shop { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main"; }
.tma-rail { position: sticky; top: 24px; }
.tma-rail--toc { grid-area: toc; }
.tma-rail--shop { grid-area: shop; }
.tma-main { grid-area: main; min-width: 0; }

/* the table of contents: a soft card rising over the cover's edge, a line with a dot for each section, those read filled */
.tma-toc > summary { display: flex; align-items: center; gap: 8px; color: var(--tmm-ink); font-size: 15.5px; font-weight: 700; line-height: 1.7; list-style: none; cursor: pointer; }
.tma-toc > summary::-webkit-details-marker { display: none; }
.tma-toc > summary small { color: var(--tmm-mute); font-size: 12.5px; font-weight: 400; }
.tma-toc > summary .ps-icon { margin-inline-start: auto; transition: transform .25s ease; }
.tma-toc[open] > summary .ps-icon { transform: rotate(180deg); }
.tma-toc ol { position: relative; max-height: calc(100vh - 260px); margin: 12px 0 0; padding: 0; overflow-y: auto; list-style: none; scrollbar-width: thin; }
.tma-toc li { position: relative; margin: 0; padding: 0; }
.tma-toc li::before { content: ""; position: absolute; top: 0; bottom: 0; inset-inline-start: 4px; width: 1px; background: #d9dfdb; }
.tma-toc li:first-child::before { top: 20px; }
.tma-toc li:last-child::before { bottom: calc(100% - 20px); }
.tma-toc a { position: relative; display: block; padding: 8px 26px 8px 0; color: var(--tmm-soft); font-size: 13.5px; line-height: 1.85; transition: color .2s ease; }
.tma-toc li.is-sub a { padding-inline-start: 38px; font-size: 12.5px; }
.tma-toc a::before { content: ""; position: absolute; top: 15px; inset-inline-start: 0; width: 9px; height: 9px; border: 1.5px solid #bcc5bf; border-radius: 50%; background: #fff; transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease; }
.tma-toc a:hover, .tma-toc a.is-on { color: var(--ps-primary); }
.tma-toc a.is-past::before { border-color: var(--ps-primary); background: var(--ps-primary); }
.tma-toc a.is-on { font-weight: 700; }
.tma-toc a.is-on::before { border-color: var(--ps-primary); background: var(--ps-primary); box-shadow: 0 0 0 4px rgba(19,91,58,.16); }
.tma-rail__share { display: none; }
@media (min-width: 1025px) {
	.tma-rail--toc { margin-top: -146px; padding: 22px 22px 18px; border-radius: 10px; background: #f6f7f7; }
	.tma-grid { padding-top: 116px; }
	.tma-toc > summary { pointer-events: none; }
	.tma-toc > summary .ps-icon { display: none; }
	.tma-rail__share { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #e3e7e4; color: var(--tmm-soft); font-size: 13px; }
	.tma-rail__share .ps-share { display: flex; gap: 12px; margin: 0; }
	.tma-rail__share .ps-share__link { display: inline-flex; width: auto; height: auto; padding: 0; border: 0; border-radius: 0; background: none; color: var(--tmm-mute); transition: color .2s ease; }
	.tma-rail__share .ps-share__link:hover { background: none; color: var(--ps-primary); }
	.tma-rail__share .ps-icon { width: 17px; height: 17px; }
	.tma-main .tma-share { display: none; }
}
@supports (interpolate-size: allow-keywords) {
	.tma-toc { interpolate-size: allow-keywords; }
	.tma-toc::details-content { block-size: 0; overflow: hidden; transition: block-size .3s ease, content-visibility .3s allow-discrete; }
	.tma-toc[open]::details-content { block-size: auto; }
}

/* the text */
.tma-entry { color: #333a36; font-size: 16.5px; line-height: 2.2; }
.tma-entry > :first-child { margin-top: 0; }
.tma-entry p { margin: 0 0 18px; }
@media (min-width: 768px) { .tma-entry p { text-align: justify; } }
.tma-entry :is(h2, h3, h4) { color: var(--tmm-ink); font-weight: 700; scroll-margin-top: 24px; }
.tma-entry h2 { margin: 42px 0 14px; font-size: 25px; line-height: 1.75; }
.tma-entry h3 { margin: 30px 0 10px; font-size: 20px; line-height: 1.8; }
.tma-entry h4 { margin: 24px 0 8px; font-size: 17.5px; line-height: 1.85; }
.tma-entry strong { color: var(--tmm-ink); font-weight: 700; }
.tma-entry.ps-entry a:not(.tma-btn) { color: var(--ps-primary) !important; text-decoration: none !important; }
.tma-entry.ps-entry a:not(.tma-btn):hover { color: #1a1a1a !important; }
.tma-entry a strong { color: inherit; }
.tma-entry :is(em, i) { font-style: normal; }
.tma-entry img { display: block; width: auto; max-width: 100%; height: auto; margin: 24px auto; border-radius: 10px; object-fit: initial; }
.tma-entry :is(ul, ol) { margin: 0 0 18px; padding-inline-start: 22px; }
.tma-entry li { margin-bottom: 6px; }
.tma-entry li::marker { color: var(--ps-primary); }
.tma-entry blockquote { margin: 24px 0; padding: 4px 20px 4px 0; border-inline-start: 3px solid var(--ps-primary); color: var(--tmm-ink); font-weight: 500; }
.tma-entry .tma-note { margin: 24px 0; padding: 16px 20px; border-radius: 10px; background: #f1f6f3; color: var(--tmm-ink); text-align: start; }
.tma-entry .tma-note--warn { background: #fbf3f2; }
.tma-entry .tma-c { text-align: center; }
.tma-entry .tma-btn { display: inline-block; padding: 8px 22px; border-radius: 10px; background: var(--ps-primary); color: #fff; text-decoration: none; font-weight: 700; }
.tma-table { margin: 24px 0; overflow-x: auto; border: 1px solid var(--tmm-line); border-radius: 10px; }
.tma-table table { width: 100%; margin: 0; border-collapse: collapse; font-size: 14.5px; line-height: 1.9; }
.tma-table :is(th, td) { padding: 10px 14px; border: 0; border-bottom: 1px solid var(--tmm-line); text-align: start; }
.tma-table tr:last-child td { border-bottom: 0; }
.tma-table :is(th, tr:first-child td) { background: #f6f7f7; color: var(--tmm-ink); font-weight: 700; }
.tma-entry iframe { display: block; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; height: auto; margin: 24px 0; border: 0; border-radius: 10px; }

/* a person to ask, sharing */
.tma-help { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 40px; padding: 22px 26px; border-radius: 10px; background: #f1f6f3; }
.tma-help__title { margin: 0 0 4px; color: var(--tmm-ink); font-size: 16.5px; font-weight: 700; line-height: 1.8; }
.tma-help__note { margin: 0; color: var(--tmm-soft); font-size: 13.5px; line-height: 1.9; }
.tma-help__btn { display: inline-flex; flex: none; align-items: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 10px; background: var(--ps-primary); color: #fff; font-size: 15px; font-weight: 700; transition: background-color .2s ease; }
.tma-help__btn:hover { background: #0d3a26; color: #fff; }
.tma-share { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--tmm-line); color: var(--tmm-soft); font-size: 14px; }
.tma-share .ps-share { display: flex; gap: 14px; margin: 0; }
.tma-share .ps-share__link { display: inline-flex; width: auto; height: auto; padding: 0; border: 0; border-radius: 0; background: none; color: var(--tmm-mute); transition: color .2s ease; }
.tma-share .ps-share__link:hover { background: none; color: var(--ps-primary); }
.tma-share .ps-icon { width: 19px; height: 19px; }

/* the showcase beside the text: one piece large, two small, and a card to call */
.tma-shop { padding: 18px 18px 16px; border: 1px solid var(--tmm-line); border-radius: 10px; background: #fff; }
.tma-shop__head { margin: 0 0 4px; color: var(--tmm-ink); font-size: 15.5px; font-weight: 700; line-height: 1.7; }
.tma-shop__list { display: grid; gap: 0; }
.tma-good { display: grid; grid-template-columns: 68px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; align-content: start; padding: 12px 0; border-bottom: 1px solid var(--tmm-line); }
.tma-good:last-child { border-bottom: 0; }
.tma-good__pic { grid-row: 1 / 3; width: 68px; height: 68px; overflow: hidden; border-radius: 10px; background: #f6f7f7; }
.tma-good__pic img { object-fit: contain; mix-blend-mode: multiply; }
.tma-good__name { display: -webkit-box; overflow: hidden; color: var(--tmm-ink); font-size: 13px; font-weight: 500; line-height: 1.85; -webkit-box-orient: vertical; -webkit-line-clamp: 2; transition: color .2s ease; }
.tma-good:hover .tma-good__name { color: var(--ps-primary); }
.tma-good__price { align-self: end; color: var(--ps-primary); font-size: 13px; font-weight: 700; line-height: 1.7; }
.tma-good__price del { display: none; }
.tma-good__price .woocommerce-Price-currencySymbol { margin-inline-start: 3px; font-weight: 500; }
.tma-good__price ins { text-decoration: none; }
.tma-shop__all { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; margin-top: 8px; border-radius: 10px; background: #f1f6f3; color: var(--ps-primary); font-size: 13.5px; font-weight: 700; transition: background-color .2s ease; }
.tma-shop__all:hover { background: #e4efe9; color: var(--ps-primary); }
.tma-call { display: none; }
@media (min-width: 1280px) {
	.tma-good:first-child { grid-template-columns: minmax(0, 1fr); padding-top: 8px; }
	.tma-good:first-child .tma-good__pic { grid-row: auto; width: 100%; height: 172px; margin-bottom: 10px; }
	.tma-good:first-child .tma-good__name { font-size: 14px; font-weight: 700; }
}
@media (min-width: 1280px) and (min-height: 800px) {
	.tma-call { display: block; margin-top: 12px; padding: 16px 18px; border-radius: 10px; background: var(--tmm-rings) no-repeat left -120px top -50px / 420px auto, var(--tmm-glow), var(--tmm-green); color: #fff; }
	.tma-call:hover { color: #fff; }
	.tma-call__title { display: block; font-size: 15px; font-weight: 700; line-height: 1.7; }
	.tma-call__note { display: block; color: rgba(255,255,255,.82); font-size: 12.5px; line-height: 1.9; }
	.tma-call__num { display: inline-flex; align-items: center; gap: 7px; margin-top: 8px; font-size: 15px; font-weight: 700; }
	.tma-main .tma-help { display: none; }
	.tma-main .tma-share { margin-top: 32px; }
}

.tma-talk { max-width: 880px; padding-top: 44px; }
.tma-more { padding-top: 52px; }
.tma-av { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: #e9f3ee; color: var(--ps-primary); font-weight: 700; }

@media (max-width: 1279px) {
	.tma-grid { grid-template-columns: 270px minmax(0, 1fr); grid-template-areas: "toc main" "shop shop"; gap: 36px; }
	.tma-grid--no-toc { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "shop"; }
	.tma-grid--no-shop { grid-template-areas: "toc main"; }
	.tma-rail--shop { position: static; }
	.tma-shop__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 20px; }
	.tma-good { border-bottom: 0; }
}
@media (max-width: 1024px) {
	.tma-cover__in { grid-template-columns: minmax(0, 1fr) minmax(0, 290px); gap: 0 34px; padding-top: 14px; }
	.tma-cover .tmm-crumbs { margin-bottom: 18px; }
	.tma-cover__text { padding-bottom: 40px; }
	.tma-by li { padding: 0 12px; }
	.tma-cover__pic { margin: 0 0 40px; }
	.tma-cover__pic::before { inset: 12px 12px -12px -12px; }
	.tma-grid, .tma-grid--no-toc, .tma-grid--no-shop, .tma-grid--no-toc.tma-grid--no-shop { grid-template-columns: minmax(0, 1fr); grid-template-areas: "toc" "main" "shop"; gap: 28px; padding-top: 28px; }
	.tma-rail--toc { position: static; }
	.tma-toc { border-radius: 10px; background: #f6f7f7; }
	.tma-toc > summary { padding: 14px 16px; }
	.tma-toc nav { padding: 0 16px 10px; }
	.tma-toc ol { max-height: none; margin-top: 0; }
}
@media (max-width: 767px) {
	.tma-cover { background-size: 480px auto, auto, auto; background-position: right -140px bottom -40px, 0 0, 0 0; }
	.tma-cover__in { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 12px; }
	.tma-cover .tmm-crumbs { margin-bottom: 14px; }
	.tma-cover__text { padding-bottom: 24px; }
	.tma-cover__tag { margin-bottom: 12px; }
	.tma-cover__note { margin-top: 14px; font-size: 14.5px; }
	.tma-by { display: flex; justify-content: space-between; margin-top: 18px; padding: 8px 0; font-size: 12.5px; }
	.tma-by li { gap: 5px; padding: 0 9px; }
	.tma-cover__pic { aspect-ratio: 4 / 3; margin: 0 9px -32px 0; }
	.tma-cover__pic::before { inset: 9px 9px -9px -9px; }
	.tma-grid, .tma-grid--no-toc, .tma-grid--no-shop, .tma-grid--no-toc.tma-grid--no-shop { padding-top: 56px; }
	.tma-entry { font-size: 15.5px; line-height: 2.15; }
	.tma-entry h2 { margin-top: 32px; font-size: 21px; }
	.tma-entry h3 { margin-top: 24px; font-size: 18px; }
	.tma-entry h4 { font-size: 16px; }
	.tma-help { flex-direction: column; align-items: stretch; gap: 14px; margin-top: 30px; padding: 18px; }
	.tma-help__btn { justify-content: center; }
	.tma-share { flex-direction: column; align-items: flex-start; }
	.tma-shop__list { grid-template-columns: minmax(0, 1fr); }
	.tma-good { border-bottom: 1px solid var(--tmm-line); }
	.tma-good:last-child { border-bottom: 0; }
	.tma-more { padding-top: 32px; }
}
