<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_dbd248c2-d8e3-49bd-8e76-0f811e07b0d1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-06</startDate>
            <endDate>2026-04-06</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_dbd248c2-d8e3-49bd-8e76-0f811e07b0d1"
      id="F_d47d47aa-7554-4556-a010-f5b5bf5af670">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_dbd248c2-d8e3-49bd-8e76-0f811e07b0d1"
      id="F_4b55becf-2b32-4113-ac82-e8da6e941705">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_dbd248c2-d8e3-49bd-8e76-0f811e07b0d1"
      id="F_8f7be5d3-54dd-4877-af5c-312f5ae66a5d">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_dbd248c2-d8e3-49bd-8e76-0f811e07b0d1"
      id="F_1ec0d12a-0979-4b75-a308-211a7193acec">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_dbd248c2-d8e3-49bd-8e76-0f811e07b0d1"
      id="F_ad534e8a-d281-44c7-bcc9-eafb589dd70c">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_dbd248c2-d8e3-49bd-8e76-0f811e07b0d1"
      id="F_40e665dd-cd6b-4762-b767-1225b7f21807">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_dbd248c2-d8e3-49bd-8e76-0f811e07b0d1"
      id="F_5233fa34-cccc-4ae7-9d89-937e88ed09c7">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_dbd248c2-d8e3-49bd-8e76-0f811e07b0d1"
      id="F_57ae3ac2-469e-4dba-8e51-6c2a9d32816e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_dbd248c2-d8e3-49bd-8e76-0f811e07b0d1"
      id="F_2a5d8a1e-ed71-4fe6-994a-c38fd6f9ad33">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_dbd248c2-d8e3-49bd-8e76-0f811e07b0d1"
      id="F_a56bf372-2a29-478d-bf7d-134011214b96">&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;28,820,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_dbd248c2-d8e3-49bd-8e76-0f811e07b0d1"
      decimals="0"
      id="F_c6a7e36c-ba69-4fe2-b36d-8718b0e21902"
      unitRef="U_USD">28820000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
