/* =========================================================
   MAIN CONTENT
   ========================================================= */

.main-column > .panel {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

/* ===== DECLARATION HERO ===== */

.declaration-hero {
  display: flex;
  flex-direction: column;
  gap: 9px;
  position: relative;
  min-height: 400px;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.declaration-hero::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background-image: url("../images/mtp_logo.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.12;
  z-index: 0;
  pointer-events: none;
}

.declaration-content {
  display: flex;
  flex-direction: column;
  gap: 9px;
  position: relative;
  z-index: 1;
  align-items: center;
  text-align: center;
}

.declaration-kicker {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 4px;
}

.declaration-kicker .ja {
  font-family: var(--font-ja-serif);
  font-size: 3.2rem;
  font-weight: 900;
  letter-spacing: -0.07em;
  color: var(--orange);
  text-shadow: var(--glow-orange);
  line-height: 1.2;
}

.declaration-kicker .en {
  font-size: 2.8rem;
  color: var(--text-muted);
  margin-top: 2px;
  text-transform: uppercase;
  font-family: var(--font-en);
  letter-spacing: -0.05em;
  line-height: 1.2;
  display: block;
  text-align: center;
  transform: none;
  opacity: 1;
}

.declaration-principles {
  display: flex;
  flex-direction: column;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 8px 0;
}

.declaration-principles li {
  display: flex;
  gap: 8px;
  padding: 6px 8px;
  border-left: 1px solid var(--green-dim);
  background: rgba(42, 167, 101, 0.06);
}

.declaration-principles li a {
  display: flex;
  gap: 8px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  width: 100%;
}

.declaration-principles li a:hover {
  opacity: 0.8;
}

.principle-number {
  font-size: 0.55rem;
  letter-spacing: 0.06em;
  color: var(--green);
  font-weight: 700;
  flex: 0 0 auto;
  opacity: 0.7;
}

.declaration-principles li .ja {
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--green);
  flex: 0 0 auto;
}

.declaration-principles li .en {
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  flex: 0 0 auto;
  margin-left: 8px;
}

/* ===== INFRASTRUCTURE STATUS ===== */

.infrastructure-status {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.status-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.status-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
}

.status-title .ja {
  font-family: var(--font-ja-serif);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -0.045em;
  color: var(--text);
}

.status-title .en {
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.status-timestamp {
  font-family: ui-monospace, monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.tech-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.status-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.15);
}

.status-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.status-label .ja {
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--green);
}

.status-label .en {
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
  font-family: var(--font-en);
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
}

.indicator-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: var(--glow-green);
}

.status-indicator.healthy .indicator-dot {
  background: var(--green);
  box-shadow: var(--glow-green);
}

.status-indicator.normal .indicator-dot {
  background: var(--orange);
  box-shadow: var(--glow-orange);
}

.status-indicator .ja {
  color: var(--green);
  font-weight: 700;
}

.status-indicator .en {
  font-size: 0.6rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.status-value {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 4px;
  border-top: 1px solid rgba(91, 255, 169, 0.2);
}

.value-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: -0.01em;
}

.value-number {
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
  font-weight: 900;
  color: var(--green-bright);
  text-shadow: var(--glow-green);
}

/* ===== OLD HERO ===== */

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.hero-title .ja {
  font-family: var(--font-ja-serif);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1.2;
}

.hero-title .en {
  font-size: 0.75rem;
  margin-top: 4px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-en);
}

.hero-description {
  font-size: 0.9rem;
  line-height: 1.55;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  border: 1px solid var(--line);
  background: linear-gradient(
    135deg,
    rgba(42, 167, 101, 0.1) 0%,
    transparent 100%
  );
  border-radius: 2px;
  overflow: hidden;
}

.hero-visual svg {
  width: 100%;
  height: 100%;
  max-width: 280px;
  max-height: 200px;
}

/* ===== NEWS SECTION ===== */

.news-panel {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.news-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.news-heading-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.news-heading-main .ja {
  font-family: var(--font-ja-serif);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -0.045em;
}

.news-heading-main .en {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-en);
}

.news-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.news-tabs a {
  padding: 4px 8px;
  border: 1px solid var(--line);
  font-size: 0.75rem;
  transition: all 0.2s ease;
}

.news-tabs a:hover {
  border-color: var(--green);
  background: rgba(12, 38, 23, 0.3);
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.news-item {
  display: grid;
  grid-template-columns: 100px 1fr 180px;
  gap: 12px;
  align-items: stretch;
  padding: 10px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
  cursor: pointer;
}

.news-item:hover {
  border-color: var(--green);
  background: rgba(12, 38, 23, 0.3);
  color: var(--green-bright);
  text-shadow: var(--glow-green);
}

.news-date {
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.news-content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
}

.news-title {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
  white-space: normal;
  flex-shrink: 0;
  min-width: 0;
}

.news-summary {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: normal;
  min-width: 0;
  max-height: 2.4em;
  transition: max-height 0.3s ease, overflow 0.3s ease;
}

.news-item:hover .news-summary {
  max-height: 6em;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
}

.news-item:hover .news-summary::-webkit-scrollbar {
  width: 4px;
}

.news-item:hover .news-summary::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 2px;
}

.news-item:hover .news-summary::-webkit-scrollbar-thumb {
  background: var(--green-dim);
  border-radius: 2px;
}

.news-item:hover .news-summary::-webkit-scrollbar-thumb:hover {
  background: var(--green);
}

.news-tag {
  display: inline-block;
  padding: 3px 6px;
  font-size: 0.65rem;
  font-weight: 900;
  border: 1px solid var(--green-dim);
  background: rgba(42, 167, 101, 0.15);
  white-space: nowrap;
  border-radius: 2px;
}

.news-tag.alert {
  border-color: var(--orange);
  background: rgba(253, 122, 45, 0.15);
  color: var(--orange-bright);
}



/* ===== ACTION BUTTON ===== */

.action-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  background: transparent;
  color: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  align-self: flex-start;
  margin-top: 12px;
}

.action-button:hover {
  background: rgba(114, 255, 178, 0.08);
  border-color: var(--line-strong);
  color: var(--green-bright);
  text-shadow: var(--glow-green);
}
