<?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_8c876aa8-e9c4-4756-896e-a49526165d49">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-03</startDate>
            <endDate>2026-03-03</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_8c876aa8-e9c4-4756-896e-a49526165d49"
      id="F_00426b3e-b653-4e69-b8cc-3f1f0d6c665d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_8c876aa8-e9c4-4756-896e-a49526165d49"
      id="F_610e645b-ae1c-47c3-b44d-0d96171ceb1d">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8c876aa8-e9c4-4756-896e-a49526165d49"
      id="F_57cdcb22-f789-4029-9e67-d4fbb1b2c5d1">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_8c876aa8-e9c4-4756-896e-a49526165d49"
      id="F_af8a1628-ce33-44db-a1c6-ec2cda224b9c">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_8c876aa8-e9c4-4756-896e-a49526165d49"
      id="F_6c914f06-9a33-4de5-93bd-f143c0d70cf7">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_8c876aa8-e9c4-4756-896e-a49526165d49"
      id="F_f4192604-c5ef-48ac-81b1-a6bec7efb930">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_8c876aa8-e9c4-4756-896e-a49526165d49"
      id="F_351573f8-70fc-43fd-a853-36b80360ed58">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_8c876aa8-e9c4-4756-896e-a49526165d49"
      id="F_55fe6900-5159-4148-8b65-694e8ecedef0">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_8c876aa8-e9c4-4756-896e-a49526165d49"
      id="F_ca4a1ff0-8b64-4a83-9934-bde38503fd62">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_8c876aa8-e9c4-4756-896e-a49526165d49"
      id="F_f1c842ee-7d9b-4986-9b8e-4ed67eb86282">&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;394,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_8c876aa8-e9c4-4756-896e-a49526165d49"
      decimals="0"
      id="F_eb986177-bf77-4898-9e40-21ea2d657ae4"
      unitRef="U_USD">394000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
