<?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_7dead523-1e3a-4884-b1a0-d03bbaaafbf9">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-22</startDate>
            <endDate>2026-09-22</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_7dead523-1e3a-4884-b1a0-d03bbaaafbf9"
      id="F_384f4652-08ba-4a4f-986b-ad444dce4236">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_7dead523-1e3a-4884-b1a0-d03bbaaafbf9"
      id="F_22cd242c-3ccb-4b48-83e3-798b01568d89">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_7dead523-1e3a-4884-b1a0-d03bbaaafbf9"
      id="F_17cf5845-6082-4c2c-9a80-3d61dead1072">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_7dead523-1e3a-4884-b1a0-d03bbaaafbf9"
      id="F_4df0bc79-2baa-4343-b44a-41082266a888">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_7dead523-1e3a-4884-b1a0-d03bbaaafbf9"
      id="F_bcce4688-ed16-4b55-bfbc-50bebfbc8346">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_7dead523-1e3a-4884-b1a0-d03bbaaafbf9"
      id="F_61f35583-ba25-4772-a5b5-cb13a5c6c3b7">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_7dead523-1e3a-4884-b1a0-d03bbaaafbf9"
      id="F_83280a60-f947-49df-90d4-6643b297b6a7">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_7dead523-1e3a-4884-b1a0-d03bbaaafbf9"
      id="F_a104f9c7-cd05-480f-83d0-6a4216a8064f">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_7dead523-1e3a-4884-b1a0-d03bbaaafbf9"
      id="F_60dae9fb-2789-4ef1-9c7a-4c5498755989">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_7dead523-1e3a-4884-b1a0-d03bbaaafbf9"
      id="F_278707df-a60c-448c-8ff1-40698533f95a">&lt;p style="tab-size:26.66px;font-size:12pt;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;3,095,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_7dead523-1e3a-4884-b1a0-d03bbaaafbf9"
      decimals="-3"
      id="F_8f1f7302-4c39-453e-91cf-ff9f7db25364"
      unitRef="U_USD">3095000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
