<?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_25a899db-6308-49d8-a0cc-4c90e289b8eb">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-27</startDate>
            <endDate>2026-10-27</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_25a899db-6308-49d8-a0cc-4c90e289b8eb"
      id="F_3e2d6c09-2872-454a-8297-83baae8ffab5">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_25a899db-6308-49d8-a0cc-4c90e289b8eb"
      id="F_a747e755-8e07-4837-b971-a40e49fc704a">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_25a899db-6308-49d8-a0cc-4c90e289b8eb"
      id="F_70a712d1-68e1-408e-a180-791565cbf32a">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_25a899db-6308-49d8-a0cc-4c90e289b8eb"
      id="F_0ffd3d3d-3f91-4e9d-ba64-d3b8f5286f64">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_25a899db-6308-49d8-a0cc-4c90e289b8eb"
      id="F_88dfd42e-57a0-42eb-8cb2-553e36395394">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_25a899db-6308-49d8-a0cc-4c90e289b8eb"
      id="F_15116249-f5e4-468a-9584-828cffbea251">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_25a899db-6308-49d8-a0cc-4c90e289b8eb"
      id="F_4405608e-9cf8-46ae-bcf7-70f65ea5ce4f">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_25a899db-6308-49d8-a0cc-4c90e289b8eb"
      id="F_01c7f562-dd00-4c57-b906-695e60be842f">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_25a899db-6308-49d8-a0cc-4c90e289b8eb"
      id="F_7db8f27f-5a20-45bc-a52a-b65f01b5cd17">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_25a899db-6308-49d8-a0cc-4c90e289b8eb"
      id="F_787b9f13-ad1a-4619-b7a7-4445f5661be4">&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;340,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_25a899db-6308-49d8-a0cc-4c90e289b8eb"
      decimals="-3"
      id="F_c72e91f6-7447-41c7-bd16-9d65930eced8"
      unitRef="U_USD">340000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
