/*
 * dwf-rep-profile-shape.css
 *
 * Structural "shape" rules only: layout, spacing, grid. No font-family,
 * no font-size, no color-as-brand-identity choices that belong to the theme.
 * This is the fresh-start principle in practice: the plugin defines the
 * skeleton, the theme decides how it reads. Adapted from the approved
 * Representative-Profile-With-Voting-And-GTG-HTML-Final.html reference,
 * with every typography rule stripped out.
 */

/* 2026-08-06: the max-width: 75rem rule that used to be here is removed,
   not edited -- confirmed dead by searching every PHP file in this plugin
   for the exact class "dwf-rep-profile" (not the __stats/__hero/etc. BEM
   variants below, which are real and still used): it never matched
   anything in the actual rendered HTML. The real width control for these
   pages lives one level up, in .dwf-plugin-template-content
   (assets/css/dwf-civic-toolkit.css) -- see that file's comment for the
   current, real width value and reasoning. */

.dwf-rep-profile__hero { margin-bottom: 1.5em; }

.dwf-rep-profile__snapshot {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5em 1.5em;
}

.dwf-rep-profile__label { display: block; margin-bottom: 0.25em; }

.dwf-rep-profile__lede { max-width: 60em; margin-bottom: 1.5em; }

.dwf-rep-profile__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid;
    margin-bottom: 1.5em;
}

.dwf-rep-profile__stats-card {
    padding: 1em 1.25em 0.9em;
    border-left: 1px solid;
}

.dwf-rep-profile__stats-card:first-child { border-left: 0; }

.dwf-rep-profile__stats-label,
.dwf-rep-profile__stats-note { display: block; }

.dwf-rep-profile__stats-label { margin-bottom: 0.5em; }

.dwf-rep-profile__stats-value { display: block; }

.dwf-rep-profile__stats-note { margin-top: 0.5em; }

@media (max-width: 700px) {
    .dwf-rep-profile__stats { grid-template-columns: 1fr 1fr; }
    .dwf-rep-profile__stats-card:nth-child(odd) { border-left: 0; }
    .dwf-rep-profile__stats-card:nth-child(-n+2) { border-bottom: 1px solid; }
}

@media (max-width: 460px) {
    .dwf-rep-profile__stats { grid-template-columns: 1fr; }
    .dwf-rep-profile__stats-card { border-left: 0; border-bottom: 1px solid; }
    .dwf-rep-profile__stats-card:last-child { border-bottom: 0; }
}

.dwf-rep-profile__two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5em;
    margin-bottom: 2em;
}

@media (max-width: 700px) {
    .dwf-rep-profile__two-col { grid-template-columns: 1fr; }
}

.dwf-rep-profile__facts dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5em 1em;
    margin: 0;
}
/* 2026-07-22: dt/dd never had their own margin reset, so the browser's
   default UA-stylesheet margins on these elements were stacking on top
   of the grid's own intentional gap above -- double spacing. Resetting
   margin to 0 here makes the grid gap the single, consistent source of
   spacing across every theme/browser, rather than depending on
   inconsistent browser defaults. */
.dwf-rep-profile__facts dt,
.dwf-rep-profile__facts dd {
    margin: 0;
}

.dwf-rep-profile__office { margin-bottom: 1em; }

.dwf-rep-profile__work-mount { margin: 2em 0; }

/* 2026-07-22: .dwf-rep-profile__work-tabs (nav+button),
   .dwf-rep-profile__work-panel[hidden], and .dwf-rep-profile__work-list
   all removed -- dead CSS. render_congressional_work_tab() now uses the
   shared radio-input tab system and the shared richer work-panel renderer
   (DWF_Civic_Toolkit::render_profile_work_panel()), both already styled
   in dwf-civic-toolkit.css and used by the [congress_member] shortcode
   too, instead of maintaining separate plainer copies here. */

.dwf-rep-profile__learn-more { margin-top: 2em; }

.dwf-rep-profile__resource-box { margin-bottom: 1.5em; }

.dwf-rep-profile__resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5em 1.5em;
}

