<?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_b083abe4-140e-44e9-8d21-501b5555a4d5">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-28</startDate>
            <endDate>2026-07-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_b083abe4-140e-44e9-8d21-501b5555a4d5"
      id="F_e984f72f-86ad-46e0-b1db-52a301fd8f19">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_b083abe4-140e-44e9-8d21-501b5555a4d5"
      id="F_10e0b8fe-471d-4be5-a0b7-9c8a6d934ab7">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_b083abe4-140e-44e9-8d21-501b5555a4d5"
      id="F_a4a6ae11-a43b-462b-9be5-f5fbba6435a3">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_b083abe4-140e-44e9-8d21-501b5555a4d5"
      id="F_036d7cb2-8848-4998-b512-48e816b0784d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_b083abe4-140e-44e9-8d21-501b5555a4d5"
      id="F_77363973-97f9-4d5b-8c32-1b1301bdfe48">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_b083abe4-140e-44e9-8d21-501b5555a4d5"
      id="F_7b6d1c42-5b80-4d11-a188-4ea35f04963a">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_b083abe4-140e-44e9-8d21-501b5555a4d5"
      id="F_08a7f539-d6bf-46dc-a662-2bfe70c2da08">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b083abe4-140e-44e9-8d21-501b5555a4d5"
      id="F_2a9f2608-c286-44ec-966d-fe05a7338d51">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_b083abe4-140e-44e9-8d21-501b5555a4d5"
      id="F_f10685a8-d68e-41a7-a9e8-c12a9b4ffd15">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_b083abe4-140e-44e9-8d21-501b5555a4d5"
      id="F_1ff3c373-d714-4b8d-bf04-c326de2de88b">&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;9,579,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_b083abe4-140e-44e9-8d21-501b5555a4d5"
      decimals="-3"
      id="F_214d0e76-1d3e-40f5-a88c-905ac765464d"
      unitRef="U_USD">9579000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
