/* Teacher Portal · Living Gold local deploy-ready candidate · 2026-07-24 [Codex] */
.teacher-living-gold {
  --teacher-ink: #101310;
  --teacher-green: #173f35;
  --teacher-green-soft: #245548;
  --teacher-gold: #c4933b;
  --teacher-gold-deep: #8a5c1e;
  --teacher-gold-bright: #efd58d;
  --teacher-canvas: #f5f0e6;
  --teacher-surface: #fffdf8;
  --teacher-text: #17221d;
  --teacher-muted: #647168;
  --teacher-border: #ddd8ca;
  --teacher-shadow: 0 12px 34px rgba(23, 34, 29, .07);
  min-width: 0;
  overflow-x: clip;
  background:
    radial-gradient(circle at 88% 20%, rgba(196, 147, 59, .08), transparent 28rem),
    var(--teacher-canvas);
  color: var(--teacher-text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC",
    "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

.teacher-living-gold *,
.teacher-living-gold *::before,
.teacher-living-gold *::after {
  box-sizing: border-box;
}

.teacher-living-gold a {
  color: inherit;
  text-decoration: none;
}

.teacher-living-gold .top-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px clamp(16px, 4vw, 56px);
  border-bottom: 1px solid rgba(239, 213, 141, .16);
  background: rgba(16, 19, 16, .96);
  backdrop-filter: blur(12px);
}

.teacher-brand,
.teacher-living-gold .top-nav {
  display: inline-flex;
  min-width: 0;
  align-items: center;
}

.teacher-brand {
  min-height: 48px;
  gap: 11px;
}

.teacher-brand-mark {
  display: block;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
}

.teacher-brand-lockup {
  display: grid;
  min-width: 0;
  gap: 3px;
  line-height: 1.05;
}

.teacher-brand-lockup strong {
  color: #fffdf8;
  font-size: 16px;
  font-weight: 760;
  letter-spacing: .06em;
}

.teacher-brand-lockup small {
  overflow: hidden;
  color: var(--teacher-gold-bright);
  font-size: 10px;
  font-weight: 720;
  letter-spacing: .1em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teacher-living-gold .teacher-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid rgba(239, 213, 141, .36);
  border-radius: 999px;
  background: rgba(255, 253, 248, .06);
  color: #fffdf8;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.teacher-living-gold .teacher-link:hover {
  border-color: var(--teacher-gold-bright);
  background: rgba(239, 213, 141, .1);
  color: var(--teacher-gold-bright);
  transform: none;
}

.teacher-living-gold .teacher-entry {
  position: relative;
  min-height: 0;
  overflow: hidden;
  padding: clamp(42px, 7vw, 82px) clamp(16px, 4vw, 56px) 38px;
  background:
    radial-gradient(circle at 86% 12%, rgba(196, 147, 59, .19), transparent 25rem),
    linear-gradient(132deg, #101310 0%, #11271f 56%, #183a30 100%);
}

.teacher-living-gold .teacher-entry::after {
  position: absolute;
  right: clamp(18px, 7vw, 104px);
  top: clamp(24px, 6vw, 78px);
  width: clamp(130px, 18vw, 250px);
  height: clamp(130px, 18vw, 250px);
  border: 1px solid rgba(239, 213, 141, .12);
  border-left-color: transparent;
  border-radius: 50%;
  content: "";
  pointer-events: none;
  transform: rotate(-12deg);
}

.teacher-living-gold .hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(100%, 1180px);
  margin: 0 auto;
  align-items: flex-start;
  flex-direction: column;
  gap: 12px;
}

.teacher-eyebrow {
  color: var(--teacher-gold-bright);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: .16em;
}

.teacher-living-gold .hero-title {
  display: block;
  max-width: 760px;
  margin: 0;
  color: #fffdf8;
  font-family: inherit;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 720;
  letter-spacing: -.045em;
  line-height: 1.08;
}

.teacher-living-gold .hero-sub {
  max-width: 700px;
  margin: 2px 0 0;
  color: rgba(255, 253, 248, .72);
  font-size: 16px;
  line-height: 1.7;
  opacity: 1;
  transform: none;
  animation: none;
}

.teacher-quick-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.teacher-quick-action {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 142px;
  align-content: space-between;
  gap: 12px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(239, 213, 141, .2);
  border-radius: 16px;
  background: rgba(255, 253, 248, .075);
  color: #fffdf8;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.teacher-quick-action.primary {
  border-color: rgba(239, 213, 141, .7);
  background: linear-gradient(145deg, rgba(196, 147, 59, .34), rgba(138, 92, 30, .18));
}

.teacher-quick-action:hover {
  border-color: var(--teacher-gold-bright);
  background: rgba(255, 253, 248, .11);
  transform: translateY(-2px);
}

.teacher-action-index {
  color: var(--teacher-gold-bright);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: .12em;
}

.teacher-quick-action strong,
.teacher-quick-action small {
  display: block;
}

.teacher-quick-action strong {
  color: #fffdf8;
  font-size: 16px;
  font-weight: 720;
}

.teacher-quick-action small {
  margin-top: 5px;
  color: rgba(255, 253, 248, .62);
  font-size: 12px;
  line-height: 1.45;
}

.teacher-quick-action b {
  position: absolute;
  right: 16px;
  top: 15px;
  color: var(--teacher-gold-bright);
  font-size: 18px;
}

.teacher-living-gold .teacher-tools {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px clamp(16px, 4vw, 56px) 72px;
}

.teacher-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 20px;
}

