<?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_42ac98cd-f5c2-4594-9ee4-63f642697043">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-10</startDate>
            <endDate>2026-06-10</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_42ac98cd-f5c2-4594-9ee4-63f642697043"
      id="F_fbb00c52-41f0-462d-97c8-e513e2c519c2">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_42ac98cd-f5c2-4594-9ee4-63f642697043"
      id="F_8e64dcdc-ae97-4f40-bb9d-c7fa28c22665">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_42ac98cd-f5c2-4594-9ee4-63f642697043"
      id="F_6a30d36d-9065-4c8b-8009-0e7ca48c6427">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_42ac98cd-f5c2-4594-9ee4-63f642697043"
      id="F_35866985-712b-41d4-b8b8-816732318cee">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_42ac98cd-f5c2-4594-9ee4-63f642697043"
      id="F_ac2e986a-480f-403f-a680-c70edb719eac">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_42ac98cd-f5c2-4594-9ee4-63f642697043"
      id="F_8b22f203-77a1-4eb9-8c1c-031be461c849">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_42ac98cd-f5c2-4594-9ee4-63f642697043"
      id="F_0ac845fa-c946-41fc-8d8e-d998fb3978f8">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_42ac98cd-f5c2-4594-9ee4-63f642697043"
      id="F_99996769-4743-4016-af4c-0748e905df4e">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_42ac98cd-f5c2-4594-9ee4-63f642697043"
      id="F_8daa8693-264d-4b2e-a7ad-7f93523171d1">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_42ac98cd-f5c2-4594-9ee4-63f642697043"
      id="F_f28b4709-1238-4b80-a553-7307dcb651ce">&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;1,375,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_42ac98cd-f5c2-4594-9ee4-63f642697043"
      decimals="-3"
      id="F_e440b01e-2ce0-4e99-8b3f-55ae6ca1e961"
      unitRef="U_USD">1375000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