.dwf-rep-profile__resource-grid a { display: block; padding: 0.5em 0; text-decoration: none; }
.dwf-rep-profile__resource-grid a:hover { text-decoration: underline; }
/* WRM feedback 10/30/26 (Grok 55415): profile polish */
.dwf-rep-profile__snapshot {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75em 2em;
  max-width: 48rem;
}
.dwf-rep-profile__two-col .dwf-rep-profile__panel-title,
.dwf-rep-profile__facts-title,
.dwf-rep-profile__contact-title,
.dwf-panel-title,
.dwf-rep-profile h2.dwf-section-title {
  /* beige headers when theme provides; fallback soft */
  background: var(--soft, #f4f1ec);
  color: var(--ink, #171717);
}
/* Prefer definition lists / rows over bullets in facts panels */
.dwf-rep-profile__facts ul,
.dwf-rep-profile__contact ul,
.dwf-rep-profile__two-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dwf-rep-profile__facts li,
.dwf-rep-profile__contact li,
.dwf-rep-profile__two-col li {
  list-style: none;
}
/* Learn More links: consistent link color */
.dwf-rep-profile a,
.dwf-rep-profile__resources a,
.dwf-media-item a {
  color: var(--dwf-red, #9C2140);
}
.dwf-rep-profile a:hover,
.dwf-rep-profile__resources a:hover {
  color: var(--ink, #171717);
}
/* Congressional Work: no heavy dividing lines before tabs fill in */
.dwf-rep-profile__work-mount,
.dwf-rep-profile__work,
.dwf-work-list,
.dwf-work-item {
  border-bottom: 0;
}
.dwf-work-item + .dwf-work-item {
  border-top: 1px solid var(--rule, #ded8cf);
}

/* Ported from WRM 3.4.15 */
Feedback pass 2026-11-01 — profile panels + Learn More */
.dwf-rep-profile .dwf-boxed-panel-head,
.dwf-rep-profile .dwf-boxed-panel.house .dwf-boxed-panel-head,
.dwf-rep-profile .dwf-boxed-panel.senate .dwf-boxed-panel-head {
  background: #f5f2ec !important;
  color: #171717 !important;
}
.dwf-rep-profile .dwf-boxed-panel-head h2,
.dwf-rep-profile .dwf-boxed-panel-head h3 {
  color: #171717 !important;
}
.dwf-rep-profile .dwf-leadership-role,
.dwf-rep-profile .dwf-fact-list li {
  border: 0 !important;
  border-bottom: 0 !important;
  list-style: none !important;
}
.dwf-rep-profile .dwf-leadership-role .num,
.dwf-rep-profile .dwf-fact-list .num {
  display: none !important;
}
.dwf-fact-row {
  display: block;
  margin: 0.75rem 0 0;
}
.dwf-fact-row div {
  display: inline-block;
  vertical-align: top;
  margin: 0 1.25rem 0.5rem 0;
  min-width: 6rem;
}
.dwf-rep-profile a {
  color: #9C2140;
  font-weight: 600;
  text-decoration: none;
}
.dwf-rep-profile a:hover {
  color: #171717;
  text-decoration: underline;
}
.dwf-rep-profile .dwf-work-item,
.dwf-rep-profile .dwf-work-list,
.dwf-rep-profile .dwf-media-item {
  border-bottom: 0 !important;
}
.dwf-rep-profile h2 {
  border: 0;
  border-bottom: 0;
  padding-bottom: 0;
}

/* =========================================================================
 * Priority 1 — rep profile feedback (repprofilefeedback.png) Grok 890 2026-11-01
 * - Wider meta fact row under the name
 * - Beige panel headers; no bullet dots on Quick Facts
 * - Consistent Learn More link color
 * - No dividing lines under Congressional Work list items (tabs come later)
 * ========================================================================= */
.dwf-page--rep-profile .dwf-fact-row,
.dwf-family-page.dwf-page--rep-profile .dwf-fact-row {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  width: 100%;
  max-width: none;
  margin: 0.85rem 0 0;
}
.dwf-page--rep-profile .dwf-fact-row > div {
  display: flex;
  flex-direction: column;
  min-width: 6.5rem;
  flex: 1 1 auto;
}
.dwf-page--rep-profile .dwf-fact-row b {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  color: #9C2140;
  margin-bottom: 0.2rem;
}
.dwf-page--rep-profile .dwf-fact-row span {
  font-weight: 700;
  color: #171717;
}

/* Quick Facts / Contact: beige headers, no bullets */
.dwf-page--rep-profile .dwf-boxed-panel-head {
  background: #f5f2ec !important;
  border-bottom: 1px solid #ded8cf;
}
.dwf-page--rep-profile .dwf-boxed-panel-head h2,
.dwf-page--rep-profile .dwf-boxed-panel-head h3 {
  color: #171717 !important;
  margin: 0;
}
.dwf-page--rep-profile .dwf-boxed-panel-body ul,
.dwf-page--rep-profile .dwf-fact-list,
.dwf-page--rep-profile .dwf-boxed-panel-body li {
  list-style: none !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
}
.dwf-page--rep-profile .dwf-boxed-panel-body li::before,
.dwf-page--rep-profile .dwf-fact-list li::marker {
  content: none !important;
}

/* Learn More links — one accent color */
.dwf-page--rep-profile a {
  color: #9C2140;
}
.dwf-page--rep-profile a:hover {
  color: #171717;
}
.dwf-page--rep-profile h2 {
  color: #171717;
}

/* Congressional Work: drop horizontal rules until real tabs land */
.dwf-page--rep-profile .dwf-work-list,
.dwf-page--rep-profile .dwf-work-item,
.dwf-page--rep-profile .dwf-member-profile__work-panel,
.dwf-page--rep-profile .dwf-member-profile__resource-list--work a,
.dwf-page--rep-profile .dwf-member-profile__resource-list--work span,
.dwf-page--rep-profile .dwf-member-profile__resource-list a {
  border-bottom: 0 !important;
  border-top: 0 !important;
  box-shadow: none !important;
}
.dwf-page--rep-profile .dwf-member-profile__resource-list--work a,
.dwf-page--rep-profile .dwf-member-profile__resource-list a {
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