.teacher-section-heading h2 {
  margin: 4px 0 0;
  color: var(--teacher-text);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 720;
  letter-spacing: -.035em;
  line-height: 1.16;
}

.teacher-section-heading p {
  max-width: 430px;
  margin: 0;
  color: var(--teacher-muted);
  font-size: 14px;
  line-height: 1.65;
}

.teacher-section-kicker {
  color: var(--teacher-gold-deep);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: .14em;
}

.teacher-living-gold .teacher-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.teacher-living-gold .tool-card {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 214px;
  align-content: start;
  gap: 13px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(23, 63, 53, .12);
  border-radius: 16px;
  background: rgba(255, 253, 248, .9);
  box-shadow: var(--teacher-shadow);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.teacher-living-gold .tool-card::before {
  display: none;
}

.teacher-living-gold .tool-card::after {
  position: absolute;
  right: 18px;
  top: 18px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px;
  background: rgba(23, 63, 53, .08);
  color: var(--teacher-green);
  content: attr(data-icon);
  font-size: 14px;
  font-weight: 760;
}

.teacher-living-gold .tool-card:hover {
  border-color: rgba(23, 63, 53, .38);
  box-shadow: 0 16px 38px rgba(23, 34, 29, .1);
  transform: translateY(-2px);
}

.teacher-living-gold .tool-tag {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  padding: 3px 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(196, 147, 59, .12);
  color: var(--teacher-gold-deep);
  font-size: 12px;
  font-weight: 700;
}

.teacher-living-gold .tool-card h2 {
  margin: 5px 48px 0 0;
  color: var(--teacher-text);
  font-size: 20px;
  font-weight: 720;
  letter-spacing: -.02em;
  line-height: 1.25;
}

.teacher-living-gold .tool-card p {
  margin: 0;
  padding-right: 18px;
  color: var(--teacher-muted);
  font-size: 14px;
  line-height: 1.65;
}

.teacher-living-gold .path-text {
  align-self: end;
  margin-top: auto;
  padding-right: 28px;
  color: #768178;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.teacher-living-gold .card-cta {
  right: 20px;
  bottom: 20px;
  color: var(--teacher-green);
}

.teacher-living-gold .site-footer {
  display: flex;
  max-width: 1180px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(16px, 4vw, 56px);
  border-top: 1px solid rgba(23, 63, 53, .1);
  color: var(--teacher-muted);
  font-size: 12px;
}

.teacher-living-gold .footer-signature {
  color: var(--teacher-gold-deep);
  font-weight: 720;
}

.teacher-living-gold #icp-footer a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 4px;
}

.teacher-living-gold a:focus-visible {
  outline: 3px solid var(--teacher-gold-bright);
  outline-offset: 3px;
  box-shadow: 0 0 0 2px var(--teacher-ink);
}

@media (max-width: 1020px) {
  .teacher-quick-grid,
  .teacher-living-gold .teacher-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .teacher-living-gold .top-bar {
    min-height: 68px;
    padding: 8px 12px;
  }

  .teacher-brand {
    gap: 8px;
  }

  .teacher-brand-mark {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .teacher-brand-lockup strong {
    font-size: 14px;
  }

  .teacher-brand-lockup small {
    font-size: 9px;
  }

  .teacher-living-gold .teacher-link {
    padding: 0 11px;
    font-size: 12px;
  }

  .teacher-living-gold .teacher-entry {
    padding: 34px 12px 24px;
  }

  .teacher-living-gold .teacher-entry::after {
    opacity: .55;
    right: -50px;
    top: 20px;
  }

  .teacher-living-gold .hero-title {
    font-size: 38px;
    line-height: 1.14;
  }

  .teacher-living-gold .hero-sub {
    font-size: 14px;
  }

  .teacher-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 16px;
  }

  .teacher-quick-action {
    min-height: 120px;
    padding: 14px;
  }

  .teacher-quick-action strong {
    font-size: 14px;
  }

  .teacher-quick-action small {
    font-size: 11px;
  }

  .teacher-living-gold .teacher-tools {
    padding: 26px 10px 54px;
  }

  .teacher-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 0 4px;
  }

  .teacher-living-gold .teacher-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .teacher-living-gold .tool-card {
    min-height: 184px;
  }

  .teacher-living-gold .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px 14px;
  }
}

@media (max-width: 370px) {
  .teacher-brand-lockup small {
    display: none;
  }

  .teacher-quick-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .teacher-quick-action {
    min-height: 104px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .teacher-living-gold *,
  .teacher-living-gold *::before,
  .teacher-living-gold *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .teacher-quick-action:hover,
  .teacher-living-gold .tool-card:hover {
    transform: none;
  }
}
