/* HN風ミニマル（参照: _.standalone.html VariantC） — #1f3a3d / #fafaf7 */

:root {
  color-scheme: light;
  --hn-bg: #fafaf7;
  --hn-fg: #222;
  --hn-header: #1f3a3d;
  --hn-header-border: #b8c4ad;
  --hn-accent: #1f3a3d;
  --hn-muted: #888;
  --hn-line: #d8d8d0;
  --hn-side-line: #e5e5dc;
  --hn-down: #b91c1c;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body.hn-root {
  font-family: "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 13px;
  color: var(--hn-fg);
  background: var(--hn-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

code {
  font-size: 0.92em;
}

/* ----- header ----- */

.hn-header {
  background: var(--hn-header);
  color: #e8efe7;
  border-bottom: 2px solid var(--hn-header-border);
}

.hn-header-inner {
  display: flex;
  align-items: center;
  padding: 10px 36px;
  max-width: 1180px;
  margin: 0 auto;
}

.hn-header-tools {
  margin-left: auto;
  font-weight: 400;
  font-size: 12px;
}

.hn-header-tools a {
  color: inherit;
}

.hn-brand {
  margin: 0;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  line-height: 1.25;
  color: #fff;
}

.hn-brand a {
  color: inherit;
  text-decoration: none;
}

.hn-brand a:hover {
  color: #fff;
  text-decoration: none;
}

/* ----- main grid ----- */

.hn-main {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 36px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 36px 40px;
  align-items: start;
}

.hn-list-wrap {
  min-width: 0;
}

/* ----- list column ----- */

.hn-subbar {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hn-line);
  margin-bottom: 6px;
}

.hn-subbar-title {
  font-size: 14px;
  font-weight: 700;
}

.hn-subbar-muted {
  color: var(--hn-muted);
  font-weight: 400;
  font-size: 12px;
}

.hn-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hn-row {
  padding: 8px 0;
}

.hn-row-body {
  min-width: 0;
}

.hn-row-line1 {
  overflow: hidden;
}

.hn-title {
  display: block;
  color: #1a1a1a;
  font-size: 13.5px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hn-title:hover {
  text-decoration: underline;
}

.hn-row-line2 {
  margin-top: 3px;
  font-size: 11px;
  color: var(--hn-muted);
}

.hn-source {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: min(100%, 28rem);
  color: #666;
}

.hn-row-line3 {
  margin-top: 2px;
  font-size: 11px;
  color: var(--hn-muted);
}

.hn-time {
  font-variant-numeric: tabular-nums;
}

.hn-empty {
  padding: 24px 0;
  color: var(--hn-muted);
  font-size: 13px;
}

/* ----- collect notice ----- */

.hn-notice {
  border: 1px solid #b7e4c7;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 16px;
  background: #effaf3;
  color: #1b5e20;
  font-size: 13px;
}

.hn-feed-results {
  margin-bottom: 20px;
}

.hn-feed-results-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--hn-accent);
}

.hn-feed-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.hn-feed-table th,
.hn-feed-table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--hn-side-line);
  vertical-align: top;
}

.hn-feed-table th {
  color: var(--hn-muted);
  font-weight: 700;
}

.hn-feed-name {
  display: block;
  font-weight: 600;
  color: var(--hn-fg);
}

.hn-feed-link {
  font-size: 11px;
  color: var(--hn-accent);
}

.hn-feed-row-error td {
  background: #fff8f5;
}

.hn-feed-err {
  color: var(--hn-down);
  font-size: 11px;
}

.hn-muted {
  color: var(--hn-muted);
}

/* ----- sidebar ----- */

.hn-side {
  padding-top: 6px;
}

.hn-side-block {
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hn-side-line);
}

.hn-side-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--hn-accent);
  text-transform: uppercase;
  margin: 0 0 10px;
}

.hn-site-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hn-site-name {
  display: block;
  font-size: 12px;
  color: var(--hn-fg);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.hn-site-name:hover {
  color: var(--hn-accent);
}

.hn-site-all {
  font-size: 11.5px;
  color: var(--hn-accent);
  font-weight: 600;
  margin-top: 8px;
}

.hn-about-text {
  font-size: 12px;
  line-height: 1.6;
  color: #555;
  margin: 0;
}

/* ----- footer ----- */

.hn-footer {
  margin-top: auto;
  border-top: 1px solid var(--hn-line);
  background: var(--hn-bg);
}

.hn-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 36px 20px;
  font-size: 12px;
  color: var(--hn-muted);
}

.hn-footer-link {
  color: var(--hn-accent);
}

.hn-footer-link:hover {
  text-decoration: underline;
}

.hn-more-wrap {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--hn-line);
}

.hn-more {
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--hn-accent);
  background: transparent;
  border: 1px solid var(--hn-line);
  border-radius: 4px;
  padding: 6px 14px;
  cursor: pointer;
}

.hn-more:hover {
  border-color: var(--hn-accent);
  text-decoration: none;
}

.hn-more-note {
  font-size: 11.5px;
  color: var(--hn-muted);
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .hn-main {
    grid-template-columns: 1fr;
    padding: 16px 16px 32px;
  }

  .hn-header-inner {
    padding: 10px 16px;
  }

  .hn-footer-inner {
    padding: 12px 16px 18px;
  }
}
