<?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_5d9fffaa-4981-4624-b8d0-637fd9e82add">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-23</startDate>
            <endDate>2026-06-23</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_5d9fffaa-4981-4624-b8d0-637fd9e82add"
      id="F_b3909d71-f194-4bbf-8789-1031d89b6dc6">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5d9fffaa-4981-4624-b8d0-637fd9e82add"
      id="F_aacd5e01-46f4-4ba8-9e91-21d2bdb9bfd7">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_5d9fffaa-4981-4624-b8d0-637fd9e82add"
      id="F_070fad69-bf29-4f68-81a8-0dd6bd366191">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_5d9fffaa-4981-4624-b8d0-637fd9e82add"
      id="F_863d59ba-fe1a-4e46-845b-076d68b96a9e">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_5d9fffaa-4981-4624-b8d0-637fd9e82add"
      id="F_00a2478f-5367-4647-be0c-dabe2827ee40">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_5d9fffaa-4981-4624-b8d0-637fd9e82add"
      id="F_7d1f511c-7c00-498d-a47a-55d04aea9a99">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_5d9fffaa-4981-4624-b8d0-637fd9e82add"
      id="F_251295c8-28ac-463f-82db-fb61754b1744">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_5d9fffaa-4981-4624-b8d0-637fd9e82add"
      id="F_701e4ec7-9d86-4193-8e4c-7c2403788862">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_5d9fffaa-4981-4624-b8d0-637fd9e82add"
      id="F_78a482fd-3104-4c7a-aa1d-db444234e4d0">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_5d9fffaa-4981-4624-b8d0-637fd9e82add"
      id="F_d95483d2-8a7b-4702-b0be-fa74f0e60ad8">&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;3,445,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_5d9fffaa-4981-4624-b8d0-637fd9e82add"
      decimals="-3"
      id="F_3ab5db66-f0de-4c3a-b460-210f2f39413b"
      unitRef="U_USD">3445000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
