<?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_6161cb46-f4d3-476d-9a9d-653b4bc39899">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-22</startDate>
            <endDate>2026-05-22</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_6161cb46-f4d3-476d-9a9d-653b4bc39899"
      id="F_4d6ce15f-ee27-44e2-a412-bbe001b496fc">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_6161cb46-f4d3-476d-9a9d-653b4bc39899"
      id="F_62d76a6a-8f55-4f46-954c-b4466da15f2a">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6161cb46-f4d3-476d-9a9d-653b4bc39899"
      id="F_f64ccb45-abff-448a-a349-040244e0d743">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_6161cb46-f4d3-476d-9a9d-653b4bc39899"
      id="F_2f195611-7b7d-4591-b42a-85e663c3eaf6">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_6161cb46-f4d3-476d-9a9d-653b4bc39899"
      id="F_0536f373-1256-4ea1-b1de-23df8044916d">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_6161cb46-f4d3-476d-9a9d-653b4bc39899"
      id="F_5deb6694-385a-4236-98fa-84b405223447">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_6161cb46-f4d3-476d-9a9d-653b4bc39899"
      id="F_a3e62ad9-201f-4c3d-beb7-22cf75a5afd9">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_6161cb46-f4d3-476d-9a9d-653b4bc39899"
      id="F_52021114-1fff-4e1f-8258-fb88e1d1bd44">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_6161cb46-f4d3-476d-9a9d-653b4bc39899"
      id="F_0de68416-8c65-439f-a8ab-c73f24c73f6c">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_6161cb46-f4d3-476d-9a9d-653b4bc39899"
      id="F_912238da-50dc-4f0d-8c58-4b14228de3c1">&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,264,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_6161cb46-f4d3-476d-9a9d-653b4bc39899"
      decimals="0"
      id="F_79967a2c-1612-429b-8824-4a6e94dc3c01"
      unitRef="U_USD">2264000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
