<?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_63cde492-cc42-46de-b226-83a9d28318ea">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-29</startDate>
            <endDate>2026-10-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_63cde492-cc42-46de-b226-83a9d28318ea"
      id="F_3f9dd56b-3cc4-4d3d-b7f2-33d4d95dc7f4">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_63cde492-cc42-46de-b226-83a9d28318ea"
      id="F_7cb0eab9-71c7-4730-9552-2db0e5b6d474">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_63cde492-cc42-46de-b226-83a9d28318ea"
      id="F_3b0743a1-ecd7-4e9d-a990-0a75352d64f0">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_63cde492-cc42-46de-b226-83a9d28318ea"
      id="F_336d1352-57a1-4fb6-83da-ade2f00f524b">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_63cde492-cc42-46de-b226-83a9d28318ea"
      id="F_b9b23d58-ba44-47b1-bc3d-1f026aed2d93">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_63cde492-cc42-46de-b226-83a9d28318ea"
      id="F_684477e9-fc6e-461b-ae43-90cc3fce5953">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_63cde492-cc42-46de-b226-83a9d28318ea"
      id="F_b82684e4-e7a6-4781-a56d-5760aaadd9d8">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_63cde492-cc42-46de-b226-83a9d28318ea"
      id="F_eba800d4-6606-41cb-b5ef-82ae66a0df98">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_63cde492-cc42-46de-b226-83a9d28318ea"
      id="F_8ffec63a-4a29-48ad-9988-99101aeebf88">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_63cde492-cc42-46de-b226-83a9d28318ea"
      id="F_4c777f99-7f38-4ae4-b023-261c2a14060e">&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;1,000,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_63cde492-cc42-46de-b226-83a9d28318ea"
      decimals="-6"
      id="F_89e2cf0a-36f4-4393-a56c-4a04babcd03f"
      unitRef="U_USD">1000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
