<?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_00f9dfd2-4723-4276-9ec0-8421c165d4ca">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-14</startDate>
            <endDate>2026-07-14</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_00f9dfd2-4723-4276-9ec0-8421c165d4ca"
      id="F_69b01572-43d2-4abe-8e6f-383ea35b40c3">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_00f9dfd2-4723-4276-9ec0-8421c165d4ca"
      id="F_a3853287-0a24-4106-88e2-21e07fcd53ee">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_00f9dfd2-4723-4276-9ec0-8421c165d4ca"
      id="F_e5c03e68-d8fe-476d-ada3-1aeb4849507c">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_00f9dfd2-4723-4276-9ec0-8421c165d4ca"
      id="F_ce629a9a-ca6c-42af-b8fc-4cef15d058a2">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_00f9dfd2-4723-4276-9ec0-8421c165d4ca"
      id="F_49ab807f-c909-4692-81c6-ab56954422a1">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_00f9dfd2-4723-4276-9ec0-8421c165d4ca"
      id="F_e4698ce9-0747-4128-99dd-6ab37d80e503">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_00f9dfd2-4723-4276-9ec0-8421c165d4ca"
      id="F_a5c540b2-95a2-401a-826f-be9edf7b911d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_00f9dfd2-4723-4276-9ec0-8421c165d4ca"
      id="F_98e6f5e1-266c-47fd-a122-3da9a5c04870">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_00f9dfd2-4723-4276-9ec0-8421c165d4ca"
      id="F_709e866f-02db-4ad0-bfe2-2bf0f4fe7327">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_00f9dfd2-4723-4276-9ec0-8421c165d4ca"
      id="F_634c73e0-9362-4d3e-a48d-b9aeade3d3d7">&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;5,082,500&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_00f9dfd2-4723-4276-9ec0-8421c165d4ca"
      decimals="0"
      id="F_fa042979-e549-4da5-b2d1-7a16c5155a0a"
      unitRef="U_USD">5082500</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
