/* The brand directory (plan 20): /brands/, the pages under /brands/{brand}/ and the product pages (/products/). The pages keep tokila-calendar's
   wrapper (#tcal-page.tcal) so the calendar cards, article rows and pager of calendar.css read the same here, and use
   its rose tokens (--tc-*) for the parts added here: the heading, the page navigation, the "now and next" boxes, the
   sections, the chips, the profile table and the notices. The column is the theme's (650px beside the side column). */
/* The side padding is the theme's for an article (.art: 0 1rem), which these pages do not take for its list styles. */
#tcal-page.tkl-dir { container-type: inline-size; padding: 0 1rem 32px; font-size: 14px; }
#tcal-page.tkl-dir :focus-visible { outline: 2px solid var(--tc-rose-ink); outline-offset: 2px; }
.tkl-dir-link { color: var(--tc-rose-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* The name as a wordmark: a Bodoni for Latin letters (the digits come from the calendar's Bodoni Moda subset), a mincho
   for a Japanese name. A logo replaces it only once its use is cleared. */
.tkl-dir-mark { display: inline-block; font-weight: 500; line-height: 1.12; letter-spacing: .015em; }
.tkl-dir-mark.is-latin { font-family: var(--tc-num); }
.tkl-dir-mark.is-ja { font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Noto Serif JP", serif; font-weight: 600; letter-spacing: .04em; font-feature-settings: "palt"; }

/* The top page's heading. */
.tkl-dir-head { padding: 6px 0 4px; }
#tcal-page .tkl-dir-head__eyebrow { margin: 0; font-size: 11px; letter-spacing: .16em; color: var(--tc-sub); }
#tcal-page .tkl-dir-head__name { display: grid; justify-items: start; gap: 6px; margin: 6px 0 0; font-size: inherit; font-weight: inherit; line-height: 1.1; }
.tkl-dir-head .tkl-dir-mark { font-size: 40px; }
.tkl-dir-head .tkl-dir-mark.is-ja { font-size: 30px; }
.tkl-dir-head .tkl-dir-mark.is-long { font-size: 28px; }
.tkl-dir-head .tkl-dir-mark.is-ja.is-long { font-size: 22px; }
.tkl-dir-head__aside { font-size: 12px; font-weight: 400; letter-spacing: .2em; color: var(--tc-sub); }
#tcal-page .tkl-dir-head__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 12px 0 0; font-size: 12.5px; line-height: 1.7; }
.tkl-dir-head__key { margin-right: 6px; color: var(--tc-sub); }
#tcal-page .tkl-dir-head__note { display: inline-block; margin: 10px 0 0; padding: 2px 10px; border: 1px solid var(--tc-line); border-radius: 999px; font-size: 12px; color: var(--tc-sub); }
@container (min-width: 560px) {
  .tkl-dir-head .tkl-dir-mark { font-size: 56px; }
  .tkl-dir-head .tkl-dir-mark.is-ja { font-size: 40px; }
  .tkl-dir-head .tkl-dir-mark.is-long { font-size: 36px; }
  .tkl-dir-head .tkl-dir-mark.is-ja.is-long { font-size: 28px; }
}
#tcal-page .tkl-dir-lede { margin: 12px 0 0; font-size: 13px; line-height: 1.8; white-space: pre-line; }

/* The heading of a page under the brand. */
.tkl-dir-page { padding: 4px 0 2px; }
.tkl-dir-page__owner { display: inline-block; font-size: 16px; color: var(--tc-ink); text-decoration: none; }
.tkl-dir-page__owner:hover { color: var(--tc-rose-ink); }
#tcal-page .tkl-dir-page__title { margin: 4px 0 0; font-size: 20px; font-weight: 700; line-height: 1.45; letter-spacing: .02em; }
.tkl-dir-page__title small { font-size: 13px; font-weight: 500; color: var(--tc-sub); }
#tcal-page .tkl-dir-page__lede { margin: 4px 0 0; font-size: 12.5px; color: var(--tc-sub); }

/* The brand's pages with their counts. */
.tkl-dir-nav { display: flex; gap: 2px; margin: 14px 0 0; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--tc-line); }
.tkl-dir-nav::-webkit-scrollbar { display: none; }
.tkl-dir-nav a { flex: none; display: inline-flex; align-items: center; gap: 5px; min-height: 44px; margin-bottom: -1px; padding: 0 10px; border-bottom: 2px solid transparent;
  font-size: 13px; color: var(--tc-sub); text-decoration: none; white-space: nowrap; }
.tkl-dir-nav a span { font-size: 11px; font-variant-numeric: tabular-nums; }
.tkl-dir-nav a:hover { color: var(--tc-ink); }
.tkl-dir-nav a[aria-current="page"] { border-color: var(--tc-rose); font-weight: 700; color: var(--tc-ink); }

/* "Now and next": the running event, the next launch and the latest article, each with its day set large. */
.tkl-dir-now { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(232px, 84%); gap: 10px; margin: 16px 0 0; padding: 2px 2px 8px; overflow-x: auto; scrollbar-width: none; }
.tkl-dir-now::-webkit-scrollbar { display: none; }
@container (min-width: 560px) {
  .tkl-dir-now { grid-auto-flow: row; grid-template-columns: repeat(var(--tkl-dir-slots, 3), minmax(0, 1fr)); overflow: visible; }
}
.tkl-dir-now__slot { display: grid; grid-template-columns: auto minmax(0, 1fr); align-content: start; column-gap: 12px; min-height: 120px; padding: 12px 14px 14px;
  border: 1px solid var(--tc-line); border-radius: 16px; background: #fff; color: var(--tc-ink); text-decoration: none; transition: border-color .15s; }
.tkl-dir-now__slot:hover { border-color: var(--tc-rose); }
.tkl-dir-now__slot.is-launch { border-color: var(--tc-blush); background: var(--tc-blush); }
.tkl-dir-now__slot.is-launch:hover { border-color: var(--tc-rose); }
.tkl-dir-now__label { grid-column: 1 / -1; margin-bottom: 6px; font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--tc-sub); }
.tkl-dir-now__slot.is-event .tkl-dir-now__label, .tkl-dir-now__slot.is-launch .tkl-dir-now__label { color: var(--tc-rose-ink); }
.tkl-dir-now__date { min-width: 48px; text-align: center; }
.tkl-dir-now__date b { display: block; font-family: var(--tc-num); font-size: 38px; font-weight: 500; line-height: .95; font-variant-numeric: lining-nums; }
.tkl-dir-now__date small { display: block; margin-top: 6px; font-size: 10px; color: var(--tc-sub); white-space: nowrap; }
.tkl-dir-now__body { display: grid; align-content: start; gap: 3px; min-width: 0; }
.tkl-dir-now__title { display: -webkit-box; overflow: hidden; font-size: 13px; font-weight: 700; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.tkl-dir-now__line { overflow: hidden; font-size: 11px; line-height: 1.5; color: var(--tc-sub); text-overflow: ellipsis; white-space: nowrap; }
.tkl-dir-now__left { justify-self: start; margin-top: 4px; padding: 0 8px; border-radius: 999px; background: var(--tc-rose); font-size: 10.5px; color: #fff; }

/* Sections: a rule, the kind and its count, and the link to the kind's own page. */
.tkl-dir-section { margin: 30px 0 0; }
#tcal-page .tkl-dir-h { display: flex; align-items: baseline; gap: 10px; margin: 0 0 12px; padding: 14px 0 0; border: 0; border-top: 1px solid var(--tc-line); background: none;
  font-size: 16px; font-weight: 700; line-height: 1.5; }
#tcal-page .tkl-dir-h span { font-size: 12px; font-weight: 400; color: var(--tc-sub); font-variant-numeric: tabular-nums; }
#tcal-page .tkl-dir-more { display: flex; justify-content: flex-end; margin: 12px 0 0; }
.tkl-dir-more a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; color: var(--tc-rose-ink); text-decoration: underline; text-underline-offset: 3px; }
.tkl-dir-more a::after { content: ""; width: 6px; height: 6px; margin-left: 8px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); }
.tkl-dir-past { margin: 12px 0 0; }
.tkl-dir-past > summary { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 13px; color: var(--tc-sub); cursor: pointer; list-style: none; }
.tkl-dir-past > summary::-webkit-details-marker { display: none; }
.tkl-dir-past > summary::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform .15s; }
.tkl-dir-past[open] > summary::before { transform: rotate(45deg); }
.tkl-dir-past > summary:hover { color: var(--tc-ink); }
.tkl-dir-past[open] > summary { margin-bottom: 8px; }
#tcal-page .tkl-dir-note { margin: 12px 0 0; font-size: 12px; color: var(--tc-sub); }
#tcal-page.tkl-dir .tcal-empty { margin: 12px 0 0; }
#tcal-page.tkl-dir .tcal-rows { margin: 0; }
#tcal-page.tkl-dir .tkl-product-facets { margin: 0 0 12px; }
#tcal-page.tkl-dir .tkl-product-cards { margin: 0; padding: 0; list-style: none; }
#tcal-page.tkl-dir .tkl-product-cards > li { margin: 0; list-style: none; }

/* Places or kinds with their counts, as the calendar's chips. */
.tkl-dir-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; }
.tkl-dir-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1px solid var(--tc-line); border-radius: 999px; background: #fff;
  font-size: 12.5px; color: var(--tc-ink); text-decoration: none; white-space: nowrap; }
