<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  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/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_80eedacc-53d8-4589-9fd6-9a6b875670e8">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-29</startDate>
            <endDate>2026-06-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_80eedacc-53d8-4589-9fd6-9a6b875670e8"
      id="F_d216dfe1-2590-49fe-af87-b94557ad78c9">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_80eedacc-53d8-4589-9fd6-9a6b875670e8"
      id="F_b5368c4a-5081-43e0-8b56-26e0d034ce73">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_80eedacc-53d8-4589-9fd6-9a6b875670e8"
      id="F_5c46be05-be04-42bb-9678-2fd38e94963d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_80eedacc-53d8-4589-9fd6-9a6b875670e8"
      id="F_48b8d393-4c56-46b5-a433-308f01aa2604">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_80eedacc-53d8-4589-9fd6-9a6b875670e8"
      id="F_c76a02d5-0d0e-4a4f-a9b0-5f09ccca53ab">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_80eedacc-53d8-4589-9fd6-9a6b875670e8"
      id="F_e3bf5c5c-109f-42fa-8bcd-40b7a3e1d053">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_80eedacc-53d8-4589-9fd6-9a6b875670e8"
      id="F_98b1bd01-b901-4a3d-96f0-383d9b6e1eaf">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_80eedacc-53d8-4589-9fd6-9a6b875670e8"
      id="F_2f729699-9591-4299-8b87-e45cc800165c">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_80eedacc-53d8-4589-9fd6-9a6b875670e8"
      id="F_56804ac7-0c65-4024-b18d-4c26567e8713">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_80eedacc-53d8-4589-9fd6-9a6b875670e8"
      id="F_0fda4df7-cade-42b2-9899-467208c824c4">&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;5,217,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_80eedacc-53d8-4589-9fd6-9a6b875670e8"
      decimals="-3"
      id="F_f71a8ec2-29fa-4ead-a376-9faa0b86f00f"
      unitRef="U_USD">5217000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
