<?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_a8e8713f-b6b9-47fe-b2cd-6425cfb50181">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-25</startDate>
            <endDate>2026-08-25</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_a8e8713f-b6b9-47fe-b2cd-6425cfb50181"
      id="F_f581b140-f7c8-420e-9866-02aa8ba46230">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_a8e8713f-b6b9-47fe-b2cd-6425cfb50181"
      id="F_ddb34c52-4e77-47ec-8a64-29e72352d70b">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_a8e8713f-b6b9-47fe-b2cd-6425cfb50181"
      id="F_07ce42d9-17eb-4ed6-aeba-92bf9b7487fa">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_a8e8713f-b6b9-47fe-b2cd-6425cfb50181"
      id="F_c211a448-6787-40ab-ae4d-b06a32888914">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_a8e8713f-b6b9-47fe-b2cd-6425cfb50181"
      id="F_1e9eac75-5211-440a-af8a-07d4755db27d">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_a8e8713f-b6b9-47fe-b2cd-6425cfb50181"
      id="F_0fb3aa05-3a9b-4f6e-801b-494753cd99f0">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_a8e8713f-b6b9-47fe-b2cd-6425cfb50181"
      id="F_6f08a0f6-1a41-481c-a7c1-4209a95cc401">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_a8e8713f-b6b9-47fe-b2cd-6425cfb50181"
      id="F_de589850-6944-42f2-a843-348cfd9fe9fb">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a8e8713f-b6b9-47fe-b2cd-6425cfb50181"
      id="F_06d7ac77-ed26-460e-88bf-e28a225b93f2">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_a8e8713f-b6b9-47fe-b2cd-6425cfb50181"
      id="F_e8e07408-ffce-4bac-a385-57a37fc9b7f4">&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;290,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_a8e8713f-b6b9-47fe-b2cd-6425cfb50181"
      decimals="-3"
      id="F_4c1f2351-8f3a-463c-8d85-a4c3c29614c1"
      unitRef="U_USD">290000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
