<?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_35ade36a-174e-4a94-ab3e-d4311178038b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-15</startDate>
            <endDate>2026-09-15</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_35ade36a-174e-4a94-ab3e-d4311178038b"
      id="F_faa0ef65-64ec-4b90-8f4f-0835778219e6">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_35ade36a-174e-4a94-ab3e-d4311178038b"
      id="F_9f21bb0f-97e9-47da-aa5d-efc635f9a9d4">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_35ade36a-174e-4a94-ab3e-d4311178038b"
      id="F_44d5814a-6c89-4ed7-b28f-1186cd7558ab">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_35ade36a-174e-4a94-ab3e-d4311178038b"
      id="F_21b1db21-a75f-4c4a-b755-73af2097f5b7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_35ade36a-174e-4a94-ab3e-d4311178038b"
      id="F_576e8b2d-fe20-4149-825f-c02a026d53ca">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_35ade36a-174e-4a94-ab3e-d4311178038b"
      id="F_085b01d2-d07c-468c-ab21-ff9095f920d5">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_35ade36a-174e-4a94-ab3e-d4311178038b"
      id="F_c107ee9b-4782-41dc-b6bd-b81bd302aaac">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_35ade36a-174e-4a94-ab3e-d4311178038b"
      id="F_0a1b68f2-63f2-4367-b93b-c1bd9e460295">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_35ade36a-174e-4a94-ab3e-d4311178038b"
      id="F_10f19668-c6fa-4749-962e-eb8026a41aa1">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_35ade36a-174e-4a94-ab3e-d4311178038b"
      id="F_09ff68d6-e3fd-4fc1-b568-f601982f3101">&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,552,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_35ade36a-174e-4a94-ab3e-d4311178038b"
      decimals="-3"
      id="F_2bb6c8e8-30d4-42b5-8ca7-ab61210c7ca3"
      unitRef="U_USD">1552000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