.tkl-dir-chip span { font-size: 11px; color: var(--tc-sub); font-variant-numeric: tabular-nums; }
a.tkl-dir-chip:hover { border-color: var(--tc-rose); }
span.tkl-dir-chip:not([aria-current]) { color: var(--tc-sub); }
.tkl-dir-chip[aria-current="page"] { border-color: var(--tc-ink); background: var(--tc-ink); color: #fff; }
.tkl-dir-chip[aria-current="page"] span { color: #e3d6db; }

/* The profile. */
#tcal-page .tkl-dir-facts { margin: 0; border-top: 1px solid var(--tc-line); }
.tkl-dir-facts > div { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--tc-line); font-size: 13px; }
.tkl-dir-facts dt { font-weight: 400; color: var(--tc-sub); }
.tkl-dir-facts dd { margin: 0; overflow-wrap: anywhere; }

/* The latest notices by date and title. */
#tcal-page .tkl-dir-notices { margin: 0; padding: 0; border-top: 1px solid var(--tc-line); list-style: none; }
#tcal-page .tkl-dir-notices li { display: grid; grid-template-columns: 6.2em minmax(0, 1fr); gap: 10px; margin: 0; padding: 11px 2px; border-bottom: 1px solid var(--tc-line); font-size: 13px; list-style: none; }
.tkl-dir-notices time { font-size: 12px; color: var(--tc-sub); font-variant-numeric: tabular-nums; }
.tkl-dir-notices a { text-decoration: none; }
.tkl-dir-notices a:hover { color: var(--tc-rose-ink); text-decoration: underline; }

/* The date pages of the brand's running events and next launch, as the chips of the initial index (.tcal-tabs). */
.tkl-brand-dates { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 14px 0 0; font-size: 13px; }
.tkl-brand-dates span { margin-right: 2px; font-weight: 700; color: var(--tc-sub); }
.tkl-brand-dates a { display: inline-grid; place-items: center; min-height: 36px; padding: 0 10px; border: 1px solid var(--tc-line); border-radius: 10px; text-decoration: none; }
.tkl-brand-dates a:hover { background: var(--tc-blush); }

/* Brand notices, the notices page and the top page's few. */
#tcal-page .brand-notices { margin: 30px 0 0; padding: 0; border: 0; background: none; }
#tcal-page .brand-notice { margin: 10px 0 0; padding: 14px 16px; border: 1px solid var(--tc-line); border-radius: 16px; background: #fff; scroll-margin-top: 80px; }
#tcal-page .brand-notice:target { border-color: var(--tc-rose); }
#tcal-page .brand-notice h3 { margin: 0 0 2px; padding: 0; border: 0; background: none; font-size: 15px; font-weight: 700; line-height: 1.5; }
#tcal-page .brand-notice-date { margin: 0 0 8px; font-size: 12px; color: var(--tc-sub); }
/* The body is markup (paragraphs, or nl2br for plain text), so the newlines between blocks are not shown as blank lines. */
#tcal-page .brand-notice-body { white-space: normal; }
#tcal-page .brand-notice-body > :first-child { margin-top: 0; }
#tcal-page .brand-notice-body > :last-child { margin-bottom: 0; }
#tcal-page .brand-notice .tkl-button { margin-top: 10px; }
#tcal-page a:focus-visible, #tcal-page summary:focus-visible { outline: 2px solid var(--tc-rose-ink); outline-offset: 2px; }

/* The products (plan 20, stage 2): the price range of a list narrowed to one brand's products, the category index of
   /products/ (each top category with its children as chips), the series chips and a product's page in the rose set. */
#tcal-page .tkl-dir-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--tc-blush); font-size: 13px; }
.tkl-dir-price b { font-family: var(--tc-num); font-size: 17px; font-weight: 600; font-variant-numeric: lining-nums tabular-nums; }
.tkl-dir-price span { color: var(--tc-sub); font-variant-numeric: tabular-nums; }
.tkl-dir-price small { flex-basis: 100%; font-size: 11.5px; color: var(--tc-sub); }
.tkl-dir-series .tkl-dir-chip span { font-size: 10.5px; }
#tcal-page .tkl-dir-page__eyebrow { margin: 0; font-size: 11px; letter-spacing: .16em; color: var(--tc-sub); }
.tkl-dir-page__eyebrow a { color: inherit; text-decoration: none; }
.tkl-dir-page__eyebrow a:hover { color: var(--tc-rose-ink); text-decoration: underline; }
.tkl-dir-cats { display: grid; gap: 4px 24px; }
@container (min-width: 560px) { .tkl-dir-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tkl-dir-cat { padding: 10px 0 12px; border-bottom: 1px solid var(--tc-line); }
#tcal-page .tkl-dir-cat__name { display: flex; align-items: baseline; gap: 8px; margin: 0; padding: 0; border: 0; background: none; font-size: 15px; font-weight: 700; line-height: 1.5; }
.tkl-dir-cat__name a { text-decoration: none; }
.tkl-dir-cat__name a:hover { color: var(--tc-rose-ink); text-decoration: underline; }
.tkl-dir-cat__name span { font-size: 11px; font-weight: 400; color: var(--tc-sub); font-variant-numeric: tabular-nums; }
.tkl-dir-cat .tkl-dir-chips { margin-top: 8px; }
#tcal-page.tkl-dir .tkl-product-card__link img { border-color: var(--tc-line); border-radius: 12px; }
#tcal-page.tkl-dir .tkl-product-badge { border-color: var(--tc-line); }
/* The product pages' column (.tkl-products .main__inner) has its own side padding. */
#tcal-page.tkl-product { padding: 6px 0 32px; }
#tcal-page.tkl-product .tkl-product__head { margin-top: 10px; }
#tcal-page.tkl-product h2 { margin: 30px 0 12px; padding: 14px 0 0; border: 0; border-top: 1px solid var(--tc-line); background: none; font-size: 16px; font-weight: 700; line-height: 1.5; }
#tcal-page.tkl-product h3 { margin: 16px 0 8px; padding: 0; border: 0; background: none; font-size: 14px; font-weight: 700; }
#tcal-page.tkl-product .tkl-product__price { margin: 10px 0 0; font-size: 16px; }
#tcal-page.tkl-product .tkl-product__reading { margin: 2px 0 0; font-size: 12px; }
#tcal-page .tkl-product__categories { margin: 0; }

/* The brand histories (plan 20, stage 5): paragraphs whose sentences carry their sources' numbers, the timeline and
   the roles as rows of a date column and the text, and the numbered sources at the end. */
#tcal-page .tkl-hist-p { margin: 12px 0 0; font-size: 14px; line-height: 1.95; }
#tcal-page .tkl-hist-h { margin-top: 26px; }
.tkl-hist-note { margin-left: 1px; font-size: 10px; line-height: 1; color: var(--tc-sub); }
.tkl-hist-note a { color: var(--tc-rose-ink); text-decoration: none; }
.tkl-hist-note a:hover { text-decoration: underline; }
#tcal-page .tkl-hist-rows { margin: 12px 0 0; padding: 0; border-top: 1px solid var(--tc-line); list-style: none; }
#tcal-page .tkl-hist-rows > li { display: grid; grid-template-columns: 7.4em minmax(0, 1fr); gap: 12px; margin: 0; padding: 11px 2px; border-bottom: 1px solid var(--tc-line); font-size: 13.5px; line-height: 1.75; list-style: none; }
.tkl-hist-date { font-family: var(--tc-num); font-size: 13px; color: var(--tc-ink); font-variant-numeric: lining-nums tabular-nums; }
.tkl-hist-roles .tkl-hist-date { font-size: 12px; color: var(--tc-sub); }
.tkl-hist-text b a { text-decoration: none; }
.tkl-hist-text b a:hover { color: var(--tc-rose-ink); text-decoration: underline; }
.tkl-hist-role { font-size: 12px; color: var(--tc-sub); }
.tkl-hist-line { display: block; margin-top: 2px; }
.tkl-hist-more { display: inline-block; margin-top: 4px; font-size: 12px; }
#tcal-page .tkl-hist-sources ol { margin: 0; padding: 0; font-size: 12.5px; line-height: 1.7; list-style: none; }
#tcal-page .tkl-hist-sources li { position: relative; margin: 0 0 8px; padding-left: 2.6em; list-style: none; scroll-margin-top: 80px; }
.tkl-hist-num { position: absolute; left: 0; font-weight: 400; color: var(--tc-sub); font-variant-numeric: tabular-nums; }
.tkl-hist-sources li:target { background: var(--tc-blush); }
.tkl-hist-sources li span { display: block; color: var(--tc-sub); }
.tkl-hist-sources a { color: var(--tc-rose-ink); overflow-wrap: anywhere; }
#tcal-page .tkl-hist-revisions { margin: 0; padding: 0; list-style: none; }

@media (prefers-reduced-motion: reduce) {
  .tkl-dir-now__slot, .tkl-dir-past > summary::before { transition: none; }
}
