<?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_d735e122-96a8-4b24-a1ab-c25f5302ba5d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-01</startDate>
            <endDate>2026-07-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_d735e122-96a8-4b24-a1ab-c25f5302ba5d"
      id="F_5e85f76c-2f6c-4003-a685-6c3f24b7f6ca">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_d735e122-96a8-4b24-a1ab-c25f5302ba5d"
      id="F_137aae0b-3d48-43bb-87e6-8c0b2865f99a">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_d735e122-96a8-4b24-a1ab-c25f5302ba5d"
      id="F_078835da-230b-431f-b0f3-54db72f9c19e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d735e122-96a8-4b24-a1ab-c25f5302ba5d"
      id="F_3a88919e-e8d2-41e9-a6cc-e9a416ad8d16">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_d735e122-96a8-4b24-a1ab-c25f5302ba5d"
      id="F_998b42cf-9076-45bf-a55b-34f7211912f6">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_d735e122-96a8-4b24-a1ab-c25f5302ba5d"
      id="F_2ad986f3-53cf-48e0-8c41-fb656b1af159">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_d735e122-96a8-4b24-a1ab-c25f5302ba5d"
      id="F_b52b2fec-ff17-47ee-8675-ae6e6d17555c">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_d735e122-96a8-4b24-a1ab-c25f5302ba5d"
      id="F_b96a656f-df10-4412-95a8-b78bd5692150">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_d735e122-96a8-4b24-a1ab-c25f5302ba5d"
      id="F_9da11b81-1fee-41a8-ba72-840966748648">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_d735e122-96a8-4b24-a1ab-c25f5302ba5d"
      id="F_8f85a28c-67e6-4f3d-a1a0-6c5e1118c50a">&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;6,166,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_d735e122-96a8-4b24-a1ab-c25f5302ba5d"
      decimals="-3"
      id="F_71565d16-38fc-4cb3-a88d-c1c20cb8c1e5"
      unitRef="U_USD">6166000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
