<?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_e6c09a67-e4c2-40db-9f4d-101b2ec9ef5c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-15</startDate>
            <endDate>2026-09-15</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_e6c09a67-e4c2-40db-9f4d-101b2ec9ef5c"
      id="F_3cb81ed6-bd88-47c8-b42d-cc7dc7bdbb4d">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_e6c09a67-e4c2-40db-9f4d-101b2ec9ef5c"
      id="F_fa9a66f9-c3f3-462f-9088-65bd7b1a3b39">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_e6c09a67-e4c2-40db-9f4d-101b2ec9ef5c"
      id="F_6fcf59cf-f071-4fa5-9779-3c72f8fe2a85">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_e6c09a67-e4c2-40db-9f4d-101b2ec9ef5c"
      id="F_3d26bd4b-63a5-42f4-a66e-657995ed7037">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_e6c09a67-e4c2-40db-9f4d-101b2ec9ef5c"
      id="F_31e498ca-e066-48e9-a7eb-5a82e935cabf">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_e6c09a67-e4c2-40db-9f4d-101b2ec9ef5c"
      id="F_7c190841-9a7f-446b-8e15-6fc2869f6b67">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_e6c09a67-e4c2-40db-9f4d-101b2ec9ef5c"
      id="F_6d9e8035-f7d9-4673-905a-02ad7cfb1e10">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e6c09a67-e4c2-40db-9f4d-101b2ec9ef5c"
      id="F_fbc45299-e047-4ab2-b835-8a70e4e8ba84">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_e6c09a67-e4c2-40db-9f4d-101b2ec9ef5c"
      id="F_4f9dcdf2-0f86-4529-acb5-01bbeb74ae62">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_e6c09a67-e4c2-40db-9f4d-101b2ec9ef5c"
      id="F_9d039edd-6c16-46d7-aeb7-c61ac38a5bb1">&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,362,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_e6c09a67-e4c2-40db-9f4d-101b2ec9ef5c"
      decimals="-3"
      id="F_07e47401-e4e0-45e2-abbb-f5cb51767e7a"
      unitRef="U_USD">3362000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
