<?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_41b952bd-3272-4b0f-bc34-71e7754a1334">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-02</startDate>
            <endDate>2026-07-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_41b952bd-3272-4b0f-bc34-71e7754a1334"
      id="F_59a75a33-6cac-43f7-ba80-ed2eaaabd97f">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_41b952bd-3272-4b0f-bc34-71e7754a1334"
      id="F_37495a09-4411-46c0-ad0f-045d39ebbaaf">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_41b952bd-3272-4b0f-bc34-71e7754a1334"
      id="F_ac06a4fe-13fa-47d4-92f3-38065b4f64bf">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_41b952bd-3272-4b0f-bc34-71e7754a1334"
      id="F_a7721f20-5b42-4812-8bb5-2663b1a377a3">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_41b952bd-3272-4b0f-bc34-71e7754a1334"
      id="F_079af33e-a5b0-4fce-b63e-60772d160acb">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_41b952bd-3272-4b0f-bc34-71e7754a1334"
      id="F_c8d4c6e8-762a-400e-ba20-da352cb50f85">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_41b952bd-3272-4b0f-bc34-71e7754a1334"
      id="F_dc8171ab-da00-485d-849c-43ba89062118">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_41b952bd-3272-4b0f-bc34-71e7754a1334"
      id="F_0620cbe0-98c0-40a6-a679-8d1471d5c999">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_41b952bd-3272-4b0f-bc34-71e7754a1334"
      id="F_690ef2b2-cd7e-47ce-875f-59e04c5c0c39">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_41b952bd-3272-4b0f-bc34-71e7754a1334"
      id="F_308883ca-5067-4e5e-b788-ac82451a112c">&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;738,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_41b952bd-3272-4b0f-bc34-71e7754a1334"
      decimals="-3"
      id="F_c4815318-188b-4f8b-bb28-8336fa450038"
      unitRef="U_USD">738000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
