/* shared components */

/* Header/nav component block */
.two-line-header {
  display: grid;
  gap: 10px;
}
.header-line-1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.brand {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.brand-mark {
  width: 22px;
  height: 22px;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
}
.header-icon-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.header-icon-btn {
  width: var(--icon-btn-sm);
  height: var(--icon-btn-sm);
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.header-icon-btn svg {
  width: var(--icon-sm);
  height: var(--icon-sm);
}
.header-quick-menu {
  display: grid;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 8px;
}
.header-quick-menu a {
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 8px;
}
.header-quick-menu a:hover {
  background: #f4f4f5;
}
.header-line-2 {
  display: flex;
  gap: 16px;
  padding: 8px 0px;
}
.header-tab {
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  padding-bottom: 2px;
}
.header-tab.is-active {
  color: #111;
  border-bottom: 2px solid #111;
}

/* Shared tiny-meta utilities (Less, but Better) */
.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 18px;
}
.meta-compact {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
}
.meta-inline-dot {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
}
.meta-inline-dot > * + * {
  position: relative;
  margin-left: 12px;
}
.meta-inline-dot > * + *::before {
  content: '·';
  position: absolute;
  left: -8px;
  color: #9ca3af;
}

.tt-title-row {
  font-size: 12px;
  color: var(--muted);
}
.tt-school-name {
  color: inherit;
}
.tt-pref-inline {
  border: 0;
  border-radius: 0;
  padding: 0;
  color: inherit;
  background: transparent;
}

.page-copy-btn {
  border: 1px solid var(--btn-border);
  border-radius: 8px;
  background: var(--btn-surface);
  color: #2f2f2f;
  font-size: 12px;
  line-height: 1;
  min-height: 27px;
  padding: 5px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
}
.page-copy-btn svg {
  width: var(--icon-copy);
  height: var(--icon-copy);
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.page-copy-btn .copy-icon {
  width: var(--icon-copy);
  height: var(--icon-copy);
}
.page-copy-btn .check-icon {
  width: var(--icon-copy);
  height: var(--icon-copy);
  stroke-width: 1.8;
  display: none;
}
.page-copy-btn.is-copied .copy-icon {
  display: none;
}
.page-copy-btn.is-copied .check-icon {
  display: block;
}
.page-copy-btn:active {
  background: var(--btn-surface-active);
}

/* Home recent-actions component block */
.recent-schools {
  background: #fff;
  padding: 10px 0px;
  min-height: 120px; /* Reserve space for about 2 items or empty state */
}
.recent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.recent-head h3 {
  margin: 0;
}
.recent-clear {
  background: #fff;
  color: var(--muted);
  padding: 6px 0px;
  min-height: 32px;
}
.recent-list {
  display: grid;
}
.recent-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.recent-school {
  font-weight: 600;
  font-size: 14px;
}
.recent-actions {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.detail-jump-links {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}
.detail-jump-links a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.recent-actions .action-icon {
  width: 40px;
  height: 40px;
  border-radius: 0;
  background: #fff;
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
}
.recent-actions .action-icon svg {
  width: var(--icon-md);
  height: var(--icon-md);
  display: block;
  stroke: currentColor;
  stroke-width: 2px;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.recent-actions .action-icon svg.action-icon-filled {
  stroke: none;
  fill: currentColor;
}
.recent-actions .action-icon svg.action-icon-timetable {
  stroke-width: 1.7px;
}
