<?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_cd223661-472a-4eb0-9fe7-b1c58ce248ea">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-02</startDate>
            <endDate>2026-10-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_cd223661-472a-4eb0-9fe7-b1c58ce248ea"
      id="F_3822e446-175c-4186-a099-9b8b04e277bd">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_cd223661-472a-4eb0-9fe7-b1c58ce248ea"
      id="F_0631af58-2e82-4997-a074-f60dbd83f189">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_cd223661-472a-4eb0-9fe7-b1c58ce248ea"
      id="F_1f6af18a-d441-4808-ab6f-0a81fa9e495c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_cd223661-472a-4eb0-9fe7-b1c58ce248ea"
      id="F_b0e700fc-fd0c-4175-b641-d0c5967bf817">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_cd223661-472a-4eb0-9fe7-b1c58ce248ea"
      id="F_f5c9a90a-8b99-4290-b795-db8dfa292b6d">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_cd223661-472a-4eb0-9fe7-b1c58ce248ea"
      id="F_861050ac-bc3f-4548-8121-9db2ba628193">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_cd223661-472a-4eb0-9fe7-b1c58ce248ea"
      id="F_2aa627ae-bfa8-4856-9d49-d54249e6348c">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_cd223661-472a-4eb0-9fe7-b1c58ce248ea"
      id="F_6a05780a-d79e-4fe3-8bcb-a12914f960c8">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_cd223661-472a-4eb0-9fe7-b1c58ce248ea"
      id="F_58370ae1-1380-4557-a407-eabc8d927429">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_cd223661-472a-4eb0-9fe7-b1c58ce248ea"
      id="F_6c79ebea-8aca-47ec-823a-6119d82109cd">&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,796,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_cd223661-472a-4eb0-9fe7-b1c58ce248ea"
      decimals="-3"
      id="F_dbb4fc7e-b703-4daf-a204-1794bb42d32c"
      unitRef="U_USD">1796000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
