<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_2930f454-925d-4a83-8319-4fb47b003026">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-01</startDate>
            <endDate>2026-05-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_2930f454-925d-4a83-8319-4fb47b003026"
      id="F_a7f22266-4af5-4fce-8ee9-22d69ba36df4">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_2930f454-925d-4a83-8319-4fb47b003026"
      id="F_14dcfff2-e56b-4263-b278-9775fe7de575">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_2930f454-925d-4a83-8319-4fb47b003026"
      id="F_d7ff4559-61c1-4be9-ae33-8ec14b081a03">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_2930f454-925d-4a83-8319-4fb47b003026"
      id="F_85c84925-41fd-414f-8a14-de61e07ee8ee">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_2930f454-925d-4a83-8319-4fb47b003026"
      id="F_636d5f43-cb7d-43b0-a012-def1db65a781">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_2930f454-925d-4a83-8319-4fb47b003026"
      id="F_77cb36ad-4ca7-4a83-b18a-f3fc0f3ac695">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_2930f454-925d-4a83-8319-4fb47b003026"
      id="F_2a8557a1-f3c7-4ea6-b94b-252281323542">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_2930f454-925d-4a83-8319-4fb47b003026"
      id="F_292d23e0-854d-4bca-912c-9cc941d92ce2">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_2930f454-925d-4a83-8319-4fb47b003026"
      id="F_7e382ed1-8303-4d00-92a3-c58741fcb0eb">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_2930f454-925d-4a83-8319-4fb47b003026"
      id="F_e422291b-1d7f-4bf6-a030-d748333861a6">&lt;p style="font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:12pt;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;The prospectus to which this Exhibit is attached is a final prospectus for the related offering.  The maximum aggregate offering price for such offering is $&lt;/span&gt;&lt;span style="font-size:12pt;font-family:Times New Roman;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;2,702,000&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;.&lt;/span&gt;&lt;/p&gt;</ffd:NrrtvDsclsr>
    <ffd:NrrtvMaxAggtOfferingPric
      contextRef="C_2930f454-925d-4a83-8319-4fb47b003026"
      decimals="0"
      id="F_f1430e0d-4c40-4ab2-92fe-244279361d82"
      unitRef="U_USD">2702000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
