/* archive.<domain> — archive page between the cloned header and footer. Colours come from --ar-ink / --ar-accent (per site). */
.ar-main { padding: 40px 0 64px; }
.ar-main [hidden] { display: none !important; }
.ar-wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }
.ar-kicker { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ar-kicker a { color: #6b7280; text-decoration: none; }
.ar-kicker a:hover { color: rgb(var(--ar-accent)); }
.ar-h1 { margin: 0; font-size: clamp(32px, 6vw, 52px); line-height: 1.1; font-weight: 700; color: rgb(var(--ar-ink)); }
.ar-sub { margin: 10px 0 28px; color: #6b7280; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }

/* filter + sort bar */
.ar-filters { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: flex-end; padding: 16px; margin: 0 0 8px;
  background: #fff; border: 1px solid #e5e7eb; border-top: 3px solid rgb(var(--ar-ink)); border-radius: 4px; }
.ar-f { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ar-f > span { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #6b7280; }
.ar-f input, .ar-f select { height: 38px; padding: 0 10px; border: 1px solid #d1d5db; border-radius: 3px; background: #fff;
  color: #111827; font: inherit; font-size: 14px; }
.ar-f input:focus, .ar-f select:focus { outline: 2px solid rgb(var(--ar-accent) / .35); border-color: rgb(var(--ar-accent)); }
.ar-q { flex: 1 1 100%; }
.ar-q input { width: 100%; }
.ar-types { flex-direction: row; flex-wrap: wrap; gap: 6px; flex: 1 1 100%; }
.ar-types button, .ar-reset, .ar-more { height: 34px; padding: 0 14px; border: 1px solid #d1d5db; border-radius: 999px; background: #fff;
  color: #374151; font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.ar-types button:hover, .ar-reset:hover { border-color: rgb(var(--ar-ink)); color: rgb(var(--ar-ink)); }
.ar-types button.on { background: rgb(var(--ar-ink)); border-color: rgb(var(--ar-ink)); color: #fff; }
.ar-reset { margin-left: auto; height: 38px; border-radius: 3px; }
.ar-count { margin: 0 0 8px; font-size: 13px; color: #6b7280; }

/* list */
.ar-day { margin: 32px 0 4px; padding-bottom: 6px; border-bottom: 3px double rgb(var(--ar-ink)); font-size: 13px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: rgb(var(--ar-ink)); }
.ar-item { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid #e5e7eb; }
.ar-img { width: 132px; height: 92px; flex: none; object-fit: cover; border-radius: 3px; background: #e5e7eb; }
.ar-body { min-width: 0; flex: 1; }
.ar-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: rgb(var(--ar-accent)); }
.ar-meta time { margin-left: auto; font-family: ui-monospace, Menlo, monospace; font-weight: 400; letter-spacing: 0; text-transform: none; color: #6b7280; }
.ar-tag { padding: 2px 6px; border-radius: 2px; background: rgb(var(--ar-ink) / .08); color: rgb(var(--ar-ink)); }
.ar-item h2 { margin: 8px 0 6px; font-size: 21px; line-height: 1.3; font-weight: 700; }
.ar-item h2 a { color: rgb(var(--ar-ink)); text-decoration: none; }
.ar-item h2 a:hover { text-decoration: underline; text-decoration-color: rgb(var(--ar-accent)); }
.ar-ex { margin: 0; color: #374151; font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.ar-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 10px 0 0; }
.ar-links a { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgb(var(--ar-accent)); text-decoration: none; }
.ar-links a:hover { text-decoration: underline; }
.ar-more { display: block; margin: 28px auto 0; height: 42px; padding: 0 28px; background: rgb(var(--ar-ink)); border-color: rgb(var(--ar-ink)); color: #fff; }
.ar-empty { padding: 40px 0; text-align: center; color: #6b7280; }

/* one article */
.ar-back { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6b7280; text-decoration: none; }
.ar-back:hover { color: rgb(var(--ar-accent)); }
.ar-detail .ar-meta { margin: 24px 0 12px; }
.ar-detail .ar-h1 { font-size: clamp(28px, 5vw, 42px); }
.ar-hero { display: block; width: 100%; max-height: 420px; object-fit: cover; margin: 24px 0 0; border-radius: 4px; }
.ar-text { margin-top: 24px; color: #1f2937; font-size: 17px; line-height: 1.75; overflow-wrap: anywhere; }
.ar-text p, .ar-text ul { margin: 0 0 1.1em; }
.ar-text ul { padding-left: 1.3em; list-style: disc; }
.ar-text h2, .ar-text h3, .ar-text h4, .ar-text h5 { margin: 1.4em 0 .5em; font-weight: 700; color: rgb(var(--ar-ink)); font-size: 1.2em; }
.ar-text a { color: rgb(var(--ar-accent)); text-decoration: underline; }
.ar-why { margin: 28px 0 0; padding: 16px 18px; border-left: 4px solid rgb(var(--ar-accent)); background: #fff; }
.ar-why strong { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgb(var(--ar-accent)); }
.ar-why p { margin: 6px 0 0; color: #374151; }

/* mobile drawer for the cloned header's burger button */
.ar-drawer { position: sticky; top: 0; z-index: 39; display: flex; flex-direction: column; background: #fff; border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 8px 16px rgb(0 0 0 / .08); }
.ar-drawer[hidden] { display: none; }
.ar-drawer a { padding: 13px 20px; border-top: 1px solid #f3f4f6; font-size: 14px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: #374151; text-decoration: none; }
.ar-drawer a:hover { color: rgb(var(--ar-accent)); }

@media (max-width: 640px) {
  .ar-main { padding-top: 28px; }
  .ar-filters { display: grid; grid-template-columns: 1fr 1fr; padding: 12px; }
  .ar-q, .ar-types { grid-column: 1 / -1; }
  .ar-f input, .ar-f select { width: 100%; }
  .ar-reset { grid-column: 1 / -1; margin: 0; }
  .ar-img { width: 88px; height: 66px; }
  .ar-item h2 { font-size: 18px; }
  .ar-meta time { margin-left: 0; }
}
