/* Country profiles. Shared styles only. Shared TAXpedia palette and typography come from styleIndex.css. */
.dash-page {
  width: min(100% - 2.5rem, 1040px);
  margin: 0 auto;
  padding: 2rem 0 4rem;
  flex: 1 0 auto;
}
.dash-page h1, .dash-page h2, .dash-page h3 { color: var(--brand); }
.dash-menu-heading { margin: 0 0 1.8rem; text-align: center; }
.dash-menu-heading p { color: var(--muted); margin: .65rem 0 1rem; }
.dash-country-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.dash-nation-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
  text-decoration: none;
}
.dash-nation-flag { display: block; width: 100%; height: 180px; object-fit: contain; background: #f5f5f2; }
.dash-nation-card h2 { margin: 0; padding: .9rem 1rem; font-size: 1.2rem; }
.dash-nation-card:hover { border-color: var(--brand); background: #f5f7fc; }
.dash-nation-card:active { background: #eef2f8; }
.dash-page a:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
.dash-back { margin-bottom: 1.5rem; }
.dash-country-heading { margin-bottom: 1.75rem; }
.dash-eyebrow { margin: 0 0 .45rem; color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.dash-country-heading h1 { font-size: clamp(2.6rem, 7vw, 4.75rem); line-height: 1.1; overflow-wrap: anywhere; }
.dash-intro { max-width: 620px; margin: .85rem 0 0; color: var(--muted); }
.dash-summary {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.35rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(0, 0, 0, .06);
}
.dash-flag-wrap { display: grid; place-items: center; min-height: 280px; padding: 2rem; border-radius: 18px; background: #f5f5f2; }
.dash-profile-flag { display: block; max-width: 100%; width: 360px; height: 220px; object-fit: contain; }
.dash-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.dash-fact { min-width: 0; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.dash-fact:nth-child(odd) { padding-right: 1rem; }
.dash-fact:nth-child(even) { padding-left: 1rem; border-left: 1px solid var(--line); }
.dash-fact dt { margin-bottom: .35rem; color: var(--muted); font-size: .75rem; font-weight: 600; letter-spacing: .035em; text-transform: uppercase; }
.dash-fact dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.dash-fact .dash-period { margin-top: .25rem; color: var(--muted); font-size: .75rem; font-weight: 400; }
.dash-methodology { margin-top: 1rem; color: var(--muted); font-size: .85rem; }
.dash-methodology summary { cursor: pointer; color: var(--brand); font-weight: 700; }
.dash-methodology p { margin-top: .75rem; }
.dash-methodology li { margin-bottom: .75rem; }
.dash-methodology a, .dash-tax a { color: var(--brand); }
.dash-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.35rem; }
.dash-actions .dash-button { min-height: 76px; text-align: center; }
.dash-tax { margin-top: 3.75rem; padding: clamp(1.35rem, 4vw, 2.4rem); border-radius: 22px; background: var(--accent); }
.dash-tax-type { margin: .85rem 0; font-weight: 800; }
.dash-tax-source { margin-bottom: 0; font-size: .82rem; }
.dash-articles { margin-top: 3.75rem; }
.dash-article-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.dash-article-card { display: flex; flex-direction: column; gap: .7rem; padding: 1.15rem; border: 1px solid var(--line); border-radius: 18px; background: #fafafa; }
.dash-article-card p { margin: 0; color: var(--muted); font-size: .91rem; }
.dash-article-card h3 { margin: 0; font-size: 1.06rem; line-height: 1.4; }
.dash-article-card a { color: var(--brand); }
.dash-article-card h3 a { text-decoration: none; }
.dash-article-card h3 a:hover { text-decoration: underline; }
.dash-article-card .dash-article-date { font-size: .82rem; }
.dash-article-link { align-self: flex-start; margin-top: auto; }
.dash-empty { padding: 1rem 1.2rem; border-radius: 14px; background: #f7f7f7; color: var(--muted); }
@media (max-width: 900px) { .dash-country-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .dash-summary, .dash-actions { grid-template-columns: 1fr; }
  .dash-flag-wrap { min-height: auto; padding: 1rem; }
}
@media (max-width: 600px) { .dash-country-grid, .dash-article-grid { grid-template-columns: 1fr; } }
@media (max-width: 460px) {
  .dash-facts { grid-template-columns: 1fr; }
  .dash-fact:nth-child(odd), .dash-fact:nth-child(even) { padding: 1rem 0; border-left: 0; }
  .dash-country-heading h1 { font-size: clamp(2rem, 10vw, 2.8rem); }
}

.dash-article-thumb { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }
.dash-all-articles { display: inline-block; margin-top: 1.2rem; }
