<?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_ed53a5d4-b7c7-4766-a51c-a22660bf5849">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-10</startDate>
            <endDate>2026-03-10</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_ed53a5d4-b7c7-4766-a51c-a22660bf5849"
      id="F_972fdd0c-a4a0-48d2-af54-449d965ee0e8">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_ed53a5d4-b7c7-4766-a51c-a22660bf5849"
      id="F_54eb585b-6324-45b4-8c46-ca33bfc71d78">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_ed53a5d4-b7c7-4766-a51c-a22660bf5849"
      id="F_d311149a-2f4f-41a9-827b-511aae91b9fe">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_ed53a5d4-b7c7-4766-a51c-a22660bf5849"
      id="F_78d7a3e2-57f3-4282-9c06-4f157768913f">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_ed53a5d4-b7c7-4766-a51c-a22660bf5849"
      id="F_9f87f0b2-94bc-4e76-a1dc-ed72ee91a9d0">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_ed53a5d4-b7c7-4766-a51c-a22660bf5849"
      id="F_e0fb18fb-35d6-4d66-8dce-a0063b796df1">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ed53a5d4-b7c7-4766-a51c-a22660bf5849"
      id="F_2b29b3b9-27f3-4a83-a930-0d5f9ab72c05">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_ed53a5d4-b7c7-4766-a51c-a22660bf5849"
      id="F_3ba3265d-7ddd-4bb3-95ec-b3709e80c93d">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_ed53a5d4-b7c7-4766-a51c-a22660bf5849"
      id="F_e2a37b64-71e3-4cfa-898f-77910022d57b">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_ed53a5d4-b7c7-4766-a51c-a22660bf5849"
      id="F_0c7b1f5a-12bd-4783-8af7-e21a739d9431">&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;876,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_ed53a5d4-b7c7-4766-a51c-a22660bf5849"
      decimals="0"
      id="F_18091700-91c7-4756-8fa3-063ca4f350a0"
      unitRef="U_USD">876000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
